@kong-ui-public/freeform 0.1.5 → 0.2.0

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.
Files changed (42) hide show
  1. package/dist/filler/cypress/index.js +1 -1
  2. package/dist/filler/{field-walker-DvexdaQG.js → field-walker-DTMtlMwU.js} +9845 -6300
  3. package/dist/filler/packages/core/freeform/src/composables/field.d.ts +2 -0
  4. package/dist/filler/packages/core/freeform/src/composables/field.d.ts.map +1 -1
  5. package/dist/filler/packages/core/freeform/src/composables/form-context.d.ts +2 -0
  6. package/dist/filler/packages/core/freeform/src/composables/form-context.d.ts.map +1 -1
  7. package/dist/filler/packages/core/freeform/src/composables/schema.d.ts +4 -0
  8. package/dist/filler/packages/core/freeform/src/composables/schema.d.ts.map +1 -1
  9. package/dist/filler/packages/core/freeform/src/composables/useI18n.d.ts +182 -0
  10. package/dist/filler/packages/core/freeform/src/composables/useI18n.d.ts.map +1 -0
  11. package/dist/filler/packages/core/freeform/src/composables/useMapField.d.ts +2 -0
  12. package/dist/filler/packages/core/freeform/src/composables/useMapField.d.ts.map +1 -1
  13. package/dist/filler/packages/core/freeform/src/form-schema.d.ts +14 -0
  14. package/dist/filler/packages/core/freeform/src/form-schema.d.ts.map +1 -1
  15. package/dist/filler/packages/core/freeform/src/types.d.ts +7 -0
  16. package/dist/filler/packages/core/freeform/src/types.d.ts.map +1 -1
  17. package/dist/filler/packages/core/freeform/src/version.d.ts +7 -0
  18. package/dist/filler/packages/core/freeform/src/version.d.ts.map +1 -0
  19. package/dist/filler/playwright/index.js +1 -1
  20. package/dist/freeform.es.js +1333 -1243
  21. package/dist/freeform.umd.js +5 -5
  22. package/dist/style.css +1 -1
  23. package/dist/types/components/EnumField.vue.d.ts +2 -2
  24. package/dist/types/components/EnumField.vue.d.ts.map +1 -1
  25. package/dist/types/components/StringField.vue.d.ts.map +1 -1
  26. package/dist/types/composables/field.d.ts +2 -0
  27. package/dist/types/composables/field.d.ts.map +1 -1
  28. package/dist/types/composables/form-context.d.ts +2 -0
  29. package/dist/types/composables/form-context.d.ts.map +1 -1
  30. package/dist/types/composables/schema.d.ts +4 -0
  31. package/dist/types/composables/schema.d.ts.map +1 -1
  32. package/dist/types/composables/useI18n.d.ts +12 -0
  33. package/dist/types/composables/useI18n.d.ts.map +1 -1
  34. package/dist/types/composables/useMapField.d.ts +2 -0
  35. package/dist/types/composables/useMapField.d.ts.map +1 -1
  36. package/dist/types/form-schema.d.ts +14 -0
  37. package/dist/types/form-schema.d.ts.map +1 -1
  38. package/dist/types/types.d.ts +7 -0
  39. package/dist/types/types.d.ts.map +1 -1
  40. package/dist/types/version.d.ts +7 -0
  41. package/dist/types/version.d.ts.map +1 -0
  42. package/package.json +4 -3
@@ -1,94 +1,94 @@
1
- import { toValue as R, computed as g, ref as se, watch as ee, onBeforeUnmount as St, reactive as it, toRef as B, useSlots as Se, provide as je, inject as be, toRaw as ut, onUnmounted as Et, defineComponent as z, useAttrs as Ae, openBlock as A, createBlock as T, unref as s, mergeProps as J, createSlots as G, renderList as de, withCtx as j, renderSlot as C, normalizeProps as We, guardReactiveProps as ct, withDirectives as Q, createElementBlock as L, createVNode as K, createTextVNode as ie, toDisplayString as re, vShow as Z, createCommentVNode as H, createPropsRestProxy as fe, resolveComponent as N, createElementVNode as U, resolveDynamicComponent as ue, Fragment as le, useCssVars as wt, useTemplateRef as dt, normalizeClass as Pe, withModifiers as Te, nextTick as Ce, Transition as Pt, useId as Tt, useModel as Be, onBeforeMount as Ft, mergeModels as De, withKeys as et } from "vue";
2
- import { get as Ve, uniqueId as ft, isEqual as he, omit as jt, cloneDeep as tt, isFunction as at, set as qe, upperFirst as Ot } from "lodash-es";
3
- import { createInjectionState as It } from "@vueuse/core";
4
- import { marked as Mt } from "marked";
5
- import xt from "dompurify";
6
- import { KTextArea as Kt, KInput as Lt, KButton as nt, KExternalLink as Rt, KCheckbox as Ct, KCard as Ne, KLabel as Bt, KMultiselect as Dt, KSelect as qt, KInputSwitch as Nt } from "@kong/kongponents";
7
- import { AUTOFILL_SLOT as pt } from "@kong-ui-public/forms";
8
- import { createI18n as Ht, i18nTComponent as Ut } from "@kong-ui-public/i18n";
9
- import { SecretInput as zt } from "@kong-ui-public/misc-widgets";
1
+ import { toValue as R, computed as k, ref as oe, watch as te, onBeforeUnmount as Ot, reactive as vt, toRef as B, useSlots as Se, provide as Fe, inject as be, toRaw as ht, onUnmounted as Mt, defineComponent as U, useAttrs as Ae, openBlock as A, createBlock as T, unref as s, mergeProps as J, createSlots as X, renderList as de, withCtx as F, renderSlot as C, normalizeProps as We, guardReactiveProps as yt, withDirectives as Z, createElementBlock as L, createVNode as K, createTextVNode as se, toDisplayString as G, vShow as ee, createCommentVNode as D, createPropsRestProxy as fe, resolveComponent as H, resolveDynamicComponent as ue, Fragment as le, createElementVNode as W, useCssVars as Kt, useTemplateRef as bt, normalizeClass as Pe, withModifiers as Ie, nextTick as Ce, Transition as Lt, useId as Rt, useModel as Be, onBeforeMount as Ct, mergeModels as De, withKeys as et } from "vue";
2
+ import { get as Ve, uniqueId as gt, isEqual as he, omit as Bt, cloneDeep as tt, isFunction as at, set as Ne, upperFirst as Dt } from "lodash-es";
3
+ import { createInjectionState as Nt } from "@vueuse/core";
4
+ import { marked as qt } from "marked";
5
+ import Ht from "dompurify";
6
+ import { createI18n as Ut, i18nTComponent as zt } from "@kong-ui-public/i18n";
7
+ import { KTextArea as Wt, KInput as Jt, KButton as nt, KExternalLink as Yt, KCheckbox as Gt, KCard as qe, KLabel as Xt, KMultiselect as Qt, KSelect as Zt, KTooltip as ea, KInputSwitch as ta } from "@kong/kongponents";
8
+ import { AUTOFILL_SLOT as kt } from "@kong-ui-public/forms";
9
+ import { SecretInput as aa } from "@kong-ui-public/misc-widgets";
10
10
  import "@kong-ui-public/misc-widgets/dist/style.css";
