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