@kong-ui-public/entities-plugins 9.226.0 → 9.227.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.
@@ -1,47 +1,47 @@
1
- import { toValue as R, computed as C, ref as le, readonly as vt, watch as ne, onBeforeUnmount as bt, reactive as et, toRef as E, useSlots as we, provide as qe, inject as ke, defineComponent as N, useAttrs as ye, openBlock as w, createBlock as q, unref as r, mergeProps as W, createSlots as X, renderList as se, withCtx as M, renderSlot as D, normalizeProps as Ue, guardReactiveProps as tt, createPropsRestProxy as ue, resolveComponent as F, withDirectives as Y, createElementBlock as j, createVNode as K, createElementVNode as U, resolveDynamicComponent as re, createCommentVNode as z, Fragment as te, vShow as Q, useCssVars as _t, useTemplateRef as at, normalizeClass as Pe, createTextVNode as me, toDisplayString as de, withModifiers as Ie, nextTick as Re, Transition as At, useId as wt, useModel as Ve, onBeforeMount as kt, mergeModels as je, withKeys as We, toRaw as St } from "vue";
2
- import { marked as Tt } from "marked";
3
- import Ct from "dompurify";
4
- import { get as Ne, isEqual as he, omit as Pt, cloneDeep as Je, set as nt, isFunction as Ge, uniqueId as It, upperFirst as qt } from "lodash-es";
5
- import { createInjectionState as Lt } from "@vueuse/core";
6
- import { AUTOFILL_SLOT as it } from "@kong-ui-public/forms";
7
- import { createI18n as ot, i18nTComponent as rt } from "@kong-ui-public/i18n";
8
- import { KTextArea as Mt, KInput as $t, KCheckbox as xt, KCard as Ee, KLabel as Kt, KMultiselect as Rt, KSelect as Vt, KInputSwitch as jt } from "@kong/kongponents";
9
- import { AddIcon as Oe, CloseIcon as st, TrashIcon as Et, ChevronRightIcon as Ot } from "@kong/icons";
10
- import { KUI_ICON_SIZE_30 as Dt } from "@kong/design-tokens";
11
- function Ft(e) {
1
+ import { toValue as K, computed as C, ref as le, readonly as _t, watch as X, onBeforeUnmount as At, reactive as tt, toRef as E, useSlots as ke, provide as Le, inject as Se, toRaw as at, onUnmounted as wt, defineComponent as N, useAttrs as ye, openBlock as w, createBlock as q, unref as r, mergeProps as W, createSlots as Y, renderList as se, withCtx as M, renderSlot as F, normalizeProps as Ne, guardReactiveProps as nt, createPropsRestProxy as ue, resolveComponent as D, withDirectives as Q, createElementBlock as j, createVNode as R, createElementVNode as U, resolveDynamicComponent as re, createCommentVNode as z, Fragment as ae, vShow as Z, useCssVars as kt, useTemplateRef as it, normalizeClass as Ie, createTextVNode as me, toDisplayString as de, withModifiers as qe, nextTick as Ve, Transition as St, useId as Tt, useModel as je, onBeforeMount as Ct, mergeModels as Ee, withKeys as Je } from "vue";
2
+ import { marked as Pt } from "marked";
3
+ import It from "dompurify";
4
+ import { get as ze, isEqual as he, omit as qt, cloneDeep as Ge, set as ot, isFunction as Xe, uniqueId as Lt, upperFirst as Mt } from "lodash-es";
5
+ import { createInjectionState as $t } from "@vueuse/core";
6
+ import { AUTOFILL_SLOT as rt } from "@kong-ui-public/forms";
7
+ import { createI18n as st, i18nTComponent as lt } from "@kong-ui-public/i18n";
8
+ import { KTextArea as xt, KInput as Rt, KCheckbox as Kt, KCard as Oe, KLabel as Vt, KMultiselect as jt, KSelect as Et, KInputSwitch as Ot } from "@kong/kongponents";
9
+ import { AddIcon as Fe, CloseIcon as ut, TrashIcon as Ft, ChevronRightIcon as Dt } from "@kong/icons";
10
+ import { KUI_ICON_SIZE_30 as Bt } from "@kong/design-tokens";
11
+ function Ut(e) {
12
12
  return e.map((c) => ({ value: c, label: `${c}` }));
13
13
  }
14
- const ze = "*", He = "#", pe = "$", Le = ".";
14
+ const He = "*", We = "#", pe = "$", Me = ".";
15
15
  function $(...e) {
16
- return e.join(Le);
16
+ return e.join(Me);
17
17
  }
18
18
  function De(...e) {
19
19
  return $(pe, ...e);
20
20
  }
21
- function Xe(e) {
21
+ function Ye(e) {
22
22
  return e.startsWith($(pe, ""));
23
23
  }
24
- function ae(e) {
25
- return e.split(Le).filter((c) => c !== "");
24
+ function ne(e) {
25
+ return e.split(Me).filter((c) => c !== "");
26
26
  }
27
27
  function fe(e) {
28
- const c = ae(e);
28
+ const c = ne(e);
29
29
  return c[c.length - 1];
30
30
  }
31
- function Bt(e) {
32
- return e.startsWith(pe) && (e = $(...ae(e).slice(1))), e;
31
+ function Nt(e) {
32
+ return e.startsWith(pe) && (e = $(...ne(e).slice(1))), e;
33
33
  }
34
- function Ut(e) {
35
- const c = R(e);
34
+ function zt(e) {
35
+ const c = K(e);
36
36
  return c ? c.type === "set" && c.elements.type === "string" && !c.elements.one_of : !1;
37
37
  }
38
- function lt(e, c) {
38
+ function ct(e, c) {
39
39
  return [...e].sort((t, n) => {
40
40
  const o = Object.keys(t)[0], a = Object.keys(n)[0], p = c.indexOf(o), d = c.indexOf(a);
41
41
  return p === -1 && d === -1 ? 0 : p === -1 ? 1 : d === -1 ? -1 : p - d;
42
42
  });
43
43
  }
44
- function ut(e, c) {
44
+ function dt(e, c) {
45
45
  const t = /* @__PURE__ */ new Map();
46
46
  e.forEach((i) => {
47
47
  const h = Object.keys(i)[0];
@@ -92,9 +92,9 @@ function ut(e, c) {
92
92
  }
93
93
  return a;
94
94
  }
95
- function Nt(e) {
95
+ function Ht(e) {
96
96
  var n;
97
- const c = ae(e);
97
+ const c = ne(e);
98
98
  let t = { parent: null };
99
99
  for (c.pop(); c.length; ) {
100
100
  const o = c.shift();
@@ -102,83 +102,83 @@ function Nt(e) {
102
102
  }
103
103
  return t;
104
104
  }
105
- function ct(e) {
106
- return C(() => Nt(R(e)));
105
+ function pt(e) {
106
+ return C(() => Ht(K(e)));
107
107
  }
108
- const Ye = Symbol("free-form-field-path"), Fe = Symbol("free-form-field-renderer-slots"), Qe = Symbol("free-form-field-reset-label-path-setting"), Se = "free-form-field-renderers-slot", zt = {
108
+ const Qe = Symbol("free-form-field-path"), Be = Symbol("free-form-field-renderer-slots"), Ze = Symbol("free-form-field-reset-label-path-setting"), Te = "free-form-field-renderers-slot", Wt = {
109
109
  tooltipAttributes: {
110
110
  maxWidth: "300px",
111
111
  placement: "top"
112
112
  }
113
113
  };
114
- function Ht(e, c = "") {
114
+ function Jt(e, c = "") {
115
115
  const t = {}, n = e;
116
- return Array.isArray(n.fields) ? Object.assign(t, Me(n, c)) : e.type === "array" && e.elements ? Object.assign(t, $e(e, c)) : e.type === "map" && e.values && Object.assign(t, xe(e, c)), t;
116
+ return Array.isArray(n.fields) ? Object.assign(t, $e(n, c)) : e.type === "array" && e.elements ? Object.assign(t, xe(e, c)) : e.type === "map" && e.values && Object.assign(t, Re(e, c)), t;
117
117
  }
118
- function Me(e, c = "") {
118
+ function $e(e, c = "") {
119
119
  const t = {};
120
120
  if (Array.isArray(e.fields))
121
121
  for (const n of e.fields) {
122
122
  const o = Object.keys(n)[0], a = n[o], p = c ? $(c, o) : o;
123
123
  if (t[p] = a, a.type === "record" && Array.isArray(a.fields)) {
124
- const d = Me(a, p);
124
+ const d = $e(a, p);
125
125
  Object.assign(t, d);
126
126
  } else if (a.type === "array" && a.elements) {
127
- const d = $e(a, p);
127
+ const d = xe(a, p);
128
128
  Object.assign(t, d);
129
129
  } else if (a.type === "map" && a.values) {
130
- const d = xe(a, p);
130
+ const d = Re(a, p);
131
131
  Object.assign(t, d);
132
132
  }
133
133
  }
134
134
  return t;
135
135
  }
136
- function $e(e, c = "") {
136
+ function xe(e, c = "") {
137
137
  const t = {};
138
138
  if (e.elements) {
139
- const n = e.elements, o = $(c, ze);
139
+ const n = e.elements, o = $(c, He);
140
140
  if (t[o] = n, n.type === "record" && Array.isArray(n.fields)) {
141
- const a = Me(n, o);
141
+ const a = $e(n, o);
142
142
  Object.assign(t, a);
143
143
  } else if (n.type === "array" && n.elements) {
144
- const a = $e(n, o);
144
+ const a = xe(n, o);
145
145
  Object.assign(t, a);
146
146
  } else if (n.type === "map" && n.values) {
147
- const a = xe(n, o);
147
+ const a = Re(n, o);
148
148
  Object.assign(t, a);
149
149
  }
150
150
  }
151
151
  return t;
152
152
  }
153
- function xe(e, c = "") {
154
- const t = {}, n = $(c, He);
153
+ function Re(e, c = "") {
154
+ const t = {}, n = $(c, We);
155
155
  if (t[n] = e.values, e.values.type === "record" && Array.isArray(e.values.fields)) {
156
- const o = Me(e.values, n);
156
+ const o = $e(e.values, n);
157
157
  Object.assign(t, o);
158
158
  } else if ((e.values.type === "array" || e.values.type === "set") && e.values.elements) {
159
- const o = $e(e.values, n);
159
+ const o = xe(e.values, n);
160
160
  Object.assign(t, o);
161
161
  } else if (e.values.type === "map" && e.values.values) {
162
- const o = xe(e.values, n);
162
+ const o = Re(e.values, n);
163
163
  Object.assign(t, o);
164
164
  }
165
165
  return t;
166
166
  }
167
- function Ae(e, c) {
168
- const t = ae(e), n = [];
167
+ function we(e, c) {
168
+ const t = ne(e), n = [];
169
169
  for (let o = 0; o < t.length; o++) {
170
170
  const a = t[o], p = n.length > 0 ? $(...n) : "", d = p ? c[p] : void 0;
171
- (d == null ? void 0 : d.type) === "map" ? n.push(He) : (d == null ? void 0 : d.type) === "array" ? n.push(ze) : n.push(a);
171
+ (d == null ? void 0 : d.type) === "map" ? n.push(We) : (d == null ? void 0 : d.type) === "array" ? n.push(He) : n.push(a);
172
172
  }
173
173
  return $(...n);
174
174
  }
175
- function Wt(e) {
176
- const c = R(e), t = C(() => c ? Ht(c) : {});
175
+ function Gt(e) {
176
+ const c = K(e), t = C(() => c ? Jt(c) : {});
177
177
  function n(l) {
178
178
  var s;
179
179
  if (l) {
180
- let u = Ae(l, t.value || {});
181
- return u.startsWith(`${pe}${Le}`) && (u = u.slice(2)), (s = t.value) == null ? void 0 : s[u];
180
+ let u = we(l, t.value || {});
181
+ return u.startsWith(`${pe}${Me}`) && (u = u.slice(2)), (s = t.value) == null ? void 0 : s[u];
182
182
  }
183
183
  return c;
184
184
  }
@@ -199,9 +199,9 @@ function Wt(e) {
199
199
  return l ? o(l, !0) : a(n(), "");
200
200
  }
201
201
  function d(l) {
202
- const s = n(l), u = s != null && s.description ? Ct.sanitize(Tt.parse(s.description, { async: !1 })) : void 0;
202
+ const s = n(l), u = s != null && s.description ? It.sanitize(Pt.parse(s.description, { async: !1 })) : void 0;
203
203
  return {
204
- ...zt,
204
+ ...Wt,
205
205
  "data-testid": `ff-label-${l}`,
206
206
  info: u
207
207
  };
@@ -209,7 +209,7 @@ function Wt(e) {
209
209
  function f(l) {
210
210
  var u;
211
211
  const s = n(l);
212
- return Ft((s == null ? void 0 : s.one_of) || ((u = s.elements) == null ? void 0 : u.one_of) || []);
212
+ return Ut((s == null ? void 0 : s.one_of) || ((u = s.elements) == null ? void 0 : u.one_of) || []);
213
213
  }
214
214
  function i(l) {
215
215
  const s = n(l), u = s == null ? void 0 : s.default;
@@ -245,14 +245,14 @@ function Wt(e) {
245
245
  getEmptyOrDefault: g
246
246
  };
247
247
  }
248
- const Be = Symbol("ff-render-rule-exact-match");
249
- function Rn(e) {
250
- return { [Be]: e };
248
+ const Ue = Symbol("ff-render-rule-exact-match");
249
+ function jn(e) {
250
+ return { [Ue]: e };
251
251
  }
252
- function Jt(e, c) {
252
+ function Xt(e, c) {
253
253
  const t = le({}), n = le(/* @__PURE__ */ new Set());
254
254
  function o(m, b) {
255
- const y = m.map((A) => ae(A).length), v = y[0];
255
+ const y = m.map((A) => ne(A).length), v = y[0];
256
256
  if (!y.every((A) => A === v)) {
257
257
  const A = m.map((I, _) => ` - '${I}' is at level ${y[_]}`).join(`
258
258
  `);
@@ -326,16 +326,16 @@ ${L}`
326
326
  }
327
327
  }
328
328
  function d(m, b) {
329
- const y = m.map((A) => b ? $(b, A) : A), v = ae(y[0]);
329
+ const y = m.map((A) => b ? $(b, A) : A), v = ne(y[0]);
330
330
  return v.pop(), $(...v);
331
331
  }
332
332
  function f(m, b) {
333
333
  if (!b) return m;
334
- const y = `${b}${Le}`;
334
+ const y = `${b}${Me}`;
335
335
  return m.startsWith(y) ? m.slice(y.length) : m;
336
336
  }
337
337
  function i(m) {
338
- const b = ae(m);
338
+ const b = ne(m);
339
339
  return b.pop(), $(...b);
340
340
  }
341
341
  const h = C(() => {
@@ -373,14 +373,14 @@ ${L}`
373
373
  function g(m) {
374
374
  if (!m)
375
375
  return h.value;
376
- const b = Ae(m, c());
376
+ const b = we(m, c());
377
377
  return h.value[b];
378
378
  }
379
379
  function l(m) {
380
380
  let b = !1;
381
381
  return C(() => {
382
382
  if (b) return;
383
- const y = R(m);
383
+ const y = K(m);
384
384
  try {
385
385
  return g(y);
386
386
  } catch (v) {
@@ -396,28 +396,28 @@ ${L}`
396
396
  parentValue: v,
397
397
  omittedFields: A
398
398
  } = m;
399
- ne([
400
- () => R(y),
401
- () => R(b)
399
+ X([
400
+ () => K(y),
401
+ () => K(b)
402
402
  ], ([_, k], [, S]) => {
403
403
  _ ? t.value[k] = _ : delete t.value[k], S && S !== k && delete t.value[S];
404
404
  }, { immediate: !0, deep: !0 });
405
405
  const I = l(b);
406
- return ne(
406
+ return X(
407
407
  [
408
- () => R(v),
408
+ () => K(v),
409
409
  () => {
410
410
  var _;
411
- return (_ = R(I)) == null ? void 0 : _.dependencies;
411
+ return (_ = K(I)) == null ? void 0 : _.dependencies;
412
412
  },
413
- () => R(b),
414
- () => R(A)
413
+ () => K(b),
414
+ () => K(A)
415
415
  ],
416
416
  ([_, k, S, L]) => {
417
417
  !k || !_ || Object.entries(k).forEach(([V, [B, P]]) => {
418
418
  if (L != null && L.includes(V)) return;
419
- const T = Ne(_, B), x = S ? Bt($(S, V)) : V;
420
- if (typeof P == "object" && P !== null && Be in P ? he(T, P[Be]) : Array.isArray(P) ? P.some((J) => he(T, J)) : he(T, P)) {
419
+ const T = ze(_, B), x = S ? Nt($(S, V)) : V;
420
+ if (typeof P == "object" && P !== null && Ue in P ? he(T, P[Ue]) : Array.isArray(P) ? P.some((J) => he(T, J)) : he(T, P)) {
421
421
  n.value.delete(x), e();
422
422
  return;
423
423
  }
@@ -425,8 +425,8 @@ ${L}`
425
425
  });
426
426
  },
427
427
  { deep: !0, immediate: !0 }
428
- ), bt(() => {
429
- const _ = R(b);
428
+ ), At(() => {
429
+ const _ = K(b);
430
430
  delete t.value[_];
431
431
  }), I;
432
432
  }
@@ -436,18 +436,18 @@ ${L}`
436
436
  return {
437
437
  useCurrentRules: s,
438
438
  createComputedRules: l,
439
- hiddenPaths: vt(n),
439
+ hiddenPaths: _t(n),
440
440
  isFieldHidden: u
441
441
  };
442
442
  }
443
- let Gt = 0;
444
- function Xt() {
445
- return `kid:${++Gt}`;
443
+ let Yt = 0;
444
+ function Qt() {
445
+ return `kid:${++Yt}`;
446
446
  }
447
- function Yt(e) {
448
- const c = et(/* @__PURE__ */ new Map());
447
+ function Zt(e) {
448
+ const c = tt(/* @__PURE__ */ new Map());
449
449
  function t(i = "") {
450
- const h = Xt();
450
+ const h = Qt();
451
451
  return c.set(h, i), h;
452
452
  }
453
453
  function n(i) {
@@ -460,10 +460,10 @@ function Yt(e) {
460
460
  c.delete(i);
461
461
  }
462
462
  function p(i) {
463
- return Qt(i, e, t);
463
+ return ea(i, e, t);
464
464
  }
465
465
  function d(i) {
466
- return Zt(i, e, n);
466
+ return ta(i, e, n);
467
467
  }
468
468
  function f() {
469
469
  c.clear();
@@ -478,7 +478,7 @@ function Yt(e) {
478
478
  clear: f
479
479
  };
480
480
  }
481
- function Qt(e, c, t) {
481
+ function ea(e, c, t) {
482
482
  const n = (o, a) => {
483
483
  if (o == null || typeof o != "object")
484
484
  return o;
@@ -503,7 +503,7 @@ function Qt(e, c, t) {
503
503
  };
504
504
  return n(e);
505
505
  }
506
- function Zt(e, c, t) {
506
+ function ta(e, c, t) {
507
507
  const n = (o, a) => {
508
508
  if (o == null || typeof o != "object")
509
509
  return o;
@@ -521,7 +521,7 @@ function Zt(e, c, t) {
521
521
  console.error(`[FreeForm] Missing name for key ID: ${String(g)}`);
522
522
  return;
523
523
  }
524
- const u = s || He, m = a ? $(a, u) : u;
524
+ const u = s || We, m = a ? $(a, u) : u;
525
525
  i[s] = n(l, m);
526
526
  }), i;
527
527
  }
@@ -533,10 +533,10 @@ function Zt(e, c, t) {
533
533
  };
534
534
  return n(e);
535
535
  }
536
- function ea(e) {
536
+ function aa(e) {
537
537
  return /^kid:\d+$/.test(e);
538
538
  }
539
- const [ta, aa] = Lt(
539
+ const [na, ia] = $t(
540
540
  function(c) {
541
541
  const {
542
542
  schema: t,
@@ -548,14 +548,14 @@ const [ta, aa] = Lt(
548
548
  getDefault: d,
549
549
  getEmptyOrDefault: f,
550
550
  ...i
551
- } = Wt(t), h = Yt(i.getSchema), g = /* @__PURE__ */ new Map(), l = et({}), s = E(() => p ?? {}), u = we();
552
- qe(Fe, Pt(u, "default", Se));
551
+ } = Gt(t), h = Zt(i.getSchema), g = /* @__PURE__ */ new Map(), l = tt({}), s = E(() => p ?? {}), u = ke();
552
+ Le(Be, qt(u, "default", Te));
553
553
  const {
554
554
  useCurrentRules: m,
555
555
  createComputedRules: b,
556
556
  hiddenPaths: y,
557
557
  isFieldHidden: v
558
- } = Jt(() => o == null ? void 0 : o(S()), i.getSchemaMap), A = m({
558
+ } = Xt(() => o == null ? void 0 : o(S()), i.getSchemaMap), A = m({
559
559
  fieldPath: pe,
560
560
  rules: a,
561
561
  parentValue: l
@@ -567,26 +567,26 @@ const [ta, aa] = Lt(
567
567
  }
568
568
  function _(T) {
569
569
  let x;
570
- !T || !k(R(T)) ? x = d() : x = Je(R(T)), Ge(s.value.prepareFormData) ? I(s.value.prepareFormData(x)) : I(x);
570
+ !T || !k(K(T)) ? x = d() : x = Ge(K(T)), Xe(s.value.prepareFormData) ? I(s.value.prepareFormData(x)) : I(x);
571
571
  }
572
572
  function k(T) {
573
- return Ge(s.value.hasValue) ? s.value.hasValue(T) : !!T;
573
+ return Xe(s.value.hasValue) ? s.value.hasValue(T) : !!T;
574
574
  }
575
575
  function S() {
576
- const T = R(l), x = Je(T);
576
+ const T = K(l), x = Ge(T);
577
577
  if (y.value.size > 0)
578
- for (const ee of y.value) {
579
- const H = ae(ee), J = H.slice(0, -1);
580
- (J.length === 0 || Ne(x, J) != null) && nt(x, H, f(ee));
578
+ for (const te of y.value) {
579
+ const H = ne(te), J = H.slice(0, -1);
580
+ (J.length === 0 || ze(x, J) != null) && ot(x, H, f(te));
581
581
  }
582
582
  return h.deserialize(x);
583
583
  }
584
- ne(l, () => {
584
+ X(l, () => {
585
585
  o == null || o(S());
586
586
  }, { deep: !0 });
587
587
  let L = !1;
588
- ne(() => n == null ? void 0 : n.value, (T) => {
589
- L && he(S(), R(T)) || (_(T), L = !0);
588
+ X(() => n == null ? void 0 : n.value, (T) => {
589
+ L && he(S(), K(T)) || (_(T), L = !0);
590
590
  }, { deep: !0, immediate: !0 });
591
591
  function V(T) {
592
592
  return T != null && typeof T == "object" && !Array.isArray(T) ? h.serialize(T) : T;
@@ -619,55 +619,55 @@ const [ta, aa] = Lt(
619
619
  }
620
620
  );
621
621
  function ie() {
622
- const e = aa();
622
+ const e = ia();
623
623
  if (!e)
624
624
  throw new Error("useFormShared() called without provider.");
625
625
  return e;
626
626
  }
627
- const dt = (e) => {
628
- const c = ke(Ye, C(() => "")), t = C(() => {
629
- const n = R(e);
627
+ const mt = (e) => {
628
+ const c = Se(Qe, C(() => "")), t = C(() => {
629
+ const n = K(e);
630
630
  let o = n;
631
- return !Xe(n) && c.value && (o = $(c.value, n)), Xe(n) && (o = o.slice(De("").length)), o;
631
+ return !Ye(n) && c.value && (o = $(c.value, n)), Ye(n) && (o = o.slice(De("").length)), o;
632
632
  });
633
- return qe(Ye, t), t;
634
- }, na = (e) => {
635
- const { getSchema: c, getSchemaMap: t, fieldRendererRegistry: n } = ie(), { default: o, ...a } = we(), p = ke(Fe), d = C(() => {
636
- const f = R(p), i = t(), h = Object.keys(a).filter((g) => g !== Se && g !== "item").reduce((g, l) => {
637
- const s = Ae($(R(e), l), i);
633
+ return Le(Qe, t), t;
634
+ }, oa = (e) => {
635
+ const { getSchema: c, getSchemaMap: t, fieldRendererRegistry: n } = ie(), { default: o, ...a } = ke(), p = Se(Be), d = C(() => {
636
+ const f = K(p), i = t(), h = Object.keys(a).filter((g) => g !== Te && g !== "item").reduce((g, l) => {
637
+ const s = we($(K(e), l), i);
638
638
  return { ...g, [s]: a[l] };
639
639
  }, {});
640
640
  return f ? { ...f, ...h } : h;
641
641
  });
642
- return qe(Fe, d), C(() => {
642
+ return Le(Be, d), C(() => {
643
643
  if (o) return;
644
- const f = R(e), i = d.value[Ae(f, t())];
644
+ const f = K(e), i = d.value[we(f, t())];
645
645
  if (i) return i;
646
646
  const h = t();
647
647
  for (const [g, l] of n) {
648
- const s = Ae(f, h);
648
+ const s = we(f, h);
649
649
  if (g({ path: f, genericPath: s, schema: c(f) }))
650
650
  return l;
651
651
  }
652
652
  });
653
- };
654
- function ia(e) {
655
- const { formData: c } = ie(), t = dt(e);
653
+ }, Ae = "__FREEFORM_SCHEMA_MAP__";
654
+ function ra(e) {
655
+ const { formData: c } = ie(), t = mt(e);
656
656
  return {
657
657
  value: C({
658
- get: () => Ne(c, ae(t.value)),
659
- set: (o) => nt(c, ae(t.value), o)
658
+ get: () => ze(c, ne(t.value)),
659
+ set: (o) => ot(c, ne(t.value), o)
660
660
  })
661
661
  };
662
662
  }
663
- function Z(e) {
664
- const { getSchema: c, isFieldHidden: t, getEmptyOrDefault: n } = ie(), o = dt(e), a = na(o), { value: p } = ia(e), d = C(() => c(o.value)), f = C(() => t(o.value)), i = C(() => n(o.value));
663
+ function ee(e) {
664
+ const { getSchema: c, isFieldHidden: t, getEmptyOrDefault: n } = ie(), o = mt(e), a = oa(o), { value: p } = ra(e), d = C(() => c(o.value)), f = C(() => t(o.value)), i = C(() => n(o.value));
665
665
  return d.value ? {
666
666
  schema: d,
667
667
  path: o,
668
668
  renderer: a,
669
669
  value: p,
670
- ancestors: ct(o),
670
+ ancestors: pt(o),
671
671
  /**
672
672
  * Hide the field but keep its state.
673
673
  */
@@ -678,10 +678,10 @@ function Z(e) {
678
678
  error: new Error(`path '${o.value}' is not found in schema.`)
679
679
  };
680
680
  }
681
- function oa(e, c) {
681
+ function sa(e, c) {
682
682
  const t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new Map();
683
683
  function o() {
684
- return It(`${e}-`);
684
+ return Lt(`${e}-`);
685
685
  }
686
686
  function a(p, d) {
687
687
  if (p == null || typeof p != "object")
@@ -691,8 +691,8 @@ function oa(e, c) {
691
691
  const f = n.has(d) ? n.get(d) : o();
692
692
  return n.set(d, f), t.set(p, f), f;
693
693
  }
694
- return ne(c, (p) => {
695
- const d = R(p), f = /* @__PURE__ */ new Set();
694
+ return X(c, (p) => {
695
+ const d = K(p), f = /* @__PURE__ */ new Set();
696
696
  d.forEach((i, h) => {
697
697
  f.add(h);
698
698
  }), Array.from(n.keys()).forEach((i) => {
@@ -700,7 +700,14 @@ function oa(e, c) {
700
700
  });
701
701
  }, { immediate: !0, deep: !0 }), { getKey: a };
702
702
  }
703
- const ra = {
703
+ function En(e, c) {
704
+ X(e, (t) => {
705
+ window[Ae] || (window[Ae] = {}), window[Ae][c] = at(t);
706
+ }, { immediate: !0, deep: !0 }), wt(() => {
707
+ window[Ae] && delete window[Ae][c];
708
+ });
709
+ }
710
+ const la = {
704
711
  ip: "IP",
705
712
  ssl: "SSL",
706
713
  ttl: "TTL",
@@ -733,21 +740,21 @@ const ra = {
733
740
  traceid: "TraceID",
734
741
  dmq: "DMQ"
735
742
  };
736
- function pt(e) {
737
- return ra[e.toLocaleLowerCase()] ?? e;
743
+ function ft(e) {
744
+ return la[e.toLocaleLowerCase()] ?? e;
738
745
  }
739
- function mt(e) {
740
- return e.split("_").map(pt).join(" ");
746
+ function ht(e) {
747
+ return e.split("_").map(ft).join(" ");
741
748
  }
742
- function sa(e, c) {
743
- const t = ke(Qe, {
749
+ function ua(e, c) {
750
+ const t = Se(Ze, {
744
751
  parentPath: null,
745
752
  isolate: !1
746
- }), { parentPath: n, isolate: o } = R(t), a = le(n ? $(n, e) : e), p = le({
753
+ }), { parentPath: n, isolate: o } = K(t), a = le(n ? $(n, e) : e), p = le({
747
754
  parentPath: a.value,
748
755
  isolate: o
749
756
  });
750
- return ne([E(c), E(t)], ([d, f]) => {
757
+ return X([E(c), E(t)], ([d, f]) => {
751
758
  var l;
752
759
  const { parentPath: i, isolate: h } = f, g = i ? $(i, e) : e;
753
760
  if (d) {
@@ -770,24 +777,24 @@ function sa(e, c) {
770
777
  };
771
778
  (l = s[d]) == null || l.call(s);
772
779
  } else h && (a.value = e, p.value.isolate = !0, p.value.parentPath = null);
773
- }, { deep: !0, immediate: !0 }), qe(Qe, p), a;
780
+ }, { deep: !0, immediate: !0 }), Le(Ze, p), a;
774
781
  }
775
- function ft(e) {
776
- return ae(e).map((t) => t.split("_").map(pt).join(" ")).map(qt).join(" › ");
782
+ function gt(e) {
783
+ return ne(e).map((t) => t.split("_").map(ft).join(" ")).map(Mt).join(" › ");
777
784
  }
778
- function la(e, c) {
779
- const t = R(e), n = fe(t), { config: o, getSchema: a } = ie(), p = sa(n, c), d = ct(e);
785
+ function ca(e, c) {
786
+ const t = K(e), n = fe(t), { config: o, getSchema: a } = ie(), p = ua(n, c), d = pt(e);
780
787
  return C(() => {
781
788
  var s;
782
789
  const f = p.value ?? n, i = (s = d.value.parent) != null && s.path ? a(d.value.parent.path) : null, h = (i == null ? void 0 : i.type) === "array", g = (i == null ? void 0 : i.type) === "map";
783
790
  if (h || g)
784
791
  return "";
785
- const l = ft(f);
792
+ const l = gt(f);
786
793
  return o.value.transformLabel ? o.value.transformLabel(l, t) : l;
787
794
  });
788
795
  }
789
796
  function oe(e, c) {
790
- const { getLabelAttributes: t, getPlaceholder: n, getSchema: o } = ie(), a = R(e), p = R(c), d = la(e, E(() => R(c).resetLabelPath));
797
+ const { getLabelAttributes: t, getPlaceholder: n, getSchema: o } = ie(), a = K(e), p = K(c), d = ca(e, E(() => K(c).resetLabelPath));
791
798
  return C(() => {
792
799
  var f;
793
800
  return {
@@ -799,9 +806,9 @@ function oe(e, c) {
799
806
  };
800
807
  });
801
808
  }
802
- function ua(e, c) {
809
+ function da(e, c) {
803
810
  var s;
804
- const { value: t, ...n } = Z(e), { getEmptyOrDefault: o, keyIdMap: a } = ie(), p = C(() => {
811
+ const { value: t, ...n } = ee(e), { getEmptyOrDefault: o, keyIdMap: a } = ie(), p = C(() => {
805
812
  if (n.path)
806
813
  return n.schema.value.values;
807
814
  }), d = C(() => t ? Object.keys(t.value || {}).map((m) => {
@@ -832,7 +839,7 @@ function ua(e, c) {
832
839
  if (!n.path) return "";
833
840
  const u = fe(n.path.value);
834
841
  let m = u;
835
- return ea(u) && (m = a.getKey(u) ?? ""), mt(m);
842
+ return aa(u) && (m = a.getKey(u) ?? ""), ht(m);
836
843
  });
837
844
  if (c && ((s = p.value) == null ? void 0 : s.type) === "string") {
838
845
  let u = function() {
@@ -844,7 +851,7 @@ function ua(e, c) {
844
851
  }
845
852
  return b;
846
853
  }, m = null;
847
- ne(() => t == null ? void 0 : t.value, (b) => {
854
+ X(() => t == null ? void 0 : t.value, (b) => {
848
855
  const y = u();
849
856
  he(m, y) || (m = y, c == null || c(y));
850
857
  }, { deep: !0 });
@@ -859,10 +866,10 @@ function ua(e, c) {
859
866
  getKeyName: g
860
867
  };
861
868
  }
862
- const ca = {
869
+ const pa = {
863
870
  add_entity: "Add {entity}",
864
871
  remove_entity: "Remove {entity}"
865
- }, da = {
872
+ }, ma = {
866
873
  form: {
867
874
  field_rules: {
868
875
  at_least_one_of: "At least one of the following values is required: {parameters}.",
@@ -877,15 +884,15 @@ const ca = {
877
884
  component_error: "The vault secret picker is not available"
878
885
  }
879
886
  }
880
- }, pa = {
881
- actions: ca,
882
- plugins: da
887
+ }, fa = {
888
+ actions: pa,
889
+ plugins: ma
883
890
  };
884
891
  function ve() {
885
- const e = ot("en-us", pa);
892
+ const e = st("en-us", fa);
886
893
  return {
887
894
  i18n: e,
888
- i18nT: rt(e)
895
+ i18nT: lt(e)
889
896
  };
890
897
  }
891
898
  const be = /* @__PURE__ */ N({
@@ -896,8 +903,8 @@ const be = /* @__PURE__ */ N({
896
903
  },
897
904
  emits: ["update:modelValue"],
898
905
  setup(e, { emit: c }) {
899
- const t = e, n = ye(), o = c, a = C(() => t.multiline ? Mt : $t), p = C(() => n.characterLimit ?? (t.multiline ? !1 : void 0)), d = le(t.modelValue);
900
- ne(() => t.modelValue, (g) => {
906
+ const t = e, n = ye(), o = c, a = C(() => t.multiline ? xt : Rt), p = C(() => n.characterLimit ?? (t.multiline ? !1 : void 0)), d = le(t.modelValue);
907
+ X(() => t.modelValue, (g) => {
901
908
  d.value = g;
902
909
  });
903
910
  const { config: f } = ie(), i = (g) => {
@@ -911,16 +918,16 @@ const be = /* @__PURE__ */ N({
911
918
  resizable: e.multiline ? !0 : void 0,
912
919
  onChange: h,
913
920
  "onUpdate:modelValue": i
914
- }), X({ _: 2 }, [
915
- se(we(), (s, u) => ({
921
+ }), Y({ _: 2 }, [
922
+ se(ke(), (s, u) => ({
916
923
  name: u,
917
924
  fn: M((m) => [
918
- D(g.$slots, u, Ue(tt(m)))
925
+ F(g.$slots, u, Ne(nt(m)))
919
926
  ])
920
927
  }))
921
928
  ]), 1040, ["character-limit", "model-value", "resizable"]));
922
929
  }
923
- }), ma = ["innerHTML"], fa = /* @__PURE__ */ N({
930
+ }), ha = ["innerHTML"], ga = /* @__PURE__ */ N({
924
931
  inheritAttrs: !1,
925
932
  __name: "StringField",
926
933
  props: {
@@ -946,26 +953,26 @@ const be = /* @__PURE__ */ N({
946
953
  },
947
954
  emits: ["update:modelValue"],
948
955
  setup(e, { emit: c }) {
949
- const t = ye(), { i18n: n } = ve(), o = ue(e, ["autofocus", "showVaultSecretPicker", "showPasswordMaskToggle", "name"]), a = c, { value: p, hide: d, ...f } = Z(E(() => e.name)), i = oe(f.path, E({ ...o, ...t })), h = p == null ? void 0 : p.value;
956
+ const t = ye(), { i18n: n } = ve(), o = ue(e, ["autofocus", "showVaultSecretPicker", "showPasswordMaskToggle", "name"]), a = c, { value: p, hide: d, ...f } = ee(E(() => e.name)), i = oe(f.path, E({ ...o, ...t })), h = p == null ? void 0 : p.value;
950
957
  function g(y) {
951
958
  h !== void 0 && y === "" && y !== h ? (p.value = null, a("update:modelValue", null)) : (p.value = y.trim(), a("update:modelValue", y.trim()));
952
959
  }
953
960
  const l = C(() => {
954
961
  var y;
955
962
  return e.showPasswordMaskToggle !== void 0 ? e.showPasswordMaskToggle : o.type === "password" ? !0 : !!((y = f.schema) == null ? void 0 : y.value).encrypted;
956
- }), s = ke(it, void 0), u = C(() => {
963
+ }), s = Se(rt, void 0), u = C(() => {
957
964
  var y;
958
965
  return e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!((y = f.schema.value) != null && y.referenceable);
959
966
  }), m = C(() => ({ referenceable: u.value })), b = C(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : fe(e.name) === "name");
960
967
  return (y, v) => {
961
968
  var I;
962
- const A = F("KAlert");
969
+ const A = D("KAlert");
963
970
  return f.error ? (w(), q(A, {
964
971
  key: 0,
965
972
  appearance: "danger",
966
973
  message: f.error.message
967
- }, null, 8, ["message"])) : Y((w(), j("div", Ue(W({ key: 1 }, y.$attrs)), [
968
- K(be, W({
974
+ }, null, 8, ["message"])) : Q((w(), j("div", Ne(W({ key: 1 }, y.$attrs)), [
975
+ R(be, W({
969
976
  ...r(i),
970
977
  showPasswordMaskToggle: l.value,
971
978
  type: l.value ? "password" : "text"
@@ -982,14 +989,14 @@ const be = /* @__PURE__ */ N({
982
989
  multiline: e.multiline,
983
990
  placeholder: e.placeholder ?? r(i).placeholder,
984
991
  "onUpdate:modelValue": g
985
- }), X({ _: 2 }, [
992
+ }), Y({ _: 2 }, [
986
993
  (I = r(i).labelAttributes) != null && I.info ? {
987
994
  name: "label-tooltip",
988
995
  fn: M(() => [
989
- D(y.$slots, "tooltip", {}, () => [
996
+ F(y.$slots, "tooltip", {}, () => [
990
997
  U("div", {
991
998
  innerHTML: r(i).labelAttributes.info
992
- }, null, 8, ma)
999
+ }, null, 8, ha)
993
1000
  ], !0)
994
1001
  ]),
995
1002
  key: "0"
@@ -997,7 +1004,7 @@ const be = /* @__PURE__ */ N({
997
1004
  !(e.multiline && e.error) && y.$slots.help ? {
998
1005
  name: "help",
999
1006
  fn: M(() => [
1000
- D(y.$slots, "help", {}, void 0, !0)
1007
+ F(y.$slots, "help", {}, void 0, !0)
1001
1008
  ]),
1002
1009
  key: "1"
1003
1010
  } : void 0,
@@ -1020,7 +1027,7 @@ const be = /* @__PURE__ */ N({
1020
1027
  key: "2"
1021
1028
  } : void 0
1022
1029
  ]), 1040, ["id", "data-1p-ignore", "data-autofocus", "data-testid", "error", "error-message", "help", "model-value", "multiline", "placeholder"]),
1023
- e.inlineVaultPicker ? z("", !0) : (w(), j(te, { key: 0 }, [
1030
+ e.inlineVaultPicker ? z("", !0) : (w(), j(ae, { key: 0 }, [
1024
1031
  r(s) && u.value ? (w(), q(re(r(s)), {
1025
1032
  key: 0,
1026
1033
  schema: m.value,
@@ -1035,7 +1042,7 @@ const be = /* @__PURE__ */ N({
1035
1042
  }, null, 8, ["data-testid", "message"])) : z("", !0)
1036
1043
  ], 64))
1037
1044
  ], 16)), [
1038
- [Q, !r(d)]
1045
+ [Z, !r(d)]
1039
1046
  ]);
1040
1047
  };
1041
1048
  }
@@ -1044,7 +1051,7 @@ const be = /* @__PURE__ */ N({
1044
1051
  for (const [n, o] of c)
1045
1052
  t[n] = o;
1046
1053
  return t;
1047
- }, ht = /* @__PURE__ */ G(fa, [["__scopeId", "data-v-5cb8f07e"]]), ha = ["innerHTML"], ga = /* @__PURE__ */ N({
1054
+ }, yt = /* @__PURE__ */ G(ga, [["__scopeId", "data-v-5cb8f07e"]]), ya = ["innerHTML"], va = /* @__PURE__ */ N({
1048
1055
  inheritAttrs: !1,
1049
1056
  __name: "BooleanField",
1050
1057
  props: {
@@ -1055,40 +1062,40 @@ const be = /* @__PURE__ */ N({
1055
1062
  },
1056
1063
  emits: ["update:modelValue"],
1057
1064
  setup(e, { emit: c }) {
1058
- const t = ue(e, ["autofocus", "name"]), { value: n, hide: o, emptyOrDefaultValue: a, ...p } = Z(E(() => e.name)), d = c, f = (h) => {
1065
+ const t = ue(e, ["autofocus", "name"]), { value: n, hide: o, emptyOrDefaultValue: a, ...p } = ee(E(() => e.name)), d = c, f = (h) => {
1059
1066
  n.value = h, d("update:modelValue", h);
1060
1067
  }, i = oe(p.path, t);
1061
1068
  return (h, g) => {
1062
1069
  var s;
1063
- const l = F("KAlert");
1070
+ const l = D("KAlert");
1064
1071
  return p.error ? (w(), q(l, {
1065
1072
  key: 0,
1066
1073
  appearance: "danger",
1067
1074
  message: p.error.message
1068
- }, null, 8, ["message"])) : Y((w(), q(r(xt), W({ key: 1 }, { ...r(i), ...h.$attrs }, {
1075
+ }, null, 8, ["message"])) : Q((w(), q(r(Kt), W({ key: 1 }, { ...r(i), ...h.$attrs }, {
1069
1076
  class: "ff-boolean-field",
1070
1077
  "data-autofocus": e.autofocus ? "true" : void 0,
1071
1078
  "data-testid": `ff-${p.path.value}`,
1072
1079
  "model-value": !!(r(n) == null ? r(a) : r(n)),
1073
1080
  "onUpdate:modelValue": f
1074
- }), X({ _: 2 }, [
1081
+ }), Y({ _: 2 }, [
1075
1082
  (s = r(i).labelAttributes) != null && s.info ? {
1076
1083
  name: "tooltip",
1077
1084
  fn: M(() => [
1078
- D(h.$slots, "tooltip", {}, () => [
1085
+ F(h.$slots, "tooltip", {}, () => [
1079
1086
  U("div", {
1080
1087
  innerHTML: r(i).labelAttributes.info
1081
- }, null, 8, ha)
1088
+ }, null, 8, ya)
1082
1089
  ], !0)
1083
1090
  ]),
1084
1091
  key: "0"
1085
1092
  } : void 0
1086
1093
  ]), 1040, ["data-autofocus", "data-testid", "model-value"])), [
1087
- [Q, !r(o)]
1094
+ [Z, !r(o)]
1088
1095
  ]);
1089
1096
  };
1090
1097
  }
1091
- }), ya = /* @__PURE__ */ G(ga, [["__scopeId", "data-v-a1c08c7f"]]), va = ["data-testid"], ba = ["innerHTML"], _a = /* @__PURE__ */ N({
1098
+ }), ba = /* @__PURE__ */ G(va, [["__scopeId", "data-v-a1c08c7f"]]), _a = ["data-testid"], Aa = ["innerHTML"], wa = /* @__PURE__ */ N({
1092
1099
  inheritAttrs: !1,
1093
1100
  __name: "StringArrayField",
1094
1101
  props: {
@@ -1099,7 +1106,7 @@ const be = /* @__PURE__ */ N({
1099
1106
  },
1100
1107
  emits: ["update:modelValue"],
1101
1108
  setup(e, { emit: c }) {
1102
- const t = ye(), n = ue(e, ["autofocus", "name"]), o = c, { value: a, hide: p, ...d } = Z(E(() => e.name)), f = oe(d.path, E({ ...n, ...t })), i = C(() => {
1109
+ const t = ye(), n = ue(e, ["autofocus", "name"]), o = c, { value: a, hide: p, ...d } = ee(E(() => e.name)), f = oe(d.path, E({ ...n, ...t })), i = C(() => {
1103
1110
  var m, b;
1104
1111
  return ((b = (m = d.schema) == null ? void 0 : m.value) == null ? void 0 : b.len_min) && d.schema.value.len_min > 0;
1105
1112
  }), h = le("");
@@ -1115,46 +1122,46 @@ const be = /* @__PURE__ */ N({
1115
1122
  a.value = y, o("update:modelValue", y);
1116
1123
  }
1117
1124
  const u = C(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : fe(e.name) === "name");
1118
- return ne(a, (m) => {
1125
+ return X(a, (m) => {
1119
1126
  const b = m ? g(m) : "";
1120
1127
  g(l(h.value)) !== b && (h.value = b);
1121
1128
  }, { immediate: !0 }), (m, b) => {
1122
1129
  var v;
1123
- const y = F("KAlert");
1130
+ const y = D("KAlert");
1124
1131
  return d.error ? (w(), q(y, {
1125
1132
  key: 0,
1126
1133
  appearance: "danger",
1127
1134
  message: d.error.message
1128
- }, null, 8, ["message"])) : Y((w(), j("div", {
1135
+ }, null, 8, ["message"])) : Q((w(), j("div", {
1129
1136
  key: 1,
1130
1137
  "data-testid": `ff-tag-${d.path.value}`
1131
1138
  }, [
1132
- K(be, W(r(f), {
1139
+ R(be, W(r(f), {
1133
1140
  class: "ff-tag-field",
1134
1141
  "data-1p-ignore": u.value,
1135
1142
  "data-autofocus": e.autofocus ? "true" : void 0,
1136
1143
  "data-testid": `ff-${d.path.value}`,
1137
1144
  "model-value": h.value ?? "",
1138
1145
  "onUpdate:modelValue": s
1139
- }), X({ _: 2 }, [
1146
+ }), Y({ _: 2 }, [
1140
1147
  (v = r(f).labelAttributes) != null && v.info ? {
1141
1148
  name: "label-tooltip",
1142
1149
  fn: M(() => [
1143
- D(m.$slots, "tooltip", {}, () => [
1150
+ F(m.$slots, "tooltip", {}, () => [
1144
1151
  U("div", {
1145
1152
  innerHTML: r(f).labelAttributes.info
1146
- }, null, 8, ba)
1153
+ }, null, 8, Aa)
1147
1154
  ], !0)
1148
1155
  ]),
1149
1156
  key: "0"
1150
1157
  } : void 0
1151
1158
  ]), 1040, ["data-1p-ignore", "data-autofocus", "data-testid", "model-value"])
1152
- ], 8, va)), [
1153
- [Q, !r(p)]
1159
+ ], 8, _a)), [
1160
+ [Z, !r(p)]
1154
1161
  ]);
1155
1162
  };
1156
1163
  }
1157
- }), gt = /* @__PURE__ */ G(_a, [["__scopeId", "data-v-3aa09162"]]), Aa = ["data-appearance", "data-testid"], wa = ["data-testid"], ka = ["innerHTML"], Sa = ["data-testid"], Ta = { class: "ff-array-field-item-content" }, Ca = ["data-index", "data-testid"], Ke = 'input:not(:disabled), textarea:not(:disabled), select:not(:disabled), button:not(:disabled), [contenteditable="true"], [tabindex]:not([tabindex="-1"]):not(:disabled)', Pa = /* @__PURE__ */ N({
1164
+ }), vt = /* @__PURE__ */ G(wa, [["__scopeId", "data-v-3aa09162"]]), ka = ["data-appearance", "data-testid"], Sa = ["data-testid"], Ta = ["innerHTML"], Ca = ["data-testid"], Pa = { class: "ff-array-field-item-content" }, Ia = ["data-index", "data-testid"], Ke = 'input:not(:disabled), textarea:not(:disabled), select:not(:disabled), button:not(:disabled), [contenteditable="true"], [tabindex]:not([tabindex="-1"]):not(:disabled)', qa = /* @__PURE__ */ N({
1158
1165
  __name: "ArrayField",
1159
1166
  props: {
1160
1167
  name: {},
@@ -1170,10 +1177,10 @@ const be = /* @__PURE__ */ N({
1170
1177
  emits: ["add", "remove"],
1171
1178
  setup(e, { emit: c }) {
1172
1179
  var B;
1173
- _t((P) => ({
1180
+ kt((P) => ({
1174
1181
  v2cc732dc: V.value
1175
1182
  }));
1176
- const t = e, n = c, { i18n: { t: o } } = ve(), { getDefault: a, getSchema: p } = ie(), { value: d, hide: f, ...i } = Z(E(t, "name")), h = oe(i.path, E({ ...t, ...ye() })), g = C(() => {
1183
+ const t = e, n = c, { i18n: { t: o } } = ve(), { getDefault: a, getSchema: p } = ie(), { value: d, hide: f, ...i } = ee(E(t, "name")), h = oe(i.path, E({ ...t, ...ye() })), g = C(() => {
1177
1184
  if (!i.path) throw new Error("Field path is required for sub-schema retrieval");
1178
1185
  const P = p(i.path.value);
1179
1186
  if (!P) throw new Error(`Schema not found for path: ${i.path.value}`);
@@ -1181,8 +1188,8 @@ const be = /* @__PURE__ */ N({
1181
1188
  }), l = C(() => {
1182
1189
  if (!i.path) return "";
1183
1190
  const P = fe(i.path.value);
1184
- return mt(P);
1185
- }), s = C(() => t.items ?? R(d) ?? []), { getKey: u } = oa("ff-array-field", s), m = C(() => t.appearance ? t.appearance : g.value.type === "record" || g.value.type === "map" ? "card" : "default"), b = C(() => m.value === "card" ? Ee : "div");
1191
+ return ht(P);
1192
+ }), s = C(() => t.items ?? K(d) ?? []), { getKey: u } = sa("ff-array-field", s), m = C(() => t.appearance ? t.appearance : g.value.type === "record" || g.value.type === "map" ? "card" : "default"), b = C(() => m.value === "card" ? Oe : "div");
1186
1193
  function y(P, T) {
1187
1194
  return typeof t.itemLabel == "function" ? t.itemLabel(P, T) : t.itemLabel || h.value.label || `Item #${T}`;
1188
1195
  }
@@ -1191,20 +1198,20 @@ const be = /* @__PURE__ */ N({
1191
1198
  title: ""
1192
1199
  }))), A = le((B = v.value[0]) == null ? void 0 : B.hash), I = async () => {
1193
1200
  var T;
1194
- const P = a($(i.path.value, ze));
1195
- Array.isArray(d.value) || (d.value = []), d.value.push(P), n("add"), t.appearance === "tabs" && (await Re(), A.value = (T = v.value[v.value.length - 1]) == null ? void 0 : T.hash), await Re(), S(s.value.length + 1);
1201
+ const P = a($(i.path.value, He));
1202
+ Array.isArray(d.value) || (d.value = []), d.value.push(P), n("add"), t.appearance === "tabs" && (await Ve(), A.value = (T = v.value[v.value.length - 1]) == null ? void 0 : T.hash), await Ve(), S(s.value.length + 1);
1196
1203
  }, _ = async (P) => {
1197
1204
  var T;
1198
1205
  Array.isArray(d.value) && (d.value.splice(P, 1), d.value.length === 0 && !h.value.required && (d.value = null)), n("remove", P), t.appearance === "tabs" && (A.value = (T = v.value[Math.max(0, P - 1)]) == null ? void 0 : T.hash);
1199
- }, k = at("root");
1206
+ }, k = it("root");
1200
1207
  function S(P) {
1201
1208
  if (!k.value)
1202
1209
  return;
1203
1210
  const T = Math.max(0, Math.min(P, s.value.length - 1)), x = k.value.querySelector(`[data-index="${T}"]`);
1204
1211
  if (!x)
1205
1212
  return;
1206
- const ee = L(x);
1207
- ee == null || ee.focus();
1213
+ const te = L(x);
1214
+ te == null || te.focus();
1208
1215
  }
1209
1216
  function L(P) {
1210
1217
  const T = P.querySelector('[data-autofocus="true"]');
@@ -1215,17 +1222,17 @@ const be = /* @__PURE__ */ N({
1215
1222
  return P !== "tabs" || T == null || T === !1 ? null : typeof T == "number" ? `${t.stickyTabs}px` : typeof T == "string" ? T : "0";
1216
1223
  });
1217
1224
  return (P, T) => {
1218
- var Te;
1219
- const x = F("KAlert"), ee = F("KLabel"), H = F("KButton"), J = F("KTooltip"), _e = F("KTabs");
1225
+ var Ce;
1226
+ const x = D("KAlert"), te = D("KLabel"), H = D("KButton"), J = D("KTooltip"), _e = D("KTabs");
1220
1227
  return i.error ? (w(), q(x, {
1221
1228
  key: 0,
1222
1229
  appearance: "danger",
1223
1230
  message: i.error.message
1224
- }, null, 8, ["message"])) : Y((w(), j("div", {
1231
+ }, null, 8, ["message"])) : Q((w(), j("div", {
1225
1232
  key: 1,
1226
1233
  ref_key: "root",
1227
1234
  ref: k,
1228
- class: Pe(["ff-array-field", {
1235
+ class: Ie(["ff-array-field", {
1229
1236
  [`ff-array-field-${m.value ?? "default"}`]: !0,
1230
1237
  "ff-array-field-sticky-tabs": e.stickyTabs
1231
1238
  }]),
@@ -1237,22 +1244,22 @@ const be = /* @__PURE__ */ N({
1237
1244
  class: "ff-array-field-header",
1238
1245
  "data-testid": `ff-array-header-${i.path.value}`
1239
1246
  }, [
1240
- K(ee, W({ class: "ff-array-field-label" }, r(h), {
1247
+ R(te, W({ class: "ff-array-field-label" }, r(h), {
1241
1248
  "data-testid": `ff-label-${i.path.value}`,
1242
1249
  "tooltip-attributes": r(h).labelAttributes.tooltipAttributes
1243
- }), X({
1250
+ }), Y({
1244
1251
  default: M(() => [
1245
1252
  me(de(r(h).label) + " ", 1)
1246
1253
  ]),
1247
1254
  _: 2
1248
1255
  }, [
1249
- (Te = r(h).labelAttributes) != null && Te.info ? {
1256
+ (Ce = r(h).labelAttributes) != null && Ce.info ? {
1250
1257
  name: "tooltip",
1251
1258
  fn: M(() => [
1252
- D(P.$slots, "tooltip", {}, () => [
1259
+ F(P.$slots, "tooltip", {}, () => [
1253
1260
  U("div", {
1254
1261
  innerHTML: r(h).labelAttributes.info
1255
- }, null, 8, ka)
1262
+ }, null, 8, Ta)
1256
1263
  ], !0)
1257
1264
  ]),
1258
1265
  key: "0"
@@ -1267,30 +1274,30 @@ const be = /* @__PURE__ */ N({
1267
1274
  onClick: I
1268
1275
  }, {
1269
1276
  default: M(() => [
1270
- K(r(Oe))
1277
+ R(r(Fe))
1271
1278
  ]),
1272
1279
  _: 1
1273
1280
  }, 8, ["aria-label", "data-testid"])) : z("", !0)
1274
- ], 8, wa)) : z("", !0),
1275
- m.value !== "tabs" ? (w(), j(te, { key: 1 }, [
1281
+ ], 8, Sa)) : z("", !0),
1282
+ m.value !== "tabs" ? (w(), j(ae, { key: 1 }, [
1276
1283
  U("div", {
1277
1284
  class: "ff-array-field-container",
1278
1285
  "data-testid": `ff-array-basic-container-${i.path.value}`
1279
1286
  }, [
1280
- (w(!0), j(te, null, se(s.value, (ce, O) => (w(), q(r(b), {
1287
+ (w(!0), j(ae, null, se(s.value, (ce, O) => (w(), q(r(b), {
1281
1288
  key: r(u)(ce, O),
1282
- class: Pe(["ff-array-field-item", { "ff-array-field-item-card": m.value === "card" }]),
1289
+ class: Ie(["ff-array-field-item", { "ff-array-field-item-card": m.value === "card" }]),
1283
1290
  "data-index": O,
1284
1291
  "data-testid": `ff-array-item-${i.path.value}.${O}`
1285
1292
  }, {
1286
1293
  default: M(() => [
1287
- U("div", Ta, [
1288
- P.$slots.item ? D(P.$slots, "item", {
1294
+ U("div", Pa, [
1295
+ P.$slots.item ? F(P.$slots, "item", {
1289
1296
  key: 0,
1290
1297
  autofocus: !0,
1291
1298
  fieldName: String(O),
1292
1299
  index: O
1293
- }, void 0, !0) : g.value.type === "array" && g.value.elements.type === "string" ? (w(), q(gt, {
1300
+ }, void 0, !0) : g.value.type === "array" && g.value.elements.type === "string" ? (w(), q(vt, {
1294
1301
  key: 1,
1295
1302
  autofocus: "",
1296
1303
  help: r(o)("plugins.free-form.tag_helper"),
@@ -1301,21 +1308,21 @@ const be = /* @__PURE__ */ N({
1301
1308
  name: String(O)
1302
1309
  }, null, 8, ["name"]))
1303
1310
  ]),
1304
- K(J, {
1311
+ R(J, {
1305
1312
  class: "ff-array-field-item-remove-tooltip",
1306
1313
  text: r(o)("actions.remove_entity", { entity: l.value })
1307
1314
  }, {
1308
1315
  default: M(() => [
1309
- K(H, {
1316
+ R(H, {
1310
1317
  appearance: "tertiary",
1311
1318
  "aria-label": r(o)("actions.remove_entity", { entity: l.value }),
1312
1319
  class: "ff-array-field-item-remove",
1313
1320
  "data-testid": `ff-array-remove-item-btn-${i.path.value}.${O}`,
1314
1321
  icon: "",
1315
- onClick: Ie((yt) => _(O), ["stop"])
1322
+ onClick: qe((bt) => _(O), ["stop"])
1316
1323
  }, {
1317
1324
  default: M(() => [
1318
- K(r(st))
1325
+ R(r(ut))
1319
1326
  ]),
1320
1327
  _: 1
1321
1328
  }, 8, ["aria-label", "data-testid", "onClick"])
@@ -1325,8 +1332,8 @@ const be = /* @__PURE__ */ N({
1325
1332
  ]),
1326
1333
  _: 2
1327
1334
  }, 1032, ["class", "data-index", "data-testid"]))), 128))
1328
- ], 8, Sa),
1329
- K(H, {
1335
+ ], 8, Ca),
1336
+ R(H, {
1330
1337
  appearance: "tertiary",
1331
1338
  "aria-label": r(o)("actions.add_entity", { entity: l.value }),
1332
1339
  class: "ff-array-field-add-item-btn",
@@ -1334,22 +1341,22 @@ const be = /* @__PURE__ */ N({
1334
1341
  onClick: I
1335
1342
  }, {
1336
1343
  default: M(() => [
1337
- K(r(Oe)),
1344
+ R(r(Fe)),
1338
1345
  me(" " + de(r(o)("actions.add_entity", { entity: l.value })), 1)
1339
1346
  ]),
1340
1347
  _: 1
1341
1348
  }, 8, ["aria-label", "data-testid"])
1342
- ], 64)) : s.value.length ? (w(), q(r(Ee), {
1349
+ ], 64)) : s.value.length ? (w(), q(r(Oe), {
1343
1350
  key: 2,
1344
1351
  "data-testid": `ff-array-tab-container-${i.path.value}`
1345
1352
  }, {
1346
1353
  default: M(() => [
1347
- K(_e, {
1354
+ R(_e, {
1348
1355
  modelValue: A.value,
1349
1356
  "onUpdate:modelValue": T[0] || (T[0] = (ce) => A.value = ce),
1350
1357
  "data-testid": `ff-array-tabs-${i.path.value}`,
1351
1358
  tabs: v.value
1352
- }, X({ _: 2 }, [
1359
+ }, Y({ _: 2 }, [
1353
1360
  se(s.value, (ce, O) => ({
1354
1361
  name: r(u)(ce, O),
1355
1362
  fn: M(() => [
@@ -1358,7 +1365,7 @@ const be = /* @__PURE__ */ N({
1358
1365
  "data-index": O,
1359
1366
  "data-testid": `ff-array-item-${i.path.value}.${O}`
1360
1367
  }, [
1361
- P.$slots.item ? D(P.$slots, "item", {
1368
+ P.$slots.item ? F(P.$slots, "item", {
1362
1369
  key: 0,
1363
1370
  autofocus: !0,
1364
1371
  fieldName: String(O),
@@ -1368,23 +1375,23 @@ const be = /* @__PURE__ */ N({
1368
1375
  autofocus: "",
1369
1376
  name: String(O)
1370
1377
  }, null, 8, ["name"]))
1371
- ], 8, Ca)
1378
+ ], 8, Ia)
1372
1379
  ])
1373
1380
  })),
1374
1381
  se(s.value, (ce, O) => ({
1375
1382
  name: `${r(u)(ce, O)}-anchor`,
1376
1383
  fn: M(() => [
1377
1384
  me(de(y(ce, O)) + " ", 1),
1378
- K(H, {
1385
+ R(H, {
1379
1386
  appearance: "tertiary",
1380
1387
  "aria-label": r(o)("actions.remove_entity", { entity: l.value }),
1381
1388
  class: "ff-array-field-item-remove",
1382
1389
  "data-testid": `ff-array-remove-item-btn-${i.path.value}.${O}`,
1383
1390
  icon: "",
1384
- onClick: Ie((yt) => _(O), ["stop"])
1391
+ onClick: qe((bt) => _(O), ["stop"])
1385
1392
  }, {
1386
1393
  default: M(() => [
1387
- K(r(Et))
1394
+ R(r(Ft))
1388
1395
  ]),
1389
1396
  _: 1
1390
1397
  }, 8, ["aria-label", "data-testid", "onClick"])
@@ -1394,12 +1401,12 @@ const be = /* @__PURE__ */ N({
1394
1401
  ]),
1395
1402
  _: 3
1396
1403
  }, 8, ["data-testid"])) : z("", !0)
1397
- ], 10, Aa)), [
1398
- [Q, !r(f)]
1404
+ ], 10, ka)), [
1405
+ [Z, !r(f)]
1399
1406
  ]);
1400
1407
  };
1401
1408
  }
1402
- }), Ia = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-04b60981"]]), qa = /* @__PURE__ */ N({
1409
+ }), La = /* @__PURE__ */ G(qa, [["__scopeId", "data-v-04b60981"]]), Ma = /* @__PURE__ */ N({
1403
1410
  __name: "SlideTransition",
1404
1411
  setup(e) {
1405
1412
  const c = [
@@ -1455,7 +1462,7 @@ const be = /* @__PURE__ */ N({
1455
1462
  function g(l) {
1456
1463
  a(l);
1457
1464
  }
1458
- return (l, s) => (w(), q(At, {
1465
+ return (l, s) => (w(), q(St, {
1459
1466
  "enter-active-class": "ff-slide-active",
1460
1467
  "leave-active-class": "ff-slide-active",
1461
1468
  onAfterEnter: f,
@@ -1466,12 +1473,12 @@ const be = /* @__PURE__ */ N({
1466
1473
  onLeave: h
1467
1474
  }, {
1468
1475
  default: M(() => [
1469
- D(l.$slots, "default", {}, void 0, !0)
1476
+ F(l.$slots, "default", {}, void 0, !0)
1470
1477
  ]),
1471
1478
  _: 3
1472
1479
  }));
1473
1480
  }
1474
- }), La = /* @__PURE__ */ G(qa, [["__scopeId", "data-v-4969409d"]]), Ma = { class: "ff-entity-checks-list" }, $a = /* @__PURE__ */ N({
1481
+ }), $a = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-4969409d"]]), xa = { class: "ff-entity-checks-list" }, Ra = /* @__PURE__ */ N({
1475
1482
  __name: "EntityChecksAlert",
1476
1483
  props: {
1477
1484
  entityChecks: {},
@@ -1501,20 +1508,20 @@ const be = /* @__PURE__ */ N({
1501
1508
  return a.length ? a : null;
1502
1509
  });
1503
1510
  function n(a) {
1504
- return a.map(ft).join(", ");
1511
+ return a.map(gt).join(", ");
1505
1512
  }
1506
1513
  function o(a) {
1507
1514
  return Array.isArray(e.visibleFields) ? a.filter((p) => e.visibleFields.includes(p.split(".")[0])) : a;
1508
1515
  }
1509
1516
  return (a, p) => {
1510
- const d = F("KAlert");
1517
+ const d = D("KAlert");
1511
1518
  return t.value ? (w(), q(d, {
1512
1519
  key: 0,
1513
1520
  "data-testid": "ff-entity-checks-alert"
1514
1521
  }, {
1515
1522
  default: M(() => [
1516
- U("ul", Ma, [
1517
- (w(!0), j(te, null, se(t.value, (f) => (w(), j("li", {
1523
+ U("ul", xa, [
1524
+ (w(!0), j(ae, null, se(t.value, (f) => (w(), j("li", {
1518
1525
  key: f,
1519
1526
  "data-testid": "ff-entity-check-item"
1520
1527
  }, de(f), 1))), 128))
@@ -1524,13 +1531,13 @@ const be = /* @__PURE__ */ N({
1524
1531
  })) : z("", !0);
1525
1532
  };
1526
1533
  }
1527
- }), Ze = /* @__PURE__ */ G($a, [["__scopeId", "data-v-374c59bc"]]), xa = ["data-testid"], Ka = ["data-testid"], Ra = ["data-testid"], Va = { class: "ff-object-field-header-toggle" }, ja = ["aria-controls", "aria-expanded", "aria-label", "data-testid", "disabled"], Ea = ["innerHTML"], Oa = ["data-testid"], Da = {
1534
+ }), et = /* @__PURE__ */ G(Ra, [["__scopeId", "data-v-374c59bc"]]), Ka = ["data-testid"], Va = ["data-testid"], ja = ["data-testid"], Ea = { class: "ff-object-field-header-toggle" }, Oa = ["aria-controls", "aria-expanded", "aria-label", "data-testid", "disabled"], Fa = ["innerHTML"], Da = ["data-testid"], Ba = {
1528
1535
  key: 0,
1529
1536
  class: "indent-guide"
1530
- }, Fa = /* @__PURE__ */ N({
1537
+ }, Ua = /* @__PURE__ */ N({
1531
1538
  inheritAttrs: !1,
1532
1539
  __name: "ObjectField",
1533
- props: /* @__PURE__ */ je({
1540
+ props: /* @__PURE__ */ Ee({
1534
1541
  name: {},
1535
1542
  label: {},
1536
1543
  labelAttributes: {},
@@ -1553,7 +1560,7 @@ const be = /* @__PURE__ */ N({
1553
1560
  }),
1554
1561
  emits: ["update:added", "update:expanded"],
1555
1562
  setup(e) {
1556
- const c = wt(), t = ue(e, ["defaultAdded", "collapsible", "omit", "required", "asChild", "resetLabelPath", "fieldsOrder"]), { value: n, hide: o, ...a } = Z(E(t, "name")), {
1563
+ const c = Tt(), t = ue(e, ["defaultAdded", "collapsible", "omit", "required", "asChild", "resetLabelPath", "fieldsOrder"]), { value: n, hide: o, ...a } = ee(E(t, "name")), {
1557
1564
  getSchema: p,
1558
1565
  getDefault: d,
1559
1566
  useCurrentRenderRules: f
@@ -1562,7 +1569,7 @@ const be = /* @__PURE__ */ N({
1562
1569
  rules: E(t, "renderRules"),
1563
1570
  omittedFields: E(() => e.omit),
1564
1571
  parentValue: n
1565
- }), h = Ve(e, "added"), g = Ve(e, "expanded"), l = C(() => {
1572
+ }), h = je(e, "added"), g = je(e, "expanded"), l = C(() => {
1566
1573
  var _, k;
1567
1574
  if ((_ = a.ancestors) != null && _.value) {
1568
1575
  const S = a.ancestors.value.parent;
@@ -1581,7 +1588,7 @@ const be = /* @__PURE__ */ N({
1581
1588
  }), u = oe(a.path, { required: e.required, ...t, resetLabelPath: e.resetLabelPath }), m = C(() => u.value.required ? !0 : h.value ?? e.defaultAdded), b = C(() => e.asChild !== void 0 ? e.asChild : l.value), y = C(() => {
1582
1589
  var k;
1583
1590
  let _ = a.schema.value.fields;
1584
- return e.omit && (_ = _.filter((S) => !e.omit.includes(Object.keys(S)[0]))), e.fieldsOrder ? lt(_, e.fieldsOrder) : ((k = i.value) != null && k.bundles && (_ = ut([..._], i.value.bundles)), _);
1591
+ return e.omit && (_ = _.filter((S) => !e.omit.includes(Object.keys(S)[0]))), e.fieldsOrder ? ct(_, e.fieldsOrder) : ((k = i.value) != null && k.bundles && (_ = dt([..._], i.value.bundles)), _);
1585
1592
  }), v = C(() => y.value.map((_) => Object.keys(_)[0]));
1586
1593
  function A() {
1587
1594
  g.value = !g.value;
@@ -1589,43 +1596,43 @@ const be = /* @__PURE__ */ N({
1589
1596
  function I() {
1590
1597
  h.value ? n.value = d(a.path.value) : n.value = null;
1591
1598
  }
1592
- return ne(m, (_) => {
1599
+ return X(m, (_) => {
1593
1600
  e.collapsible && (g.value = _);
1594
- }), kt(() => {
1601
+ }), Ct(() => {
1595
1602
  if (a.error || !n) return;
1596
1603
  const _ = n.value != null;
1597
1604
  h.value = _, (u.value.required || _) && (g.value = !0);
1598
1605
  }), (_, k) => {
1599
1606
  var V;
1600
- const S = F("KAlert"), L = F("KInputSwitch");
1601
- return w(), j(te, null, [
1602
- (w(), q(re(_.$slots[r(Se)]))),
1607
+ const S = D("KAlert"), L = D("KInputSwitch");
1608
+ return w(), j(ae, null, [
1609
+ (w(), q(re(_.$slots[r(Te)]))),
1603
1610
  a.error ? (w(), q(S, {
1604
1611
  key: 0,
1605
1612
  appearance: "danger",
1606
1613
  message: a.error.message
1607
- }, null, 8, ["message"])) : b.value ? Y((w(), j("div", W({
1614
+ }, null, 8, ["message"])) : b.value ? Q((w(), j("div", W({
1608
1615
  key: 1,
1609
1616
  class: "ff-object-field ff-object-field-as-child"
1610
1617
  }, _.$attrs, {
1611
1618
  "data-testid": `ff-object-${a.path.value}`
1612
1619
  }), [
1613
- D(_.$slots, "default", {}, () => {
1620
+ F(_.$slots, "default", {}, () => {
1614
1621
  var B;
1615
1622
  return [
1616
- K(Ze, {
1623
+ R(et, {
1617
1624
  "entity-checks": (B = a.schema.value) == null ? void 0 : B.entity_checks,
1618
1625
  "visible-fields": v.value
1619
1626
  }, null, 8, ["entity-checks", "visible-fields"]),
1620
- (w(!0), j(te, null, se(y.value, (P) => (w(), q(ge, {
1627
+ (w(!0), j(ae, null, se(y.value, (P) => (w(), q(ge, {
1621
1628
  key: Object.keys(P)[0],
1622
1629
  name: Object.keys(P)[0]
1623
1630
  }, null, 8, ["name"]))), 128))
1624
1631
  ];
1625
1632
  }, !0)
1626
- ], 16, xa)), [
1627
- [Q, !r(o)]
1628
- ]) : Y((w(), j("div", W({
1633
+ ], 16, Ka)), [
1634
+ [Z, !r(o)]
1635
+ ]) : Q((w(), j("div", W({
1629
1636
  key: 2,
1630
1637
  class: ["ff-object-field", { "ff-object-field-collapsed": !g.value }],
1631
1638
  "data-testid": `ff-object-${a.path.value}`
@@ -1634,7 +1641,7 @@ const be = /* @__PURE__ */ N({
1634
1641
  class: "ff-object-field-header",
1635
1642
  "data-testid": `ff-object-header-${a.path.value}`
1636
1643
  }, [
1637
- U("div", Va, [
1644
+ U("div", Ea, [
1638
1645
  U("button", {
1639
1646
  "aria-controls": r(c),
1640
1647
  "aria-expanded": g.value,
@@ -1643,16 +1650,16 @@ const be = /* @__PURE__ */ N({
1643
1650
  "data-testid": `ff-object-toggle-btn-${a.path.value}`,
1644
1651
  disabled: !h.value,
1645
1652
  type: "button",
1646
- onClick: Ie(A, ["prevent", "stop"])
1653
+ onClick: qe(A, ["prevent", "stop"])
1647
1654
  }, [
1648
- K(r(Ot), {
1649
- class: Pe(["ff-object-field-toggle-btn-trigger-icon", { "collapse-expanded": g.value }]),
1655
+ R(r(Dt), {
1656
+ class: Ie(["ff-object-field-toggle-btn-trigger-icon", { "collapse-expanded": g.value }]),
1650
1657
  "data-testid": `ff-object-toggle-trigger-icon-${a.path.value}`,
1651
1658
  decorative: "",
1652
- size: `var(--kui-icon-size-30, ${r(Dt)})`
1659
+ size: `var(--kui-icon-size-30, ${r(Bt)})`
1653
1660
  }, null, 8, ["class", "data-testid", "size"])
1654
- ], 8, ja),
1655
- s.value ? z("", !0) : (w(), q(r(Kt), W({
1661
+ ], 8, Oa),
1662
+ s.value ? z("", !0) : (w(), q(r(Vt), W({
1656
1663
  key: 0,
1657
1664
  class: "ff-object-field-label",
1658
1665
  "data-testid": `ff-label-${a.path.value}`
@@ -1661,7 +1668,7 @@ const be = /* @__PURE__ */ N({
1661
1668
  required: !1
1662
1669
  }, {
1663
1670
  "tooltip-attributes": r(u).labelAttributes.tooltipAttributes
1664
- }), X({
1671
+ }), Y({
1665
1672
  default: M(() => [
1666
1673
  me(de(r(u).label) + " ", 1)
1667
1674
  ]),
@@ -1670,10 +1677,10 @@ const be = /* @__PURE__ */ N({
1670
1677
  (V = r(u).labelAttributes) != null && V.info ? {
1671
1678
  name: "tooltip",
1672
1679
  fn: M(() => [
1673
- D(_.$slots, "tooltip", {}, () => [
1680
+ F(_.$slots, "tooltip", {}, () => [
1674
1681
  U("div", {
1675
1682
  innerHTML: r(u).labelAttributes.info
1676
- }, null, 8, Ea)
1683
+ }, null, 8, Fa)
1677
1684
  ], !0)
1678
1685
  ]),
1679
1686
  key: "0"
@@ -1689,42 +1696,42 @@ const be = /* @__PURE__ */ N({
1689
1696
  ],
1690
1697
  "data-testid": `ff-object-switch-${a.path.value}`
1691
1698
  }, null, 8, ["modelValue", "data-testid"]))
1692
- ], 8, Ra),
1693
- K(La, null, {
1699
+ ], 8, ja),
1700
+ R($a, null, {
1694
1701
  default: M(() => [
1695
1702
  g.value ? (w(), j("div", {
1696
1703
  key: 0,
1697
1704
  class: "ff-object-field-content",
1698
1705
  "data-testid": `ff-object-content-${a.path.value}`
1699
1706
  }, [
1700
- D(_.$slots, "default", {}, () => {
1707
+ F(_.$slots, "default", {}, () => {
1701
1708
  var B;
1702
1709
  return [
1703
- K(Ze, {
1710
+ R(et, {
1704
1711
  "entity-checks": (B = a.schema.value) == null ? void 0 : B.entity_checks,
1705
1712
  "visible-fields": v.value
1706
1713
  }, null, 8, ["entity-checks", "visible-fields"]),
1707
- (w(!0), j(te, null, se(y.value, (P) => (w(), q(ge, {
1714
+ (w(!0), j(ae, null, se(y.value, (P) => (w(), q(ge, {
1708
1715
  key: Object.keys(P)[0],
1709
1716
  name: Object.keys(P)[0]
1710
1717
  }, null, 8, ["name"]))), 128))
1711
1718
  ];
1712
1719
  }, !0)
1713
- ], 8, Oa)) : z("", !0)
1720
+ ], 8, Da)) : z("", !0)
1714
1721
  ]),
1715
1722
  _: 3
1716
1723
  }),
1717
- g.value ? (w(), j("div", Da)) : z("", !0)
1718
- ], 16, Ka)), [
1719
- [Q, !r(o)]
1724
+ g.value ? (w(), j("div", Ba)) : z("", !0)
1725
+ ], 16, Va)), [
1726
+ [Z, !r(o)]
1720
1727
  ])
1721
1728
  ], 64);
1722
1729
  };
1723
1730
  }
1724
- }), Ba = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-7a5e2610"]]), Ua = {
1731
+ }), Na = /* @__PURE__ */ G(Ua, [["__scopeId", "data-v-7a5e2610"]]), za = {
1725
1732
  key: 1,
1726
1733
  class: "ff-number-field-wrapper"
1727
- }, Na = ["innerHTML"], za = /* @__PURE__ */ N({
1734
+ }, Ha = ["innerHTML"], Wa = /* @__PURE__ */ N({
1728
1735
  __name: "NumberField",
1729
1736
  props: {
1730
1737
  showVaultSecretPicker: { type: Boolean, default: () => {
@@ -1746,7 +1753,7 @@ const be = /* @__PURE__ */ N({
1746
1753
  },
1747
1754
  emits: ["update:modelValue"],
1748
1755
  setup(e, { emit: c }) {
1749
- const t = ue(e, ["autofocus", "showVaultSecretPicker", "name"]), { value: n, hide: o, ...a } = Z(E(() => e.name)), p = oe(a.path, t), { i18n: d } = ve(), f = C(() => {
1756
+ const t = ue(e, ["autofocus", "showVaultSecretPicker", "name"]), { value: n, hide: o, ...a } = ee(E(() => e.name)), p = oe(a.path, t), { i18n: d } = ve(), f = C(() => {
1750
1757
  var _;
1751
1758
  const v = (_ = a.schema) == null ? void 0 : _.value;
1752
1759
  if (typeof v.gt == "number")
@@ -1774,19 +1781,19 @@ const be = /* @__PURE__ */ N({
1774
1781
  const I = Number(A);
1775
1782
  return Number.isFinite(I) ? I : b.value ? v : null;
1776
1783
  }
1777
- const u = ke(it, void 0), m = C(() => ({ referenceable: b.value })), b = C(() => {
1784
+ const u = Se(rt, void 0), m = C(() => ({ referenceable: b.value })), b = C(() => {
1778
1785
  var v;
1779
1786
  return e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!((v = a.schema.value) != null && v.referenceable);
1780
1787
  }), y = C(() => b.value ? "text" : "number");
1781
1788
  return (v, A) => {
1782
1789
  var _;
1783
- const I = F("KAlert");
1790
+ const I = D("KAlert");
1784
1791
  return a.error ? (w(), q(I, {
1785
1792
  key: 0,
1786
1793
  appearance: "danger",
1787
1794
  message: a.error.message
1788
- }, null, 8, ["message"])) : Y((w(), j("div", Ua, [
1789
- K(be, W({ class: "ff-number-field" }, {
1795
+ }, null, 8, ["message"])) : Q((w(), j("div", za, [
1796
+ R(be, W({ class: "ff-number-field" }, {
1790
1797
  ...r(p),
1791
1798
  min: f.value.min,
1792
1799
  max: f.value.max
@@ -1796,14 +1803,14 @@ const be = /* @__PURE__ */ N({
1796
1803
  "model-value": g.value,
1797
1804
  type: y.value,
1798
1805
  "onUpdate:modelValue": l
1799
- }), X({ _: 2 }, [
1806
+ }), Y({ _: 2 }, [
1800
1807
  (_ = r(p).labelAttributes) != null && _.info ? {
1801
1808
  name: "label-tooltip",
1802
1809
  fn: M(() => [
1803
- D(v.$slots, "tooltip", {}, () => [
1810
+ F(v.$slots, "tooltip", {}, () => [
1804
1811
  U("div", {
1805
1812
  innerHTML: r(p).labelAttributes.info
1806
- }, null, 8, Na)
1813
+ }, null, 8, Ha)
1807
1814
  ], !0)
1808
1815
  ]),
1809
1816
  key: "0"
@@ -1822,13 +1829,13 @@ const be = /* @__PURE__ */ N({
1822
1829
  message: r(d).t("plugins.free-form.vault_picker.component_error")
1823
1830
  }, null, 8, ["data-testid", "message"])) : z("", !0)
1824
1831
  ], 512)), [
1825
- [Q, !r(o)]
1832
+ [Z, !r(o)]
1826
1833
  ]);
1827
1834
  };
1828
1835
  }
1829
- }), Ha = /* @__PURE__ */ G(za, [["__scopeId", "data-v-f303431f"]]), Wa = ["innerHTML"], Ja = /* @__PURE__ */ N({
1836
+ }), Ja = /* @__PURE__ */ G(Wa, [["__scopeId", "data-v-f303431f"]]), Ga = ["innerHTML"], Xa = /* @__PURE__ */ N({
1830
1837
  __name: "EnumField",
1831
- props: /* @__PURE__ */ je({
1838
+ props: /* @__PURE__ */ Ee({
1832
1839
  labelAttributes: {},
1833
1840
  items: {},
1834
1841
  placeholder: {},
@@ -1862,15 +1869,15 @@ const be = /* @__PURE__ */ N({
1862
1869
  },
1863
1870
  modelModifiers: {}
1864
1871
  }),
1865
- emits: /* @__PURE__ */ je(["update"], ["update:modelValue"]),
1872
+ emits: /* @__PURE__ */ Ee(["update"], ["update:modelValue"]),
1866
1873
  setup(e, { emit: c }) {
1867
- const t = c, n = ue(e, ["name", "items", "multiple", "autofocus"]), { getSelectItems: o } = ie(), { value: a, hide: p, ...d } = Z(
1874
+ const t = c, n = ue(e, ["name", "items", "multiple", "autofocus"]), { getSelectItems: o } = ie(), { value: a, hide: p, ...d } = ee(
1868
1875
  E(() => e.name)
1869
1876
  ), f = oe(d.path, n);
1870
1877
  function i(u) {
1871
1878
  return l.value && Array.isArray(u) && u.length === 0 && !f.value.required ? null : u;
1872
1879
  }
1873
- const h = Ve(e, "modelValue", {
1880
+ const h = je(e, "modelValue", {
1874
1881
  // If multiple and value is null/undefined, return empty array for v-model
1875
1882
  get: () => l.value && (a == null ? void 0 : a.value) == null ? [] : a.value,
1876
1883
  set: (u) => {
@@ -1879,15 +1886,15 @@ const be = /* @__PURE__ */ N({
1879
1886
  }), g = C(() => e.items ? e.items : d.path ? o(d.path.value) : []), l = C(() => {
1880
1887
  var u;
1881
1888
  return e.multiple !== void 0 ? e.multiple : ((u = d.schema.value) == null ? void 0 : u.type) === "set";
1882
- }), s = C(() => l.value ? Rt : Vt);
1889
+ }), s = C(() => l.value ? jt : Et);
1883
1890
  return (u, m) => {
1884
1891
  var y;
1885
- const b = F("KAlert");
1892
+ const b = D("KAlert");
1886
1893
  return d.error ? (w(), q(b, {
1887
1894
  key: 0,
1888
1895
  appearance: "danger",
1889
1896
  message: d.error.message
1890
- }, null, 8, ["message"])) : Y((w(), q(r(s), W({ key: 1 }, { ...n, ...r(f) }, {
1897
+ }, null, 8, ["message"])) : Q((w(), q(r(s), W({ key: 1 }, { ...n, ...r(f) }, {
1891
1898
  modelValue: h.value,
1892
1899
  "onUpdate:modelValue": [
1893
1900
  m[0] || (m[0] = (v) => h.value = v),
@@ -1899,14 +1906,14 @@ const be = /* @__PURE__ */ N({
1899
1906
  "data-testid": `ff-${d.path.value}`,
1900
1907
  items: g.value,
1901
1908
  "kpop-attributes": { "data-testid": `ff-enum-${d.path.value}-items` }
1902
- }), X({ _: 2 }, [
1909
+ }), Y({ _: 2 }, [
1903
1910
  "tooltip" in u.$slots || (y = r(f).labelAttributes) != null && y.info ? {
1904
1911
  name: "label-tooltip",
1905
1912
  fn: M(() => [
1906
- D(u.$slots, "tooltip", {}, () => [
1913
+ F(u.$slots, "tooltip", {}, () => [
1907
1914
  U("div", {
1908
1915
  innerHTML: r(f).labelAttributes.info
1909
- }, null, 8, Wa)
1916
+ }, null, 8, Ga)
1910
1917
  ], !0)
1911
1918
  ]),
1912
1919
  key: "0"
@@ -1914,16 +1921,16 @@ const be = /* @__PURE__ */ N({
1914
1921
  u.$slots["item-label"] ? {
1915
1922
  name: "item-template",
1916
1923
  fn: M(({ item: v }) => [
1917
- D(u.$slots, "item-label", Ue(tt(v)), void 0, !0)
1924
+ F(u.$slots, "item-label", Ne(nt(v)), void 0, !0)
1918
1925
  ]),
1919
1926
  key: "1"
1920
1927
  } : void 0
1921
1928
  ]), 1040, ["modelValue", "clearable", "data-autofocus", "data-testid", "items", "kpop-attributes"])), [
1922
- [Q, !r(p)]
1929
+ [Z, !r(p)]
1923
1930
  ]);
1924
1931
  };
1925
1932
  }
1926
- }), Ce = /* @__PURE__ */ G(Ja, [["__scopeId", "data-v-b283cc11"]]), Ga = ["data-testid"], Xa = ["innerHTML"], Ya = /* @__PURE__ */ N({
1933
+ }), Pe = /* @__PURE__ */ G(Xa, [["__scopeId", "data-v-b283cc11"]]), Ya = ["data-testid"], Qa = ["innerHTML"], Za = /* @__PURE__ */ N({
1927
1934
  inheritAttrs: !1,
1928
1935
  __name: "JsonField",
1929
1936
  props: {
@@ -1933,7 +1940,7 @@ const be = /* @__PURE__ */ N({
1933
1940
  },
1934
1941
  emits: ["update:modelValue"],
1935
1942
  setup(e, { emit: c }) {
1936
- const t = ye(), n = ue(e, ["autofocus", "name"]), o = c, { value: a, hide: p, ...d } = Z(E(() => e.name)), f = oe(d.path, E({ ...n, ...t })), i = le("");
1943
+ const t = ye(), n = ue(e, ["autofocus", "name"]), o = c, { value: a, hide: p, ...d } = ee(E(() => e.name)), f = oe(d.path, E({ ...n, ...t })), i = le("");
1937
1944
  function h(l) {
1938
1945
  i.value = l;
1939
1946
  let s = l || null;
@@ -1945,7 +1952,7 @@ const be = /* @__PURE__ */ N({
1945
1952
  a.value = s, o("update:modelValue", s);
1946
1953
  }
1947
1954
  const g = C(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : fe(e.name) === "name");
1948
- return ne(a, (l) => {
1955
+ return X(a, (l) => {
1949
1956
  if (l && typeof l == "object") {
1950
1957
  try {
1951
1958
  const s = JSON.parse(i.value);
@@ -1958,16 +1965,16 @@ const be = /* @__PURE__ */ N({
1958
1965
  i.value = l || "";
1959
1966
  }, { immediate: !0 }), (l, s) => {
1960
1967
  var m;
1961
- const u = F("KAlert");
1968
+ const u = D("KAlert");
1962
1969
  return d.error ? (w(), q(u, {
1963
1970
  key: 0,
1964
1971
  appearance: "danger",
1965
1972
  message: d.error.message
1966
- }, null, 8, ["message"])) : Y((w(), j("div", {
1973
+ }, null, 8, ["message"])) : Q((w(), j("div", {
1967
1974
  key: 1,
1968
1975
  "data-testid": `ff-json-${d.path.value}`
1969
1976
  }, [
1970
- K(be, W(r(f), {
1977
+ R(be, W(r(f), {
1971
1978
  class: "ff-json-field",
1972
1979
  "data-1p-ignore": g.value,
1973
1980
  "data-autofocus": e.autofocus ? "true" : void 0,
@@ -1975,25 +1982,25 @@ const be = /* @__PURE__ */ N({
1975
1982
  "model-value": i.value ?? "",
1976
1983
  multiline: "",
1977
1984
  "onUpdate:modelValue": h
1978
- }), X({ _: 2 }, [
1985
+ }), Y({ _: 2 }, [
1979
1986
  (m = r(f).labelAttributes) != null && m.info ? {
1980
1987
  name: "label-tooltip",
1981
1988
  fn: M(() => [
1982
- D(l.$slots, "tooltip", {}, () => [
1989
+ F(l.$slots, "tooltip", {}, () => [
1983
1990
  U("div", {
1984
1991
  innerHTML: r(f).labelAttributes.info
1985
- }, null, 8, Xa)
1992
+ }, null, 8, Qa)
1986
1993
  ], !0)
1987
1994
  ]),
1988
1995
  key: "0"
1989
1996
  } : void 0
1990
1997
  ]), 1040, ["data-1p-ignore", "data-autofocus", "data-testid", "model-value"])
1991
- ], 8, Ga)), [
1992
- [Q, !r(p)]
1998
+ ], 8, Ya)), [
1999
+ [Z, !r(p)]
1993
2000
  ]);
1994
2001
  };
1995
2002
  }
1996
- }), Qa = /* @__PURE__ */ G(Ya, [["__scopeId", "data-v-6f302da9"]]), Za = ["innerHTML"], en = /* @__PURE__ */ N({
2003
+ }), en = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-6f302da9"]]), tn = ["innerHTML"], an = /* @__PURE__ */ N({
1997
2004
  inheritAttrs: !1,
1998
2005
  __name: "ForeignField",
1999
2006
  props: {
@@ -2012,7 +2019,7 @@ const be = /* @__PURE__ */ N({
2012
2019
  },
2013
2020
  emits: ["update:modelValue"],
2014
2021
  setup(e, { emit: c }) {
2015
- const t = ye(), { i18n: { t: n } } = ve(), o = ue(e, ["autofocus", "name"]), a = c, { value: p, hide: d, ...f } = Z(E(() => e.name));
2022
+ const t = ye(), { i18n: { t: n } } = ve(), o = ue(e, ["autofocus", "name"]), a = c, { value: p, hide: d, ...f } = ee(E(() => e.name));
2016
2023
  if (f.error)
2017
2024
  throw new Error(f.error.message);
2018
2025
  const i = oe(f.path, E({ ...o, ...t })), h = p.value ? p.value.id : null, g = C(() => {
@@ -2025,7 +2032,7 @@ const be = /* @__PURE__ */ N({
2025
2032
  const u = C(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : fe(e.name) === "name");
2026
2033
  return (m, b) => {
2027
2034
  var y;
2028
- return Y((w(), q(be, W(r(i), {
2035
+ return Q((w(), q(be, W(r(i), {
2029
2036
  class: "ff-foreign-field",
2030
2037
  "data-1p-ignore": u.value,
2031
2038
  "data-autofocus": e.autofocus ? "true" : void 0,
@@ -2036,24 +2043,24 @@ const be = /* @__PURE__ */ N({
2036
2043
  "model-value": l.value,
2037
2044
  placeholder: g.value,
2038
2045
  "onUpdate:modelValue": s
2039
- }), X({ _: 2 }, [
2046
+ }), Y({ _: 2 }, [
2040
2047
  (y = r(i).labelAttributes) != null && y.info ? {
2041
2048
  name: "label-tooltip",
2042
2049
  fn: M(() => [
2043
- D(m.$slots, "tooltip", {}, () => [
2050
+ F(m.$slots, "tooltip", {}, () => [
2044
2051
  U("div", {
2045
2052
  innerHTML: r(i).labelAttributes.info
2046
- }, null, 8, Za)
2053
+ }, null, 8, tn)
2047
2054
  ], !0)
2048
2055
  ]),
2049
2056
  key: "0"
2050
2057
  } : void 0
2051
2058
  ]), 1040, ["data-1p-ignore", "data-autofocus", "data-testid", "error", "error-message", "help", "model-value", "placeholder"])), [
2052
- [Q, !r(d)]
2059
+ [Z, !r(d)]
2053
2060
  ]);
2054
2061
  };
2055
2062
  }
2056
- }), tn = /* @__PURE__ */ G(en, [["__scopeId", "data-v-8c298e9f"]]), an = ["data-testid"], nn = ["data-testid"], on = ["innerHTML"], rn = { class: "ff-map-field-fields" }, sn = /* @__PURE__ */ N({
2063
+ }), nn = /* @__PURE__ */ G(an, [["__scopeId", "data-v-8c298e9f"]]), on = ["data-testid"], rn = ["data-testid"], sn = ["innerHTML"], ln = { class: "ff-map-field-fields" }, un = /* @__PURE__ */ N({
2057
2064
  __name: "MapField",
2058
2065
  props: {
2059
2066
  keyPlaceholder: {},
@@ -2072,7 +2079,7 @@ const be = /* @__PURE__ */ N({
2072
2079
  removeKey: f,
2073
2080
  field: i,
2074
2081
  fieldDisplayName: h
2075
- } = ua(E(n, "name"), _), g = oe(i.path, n), l = ["string", "number", "boolean", "integer", "foreign"], s = C(() => {
2082
+ } = da(E(n, "name"), _), g = oe(i.path, n), l = ["string", "number", "boolean", "integer", "foreign"], s = C(() => {
2076
2083
  var k, S, L, V;
2077
2084
  return n.oneLine ? !0 : ((S = (k = i.schema) == null ? void 0 : k.value) == null ? void 0 : S.type) === "map" && l.includes(i.schema.value.values.type) && !((V = (L = n.appearance) == null ? void 0 : L.string) != null && V.multiline);
2078
2085
  }), u = C(() => {
@@ -2081,14 +2088,14 @@ const be = /* @__PURE__ */ N({
2081
2088
  }), m = C(() => {
2082
2089
  var k, S;
2083
2090
  return ((k = u.value) == null ? void 0 : k.type) === "string" && !((S = u.value) != null && S.one_of);
2084
- }), b = C(() => s.value ? "div" : Ee), y = at("root");
2091
+ }), b = C(() => s.value ? "div" : Oe), y = it("root");
2085
2092
  function v(k, S) {
2086
2093
  var L, V;
2087
2094
  (V = (L = n.appearance) == null ? void 0 : L.string) != null && V.multiline || (k.preventDefault(), S === a.value.length - 1 && d(), A(S + 1));
2088
2095
  }
2089
2096
  async function A(k) {
2090
2097
  var S;
2091
- y.value && (await Re(), (S = y.value.querySelector(`[data-key-input="${k}"]`)) == null || S.focus());
2098
+ y.value && (await Ve(), (S = y.value.querySelector(`[data-key-input="${k}"]`)) == null || S.focus());
2092
2099
  }
2093
2100
  function I() {
2094
2101
  d();
@@ -2100,12 +2107,12 @@ const be = /* @__PURE__ */ N({
2100
2107
  }
2101
2108
  return (k, S) => {
2102
2109
  var T;
2103
- const L = F("KAlert"), V = F("KLabel"), B = F("KButton"), P = F("KTooltip");
2110
+ const L = D("KAlert"), V = D("KLabel"), B = D("KButton"), P = D("KTooltip");
2104
2111
  return r(i).error ? (w(), q(L, {
2105
2112
  key: 0,
2106
2113
  appearance: "danger",
2107
2114
  message: r(i).error.message
2108
- }, null, 8, ["message"])) : Y((w(), j("div", {
2115
+ }, null, 8, ["message"])) : Q((w(), j("div", {
2109
2116
  key: 1,
2110
2117
  ref_key: "root",
2111
2118
  ref: y,
@@ -2117,11 +2124,11 @@ const be = /* @__PURE__ */ N({
2117
2124
  class: "ff-map-field-header",
2118
2125
  "data-testid": `ff-map-header-${r(i).path.value}`
2119
2126
  }, [
2120
- K(V, W({ class: "ff-map-field-label" }, r(g).labelAttributes, {
2127
+ R(V, W({ class: "ff-map-field-label" }, r(g).labelAttributes, {
2121
2128
  "data-testid": `ff-label-${r(i).path.value}`,
2122
2129
  required: r(g).required,
2123
2130
  "tooltip-attributes": r(g).labelAttributes.tooltipAttributes
2124
- }), X({
2131
+ }), Y({
2125
2132
  default: M(() => [
2126
2133
  me(de(r(g).label) + " ", 1)
2127
2134
  ]),
@@ -2130,44 +2137,44 @@ const be = /* @__PURE__ */ N({
2130
2137
  (T = r(g).labelAttributes) != null && T.info ? {
2131
2138
  name: "tooltip",
2132
2139
  fn: M(() => [
2133
- D(k.$slots, "tooltip", {}, () => [
2140
+ F(k.$slots, "tooltip", {}, () => [
2134
2141
  U("div", {
2135
2142
  innerHTML: r(g).labelAttributes.info
2136
- }, null, 8, on)
2143
+ }, null, 8, sn)
2137
2144
  ], !0)
2138
2145
  ]),
2139
2146
  key: "0"
2140
2147
  } : void 0
2141
2148
  ]), 1040, ["data-testid", "required", "tooltip-attributes"])
2142
- ], 8, nn)) : z("", !0),
2143
- (w(!0), j(te, null, se(r(a), ([x, ee], H) => (w(), q(re(b.value), {
2149
+ ], 8, rn)) : z("", !0),
2150
+ (w(!0), j(ae, null, se(r(a), ([x, te], H) => (w(), q(re(b.value), {
2144
2151
  key: x,
2145
- class: Pe(["ff-map-field-item", {
2152
+ class: Ie(["ff-map-field-item", {
2146
2153
  "ff-map-field-item-simple": s.value,
2147
2154
  "ff-map-field-item-complex": !s.value
2148
2155
  }]),
2149
2156
  "data-testid": `ff-map-container-${r(i).path.value}.${H}`
2150
2157
  }, {
2151
2158
  default: M(() => [
2152
- U("div", rn, [
2153
- K(be, {
2159
+ U("div", ln, [
2160
+ R(be, {
2154
2161
  class: "ff-map-field-fields-key",
2155
2162
  "data-key-input": H,
2156
2163
  "data-testid": `ff-map-key-${r(i).path.value}.${H}`,
2157
- "model-value": ee,
2164
+ "model-value": te,
2158
2165
  placeholder: e.keyPlaceholder || "Key",
2159
- onKeydown: We(Ie((J) => A(H), ["prevent"]), ["enter"]),
2166
+ onKeydown: Je(qe((J) => A(H), ["prevent"]), ["enter"]),
2160
2167
  "onUpdate:modelValue": (J) => r(p)(x, J)
2161
2168
  }, null, 8, ["data-key-input", "data-testid", "model-value", "placeholder", "onKeydown", "onUpdate:modelValue"]),
2162
- D(k.$slots, "default", { keyId: x }, () => {
2169
+ F(k.$slots, "default", { keyId: x }, () => {
2163
2170
  var J, _e;
2164
2171
  return [
2165
- m.value ? (w(), q(ht, {
2172
+ m.value ? (w(), q(yt, {
2166
2173
  key: 0,
2167
2174
  "inline-vault-picker": "",
2168
2175
  multiline: (_e = (J = e.appearance) == null ? void 0 : J.string) == null ? void 0 : _e.multiline,
2169
2176
  name: x,
2170
- onKeydown: We((Te) => v(Te, H), ["enter"])
2177
+ onKeydown: Je((Ce) => v(Ce, H), ["enter"])
2171
2178
  }, null, 8, ["multiline", "name", "onKeydown"])) : (w(), q(ge, {
2172
2179
  key: 1,
2173
2180
  name: x
@@ -2175,11 +2182,11 @@ const be = /* @__PURE__ */ N({
2175
2182
  ];
2176
2183
  }, !0)
2177
2184
  ]),
2178
- K(P, {
2185
+ R(P, {
2179
2186
  text: r(t).t("actions.remove_entity", { entity: r(h) })
2180
2187
  }, {
2181
2188
  default: M(() => [
2182
- K(B, {
2189
+ R(B, {
2183
2190
  appearance: "tertiary",
2184
2191
  "aria-label": r(t).t("actions.remove_entity", { entity: r(h) }),
2185
2192
  "data-testid": `ff-map-remove-btn-${r(i).path.value}.${H}`,
@@ -2187,7 +2194,7 @@ const be = /* @__PURE__ */ N({
2187
2194
  onClick: (J) => r(f)(x)
2188
2195
  }, {
2189
2196
  default: M(() => [
2190
- K(r(st))
2197
+ R(r(ut))
2191
2198
  ]),
2192
2199
  _: 1
2193
2200
  }, 8, ["aria-label", "data-testid", "onClick"])
@@ -2197,7 +2204,7 @@ const be = /* @__PURE__ */ N({
2197
2204
  ]),
2198
2205
  _: 2
2199
2206
  }, 1032, ["class", "data-testid"]))), 128)),
2200
- K(B, {
2207
+ R(B, {
2201
2208
  appearance: "tertiary",
2202
2209
  "aria-label": r(t).t("actions.add_entity", { entity: r(h) }),
2203
2210
  class: "ff-map-field-add-entry-btn",
@@ -2205,17 +2212,17 @@ const be = /* @__PURE__ */ N({
2205
2212
  onClick: I
2206
2213
  }, {
2207
2214
  default: M(() => [
2208
- K(r(Oe)),
2215
+ R(r(Fe)),
2209
2216
  me(" " + de(r(t).t("actions.add_entity", { entity: r(h) })), 1)
2210
2217
  ]),
2211
2218
  _: 1
2212
2219
  }, 8, ["aria-label", "data-testid"])
2213
- ], 8, an)), [
2214
- [Q, !r(i).hide.value]
2220
+ ], 8, on)), [
2221
+ [Z, !r(i).hide.value]
2215
2222
  ]);
2216
2223
  };
2217
2224
  }
2218
- }), ln = /* @__PURE__ */ G(sn, [["__scopeId", "data-v-dca94ae5"]]), ge = /* @__PURE__ */ N({
2225
+ }), cn = /* @__PURE__ */ G(un, [["__scopeId", "data-v-dca94ae5"]]), ge = /* @__PURE__ */ N({
2219
2226
  name: "AutoField",
2220
2227
  __name: "Field",
2221
2228
  props: {
@@ -2225,36 +2232,36 @@ const be = /* @__PURE__ */ N({
2225
2232
  },
2226
2233
  emits: ["globalAction"],
2227
2234
  setup(e) {
2228
- const c = e, t = Z(E(c, "name")), n = C(() => {
2235
+ const c = e, t = ee(E(c, "name")), n = C(() => {
2229
2236
  var o, a;
2230
2237
  switch ((a = (o = t.schema) == null ? void 0 : o.value) == null ? void 0 : a.type) {
2231
2238
  case "string":
2232
- return "one_of" in t.schema.value ? Ce : ht;
2239
+ return "one_of" in t.schema.value ? Pe : yt;
2233
2240
  case "boolean":
2234
- return "one_of" in t.schema.value ? Ce : ya;
2241
+ return "one_of" in t.schema.value ? Pe : ba;
2235
2242
  case "number":
2236
2243
  case "integer":
2237
- return "one_of" in t.schema.value ? Ce : Ha;
2244
+ return "one_of" in t.schema.value ? Pe : Ja;
2238
2245
  case "array":
2239
- return Ia;
2246
+ return La;
2240
2247
  case "set":
2241
- return Ut(t.schema) ? gt : Ce;
2248
+ return zt(t.schema) ? vt : Pe;
2242
2249
  case "record":
2243
- return Ba;
2250
+ return Na;
2244
2251
  case "map":
2245
- return ln;
2252
+ return cn;
2246
2253
  case "json":
2247
- return Qa;
2254
+ return en;
2248
2255
  case "foreign":
2249
- return tn;
2256
+ return nn;
2250
2257
  default:
2251
2258
  return;
2252
2259
  }
2253
2260
  });
2254
2261
  return (o, a) => {
2255
- const p = F("KAlert");
2256
- return w(), j(te, null, [
2257
- (w(), q(re(o.$slots[r(Se)]))),
2262
+ const p = D("KAlert");
2263
+ return w(), j(ae, null, [
2264
+ (w(), q(re(o.$slots[r(Te)]))),
2258
2265
  r(t).error ? (w(), q(p, {
2259
2266
  key: 0,
2260
2267
  appearance: "danger",
@@ -2264,7 +2271,7 @@ const be = /* @__PURE__ */ N({
2264
2271
  autofocus: c.autofocus,
2265
2272
  name: De(r(t).path.value),
2266
2273
  onGlobalAction: a[0] || (a[0] = (d, f) => o.$emit("globalAction", d, f))
2267
- }, null, 40, ["autofocus", "name"])) : (w(), j(te, { key: 2 }, [
2274
+ }, null, 40, ["autofocus", "name"])) : (w(), j(ae, { key: 2 }, [
2268
2275
  n.value ? (w(), q(re(n.value), {
2269
2276
  key: 0,
2270
2277
  autofocus: c.autofocus,
@@ -2274,12 +2281,12 @@ const be = /* @__PURE__ */ N({
2274
2281
  appearance: "warning",
2275
2282
  message: `${r(t).path.value} ${r(t).schema.value.type} (no renderer yet)`
2276
2283
  }, null, 8, ["message"])),
2277
- D(o.$slots, "default")
2284
+ F(o.$slots, "default")
2278
2285
  ], 64))
2279
2286
  ], 64);
2280
2287
  };
2281
2288
  }
2282
- }), Vn = /* @__PURE__ */ N({
2289
+ }), On = /* @__PURE__ */ N({
2283
2290
  name: "SchemaForm",
2284
2291
  __name: "Form",
2285
2292
  props: {
@@ -2292,7 +2299,7 @@ const be = /* @__PURE__ */ N({
2292
2299
  },
2293
2300
  emits: ["change", "globalAction"],
2294
2301
  setup(e, { expose: c, emit: t }) {
2295
- const n = t, o = we(), { getSchema: a, formData: p, setValue: d, getValue: f, rootRenderRules: i } = ta({
2302
+ const n = t, o = ke(), { getSchema: a, formData: p, setValue: d, getValue: f, rootRenderRules: i } = na({
2296
2303
  schema: e.schema,
2297
2304
  propsData: C(() => e.data),
2298
2305
  propsConfig: e.config,
@@ -2302,17 +2309,17 @@ const be = /* @__PURE__ */ N({
2302
2309
  var s;
2303
2310
  const { fields: g } = a();
2304
2311
  let l = [...g];
2305
- return e.fieldsOrder ? lt(l, e.fieldsOrder) : ((s = i.value) != null && s.bundles && (l = ut([...l], i.value.bundles)), l);
2312
+ return e.fieldsOrder ? ct(l, e.fieldsOrder) : ((s = i.value) != null && s.bundles && (l = dt([...l], i.value.bundles)), l);
2306
2313
  });
2307
2314
  return c({
2308
2315
  getValue: f,
2309
- getRawValue: () => St(p),
2316
+ getRawValue: () => at(p),
2310
2317
  setValue: d
2311
2318
  }), (g, l) => (w(), q(re(e.tag), null, {
2312
2319
  default: M(() => [
2313
- (w(), q(re(r(o)[r(Se)]))),
2314
- D(g.$slots, "default", {}, () => [
2315
- (w(!0), j(te, null, se(h.value, (s) => (w(), q(ge, {
2320
+ (w(), q(re(r(o)[r(Te)]))),
2321
+ F(g.$slots, "default", {}, () => [
2322
+ (w(!0), j(ae, null, se(h.value, (s) => (w(), q(ge, {
2316
2323
  key: Object.keys(s)[0],
2317
2324
  name: Object.keys(s)[0],
2318
2325
  onGlobalAction: l[0] || (l[0] = (u, m) => n("globalAction", u, m))
@@ -2322,17 +2329,17 @@ const be = /* @__PURE__ */ N({
2322
2329
  _: 3
2323
2330
  }));
2324
2331
  }
2325
- }), jn = /* @__PURE__ */ N({
2332
+ }), Fn = /* @__PURE__ */ N({
2326
2333
  __name: "FieldRenderer",
2327
2334
  props: {
2328
2335
  match: { type: Function },
2329
2336
  priority: {}
2330
2337
  },
2331
2338
  setup(e) {
2332
- const c = e, { default: t } = we(), { fieldRendererRegistry: n } = ie();
2339
+ const c = e, { default: t } = ke(), { fieldRendererRegistry: n } = ie();
2333
2340
  return t && n.set(c.match, t), (o, a) => null;
2334
2341
  }
2335
- }), un = {
2342
+ }), dn = {
2336
2343
  cancel: "Cancel",
2337
2344
  view_configuration: "View configuration",
2338
2345
  create: "New plugin",
@@ -2353,25 +2360,25 @@ const be = /* @__PURE__ */ N({
2353
2360
  add_entity: "Add {entity}",
2354
2361
  remove_entity: "Remove {entity}",
2355
2362
  loading_spinner: "Loading..."
2356
- }, cn = {
2363
+ }, pn = {
2357
2364
  title: "Configuration",
2358
2365
  message: "Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML, JSON, or Terraform. This allows for straightforward importing into APIOps tools like decK with YAML, Insomnia and cURL with JSON, or Terraform products with Terraform.",
2359
2366
  yaml: "YAML",
2360
2367
  terraform: "Terraform",
2361
2368
  json: "JSON",
2362
2369
  deck: "decK"
2363
- }, dn = {
2370
+ }, mn = {
2364
2371
  success: "Copied {val} to clipboard",
2365
2372
  success_brief: "Successfully copied to clipboard",
2366
2373
  tooltip: "Copy {label}",
2367
2374
  success_tooltip: "Copied!"
2368
- }, pn = {
2375
+ }, fn = {
2369
2376
  general: "Plugins could not be retrieved",
2370
2377
  delete: "The plugin could not be deleted at this time.",
2371
2378
  copy: "Failed to copy to clipboard",
2372
2379
  load_results: "Error loading available plugins",
2373
2380
  load_schema: "Error loading plugin schema"
2374
- }, mn = {
2381
+ }, hn = {
2375
2382
  placeholder: {
2376
2383
  konnect: "Filter by name",
2377
2384
  exact: "Filter by exact instance name or ID",
@@ -2385,9 +2392,9 @@ const be = /* @__PURE__ */ N({
2385
2392
  }
2386
2393
  },
2387
2394
  no_results: 'No results found for "{filter}"'
2388
- }, fn = {
2395
+ }, gn = {
2389
2396
  new: "New"
2390
- }, hn = {
2397
+ }, yn = {
2391
2398
  title: "Plugins",
2392
2399
  list: {
2393
2400
  toolbar_actions: {
@@ -3460,7 +3467,7 @@ const be = /* @__PURE__ */ N({
3460
3467
  tag_helper: "Use comma to separate values. eg: value1, value2",
3461
3468
  foreign_placeholder: "Enter a UUID of {entity}"
3462
3469
  }
3463
- }, gn = {
3470
+ }, vn = {
3464
3471
  title: "Redis configuration",
3465
3472
  managed_ui: {
3466
3473
  title: "Redis",
@@ -3495,9 +3502,9 @@ const be = /* @__PURE__ */ N({
3495
3502
  type_label: "Redis type"
3496
3503
  }
3497
3504
  }
3498
- }, yn = {
3505
+ }, bn = {
3499
3506
  plugin: "plugin"
3500
- }, vn = {
3507
+ }, _n = {
3501
3508
  key_auth_identity_realms: {
3502
3509
  cp_label: "Current control plane",
3503
3510
  cp_group_label: "Control plane",
@@ -3531,7 +3538,7 @@ const be = /* @__PURE__ */ N({
3531
3538
  leave_prompt_message: "Your unsaved changes will be lost if you continue.",
3532
3539
  leave_prompt_action: "Leave page"
3533
3540
  }
3534
- }, bn = {
3541
+ }, An = {
3535
3542
  window_type: {
3536
3543
  label: "Rate limit window type",
3537
3544
  help: "Sets the time window type to either <code>sliding</code> (default) or <code>fixed</code>.<br><ul><li>Sliding windows apply the rate limiting logic while taking into account previous hit rates (from the window that immediately precedes the current) using a dynamic weight.</li><li>Fixed windows consist of buckets that are statically assigned to a definitive time range, each request is mapped to only one fixed window based on its timestamp and will affect only that window&#39;s counters.</li></ul>",
@@ -3589,7 +3596,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
3589
3596
  }
3590
3597
  }
3591
3598
  }
3592
- }, _n = {
3599
+ }, wn = {
3593
3600
  step1: {
3594
3601
  title: "Custom plugin type",
3595
3602
  types: {
@@ -3707,9 +3714,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
3707
3714
  no_supported_types: "No supported custom plugin types are available in this context.",
3708
3715
  unsupported_plugin_type: "Unsupported plugin type {type}."
3709
3716
  }
3710
- }, An = {
3711
- actions: un,
3712
- view_configuration: cn,
3717
+ }, kn = {
3718
+ actions: dn,
3719
+ view_configuration: pn,
3713
3720
  delete: {
3714
3721
  title: "Delete a plugin",
3715
3722
  custom_title: "Delete {name}",
@@ -3723,26 +3730,26 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
3723
3730
  confirm_text: "Type {name} to confirm your action",
3724
3731
  success_message: "Successfully deleted custom plugin {name}"
3725
3732
  },
3726
- copy: dn,
3727
- errors: pn,
3728
- search: mn,
3729
- labels: fn,
3730
- plugins: hn,
3731
- redis: gn,
3732
- glossary: yn,
3733
- custom_field: vn,
3734
- sp: bn,
3735
- custom_plugin_form: _n
3733
+ copy: mn,
3734
+ errors: fn,
3735
+ search: hn,
3736
+ labels: gn,
3737
+ plugins: yn,
3738
+ redis: vn,
3739
+ glossary: bn,
3740
+ custom_field: _n,
3741
+ sp: An,
3742
+ custom_plugin_form: wn
3736
3743
  };
3737
- function wn() {
3738
- const e = ot("en-us", An);
3744
+ function Sn() {
3745
+ const e = st("en-us", kn);
3739
3746
  return {
3740
3747
  i18n: e,
3741
- i18nT: rt(e)
3748
+ i18nT: lt(e)
3742
3749
  // Translation component <i18n-t>
3743
3750
  };
3744
3751
  }
3745
- const kn = ["data-testid"], Sn = /* @__PURE__ */ N({
3752
+ const Tn = ["data-testid"], Cn = /* @__PURE__ */ N({
3746
3753
  __name: "SwitchField",
3747
3754
  props: {
3748
3755
  labelAttributes: {},
@@ -3753,21 +3760,21 @@ const kn = ["data-testid"], Sn = /* @__PURE__ */ N({
3753
3760
  },
3754
3761
  emits: ["update:modelValue"],
3755
3762
  setup(e, { emit: c }) {
3756
- const { i18n: { t } } = wn(), n = ue(e, ["name", "enabledText", "disabledText"]), { value: o, hide: a, emptyOrDefaultValue: p, ...d } = Z(E(() => e.name)), f = c, i = (g) => {
3763
+ const { i18n: { t } } = Sn(), n = ue(e, ["name", "enabledText", "disabledText"]), { value: o, hide: a, emptyOrDefaultValue: p, ...d } = ee(E(() => e.name)), f = c, i = (g) => {
3757
3764
  o.value = g, f("update:modelValue", g);
3758
3765
  }, h = oe(d.path, n);
3759
3766
  return (g, l) => {
3760
- const s = F("KAlert");
3767
+ const s = D("KAlert");
3761
3768
  return d.error ? (w(), q(s, {
3762
3769
  key: 0,
3763
3770
  appearance: "danger",
3764
3771
  message: d.error.message
3765
- }, null, 8, ["message"])) : Y((w(), j("div", {
3772
+ }, null, 8, ["message"])) : Q((w(), j("div", {
3766
3773
  key: 1,
3767
3774
  class: "ff-switch-field",
3768
3775
  "data-testid": `ff-${d.path.value}`
3769
3776
  }, [
3770
- K(r(jt), W(r(h), {
3777
+ R(r(Ot), W(r(h), {
3771
3778
  "model-value": !!(r(o) == null ? r(p) : r(o)),
3772
3779
  "onUpdate:modelValue": i
3773
3780
  }), {
@@ -3776,27 +3783,54 @@ const kn = ["data-testid"], Sn = /* @__PURE__ */ N({
3776
3783
  ]),
3777
3784
  _: 1
3778
3785
  }, 16, ["model-value"])
3779
- ], 8, kn)), [
3780
- [Q, !r(a)]
3786
+ ], 8, Tn)), [
3787
+ [Z, !r(a)]
3781
3788
  ]);
3782
3789
  };
3783
3790
  }
3784
- }), En = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-0b4c3942"]]);
3791
+ }), Dn = /* @__PURE__ */ G(Cn, [["__scopeId", "data-v-0b4c3942"]]);
3785
3792
  export {
3786
- Ia as ArrayField,
3787
- ya as BooleanField,
3788
- Ce as EnumField,
3789
- Se as FIELD_RENDERERS,
3793
+ La as ArrayField,
3794
+ ba as BooleanField,
3795
+ Pe as EnumField,
3796
+ Qe as FIELD_PATH_KEY,
3797
+ Te as FIELD_RENDERERS,
3798
+ Be as FIELD_RENDERER_SLOTS,
3799
+ Ze as FIELD_RESET_LABEL_PATH_SETTING,
3790
3800
  ge as Field,
3791
- jn as FieldRenderer,
3792
- tn as ForeignField,
3793
- Vn as Form,
3794
- Qa as JsonField,
3795
- ln as MapField,
3796
- Ha as NumberField,
3797
- Ba as ObjectField,
3798
- gt as StringArrayField,
3799
- ht as StringField,
3800
- En as SwitchField,
3801
- Rn as renderRuleExactMatch
3801
+ Fn as FieldRenderer,
3802
+ nn as ForeignField,
3803
+ On as Form,
3804
+ en as JsonField,
3805
+ cn as MapField,
3806
+ Ja as NumberField,
3807
+ Na as ObjectField,
3808
+ vt as StringArrayField,
3809
+ yt as StringField,
3810
+ Dn as SwitchField,
3811
+ Ht as buildAncestor,
3812
+ xe as buildArraySchemaMap,
3813
+ Re as buildMapSchemaMap,
3814
+ $e as buildRecordSchemaMap,
3815
+ Jt as buildSchemaMap,
3816
+ gt as defaultLabelFormatter,
3817
+ we as generalizePath,
3818
+ na as provideFormShared,
3819
+ jn as renderRuleExactMatch,
3820
+ ft as replaceByDictionary,
3821
+ ht as replaceByDictionaryInFieldName,
3822
+ ee as useField,
3823
+ pt as useFieldAncestors,
3824
+ oe as useFieldAttrs,
3825
+ ca as useFieldLabel,
3826
+ mt as useFieldPath,
3827
+ oa as useFieldRenderer,
3828
+ ra as useFormData,
3829
+ ie as useFormShared,
3830
+ sa as useItemKeys,
3831
+ ua as useLabelPath,
3832
+ da as useMapField,
3833
+ ia as useOptionalFormShared,
3834
+ En as useSchemaExposer,
3835
+ Gt as useSchemaHelpers
3802
3836
  };