11
- import { AddIcon as Fe, CloseIcon as Je, TrashIcon as Wt, ChevronRightIcon as Jt } from "@kong/icons";
12
- import { KUI_ICON_SIZE_30 as Yt } from "@kong/design-tokens";
13
- function Gt(e) {
14
- return e.map((l) => ({ value: l, label: `${l}` }));
11
+ import { AddIcon as Te, CloseIcon as Je, TrashIcon as na, ChevronRightIcon as ra } from "@kong/icons";
12
+ import { KUI_ICON_SIZE_30 as sa } from "@kong/design-tokens";
13
+ function la(e) {
14
+ return e.map((r) => ({ value: r, label: `${r}` }));
15
15
  }
16
- const Ye = "*", Ge = "#", ce = "$", Oe = ".";
17
- function x(...e) {
18
- return e.join(Oe);
16
+ const Ye = "*", Ge = "#", ce = "$", xe = ".";
17
+ function M(...e) {
18
+ return e.join(xe);
19
19
  }
20
20
  function ge(...e) {
21
- return x(ce, ...e);
21
+ return M(ce, ...e);
22
22
  }
23
23
  function rt(e) {
24
- return e.startsWith(x(ce, ""));
24
+ return e.startsWith(M(ce, ""));
25
25
  }
26
26
  function q(e) {
27
- return e.split(Oe).filter((l) => l !== "");
27
+ return e.split(xe).filter((r) => r !== "");
28
28
  }
29
29
  function ve(e) {
30
- const l = q(e);
31
- return l[l.length - 1];
30
+ const r = q(e);
31
+ return r[r.length - 1];
32
32
  }
33
33
  function Xe(e) {
34
- return e.startsWith(ce) && (e = x(...q(e).slice(1))), e;
34
+ return e.startsWith(ce) && (e = M(...q(e).slice(1))), e;
35
35
  }
36
- function mt(e, l, t, n = "") {
36
+ function At(e, r, t, n = "") {
37
37
  if (e == null || typeof e != "object") return;
38
38
  const o = Array.isArray(e) ? e.map((a, i) => String(i)) : Object.keys(e);
39
39
  for (const a of o) {
40
- const i = n ? x(n, a) : a;
41
- l(i) ? e[a] = t(i) : mt(e[a], l, t, i);
40
+ const i = n ? M(n, a) : a;
41
+ r(i) ? e[a] = t(i) : At(e[a], r, t, i);
42
42
  }
43
43
  }
44
- function Xt(e) {
45
- const l = R(e);
46
- return l ? l.type === "set" && l.elements.type === "string" && !l.elements.one_of : !1;
44
+ function oa(e) {
45
+ const r = R(e);
46
+ return r ? r.type === "set" && r.elements.type === "string" && !r.elements.one_of : !1;
47
47
  }
48
- function vt(e, l) {
48
+ function $t(e, r) {
49
49
  return [...e].sort((t, n) => {
50
- const o = Object.keys(t)[0], a = Object.keys(n)[0], i = l.indexOf(o), u = l.indexOf(a);
50
+ const o = Object.keys(t)[0], a = Object.keys(n)[0], i = r.indexOf(o), u = r.indexOf(a);
51
51
  return i === -1 && u === -1 ? 0 : i === -1 ? 1 : u === -1 ? -1 : i - u;
52
52
  });
53
53
  }
54
- function ht(e, l) {
54
+ function _t(e, r) {
55
55
  const t = /* @__PURE__ */ new Map();
56
- e.forEach((r) => {
57
- const c = Object.keys(r)[0];
58
- t.set(c, r);
56
+ e.forEach((l) => {
57
+ const d = Object.keys(l)[0];
58
+ t.set(d, l);
59
59
  });
60
60
  const n = /* @__PURE__ */ new Map();
61
- l.forEach((r, c) => {
62
- r.forEach((h, f) => {
63
- n.has(h) || n.set(h, []), n.get(h).push({ bundleIndex: c, position: f });
61
+ r.forEach((l, d) => {
62
+ l.forEach((v, f) => {
63
+ n.has(v) || n.set(v, []), n.get(v).push({ bundleIndex: d, position: f });
64
64
  });
65
65
  });
66
- const o = /* @__PURE__ */ new Set(), a = [], i = /* @__PURE__ */ new Set(), u = (r) => {
67
- const c = n.get(r);
68
- if (!c) return !0;
69
- for (const { bundleIndex: h, position: f } of c) {
70
- const p = l[h];
71
- for (let d = 0; d < f; d++) {
72
- const y = p[d];
73
- if (t.has(y) && !o.has(y))
66
+ const o = /* @__PURE__ */ new Set(), a = [], i = /* @__PURE__ */ new Set(), u = (l) => {
67
+ const d = n.get(l);
68
+ if (!d) return !0;
69
+ for (const { bundleIndex: v, position: f } of d) {
70
+ const p = r[v];
71
+ for (let b = 0; b < f; b++) {
72
+ const $ = p[b];
73
+ if (t.has($) && !o.has($))
74
74
  return !1;
75
75
  }
76
76
  }
77
77
  return !0;
78
- }, m = (r) => {
79
- if (o.has(r)) return;
80
- const c = t.get(r);
81
- if (!c) return;
82
- a.push(c), o.add(r), i.delete(r);
83
- const h = n.get(r);
84
- if (h)
85
- for (const { bundleIndex: p, position: d } of h) {
86
- const y = l[p];
87
- for (let k = d + 1; k < y.length; k++) {
88
- const w = y[k];
89
- if (!o.has(w)) {
90
- const F = t.get(w);
91
- F && (a.push(F), o.add(w), i.delete(w));
78
+ }, m = (l) => {
79
+ if (o.has(l)) return;
80
+ const d = t.get(l);
81
+ if (!d) return;
82
+ a.push(d), o.add(l), i.delete(l);
83
+ const v = n.get(l);
84
+ if (v)
85
+ for (const { bundleIndex: p, position: b } of v) {
86
+ const $ = r[p];
87
+ for (let P = b + 1; P < $.length; P++) {
88
+ const g = $[P];
89
+ if (!o.has(g)) {
90
+ const V = t.get(g);
91
+ V && (a.push(V), o.add(g), i.delete(g));
92
92
  }
93
93
  }
94
94
  }
@@ -96,189 +96,268 @@ function ht(e, l) {
96
96
  for (const p of f)
97
97
  u(p) && m(p);
98
98
  };
99
- for (const r of e) {
100
- const c = Object.keys(r)[0];
101
- o.has(c) || (u(c) ? m(c) : i.add(c));
99
+ for (const l of e) {
100
+ const d = Object.keys(l)[0];
101
+ o.has(d) || (u(d) ? m(d) : i.add(d));
102
102
  }
103
103
  return a;
104
104
  }
105
- function Xn(e) {
106
- return typeof e == "string" ? ({ genericPath: l }) => l === e : e;
105
+ function vr(e) {
106
+ return typeof e == "string" ? ({ genericPath: r }) => r === e : e;
107
107
  }
108
- const He = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", Qt = 256 - 256 % He.length;
109
- function Qn(e = 32) {
110
- const l = new Uint8Array(e);
108
+ const He = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", ia = 256 - 256 % He.length;
109
+ function hr(e = 32) {
110
+ const r = new Uint8Array(e);
111
111
  let t = "";
112
112
  for (; t.length < e; ) {
113
- crypto.getRandomValues(l);
114
- for (const n of l) {
113
+ crypto.getRandomValues(r);
114
+ for (const n of r) {
115
115
  if (t.length >= e) break;
116
- n >= Qt || (t += He[n % He.length]);
116
+ n >= ia || (t += He[n % He.length]);
117
117
  }
118
118
  }
119
119
  return t;
120
120
  }
121
- function Zt(e) {
122
- const l = q(e);
121
+ function ua(e) {
122
+ const r = q(e);
123
123
  let t = { parent: null };
124
- for (l.pop(); l.length; ) {
125
- const n = l.shift();
126
- t.path = t.parent?.path ? x(t.parent.path, n) : n, t = { parent: t };
124
+ for (r.pop(); r.length; ) {
125
+ const n = r.shift();
126
+ t.path = t.parent?.path ? M(t.parent.path, n) : n, t = { parent: t };
127
127
  }
128
128
  return t;
129
129
  }
130
- function yt(e) {
131
- return g(() => Zt(R(e)));
130
+ function Vt(e) {
131
+ return k(() => ua(R(e)));
132
+ }
133
+ const st = /* @__PURE__ */ Symbol("free-form-field-path"), Ue = /* @__PURE__ */ Symbol("free-form-field-renderer-slots"), lt = /* @__PURE__ */ Symbol("free-form-field-reset-label-path-setting"), we = "free-form-field-renderers-slot", ca = { add_entity: "Add {entity}", remove_entity: "Remove {entity}", enabled: "Enabled", disabled: "Disabled" }, da = { at_least_one_of: "At least one of the following values is required: {parameters}.", mutually_required: "These values must be used together: {parameters}.", mutually_exclusive: "Only one of these values can be used: {parameters}." }, fa = "Use comma to separate values. eg: value1, value2", pa = { tooltip: "The minimum runtime version required to use this feature is {version}. Please upgrade the minimum runtime version to use this feature." }, ma = "Enter a UUID of {entity}", va = { component_error: "The vault secret picker is not available" }, ha = { add: "Add expression", remove: "Remove expression", label: "Kong plug-in dynamic expression", info: "Supply this value as an expression that is evaluated on every request. When set, it takes priority over the value entered above.", help: { text: "Define a Kong plug-in dynamic expression to evaluate each request. The expression must return {type}. {link}", learn: "Learn more" }, returns: { string: "a string", number: "a number", integer: "an integer", boolean: "a boolean value (true or false)", unknown: "a value of the type of the field above" } }, ya = {
134
+ actions: ca,
135
+ field_rules: da,
136
+ tag_helper: fa,
137
+ version_compatibility: pa,
138
+ foreign_placeholder: ma,
139
+ vault_picker: va,
140
+ expression: ha
141
+ };
142
+ function pe() {
143
+ const e = Ut("en-us", ya);
144
+ return {
145
+ i18n: e,
146
+ i18nT: zt(e)
147
+ };
148
+ }
149
+ const St = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ot = (e) => {
150
+ if (typeof e != "string")
151
+ throw new TypeError("Invalid argument expected string");
152
+ const r = e.match(St);
153
+ if (!r)
154
+ throw new Error(`Invalid argument not valid semver ('${e}' received)`);
155
+ return r.shift(), r;
156
+ }, it = (e) => e === "*" || e === "x" || e === "X", ut = (e) => {
157
+ const r = parseInt(e, 10);
158
+ return isNaN(r) ? e : r;
159
+ }, ba = (e, r) => typeof e != typeof r ? [String(e), String(r)] : [e, r], ga = (e, r) => {
160
+ if (it(e) || it(r))
161
+ return 0;
162
+ const [t, n] = ba(ut(e), ut(r));
163
+ return t > n ? 1 : t < n ? -1 : 0;
164
+ }, ct = (e, r) => {
165
+ for (let t = 0; t < Math.max(e.length, r.length); t++) {
166
+ const n = ga(e[t] || "0", r[t] || "0");
167
+ if (n !== 0)
168
+ return n;
169
+ }
170
+ return 0;
171
+ }, ka = (e, r) => {
172
+ const t = ot(e), n = ot(r), o = t.pop(), a = n.pop(), i = ct(t, n);
173
+ return i !== 0 ? i : o && a ? ct(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
174
+ }, Aa = (e, r, t) => {
175
+ $a(t);
176
+ const n = ka(e, r);
177
+ return wt[t].includes(n);
178
+ }, wt = {
179
+ ">": [1],
180
+ ">=": [0, 1],
181
+ "=": [0],
182
+ "<=": [-1, 0],
183
+ "<": [-1],
184
+ "!=": [-1, 1]
185
+ }, dt = Object.keys(wt), $a = (e) => {
186
+ if (dt.indexOf(e) === -1)
187
+ throw new Error(`Invalid operator, expected one of ${dt.join("|")}`);
188
+ }, ft = (e) => typeof e == "string" && /^[v\d]/.test(e) && St.test(e);
189
+ function pt(e, r) {
190
+ return !e || !r || !ft(e) || !ft(r) ? !0 : Aa(e, r, ">=");
132
191
  }
133
- const lt = /* @__PURE__ */ Symbol("free-form-field-path"), Ue = /* @__PURE__ */ Symbol("free-form-field-renderer-slots"), st = /* @__PURE__ */ Symbol("free-form-field-reset-label-path-setting"), Ee = "free-form-field-renderers-slot";
134
- function ea(e) {
192
+ function _a(e) {
135
193
  return e === "undefined" ? void 0 : null;
136
194
  }
137
- const ta = {
195
+ const Va = {
138
196
  tooltipAttributes: {
139
197
  maxWidth: "300px",
140
198
  placement: "top"
141
199
  }
142
200
  };
143
- function aa(e, l = "") {
201
+ function Sa(e, r = "") {
144
202
  const t = {}, n = e;
145
- return Array.isArray(n.fields) ? Object.assign(t, Ie(n, l)) : e.type === "array" && e.elements ? Object.assign(t, Me(e, l)) : e.type === "map" && e.values && Object.assign(t, xe(e, l)), t;
203
+ return Array.isArray(n.fields) ? Object.assign(t, je(n, r)) : e.type === "array" && e.elements ? Object.assign(t, Oe(e, r)) : e.type === "map" && e.values && Object.assign(t, Me(e, r)), t;
146
204
  }
147
- function Ie(e, l = "") {
205
+ function je(e, r = "") {
148
206
  const t = {};
149
207
  if (Array.isArray(e.fields))
150
208
  for (const n of e.fields) {
151
- const o = Object.keys(n)[0], a = n[o], i = l ? x(l, o) : o;
209
+ const o = Object.keys(n)[0], a = n[o], i = r ? M(r, o) : o;
152
210
  if (t[i] = a, a.type === "record" && Array.isArray(a.fields)) {
153
- const u = Ie(a, i);
211
+ const u = je(a, i);
154
212
  Object.assign(t, u);
155
213
  } else if (a.type === "array" && a.elements) {
156
- const u = Me(a, i);
214
+ const u = Oe(a, i);
157
215
  Object.assign(t, u);
158
216
  } else if (a.type === "map" && a.values) {
159
- const u = xe(a, i);
217
+ const u = Me(a, i);
160
218
  Object.assign(t, u);
161
219
  }
162
220
  }
163
221
  return t;
164
222
  }
165
- function Me(e, l = "") {
223
+ function Oe(e, r = "") {
166
224
  const t = {};
167
225
  if (e.elements) {
168
226
  let n = e.elements;
169
- const o = x(l, Ye);
227
+ const o = M(r, Ye);
170
228
  if (e.encrypted && n.type === "string" && (n = { ...n, encrypted: !0 }), t[o] = n, n.type === "record" && Array.isArray(n.fields)) {
171
- const a = Ie(n, o);
229
+ const a = je(n, o);
172
230
  Object.assign(t, a);
173
231
  } else if (n.type === "array" && n.elements) {
174
- const a = Me(n, o);
232
+ const a = Oe(n, o);
175
233
  Object.assign(t, a);
176
234
  } else if (n.type === "map" && n.values) {
177
- const a = xe(n, o);
235
+ const a = Me(n, o);
178
236
  Object.assign(t, a);
179
237
  }
180
238
  }
181
239
  return t;
182
240
  }
183
- function xe(e, l = "") {
184
- const t = {}, n = x(l, Ge);
241
+ function Me(e, r = "") {
242
+ const t = {}, n = M(r, Ge);
185
243
  if (t[n] = e.values, e.values.type === "record" && Array.isArray(e.values.fields)) {
186
- const o = Ie(e.values, n);
244
+ const o = je(e.values, n);
187
245
  Object.assign(t, o);
188
246
  } else if ((e.values.type === "array" || e.values.type === "set") && e.values.elements) {
189
- const o = Me(e.values, n);
247
+ const o = Oe(e.values, n);
190
248
  Object.assign(t, o);
191
249
  } else if (e.values.type === "map" && e.values.values) {
192
- const o = xe(e.values, n);
250
+ const o = Me(e.values, n);
193
251
  Object.assign(t, o);
194
252
  }
195
253
  return t;
196
254
  }
197
- function ye(e, l) {
255
+ function ye(e, r) {
198
256
  const t = q(e), n = [];
199
257
  for (let o = 0; o < t.length; o++) {
200
- const a = t[o], i = n.length > 0 ? x(...n) : "", u = i ? l[i] : void 0;
258
+ const a = t[o], i = n.length > 0 ? M(...n) : "", u = i ? r[i] : void 0;
201
259
  u?.type === "map" ? n.push(Ge) : u?.type === "array" ? n.push(Ye) : n.push(a);
202
260
  }
203
- return x(...n);
261
+ return M(...n);
204
262
  }
205
- function na(e, l) {
206
- const t = R(e);
207
- function n() {
208
- return ea(R(l)?.emptyFieldValue);
209
- }
210
- const o = g(() => t ? aa(t) : {});
211
- function a(d) {
212
- if (d) {
213
- let y = ye(d, o.value || {});
214
- return y.startsWith(`${ce}${Oe}`) && (y = y.slice(2)), o.value?.[y];
263
+ function wa(e, r) {
264
+ const t = R(e), { i18n: n } = pe();
265
+ function o(g) {
266
+ return {
267
+ tooltip: n.t("version_compatibility.tooltip", { version: g })
268
+ };
269
+ }
270
+ function a() {
271
+ return _a(R(r)?.emptyFieldValue);
272
+ }
273
+ const i = k(() => t ? Sa(t) : {});
274
+ function u(g) {
275
+ if (g) {
276
+ let V = ye(g, i.value || {});
277
+ return V.startsWith(`${ce}${xe}`) && (V = V.slice(2)), i.value?.[V];
215
278
  }
216
279
  return t;
217
280
  }
218
- function i(d, y = !1) {
219
- const k = a(d);
220
- if (!k)
281
+ function m(g, V = !1) {
282
+ const c = u(g);
283
+ if (!c)
221
284
  return null;
222
- if (k.default !== void 0)
223
- return k.default;
224
- if (!k.auto)
225
- return y || k.required ? k.type === "record" ? u(k, d) : k.type === "array" ? [] : k.type === "map" ? {} : n() : n();
226
- }
227
- function u(d, y) {
228
- const k = {};
229
- if (Array.isArray(d.fields))
230
- for (const w of d.fields) {
231
- const F = Object.keys(w)[0], v = y ? `${y}.${F}` : F, $ = i(v, !1);
232
- $ !== void 0 && (k[F] = $);
285
+ if (c.default !== void 0)
286
+ return c.default;
287
+ if (!c.auto)
288
+ return V || c.required ? c.type === "record" ? l(c, g) : c.type === "array" ? [] : c.type === "map" ? {} : a() : a();
289
+ }
290
+ function l(g, V) {
291
+ const c = {};
292
+ if (Array.isArray(g.fields))
293
+ for (const h of g.fields) {
294
+ const y = Object.keys(h)[0], _ = V ? `${V}.${y}` : y, S = m(_, !1);
295
+ S !== void 0 && (c[y] = S);
233
296
  }
234
- return k;
297
+ return c;
235
298
  }
236
- function m(d) {
237
- return d ? i(d, !0) : u(a(), "");
299
+ function d(g) {
300
+ return g ? m(g, !0) : l(u(), "");
238
301
  }
239
- function r(d) {
240
- const y = a(d), k = y?.description ? xt.sanitize(Mt.parse(y.description, { async: !1 })) : void 0;
302
+ function v(g) {
303
+ const V = u(g), c = V?.description ? Ht.sanitize(qt.parse(V.description, { async: !1 })) : void 0;
241
304
  return {
242
- ...ta,
243
- "data-testid": `ff-label-${d}`,
244
- info: k
305
+ ...Va,
306
+ "data-testid": `ff-label-${g}`,
307
+ info: c
245
308
  };
246
309
  }
247
- function c(d) {
248
- const y = a(d);
249
- return Gt(y?.one_of || y.elements?.one_of || []);
310
+ function f(g) {
311
+ const c = u(g)?.min_ai_gateway_version;
312
+ if (!(!c || pt(R(r)?.minRuntimeVersion, c)))
313
+ return o(c);
314
+ }
315
+ function p(g) {
316
+ const V = u(g), c = V?.one_of || V.elements?.one_of || [], h = V?.enum_min_versions || V.elements?.enum_min_versions, y = la(c);
317
+ if (!h?.length)
318
+ return y;
319
+ const _ = R(r)?.minRuntimeVersion, S = new Map(h.map((x) => [x.value, x.min_ai_gateway_version]));
320
+ return y.map((x) => {
321
+ const I = S.get(x.value);
322
+ return !I || pt(_, I) ? x : {
323
+ ...x,
324
+ disabled: !0,
325
+ versionInfo: o(I)
326
+ };
327
+ });
250
328
  }
251
- function h(d) {
252
- const y = a(d), k = y?.default;
253
- let w = null;
254
- if (y?.type === "foreign" && k?.id)
255
- w = k.id;
329
+ function b(g) {
330
+ const V = u(g), c = V?.default;
331
+ let h = null;
332
+ if (V?.type === "foreign" && c?.id)
333
+ h = c.id;
256
334
  else {
257
- if (k == null || typeof k == "object" || k === "")
335
+ if (c == null || typeof c == "object" || c === "")
258
336
  return null;
259
- if (Array.isArray(k)) {
260
- if (k.length === 0)
337
+ if (Array.isArray(c)) {
338
+ if (c.length === 0)
261
339
  return null;
262
- w = k.join(", ");
340
+ h = c.join(", ");
263
341
  } else
264
- w = k.toString();
342
+ h = c.toString();
265
343
  }
266
- return `Default: ${w}`;
344
+ return `Default: ${h}`;
267
345
  }
268
- function f() {
269
- return o.value;
346
+ function $() {
347
+ return i.value;
270
348
  }
271
- function p(d) {
272
- return a(d)?.required ? m(d) : n();
349
+ function P(g) {
350
+ return u(g)?.required ? d(g) : a();
273
351
  }
274
352
  return {
275
- getSchemaMap: f,
276
- getSchema: a,
277
- getDefault: m,
278
- getSelectItems: c,
279
- getLabelAttributes: r,
280
- getPlaceholder: h,
281
- getEmptyOrDefault: p,
353
+ getSchemaMap: $,
354
+ getSchema: u,
355
+ getDefault: d,
356
+ getSelectItems: p,
357
+ getLabelAttributes: v,
358
+ getFieldVersionInfo: f,
359
+ getPlaceholder: b,
360
+ getEmptyOrDefault: P,
282
361
  /**
283
362
  * The configured empty-field sentinel on its own, with no schema/path
284
363
  * lookup and no required/default awareness. Use this (not
@@ -287,231 +366,231 @@ function na(e, l) {
287
366
  * back in, which would make it impossible to clear a required field
288
367
  * that has an explicit `schema.default`.
289
368
  */
290
- getEmptyValue: n
369
+ getEmptyValue: a
291
370
  };
292
371
  }
293
372
  const ze = /* @__PURE__ */ Symbol("ff-render-rule-exact-match");
294
- function Zn(e) {
373
+ function yr(e) {
295
374
  return { [ze]: e };
296
375
  }
297
- function ra(e, l) {
298
- return typeof l == "object" && l !== null && ze in l ? he(e, l[ze]) : Array.isArray(l) ? l.some((n) => he(e, n)) : he(e, l);
376
+ function Ea(e, r) {
377
+ return typeof r == "object" && r !== null && ze in r ? he(e, r[ze]) : Array.isArray(r) ? r.some((n) => he(e, n)) : he(e, r);
299
378
  }
300
- function la(e, l) {
301
- const t = se({}), n = se({});
302
- function o(v, $, b) {
303
- n.value[v] = { ...n.value[v], [$]: b ? [...b] : [] };
304
- }
305
- function a(v, $) {
306
- const b = n.value[v];
307
- if (!b || !($ in b)) return;
308
- const _ = { ...b };
309
- delete _[$], Object.keys(_).length ? n.value[v] = _ : delete n.value[v];
310
- }
311
- function i(v, $) {
312
- const b = v.map((S) => q(S).length), _ = b[0];
313
- if (!b.every((S) => S === _)) {
314
- const S = v.map((M, P) => ` - '${M}' is at level ${b[P]}`).join(`
379
+ function Pa(e, r) {
380
+ const t = oe({}), n = oe({});
381
+ function o(c, h, y) {
382
+ n.value[c] = { ...n.value[c], [h]: y ? [...y] : [] };
383
+ }
384
+ function a(c, h) {
385
+ const y = n.value[c];
386
+ if (!y || !(h in y)) return;
387
+ const _ = { ...y };
388
+ delete _[h], Object.keys(_).length ? n.value[c] = _ : delete n.value[c];
389
+ }
390
+ function i(c, h) {
391
+ const y = c.map((S) => q(S).length), _ = y[0];
392
+ if (!y.every((S) => S === _)) {
393
+ const S = c.map((x, I) => ` - '${x}' is at level ${y[I]}`).join(`
315
394
  `);
316
395
  throw new Error(
317
- `${$}: Fields must be at the same level. Found mixed levels:
396
+ `${h}: Fields must be at the same level. Found mixed levels:
318
397
  ${S}`
319
398
  );
320
399
  }
321
400
  }
322
- function u(v) {
323
- for (const [$, b] of Object.entries(v)) {
324
- if (!b.bundles) continue;
325
- for (const S of b.bundles)
401
+ function u(c) {
402
+ for (const [h, y] of Object.entries(c)) {
403
+ if (!y.bundles) continue;
404
+ for (const S of y.bundles)
326
405
  if (new Set(S).size !== S.length) {
327
- const P = S.filter((I, V) => S.indexOf(I) !== V);
406
+ const I = S.filter((O, w) => S.indexOf(O) !== w);
328
407
  throw new Error(
329
- `Self-cycle detected in bundle: field '${P[0]}' appears multiple times in [${S.join(", ")}]`
408
+ `Self-cycle detected in bundle: field '${I[0]}' appears multiple times in [${S.join(", ")}]`
330
409
  );
331
410
  }
332
411
  const _ = /* @__PURE__ */ new Map();
333
- for (const S of b.bundles)
334
- for (let M = 1; M < S.length; M++) {
335
- const P = S[M], I = S[M - 1];
336
- _.has(P) || _.set(P, /* @__PURE__ */ new Set()), _.get(P).add(I);
412
+ for (const S of y.bundles)
413
+ for (let x = 1; x < S.length; x++) {
414
+ const I = S[x], O = S[x - 1];
415
+ _.has(I) || _.set(I, /* @__PURE__ */ new Set()), _.get(I).add(O);
337
416
  }
338
417
  for (const S of _.keys()) {
339
- let M = function(V) {
340
- if (I.includes(V)) {
341
- const W = [...I, V].join(" -> ");
418
+ let x = function(w) {
419
+ if (O.includes(w)) {
420
+ const z = [...O, w].join(" -> ");
342
421
  throw new Error(
343
- `Circular bundle detected in path '${$}':
344
- ${W}`
422
+ `Circular bundle detected in path '${h}':
423
+ ${z}`
345
424
  );
346
425
  }
347
- if (P.has(V)) return;
348
- P.add(V), I.push(V);
349
- const E = _.get(V);
426
+ if (I.has(w)) return;
427
+ I.add(w), O.push(w);
428
+ const E = _.get(w);
350
429
  if (E)
351
- for (const W of E)
352
- M(W);
353
- I.pop();
430
+ for (const z of E)
431
+ x(z);
432
+ O.pop();
354
433
  };
355
- const P = /* @__PURE__ */ new Set(), I = [];
356
- M(S);
434
+ const I = /* @__PURE__ */ new Set(), O = [];
435
+ x(S);
357
436
  }
358
437
  }
359
438
  }
360
- function m(v) {
361
- for (const [$, b] of Object.entries(v))
362
- if (b.dependencies)
363
- for (const _ of Object.keys(b.dependencies)) {
364
- let S = function(I) {
365
- if (P.includes(I)) {
366
- const E = [...P, I].join(" -> ");
439
+ function m(c) {
440
+ for (const [h, y] of Object.entries(c))
441
+ if (y.dependencies)
442
+ for (const _ of Object.keys(y.dependencies)) {
443
+ let S = function(O) {
444
+ if (I.includes(O)) {
445
+ const E = [...I, O].join(" -> ");
367
446
  throw new Error(
368
- `Circular dependency detected in path '${$}':
447
+ `Circular dependency detected in path '${h}':
369
448
  ${E}`
370
449
  );
371
450
  }
372
- if (M.has(I)) return;
373
- M.add(I), P.push(I);
374
- const V = b.dependencies[I];
375
- if (V) {
376
- const [E] = V;
377
- b.dependencies[E] && S(E);
451
+ if (x.has(O)) return;
452
+ x.add(O), I.push(O);
453
+ const w = y.dependencies[O];
454
+ if (w) {
455
+ const [E] = w;
456
+ y.dependencies[E] && S(E);
378
457
  }
379
- P.pop();
458
+ I.pop();
380
459
  };
381
- const M = /* @__PURE__ */ new Set(), P = [];
460
+ const x = /* @__PURE__ */ new Set(), I = [];
382
461
  S(_);
383
462
  }
384
463
  }
385
- function r(v, $) {
386
- const b = v.map((S) => $ ? x($, S) : S), _ = q(b[0]);
387
- return _.pop(), x(..._);
464
+ function l(c, h) {
465
+ const y = c.map((S) => h ? M(h, S) : S), _ = q(y[0]);
466
+ return _.pop(), M(..._);
388
467
  }
389
- function c(v, $) {
390
- if (!$) return v;
391
- const b = `${$}${Oe}`;
392
- return v.startsWith(b) ? v.slice(b.length) : v;
468
+ function d(c, h) {
469
+ if (!h) return c;
470
+ const y = `${h}${xe}`;
471
+ return c.startsWith(y) ? c.slice(y.length) : c;
393
472
  }
394
- function h(v) {
395
- const $ = q(v);
396
- return $.pop(), x(...$);
473
+ function v(c) {
474
+ const h = q(c);
475
+ return h.pop(), M(...h);
397
476
  }
398
477
  function f() {
399
- const v = {};
400
- for (const [$, b] of Object.entries(t.value)) {
401
- const _ = $ === ce ? "" : $;
402
- if (b.bundles)
403
- for (const S of b.bundles) {
478
+ const c = {};
479
+ for (const [h, y] of Object.entries(t.value)) {
480
+ const _ = h === ce ? "" : h;
481
+ if (y.bundles)
482
+ for (const S of y.bundles) {
404
483
  if (S.length < 2)
405
484
  throw new Error(
406
485
  `Bundle must contain at least 2 fields. Found ${S.length} field(s) in bundle: [${S.join(", ")}]`
407
486
  );
408
- const M = S.map((V) => _ ? x(_, V) : V);
409
- i(M, `Bundle [${S.join(", ")}]`);
410
- const P = r(S, _) || ce;
411
- v[P] || (v[P] = {}), v[P].bundles || (v[P].bundles = []);
412
- const I = M.map((V) => c(V, P));
413
- v[P].bundles.push(I);
487
+ const x = S.map((w) => _ ? M(_, w) : w);
488
+ i(x, `Bundle [${S.join(", ")}]`);
489
+ const I = l(S, _) || ce;
490
+ c[I] || (c[I] = {}), c[I].bundles || (c[I].bundles = []);
491
+ const O = x.map((w) => d(w, I));
492
+ c[I].bundles.push(O);
414
493
  }
415
- if (b.dependencies)
416
- for (const [S, [M, P]] of Object.entries(b.dependencies)) {
417
- const I = _ ? x(_, S) : S, V = _ ? x(_, M) : M;
494
+ if (y.dependencies)
495
+ for (const [S, [x, I]] of Object.entries(y.dependencies)) {
496
+ const O = _ ? M(_, S) : S, w = _ ? M(_, x) : x;
418
497
  i(
419
- [I, V],
420
- `Dependency '${S}' -> '${M}'`
498
+ [O, w],
499
+ `Dependency '${S}' -> '${x}'`
421
500
  );
422
- const E = h(I) || ce;
423
- v[E] || (v[E] = {}), v[E].dependencies || (v[E].dependencies = {});
424
- const W = c(I, E), Y = c(V, E);
425
- v[E].dependencies[W] = [Y, P];
501
+ const E = v(O) || ce;
502
+ c[E] || (c[E] = {}), c[E].dependencies || (c[E].dependencies = {});
503
+ const z = d(O, E), Y = d(w, E);
504
+ c[E].dependencies[z] = [Y, I];
426
505
  }
427
506
  }
428
- return u(v), m(v), v;
507
+ return u(c), m(c), c;
429
508
  }
430
- const p = g(() => {
509
+ const p = k(() => {
431
510
  try {
432
511
  return f();
433
- } catch (v) {
434
- return console.error("Invalid render rules:", v instanceof Error ? v.message : String(v)), {};
512
+ } catch (c) {
513
+ return console.error("Invalid render rules:", c instanceof Error ? c.message : String(c)), {};
435
514
  }
436
515
  });
437
- function d(v) {
438
- if (!v)
516
+ function b(c) {
517
+ if (!c)
439
518
  return p.value;
440
- const $ = ye(v, e());
441
- return p.value[$];
442
- }
443
- function y(v) {
444
- let $ = !1;
445
- return g(() => {
446
- if ($) return;
447
- const b = R(v);
519
+ const h = ye(c, e());
520
+ return p.value[h];
521
+ }
522
+ function $(c) {
523
+ let h = !1;
524
+ return k(() => {
525
+ if (h) return;
526
+ const y = R(c);
448
527
  try {
449
- return d(b);
528
+ return b(y);
450
529
  } catch (_) {
451
- $ = !0, console.error(`Failed to get render rules for path: \`${b}\`,`, _ instanceof Error ? _.message : "");
530
+ h = !0, console.error(`Failed to get render rules for path: \`${y}\`,`, _ instanceof Error ? _.message : "");
452
531
  return;
453
532
  }
454
533
  });
455
534
  }
456
- const k = g(
535
+ const P = k(
457
536
  () => Object.values(p.value).some(
458
- (v) => v.dependencies && Object.keys(v.dependencies).length > 0
537
+ (c) => c.dependencies && Object.keys(c.dependencies).length > 0
459
538
  )
460
539
  );
461
- function w(v) {
540
+ function g(c) {
462
541
  const {
463
- fieldPath: $,
464
- rules: b,
542
+ fieldPath: h,
543
+ rules: y,
465
544
  omittedFields: _
466
- } = v, S = ft("omit-");
467
- ee([
468
- () => R(b),
469
- () => R($),
545
+ } = c, S = gt("omit-");
546
+ te([
547
+ () => R(y),
548
+ () => R(h),
470
549
  () => R(_)
471
- ], ([P, I, V], [, E]) => {
472
- P ? t.value[I] = P : delete t.value[I], o(I, S, V), E && E !== I && (delete t.value[E], a(E, S));
550
+ ], ([I, O, w], [, E]) => {
551
+ I ? t.value[O] = I : delete t.value[O], o(O, S, w), E && E !== O && (delete t.value[E], a(E, S));
473
552
  }, { immediate: !0, deep: !0 });
474
- const M = y($);
475
- return St(() => {
476
- const P = R($);
477
- delete t.value[P], a(P, S);
478
- }), M;
479
- }
480
- function F(v) {
481
- const $ = q(v);
482
- if (!$.length) return !1;
483
- const b = $[$.length - 1], _ = x(...$.slice(0, -1)), S = n.value[_];
553
+ const x = $(h);
554
+ return Ot(() => {
555
+ const I = R(h);
556
+ delete t.value[I], a(I, S);
557
+ }), x;
558
+ }
559
+ function V(c) {
560
+ const h = q(c);
561
+ if (!h.length) return !1;
562
+ const y = h[h.length - 1], _ = M(...h.slice(0, -1)), S = n.value[_];
484
563
  if (S) {
485
564
  const Y = Object.values(S);
486
- if (Y.length && Y.every((O) => O.includes(b))) return !1;
565
+ if (Y.length && Y.every((j) => j.includes(y))) return !1;
487
566
  }
488
- const M = _ === "" ? ce : ye(_, e()), P = p.value[M]?.dependencies?.[b];
489
- if (!P) return !1;
490
- const [I, V] = P, E = _ ? x(_, I) : I, W = Ve(l(), q(E));
491
- return !ra(W, V);
567
+ const x = _ === "" ? ce : ye(_, e()), I = p.value[x]?.dependencies?.[y];
568
+ if (!I) return !1;
569
+ const [O, w] = I, E = _ ? M(_, O) : O, z = Ve(r(), q(E));
570
+ return !Ea(z, w);
492
571
  }
493
572
  return {
494
- useCurrentRules: w,
495
- createComputedRules: y,
496
- hasDependencies: k,
497
- isFieldHidden: F
573
+ useCurrentRules: g,
574
+ createComputedRules: $,
575
+ hasDependencies: P,
576
+ isFieldHidden: V
498
577
  };
499
578
  }
500
579
  const Ke = "expressions", Le = "";
501
- function sa(e) {
502
- const l = q(Xe(e));
503
- if (!(l.length < 2))
504
- return x(Ke, ...l.slice(1));
580
+ function Ia(e) {
581
+ const r = q(Xe(e));
582
+ if (!(r.length < 2))
583
+ return M(Ke, ...r.slice(1));
505
584
  }
506
- function oa(e, l) {
585
+ function Ta(e, r) {
507
586
  const t = q(Xe(e));
508
587
  if (!(t[0] !== Ke || t.length < 2))
509
- return x(l, ...t.slice(1));
588
+ return M(r, ...t.slice(1));
510
589
  }
511
- function ia(e) {
512
- const l = e?.fields;
513
- if (Array.isArray(l))
514
- for (const t of l) {
590
+ function Fa(e) {
591
+ const r = e?.fields;
592
+ if (Array.isArray(r))
593
+ for (const t of r) {
515
594
  const n = Object.keys(t)[0];
516
595
  if (n === Ke) continue;
517
596
  const o = t[n];
@@ -519,36 +598,36 @@ function ia(e) {
519
598
  return n;
520
599
  }
521
600
  }
522
- function ua(e) {
601
+ function xa(e) {
523
602
  return !!e && e.type === "string" && "expressible_kong_type" in e;
524
603
  }
525
- let ca = 0;
526
- function da() {
527
- return `kid:${++ca}`;
604
+ let ja = 0;
605
+ function Oa() {
606
+ return `kid:${++ja}`;
528
607
  }
529
- function fa(e) {
530
- const l = it(/* @__PURE__ */ new Map());
531
- function t(r = "") {
532
- const c = da();
533
- return l.set(c, r), c;
608
+ function Ma(e) {
609
+ const r = vt(/* @__PURE__ */ new Map());
610
+ function t(l = "") {
611
+ const d = Oa();
612
+ return r.set(d, l), d;
534
613
  }
535
- function n(r) {
536
- return l.get(r);
614
+ function n(l) {
615
+ return r.get(l);
537
616
  }
538
- function o(r, c) {
539
- l.has(r) && l.set(r, c);
617
+ function o(l, d) {
618
+ r.has(l) && r.set(l, d);
540
619
  }
541
- function a(r) {
542
- l.delete(r);
620
+ function a(l) {
621
+ r.delete(l);
543
622
  }
544
- function i(r) {
545
- return pa(r, e, t);
623
+ function i(l) {
624
+ return Ka(l, e, t);
546
625
  }
547
- function u(r) {
548
- return ma(r, e, n);
626
+ function u(l) {
627
+ return La(l, e, n);
549
628
  }
550
629
  function m() {
551
- l.clear();
630
+ r.clear();
552
631
  }
553
632
  return {
554
633
  createKey: t,
@@ -560,265 +639,266 @@ function fa(e) {
560
639
  clear: m
561
640
  };
562
641
  }
563
- function pa(e, l, t) {
642
+ function Ka(e, r, t) {
564
643
  const n = (o, a) => {
565
644
  if (o == null || typeof o != "object")
566
645
  return o;
567
646
  if (Array.isArray(o))
568
- return o.map((m, r) => {
569
- const c = a ? x(a, `${r}`) : `${r}`;
570
- return n(m, c);
647
+ return o.map((m, l) => {
648
+ const d = a ? M(a, `${l}`) : `${l}`;
649
+ return n(m, d);
571
650
  });
572
- if ((a ? l(a) : l())?.type === "map") {
573
- const m = o, r = {};
574
- return Object.keys(m).forEach((c) => {
575
- const h = t(c), f = m[c], p = a ? x(a, c) : c;
576
- r[h] = n(f, p);
577
- }), r;
651
+ if ((a ? r(a) : r())?.type === "map") {
652
+ const m = o, l = {};
653
+ return Object.keys(m).forEach((d) => {
654
+ const v = t(d), f = m[d], p = a ? M(a, d) : d;
655
+ l[v] = n(f, p);
656
+ }), l;
578
657
  }
579
658
  const u = {};
580
659
  return Object.keys(o).forEach((m) => {
581
- const r = a ? x(a, m) : m;
582
- u[m] = n(o[m], r);
660
+ const l = a ? M(a, m) : m;
661
+ u[m] = n(o[m], l);
583
662
  }), u;
584
663
  };
585
664
  return n(e);
586
665
  }
587
- function ma(e, l, t) {
666
+ function La(e, r, t) {
588
667
  const n = (o, a) => {
589
668
  if (o == null || typeof o != "object")
590
669
  return o;
591
670
  if (Array.isArray(o))
592
- return o.map((m, r) => {
593
- const c = a ? x(a, `${r}`) : `${r}`;
594
- return n(m, c);
671
+ return o.map((m, l) => {
672
+ const d = a ? M(a, `${l}`) : `${l}`;
673
+ return n(m, d);
595
674
  });
596
- if ((a ? l(a) : l())?.type === "map") {
597
- const m = o, r = {};
598
- return Object.keys(m).forEach((c) => {
599
- const h = c, f = m[h], p = t(h);
675
+ if ((a ? r(a) : r())?.type === "map") {
676
+ const m = o, l = {};
677
+ return Object.keys(m).forEach((d) => {
678
+ const v = d, f = m[v], p = t(v);
600
679
  if (p == null) {
601
- console.error(`[FreeForm] Missing name for key ID: ${String(h)}`);
680
+ console.error(`[FreeForm] Missing name for key ID: ${String(v)}`);
602
681
  return;
603
682
  }
604
- const d = p || Ge, y = a ? x(a, d) : d;
605
- r[p] = n(f, y);
606
- }), r;
683
+ const b = p || Ge, $ = a ? M(a, b) : b;
684
+ l[p] = n(f, $);
685
+ }), l;
607
686
  }
608
687
  const u = {};
609
688
  return Object.keys(o).forEach((m) => {
610
- const r = a ? x(a, m) : m;
611
- u[m] = n(o[m], r);
689
+ const l = a ? M(a, m) : m;
690
+ u[m] = n(o[m], l);
612
691
  }), u;
613
692
  };
614
693
  return n(e);
615
694
  }
616
- function va(e) {
695
+ function Ra(e) {
617
696
  return /^kid:\d+$/.test(e);
618
697
  }
619
- const [ha, ya] = It(
620
- function(l) {
698
+ const [Ca, Ba] = Nt(
699
+ function(r) {
621
700
  const {
622
701
  schema: t,
623
702
  propsData: n,
624
703
  onChange: o,
625
704
  propsRenderRules: a,
626
705
  propsConfig: i
627
- } = l, {
706
+ } = r, {
628
707
  getDefault: u,
629
708
  getEmptyOrDefault: m,
630
- ...r
631
- } = na(t, () => R(i)), c = fa(r.getSchema), h = /* @__PURE__ */ new Map(), f = it({}), p = B(() => R(i) ?? {}), d = Se();
632
- je(Ue, jt(d, "default", Ee));
709
+ ...l
710
+ } = wa(t, () => R(i)), d = Ma(l.getSchema), v = /* @__PURE__ */ new Map(), f = vt({}), p = B(() => R(i) ?? {}), b = Se();
711
+ Fe(Ue, Bt(b, "default", we));
633
712
  const {
634
- useCurrentRules: y,
635
- createComputedRules: k,
636
- hasDependencies: w,
637
- isFieldHidden: F
638
- } = la(r.getSchemaMap, () => f), v = y({
713
+ useCurrentRules: $,
714
+ createComputedRules: P,
715
+ hasDependencies: g,
716
+ isFieldHidden: V
717
+ } = Pa(l.getSchemaMap, () => f), c = $({
639
718
  fieldPath: ce,
640
719
  rules: a
641
720
  });
642
- function $(O) {
643
- Object.keys(f).forEach((ne) => {
644
- delete f[ne];
645
- }), c.clear(), Object.assign(f, c.serialize(O));
721
+ function h(j) {
722
+ Object.keys(f).forEach((re) => {
723
+ delete f[re];
724
+ }), d.clear(), Object.assign(f, d.serialize(j));
646
725
  }
647
- const b = se(!1);
648
- function _(O) {
649
- let ne;
650
- !O || !P(R(O)) ? (b.value = !0, ne = u()) : (b.value = !1, ne = tt(R(O))), at(p.value.prepareFormData) ? $(p.value.prepareFormData(ne)) : $(ne);
726
+ const y = oe(!1);
727
+ function _(j) {
728
+ let re;
729
+ !j || !I(R(j)) ? (y.value = !0, re = u()) : (y.value = !1, re = tt(R(j))), at(p.value.prepareFormData) ? h(p.value.prepareFormData(re)) : h(re);
651
730
  }
652
- const S = ia(t);
653
- function M(O) {
654
- if (F(O)) return !0;
655
- const ne = S && oa(O, S);
656
- return !!ne && F(ne);
731
+ const S = Fa(t);
732
+ function x(j) {
733
+ if (V(j)) return !0;
734
+ const re = S && Ta(j, S);
735
+ return !!re && V(re);
657
736
  }
658
- function P(O) {
659
- return at(p.value.hasValue) ? p.value.hasValue(O) : !!O;
737
+ function I(j) {
738
+ return at(p.value.hasValue) ? p.value.hasValue(j) : !!j;
660
739
  }
661
- function I() {
662
- const O = tt(R(f));
663
- return w.value && mt(
664
- O,
665
- M,
740
+ function O() {
741
+ const j = tt(R(f));
742
+ return g.value && At(
743
+ j,
744
+ x,
666
745
  m
667
- ), c.deserialize(O);
746
+ ), d.deserialize(j);
668
747
  }
669
- ee(f, () => {
670
- o?.(I());
748
+ te(f, () => {
749
+ o?.(O());
671
750
  }, { deep: !0 });
672
- let V = !1;
673
- ee(() => n?.value, (O) => {
674
- V && he(I(), R(O)) || (_(O), V = !0);
751
+ let w = !1;
752
+ te(() => n?.value, (j) => {
753
+ w && he(O(), R(j)) || (_(j), w = !0);
675
754
  }, { deep: !0, immediate: !0 });
676
- function E(O) {
677
- return O != null && typeof O == "object" && !Array.isArray(O) ? c.serialize(O) : O;
755
+ function E(j) {
756
+ return j != null && typeof j == "object" && !Array.isArray(j) ? d.serialize(j) : j;
678
757
  }
679
- function W(O) {
680
- return E(u(O));
758
+ function z(j) {
759
+ return E(u(j));
681
760
  }
682
- function Y(O) {
683
- return E(m(O));
761
+ function Y(j) {
762
+ return E(m(j));
684
763
  }
685
764
  return {
686
765
  /**
687
766
  * The reactive form data object
688
767
  */
689
768
  formData: f,
690
- isSchemaDefaulted: b,
769
+ isSchemaDefaulted: y,
691
770
  schema: t,
692
771
  config: p,
693
- fieldRendererRegistry: h,
694
- setValue: $,
695
- useCurrentRenderRules: y,
696
- rootRenderRules: v,
697
- createComputedRenderRules: k,
698
- ...r,
699
- getValue: I,
700
- isFieldHidden: F,
701
- keyIdMap: c,
702
- getDefault: W,
772
+ fieldRendererRegistry: v,
773
+ setValue: h,
774
+ useCurrentRenderRules: $,
775
+ rootRenderRules: c,
776
+ createComputedRenderRules: P,
777
+ ...l,
778
+ getValue: O,
779
+ isFieldHidden: V,
780
+ keyIdMap: d,
781
+ getDefault: z,
703
782
  getEmptyOrDefault: Y
704
783
  };
705
784
  }
706
785
  );
707
- function te() {
708
- const e = ya();
786
+ function ae() {
787
+ const e = Ba();
709
788
  if (!e)
710
789
  throw new Error("useFormShared() called without provider.");
711
790
  return e;
712
791
  }
713
- function ba(e) {
714
- const { getSchema: l, getEmptyValue: t, isFieldHidden: n, formData: o } = te(), a = g(() => Xe(R(e))), i = g(() => sa(a.value)), u = g(() => i.value ? l(i.value) : void 0), m = g(() => {
715
- if (l(a.value)?.expressible) return !0;
716
- const F = q(a.value);
717
- if (F.length < 2) return !1;
718
- const v = l(x(...F.slice(0, -1)));
719
- return v?.type === "array" && !!v.expressible;
720
- }), r = g(() => m.value && ua(u.value)), c = g({
792
+ function Da(e) {
793
+ const { getSchema: r, getEmptyValue: t, isFieldHidden: n, formData: o } = ae(), a = k(() => Xe(R(e))), i = k(() => Ia(a.value)), u = k(() => i.value ? r(i.value) : void 0), m = k(() => {
794
+ if (r(a.value)?.expressible) return !0;
795
+ const V = q(a.value);
796
+ if (V.length < 2) return !1;
797
+ const c = r(M(...V.slice(0, -1)));
798
+ return c?.type === "array" && !!c.expressible;
799
+ }), l = k(() => m.value && xa(u.value)), d = k({
721
800
  get: () => i.value ? Ve(o, q(i.value)) : void 0,
722
- set: (F) => {
801
+ set: (V) => {
723
802
  if (i.value) {
724
- if (y.value) {
725
- h(F);
803
+ if ($.value) {
804
+ v(V);
726
805
  return;
727
806
  }
728
- qe(o, q(i.value), F);
807
+ Ne(o, q(i.value), V);
729
808
  }
730
809
  }
731
810
  });
732
- function h(F) {
733
- const v = q(i.value), $ = Number(v[v.length - 1]), b = v.slice(0, -1), _ = Ve(o, q(a.value).slice(0, -1)), S = Math.max(
811
+ function v(V) {
812
+ const c = q(i.value), h = Number(c[c.length - 1]), y = c.slice(0, -1), _ = Ve(o, q(a.value).slice(0, -1)), S = Math.max(
734
813
  Array.isArray(_) ? _.length : 0,
735
- $ + 1
736
- ), M = Ve(o, b), P = Array.from({ length: S }, (I, V) => {
737
- const E = Array.isArray(M) ? M[V] : void 0;
814
+ h + 1
815
+ ), x = Ve(o, y), I = Array.from({ length: S }, (O, w) => {
816
+ const E = Array.isArray(x) ? x[w] : void 0;
738
817
  return typeof E == "string" ? E : Le;
739
818
  });
740
- P[$] = F ?? Le, qe(o, b, P);
819
+ I[h] = V ?? Le, Ne(o, y, I);
741
820
  }
742
- const f = g(() => typeof c.value == "string" && c.value !== ""), p = g(() => u.value?.expressible_kong_type), d = g(() => n(a.value)), y = g(() => {
821
+ const f = k(() => typeof d.value == "string" && d.value !== ""), p = k(() => u.value?.expressible_kong_type), b = k(() => n(a.value)), $ = k(() => {
743
822
  if (!i.value) return !1;
744
- const F = q(i.value);
745
- return F.length < 2 ? !1 : l(x(...F.slice(0, -1)))?.type === "array";
746
- }), k = g(() => y.value ? Le : t());
747
- function w() {
748
- c.value = k.value;
823
+ const V = q(i.value);
824
+ return V.length < 2 ? !1 : r(M(...V.slice(0, -1)))?.type === "array";
825
+ }), P = k(() => $.value ? Le : t());
826
+ function g() {
827
+ d.value = P.value;
749
828
  }
750
829
  return {
751
- available: r,
830
+ available: l,
752
831
  expressionPath: i,
753
832
  schema: u,
754
- value: c,
833
+ value: d,
755
834
  hasExpression: f,
756
835
  kongType: p,
757
- hide: d,
758
- isArrayElement: y,
759
- emptyValue: k,
760
- clear: w
836
+ hide: b,
837
+ isArrayElement: $,
838
+ emptyValue: P,
839
+ clear: g
761
840
  };
762
841
  }
763
842
  const Qe = (e) => {
764
- const l = be(lt, g(() => "")), t = g(() => {
843
+ const r = be(st, k(() => "")), t = k(() => {
765
844
  const n = R(e);
766
845
  let o = n;
767
- return !rt(n) && l.value && (o = x(l.value, n)), rt(n) && (o = o.slice(ge("").length)), o;
846
+ return !rt(n) && r.value && (o = M(r.value, n)), rt(n) && (o = o.slice(ge("").length)), o;
768
847
  });
769
- return je(lt, t), t;
770
- }, ga = (e) => {
771
- const { getSchema: l, getSchemaMap: t, fieldRendererRegistry: n } = te(), { default: o, ...a } = Se(), i = be(Ue), u = [Ee, "item", "label", "tooltip"], m = g(() => {
772
- const r = R(i), c = t(), h = Object.keys(a).filter((f) => !u.includes(f)).reduce((f, p) => {
773
- const d = ye(x(R(e), p), c);
774
- return { ...f, [d]: a[p] };
848
+ return Fe(st, t), t;
849
+ }, Na = (e) => {
850
+ const { getSchema: r, getSchemaMap: t, fieldRendererRegistry: n } = ae(), { default: o, ...a } = Se(), i = be(Ue), u = [we, "item", "label", "tooltip"], m = k(() => {
851
+ const l = R(i), d = t(), v = Object.keys(a).filter((f) => !u.includes(f)).reduce((f, p) => {
852
+ const b = ye(M(R(e), p), d);
853
+ return { ...f, [b]: a[p] };
775
854
  }, {});
776
- return r ? { ...r, ...h } : h;
855
+ return l ? { ...l, ...v } : v;
777
856
  });
778
- return je(Ue, m), g(() => {
857
+ return Fe(Ue, m), k(() => {
779
858
  if (o) return;
780
- const r = R(e), c = m.value[ye(r, t())];
781
- if (c) return c;
782
- const h = t();
859
+ const l = R(e), d = m.value[ye(l, t())];
860
+ if (d) return d;
861
+ const v = t();
783
862
  for (const [f, p] of n) {
784
- const d = ye(r, h);
785
- if (f({ path: r, genericPath: d, schema: l(r) }))
863
+ const b = ye(l, v);
864
+ if (f({ path: l, genericPath: b, schema: r(l) }))
786
865
  return p;
787
866
  }
788
867
  });
789
- }, ka = /* @__PURE__ */ Symbol.for("kong-ui-public:entities-plugins:use-secret-input"), _e = "__FREEFORM_SCHEMA_MAP__";
790
- function Aa(e) {
791
- const { formData: l } = te(), t = Qe(e);
868
+ }, qa = /* @__PURE__ */ Symbol.for("kong-ui-public:entities-plugins:use-secret-input"), _e = "__FREEFORM_SCHEMA_MAP__";
869
+ function Ha(e) {
870
+ const { formData: r } = ae(), t = Qe(e);
792
871
  return {
793
- value: g({
794
- get: () => Ve(l, q(t.value)),
795
- set: (o) => qe(l, q(t.value), o)
872
+ value: k({
873
+ get: () => Ve(r, q(t.value)),
874
+ set: (o) => Ne(r, q(t.value), o)
796
875
  })
797
876
  };
798
877
  }
799
- function ae(e) {
800
- const { getSchema: l, isFieldHidden: t, getEmptyOrDefault: n, getEmptyValue: o } = te(), a = Qe(e), i = ga(a), { value: u } = Aa(e), m = g(() => l(a.value)), r = g(() => t(a.value)), c = g(() => n(a.value)), h = g(() => o());
801
- return m.value ? {
802
- schema: m,
803
- path: a,
804
- renderer: i,
805
- value: u,
806
- ancestors: yt(a),
878
+ function ne(e) {
879
+ const { getSchema: r, isFieldHidden: t, getEmptyOrDefault: n, getEmptyValue: o, getFieldVersionInfo: a } = ae(), i = Qe(e), u = Na(i), { value: m } = Ha(e), l = k(() => r(i.value)), d = k(() => t(i.value)), v = k(() => a(i.value)), f = k(() => n(i.value)), p = k(() => o());
880
+ return l.value ? {
881
+ schema: l,
882
+ path: i,
883
+ renderer: u,
884
+ value: m,
885
+ ancestors: Vt(i),
807
886
  /**
808
887
  * Hide the field but keep its state.
809
888
  */
810
- hide: r,
811
- emptyOrDefaultValue: c,
812
- emptyValue: h,
889
+ hide: d,
890
+ versionInfo: v,
891
+ emptyOrDefaultValue: f,
892
+ emptyValue: p,
813
893
  error: null
814
894
  } : {
815
- error: new Error(`path '${a.value}' is not found in schema.`)
895
+ error: new Error(`path '${i.value}' is not found in schema.`)
816
896
  };
817
897
  }
818
- function $a(e, l) {
898
+ function Ua(e, r) {
819
899
  const t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new Map();
820
900
  function o() {
821
- return ft(`${e}-`);
901
+ return gt(`${e}-`);
822
902
  }
823
903
  function a(i, u) {
824
904
  if (i == null || typeof i != "object")
@@ -828,23 +908,23 @@ function $a(e, l) {
828
908
  const m = n.has(u) ? n.get(u) : o();
829
909
  return n.set(u, m), t.set(i, m), m;
830
910
  }
831
- return ee(l, (i) => {
911
+ return te(r, (i) => {
832
912
  const u = R(i), m = /* @__PURE__ */ new Set();
833
- u.forEach((r, c) => {
834
- m.add(c);
835
- }), Array.from(n.keys()).forEach((r) => {
836
- m.has(r) || n.delete(r);
913
+ u.forEach((l, d) => {
914
+ m.add(d);
915
+ }), Array.from(n.keys()).forEach((l) => {
916
+ m.has(l) || n.delete(l);
837
917
  });
838
918
  }, { immediate: !0, deep: !0 }), { getKey: a };
839
919
  }
840
- function er(e, l) {
841
- ee(e, (t) => {
842
- window[_e] || (window[_e] = {}), window[_e][l] = ut(t);
843
- }, { immediate: !0, deep: !0 }), Et(() => {
844
- window[_e] && delete window[_e][l];
920
+ function br(e, r) {
921
+ te(e, (t) => {
922
+ window[_e] || (window[_e] = {}), window[_e][r] = ht(t);
923
+ }, { immediate: !0, deep: !0 }), Mt(() => {
924
+ window[_e] && delete window[_e][r];
845
925
  });
846
926
  }
847
- const _a = {
927
+ const za = {
848
928
  ip: "IP",
849
929
  ssl: "SSL",
850
930
  ttl: "TTL",
@@ -886,22 +966,22 @@ const _a = {
886
966
  redis: "Redis",
887
967
  uris: "URIs"
888
968
  };
889
- function bt(e) {
890
- return _a[e.toLocaleLowerCase()] ?? e;
969
+ function Et(e) {
970
+ return za[e.toLocaleLowerCase()] ?? e;
891
971
  }
892
- function gt(e) {
893
- return e.split("_").map(bt).join(" ");
972
+ function Pt(e) {
973
+ return e.split("_").map(Et).join(" ");
894
974
  }
895
- function Va(e, l) {
896
- const t = be(st, {
975
+ function Wa(e, r) {
976
+ const t = be(lt, {
897
977
  parentPath: null,
898
978
  isolate: !1
899
- }), { parentPath: n, isolate: o } = R(t), a = se(n ? x(n, e) : e), i = se({
979
+ }), { parentPath: n, isolate: o } = R(t), a = oe(n ? M(n, e) : e), i = oe({
900
980
  parentPath: a.value,
901
981
  isolate: o
902
982
  });
903
- return ee([B(l), B(t)], ([u, m]) => {
904
- const { parentPath: r, isolate: c } = m, h = r ? x(r, e) : e;
983
+ return te([B(r), B(t)], ([u, m]) => {
984
+ const { parentPath: l, isolate: d } = m, v = l ? M(l, e) : e;
905
985
  u ? {
906
986
  isolate: () => {
907
987
  a.value = e, i.value.isolate = !0, i.value.parentPath = null;
@@ -916,27 +996,27 @@ function Va(e, l) {
916
996
  i.value.isolate = !1, i.value.parentPath = null;
917
997
  },
918
998
  inherit: () => {
919
- a.value = h, i.value.isolate = !1, i.value.parentPath = h;
999
+ a.value = v, i.value.isolate = !1, i.value.parentPath = v;
920
1000
  }
921
- }[u]?.() : c && (a.value = e, i.value.isolate = !0, i.value.parentPath = null);
922
- }, { deep: !0, immediate: !0 }), je(st, i), a;
1001
+ }[u]?.() : d && (a.value = e, i.value.isolate = !0, i.value.parentPath = null);
1002
+ }, { deep: !0, immediate: !0 }), Fe(lt, i), a;
923
1003
  }
924
- function kt(e) {
925
- return q(e).map((t) => t.split("_").map(bt).join(" ")).map(Ot).join(" › ");
1004
+ function It(e) {
1005
+ return q(e).map((t) => t.split("_").map(Et).join(" ")).map(Dt).join(" › ");
926
1006
  }
927
- function Sa(e, l) {
928
- const t = R(e), n = ve(t), { config: o, getSchema: a } = te(), i = Va(n, l), u = yt(e);
929
- return g(() => {
930
- const m = i.value ?? n, r = u.value.parent?.path ? a(u.value.parent.path) : null, c = r?.type === "array", h = r?.type === "map";
931
- if (c || h)
1007
+ function Ja(e, r) {
1008
+ const t = R(e), n = ve(t), { config: o, getSchema: a } = ae(), i = Wa(n, r), u = Vt(e);
1009
+ return k(() => {
1010
+ const m = i.value ?? n, l = u.value.parent?.path ? a(u.value.parent.path) : null, d = l?.type === "array", v = l?.type === "map";
1011
+ if (d || v)
932
1012
  return "";
933
- const f = kt(m);
1013
+ const f = It(m);
934
1014
  return o.value.transformLabel ? o.value.transformLabel(f, t) : f;
935
1015
  });
936
1016
  }
937
- function oe(e, l) {
938
- const { getLabelAttributes: t, getPlaceholder: n, getSchema: o } = te(), a = R(e), i = R(l), u = Sa(e, B(() => R(l).resetLabelPath));
939
- return g(() => ({
1017
+ function ie(e, r) {
1018
+ const { getLabelAttributes: t, getPlaceholder: n, getSchema: o } = ae(), a = R(e), i = R(r), u = Ja(e, B(() => R(r).resetLabelPath));
1019
+ return k(() => ({
940
1020
  ...i,
941
1021
  placeholder: i.placeholder ?? n(a) ?? void 0,
942
1022
  labelAttributes: i.labelAttributes ?? t(a),
@@ -944,80 +1024,65 @@ function oe(e, l) {
944
1024
  required: i.required ?? o(a)?.required
945
1025
  }));
946
1026
  }
947
- function Ea(e, l) {
948
- const { value: t, ...n } = ae(e), { getEmptyOrDefault: o, keyIdMap: a } = te(), i = g(() => {
1027
+ function Ya(e, r) {
1028
+ const { value: t, ...n } = ne(e), { getEmptyOrDefault: o, keyIdMap: a } = ae(), i = k(() => {
949
1029
  if (n.path)
950
1030
  return n.schema.value.values;
951
- }), u = g(() => t ? Object.keys(t.value || {}).map((d) => {
952
- const y = d, k = a.getKey(y) ?? "";
953
- return [y, k];
1031
+ }), u = k(() => t ? Object.keys(t.value || {}).map((b) => {
1032
+ const $ = b, P = a.getKey($) ?? "";
1033
+ return [$, P];
954
1034
  }) : []);
955
- function m(p, d) {
956
- t && (a.updateKey(p, d), t.value = { ...t.value });
1035
+ function m(p, b) {
1036
+ t && (a.updateKey(p, b), t.value = { ...t.value });
957
1037
  }
958
- function r() {
1038
+ function l() {
959
1039
  if (!t) return;
960
- const p = a.createKey(), d = o(x(n.path.value, p));
1040
+ const p = a.createKey(), b = o(M(n.path.value, p));
961
1041
  return t.value = {
962
1042
  ...t.value,
963
- [p]: d
1043
+ [p]: b
964
1044
  }, p;
965
1045
  }
966
- function c(p) {
1046
+ function d(p) {
967
1047
  if (a.deleteKey(p), !t) return;
968
- const { [p]: d, ...y } = t.value || {};
969
- Object.keys(y).length === 0 ? t.value = n.schema?.value?.required ? {} : n.emptyValue.value : t.value = y;
1048
+ const { [p]: b, ...$ } = t.value || {};
1049
+ Object.keys($).length === 0 ? t.value = n.schema?.value?.required ? {} : n.emptyValue.value : t.value = $;
970
1050
  }
971
- function h(p) {
1051
+ function v(p) {
972
1052
  return a.getKey(p);
973
1053
  }
974
- const f = g(() => {
1054
+ const f = k(() => {
975
1055
  if (!n.path) return "";
976
1056
  const p = ve(n.path.value);
977
- let d = p;
978
- return va(p) && (d = a.getKey(p) ?? ""), gt(d);
1057
+ let b = p;
1058
+ return Ra(p) && (b = a.getKey(p) ?? ""), Pt(b);
979
1059
  });
980
- if (l && i.value?.type === "string") {
1060
+ if (r && i.value?.type === "string") {
981
1061
  let p = function() {
982
1062
  if (!t || !t.value) return null;
983
- const y = {};
984
- for (const [k, w] of Object.entries(t.value)) {
985
- const F = a.getKey(k);
986
- F && (y[F] = w);
1063
+ const $ = {};
1064
+ for (const [P, g] of Object.entries(t.value)) {
1065
+ const V = a.getKey(P);
1066
+ V && ($[V] = g);
987
1067
  }
988
- return y;
989
- }, d = null;
990
- ee(() => t?.value, (y) => {
991
- const k = p();
992
- he(d, k) || (d = k, l?.(k));
1068
+ return $;
1069
+ }, b = null;
1070
+ te(() => t?.value, ($) => {
1071
+ const P = p();
1072
+ he(b, P) || (b = P, r?.(P));
993
1073
  }, { deep: !0 });
994
1074
  }
995
1075
  return {
996
1076
  keys: u,
997
1077
  updateKey: m,
998
- addKey: r,
999
- removeKey: c,
1078
+ addKey: l,
1079
+ removeKey: d,
1000
1080
  field: n,
1001
1081
  fieldDisplayName: f,
1002
- getKeyName: h
1082
+ getKeyName: v
1003
1083
  };
1004
1084
  }
1005
- const wa = { add_entity: "Add {entity}", remove_entity: "Remove {entity}", enabled: "Enabled", disabled: "Disabled" }, Pa = { at_least_one_of: "At least one of the following values is required: {parameters}.", mutually_required: "These values must be used together: {parameters}.", mutually_exclusive: "Only one of these values can be used: {parameters}." }, Ta = "Use comma to separate values. eg: value1, value2", Fa = "Enter a UUID of {entity}", ja = { component_error: "The vault secret picker is not available" }, Oa = { add: "Add expression", remove: "Remove expression", label: "Kong plug-in dynamic expression", info: "Supply this value as an expression that is evaluated on every request. When set, it takes priority over the value entered above.", help: { text: "Define a Kong plug-in dynamic expression to evaluate each request. The expression must return {type}. {link}", learn: "Learn more" }, returns: { string: "a string", number: "a number", integer: "an integer", boolean: "a boolean value (true or false)", unknown: "a value of the type of the field above" } }, Ia = {
1006
- actions: wa,
1007
- field_rules: Pa,
1008
- tag_helper: Ta,
1009
- foreign_placeholder: Fa,
1010
- vault_picker: ja,
1011
- expression: Oa
1012
- };
1013
- function me() {
1014
- const e = Ht("en-us", Ia);
1015
- return {
1016
- i18n: e,
1017
- i18nT: Ut(e)
1018
- };
1019
- }
1020
- const $e = /* @__PURE__ */ z({
1085
+ const $e = /* @__PURE__ */ U({
1021
1086
  __name: "EnhancedInput",
1022
1087
  props: {
1023
1088
  modelValue: {},
@@ -1025,37 +1090,37 @@ const $e = /* @__PURE__ */ z({
1025
1090
  secret: { type: Boolean }
1026
1091
  },
1027
1092
  emits: ["update:modelValue"],
1028
- setup(e, { emit: l }) {
1029
- const t = e, n = Ae(), o = l, a = g(() => t.multiline ? Kt : t.secret ? zt : Lt), i = g(() => n.characterLimit ?? (t.multiline ? !1 : void 0)), u = se(t.modelValue);
1030
- ee(() => t.modelValue, (h) => {
1031
- u.value = h;
1093
+ setup(e, { emit: r }) {
1094
+ const t = e, n = Ae(), o = r, a = k(() => t.multiline ? Wt : t.secret ? aa : Jt), i = k(() => n.characterLimit ?? (t.multiline ? !1 : void 0)), u = oe(t.modelValue);
1095
+ te(() => t.modelValue, (v) => {
1096
+ u.value = v;
1032
1097
  });
1033
- const { config: m } = te(), r = (h) => {
1034
- h !== u.value && (u.value = h, m.value.updateOnChange || o("update:modelValue", h));
1035
- }, c = () => {
1098
+ const { config: m } = ae(), l = (v) => {
1099
+ v !== u.value && (u.value = v, m.value.updateOnChange || o("update:modelValue", v));
1100
+ }, d = () => {
1036
1101
  m.value.updateOnChange && o("update:modelValue", u.value);
1037
1102
  };
1038
- return (h, f) => (A(), T(s(a), J(h.$attrs, {
1103
+ return (v, f) => (A(), T(s(a), J(v.$attrs, {
1039
1104
  "character-limit": i.value,
1040
1105
  "model-value": e.modelValue,
1041
1106
  resizable: e.multiline ? !0 : void 0,
1042
- onChange: c,
1043
- "onUpdate:modelValue": r
1044
- }), G({ _: 2 }, [
1045
- de(Se(), (p, d) => ({
1046
- name: d,
1047
- fn: j((y) => [
1048
- C(h.$slots, d, We(ct(y)))
1107
+ onChange: d,
1108
+ "onUpdate:modelValue": l
1109
+ }), X({ _: 2 }, [
1110
+ de(Se(), (p, b) => ({
1111
+ name: b,
1112
+ fn: F(($) => [
1113
+ C(v.$slots, b, We(yt($)))
1049
1114
  ])
1050
1115
  }))
1051
1116
  ]), 1040, ["character-limit", "model-value", "resizable"]));
1052
1117
  }
1053
- }), Ma = {
1118
+ }), Ga = {
1054
1119
  condition: "https://developer.konghq.com/gateway/plugins/expressions/"
1055
- }, xa = ["data-expression-for", "data-testid"], Ka = {
1120
+ }, Xa = ["data-expression-for", "data-testid"], Qa = {
1056
1121
  key: 1,
1057
1122
  class: "ff-expression-editor-expanded"
1058
- }, La = /* @__PURE__ */ z({
1123
+ }, Za = /* @__PURE__ */ U({
1059
1124
  name: "ExpressionEditor",
1060
1125
  __name: "ExpressionEditor",
1061
1126
  props: {
@@ -1063,8 +1128,8 @@ const $e = /* @__PURE__ */ z({
1063
1128
  placeholder: {}
1064
1129
  },
1065
1130
  setup(e) {
1066
- const { i18n: l, i18nT: t } = me(), n = Qe(B(() => e.name)), o = ba(n), a = g(() => ge(o.expressionPath.value)), i = se(o.hasExpression.value);
1067
- ee(o.hasExpression, (f) => {
1131
+ const { i18n: r, i18nT: t } = pe(), n = Qe(B(() => e.name)), o = Da(n), a = k(() => ge(o.expressionPath.value)), i = oe(o.hasExpression.value);
1132
+ te(o.hasExpression, (f) => {
1068
1133
  f && (i.value = !0);
1069
1134
  });
1070
1135
  const u = {
@@ -1072,50 +1137,50 @@ const $e = /* @__PURE__ */ z({
1072
1137
  number: "expression.returns.number",
1073
1138
  integer: "expression.returns.integer",
1074
1139
  boolean: "expression.returns.boolean"
1075
- }, m = g(() => {
1140
+ }, m = k(() => {
1076
1141
  const f = o.kongType.value;
1077
1142
  return f && f in u ? u[f] : "expression.returns.unknown";
1078
- }), r = g(() => ({
1079
- info: l.t("expression.info"),
1143
+ }), l = k(() => ({
1144
+ info: r.t("expression.info"),
1080
1145
  tooltipAttributes: { maxWidth: "300px", placement: "top" },
1081
1146
  "data-testid": `ff-expression-label-${n.value}`
1082
1147
  }));
1083
- function c(f) {
1148
+ function d(f) {
1084
1149
  o.value.value = f;
1085
1150
  }
1086
- function h() {
1151
+ function v() {
1087
1152
  o.clear(), i.value = !1;
1088
1153
  }
1089
- return (f, p) => s(o).available.value ? Q((A(), L("div", {
1154
+ return (f, p) => s(o).available.value ? Z((A(), L("div", {
1090
1155
  key: 0,
1091
1156
  class: "ff-expression-editor",
1092
1157
  "data-expression-for": s(o).expressionPath.value,
1093
1158
  "data-testid": `ff-expression-${s(n)}`
1094
1159
  }, [
1095
- i.value ? (A(), L("div", Ka, [
1160
+ i.value ? (A(), L("div", Qa, [
1096
1161
  K(Ze, {
1097
1162
  class: "ff-expression-editor-input",
1098
- label: s(l).t("expression.label"),
1099
- "label-attributes": r.value,
1163
+ label: s(r).t("expression.label"),
1164
+ "label-attributes": l.value,
1100
1165
  multiline: "",
1101
1166
  name: a.value,
1102
1167
  placeholder: e.placeholder ?? "",
1103
1168
  rows: 3,
1104
- "onUpdate:modelValue": c
1169
+ "onUpdate:modelValue": d
1105
1170
  }, {
1106
- help: j(() => [
1171
+ help: F(() => [
1107
1172
  C(f.$slots, "help", {}, () => [
1108
1173
  K(s(t), { keypath: "expression.help.text" }, {
1109
- type: j(() => [
1110
- ie(re(s(l).t(m.value)), 1)
1174
+ type: F(() => [
1175
+ se(G(s(r).t(m.value)), 1)
1111
1176
  ]),
1112
- link: j(() => [
1113
- K(s(Rt), {
1177
+ link: F(() => [
1178
+ K(s(Yt), {
1114
1179
  "hide-icon": "",
1115
- href: s(Ma).condition
1180
+ href: s(Ga).condition
1116
1181
  }, {
1117
- default: j(() => [
1118
- ie(re(s(l).t("expression.help.learn")), 1)
1182
+ default: F(() => [
1183
+ se(G(s(r).t("expression.help.learn")), 1)
1119
1184
  ]),
1120
1185
  _: 1
1121
1186
  }, 8, ["href"])
@@ -1128,13 +1193,13 @@ const $e = /* @__PURE__ */ z({
1128
1193
  }, 8, ["label", "label-attributes", "name", "placeholder"]),
1129
1194
  K(s(nt), {
1130
1195
  appearance: "tertiary",
1131
- "aria-label": s(l).t("expression.remove"),
1196
+ "aria-label": s(r).t("expression.remove"),
1132
1197
  class: "ff-expression-editor-remove",
1133
1198
  "data-testid": `ff-expression-remove-${s(n)}`,
1134
1199
  icon: "",
1135
- onClick: h
1200
+ onClick: v
1136
1201
  }, {
1137
- default: j(() => [
1202
+ default: F(() => [
1138
1203
  K(s(Je))
1139
1204
  ]),
1140
1205
  _: 1
@@ -1144,24 +1209,27 @@ const $e = /* @__PURE__ */ z({
1144
1209
  appearance: "tertiary",
1145
1210
  class: "ff-expression-editor-add",
1146
1211
  "data-testid": `ff-expression-add-${s(n)}`,
1147
- onClick: p[0] || (p[0] = (d) => i.value = !0)
1212
+ onClick: p[0] || (p[0] = (b) => i.value = !0)
1148
1213
  }, {
1149
- default: j(() => [
1150
- K(s(Fe)),
1151
- ie(" " + re(s(l).t("expression.add")), 1)
1214
+ default: F(() => [
1215
+ K(s(Te)),
1216
+ se(" " + G(s(r).t("expression.add")), 1)
1152
1217
  ]),
1153
1218
  _: 1
1154
1219
  }, 8, ["data-testid"]))
1155
- ], 8, xa)), [
1156
- [Z, !s(o).hide.value]
1157
- ]) : H("", !0);
1220
+ ], 8, Xa)), [
1221
+ [ee, !s(o).hide.value]
1222
+ ]) : D("", !0);
1158
1223
  }
1159
- }), X = (e, l) => {
1224
+ }), Q = (e, r) => {
1160
1225
  const t = e.__vccOpts || e;
1161
- for (const [n, o] of l)
1226
+ for (const [n, o] of r)
1162
1227
  t[n] = o;
1163
1228
  return t;
1164
- }, At = /* @__PURE__ */ X(La, [["__scopeId", "data-v-5ad66299"]]), Ra = ["innerHTML"], Ca = /* @__PURE__ */ z({
1229
+ }, Tt = /* @__PURE__ */ Q(Za, [["__scopeId", "data-v-5ad66299"]]), en = {
1230
+ key: 0,
1231
+ class: "ff-version-compatibility-note"
1232
+ }, tn = ["innerHTML"], an = /* @__PURE__ */ U({
1165
1233
  inheritAttrs: !1,
1166
1234
  __name: "StringField",
1167
1235
  props: {
@@ -1188,106 +1256,110 @@ const $e = /* @__PURE__ */ z({
1188
1256
  name: {}
1189
1257
  },
1190
1258
  emits: ["update:modelValue"],
1191
- setup(e, { emit: l }) {
1192
- const t = Ae(), { i18n: n } = me(), o = be(ka, g(() => !1)), a = fe(e, ["autofocus", "showVaultSecretPicker", "showPasswordMaskToggle", "expressionEditor", "name"]), i = l, { value: u, hide: m, ...r } = ae(B(() => e.name)), c = oe(r.path, B({ ...a, ...t }));
1193
- function h(F) {
1194
- u.value = F === "" ? r.emptyValue.value : F, i("update:modelValue", u.value);
1259
+ setup(e, { emit: r }) {
1260
+ const t = Ae(), { i18n: n } = pe(), o = be(qa, k(() => !1)), a = fe(e, ["autofocus", "showVaultSecretPicker", "showPasswordMaskToggle", "expressionEditor", "name"]), i = r, { value: u, hide: m, versionInfo: l, ...d } = ne(B(() => e.name)), v = ie(d.path, B({ ...a, ...t })), f = k(() => !!a.disabled || !!l?.value);
1261
+ function p(h) {
1262
+ u.value = h === "" ? d.emptyValue.value : h, i("update:modelValue", u.value);
1195
1263
  }
1196
- const f = g(() => e.showPasswordMaskToggle !== void 0 ? e.showPasswordMaskToggle : a.type === "password" ? !0 : !!(r.schema?.value).encrypted), p = be(pt, void 0), d = g(() => e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!r.schema.value?.referenceable), y = g(() => ({ referenceable: d.value })), k = g(() => ge(r.path?.value ?? "")), w = g(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : ve(e.name) === "name");
1197
- return (F, v) => {
1198
- const $ = N("KAlert");
1199
- return r.error ? (A(), T($, {
1264
+ const b = k(() => e.showPasswordMaskToggle !== void 0 ? e.showPasswordMaskToggle : a.type === "password" ? !0 : !!(d.schema?.value).encrypted), $ = be(kt, void 0), P = k(() => e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!d.schema.value?.referenceable), g = k(() => ({ referenceable: P.value })), V = k(() => ge(d.path?.value ?? "")), c = k(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : ve(e.name) === "name");
1265
+ return (h, y) => {
1266
+ const _ = H("KAlert");
1267
+ return d.error ? (A(), T(_, {
1200
1268
  key: 0,
1201
1269
  appearance: "danger",
1202
- message: r.error.message
1203
- }, null, 8, ["message"])) : Q((A(), L("div", We(J({ key: 1 }, F.$attrs)), [
1204
- K($e, J(s(c), {
1270
+ message: d.error.message
1271
+ }, null, 8, ["message"])) : Z((A(), L("div", We(J({ key: 1 }, h.$attrs)), [
1272
+ K($e, J(s(v), {
1205
1273
  id: e.inputId,
1206
1274
  class: "ff-string-field",
1207
- "data-1p-ignore": w.value,
1275
+ "data-1p-ignore": c.value,
1208
1276
  "data-autofocus": e.autofocus ? "true" : void 0,
1209
- "data-testid": `ff-${r.path.value}`,
1277
+ "data-testid": `ff-${d.path.value}`,
1278
+ disabled: f.value,
1210
1279
  error: e.error,
1211
1280
  "error-message": e.errorMessage,
1212
1281
  help: e.multiline && e.error ? e.errorMessage : e.help,
1213
1282
  "model-value": s(u) ?? "",
1214
1283
  multiline: e.multiline,
1215
- placeholder: e.placeholder ?? s(c).placeholder,
1216
- secret: f.value && s(o),
1217
- "show-password-mask-toggle": f.value && !s(o),
1218
- type: f.value && !s(o) ? "password" : f.value ? void 0 : "text",
1219
- "onUpdate:modelValue": h
1220
- }), G({ _: 2 }, [
1221
- s(c).labelAttributes?.info ? {
1284
+ placeholder: e.placeholder ?? s(v).placeholder,
1285
+ secret: b.value && s(o),
1286
+ "show-password-mask-toggle": b.value && !s(o),
1287
+ type: b.value && !s(o) ? "password" : b.value ? void 0 : "text",
1288
+ "onUpdate:modelValue": p
1289
+ }), X({ _: 2 }, [
1290
+ s(v).labelAttributes?.info || s(l) ? {
1222
1291
  name: "label-tooltip",
1223
- fn: j(() => [
1224
- C(F.$slots, "tooltip", {}, () => [
1225
- U("div", {
1226
- innerHTML: s(c).labelAttributes.info
1227
- }, null, 8, Ra)
1292
+ fn: F(() => [
1293
+ C(h.$slots, "tooltip", {}, () => [
1294
+ s(l) ? (A(), L("p", en, G(s(l).tooltip), 1)) : D("", !0),
1295
+ s(v).labelAttributes?.info ? (A(), L("div", {
1296
+ key: 1,
1297
+ class: "ff-label-tooltip-info",
1298
+ innerHTML: s(v).labelAttributes.info
1299
+ }, null, 8, tn)) : D("", !0)
1228
1300
  ], !0)
1229
1301
  ]),
1230
1302
  key: "0"
1231
1303
  } : void 0,
1232
- !(e.multiline && e.error) && F.$slots.help ? {
1304
+ !(e.multiline && e.error) && h.$slots.help ? {
1233
1305
  name: "help",
1234
- fn: j(() => [
1235
- C(F.$slots, "help", {}, void 0, !0)
1306
+ fn: F(() => [
1307
+ C(h.$slots, "help", {}, void 0, !0)
1236
1308
  ]),
1237
1309
  key: "1"
1238
1310
  } : void 0,
1239
1311
  !e.multiline && e.inlineVaultPicker ? {
1240
1312
  name: "after",
1241
- fn: j(() => [
1242
- s(p) && d.value ? (A(), T(ue(s(p)), {
1313
+ fn: F(() => [
1314
+ s($) && P.value ? (A(), T(ue(s($)), {
1243
1315
  key: 0,
1244
- schema: y.value,
1245
- update: h,
1316
+ schema: g.value,
1317
+ update: p,
1246
1318
  value: s(u) ?? ""
1247
- }, null, 8, ["schema", "value"])) : H("", !0),
1248
- d.value && !s(p) ? (A(), T($, {
1319
+ }, null, 8, ["schema", "value"])) : D("", !0),
1320
+ P.value && !s($) ? (A(), T(_, {
1249
1321
  key: 1,
1250
1322
  appearance: "warning",
1251
- "data-testid": `ff-vault-secret-picker-warning-${r.path.value}`,
1323
+ "data-testid": `ff-vault-secret-picker-warning-${d.path.value}`,
1252
1324
  message: s(n).t("vault_picker.component_error")
1253
- }, null, 8, ["data-testid", "message"])) : H("", !0)
1325
+ }, null, 8, ["data-testid", "message"])) : D("", !0)
1254
1326
  ]),
1255
1327
  key: "2"
1256
1328
  } : void 0
1257
- ]), 1040, ["id", "data-1p-ignore", "data-autofocus", "data-testid", "error", "error-message", "help", "model-value", "multiline", "placeholder", "secret", "show-password-mask-toggle", "type"]),
1258
- e.inlineVaultPicker ? H("", !0) : (A(), L(le, { key: 0 }, [
1259
- s(p) && d.value ? (A(), T(ue(s(p)), {
1329
+ ]), 1040, ["id", "data-1p-ignore", "data-autofocus", "data-testid", "disabled", "error", "error-message", "help", "model-value", "multiline", "placeholder", "secret", "show-password-mask-toggle", "type"]),
1330
+ e.inlineVaultPicker ? D("", !0) : (A(), L(le, { key: 0 }, [
1331
+ s($) && P.value ? (A(), T(ue(s($)), {
1260
1332
  key: 0,
1261
- schema: y.value,
1262
- update: h,
1333
+ schema: g.value,
1334
+ update: p,
1263
1335
  value: s(u) ?? ""
1264
- }, null, 8, ["schema", "value"])) : H("", !0),
1265
- d.value && !s(p) ? (A(), T($, {
1336
+ }, null, 8, ["schema", "value"])) : D("", !0),
1337
+ P.value && !s($) ? (A(), T(_, {
1266
1338
  key: 1,
1267
1339
  appearance: "warning",
1268
- "data-testid": `ff-vault-secret-picker-warning-${r.path.value}`,
1340
+ "data-testid": `ff-vault-secret-picker-warning-${d.path.value}`,
1269
1341
  message: s(n).t("vault_picker.component_error")
1270
- }, null, 8, ["data-testid", "message"])) : H("", !0)
1342
+ }, null, 8, ["data-testid", "message"])) : D("", !0)
1271
1343
  ], 64)),
1272
- e.expressionEditor !== !1 ? (A(), T(At, J({
1344
+ e.expressionEditor !== !1 ? (A(), T(Tt, J({
1273
1345
  key: 1,
1274
1346
  class: "ff-string-field-expression",
1275
- name: k.value
1276
- }, e.expressionEditor || {}), G({ _: 2 }, [
1277
- F.$slots["expression-help"] ? {
1347
+ name: V.value
1348
+ }, e.expressionEditor || {}), X({ _: 2 }, [
1349
+ h.$slots["expression-help"] ? {
1278
1350
  name: "help",
1279
- fn: j(() => [
1280
- C(F.$slots, "expression-help", {}, void 0, !0)
1351
+ fn: F(() => [
1352
+ C(h.$slots, "expression-help", {}, void 0, !0)
1281
1353
  ]),
1282
1354
  key: "0"
1283
1355
  } : void 0
1284
- ]), 1040, ["name"])) : H("", !0)
1356
+ ]), 1040, ["name"])) : D("", !0)
1285
1357
  ], 16)), [
1286
- [Z, !s(m)]
1358
+ [ee, !s(m)]
1287
1359
  ]);
1288
1360
  };
1289
1361
  }
1290
- }), Ze = /* @__PURE__ */ X(Ca, [["__scopeId", "data-v-e3ea0c47"]]), Ba = ["innerHTML"], Da = /* @__PURE__ */ z({
1362
+ }), Ze = /* @__PURE__ */ Q(an, [["__scopeId", "data-v-88bd6420"]]), nn = ["innerHTML"], rn = /* @__PURE__ */ U({
1291
1363
  inheritAttrs: !1,
1292
1364
  __name: "BooleanField",
1293
1365
  props: {
@@ -1297,40 +1369,40 @@ const $e = /* @__PURE__ */ z({
1297
1369
  name: {}
1298
1370
  },
1299
1371
  emits: ["update:modelValue"],
1300
- setup(e, { emit: l }) {
1301
- const t = fe(e, ["autofocus", "name"]), { value: n, hide: o, emptyOrDefaultValue: a, ...i } = ae(B(() => e.name)), u = l, m = (c) => {
1302
- n.value = c, u("update:modelValue", c);
1303
- }, r = oe(i.path, t);
1304
- return (c, h) => {
1305
- const f = N("KAlert");
1372
+ setup(e, { emit: r }) {
1373
+ const t = fe(e, ["autofocus", "name"]), { value: n, hide: o, emptyOrDefaultValue: a, ...i } = ne(B(() => e.name)), u = r, m = (d) => {
1374
+ n.value = d, u("update:modelValue", d);
1375
+ }, l = ie(i.path, t);
1376
+ return (d, v) => {
1377
+ const f = H("KAlert");
1306
1378
  return i.error ? (A(), T(f, {
1307
1379
  key: 0,
1308
1380
  appearance: "danger",
1309
1381
  message: i.error.message
1310
- }, null, 8, ["message"])) : Q((A(), T(s(Ct), J({ key: 1 }, { ...s(r), ...c.$attrs }, {
1382
+ }, null, 8, ["message"])) : Z((A(), T(s(Gt), J({ key: 1 }, { ...s(l), ...d.$attrs }, {
1311
1383
  class: "ff-boolean-field",
1312
1384
  "data-autofocus": e.autofocus ? "true" : void 0,
1313
1385
  "data-testid": `ff-${i.path.value}`,
1314
1386
  "model-value": !!(s(n) == null ? s(a) : s(n)),
1315
1387
  "onUpdate:modelValue": m
1316
- }), G({ _: 2 }, [
1317
- s(r).labelAttributes?.info ? {
1388
+ }), X({ _: 2 }, [
1389
+ s(l).labelAttributes?.info ? {
1318
1390
  name: "tooltip",
1319
- fn: j(() => [
1320
- C(c.$slots, "tooltip", {}, () => [
1321
- U("div", {
1322
- innerHTML: s(r).labelAttributes.info
1323
- }, null, 8, Ba)
1391
+ fn: F(() => [
1392
+ C(d.$slots, "tooltip", {}, () => [
1393
+ W("div", {
1394
+ innerHTML: s(l).labelAttributes.info
1395
+ }, null, 8, nn)
1324
1396
  ], !0)
1325
1397
  ]),
1326
1398
  key: "0"
1327
1399
  } : void 0
1328
1400
  ]), 1040, ["data-autofocus", "data-testid", "model-value"])), [
1329
- [Z, !s(o)]
1401
+ [ee, !s(o)]
1330
1402
  ]);
1331
1403
  };
1332
1404
  }
1333
- }), qa = /* @__PURE__ */ X(Da, [["__scopeId", "data-v-20e5bee4"]]), Na = ["data-testid"], Ha = ["innerHTML"], Ua = /* @__PURE__ */ z({
1405
+ }), sn = /* @__PURE__ */ Q(rn, [["__scopeId", "data-v-20e5bee4"]]), ln = ["data-testid"], on = ["innerHTML"], un = /* @__PURE__ */ U({
1334
1406
  inheritAttrs: !1,
1335
1407
  __name: "StringArrayField",
1336
1408
  props: {
@@ -1340,59 +1412,59 @@ const $e = /* @__PURE__ */ z({
1340
1412
  name: {}
1341
1413
  },
1342
1414
  emits: ["update:modelValue"],
1343
- setup(e, { emit: l }) {
1344
- const t = Ae(), n = fe(e, ["autofocus", "name"]), o = l, { value: a, hide: i, ...u } = ae(B(() => e.name)), m = oe(u.path, B({ ...n, ...t })), r = g(() => u.schema?.value?.len_min && u.schema.value.len_min > 0), c = se("");
1345
- function h(y) {
1346
- return y.map((k) => k.trim()).filter(Boolean).join(", ");
1415
+ setup(e, { emit: r }) {
1416
+ const t = Ae(), n = fe(e, ["autofocus", "name"]), o = r, { value: a, hide: i, ...u } = ne(B(() => e.name)), m = ie(u.path, B({ ...n, ...t })), l = k(() => u.schema?.value?.len_min && u.schema.value.len_min > 0), d = oe("");
1417
+ function v($) {
1418
+ return $.map((P) => P.trim()).filter(Boolean).join(", ");
1347
1419
  }
1348
- function f(y) {
1349
- return y.trim().split(",").map((k) => k.trim()).filter(Boolean);
1420
+ function f($) {
1421
+ return $.trim().split(",").map((P) => P.trim()).filter(Boolean);
1350
1422
  }
1351
- function p(y) {
1352
- c.value = y;
1353
- const k = f(y), w = !k.length && r.value ? u.emptyValue.value : k;
1354
- a.value = w, o("update:modelValue", w);
1423
+ function p($) {
1424
+ d.value = $;
1425
+ const P = f($), g = !P.length && l.value ? u.emptyValue.value : P;
1426
+ a.value = g, o("update:modelValue", g);
1355
1427
  }
1356
- const d = g(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : ve(e.name) === "name");
1357
- return ee(a, (y) => {
1358
- const k = y ? h(y) : "";
1359
- h(f(c.value)) !== k && (c.value = k);
1360
- }, { immediate: !0 }), (y, k) => {
1361
- const w = N("KAlert");
1362
- return u.error ? (A(), T(w, {
1428
+ const b = k(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : ve(e.name) === "name");
1429
+ return te(a, ($) => {
1430
+ const P = $ ? v($) : "";
1431
+ v(f(d.value)) !== P && (d.value = P);
1432
+ }, { immediate: !0 }), ($, P) => {
1433
+ const g = H("KAlert");
1434
+ return u.error ? (A(), T(g, {
1363
1435
  key: 0,
1364
1436
  appearance: "danger",
1365
1437
  message: u.error.message
1366
- }, null, 8, ["message"])) : Q((A(), L("div", {
1438
+ }, null, 8, ["message"])) : Z((A(), L("div", {
1367
1439
  key: 1,
1368
1440
  "data-testid": `ff-tag-${u.path.value}`
1369
1441
  }, [
1370
1442
  K($e, J(s(m), {
1371
1443
  class: "ff-tag-field",
1372
- "data-1p-ignore": d.value,
1444
+ "data-1p-ignore": b.value,
1373
1445
  "data-autofocus": e.autofocus ? "true" : void 0,
1374
1446
  "data-testid": `ff-${u.path.value}`,
1375
- "model-value": c.value ?? "",
1447
+ "model-value": d.value ?? "",
1376
1448
  "onUpdate:modelValue": p
1377
- }), G({ _: 2 }, [
1449
+ }), X({ _: 2 }, [
1378
1450
  s(m).labelAttributes?.info ? {
1379
1451
  name: "label-tooltip",
1380
- fn: j(() => [
1381
- C(y.$slots, "tooltip", {}, () => [
1382
- U("div", {
1452
+ fn: F(() => [
1453
+ C($.$slots, "tooltip", {}, () => [
1454
+ W("div", {
1383
1455
  innerHTML: s(m).labelAttributes.info
1384
- }, null, 8, Ha)
1456
+ }, null, 8, on)
1385
1457
  ], !0)
1386
1458
  ]),
1387
1459
  key: "0"
1388
1460
  } : void 0
1389
1461
  ]), 1040, ["data-1p-ignore", "data-autofocus", "data-testid", "model-value"])
1390
- ], 8, Na)), [
1391
- [Z, !s(i)]
1462
+ ], 8, ln)), [
1463
+ [ee, !s(i)]
1392
1464
  ]);
1393
1465
  };
1394
1466
  }
1395
- }), $t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-4abcf5e4"]]), za = ["data-appearance", "data-testid"], Wa = ["data-testid"], Ja = ["innerHTML"], Ya = ["data-testid"], Ga = { class: "ff-array-field-item-content" }, Xa = ["data-index", "data-testid"], Re = 'input:not(:disabled), textarea:not(:disabled), select:not(:disabled), button:not(:disabled), [contenteditable="true"], [tabindex]:not([tabindex="-1"]):not(:disabled)', Qa = /* @__PURE__ */ z({
1467
+ }), Ft = /* @__PURE__ */ Q(un, [["__scopeId", "data-v-4abcf5e4"]]), cn = ["data-appearance", "data-testid"], dn = ["data-testid"], fn = ["innerHTML"], pn = ["data-testid"], mn = { class: "ff-array-field-item-content" }, vn = ["data-index", "data-testid"], Re = 'input:not(:disabled), textarea:not(:disabled), select:not(:disabled), button:not(:disabled), [contenteditable="true"], [tabindex]:not([tabindex="-1"]):not(:disabled)', hn = /* @__PURE__ */ U({
1396
1468
  __name: "ArrayField",
1397
1469
  props: {
1398
1470
  name: {},
@@ -1407,151 +1479,151 @@ const $e = /* @__PURE__ */ z({
1407
1479
  autofocus: { type: Boolean }
1408
1480
  },
1409
1481
  emits: ["add", "remove"],
1410
- setup(e, { emit: l }) {
1411
- wt((V) => ({
1412
- v3d52b81a: I.value
1482
+ setup(e, { emit: r }) {
1483
+ Kt((w) => ({
1484
+ v3d52b81a: O.value
1413
1485
  }));
1414
- const t = e, n = l, { i18n: { t: o } } = me(), { getDefault: a, getSchema: i } = te(), { value: u, hide: m, ...r } = ae(B(t, "name")), c = oe(r.path, B({ ...t, ...Ae() })), h = g(() => {
1415
- if (!r.path) throw new Error("Field path is required for sub-schema retrieval");
1416
- const V = i(r.path.value);
1417
- if (!V) throw new Error(`Schema not found for path: ${r.path.value}`);
1418
- return V.elements;
1419
- }), f = g(() => {
1420
- if (!r.path) return "";
1421
- const V = ve(r.path.value);
1422
- return gt(V);
1423
- }), p = g(() => t.addItemLabel ?? o("actions.add_entity", { entity: f.value })), d = g(() => t.items ?? R(u) ?? []), { getKey: y } = $a("ff-array-field", d), k = g(() => t.appearance ? t.appearance : h.value.type === "record" || h.value.type === "map" ? "card" : "default"), w = g(() => k.value === "card" ? Ne : "div");
1424
- function F(V, E) {
1425
- return typeof t.itemLabel == "function" ? t.itemLabel(V, E) : t.itemLabel || c.value.label || `Item #${E}`;
1486
+ const t = e, n = r, { i18n: { t: o } } = pe(), { getDefault: a, getSchema: i } = ae(), { value: u, hide: m, ...l } = ne(B(t, "name")), d = ie(l.path, B({ ...t, ...Ae() })), v = k(() => {
1487
+ if (!l.path) throw new Error("Field path is required for sub-schema retrieval");
1488
+ const w = i(l.path.value);
1489
+ if (!w) throw new Error(`Schema not found for path: ${l.path.value}`);
1490
+ return w.elements;
1491
+ }), f = k(() => {
1492
+ if (!l.path) return "";
1493
+ const w = ve(l.path.value);
1494
+ return Pt(w);
1495
+ }), p = k(() => t.addItemLabel ?? o("actions.add_entity", { entity: f.value })), b = k(() => t.items ?? R(u) ?? []), { getKey: $ } = Ua("ff-array-field", b), P = k(() => t.appearance ? t.appearance : v.value.type === "record" || v.value.type === "map" ? "card" : "default"), g = k(() => P.value === "card" ? qe : "div");
1496
+ function V(w, E) {
1497
+ return typeof t.itemLabel == "function" ? t.itemLabel(w, E) : t.itemLabel || d.value.label || `Item #${E}`;
1426
1498
  }
1427
- const v = g(() => d.value.map((V, E) => ({
1428
- hash: `#${y(V, E)}`,
1499
+ const c = k(() => b.value.map((w, E) => ({
1500
+ hash: `#${$(w, E)}`,
1429
1501
  title: ""
1430
- }))), $ = se(v.value[0]?.hash), b = async () => {
1431
- const V = a(x(r.path.value, Ye));
1432
- Array.isArray(u.value) || (u.value = []), u.value.push(V), n("add"), t.appearance === "tabs" && (await Ce(), $.value = v.value[v.value.length - 1]?.hash), await Ce(), M(d.value.length + 1);
1433
- }, _ = async (V) => {
1434
- Array.isArray(u.value) && (u.value.splice(V, 1), u.value.length === 0 && !c.value.required && (u.value = r.emptyValue.value)), n("remove", V), t.appearance === "tabs" && ($.value = v.value[Math.max(0, V - 1)]?.hash);
1435
- }, S = dt("root");
1436
- function M(V) {
1502
+ }))), h = oe(c.value[0]?.hash), y = async () => {
1503
+ const w = a(M(l.path.value, Ye));
1504
+ Array.isArray(u.value) || (u.value = []), u.value.push(w), n("add"), t.appearance === "tabs" && (await Ce(), h.value = c.value[c.value.length - 1]?.hash), await Ce(), x(b.value.length + 1);
1505
+ }, _ = async (w) => {
1506
+ Array.isArray(u.value) && (u.value.splice(w, 1), u.value.length === 0 && !d.value.required && (u.value = l.emptyValue.value)), n("remove", w), t.appearance === "tabs" && (h.value = c.value[Math.max(0, w - 1)]?.hash);
1507
+ }, S = bt("root");
1508
+ function x(w) {
1437
1509
  if (!S.value)
1438
1510
  return;
1439
- const E = Math.max(0, Math.min(V, d.value.length - 1)), W = S.value.querySelector(`[data-index="${E}"]`);
1440
- if (!W)
1511
+ const E = Math.max(0, Math.min(w, b.value.length - 1)), z = S.value.querySelector(`[data-index="${E}"]`);
1512
+ if (!z)
1441
1513
  return;
1442
- P(W)?.focus();
1514
+ I(z)?.focus();
1443
1515
  }
1444
- function P(V) {
1445
- const E = V.querySelector('[data-autofocus="true"]');
1446
- return E ? E.matches(Re) ? E : E.querySelector(Re) : V.querySelector(Re);
1516
+ function I(w) {
1517
+ const E = w.querySelector('[data-autofocus="true"]');
1518
+ return E ? E.matches(Re) ? E : E.querySelector(Re) : w.querySelector(Re);
1447
1519
  }
1448
- const I = g(() => {
1449
- const { appearance: V, stickyTabs: E } = t;
1450
- return V !== "tabs" || E == null || E === !1 ? null : typeof E == "number" ? `${t.stickyTabs}px` : typeof E == "string" ? E : "0";
1520
+ const O = k(() => {
1521
+ const { appearance: w, stickyTabs: E } = t;
1522
+ return w !== "tabs" || E == null || E === !1 ? null : typeof E == "number" ? `${t.stickyTabs}px` : typeof E == "string" ? E : "0";
1451
1523
  });
1452
- return (V, E) => {
1453
- const W = N("KAlert"), Y = N("KLabel"), O = N("KButton"), ne = N("KTooltip"), _t = N("KTabs");
1454
- return r.error ? (A(), T(W, {
1524
+ return (w, E) => {
1525
+ const z = H("KAlert"), Y = H("KLabel"), j = H("KButton"), re = H("KTooltip"), xt = H("KTabs");
1526
+ return l.error ? (A(), T(z, {
1455
1527
  key: 0,
1456
1528
  appearance: "danger",
1457
- message: r.error.message
1458
- }, null, 8, ["message"])) : Q((A(), L("div", {
1529
+ message: l.error.message
1530
+ }, null, 8, ["message"])) : Z((A(), L("div", {
1459
1531
  key: 1,
1460
1532
  ref_key: "root",
1461
1533
  ref: S,
1462
1534
  class: Pe(["ff-array-field", {
1463
- [`ff-array-field-${k.value ?? "default"}`]: !0,
1535
+ [`ff-array-field-${P.value ?? "default"}`]: !0,
1464
1536
  "ff-array-field-sticky-tabs": e.stickyTabs
1465
1537
  }]),
1466
- "data-appearance": k.value,
1467
- "data-testid": `ff-array-${r.path.value}`
1538
+ "data-appearance": P.value,
1539
+ "data-testid": `ff-array-${l.path.value}`
1468
1540
  }, [
1469
- s(c).label && !e.hideLabel ? (A(), L("header", {
1541
+ s(d).label && !e.hideLabel ? (A(), L("header", {
1470
1542
  key: 0,
1471
1543
  class: "ff-array-field-header",
1472
- "data-testid": `ff-array-header-${r.path.value}`
1544
+ "data-testid": `ff-array-header-${l.path.value}`
1473
1545
  }, [
1474
- K(Y, J({ class: "ff-array-field-label" }, s(c), {
1475
- "data-testid": `ff-label-${r.path.value}`,
1476
- "tooltip-attributes": s(c).labelAttributes.tooltipAttributes
1477
- }), G({
1478
- default: j(() => [
1479
- C(V.$slots, "label", {
1480
- label: s(c).label
1546
+ K(Y, J({ class: "ff-array-field-label" }, s(d), {
1547
+ "data-testid": `ff-label-${l.path.value}`,
1548
+ "tooltip-attributes": s(d).labelAttributes.tooltipAttributes
1549
+ }), X({
1550
+ default: F(() => [
1551
+ C(w.$slots, "label", {
1552
+ label: s(d).label
1481
1553
  }, () => [
1482
- ie(re(s(c).label), 1)
1554
+ se(G(s(d).label), 1)
1483
1555
  ], !0)
1484
1556
  ]),
1485
1557
  _: 2
1486
1558
  }, [
1487
- s(c).labelAttributes?.info ? {
1559
+ s(d).labelAttributes?.info ? {
1488
1560
  name: "tooltip",
1489
- fn: j(() => [
1490
- C(V.$slots, "tooltip", {}, () => [
1491
- U("div", {
1492
- innerHTML: s(c).labelAttributes.info
1493
- }, null, 8, Ja)
1561
+ fn: F(() => [
1562
+ C(w.$slots, "tooltip", {}, () => [
1563
+ W("div", {
1564
+ innerHTML: s(d).labelAttributes.info
1565
+ }, null, 8, fn)
1494
1566
  ], !0)
1495
1567
  ]),
1496
1568
  key: "0"
1497
1569
  } : void 0
1498
1570
  ]), 1040, ["data-testid", "tooltip-attributes"]),
1499
- e.appearance === "tabs" ? (A(), T(O, {
1571
+ e.appearance === "tabs" ? (A(), T(j, {
1500
1572
  key: 0,
1501
1573
  appearance: "tertiary",
1502
1574
  "aria-label": p.value,
1503
- "data-testid": `ff-add-item-btn-${r.path.value}`,
1575
+ "data-testid": `ff-add-item-btn-${l.path.value}`,
1504
1576
  icon: "",
1505
- onClick: b
1577
+ onClick: y
1506
1578
  }, {
1507
- default: j(() => [
1508
- K(s(Fe))
1579
+ default: F(() => [
1580
+ K(s(Te))
1509
1581
  ]),
1510
1582
  _: 1
1511
- }, 8, ["aria-label", "data-testid"])) : H("", !0)
1512
- ], 8, Wa)) : H("", !0),
1513
- k.value !== "tabs" ? (A(), L(le, { key: 1 }, [
1514
- U("div", {
1583
+ }, 8, ["aria-label", "data-testid"])) : D("", !0)
1584
+ ], 8, dn)) : D("", !0),
1585
+ P.value !== "tabs" ? (A(), L(le, { key: 1 }, [
1586
+ W("div", {
1515
1587
  class: "ff-array-field-container",
1516
- "data-testid": `ff-array-basic-container-${r.path.value}`
1588
+ "data-testid": `ff-array-basic-container-${l.path.value}`
1517
1589
  }, [
1518
- (A(!0), L(le, null, de(d.value, (pe, D) => (A(), T(s(w), {
1519
- key: s(y)(pe, D),
1520
- class: Pe(["ff-array-field-item", { "ff-array-field-item-card": k.value === "card" }]),
1521
- "data-index": D,
1522
- "data-testid": `ff-array-item-${r.path.value}.${D}`
1590
+ (A(!0), L(le, null, de(b.value, (me, N) => (A(), T(s(g), {
1591
+ key: s($)(me, N),
1592
+ class: Pe(["ff-array-field-item", { "ff-array-field-item-card": P.value === "card" }]),
1593
+ "data-index": N,
1594
+ "data-testid": `ff-array-item-${l.path.value}.${N}`
1523
1595
  }, {
1524
- default: j(() => [
1525
- U("div", Ga, [
1526
- V.$slots.item ? C(V.$slots, "item", {
1596
+ default: F(() => [
1597
+ W("div", mn, [
1598
+ w.$slots.item ? C(w.$slots, "item", {
1527
1599
  autofocus: !0,
1528
- fieldName: String(D),
1529
- index: D
1530
- }, void 0, !0, 0) : h.value.type === "array" && h.value.elements.type === "string" ? (A(), T($t, {
1600
+ fieldName: String(N),
1601
+ index: N
1602
+ }, void 0, !0, 0) : v.value.type === "array" && v.value.elements.type === "string" ? (A(), T(Ft, {
1531
1603
  key: 1,
1532
1604
  autofocus: "",
1533
1605
  help: s(o)("tag_helper"),
1534
- name: String(D)
1606
+ name: String(N)
1535
1607
  }, null, 8, ["help", "name"])) : (A(), T(ke, {
1536
1608
  key: 2,
1537
1609
  autofocus: "",
1538
- name: String(D)
1610
+ name: String(N)
1539
1611
  }, null, 8, ["name"]))
1540
1612
  ]),
1541
- K(ne, {
1613
+ K(re, {
1542
1614
  class: "ff-array-field-item-remove-tooltip",
1543
1615
  text: s(o)("actions.remove_entity", { entity: f.value })
1544
1616
  }, {
1545
- default: j(() => [
1546
- K(O, {
1617
+ default: F(() => [
1618
+ K(j, {
1547
1619
  appearance: "tertiary",
1548
1620
  "aria-label": s(o)("actions.remove_entity", { entity: f.value }),
1549
1621
  class: "ff-array-field-item-remove",
1550
- "data-testid": `ff-array-remove-item-btn-${r.path.value}.${D}`,
1622
+ "data-testid": `ff-array-remove-item-btn-${l.path.value}.${N}`,
1551
1623
  icon: "",
1552
- onClick: Te((Vt) => _(D), ["stop"])
1624
+ onClick: Ie((jt) => _(N), ["stop"])
1553
1625
  }, {
1554
- default: j(() => [
1626
+ default: F(() => [
1555
1627
  K(s(Je))
1556
1628
  ]),
1557
1629
  _: 1
@@ -1562,65 +1634,65 @@ const $e = /* @__PURE__ */ z({
1562
1634
  ]),
1563
1635
  _: 2
1564
1636
  }, 1032, ["class", "data-index", "data-testid"]))), 128))
1565
- ], 8, Ya),
1566
- K(O, {
1637
+ ], 8, pn),
1638
+ K(j, {
1567
1639
  appearance: "tertiary",
1568
1640
  "aria-label": p.value,
1569
1641
  class: "ff-array-field-add-item-btn",
1570
- "data-testid": `ff-add-item-btn-${r.path.value}`,
1571
- onClick: b
1642
+ "data-testid": `ff-add-item-btn-${l.path.value}`,
1643
+ onClick: y
1572
1644
  }, {
1573
- default: j(() => [
1574
- K(s(Fe)),
1575
- ie(" " + re(p.value), 1)
1645
+ default: F(() => [
1646
+ K(s(Te)),
1647
+ se(" " + G(p.value), 1)
1576
1648
  ]),
1577
1649
  _: 1
1578
1650
  }, 8, ["aria-label", "data-testid"])
1579
- ], 64)) : d.value.length ? (A(), T(s(Ne), {
1651
+ ], 64)) : b.value.length ? (A(), T(s(qe), {
1580
1652
  key: 2,
1581
- "data-testid": `ff-array-tab-container-${r.path.value}`
1653
+ "data-testid": `ff-array-tab-container-${l.path.value}`
1582
1654
  }, {
1583
- default: j(() => [
1584
- K(_t, {
1585
- modelValue: $.value,
1586
- "onUpdate:modelValue": E[0] || (E[0] = (pe) => $.value = pe),
1587
- "data-testid": `ff-array-tabs-${r.path.value}`,
1588
- tabs: v.value
1589
- }, G({ _: 2 }, [
1590
- de(d.value, (pe, D) => ({
1591
- name: s(y)(pe, D),
1592
- fn: j(() => [
1593
- U("div", {
1655
+ default: F(() => [
1656
+ K(xt, {
1657
+ modelValue: h.value,
1658
+ "onUpdate:modelValue": E[0] || (E[0] = (me) => h.value = me),
1659
+ "data-testid": `ff-array-tabs-${l.path.value}`,
1660
+ tabs: c.value
1661
+ }, X({ _: 2 }, [
1662
+ de(b.value, (me, N) => ({
1663
+ name: s($)(me, N),
1664
+ fn: F(() => [
1665
+ W("div", {
1594
1666
  class: "ff-array-field-item",
1595
- "data-index": D,
1596
- "data-testid": `ff-array-item-${r.path.value}.${D}`
1667
+ "data-index": N,
1668
+ "data-testid": `ff-array-item-${l.path.value}.${N}`
1597
1669
  }, [
1598
- V.$slots.item ? C(V.$slots, "item", {
1670
+ w.$slots.item ? C(w.$slots, "item", {
1599
1671
  autofocus: !0,
1600
- fieldName: String(D),
1601
- index: D
1672
+ fieldName: String(N),
1673
+ index: N
1602
1674
  }, void 0, !0, 0) : (A(), T(ke, {
1603
1675
  key: 1,
1604
1676
  autofocus: "",
1605
- name: String(D)
1677
+ name: String(N)
1606
1678
  }, null, 8, ["name"]))
1607
- ], 8, Xa)
1679
+ ], 8, vn)
1608
1680
  ])
1609
1681
  })),
1610
- de(d.value, (pe, D) => ({
1611
- name: `${s(y)(pe, D)}-anchor`,
1612
- fn: j(() => [
1613
- ie(re(F(pe, D)) + " ", 1),
1614
- K(O, {
1682
+ de(b.value, (me, N) => ({
1683
+ name: `${s($)(me, N)}-anchor`,
1684
+ fn: F(() => [
1685
+ se(G(V(me, N)) + " ", 1),
1686
+ K(j, {
1615
1687
  appearance: "tertiary",
1616
1688
  "aria-label": s(o)("actions.remove_entity", { entity: f.value }),
1617
1689
  class: "ff-array-field-item-remove",
1618
- "data-testid": `ff-array-remove-item-btn-${r.path.value}.${D}`,
1690
+ "data-testid": `ff-array-remove-item-btn-${l.path.value}.${N}`,
1619
1691
  icon: "",
1620
- onClick: Te((Vt) => _(D), ["stop"])
1692
+ onClick: Ie((jt) => _(N), ["stop"])
1621
1693
  }, {
1622
- default: j(() => [
1623
- K(s(Wt))
1694
+ default: F(() => [
1695
+ K(s(na))
1624
1696
  ]),
1625
1697
  _: 1
1626
1698
  }, 8, ["aria-label", "data-testid", "onClick"])
@@ -1629,16 +1701,16 @@ const $e = /* @__PURE__ */ z({
1629
1701
  ]), 1032, ["modelValue", "data-testid", "tabs"])
1630
1702
  ]),
1631
1703
  _: 3
1632
- }, 8, ["data-testid"])) : H("", !0)
1633
- ], 10, za)), [
1634
- [Z, !s(m)]
1704
+ }, 8, ["data-testid"])) : D("", !0)
1705
+ ], 10, cn)), [
1706
+ [ee, !s(m)]
1635
1707
  ]);
1636
1708
  };
1637
1709
  }
1638
- }), Za = /* @__PURE__ */ X(Qa, [["__scopeId", "data-v-d4fbc516"]]), en = /* @__PURE__ */ z({
1710
+ }), yn = /* @__PURE__ */ Q(hn, [["__scopeId", "data-v-d4fbc516"]]), bn = /* @__PURE__ */ U({
1639
1711
  __name: "SlideTransition",
1640
1712
  setup(e) {
1641
- const l = [
1713
+ const r = [
1642
1714
  "height",
1643
1715
  "padding-top",
1644
1716
  "padding-bottom",
@@ -1646,15 +1718,15 @@ const $e = /* @__PURE__ */ z({
1646
1718
  "margin-bottom",
1647
1719
  "border-top-width",
1648
1720
  "border-bottom-width"
1649
- ], t = Object.fromEntries(l.map((f) => [f, ""])), n = Object.fromEntries(l.map((f) => [f, "0"]));
1721
+ ], t = Object.fromEntries(r.map((f) => [f, ""])), n = Object.fromEntries(r.map((f) => [f, "0"]));
1650
1722
  function o(f) {
1651
1723
  const p = getComputedStyle(f);
1652
1724
  return Object.fromEntries(
1653
- l.map((d) => [d, p.getPropertyValue(d)])
1725
+ r.map((b) => [b, p.getPropertyValue(b)])
1654
1726
  );
1655
1727
  }
1656
1728
  function a(f) {
1657
- ["overflow", "transition", ...l].forEach(
1729
+ ["overflow", "transition", ...r].forEach(
1658
1730
  (p) => f.style.removeProperty(p)
1659
1731
  );
1660
1732
  }
@@ -1667,10 +1739,10 @@ const $e = /* @__PURE__ */ z({
1667
1739
  function u(f) {
1668
1740
  const p = f;
1669
1741
  Object.assign(p.style, t);
1670
- const d = o(p);
1742
+ const b = o(p);
1671
1743
  Object.assign(p.style, n), requestAnimationFrame(() => {
1672
1744
  Object.assign(p.style, {
1673
- ...d,
1745
+ ...b,
1674
1746
  transition: ""
1675
1747
  });
1676
1748
  });
@@ -1678,43 +1750,43 @@ const $e = /* @__PURE__ */ z({
1678
1750
  function m(f) {
1679
1751
  a(f);
1680
1752
  }
1681
- function r(f) {
1753
+ function l(f) {
1682
1754
  const p = f;
1683
1755
  Object.assign(p.style, {
1684
1756
  ...o(p),
1685
1757
  overflow: "hidden"
1686
1758
  });
1687
1759
  }
1688
- function c(f) {
1760
+ function d(f) {
1689
1761
  Object.assign(f.style, n);
1690
1762
  }
1691
- function h(f) {
1763
+ function v(f) {
1692
1764
  a(f);
1693
1765
  }
1694
- return (f, p) => (A(), T(Pt, {
1766
+ return (f, p) => (A(), T(Lt, {
1695
1767
  "enter-active-class": "ff-slide-active",
1696
1768
  "leave-active-class": "ff-slide-active",
1697
1769
  onAfterEnter: m,
1698
- onAfterLeave: h,
1770
+ onAfterLeave: v,
1699
1771
  onBeforeEnter: i,
1700
- onBeforeLeave: r,
1772
+ onBeforeLeave: l,
1701
1773
  onEnter: u,
1702
- onLeave: c
1774
+ onLeave: d
1703
1775
  }, {
1704
- default: j(() => [
1776
+ default: F(() => [
1705
1777
  C(f.$slots, "default", {}, void 0, !0)
1706
1778
  ]),
1707
1779
  _: 3
1708
1780
  }));
1709
1781
  }
1710
- }), tn = /* @__PURE__ */ X(en, [["__scopeId", "data-v-d965bf05"]]), an = { class: "ff-entity-checks-list" }, nn = /* @__PURE__ */ z({
1782
+ }), gn = /* @__PURE__ */ Q(bn, [["__scopeId", "data-v-d965bf05"]]), kn = { class: "ff-entity-checks-list" }, An = /* @__PURE__ */ U({
1711
1783
  __name: "EntityChecksAlert",
1712
1784
  props: {
1713
1785
  entityChecks: {},
1714
1786
  visibleFields: {}
1715
1787
  },
1716
1788
  setup(e) {
1717
- const { i18n: { t: l } } = me(), t = g(() => {
1789
+ const { i18n: { t: r } } = pe(), t = k(() => {
1718
1790
  if (!Array.isArray(e.entityChecks) || e.entityChecks.length === 0)
1719
1791
  return null;
1720
1792
  const a = [], i = [
@@ -1723,13 +1795,13 @@ const $e = /* @__PURE__ */ z({
1723
1795
  { key: "mutually_exclusive", i18nKey: "field_rules.mutually_exclusive" }
1724
1796
  ];
1725
1797
  for (const u of e.entityChecks)
1726
- for (const { key: m, i18nKey: r } of i)
1798
+ for (const { key: m, i18nKey: l } of i)
1727
1799
  if (m in u) {
1728
- const c = u[m];
1729
- if (Array.isArray(c) && c.length > 0) {
1730
- const h = o(c);
1731
- h.length > 0 && a.push(l(r, {
1732
- parameters: n(h)
1800
+ const d = u[m];
1801
+ if (Array.isArray(d) && d.length > 0) {
1802
+ const v = o(d);
1803
+ v.length > 0 && a.push(r(l, {
1804
+ parameters: n(v)
1733
1805
  }));
1734
1806
  }
1735
1807
  break;
@@ -1737,33 +1809,33 @@ const $e = /* @__PURE__ */ z({
1737
1809
  return a.length ? a : null;
1738
1810
  });
1739
1811
  function n(a) {
1740
- return a.map(kt).join(", ");
1812
+ return a.map(It).join(", ");
1741
1813
  }
1742
1814
  function o(a) {
1743
1815
  return Array.isArray(e.visibleFields) ? a.filter((i) => e.visibleFields.includes(i.split(".")[0])) : a;
1744
1816
  }
1745
1817
  return (a, i) => {
1746
- const u = N("KAlert");
1818
+ const u = H("KAlert");
1747
1819
  return t.value ? (A(), T(u, {
1748
1820
  key: 0,
1749
1821
  "data-testid": "ff-entity-checks-alert"
1750
1822
  }, {
1751
- default: j(() => [
1752
- U("ul", an, [
1823
+ default: F(() => [
1824
+ W("ul", kn, [
1753
1825
  (A(!0), L(le, null, de(t.value, (m) => (A(), L("li", {
1754
1826
  key: m,
1755
1827
  "data-testid": "ff-entity-check-item"
1756
- }, re(m), 1))), 128))
1828
+ }, G(m), 1))), 128))
1757
1829
  ])
1758
1830
  ]),
1759
1831
  _: 1
1760
- })) : H("", !0);
1832
+ })) : D("", !0);
1761
1833
  };
1762
1834
  }
1763
- }), ot = /* @__PURE__ */ X(nn, [["__scopeId", "data-v-95f54bb5"]]), rn = ["data-testid"], ln = ["data-testid"], sn = ["data-testid"], on = { class: "ff-object-field-header-toggle" }, un = ["aria-controls", "aria-expanded", "aria-label", "data-testid", "disabled"], cn = ["innerHTML"], dn = ["data-testid"], fn = {
1835
+ }), mt = /* @__PURE__ */ Q(An, [["__scopeId", "data-v-95f54bb5"]]), $n = ["data-testid"], _n = ["data-testid"], Vn = ["data-testid"], Sn = { class: "ff-object-field-header-toggle" }, wn = ["aria-controls", "aria-expanded", "aria-label", "data-testid", "disabled"], En = ["innerHTML"], Pn = ["data-testid"], In = {
1764
1836
  key: 0,
1765
1837
  class: "indent-guide"
1766
- }, pn = /* @__PURE__ */ z({
1838
+ }, Tn = /* @__PURE__ */ U({
1767
1839
  inheritAttrs: !1,
1768
1840
  __name: "ObjectField",
1769
1841
  props: /* @__PURE__ */ De({
@@ -1789,166 +1861,166 @@ const $e = /* @__PURE__ */ z({
1789
1861
  }),
1790
1862
  emits: ["update:added", "update:expanded"],
1791
1863
  setup(e) {
1792
- const l = Tt(), t = fe(e, ["defaultAdded", "collapsible", "omit", "required", "asChild", "resetLabelPath", "fieldsOrder"]), { value: n, hide: o, ...a } = ae(B(t, "name")), {
1864
+ const r = Rt(), t = fe(e, ["defaultAdded", "collapsible", "omit", "required", "asChild", "resetLabelPath", "fieldsOrder"]), { value: n, hide: o, ...a } = ne(B(t, "name")), {
1793
1865
  getSchema: i,
1794
1866
  getDefault: u,
1795
1867
  useCurrentRenderRules: m
1796
- } = te(), r = m({
1868
+ } = ae(), l = m({
1797
1869
  fieldPath: a.path,
1798
1870
  rules: B(t, "renderRules"),
1799
1871
  omittedFields: B(() => e.omit)
1800
- }), c = Be(e, "added"), h = Be(e, "expanded"), f = g(() => {
1872
+ }), d = Be(e, "added"), v = Be(e, "expanded"), f = k(() => {
1801
1873
  if (a.ancestors?.value) {
1802
- const b = a.ancestors.value.parent;
1803
- if (b?.path)
1804
- return i(b.path)?.type === "array";
1874
+ const y = a.ancestors.value.parent;
1875
+ if (y?.path)
1876
+ return i(y.path)?.type === "array";
1805
1877
  }
1806
1878
  return !1;
1807
- }), p = g(() => {
1879
+ }), p = k(() => {
1808
1880
  if (a.ancestors?.value) {
1809
- const b = a.ancestors.value.parent;
1810
- if (b?.path)
1811
- return i(b.path)?.type === "map";
1881
+ const y = a.ancestors.value.parent;
1882
+ if (y?.path)
1883
+ return i(y.path)?.type === "map";
1812
1884
  }
1813
1885
  return !1;
1814
- }), d = oe(a.path, { required: e.required, ...t, resetLabelPath: e.resetLabelPath }), y = g(() => d.value.required ? !0 : c.value ?? e.defaultAdded), k = g(() => e.asChild !== void 0 ? e.asChild : f.value), w = g(() => {
1815
- let b = a.schema.value.fields;
1816
- return e.omit && (b = b.filter((_) => !e.omit.includes(Object.keys(_)[0]))), e.fieldsOrder ? vt(b, e.fieldsOrder) : (r.value?.bundles && (b = ht([...b], r.value.bundles)), b);
1817
- }), F = g(() => w.value.map((b) => Object.keys(b)[0]));
1818
- function v() {
1819
- h.value = !h.value;
1886
+ }), b = ie(a.path, { required: e.required, ...t, resetLabelPath: e.resetLabelPath }), $ = k(() => b.value.required ? !0 : d.value ?? e.defaultAdded), P = k(() => e.asChild !== void 0 ? e.asChild : f.value), g = k(() => {
1887
+ let y = a.schema.value.fields;
1888
+ return e.omit && (y = y.filter((_) => !e.omit.includes(Object.keys(_)[0]))), e.fieldsOrder ? $t(y, e.fieldsOrder) : (l.value?.bundles && (y = _t([...y], l.value.bundles)), y);
1889
+ }), V = k(() => g.value.map((y) => Object.keys(y)[0]));
1890
+ function c() {
1891
+ v.value = !v.value;
1820
1892
  }
1821
- function $() {
1822
- c.value ? n.value = u(a.path.value) : n.value = a.emptyValue.value;
1893
+ function h() {
1894
+ d.value ? n.value = u(a.path.value) : n.value = a.emptyValue.value;
1823
1895
  }
1824
- return ee(y, (b) => {
1825
- e.collapsible && (h.value = b);
1826
- }), Ft(() => {
1896
+ return te($, (y) => {
1897
+ e.collapsible && (v.value = y);
1898
+ }), Ct(() => {
1827
1899
  if (a.error || !n) return;
1828
- const b = n.value != null;
1829
- c.value = b, (d.value.required || b) && (h.value = !0);
1830
- }), (b, _) => {
1831
- const S = N("KAlert"), M = N("KInputSwitch");
1900
+ const y = n.value != null;
1901
+ d.value = y, (b.value.required || y) && (v.value = !0);
1902
+ }), (y, _) => {
1903
+ const S = H("KAlert"), x = H("KInputSwitch");
1832
1904
  return A(), L(le, null, [
1833
- (A(), T(ue(b.$slots[s(Ee)]))),
1905
+ (A(), T(ue(y.$slots[s(we)]))),
1834
1906
  a.error ? (A(), T(S, {
1835
1907
  key: 0,
1836
1908
  appearance: "danger",
1837
1909
  message: a.error.message
1838
- }, null, 8, ["message"])) : k.value ? Q((A(), L("div", J({
1910
+ }, null, 8, ["message"])) : P.value ? Z((A(), L("div", J({
1839
1911
  key: 1,
1840
1912
  class: "ff-object-field ff-object-field-as-child"
1841
- }, b.$attrs, {
1913
+ }, y.$attrs, {
1842
1914
  "data-testid": `ff-object-${a.path.value}`
1843
1915
  }), [
1844
- C(b.$slots, "default", {}, () => [
1845
- K(ot, {
1916
+ C(y.$slots, "default", {}, () => [
1917
+ K(mt, {
1846
1918
  "entity-checks": a.schema.value?.entity_checks,
1847
- "visible-fields": F.value
1919
+ "visible-fields": V.value
1848
1920
  }, null, 8, ["entity-checks", "visible-fields"]),
1849
- (A(!0), L(le, null, de(w.value, (P) => (A(), T(ke, {
1850
- key: Object.keys(P)[0],
1851
- name: Object.keys(P)[0]
1921
+ (A(!0), L(le, null, de(g.value, (I) => (A(), T(ke, {
1922
+ key: Object.keys(I)[0],
1923
+ name: Object.keys(I)[0]
1852
1924
  }, null, 8, ["name"]))), 128))
1853
1925
  ], !0)
1854
- ], 16, rn)), [
1855
- [Z, !s(o)]
1856
- ]) : Q((A(), L("div", J({
1926
+ ], 16, $n)), [
1927
+ [ee, !s(o)]
1928
+ ]) : Z((A(), L("div", J({
1857
1929
  key: 2,
1858
- class: ["ff-object-field", { "ff-object-field-collapsed": !h.value }],
1930
+ class: ["ff-object-field", { "ff-object-field-collapsed": !v.value }],
1859
1931
  "data-testid": `ff-object-${a.path.value}`
1860
- }, b.$attrs), [
1861
- U("header", {
1932
+ }, y.$attrs), [
1933
+ W("header", {
1862
1934
  class: "ff-object-field-header",
1863
1935
  "data-testid": `ff-object-header-${a.path.value}`
1864
1936
  }, [
1865
- U("div", on, [
1866
- U("button", {
1867
- "aria-controls": s(l),
1868
- "aria-expanded": h.value,
1869
- "aria-label": s(d).label,
1937
+ W("div", Sn, [
1938
+ W("button", {
1939
+ "aria-controls": s(r),
1940
+ "aria-expanded": v.value,
1941
+ "aria-label": s(b).label,
1870
1942
  class: "ff-object-field-toggle-btn",
1871
1943
  "data-testid": `ff-object-toggle-btn-${a.path.value}`,
1872
- disabled: !c.value,
1944
+ disabled: !d.value,
1873
1945
  type: "button",
1874
- onClick: Te(v, ["prevent", "stop"])
1946
+ onClick: Ie(c, ["prevent", "stop"])
1875
1947
  }, [
1876
- K(s(Jt), {
1877
- class: Pe(["ff-object-field-toggle-btn-trigger-icon", { "collapse-expanded": h.value }]),
1948
+ K(s(ra), {
1949
+ class: Pe(["ff-object-field-toggle-btn-trigger-icon", { "collapse-expanded": v.value }]),
1878
1950
  "data-testid": `ff-object-toggle-trigger-icon-${a.path.value}`,
1879
1951
  decorative: "",
1880
- size: `var(--kui-icon-size-30, ${s(Yt)})`
1952
+ size: `var(--kui-icon-size-30, ${s(sa)})`
1881
1953
  }, null, 8, ["class", "data-testid", "size"])
1882
- ], 8, un),
1883
- p.value ? H("", !0) : (A(), T(s(Bt), J({
1954
+ ], 8, wn),
1955
+ p.value ? D("", !0) : (A(), T(s(Xt), J({
1884
1956
  key: 0,
1885
1957
  class: "ff-object-field-label",
1886
1958
  "data-testid": `ff-label-${a.path.value}`
1887
1959
  }, {
1888
- ...s(d),
1960
+ ...s(b),
1889
1961
  required: !1
1890
1962
  }, {
1891
- "tooltip-attributes": s(d).labelAttributes.tooltipAttributes
1892
- }), G({
1893
- default: j(() => [
1894
- ie(re(s(d).label) + " ", 1)
1963
+ "tooltip-attributes": s(b).labelAttributes.tooltipAttributes
1964
+ }), X({
1965
+ default: F(() => [
1966
+ se(G(s(b).label) + " ", 1)
1895
1967
  ]),
1896
1968
  _: 2
1897
1969
  }, [
1898
- s(d).labelAttributes?.info ? {
1970
+ s(b).labelAttributes?.info ? {
1899
1971
  name: "tooltip",
1900
- fn: j(() => [
1901
- C(b.$slots, "tooltip", {}, () => [
1902
- U("div", {
1903
- innerHTML: s(d).labelAttributes.info
1904
- }, null, 8, cn)
1972
+ fn: F(() => [
1973
+ C(y.$slots, "tooltip", {}, () => [
1974
+ W("div", {
1975
+ innerHTML: s(b).labelAttributes.info
1976
+ }, null, 8, En)
1905
1977
  ], !0)
1906
1978
  ]),
1907
1979
  key: "0"
1908
1980
  } : void 0
1909
1981
  ]), 1040, ["data-testid", "tooltip-attributes"]))
1910
1982
  ]),
1911
- s(d).required ? H("", !0) : (A(), T(M, {
1983
+ s(b).required ? D("", !0) : (A(), T(x, {
1912
1984
  key: 0,
1913
1985
  "data-testid": `ff-object-switch-${a.path.value}`,
1914
- "model-value": c.value,
1915
- "onUpdate:modelValue": _[0] || (_[0] = (P) => {
1916
- c.value = P, $();
1986
+ "model-value": d.value,
1987
+ "onUpdate:modelValue": _[0] || (_[0] = (I) => {
1988
+ d.value = I, h();
1917
1989
  })
1918
1990
  }, null, 8, ["data-testid", "model-value"]))
1919
- ], 8, sn),
1920
- K(tn, null, {
1921
- default: j(() => [
1922
- h.value ? (A(), L("div", {
1991
+ ], 8, Vn),
1992
+ K(gn, null, {
1993
+ default: F(() => [
1994
+ v.value ? (A(), L("div", {
1923
1995
  key: 0,
1924
1996
  class: "ff-object-field-content",
1925
1997
  "data-testid": `ff-object-content-${a.path.value}`
1926
1998
  }, [
1927
- C(b.$slots, "default", {}, () => [
1928
- K(ot, {
1999
+ C(y.$slots, "default", {}, () => [
2000
+ K(mt, {
1929
2001
  "entity-checks": a.schema.value?.entity_checks,
1930
- "visible-fields": F.value
2002
+ "visible-fields": V.value
1931
2003
  }, null, 8, ["entity-checks", "visible-fields"]),
1932
- (A(!0), L(le, null, de(w.value, (P) => (A(), T(ke, {
1933
- key: Object.keys(P)[0],
1934
- name: Object.keys(P)[0]
2004
+ (A(!0), L(le, null, de(g.value, (I) => (A(), T(ke, {
2005
+ key: Object.keys(I)[0],
2006
+ name: Object.keys(I)[0]
1935
2007
  }, null, 8, ["name"]))), 128))
1936
2008
  ], !0)
1937
- ], 8, dn)) : H("", !0)
2009
+ ], 8, Pn)) : D("", !0)
1938
2010
  ]),
1939
2011
  _: 3
1940
2012
  }),
1941
- h.value ? (A(), L("div", fn)) : H("", !0)
1942
- ], 16, ln)), [
1943
- [Z, !s(o)]
2013
+ v.value ? (A(), L("div", In)) : D("", !0)
2014
+ ], 16, _n)), [
2015
+ [ee, !s(o)]
1944
2016
  ])
1945
2017
  ], 64);
1946
2018
  };
1947
2019
  }
1948
- }), mn = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-452b5297"]]), vn = {
2020
+ }), Fn = /* @__PURE__ */ Q(Tn, [["__scopeId", "data-v-452b5297"]]), xn = {
1949
2021
  key: 1,
1950
2022
  class: "ff-number-field-wrapper"
1951
- }, hn = ["innerHTML"], yn = /* @__PURE__ */ z({
2023
+ }, jn = ["innerHTML"], On = /* @__PURE__ */ U({
1952
2024
  __name: "NumberField",
1953
2025
  props: {
1954
2026
  showVaultSecretPicker: { type: Boolean, default: () => {
@@ -1971,96 +2043,99 @@ const $e = /* @__PURE__ */ z({
1971
2043
  name: {}
1972
2044
  },
1973
2045
  emits: ["update:modelValue"],
1974
- setup(e, { emit: l }) {
1975
- const t = fe(e, ["autofocus", "showVaultSecretPicker", "expressionEditor", "name"]), { value: n, hide: o, ...a } = ae(B(() => e.name)), i = oe(a.path, t), u = g(() => ge(a.path?.value ?? "")), { i18n: m } = me(), r = g(() => {
1976
- const v = a.schema?.value;
1977
- if (typeof v.gt == "number")
1978
- return { min: v.type === "integer" ? v.gt + 1 : v.gt };
1979
- const [$, b] = v.between ?? [];
2046
+ setup(e, { emit: r }) {
2047
+ const t = fe(e, ["autofocus", "showVaultSecretPicker", "expressionEditor", "name"]), { value: n, hide: o, ...a } = ne(B(() => e.name)), i = ie(a.path, t), u = k(() => ge(a.path?.value ?? "")), { i18n: m } = pe(), l = k(() => {
2048
+ const c = a.schema?.value;
2049
+ if (typeof c.gt == "number")
2050
+ return { min: c.type === "integer" ? c.gt + 1 : c.gt };
2051
+ const [h, y] = c.between ?? [];
1980
2052
  return {
1981
- min: t.min ?? $,
1982
- max: t.max ?? b
2053
+ min: t.min ?? h,
2054
+ max: t.max ?? y
1983
2055
  };
1984
- }), c = l, h = n.value, f = g(() => {
1985
- const v = n?.value;
1986
- if (v == null || v === "") return "";
1987
- if (w.value) return `${v}`;
1988
- const $ = typeof v == "number" ? v : Number(v);
1989
- return Number.isFinite($) ? `${$}` : "";
2056
+ }), d = r, v = n.value, f = k(() => {
2057
+ const c = n?.value;
2058
+ if (c == null || c === "") return "";
2059
+ if (g.value) return `${c}`;
2060
+ const h = typeof c == "number" ? c : Number(c);
2061
+ return Number.isFinite(h) ? `${h}` : "";
1990
2062
  });
1991
- function p(v) {
1992
- const $ = d(v);
1993
- h !== void 0 && v === "" && $ !== h ? (n.value = a.emptyValue.value, c("update:modelValue", a.emptyValue.value)) : (n.value = $, c("update:modelValue", $));
2063
+ function p(c) {
2064
+ const h = b(c);
2065
+ v !== void 0 && c === "" && h !== v ? (n.value = a.emptyValue.value, d("update:modelValue", a.emptyValue.value)) : (n.value = h, d("update:modelValue", h));
1994
2066
  }
1995
- function d(v) {
1996
- if (v === "") return a.emptyValue.value;
1997
- const $ = v.trim();
1998
- if ($ === "") return a.emptyValue.value;
1999
- const b = Number($);
2000
- return Number.isFinite(b) ? b : w.value ? v : a.emptyValue.value;
2067
+ function b(c) {
2068
+ if (c === "") return a.emptyValue.value;
2069
+ const h = c.trim();
2070
+ if (h === "") return a.emptyValue.value;
2071
+ const y = Number(h);
2072
+ return Number.isFinite(y) ? y : g.value ? c : a.emptyValue.value;
2001
2073
  }
2002
- const y = be(pt, void 0), k = g(() => ({ referenceable: w.value })), w = g(() => e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!a.schema.value?.referenceable), F = g(() => w.value ? "text" : "number");
2003
- return (v, $) => {
2004
- const b = N("KAlert");
2005
- return a.error ? (A(), T(b, {
2074
+ const $ = be(kt, void 0), P = k(() => ({ referenceable: g.value })), g = k(() => e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!a.schema.value?.referenceable), V = k(() => g.value ? "text" : "number");
2075
+ return (c, h) => {
2076
+ const y = H("KAlert");
2077
+ return a.error ? (A(), T(y, {
2006
2078
  key: 0,
2007
2079
  appearance: "danger",
2008
2080
  message: a.error.message
2009
- }, null, 8, ["message"])) : Q((A(), L("div", vn, [
2081
+ }, null, 8, ["message"])) : Z((A(), L("div", xn, [
2010
2082
  K($e, J({ class: "ff-number-field" }, {
2011
2083
  ...s(i),
2012
- min: r.value.min,
2013
- max: r.value.max
2084
+ min: l.value.min,
2085
+ max: l.value.max
2014
2086
  }, {
2015
2087
  "data-autofocus": e.autofocus ? "true" : void 0,
2016
2088
  "data-testid": `ff-${a.path.value}`,
2017
2089
  "model-value": f.value,
2018
- type: F.value,
2090
+ type: V.value,
2019
2091
  "onUpdate:modelValue": p
2020
- }), G({ _: 2 }, [
2092
+ }), X({ _: 2 }, [
2021
2093
  s(i).labelAttributes?.info ? {
2022
2094
  name: "label-tooltip",
2023
- fn: j(() => [
2024
- C(v.$slots, "tooltip", {}, () => [
2025
- U("div", {
2095
+ fn: F(() => [
2096
+ C(c.$slots, "tooltip", {}, () => [
2097
+ W("div", {
2026
2098
  innerHTML: s(i).labelAttributes.info
2027
- }, null, 8, hn)
2099
+ }, null, 8, jn)
2028
2100
  ], !0)
2029
2101
  ]),
2030
2102
  key: "0"
2031
2103
  } : void 0
2032
2104
  ]), 1040, ["data-autofocus", "data-testid", "model-value", "type"]),
2033
- s(y) && w.value ? (A(), T(ue(s(y)), {
2105
+ s($) && g.value ? (A(), T(ue(s($)), {
2034
2106
  key: 0,
2035
- schema: k.value,
2107
+ schema: P.value,
2036
2108
  update: p,
2037
2109
  value: s(n) ?? ""
2038
- }, null, 8, ["schema", "value"])) : H("", !0),
2039
- w.value && !s(y) ? (A(), T(b, {
2110
+ }, null, 8, ["schema", "value"])) : D("", !0),
2111
+ g.value && !s($) ? (A(), T(y, {
2040
2112
  key: 1,
2041
2113
  appearance: "warning",
2042
2114
  "data-testid": `ff-vault-secret-picker-warning-${a.path.value}`,
2043
2115
  message: s(m).t("vault_picker.component_error")
2044
- }, null, 8, ["data-testid", "message"])) : H("", !0),
2045
- e.expressionEditor !== !1 ? (A(), T(At, J({
2116
+ }, null, 8, ["data-testid", "message"])) : D("", !0),
2117
+ e.expressionEditor !== !1 ? (A(), T(Tt, J({
2046
2118
  key: 2,
2047
2119
  class: "ff-number-field-expression",
2048
2120
  name: u.value
2049
- }, e.expressionEditor || {}), G({ _: 2 }, [
2050
- v.$slots["expression-help"] ? {
2121
+ }, e.expressionEditor || {}), X({ _: 2 }, [
2122
+ c.$slots["expression-help"] ? {
2051
2123
  name: "help",
2052
- fn: j(() => [
2053
- C(v.$slots, "expression-help", {}, void 0, !0)
2124
+ fn: F(() => [
2125
+ C(c.$slots, "expression-help", {}, void 0, !0)
2054
2126
  ]),
2055
2127
  key: "0"
2056
2128
  } : void 0
2057
- ]), 1040, ["name"])) : H("", !0)
2129
+ ]), 1040, ["name"])) : D("", !0)
2058
2130
  ], 512)), [
2059
- [Z, !s(o)]
2131
+ [ee, !s(o)]
2060
2132
  ]);
2061
2133
  };
2062
2134
  }
2063
- }), bn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-32631cc3"]]), gn = ["innerHTML"], kn = /* @__PURE__ */ z({
2135
+ }), Mn = /* @__PURE__ */ Q(On, [["__scopeId", "data-v-32631cc3"]]), Kn = {
2136
+ key: 0,
2137
+ class: "ff-version-compatibility-note"
2138
+ }, Ln = ["innerHTML"], Rn = /* @__PURE__ */ U({
2064
2139
  __name: "EnumField",
2065
2140
  props: /* @__PURE__ */ De({
2066
2141
  labelAttributes: {},
@@ -2098,72 +2173,87 @@ const $e = /* @__PURE__ */ z({
2098
2173
  modelModifiers: {}
2099
2174
  }),
2100
2175
  emits: /* @__PURE__ */ De(["update"], ["update:modelValue"]),
2101
- setup(e, { emit: l }) {
2102
- const t = l, n = fe(e, ["name", "items", "multiple", "autofocus"]), { getSelectItems: o } = te(), { value: a, hide: i, ...u } = ae(
2176
+ setup(e, { emit: r }) {
2177
+ const t = r, n = fe(e, ["name", "items", "multiple", "autofocus"]), { getSelectItems: o } = ae(), { value: a, hide: i, versionInfo: u, ...m } = ne(
2103
2178
  B(() => e.name)
2104
- ), m = oe(u.path, n);
2105
- function r(d) {
2106
- if (m.value.required) return d;
2107
- const y = f.value && Array.isArray(d) && d.length === 0;
2108
- return d == null || d === "" || y ? u.emptyValue.value : d;
2179
+ ), l = ie(m.path, n), d = k(() => n.disabled || !!u?.value);
2180
+ function v(g) {
2181
+ if (l.value.required) return g;
2182
+ const V = $.value && Array.isArray(g) && g.length === 0;
2183
+ return g == null || g === "" || V ? m.emptyValue.value : g;
2109
2184
  }
2110
- const c = Be(e, "modelValue", {
2185
+ const f = Be(e, "modelValue", {
2111
2186
  // If multiple and value is null/undefined, return empty array for v-model
2112
- get: () => f.value && a?.value == null ? [] : a.value,
2113
- set: (d) => {
2114
- a.value = r(d);
2187
+ get: () => $.value && a?.value == null ? [] : a.value,
2188
+ set: (g) => {
2189
+ a.value = v(g);
2115
2190
  }
2116
- }), h = g(() => e.items ? e.items : u.path ? o(u.path.value) : []), f = g(() => e.multiple !== void 0 ? e.multiple : u.schema.value?.type === "set"), p = g(() => f.value ? Dt : qt);
2117
- return (d, y) => {
2118
- const k = N("KAlert");
2119
- return u.error ? (A(), T(k, {
2191
+ }), p = k(() => e.items ? e.items : m.path ? o(m.path.value) : []), b = k(() => p.value.some((g) => g.versionInfo)), $ = k(() => e.multiple !== void 0 ? e.multiple : m.schema.value?.type === "set"), P = k(() => $.value ? Qt : Zt);
2192
+ return (g, V) => {
2193
+ const c = H("KAlert");
2194
+ return m.error ? (A(), T(c, {
2120
2195
  key: 0,
2121
2196
  appearance: "danger",
2122
- message: u.error.message
2123
- }, null, 8, ["message"])) : Q((A(), T(s(p), J({ key: 1 }, { ...n, ...s(m) }, {
2124
- modelValue: c.value,
2197
+ message: m.error.message
2198
+ }, null, 8, ["message"])) : Z((A(), T(s(P), J({ key: 1 }, { ...n, ...s(l) }, {
2199
+ modelValue: f.value,
2125
2200
  "onUpdate:modelValue": [
2126
- y[0] || (y[0] = (w) => c.value = w),
2127
- y[1] || (y[1] = (w) => t("update", r(w)))
2201
+ V[0] || (V[0] = (h) => f.value = h),
2202
+ V[1] || (V[1] = (h) => t("update", v(h)))
2128
2203
  ],
2129
2204
  class: "ff-enum-field",
2130
- clearable: !s(m).required,
2205
+ clearable: !s(l).required,
2131
2206
  "data-autofocus": e.autofocus ? "true" : void 0,
2132
- "data-testid": `ff-${u.path.value}`,
2133
- items: h.value,
2134
- "kpop-attributes": { "data-testid": `ff-enum-${u.path.value}-items` }
2135
- }), G({ _: 2 }, [
2136
- "tooltip" in d.$slots || s(m).labelAttributes?.info ? {
2207
+ "data-testid": `ff-${m.path.value}`,
2208
+ disabled: d.value,
2209
+ items: p.value,
2210
+ "kpop-attributes": { "data-testid": `ff-enum-${m.path.value}-items` }
2211
+ }), X({ _: 2 }, [
2212
+ "tooltip" in g.$slots || s(l).labelAttributes?.info || s(u) ? {
2137
2213
  name: "label-tooltip",
2138
- fn: j(() => [
2139
- C(d.$slots, "tooltip", {}, () => [
2140
- U("div", {
2141
- innerHTML: s(m).labelAttributes.info
2142
- }, null, 8, gn)
2214
+ fn: F(() => [
2215
+ C(g.$slots, "tooltip", {}, () => [
2216
+ s(u) ? (A(), L("p", Kn, G(s(u).tooltip), 1)) : D("", !0),
2217
+ s(l).labelAttributes?.info ? (A(), L("div", {
2218
+ key: 1,
2219
+ class: "ff-label-tooltip-info",
2220
+ innerHTML: s(l).labelAttributes.info
2221
+ }, null, 8, Ln)) : D("", !0)
2143
2222
  ], !0)
2144
2223
  ]),
2145
2224
  key: "0"
2146
2225
  } : void 0,
2147
- d.$slots["item-label"] ? {
2226
+ g.$slots["item-label"] || b.value ? {
2148
2227
  name: "item-template",
2149
- fn: j(({ item: w }) => [
2150
- C(d.$slots, "item-label", We(ct(w)), void 0, !0)
2228
+ fn: F(({ item: h }) => [
2229
+ C(g.$slots, "item-label", We(yt(h)), () => [
2230
+ K(s(ea), {
2231
+ "kpop-attributes": { "data-testid": `ff-version-tooltip-item-${h.value}` },
2232
+ "max-width": "400px",
2233
+ text: h.versionInfo?.tooltip ?? ""
2234
+ }, {
2235
+ default: F(() => [
2236
+ se(G(h.label), 1)
2237
+ ]),
2238
+ _: 2
2239
+ }, 1032, ["kpop-attributes", "text"])
2240
+ ], !0)
2151
2241
  ]),
2152
2242
  key: "1"
2153
2243
  } : void 0,
2154
- d.$slots["dropdown-footer-text"] ? {
2244
+ g.$slots["dropdown-footer-text"] ? {
2155
2245
  name: "dropdown-footer-text",
2156
- fn: j(() => [
2157
- C(d.$slots, "dropdown-footer-text", {}, void 0, !0)
2246
+ fn: F(() => [
2247
+ C(g.$slots, "dropdown-footer-text", {}, void 0, !0)
2158
2248
  ]),
2159
2249
  key: "2"
2160
2250
  } : void 0
2161
- ]), 1040, ["modelValue", "clearable", "data-autofocus", "data-testid", "items", "kpop-attributes"])), [
2162
- [Z, !s(i)]
2251
+ ]), 1040, ["modelValue", "clearable", "data-autofocus", "data-testid", "disabled", "items", "kpop-attributes"])), [
2252
+ [ee, !s(i)]
2163
2253
  ]);
2164
2254
  };
2165
2255
  }
2166
- }), we = /* @__PURE__ */ X(kn, [["__scopeId", "data-v-4a6e0560"]]), An = ["data-testid"], $n = ["innerHTML"], _n = /* @__PURE__ */ z({
2256
+ }), Ee = /* @__PURE__ */ Q(Rn, [["__scopeId", "data-v-f27a4417"]]), Cn = ["data-testid"], Bn = ["innerHTML"], Dn = /* @__PURE__ */ U({
2167
2257
  inheritAttrs: !1,
2168
2258
  __name: "JsonField",
2169
2259
  props: {
@@ -2172,67 +2262,67 @@ const $e = /* @__PURE__ */ z({
2172
2262
  name: {}
2173
2263
  },
2174
2264
  emits: ["update:modelValue"],
2175
- setup(e, { emit: l }) {
2176
- const t = Ae(), n = fe(e, ["autofocus", "name"]), o = l, { value: a, hide: i, ...u } = ae(B(() => e.name)), m = oe(u.path, B({ ...n, ...t })), r = se("");
2177
- function c(f) {
2178
- r.value = f;
2265
+ setup(e, { emit: r }) {
2266
+ const t = Ae(), n = fe(e, ["autofocus", "name"]), o = r, { value: a, hide: i, ...u } = ne(B(() => e.name)), m = ie(u.path, B({ ...n, ...t })), l = oe("");
2267
+ function d(f) {
2268
+ l.value = f;
2179
2269
  let p = f === "" ? u.emptyValue.value : f;
2180
2270
  try {
2181
- const d = JSON.parse(f);
2182
- d && typeof d == "object" && (p = d);
2271
+ const b = JSON.parse(f);
2272
+ b && typeof b == "object" && (p = b);
2183
2273
  } catch {
2184
2274
  }
2185
2275
  a.value = p, o("update:modelValue", p);
2186
2276
  }
2187
- const h = g(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : ve(e.name) === "name");
2188
- return ee(a, (f) => {
2277
+ const v = k(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : ve(e.name) === "name");
2278
+ return te(a, (f) => {
2189
2279
  if (f && typeof f == "object") {
2190
2280
  try {
2191
- const p = JSON.parse(r.value);
2192
- he(p, f) || (r.value = JSON.stringify(f, null, 2));
2281
+ const p = JSON.parse(l.value);
2282
+ he(p, f) || (l.value = JSON.stringify(f, null, 2));
2193
2283
  } catch {
2194
- r.value = JSON.stringify(f, null, 2);
2284
+ l.value = JSON.stringify(f, null, 2);
2195
2285
  }
2196
2286
  return;
2197
2287
  }
2198
- r.value = f || "";
2288
+ l.value = f || "";
2199
2289
  }, { immediate: !0 }), (f, p) => {
2200
- const d = N("KAlert");
2201
- return u.error ? (A(), T(d, {
2290
+ const b = H("KAlert");
2291
+ return u.error ? (A(), T(b, {
2202
2292
  key: 0,
2203
2293
  appearance: "danger",
2204
2294
  message: u.error.message
2205
- }, null, 8, ["message"])) : Q((A(), L("div", {
2295
+ }, null, 8, ["message"])) : Z((A(), L("div", {
2206
2296
  key: 1,
2207
2297
  "data-testid": `ff-json-${u.path.value}`
2208
2298
  }, [
2209
2299
  K($e, J(s(m), {
2210
2300
  class: "ff-json-field",
2211
- "data-1p-ignore": h.value,
2301
+ "data-1p-ignore": v.value,
2212
2302
  "data-autofocus": e.autofocus ? "true" : void 0,
2213
2303
  "data-testid": `ff-${u.path.value}`,
2214
- "model-value": r.value ?? "",
2304
+ "model-value": l.value ?? "",
2215
2305
  multiline: "",
2216
- "onUpdate:modelValue": c
2217
- }), G({ _: 2 }, [
2306
+ "onUpdate:modelValue": d
2307
+ }), X({ _: 2 }, [
2218
2308
  s(m).labelAttributes?.info ? {
2219
2309
  name: "label-tooltip",
2220
- fn: j(() => [
2310
+ fn: F(() => [
2221
2311
  C(f.$slots, "tooltip", {}, () => [
2222
- U("div", {
2312
+ W("div", {
2223
2313
  innerHTML: s(m).labelAttributes.info
2224
- }, null, 8, $n)
2314
+ }, null, 8, Bn)
2225
2315
  ], !0)
2226
2316
  ]),
2227
2317
  key: "0"
2228
2318
  } : void 0
2229
2319
  ]), 1040, ["data-1p-ignore", "data-autofocus", "data-testid", "model-value"])
2230
- ], 8, An)), [
2231
- [Z, !s(i)]
2320
+ ], 8, Cn)), [
2321
+ [ee, !s(i)]
2232
2322
  ]);
2233
2323
  };
2234
2324
  }
2235
- }), Vn = /* @__PURE__ */ X(_n, [["__scopeId", "data-v-79518607"]]), Sn = ["innerHTML"], En = /* @__PURE__ */ z({
2325
+ }), Nn = /* @__PURE__ */ Q(Dn, [["__scopeId", "data-v-79518607"]]), qn = ["innerHTML"], Hn = /* @__PURE__ */ U({
2236
2326
  inheritAttrs: !1,
2237
2327
  __name: "ForeignField",
2238
2328
  props: {
@@ -2250,43 +2340,43 @@ const $e = /* @__PURE__ */ z({
2250
2340
  name: {}
2251
2341
  },
2252
2342
  emits: ["update:modelValue"],
2253
- setup(e, { emit: l }) {
2254
- const t = Ae(), { i18n: { t: n } } = me(), o = fe(e, ["autofocus", "name"]), a = l, { value: i, hide: u, ...m } = ae(B(() => e.name));
2343
+ setup(e, { emit: r }) {
2344
+ const t = Ae(), { i18n: { t: n } } = pe(), o = fe(e, ["autofocus", "name"]), a = r, { value: i, hide: u, ...m } = ne(B(() => e.name));
2255
2345
  if (m.error)
2256
2346
  throw new Error(m.error.message);
2257
- const r = oe(m.path, B({ ...o, ...t })), c = i.value ? i.value.id : null, h = g(() => r.value.placeholder ? r.value.placeholder : n("foreign_placeholder", { entity: m.schema.value?.reference ?? "entity" })), f = se(c ?? "");
2258
- function p(y) {
2259
- c !== void 0 && y === "" && y !== c ? (i.value = m.emptyValue.value, a("update:modelValue", m.emptyValue.value)) : (i.value = { id: y.trim() }, a("update:modelValue", i.value));
2347
+ const l = ie(m.path, B({ ...o, ...t })), d = i.value ? i.value.id : null, v = k(() => l.value.placeholder ? l.value.placeholder : n("foreign_placeholder", { entity: m.schema.value?.reference ?? "entity" })), f = oe(d ?? "");
2348
+ function p($) {
2349
+ d !== void 0 && $ === "" && $ !== d ? (i.value = m.emptyValue.value, a("update:modelValue", m.emptyValue.value)) : (i.value = { id: $.trim() }, a("update:modelValue", i.value));
2260
2350
  }
2261
- const d = g(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : ve(e.name) === "name");
2262
- return (y, k) => Q((A(), T($e, J(s(r), {
2351
+ const b = k(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : ve(e.name) === "name");
2352
+ return ($, P) => Z((A(), T($e, J(s(l), {
2263
2353
  class: "ff-foreign-field",
2264
- "data-1p-ignore": d.value,
2354
+ "data-1p-ignore": b.value,
2265
2355
  "data-autofocus": e.autofocus ? "true" : void 0,
2266
2356
  "data-testid": `ff-${m.path.value}`,
2267
2357
  error: e.error,
2268
2358
  "error-message": e.errorMessage,
2269
2359
  help: e.help,
2270
2360
  "model-value": f.value,
2271
- placeholder: h.value,
2361
+ placeholder: v.value,
2272
2362
  "onUpdate:modelValue": p
2273
- }), G({ _: 2 }, [
2274
- s(r).labelAttributes?.info ? {
2363
+ }), X({ _: 2 }, [
2364
+ s(l).labelAttributes?.info ? {
2275
2365
  name: "label-tooltip",
2276
- fn: j(() => [
2277
- C(y.$slots, "tooltip", {}, () => [
2278
- U("div", {
2279
- innerHTML: s(r).labelAttributes.info
2280
- }, null, 8, Sn)
2366
+ fn: F(() => [
2367
+ C($.$slots, "tooltip", {}, () => [
2368
+ W("div", {
2369
+ innerHTML: s(l).labelAttributes.info
2370
+ }, null, 8, qn)
2281
2371
  ], !0)
2282
2372
  ]),
2283
2373
  key: "0"
2284
2374
  } : void 0
2285
2375
  ]), 1040, ["data-1p-ignore", "data-autofocus", "data-testid", "error", "error-message", "help", "model-value", "placeholder"])), [
2286
- [Z, !s(u)]
2376
+ [ee, !s(u)]
2287
2377
  ]);
2288
2378
  }
2289
- }), wn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-d4b07797"]]), Pn = ["data-testid"], Tn = ["data-testid"], Fn = ["innerHTML"], jn = { class: "ff-map-field-item-content" }, On = { class: "ff-map-field-fields" }, In = /* @__PURE__ */ z({
2379
+ }), Un = /* @__PURE__ */ Q(Hn, [["__scopeId", "data-v-d4b07797"]]), zn = ["data-testid"], Wn = ["data-testid"], Jn = ["innerHTML"], Yn = { class: "ff-map-field-item-content" }, Gn = { class: "ff-map-field-fields" }, Xn = /* @__PURE__ */ U({
2290
2380
  __name: "MapField",
2291
2381
  props: {
2292
2382
  keyPlaceholder: {},
@@ -2297,115 +2387,115 @@ const $e = /* @__PURE__ */ z({
2297
2387
  labelAttributes: {}
2298
2388
  },
2299
2389
  emits: ["legacyValueChange"],
2300
- setup(e, { emit: l }) {
2301
- const { i18n: t } = me(), n = e, o = l, {
2390
+ setup(e, { emit: r }) {
2391
+ const { i18n: t } = pe(), n = e, o = r, {
2302
2392
  keys: a,
2303
2393
  updateKey: i,
2304
2394
  addKey: u,
2305
2395
  removeKey: m,
2306
- field: r,
2307
- fieldDisplayName: c
2308
- } = Ea(B(n, "name"), b), h = oe(r.path, n), f = ["string", "number", "boolean", "integer", "foreign"], p = g(() => n.oneLine ? !0 : r.schema?.value?.type === "map" && f.includes(r.schema.value.values.type) && !n.appearance?.string?.multiline), d = g(() => r.schema?.value?.type === "map" ? r.schema.value.values : void 0), y = g(() => d.value?.type === "string" && !d.value?.one_of), k = g(() => p.value ? "div" : Ne), w = dt("root");
2309
- function F(_, S) {
2310
- n.appearance?.string?.multiline || (_.preventDefault(), S === a.value.length - 1 && u(), v(S + 1));
2396
+ field: l,
2397
+ fieldDisplayName: d
2398
+ } = Ya(B(n, "name"), y), v = ie(l.path, n), f = ["string", "number", "boolean", "integer", "foreign"], p = k(() => n.oneLine ? !0 : l.schema?.value?.type === "map" && f.includes(l.schema.value.values.type) && !n.appearance?.string?.multiline), b = k(() => l.schema?.value?.type === "map" ? l.schema.value.values : void 0), $ = k(() => b.value?.type === "string" && !b.value?.one_of), P = k(() => p.value ? "div" : qe), g = bt("root");
2399
+ function V(_, S) {
2400
+ n.appearance?.string?.multiline || (_.preventDefault(), S === a.value.length - 1 && u(), c(S + 1));
2311
2401
  }
2312
- async function v(_) {
2313
- w.value && (await Ce(), w.value.querySelector(`[data-key-input="${_}"]`)?.focus());
2402
+ async function c(_) {
2403
+ g.value && (await Ce(), g.value.querySelector(`[data-key-input="${_}"]`)?.focus());
2314
2404
  }
2315
- function $() {
2405
+ function h() {
2316
2406
  u();
2317
- const _ = a.value.findIndex(([S, M]) => !M);
2318
- v(_ === -1 ? a.value.length - 1 : _);
2407
+ const _ = a.value.findIndex(([S, x]) => !x);
2408
+ c(_ === -1 ? a.value.length - 1 : _);
2319
2409
  }
2320
- function b(_) {
2410
+ function y(_) {
2321
2411
  o("legacyValueChange", _);
2322
2412
  }
2323
2413
  return (_, S) => {
2324
- const M = N("KAlert"), P = N("KLabel"), I = N("KButton"), V = N("KTooltip");
2325
- return s(r).error ? (A(), T(M, {
2414
+ const x = H("KAlert"), I = H("KLabel"), O = H("KButton"), w = H("KTooltip");
2415
+ return s(l).error ? (A(), T(x, {
2326
2416
  key: 0,
2327
2417
  appearance: "danger",
2328
- message: s(r).error.message
2329
- }, null, 8, ["message"])) : Q((A(), L("div", {
2418
+ message: s(l).error.message
2419
+ }, null, 8, ["message"])) : Z((A(), L("div", {
2330
2420
  key: 1,
2331
2421
  ref_key: "root",
2332
- ref: w,
2422
+ ref: g,
2333
2423
  class: "ff-map-field",
2334
- "data-testid": `ff-map-${s(r).path.value}`
2424
+ "data-testid": `ff-map-${s(l).path.value}`
2335
2425
  }, [
2336
- s(h).label ? (A(), L("header", {
2426
+ s(v).label ? (A(), L("header", {
2337
2427
  key: 0,
2338
2428
  class: "ff-map-field-header",
2339
- "data-testid": `ff-map-header-${s(r).path.value}`
2429
+ "data-testid": `ff-map-header-${s(l).path.value}`
2340
2430
  }, [
2341
- K(P, J({ class: "ff-map-field-label" }, s(h).labelAttributes, {
2342
- "data-testid": `ff-label-${s(r).path.value}`,
2343
- required: s(h).required,
2344
- "tooltip-attributes": s(h).labelAttributes.tooltipAttributes
2345
- }), G({
2346
- default: j(() => [
2347
- ie(re(s(h).label) + " ", 1)
2431
+ K(I, J({ class: "ff-map-field-label" }, s(v).labelAttributes, {
2432
+ "data-testid": `ff-label-${s(l).path.value}`,
2433
+ required: s(v).required,
2434
+ "tooltip-attributes": s(v).labelAttributes.tooltipAttributes
2435
+ }), X({
2436
+ default: F(() => [
2437
+ se(G(s(v).label) + " ", 1)
2348
2438
  ]),
2349
2439
  _: 2
2350
2440
  }, [
2351
- s(h).labelAttributes?.info ? {
2441
+ s(v).labelAttributes?.info ? {
2352
2442
  name: "tooltip",
2353
- fn: j(() => [
2443
+ fn: F(() => [
2354
2444
  C(_.$slots, "tooltip", {}, () => [
2355
- U("div", {
2356
- innerHTML: s(h).labelAttributes.info
2357
- }, null, 8, Fn)
2445
+ W("div", {
2446
+ innerHTML: s(v).labelAttributes.info
2447
+ }, null, 8, Jn)
2358
2448
  ], !0)
2359
2449
  ]),
2360
2450
  key: "0"
2361
2451
  } : void 0
2362
2452
  ]), 1040, ["data-testid", "required", "tooltip-attributes"])
2363
- ], 8, Tn)) : H("", !0),
2364
- (A(!0), L(le, null, de(s(a), ([E, W], Y) => (A(), T(ue(k.value), {
2453
+ ], 8, Wn)) : D("", !0),
2454
+ (A(!0), L(le, null, de(s(a), ([E, z], Y) => (A(), T(ue(P.value), {
2365
2455
  key: E,
2366
2456
  class: Pe(["ff-map-field-item", {
2367
2457
  "ff-map-field-item-simple": p.value,
2368
2458
  "ff-map-field-item-complex": !p.value
2369
2459
  }]),
2370
- "data-testid": `ff-map-container-${s(r).path.value}.${Y}`
2460
+ "data-testid": `ff-map-container-${s(l).path.value}.${Y}`
2371
2461
  }, {
2372
- default: j(() => [
2373
- U("div", jn, [
2374
- U("div", On, [
2462
+ default: F(() => [
2463
+ W("div", Yn, [
2464
+ W("div", Gn, [
2375
2465
  K($e, {
2376
2466
  class: "ff-map-field-fields-key",
2377
2467
  "data-key-input": Y,
2378
- "data-testid": `ff-map-key-${s(r).path.value}.${Y}`,
2379
- "model-value": W,
2468
+ "data-testid": `ff-map-key-${s(l).path.value}.${Y}`,
2469
+ "model-value": z,
2380
2470
  placeholder: e.keyPlaceholder || "Key",
2381
- onKeydown: et(Te((O) => v(Y), ["prevent"]), ["enter"]),
2382
- "onUpdate:modelValue": (O) => s(i)(E, O)
2471
+ onKeydown: et(Ie((j) => c(Y), ["prevent"]), ["enter"]),
2472
+ "onUpdate:modelValue": (j) => s(i)(E, j)
2383
2473
  }, null, 8, ["data-key-input", "data-testid", "model-value", "placeholder", "onKeydown", "onUpdate:modelValue"]),
2384
2474
  C(_.$slots, "default", { keyId: E }, () => [
2385
- y.value ? (A(), T(Ze, {
2475
+ $.value ? (A(), T(Ze, {
2386
2476
  key: 0,
2387
2477
  "inline-vault-picker": "",
2388
2478
  multiline: e.appearance?.string?.multiline,
2389
2479
  name: E,
2390
- onKeydown: et((O) => F(O, Y), ["enter"])
2480
+ onKeydown: et((j) => V(j, Y), ["enter"])
2391
2481
  }, null, 8, ["multiline", "name", "onKeydown"])) : (A(), T(ke, {
2392
2482
  key: 1,
2393
2483
  name: E
2394
2484
  }, null, 8, ["name"]))
2395
2485
  ], !0)
2396
2486
  ]),
2397
- K(V, {
2398
- text: s(t).t("actions.remove_entity", { entity: s(c) })
2487
+ K(w, {
2488
+ text: s(t).t("actions.remove_entity", { entity: s(d) })
2399
2489
  }, {
2400
- default: j(() => [
2401
- K(I, {
2490
+ default: F(() => [
2491
+ K(O, {
2402
2492
  appearance: "tertiary",
2403
- "aria-label": s(t).t("actions.remove_entity", { entity: s(c) }),
2404
- "data-testid": `ff-map-remove-btn-${s(r).path.value}.${Y}`,
2493
+ "aria-label": s(t).t("actions.remove_entity", { entity: s(d) }),
2494
+ "data-testid": `ff-map-remove-btn-${s(l).path.value}.${Y}`,
2405
2495
  icon: "",
2406
- onClick: (O) => s(m)(E)
2496
+ onClick: (j) => s(m)(E)
2407
2497
  }, {
2408
- default: j(() => [
2498
+ default: F(() => [
2409
2499
  K(s(Je))
2410
2500
  ]),
2411
2501
  _: 1
@@ -2417,54 +2507,54 @@ const $e = /* @__PURE__ */ z({
2417
2507
  ]),
2418
2508
  _: 2
2419
2509
  }, 1032, ["class", "data-testid"]))), 128)),
2420
- K(I, {
2510
+ K(O, {
2421
2511
  appearance: "tertiary",
2422
- "aria-label": s(t).t("actions.add_entity", { entity: s(c) }),
2512
+ "aria-label": s(t).t("actions.add_entity", { entity: s(d) }),
2423
2513
  class: "ff-map-field-add-entry-btn",
2424
- "data-testid": `ff-map-add-btn-${s(r).path.value}`,
2425
- onClick: $
2514
+ "data-testid": `ff-map-add-btn-${s(l).path.value}`,
2515
+ onClick: h
2426
2516
  }, {
2427
- default: j(() => [
2428
- K(s(Fe)),
2429
- ie(" " + re(s(t).t("actions.add_entity", { entity: s(c) })), 1)
2517
+ default: F(() => [
2518
+ K(s(Te)),
2519
+ se(" " + G(s(t).t("actions.add_entity", { entity: s(d) })), 1)
2430
2520
  ]),
2431
2521
  _: 1
2432
2522
  }, 8, ["aria-label", "data-testid"])
2433
- ], 8, Pn)), [
2434
- [Z, !s(r).hide.value]
2523
+ ], 8, zn)), [
2524
+ [ee, !s(l).hide.value]
2435
2525
  ]);
2436
2526
  };
2437
2527
  }
2438
- }), Mn = /* @__PURE__ */ X(In, [["__scopeId", "data-v-bddebc78"]]);
2439
- function xn(e) {
2528
+ }), Qn = /* @__PURE__ */ Q(Xn, [["__scopeId", "data-v-bddebc78"]]);
2529
+ function Zn(e) {
2440
2530
  switch (e?.type) {
2441
2531
  case "string":
2442
- return "one_of" in e ? we : Ze;
2532
+ return "one_of" in e ? Ee : Ze;
2443
2533
  case "boolean":
2444
- return "one_of" in e ? we : qa;
2534
+ return "one_of" in e ? Ee : sn;
2445
2535
  case "number":
2446
2536
  case "integer":
2447
- return "one_of" in e ? we : bn;
2537
+ return "one_of" in e ? Ee : Mn;
2448
2538
  case "array":
2449
- return Za;
2539
+ return yn;
2450
2540
  case "set":
2451
- return Xt(e) ? $t : we;
2541
+ return oa(e) ? Ft : Ee;
2452
2542
  case "record":
2453
- return mn;
2543
+ return Fn;
2454
2544
  case "map":
2455
- return Mn;
2545
+ return Qn;
2456
2546
  case "json":
2457
- return Vn;
2547
+ return Nn;
2458
2548
  case "foreign":
2459
- return wn;
2549
+ return Un;
2460
2550
  default:
2461
2551
  return;
2462
2552
  }
2463
2553
  }
2464
- function Kn(e) {
2465
- return xn(e);
2554
+ function er(e) {
2555
+ return Zn(e);
2466
2556
  }
2467
- const ke = /* @__PURE__ */ z({
2557
+ const ke = /* @__PURE__ */ U({
2468
2558
  name: "AutoField",
2469
2559
  __name: "Field",
2470
2560
  props: {
@@ -2474,24 +2564,24 @@ const ke = /* @__PURE__ */ z({
2474
2564
  },
2475
2565
  emits: ["globalAction"],
2476
2566
  setup(e) {
2477
- const l = e, t = ae(B(l, "name")), n = g(() => Kn(t.schema?.value));
2567
+ const r = e, t = ne(B(r, "name")), n = k(() => er(t.schema?.value));
2478
2568
  return (o, a) => {
2479
- const i = N("KAlert");
2569
+ const i = H("KAlert");
2480
2570
  return A(), L(le, null, [
2481
- (A(), T(ue(o.$slots[s(Ee)]))),
2571
+ (A(), T(ue(o.$slots[s(we)]))),
2482
2572
  s(t).error ? (A(), T(i, {
2483
2573
  key: 0,
2484
2574
  appearance: "danger",
2485
2575
  message: s(t).error.message
2486
2576
  }, null, 8, ["message"])) : s(t).renderer.value ? (A(), T(ue(s(t).renderer.value), {
2487
2577
  key: 1,
2488
- autofocus: l.autofocus,
2578
+ autofocus: r.autofocus,
2489
2579
  name: ge(s(t).path.value),
2490
2580
  onGlobalAction: a[0] || (a[0] = (u, m) => o.$emit("globalAction", u, m))
2491
2581
  }, null, 40, ["autofocus", "name"])) : (A(), L(le, { key: 2 }, [
2492
2582
  n.value ? (A(), T(ue(n.value), {
2493
2583
  key: 0,
2494
- autofocus: l.autofocus,
2584
+ autofocus: r.autofocus,
2495
2585
  name: ge(s(t).path.value)
2496
2586
  }, null, 8, ["autofocus", "name"])) : (A(), T(i, {
2497
2587
  key: 1,
@@ -2503,7 +2593,7 @@ const ke = /* @__PURE__ */ z({
2503
2593
  ], 64);
2504
2594
  };
2505
2595
  }
2506
- }), tr = /* @__PURE__ */ z({
2596
+ }), gr = /* @__PURE__ */ U({
2507
2597
  name: "SchemaForm",
2508
2598
  __name: "Form",
2509
2599
  props: {
@@ -2515,48 +2605,48 @@ const ke = /* @__PURE__ */ z({
2515
2605
  renderRules: {}
2516
2606
  },
2517
2607
  emits: ["change", "globalAction"],
2518
- setup(e, { expose: l, emit: t }) {
2519
- const n = t, o = Se(), { getSchema: a, formData: i, setValue: u, getValue: m, rootRenderRules: r, getEmptyValue: c } = ha({
2608
+ setup(e, { expose: r, emit: t }) {
2609
+ const n = t, o = Se(), { getSchema: a, formData: i, setValue: u, getValue: m, rootRenderRules: l, getEmptyValue: d } = Ca({
2520
2610
  schema: e.schema,
2521
- propsData: g(() => e.data),
2611
+ propsData: k(() => e.data),
2522
2612
  propsConfig: () => e.config,
2523
2613
  propsRenderRules: B(() => e.renderRules),
2524
2614
  onChange: (f) => n("change", f)
2525
- }), h = g(() => {
2615
+ }), v = k(() => {
2526
2616
  const { fields: f } = a();
2527
- let p = f.filter((d) => Object.keys(d)[0] !== Ke);
2528
- return e.fieldsOrder ? vt(p, e.fieldsOrder) : (r.value?.bundles && (p = ht([...p], r.value.bundles)), p);
2617
+ let p = f.filter((b) => Object.keys(b)[0] !== Ke);
2618
+ return e.fieldsOrder ? $t(p, e.fieldsOrder) : (l.value?.bundles && (p = _t([...p], l.value.bundles)), p);
2529
2619
  });
2530
- return l({
2620
+ return r({
2531
2621
  getValue: m,
2532
- getRawValue: () => ut(i),
2622
+ getRawValue: () => ht(i),
2533
2623
  setValue: u,
2534
- getEmptyValue: c
2624
+ getEmptyValue: d
2535
2625
  }), (f, p) => (A(), T(ue(e.tag), null, {
2536
- default: j(() => [
2537
- (A(), T(ue(s(o)[s(Ee)]))),
2626
+ default: F(() => [
2627
+ (A(), T(ue(s(o)[s(we)]))),
2538
2628
  C(f.$slots, "default", {}, () => [
2539
- (A(!0), L(le, null, de(h.value, (d) => (A(), T(ke, {
2540
- key: Object.keys(d)[0],
2541
- name: Object.keys(d)[0],
2542
- onGlobalAction: p[0] || (p[0] = (y, k) => n("globalAction", y, k))
2629
+ (A(!0), L(le, null, de(v.value, (b) => (A(), T(ke, {
2630
+ key: Object.keys(b)[0],
2631
+ name: Object.keys(b)[0],
2632
+ onGlobalAction: p[0] || (p[0] = ($, P) => n("globalAction", $, P))
2543
2633
  }, null, 8, ["name"]))), 128))
2544
2634
  ])
2545
2635
  ]),
2546
2636
  _: 3
2547
2637
  }));
2548
2638
  }
2549
- }), ar = /* @__PURE__ */ z({
2639
+ }), kr = /* @__PURE__ */ U({
2550
2640
  __name: "FieldRenderer",
2551
2641
  props: {
2552
2642
  match: { type: Function },
2553
2643
  priority: {}
2554
2644
  },
2555
2645
  setup(e) {
2556
- const l = e, { default: t } = Se(), { fieldRendererRegistry: n } = te();
2557
- return t && n.set(l.match, t), (o, a) => null;
2646
+ const r = e, { default: t } = Se(), { fieldRendererRegistry: n } = ae();
2647
+ return t && n.set(r.match, t), (o, a) => null;
2558
2648
  }
2559
- }), Ln = ["data-testid"], Rn = /* @__PURE__ */ z({
2649
+ }), tr = ["data-testid"], ar = /* @__PURE__ */ U({
2560
2650
  __name: "SwitchField",
2561
2651
  props: {
2562
2652
  labelAttributes: {},
@@ -2566,110 +2656,110 @@ const ke = /* @__PURE__ */ z({
2566
2656
  name: {}
2567
2657
  },
2568
2658
  emits: ["update:modelValue"],
2569
- setup(e, { emit: l }) {
2570
- const { i18n: { t } } = me(), n = fe(e, ["name", "enabledText", "disabledText"]), { value: o, hide: a, emptyOrDefaultValue: i, ...u } = ae(B(() => e.name)), m = l, r = (h) => {
2571
- o.value = h, m("update:modelValue", h);
2572
- }, c = oe(u.path, n);
2573
- return (h, f) => {
2574
- const p = N("KAlert");
2659
+ setup(e, { emit: r }) {
2660
+ const { i18n: { t } } = pe(), n = fe(e, ["name", "enabledText", "disabledText"]), { value: o, hide: a, emptyOrDefaultValue: i, ...u } = ne(B(() => e.name)), m = r, l = (v) => {
2661
+ o.value = v, m("update:modelValue", v);
2662
+ }, d = ie(u.path, n);
2663
+ return (v, f) => {
2664
+ const p = H("KAlert");
2575
2665
  return u.error ? (A(), T(p, {
2576
2666
  key: 0,
2577
2667
  appearance: "danger",
2578
2668
  message: u.error.message
2579
- }, null, 8, ["message"])) : Q((A(), L("div", {
2669
+ }, null, 8, ["message"])) : Z((A(), L("div", {
2580
2670
  key: 1,
2581
2671
  class: "ff-switch-field",
2582
2672
  "data-testid": `ff-${u.path.value}`
2583
2673
  }, [
2584
- K(s(Nt), J(s(c), {
2674
+ K(s(ta), J(s(d), {
2585
2675
  "model-value": !!(s(o) == null ? s(i) : s(o)),
2586
- "onUpdate:modelValue": r
2676
+ "onUpdate:modelValue": l
2587
2677
  }), {
2588
- label: j(() => [
2589
- ie(re(s(o) ? e.enabledText || s(t)("actions.enabled") : e.disabledText || s(t)("actions.disabled")), 1)
2678
+ label: F(() => [
2679
+ se(G(s(o) ? e.enabledText || s(t)("actions.enabled") : e.disabledText || s(t)("actions.disabled")), 1)
2590
2680
  ]),
2591
2681
  _: 1
2592
2682
  }, 16, ["model-value"])
2593
- ], 8, Ln)), [
2594
- [Z, !s(a)]
2683
+ ], 8, tr)), [
2684
+ [ee, !s(a)]
2595
2685
  ]);
2596
2686
  };
2597
2687
  }
2598
- }), nr = /* @__PURE__ */ X(Rn, [["__scopeId", "data-v-02605202"]]);
2688
+ }), Ar = /* @__PURE__ */ Q(ar, [["__scopeId", "data-v-02605202"]]);
2599
2689
  export {
2600
- Za as ArrayField,
2601
- qa as BooleanField,
2690
+ yn as ArrayField,
2691
+ sn as BooleanField,
2602
2692
  Ke as EXPRESSIONS_FIELD,
2603
2693
  Le as EXPRESSION_ARRAY_EMPTY,
2604
2694
  $e as EnhancedInput,
2605
- ot as EntityChecksAlert,
2606
- we as EnumField,
2607
- At as ExpressionEditor,
2608
- lt as FIELD_PATH_KEY,
2609
- Ee as FIELD_RENDERERS,
2695
+ mt as EntityChecksAlert,
2696
+ Ee as EnumField,
2697
+ Tt as ExpressionEditor,
2698
+ st as FIELD_PATH_KEY,
2699
+ we as FIELD_RENDERERS,
2610
2700
  Ue as FIELD_RENDERER_SLOTS,
2611
- st as FIELD_RESET_LABEL_PATH_SETTING,
2701
+ lt as FIELD_RESET_LABEL_PATH_SETTING,
2612
2702
  _e as FREE_FORM_SCHEMA_MAP_KEY,
2613
2703
  ke as Field,
2614
- ar as FieldRenderer,
2615
- wn as ForeignField,
2616
- tr as Form,
2617
- Vn as JsonField,
2618
- Mn as MapField,
2619
- bn as NumberField,
2620
- mn as ObjectField,
2621
- tn as SlideTransition,
2622
- $t as StringArrayField,
2704
+ kr as FieldRenderer,
2705
+ Un as ForeignField,
2706
+ gr as Form,
2707
+ Nn as JsonField,
2708
+ Qn as MapField,
2709
+ Mn as NumberField,
2710
+ Fn as ObjectField,
2711
+ gn as SlideTransition,
2712
+ Ft as StringArrayField,
2623
2713
  Ze as StringField,
2624
- nr as SwitchField,
2625
- ka as USE_SECRET_INPUT_KEY,
2714
+ Ar as SwitchField,
2715
+ qa as USE_SECRET_INPUT_KEY,
2626
2716
  Ye as arraySymbol,
2627
- Zt as buildAncestor,
2628
- Me as buildArraySchemaMap,
2629
- xe as buildMapSchemaMap,
2630
- Ie as buildRecordSchemaMap,
2631
- aa as buildSchemaMap,
2632
- kt as defaultLabelFormatter,
2633
- ia as findExpressionSourceRecord,
2717
+ ua as buildAncestor,
2718
+ Oe as buildArraySchemaMap,
2719
+ Me as buildMapSchemaMap,
2720
+ je as buildRecordSchemaMap,
2721
+ Sa as buildSchemaMap,
2722
+ It as defaultLabelFormatter,
2723
+ Fa as findExpressionSourceRecord,
2634
2724
  ye as generalizePath,
2635
- Qn as generateCredentialSecret,
2725
+ hr as generateCredentialSecret,
2636
2726
  ve as getName,
2637
2727
  rt as isAbsolute,
2638
- ua as isExpressionFieldSchema,
2639
- Xt as isTagField,
2728
+ xa as isExpressionFieldSchema,
2729
+ oa as isTagField,
2640
2730
  Ge as mapSymbol,
2641
- Xn as normalizeMatch,
2642
- ha as provideFormShared,
2643
- mt as pruneHiddenPaths,
2731
+ vr as normalizeMatch,
2732
+ Ca as provideFormShared,
2733
+ At as pruneHiddenPaths,
2644
2734
  Xe as removeRootSymbol,
2645
- Zn as renderRuleExactMatch,
2646
- bt as replaceByDictionary,
2647
- gt as replaceByDictionaryInFieldName,
2648
- x as resolve,
2649
- ea as resolveEmptyFieldValue,
2650
- Kn as resolveFieldComponent,
2735
+ yr as renderRuleExactMatch,
2736
+ Et as replaceByDictionary,
2737
+ Pt as replaceByDictionaryInFieldName,
2738
+ M as resolve,
2739
+ _a as resolveEmptyFieldValue,
2740
+ er as resolveFieldComponent,
2651
2741
  ge as resolveRoot,
2652
2742
  ce as rootSymbol,
2653
- Oe as separator,
2654
- ht as sortFieldsByBundles,
2655
- vt as sortFieldsByFieldNames,
2743
+ xe as separator,
2744
+ _t as sortFieldsByBundles,
2745
+ $t as sortFieldsByFieldNames,
2656
2746
  q as toArray,
2657
- sa as toExpressionPath,
2658
- Gt as toSelectItems,
2659
- oa as toSourcePath,
2660
- ba as useExpressionField,
2661
- ae as useField,
2662
- yt as useFieldAncestors,
2663
- oe as useFieldAttrs,
2664
- Sa as useFieldLabel,
2747
+ Ia as toExpressionPath,
2748
+ la as toSelectItems,
2749
+ Ta as toSourcePath,
2750
+ Da as useExpressionField,
2751
+ ne as useField,
2752
+ Vt as useFieldAncestors,
2753
+ ie as useFieldAttrs,
2754
+ Ja as useFieldLabel,
2665
2755
  Qe as useFieldPath,
2666
- ga as useFieldRenderer,
2667
- Aa as useFormData,
2668
- te as useFormShared,
2669
- $a as useItemKeys,
2670
- Va as useLabelPath,
2671
- Ea as useMapField,
2672
- ya as useOptionalFormShared,
2673
- er as useSchemaExposer,
2674
- na as useSchemaHelpers
2756
+ Na as useFieldRenderer,
2757
+ Ha as useFormData,
2758
+ ae as useFormShared,
2759
+ Ua as useItemKeys,
2760
+ Wa as useLabelPath,
2761
+ Ya as useMapField,
2762
+ Ba as useOptionalFormShared,
2763
+ br as useSchemaExposer,
2764
+ wa as useSchemaHelpers
2675
2765
  };