@kong-ui-public/entities-plugins 9.271.2 → 9.271.4-pr.3786.6c80da227.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,4 +1,4 @@
1
- import { toValue as R, computed as A, ref as se, watch as ae, onBeforeUnmount as _t, reactive as Xe, toRef as j, useSlots as Ae, provide as Te, inject as ge, toRaw as Qe, onUnmounted as wt, defineComponent as N, useAttrs as ve, openBlock as w, createBlock as q, unref as o, mergeProps as H, createSlots as Y, renderList as re, withCtx as K, renderSlot as O, normalizeProps as Fe, guardReactiveProps as Ze, createPropsRestProxy as le, resolveComponent as U, withDirectives as X, createElementBlock as $, createVNode as V, createElementVNode as B, resolveDynamicComponent as oe, createCommentVNode as z, Fragment as te, vShow as Q, useCssVars as At, useTemplateRef as et, normalizeClass as Se, createTextVNode as pe, toDisplayString as de, withModifiers as Ie, nextTick as Me, Transition as kt, useId as Ct, useModel as Ee, onBeforeMount as St, mergeModels as Ve, withKeys as Ne } from "vue";
1
+ import { toValue as $, computed as w, ref as re, watch as ae, onBeforeUnmount as _t, reactive as Xe, toRef as O, useSlots as Ae, provide as Te, inject as ge, toRaw as Qe, onUnmounted as wt, defineComponent as z, useAttrs as ve, openBlock as _, createBlock as q, unref as o, mergeProps as W, createSlots as Y, renderList as se, withCtx as E, renderSlot as D, normalizeProps as Fe, guardReactiveProps as Ze, createPropsRestProxy as le, resolveComponent as B, withDirectives as X, createElementBlock as j, createVNode as R, createElementVNode as N, resolveDynamicComponent as oe, createCommentVNode as H, Fragment as te, vShow as Q, useCssVars as At, useTemplateRef as et, normalizeClass as Se, createTextVNode as pe, toDisplayString as de, withModifiers as Ie, nextTick as Me, Transition as kt, useId as Ct, useModel as Ee, onBeforeMount as St, mergeModels as Ve, withKeys as Ne } from "vue";
2
2
  import { marked as It } from "marked";
3
3
  import Tt from "dompurify";
4
4
  import { KTextArea as Pt, KInput as Lt, KCheckbox as qt, KCard as Re, KLabel as xt, KMultiselect as Kt, KSelect as Mt, KInputSwitch as Et } from "@kong/kongponents";
@@ -14,14 +14,14 @@ function Bt(e) {
14
14
  return e.map((r) => ({ value: r, label: `${r}` }));
15
15
  }
16
16
  const Ue = "*", Be = "#", ce = "$", Pe = ".";
17
- function E(...e) {
17
+ function V(...e) {
18
18
  return e.join(Pe);
19
19
  }
20
20
  function je(...e) {
21
- return E(ce, ...e);
21
+ return V(ce, ...e);
22
22
  }
23
23
  function We(e) {
24
- return e.startsWith(E(ce, ""));
24
+ return e.startsWith(V(ce, ""));
25
25
  }
26
26
  function ee(e) {
27
27
  return e.split(Pe).filter((r) => r !== "");
@@ -34,12 +34,12 @@ function st(e, r, t, n = "") {
34
34
  if (e == null || typeof e != "object") return;
35
35
  const s = Array.isArray(e) ? e.map((a, d) => String(d)) : Object.keys(e);
36
36
  for (const a of s) {
37
- const d = n ? E(n, a) : a;
37
+ const d = n ? V(n, a) : a;
38
38
  r(d) ? e[a] = t(d) : st(e[a], r, t, d);
39
39
  }
40
40
  }
41
41
  function Nt(e) {
42
- const r = R(e);
42
+ const r = $(e);
43
43
  return r ? r.type === "set" && r.elements.type === "string" && !r.elements.one_of : !1;
44
44
  }
45
45
  function lt(e, r) {
@@ -104,12 +104,12 @@ function zt(e) {
104
104
  let t = { parent: null };
105
105
  for (r.pop(); r.length; ) {
106
106
  const n = r.shift();
107
- t.path = t.parent?.path ? E(t.parent.path, n) : n, t = { parent: t };
107
+ t.path = t.parent?.path ? V(t.parent.path, n) : n, t = { parent: t };
108
108
  }
109
109
  return t;
110
110
  }
111
111
  function ct(e) {
112
- return A(() => zt(R(e)));
112
+ return w(() => zt($(e)));
113
113
  }
114
114
  const Je = /* @__PURE__ */ Symbol("free-form-field-path"), Oe = /* @__PURE__ */ Symbol("free-form-field-renderer-slots"), Ge = /* @__PURE__ */ Symbol("free-form-field-reset-label-path-setting"), ke = "free-form-field-renderers-slot";
115
115
  function Ht(e) {
@@ -129,7 +129,7 @@ function Le(e, r = "") {
129
129
  const t = {};
130
130
  if (Array.isArray(e.fields))
131
131
  for (const n of e.fields) {
132
- const s = Object.keys(n)[0], a = n[s], d = r ? E(r, s) : s;
132
+ const s = Object.keys(n)[0], a = n[s], d = r ? V(r, s) : s;
133
133
  if (t[d] = a, a.type === "record" && Array.isArray(a.fields)) {
134
134
  const l = Le(a, d);
135
135
  Object.assign(t, l);
@@ -147,7 +147,7 @@ function qe(e, r = "") {
147
147
  const t = {};
148
148
  if (e.elements) {
149
149
  let n = e.elements;
150
- const s = E(r, Ue);
150
+ const s = V(r, Ue);
151
151
  if (e.encrypted && n.type === "string" && (n = { ...n, encrypted: !0 }), t[s] = n, n.type === "record" && Array.isArray(n.fields)) {
152
152
  const a = Le(n, s);
153
153
  Object.assign(t, a);
@@ -162,7 +162,7 @@ function qe(e, r = "") {
162
162
  return t;
163
163
  }
164
164
  function xe(e, r = "") {
165
- const t = {}, n = E(r, Be);
165
+ const t = {}, n = V(r, Be);
166
166
  if (t[n] = e.values, e.values.type === "record" && Array.isArray(e.values.fields)) {
167
167
  const s = Le(e.values, n);
168
168
  Object.assign(t, s);
@@ -178,17 +178,17 @@ function xe(e, r = "") {
178
178
  function he(e, r) {
179
179
  const t = ee(e), n = [];
180
180
  for (let s = 0; s < t.length; s++) {
181
- const a = t[s], d = n.length > 0 ? E(...n) : "", l = d ? r[d] : void 0;
181
+ const a = t[s], d = n.length > 0 ? V(...n) : "", l = d ? r[d] : void 0;
182
182
  l?.type === "map" ? n.push(Be) : l?.type === "array" ? n.push(Ue) : n.push(a);
183
183
  }
184
- return E(...n);
184
+ return V(...n);
185
185
  }
186
186
  function Gt(e, r) {
187
- const t = R(e);
187
+ const t = $(e);
188
188
  function n() {
189
- return Ht(R(r)?.emptyFieldValue);
189
+ return Ht($(r)?.emptyFieldValue);
190
190
  }
191
- const s = A(() => t ? Jt(t) : {});
191
+ const s = w(() => t ? Jt(t) : {});
192
192
  function a(u) {
193
193
  if (u) {
194
194
  let g = he(u, s.value || {});
@@ -209,8 +209,8 @@ function Gt(e, r) {
209
209
  const v = {};
210
210
  if (Array.isArray(u.fields))
211
211
  for (const T of u.fields) {
212
- const L = Object.keys(T)[0], y = g ? `${g}.${L}` : L, k = d(y, !1);
213
- k !== void 0 && (v[L] = k);
212
+ const L = Object.keys(T)[0], y = g ? `${g}.${L}` : L, A = d(y, !1);
213
+ A !== void 0 && (v[L] = A);
214
214
  }
215
215
  return v;
216
216
  }
@@ -279,136 +279,136 @@ function Yt(e, r) {
279
279
  return typeof r == "object" && r !== null && De in r ? fe(e, r[De]) : Array.isArray(r) ? r.some((n) => fe(e, n)) : fe(e, r);
280
280
  }
281
281
  function Xt(e, r) {
282
- const t = se({}), n = se({});
283
- function s(y, k, _) {
284
- n.value[y] = { ...n.value[y], [k]: _ ? [..._] : [] };
282
+ const t = re({}), n = re({});
283
+ function s(y, A, b) {
284
+ n.value[y] = { ...n.value[y], [A]: b ? [...b] : [] };
285
285
  }
286
- function a(y, k) {
287
- const _ = n.value[y];
288
- if (!_ || !(k in _)) return;
289
- const C = { ..._ };
290
- delete C[k], Object.keys(C).length ? n.value[y] = C : delete n.value[y];
286
+ function a(y, A) {
287
+ const b = n.value[y];
288
+ if (!b || !(A in b)) return;
289
+ const k = { ...b };
290
+ delete k[A], Object.keys(k).length ? n.value[y] = k : delete n.value[y];
291
291
  }
292
- function d(y, k) {
293
- const _ = y.map((I) => ee(I).length), C = _[0];
294
- if (!_.every((I) => I === C)) {
295
- const I = y.map((M, P) => ` - '${M}' is at level ${_[P]}`).join(`
292
+ function d(y, A) {
293
+ const b = y.map((S) => ee(S).length), k = b[0];
294
+ if (!b.every((S) => S === k)) {
295
+ const S = y.map((M, P) => ` - '${M}' is at level ${b[P]}`).join(`
296
296
  `);
297
297
  throw new Error(
298
- `${k}: Fields must be at the same level. Found mixed levels:
299
- ${I}`
298
+ `${A}: Fields must be at the same level. Found mixed levels:
299
+ ${S}`
300
300
  );
301
301
  }
302
302
  }
303
303
  function l(y) {
304
- for (const [k, _] of Object.entries(y)) {
305
- if (!_.bundles) continue;
306
- for (const I of _.bundles)
307
- if (new Set(I).size !== I.length) {
308
- const P = I.filter((x, S) => I.indexOf(x) !== S);
304
+ for (const [A, b] of Object.entries(y)) {
305
+ if (!b.bundles) continue;
306
+ for (const S of b.bundles)
307
+ if (new Set(S).size !== S.length) {
308
+ const P = S.filter((K, C) => S.indexOf(K) !== C);
309
309
  throw new Error(
310
- `Self-cycle detected in bundle: field '${P[0]}' appears multiple times in [${I.join(", ")}]`
310
+ `Self-cycle detected in bundle: field '${P[0]}' appears multiple times in [${S.join(", ")}]`
311
311
  );
312
312
  }
313
- const C = /* @__PURE__ */ new Map();
314
- for (const I of _.bundles)
315
- for (let M = 1; M < I.length; M++) {
316
- const P = I[M], x = I[M - 1];
317
- C.has(P) || C.set(P, /* @__PURE__ */ new Set()), C.get(P).add(x);
313
+ const k = /* @__PURE__ */ new Map();
314
+ for (const S of b.bundles)
315
+ for (let M = 1; M < S.length; M++) {
316
+ const P = S[M], K = S[M - 1];
317
+ k.has(P) || k.set(P, /* @__PURE__ */ new Set()), k.get(P).add(K);
318
318
  }
319
- for (const I of C.keys()) {
320
- let M = function(S) {
321
- if (x.includes(S)) {
322
- const D = [...x, S].join(" -> ");
319
+ for (const S of k.keys()) {
320
+ let M = function(C) {
321
+ if (K.includes(C)) {
322
+ const x = [...K, C].join(" -> ");
323
323
  throw new Error(
324
- `Circular bundle detected in path '${k}':
325
- ${D}`
324
+ `Circular bundle detected in path '${A}':
325
+ ${x}`
326
326
  );
327
327
  }
328
- if (P.has(S)) return;
329
- P.add(S), x.push(S);
330
- const b = C.get(S);
331
- if (b)
332
- for (const D of b)
333
- M(D);
334
- x.pop();
328
+ if (P.has(C)) return;
329
+ P.add(C), K.push(C);
330
+ const I = k.get(C);
331
+ if (I)
332
+ for (const x of I)
333
+ M(x);
334
+ K.pop();
335
335
  };
336
- const P = /* @__PURE__ */ new Set(), x = [];
337
- M(I);
336
+ const P = /* @__PURE__ */ new Set(), K = [];
337
+ M(S);
338
338
  }
339
339
  }
340
340
  }
341
341
  function f(y) {
342
- for (const [k, _] of Object.entries(y))
343
- if (_.dependencies)
344
- for (const C of Object.keys(_.dependencies)) {
345
- let I = function(x) {
346
- if (P.includes(x)) {
347
- const b = [...P, x].join(" -> ");
342
+ for (const [A, b] of Object.entries(y))
343
+ if (b.dependencies)
344
+ for (const k of Object.keys(b.dependencies)) {
345
+ let S = function(K) {
346
+ if (P.includes(K)) {
347
+ const I = [...P, K].join(" -> ");
348
348
  throw new Error(
349
- `Circular dependency detected in path '${k}':
350
- ${b}`
349
+ `Circular dependency detected in path '${A}':
350
+ ${I}`
351
351
  );
352
352
  }
353
- if (M.has(x)) return;
354
- M.add(x), P.push(x);
355
- const S = _.dependencies[x];
356
- if (S) {
357
- const [b] = S;
358
- _.dependencies[b] && I(b);
353
+ if (M.has(K)) return;
354
+ M.add(K), P.push(K);
355
+ const C = b.dependencies[K];
356
+ if (C) {
357
+ const [I] = C;
358
+ b.dependencies[I] && S(I);
359
359
  }
360
360
  P.pop();
361
361
  };
362
362
  const M = /* @__PURE__ */ new Set(), P = [];
363
- I(C);
363
+ S(k);
364
364
  }
365
365
  }
366
- function i(y, k) {
367
- const _ = y.map((I) => k ? E(k, I) : I), C = ee(_[0]);
368
- return C.pop(), E(...C);
366
+ function i(y, A) {
367
+ const b = y.map((S) => A ? V(A, S) : S), k = ee(b[0]);
368
+ return k.pop(), V(...k);
369
369
  }
370
- function c(y, k) {
371
- if (!k) return y;
372
- const _ = `${k}${Pe}`;
373
- return y.startsWith(_) ? y.slice(_.length) : y;
370
+ function c(y, A) {
371
+ if (!A) return y;
372
+ const b = `${A}${Pe}`;
373
+ return y.startsWith(b) ? y.slice(b.length) : y;
374
374
  }
375
375
  function h(y) {
376
- const k = ee(y);
377
- return k.pop(), E(...k);
376
+ const A = ee(y);
377
+ return A.pop(), V(...A);
378
378
  }
379
379
  function m() {
380
380
  const y = {};
381
- for (const [k, _] of Object.entries(t.value)) {
382
- const C = k === ce ? "" : k;
383
- if (_.bundles)
384
- for (const I of _.bundles) {
385
- if (I.length < 2)
381
+ for (const [A, b] of Object.entries(t.value)) {
382
+ const k = A === ce ? "" : A;
383
+ if (b.bundles)
384
+ for (const S of b.bundles) {
385
+ if (S.length < 2)
386
386
  throw new Error(
387
- `Bundle must contain at least 2 fields. Found ${I.length} field(s) in bundle: [${I.join(", ")}]`
387
+ `Bundle must contain at least 2 fields. Found ${S.length} field(s) in bundle: [${S.join(", ")}]`
388
388
  );
389
- const M = I.map((S) => C ? E(C, S) : S);
390
- d(M, `Bundle [${I.join(", ")}]`);
391
- const P = i(I, C) || ce;
389
+ const M = S.map((C) => k ? V(k, C) : C);
390
+ d(M, `Bundle [${S.join(", ")}]`);
391
+ const P = i(S, k) || ce;
392
392
  y[P] || (y[P] = {}), y[P].bundles || (y[P].bundles = []);
393
- const x = M.map((S) => c(S, P));
394
- y[P].bundles.push(x);
393
+ const K = M.map((C) => c(C, P));
394
+ y[P].bundles.push(K);
395
395
  }
396
- if (_.dependencies)
397
- for (const [I, [M, P]] of Object.entries(_.dependencies)) {
398
- const x = C ? E(C, I) : I, S = C ? E(C, M) : M;
396
+ if (b.dependencies)
397
+ for (const [S, [M, P]] of Object.entries(b.dependencies)) {
398
+ const K = k ? V(k, S) : S, C = k ? V(k, M) : M;
399
399
  d(
400
- [x, S],
401
- `Dependency '${I}' -> '${M}'`
400
+ [K, C],
401
+ `Dependency '${S}' -> '${M}'`
402
402
  );
403
- const b = h(x) || ce;
404
- y[b] || (y[b] = {}), y[b].dependencies || (y[b].dependencies = {});
405
- const D = c(x, b), W = c(S, b);
406
- y[b].dependencies[D] = [W, P];
403
+ const I = h(K) || ce;
404
+ y[I] || (y[I] = {}), y[I].dependencies || (y[I].dependencies = {});
405
+ const x = c(K, I), F = c(C, I);
406
+ y[I].dependencies[x] = [F, P];
407
407
  }
408
408
  }
409
409
  return l(y), f(y), y;
410
410
  }
411
- const p = A(() => {
411
+ const p = w(() => {
412
412
  try {
413
413
  return m();
414
414
  } catch (y) {
@@ -418,58 +418,58 @@ ${b}`
418
418
  function u(y) {
419
419
  if (!y)
420
420
  return p.value;
421
- const k = he(y, e());
422
- return p.value[k];
421
+ const A = he(y, e());
422
+ return p.value[A];
423
423
  }
424
424
  function g(y) {
425
- let k = !1;
426
- return A(() => {
427
- if (k) return;
428
- const _ = R(y);
425
+ let A = !1;
426
+ return w(() => {
427
+ if (A) return;
428
+ const b = $(y);
429
429
  try {
430
- return u(_);
431
- } catch (C) {
432
- k = !0, console.error(`Failed to get render rules for path: \`${_}\`,`, C instanceof Error ? C.message : "");
430
+ return u(b);
431
+ } catch (k) {
432
+ A = !0, console.error(`Failed to get render rules for path: \`${b}\`,`, k instanceof Error ? k.message : "");
433
433
  return;
434
434
  }
435
435
  });
436
436
  }
437
- const v = A(
437
+ const v = w(
438
438
  () => Object.values(p.value).some(
439
439
  (y) => y.dependencies && Object.keys(y.dependencies).length > 0
440
440
  )
441
441
  );
442
442
  function T(y) {
443
443
  const {
444
- fieldPath: k,
445
- rules: _,
446
- omittedFields: C
447
- } = y, I = at("omit-");
444
+ fieldPath: A,
445
+ rules: b,
446
+ omittedFields: k
447
+ } = y, S = at("omit-");
448
448
  ae([
449
- () => R(_),
450
- () => R(k),
451
- () => R(C)
452
- ], ([P, x, S], [, b]) => {
453
- P ? t.value[x] = P : delete t.value[x], s(x, I, S), b && b !== x && (delete t.value[b], a(b, I));
449
+ () => $(b),
450
+ () => $(A),
451
+ () => $(k)
452
+ ], ([P, K, C], [, I]) => {
453
+ P ? t.value[K] = P : delete t.value[K], s(K, S, C), I && I !== K && (delete t.value[I], a(I, S));
454
454
  }, { immediate: !0, deep: !0 });
455
- const M = g(k);
455
+ const M = g(A);
456
456
  return _t(() => {
457
- const P = R(k);
458
- delete t.value[P], a(P, I);
457
+ const P = $(A);
458
+ delete t.value[P], a(P, S);
459
459
  }), M;
460
460
  }
461
461
  function L(y) {
462
- const k = ee(y);
463
- if (!k.length) return !1;
464
- const _ = k[k.length - 1], C = E(...k.slice(0, -1)), I = n.value[C];
465
- if (I) {
466
- const W = Object.values(I);
467
- if (W.length && W.every((G) => G.includes(_))) return !1;
462
+ const A = ee(y);
463
+ if (!A.length) return !1;
464
+ const b = A[A.length - 1], k = V(...A.slice(0, -1)), S = n.value[k];
465
+ if (S) {
466
+ const F = Object.values(S);
467
+ if (F.length && F.every((G) => G.includes(b))) return !1;
468
468
  }
469
- const M = C === "" ? ce : he(C, e()), P = p.value[M]?.dependencies?.[_];
469
+ const M = k === "" ? ce : he(k, e()), P = p.value[M]?.dependencies?.[b];
470
470
  if (!P) return !1;
471
- const [x, S] = P, b = C ? E(C, x) : x, D = tt(r(), ee(b));
472
- return !Yt(D, S);
471
+ const [K, C] = P, I = k ? V(k, K) : K, x = tt(r(), ee(I));
472
+ return !Yt(x, C);
473
473
  }
474
474
  return {
475
475
  useCurrentRules: T,
@@ -522,19 +522,19 @@ function ta(e, r, t) {
522
522
  return s;
523
523
  if (Array.isArray(s))
524
524
  return s.map((f, i) => {
525
- const c = a ? E(a, `${i}`) : `${i}`;
525
+ const c = a ? V(a, `${i}`) : `${i}`;
526
526
  return n(f, c);
527
527
  });
528
528
  if ((a ? r(a) : r())?.type === "map") {
529
529
  const f = s, i = {};
530
530
  return Object.keys(f).forEach((c) => {
531
- const h = t(c), m = f[c], p = a ? E(a, c) : c;
531
+ const h = t(c), m = f[c], p = a ? V(a, c) : c;
532
532
  i[h] = n(m, p);
533
533
  }), i;
534
534
  }
535
535
  const l = {};
536
536
  return Object.keys(s).forEach((f) => {
537
- const i = a ? E(a, f) : f;
537
+ const i = a ? V(a, f) : f;
538
538
  l[f] = n(s[f], i);
539
539
  }), l;
540
540
  };
@@ -546,7 +546,7 @@ function aa(e, r, t) {
546
546
  return s;
547
547
  if (Array.isArray(s))
548
548
  return s.map((f, i) => {
549
- const c = a ? E(a, `${i}`) : `${i}`;
549
+ const c = a ? V(a, `${i}`) : `${i}`;
550
550
  return n(f, c);
551
551
  });
552
552
  if ((a ? r(a) : r())?.type === "map") {
@@ -557,13 +557,13 @@ function aa(e, r, t) {
557
557
  console.error(`[FreeForm] Missing name for key ID: ${String(h)}`);
558
558
  return;
559
559
  }
560
- const u = p || Be, g = a ? E(a, u) : u;
560
+ const u = p || Be, g = a ? V(a, u) : u;
561
561
  i[p] = n(m, g);
562
562
  }), i;
563
563
  }
564
564
  const l = {};
565
565
  return Object.keys(s).forEach((f) => {
566
- const i = a ? E(a, f) : f;
566
+ const i = a ? V(a, f) : f;
567
567
  l[f] = n(s[f], i);
568
568
  }), l;
569
569
  };
@@ -584,7 +584,7 @@ const [ia, oa] = jt(
584
584
  getDefault: l,
585
585
  getEmptyOrDefault: f,
586
586
  ...i
587
- } = Gt(t, () => R(d)), c = ea(i.getSchema), h = /* @__PURE__ */ new Map(), m = Xe({}), p = j(() => R(d) ?? {}), u = Ae();
587
+ } = Gt(t, () => $(d)), c = ea(i.getSchema), h = /* @__PURE__ */ new Map(), m = Xe({}), p = O(() => $(d) ?? {}), u = Ae();
588
588
  Te(Oe, Vt(u, "default", ke));
589
589
  const {
590
590
  useCurrentRules: g,
@@ -595,60 +595,62 @@ const [ia, oa] = jt(
595
595
  fieldPath: ce,
596
596
  rules: a
597
597
  });
598
- function k(b) {
599
- Object.keys(m).forEach((D) => {
600
- delete m[D];
601
- }), c.clear(), Object.assign(m, c.serialize(b));
598
+ function A(x) {
599
+ Object.keys(m).forEach((F) => {
600
+ delete m[F];
601
+ }), c.clear(), Object.assign(m, c.serialize(x));
602
602
  }
603
- function _(b) {
604
- let D;
605
- !b || !C(R(b)) ? D = l() : D = ze(R(b)), He(p.value.prepareFormData) ? k(p.value.prepareFormData(D)) : k(D);
603
+ const b = re(!1);
604
+ function k(x) {
605
+ let F;
606
+ !x || !S($(x)) ? (b.value = !0, F = l()) : (b.value = !1, F = ze($(x))), He(p.value.prepareFormData) ? A(p.value.prepareFormData(F)) : A(F);
606
607
  }
607
- function C(b) {
608
- return He(p.value.hasValue) ? p.value.hasValue(b) : !!b;
608
+ function S(x) {
609
+ return He(p.value.hasValue) ? p.value.hasValue(x) : !!x;
609
610
  }
610
- function I() {
611
- const b = ze(R(m));
611
+ function M() {
612
+ const x = ze($(m));
612
613
  return T.value && st(
613
- b,
614
+ x,
614
615
  L,
615
616
  f
616
- ), c.deserialize(b);
617
+ ), c.deserialize(x);
617
618
  }
618
619
  ae(m, () => {
619
- s?.(I());
620
+ s?.(M());
620
621
  }, { deep: !0 });
621
- let M = !1;
622
- ae(() => n?.value, (b) => {
623
- M && fe(I(), R(b)) || (_(b), M = !0);
622
+ let P = !1;
623
+ ae(() => n?.value, (x) => {
624
+ P && fe(M(), $(x)) || (k(x), P = !0);
624
625
  }, { deep: !0, immediate: !0 });
625
- function P(b) {
626
- return b != null && typeof b == "object" && !Array.isArray(b) ? c.serialize(b) : b;
626
+ function K(x) {
627
+ return x != null && typeof x == "object" && !Array.isArray(x) ? c.serialize(x) : x;
627
628
  }
628
- function x(b) {
629
- return P(l(b));
629
+ function C(x) {
630
+ return K(l(x));
630
631
  }
631
- function S(b) {
632
- return P(f(b));
632
+ function I(x) {
633
+ return K(f(x));
633
634
  }
634
635
  return {
635
636
  /**
636
637
  * The reactive form data object
637
638
  */
638
639
  formData: m,
640
+ isSchemaDefaulted: b,
639
641
  schema: t,
640
642
  config: p,
641
643
  fieldRendererRegistry: h,
642
- setValue: k,
644
+ setValue: A,
643
645
  useCurrentRenderRules: g,
644
646
  rootRenderRules: y,
645
647
  createComputedRenderRules: v,
646
648
  ...i,
647
- getValue: I,
649
+ getValue: M,
648
650
  isFieldHidden: L,
649
651
  keyIdMap: c,
650
- getDefault: x,
651
- getEmptyOrDefault: S
652
+ getDefault: C,
653
+ getEmptyOrDefault: I
652
654
  };
653
655
  }
654
656
  );
@@ -659,23 +661,23 @@ function ne() {
659
661
  return e;
660
662
  }
661
663
  const dt = (e) => {
662
- const r = ge(Je, A(() => "")), t = A(() => {
663
- const n = R(e);
664
+ const r = ge(Je, w(() => "")), t = w(() => {
665
+ const n = $(e);
664
666
  let s = n;
665
- return !We(n) && r.value && (s = E(r.value, n)), We(n) && (s = s.slice(je("").length)), s;
667
+ return !We(n) && r.value && (s = V(r.value, n)), We(n) && (s = s.slice(je("").length)), s;
666
668
  });
667
669
  return Te(Je, t), t;
668
670
  }, ra = (e) => {
669
- const { getSchema: r, getSchemaMap: t, fieldRendererRegistry: n } = ne(), { default: s, ...a } = Ae(), d = ge(Oe), l = [ke, "item", "label", "tooltip"], f = A(() => {
670
- const i = R(d), c = t(), h = Object.keys(a).filter((m) => !l.includes(m)).reduce((m, p) => {
671
- const u = he(E(R(e), p), c);
671
+ const { getSchema: r, getSchemaMap: t, fieldRendererRegistry: n } = ne(), { default: s, ...a } = Ae(), d = ge(Oe), l = [ke, "item", "label", "tooltip"], f = w(() => {
672
+ const i = $(d), c = t(), h = Object.keys(a).filter((m) => !l.includes(m)).reduce((m, p) => {
673
+ const u = he(V($(e), p), c);
672
674
  return { ...m, [u]: a[p] };
673
675
  }, {});
674
676
  return i ? { ...i, ...h } : h;
675
677
  });
676
- return Te(Oe, f), A(() => {
678
+ return Te(Oe, f), w(() => {
677
679
  if (s) return;
678
- const i = R(e), c = f.value[he(i, t())];
680
+ const i = $(e), c = f.value[he(i, t())];
679
681
  if (c) return c;
680
682
  const h = t();
681
683
  for (const [m, p] of n) {
@@ -688,14 +690,14 @@ const dt = (e) => {
688
690
  function la(e) {
689
691
  const { formData: r } = ne(), t = dt(e);
690
692
  return {
691
- value: A({
693
+ value: w({
692
694
  get: () => tt(r, ee(t.value)),
693
695
  set: (s) => Rt(r, ee(t.value), s)
694
696
  })
695
697
  };
696
698
  }
697
699
  function Z(e) {
698
- const { getSchema: r, isFieldHidden: t, getEmptyOrDefault: n, getEmptyValue: s } = ne(), a = dt(e), d = ra(a), { value: l } = la(e), f = A(() => r(a.value)), i = A(() => t(a.value)), c = A(() => n(a.value)), h = A(() => s());
700
+ const { getSchema: r, isFieldHidden: t, getEmptyOrDefault: n, getEmptyValue: s } = ne(), a = dt(e), d = ra(a), { value: l } = la(e), f = w(() => r(a.value)), i = w(() => t(a.value)), c = w(() => n(a.value)), h = w(() => s());
699
701
  return f.value ? {
700
702
  schema: f,
701
703
  path: a,
@@ -727,7 +729,7 @@ function ua(e, r) {
727
729
  return n.set(l, f), t.set(d, f), f;
728
730
  }
729
731
  return ae(r, (d) => {
730
- const l = R(d), f = /* @__PURE__ */ new Set();
732
+ const l = $(d), f = /* @__PURE__ */ new Set();
731
733
  l.forEach((i, c) => {
732
734
  f.add(c);
733
735
  }), Array.from(n.keys()).forEach((i) => {
@@ -794,12 +796,12 @@ function da(e, r) {
794
796
  const t = ge(Ge, {
795
797
  parentPath: null,
796
798
  isolate: !1
797
- }), { parentPath: n, isolate: s } = R(t), a = se(n ? E(n, e) : e), d = se({
799
+ }), { parentPath: n, isolate: s } = $(t), a = re(n ? V(n, e) : e), d = re({
798
800
  parentPath: a.value,
799
801
  isolate: s
800
802
  });
801
- return ae([j(r), j(t)], ([l, f]) => {
802
- const { parentPath: i, isolate: c } = f, h = i ? E(i, e) : e;
803
+ return ae([O(r), O(t)], ([l, f]) => {
804
+ const { parentPath: i, isolate: c } = f, h = i ? V(i, e) : e;
803
805
  l ? {
804
806
  isolate: () => {
805
807
  a.value = e, d.value.isolate = !0, d.value.parentPath = null;
@@ -823,8 +825,8 @@ function ft(e) {
823
825
  return ee(e).map((t) => t.split("_").map(pt).join(" ")).map($t).join(" › ");
824
826
  }
825
827
  function pa(e, r) {
826
- const t = R(e), n = me(t), { config: s, getSchema: a } = ne(), d = da(n, r), l = ct(e);
827
- return A(() => {
828
+ const t = $(e), n = me(t), { config: s, getSchema: a } = ne(), d = da(n, r), l = ct(e);
829
+ return w(() => {
828
830
  const f = d.value ?? n, i = l.value.parent?.path ? a(l.value.parent.path) : null, c = i?.type === "array", h = i?.type === "map";
829
831
  if (c || h)
830
832
  return "";
@@ -833,8 +835,8 @@ function pa(e, r) {
833
835
  });
834
836
  }
835
837
  function ie(e, r) {
836
- const { getLabelAttributes: t, getPlaceholder: n, getSchema: s } = ne(), a = R(e), d = R(r), l = pa(e, j(() => R(r).resetLabelPath));
837
- return A(() => ({
838
+ const { getLabelAttributes: t, getPlaceholder: n, getSchema: s } = ne(), a = $(e), d = $(r), l = pa(e, O(() => $(r).resetLabelPath));
839
+ return w(() => ({
838
840
  ...d,
839
841
  placeholder: d.placeholder ?? n(a) ?? void 0,
840
842
  labelAttributes: d.labelAttributes ?? t(a),
@@ -843,10 +845,10 @@ function ie(e, r) {
843
845
  }));
844
846
  }
845
847
  function ma(e, r) {
846
- const { value: t, ...n } = Z(e), { getEmptyOrDefault: s, keyIdMap: a } = ne(), d = A(() => {
848
+ const { value: t, ...n } = Z(e), { getEmptyOrDefault: s, keyIdMap: a } = ne(), d = w(() => {
847
849
  if (n.path)
848
850
  return n.schema.value.values;
849
- }), l = A(() => t ? Object.keys(t.value || {}).map((u) => {
851
+ }), l = w(() => t ? Object.keys(t.value || {}).map((u) => {
850
852
  const g = u, v = a.getKey(g) ?? "";
851
853
  return [g, v];
852
854
  }) : []);
@@ -855,7 +857,7 @@ function ma(e, r) {
855
857
  }
856
858
  function i() {
857
859
  if (!t) return;
858
- const p = a.createKey(), u = s(E(n.path.value, p));
860
+ const p = a.createKey(), u = s(V(n.path.value, p));
859
861
  return t.value = {
860
862
  ...t.value,
861
863
  [p]: u
@@ -869,7 +871,7 @@ function ma(e, r) {
869
871
  function h(p) {
870
872
  return a.getKey(p);
871
873
  }
872
- const m = A(() => {
874
+ const m = w(() => {
873
875
  if (!n.path) return "";
874
876
  const p = me(n.path.value);
875
877
  let u = p;
@@ -911,7 +913,7 @@ function be() {
911
913
  i18nT: ot(e)
912
914
  };
913
915
  }
914
- const _e = /* @__PURE__ */ N({
916
+ const _e = /* @__PURE__ */ z({
915
917
  __name: "EnhancedInput",
916
918
  props: {
917
919
  modelValue: {},
@@ -920,7 +922,7 @@ const _e = /* @__PURE__ */ N({
920
922
  },
921
923
  emits: ["update:modelValue"],
922
924
  setup(e, { emit: r }) {
923
- const t = e, n = ve(), s = r, a = A(() => t.multiline ? Pt : t.secret ? Ot : Lt), d = A(() => n.characterLimit ?? (t.multiline ? !1 : void 0)), l = se(t.modelValue);
925
+ const t = e, n = ve(), s = r, a = w(() => t.multiline ? Pt : t.secret ? Ot : Lt), d = w(() => n.characterLimit ?? (t.multiline ? !1 : void 0)), l = re(t.modelValue);
924
926
  ae(() => t.modelValue, (h) => {
925
927
  l.value = h;
926
928
  });
@@ -929,22 +931,22 @@ const _e = /* @__PURE__ */ N({
929
931
  }, c = () => {
930
932
  f.value.updateOnChange && s("update:modelValue", l.value);
931
933
  };
932
- return (h, m) => (w(), q(o(a), H(h.$attrs, {
934
+ return (h, m) => (_(), q(o(a), W(h.$attrs, {
933
935
  "character-limit": d.value,
934
936
  "model-value": e.modelValue,
935
937
  resizable: e.multiline ? !0 : void 0,
936
938
  onChange: c,
937
939
  "onUpdate:modelValue": i
938
940
  }), Y({ _: 2 }, [
939
- re(Ae(), (p, u) => ({
941
+ se(Ae(), (p, u) => ({
940
942
  name: u,
941
- fn: K((g) => [
942
- O(h.$slots, u, Fe(Ze(g)))
943
+ fn: E((g) => [
944
+ D(h.$slots, u, Fe(Ze(g)))
943
945
  ])
944
946
  }))
945
947
  ]), 1040, ["character-limit", "model-value", "resizable"]));
946
948
  }
947
- }), ya = ["innerHTML"], va = /* @__PURE__ */ N({
949
+ }), ya = ["innerHTML"], va = /* @__PURE__ */ z({
948
950
  inheritAttrs: !1,
949
951
  __name: "StringField",
950
952
  props: {
@@ -970,19 +972,19 @@ const _e = /* @__PURE__ */ N({
970
972
  },
971
973
  emits: ["update:modelValue"],
972
974
  setup(e, { emit: r }) {
973
- const t = ve(), { i18n: n } = be(), s = ge(sa, A(() => !1)), a = le(e, ["autofocus", "showVaultSecretPicker", "showPasswordMaskToggle", "name"]), d = r, { value: l, hide: f, ...i } = Z(j(() => e.name)), c = ie(i.path, j({ ...a, ...t }));
975
+ const t = ve(), { i18n: n } = be(), s = ge(sa, w(() => !1)), a = le(e, ["autofocus", "showVaultSecretPicker", "showPasswordMaskToggle", "name"]), d = r, { value: l, hide: f, ...i } = Z(O(() => e.name)), c = ie(i.path, O({ ...a, ...t }));
974
976
  function h(T) {
975
977
  l.value = T === "" ? i.emptyValue.value : T, d("update:modelValue", l.value);
976
978
  }
977
- const m = A(() => e.showPasswordMaskToggle !== void 0 ? e.showPasswordMaskToggle : a.type === "password" ? !0 : !!(i.schema?.value).encrypted), p = ge(nt, void 0), u = A(() => e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!i.schema.value?.referenceable), g = A(() => ({ referenceable: u.value })), v = A(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : me(e.name) === "name");
979
+ const m = w(() => e.showPasswordMaskToggle !== void 0 ? e.showPasswordMaskToggle : a.type === "password" ? !0 : !!(i.schema?.value).encrypted), p = ge(nt, void 0), u = w(() => e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!i.schema.value?.referenceable), g = w(() => ({ referenceable: u.value })), v = w(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : me(e.name) === "name");
978
980
  return (T, L) => {
979
- const y = U("KAlert");
980
- return i.error ? (w(), q(y, {
981
+ const y = B("KAlert");
982
+ return i.error ? (_(), q(y, {
981
983
  key: 0,
982
984
  appearance: "danger",
983
985
  message: i.error.message
984
- }, null, 8, ["message"])) : X((w(), $("div", Fe(H({ key: 1 }, T.$attrs)), [
985
- V(_e, H(o(c), {
986
+ }, null, 8, ["message"])) : X((_(), j("div", Fe(W({ key: 1 }, T.$attrs)), [
987
+ R(_e, W(o(c), {
986
988
  id: e.inputId,
987
989
  class: "ff-string-field",
988
990
  "data-1p-ignore": v.value,
@@ -1001,9 +1003,9 @@ const _e = /* @__PURE__ */ N({
1001
1003
  }), Y({ _: 2 }, [
1002
1004
  o(c).labelAttributes?.info ? {
1003
1005
  name: "label-tooltip",
1004
- fn: K(() => [
1005
- O(T.$slots, "tooltip", {}, () => [
1006
- B("div", {
1006
+ fn: E(() => [
1007
+ D(T.$slots, "tooltip", {}, () => [
1008
+ N("div", {
1007
1009
  innerHTML: o(c).labelAttributes.info
1008
1010
  }, null, 8, ya)
1009
1011
  ], !0)
@@ -1012,43 +1014,43 @@ const _e = /* @__PURE__ */ N({
1012
1014
  } : void 0,
1013
1015
  !(e.multiline && e.error) && T.$slots.help ? {
1014
1016
  name: "help",
1015
- fn: K(() => [
1016
- O(T.$slots, "help", {}, void 0, !0)
1017
+ fn: E(() => [
1018
+ D(T.$slots, "help", {}, void 0, !0)
1017
1019
  ]),
1018
1020
  key: "1"
1019
1021
  } : void 0,
1020
1022
  !e.multiline && e.inlineVaultPicker ? {
1021
1023
  name: "after",
1022
- fn: K(() => [
1023
- o(p) && u.value ? (w(), q(oe(o(p)), {
1024
+ fn: E(() => [
1025
+ o(p) && u.value ? (_(), q(oe(o(p)), {
1024
1026
  key: 0,
1025
1027
  schema: g.value,
1026
1028
  update: h,
1027
1029
  value: o(l) ?? ""
1028
- }, null, 8, ["schema", "value"])) : z("", !0),
1029
- u.value && !o(p) ? (w(), q(y, {
1030
+ }, null, 8, ["schema", "value"])) : H("", !0),
1031
+ u.value && !o(p) ? (_(), q(y, {
1030
1032
  key: 1,
1031
1033
  appearance: "warning",
1032
1034
  "data-testid": `ff-vault-secret-picker-warning-${i.path.value}`,
1033
1035
  message: o(n).t("plugins.free-form.vault_picker.component_error")
1034
- }, null, 8, ["data-testid", "message"])) : z("", !0)
1036
+ }, null, 8, ["data-testid", "message"])) : H("", !0)
1035
1037
  ]),
1036
1038
  key: "2"
1037
1039
  } : void 0
1038
1040
  ]), 1040, ["id", "data-1p-ignore", "data-autofocus", "data-testid", "error", "error-message", "help", "model-value", "multiline", "placeholder", "secret", "show-password-mask-toggle", "type"]),
1039
- e.inlineVaultPicker ? z("", !0) : (w(), $(te, { key: 0 }, [
1040
- o(p) && u.value ? (w(), q(oe(o(p)), {
1041
+ e.inlineVaultPicker ? H("", !0) : (_(), j(te, { key: 0 }, [
1042
+ o(p) && u.value ? (_(), q(oe(o(p)), {
1041
1043
  key: 0,
1042
1044
  schema: g.value,
1043
1045
  update: h,
1044
1046
  value: o(l) ?? ""
1045
- }, null, 8, ["schema", "value"])) : z("", !0),
1046
- u.value && !o(p) ? (w(), q(y, {
1047
+ }, null, 8, ["schema", "value"])) : H("", !0),
1048
+ u.value && !o(p) ? (_(), q(y, {
1047
1049
  key: 1,
1048
1050
  appearance: "warning",
1049
1051
  "data-testid": `ff-vault-secret-picker-warning-${i.path.value}`,
1050
1052
  message: o(n).t("plugins.free-form.vault_picker.component_error")
1051
- }, null, 8, ["data-testid", "message"])) : z("", !0)
1053
+ }, null, 8, ["data-testid", "message"])) : H("", !0)
1052
1054
  ], 64))
1053
1055
  ], 16)), [
1054
1056
  [Q, !o(f)]
@@ -1060,7 +1062,7 @@ const _e = /* @__PURE__ */ N({
1060
1062
  for (const [n, s] of r)
1061
1063
  t[n] = s;
1062
1064
  return t;
1063
- }, ht = /* @__PURE__ */ J(va, [["__scopeId", "data-v-70f2bad0"]]), ba = ["innerHTML"], _a = /* @__PURE__ */ N({
1065
+ }, ht = /* @__PURE__ */ J(va, [["__scopeId", "data-v-70f2bad0"]]), ba = ["innerHTML"], _a = /* @__PURE__ */ z({
1064
1066
  inheritAttrs: !1,
1065
1067
  __name: "BooleanField",
1066
1068
  props: {
@@ -1071,16 +1073,16 @@ const _e = /* @__PURE__ */ N({
1071
1073
  },
1072
1074
  emits: ["update:modelValue"],
1073
1075
  setup(e, { emit: r }) {
1074
- const t = le(e, ["autofocus", "name"]), { value: n, hide: s, emptyOrDefaultValue: a, ...d } = Z(j(() => e.name)), l = r, f = (c) => {
1076
+ const t = le(e, ["autofocus", "name"]), { value: n, hide: s, emptyOrDefaultValue: a, ...d } = Z(O(() => e.name)), l = r, f = (c) => {
1075
1077
  n.value = c, l("update:modelValue", c);
1076
1078
  }, i = ie(d.path, t);
1077
1079
  return (c, h) => {
1078
- const m = U("KAlert");
1079
- return d.error ? (w(), q(m, {
1080
+ const m = B("KAlert");
1081
+ return d.error ? (_(), q(m, {
1080
1082
  key: 0,
1081
1083
  appearance: "danger",
1082
1084
  message: d.error.message
1083
- }, null, 8, ["message"])) : X((w(), q(o(qt), H({ key: 1 }, { ...o(i), ...c.$attrs }, {
1085
+ }, null, 8, ["message"])) : X((_(), q(o(qt), W({ key: 1 }, { ...o(i), ...c.$attrs }, {
1084
1086
  class: "ff-boolean-field",
1085
1087
  "data-autofocus": e.autofocus ? "true" : void 0,
1086
1088
  "data-testid": `ff-${d.path.value}`,
@@ -1089,9 +1091,9 @@ const _e = /* @__PURE__ */ N({
1089
1091
  }), Y({ _: 2 }, [
1090
1092
  o(i).labelAttributes?.info ? {
1091
1093
  name: "tooltip",
1092
- fn: K(() => [
1093
- O(c.$slots, "tooltip", {}, () => [
1094
- B("div", {
1094
+ fn: E(() => [
1095
+ D(c.$slots, "tooltip", {}, () => [
1096
+ N("div", {
1095
1097
  innerHTML: o(i).labelAttributes.info
1096
1098
  }, null, 8, ba)
1097
1099
  ], !0)
@@ -1103,7 +1105,7 @@ const _e = /* @__PURE__ */ N({
1103
1105
  ]);
1104
1106
  };
1105
1107
  }
1106
- }), wa = /* @__PURE__ */ J(_a, [["__scopeId", "data-v-a1c08c7f"]]), Aa = ["data-testid"], ka = ["innerHTML"], Ca = /* @__PURE__ */ N({
1108
+ }), wa = /* @__PURE__ */ J(_a, [["__scopeId", "data-v-a1c08c7f"]]), Aa = ["data-testid"], ka = ["innerHTML"], Ca = /* @__PURE__ */ z({
1107
1109
  inheritAttrs: !1,
1108
1110
  __name: "StringArrayField",
1109
1111
  props: {
@@ -1114,7 +1116,7 @@ const _e = /* @__PURE__ */ N({
1114
1116
  },
1115
1117
  emits: ["update:modelValue"],
1116
1118
  setup(e, { emit: r }) {
1117
- const t = ve(), n = le(e, ["autofocus", "name"]), s = r, { value: a, hide: d, ...l } = Z(j(() => e.name)), f = ie(l.path, j({ ...n, ...t })), i = A(() => l.schema?.value?.len_min && l.schema.value.len_min > 0), c = se("");
1119
+ const t = ve(), n = le(e, ["autofocus", "name"]), s = r, { value: a, hide: d, ...l } = Z(O(() => e.name)), f = ie(l.path, O({ ...n, ...t })), i = w(() => l.schema?.value?.len_min && l.schema.value.len_min > 0), c = re("");
1118
1120
  function h(g) {
1119
1121
  return g.map((v) => v.trim()).filter(Boolean).join(", ");
1120
1122
  }
@@ -1126,21 +1128,21 @@ const _e = /* @__PURE__ */ N({
1126
1128
  const v = m(g), T = !v.length && i.value ? l.emptyValue.value : v;
1127
1129
  a.value = T, s("update:modelValue", T);
1128
1130
  }
1129
- const u = A(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : me(e.name) === "name");
1131
+ const u = w(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : me(e.name) === "name");
1130
1132
  return ae(a, (g) => {
1131
1133
  const v = g ? h(g) : "";
1132
1134
  h(m(c.value)) !== v && (c.value = v);
1133
1135
  }, { immediate: !0 }), (g, v) => {
1134
- const T = U("KAlert");
1135
- return l.error ? (w(), q(T, {
1136
+ const T = B("KAlert");
1137
+ return l.error ? (_(), q(T, {
1136
1138
  key: 0,
1137
1139
  appearance: "danger",
1138
1140
  message: l.error.message
1139
- }, null, 8, ["message"])) : X((w(), $("div", {
1141
+ }, null, 8, ["message"])) : X((_(), j("div", {
1140
1142
  key: 1,
1141
1143
  "data-testid": `ff-tag-${l.path.value}`
1142
1144
  }, [
1143
- V(_e, H(o(f), {
1145
+ R(_e, W(o(f), {
1144
1146
  class: "ff-tag-field",
1145
1147
  "data-1p-ignore": u.value,
1146
1148
  "data-autofocus": e.autofocus ? "true" : void 0,
@@ -1150,9 +1152,9 @@ const _e = /* @__PURE__ */ N({
1150
1152
  }), Y({ _: 2 }, [
1151
1153
  o(f).labelAttributes?.info ? {
1152
1154
  name: "label-tooltip",
1153
- fn: K(() => [
1154
- O(g.$slots, "tooltip", {}, () => [
1155
- B("div", {
1155
+ fn: E(() => [
1156
+ D(g.$slots, "tooltip", {}, () => [
1157
+ N("div", {
1156
1158
  innerHTML: o(f).labelAttributes.info
1157
1159
  }, null, 8, ka)
1158
1160
  ], !0)
@@ -1165,7 +1167,7 @@ const _e = /* @__PURE__ */ N({
1165
1167
  ]);
1166
1168
  };
1167
1169
  }
1168
- }), gt = /* @__PURE__ */ J(Ca, [["__scopeId", "data-v-a7d70a44"]]), Sa = ["data-appearance", "data-testid"], Ia = ["data-testid"], Ta = ["innerHTML"], Pa = ["data-testid"], La = { class: "ff-array-field-item-content" }, qa = ["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)', xa = /* @__PURE__ */ N({
1170
+ }), gt = /* @__PURE__ */ J(Ca, [["__scopeId", "data-v-a7d70a44"]]), Sa = ["data-appearance", "data-testid"], Ia = ["data-testid"], Ta = ["innerHTML"], Pa = ["data-testid"], La = { class: "ff-array-field-item-content" }, qa = ["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)', xa = /* @__PURE__ */ z({
1169
1171
  __name: "ArrayField",
1170
1172
  props: {
1171
1173
  name: {},
@@ -1181,57 +1183,57 @@ const _e = /* @__PURE__ */ N({
1181
1183
  },
1182
1184
  emits: ["add", "remove"],
1183
1185
  setup(e, { emit: r }) {
1184
- At((S) => ({
1185
- v2a023911: x.value
1186
+ At((C) => ({
1187
+ v2a023911: K.value
1186
1188
  }));
1187
- const t = e, n = r, { i18n: { t: s } } = be(), { getDefault: a, getSchema: d } = ne(), { value: l, hide: f, ...i } = Z(j(t, "name")), c = ie(i.path, j({ ...t, ...ve() })), h = A(() => {
1189
+ const t = e, n = r, { i18n: { t: s } } = be(), { getDefault: a, getSchema: d } = ne(), { value: l, hide: f, ...i } = Z(O(t, "name")), c = ie(i.path, O({ ...t, ...ve() })), h = w(() => {
1188
1190
  if (!i.path) throw new Error("Field path is required for sub-schema retrieval");
1189
- const S = d(i.path.value);
1190
- if (!S) throw new Error(`Schema not found for path: ${i.path.value}`);
1191
- return S.elements;
1192
- }), m = A(() => {
1191
+ const C = d(i.path.value);
1192
+ if (!C) throw new Error(`Schema not found for path: ${i.path.value}`);
1193
+ return C.elements;
1194
+ }), m = w(() => {
1193
1195
  if (!i.path) return "";
1194
- const S = me(i.path.value);
1195
- return mt(S);
1196
- }), p = A(() => t.addItemLabel ?? s("actions.add_entity", { entity: m.value })), u = A(() => t.items ?? R(l) ?? []), { getKey: g } = ua("ff-array-field", u), v = A(() => t.appearance ? t.appearance : h.value.type === "record" || h.value.type === "map" ? "card" : "default"), T = A(() => v.value === "card" ? Re : "div");
1197
- function L(S, b) {
1198
- return typeof t.itemLabel == "function" ? t.itemLabel(S, b) : t.itemLabel || c.value.label || `Item #${b}`;
1196
+ const C = me(i.path.value);
1197
+ return mt(C);
1198
+ }), p = w(() => t.addItemLabel ?? s("actions.add_entity", { entity: m.value })), u = w(() => t.items ?? $(l) ?? []), { getKey: g } = ua("ff-array-field", u), v = w(() => t.appearance ? t.appearance : h.value.type === "record" || h.value.type === "map" ? "card" : "default"), T = w(() => v.value === "card" ? Re : "div");
1199
+ function L(C, I) {
1200
+ return typeof t.itemLabel == "function" ? t.itemLabel(C, I) : t.itemLabel || c.value.label || `Item #${I}`;
1199
1201
  }
1200
- const y = A(() => u.value.map((S, b) => ({
1201
- hash: `#${g(S, b)}`,
1202
+ const y = w(() => u.value.map((C, I) => ({
1203
+ hash: `#${g(C, I)}`,
1202
1204
  title: ""
1203
- }))), k = se(y.value[0]?.hash), _ = async () => {
1204
- const S = a(E(i.path.value, Ue));
1205
- Array.isArray(l.value) || (l.value = []), l.value.push(S), n("add"), t.appearance === "tabs" && (await Me(), k.value = y.value[y.value.length - 1]?.hash), await Me(), M(u.value.length + 1);
1206
- }, C = async (S) => {
1207
- Array.isArray(l.value) && (l.value.splice(S, 1), l.value.length === 0 && !c.value.required && (l.value = i.emptyValue.value)), n("remove", S), t.appearance === "tabs" && (k.value = y.value[Math.max(0, S - 1)]?.hash);
1208
- }, I = et("root");
1209
- function M(S) {
1210
- if (!I.value)
1205
+ }))), A = re(y.value[0]?.hash), b = async () => {
1206
+ const C = a(V(i.path.value, Ue));
1207
+ Array.isArray(l.value) || (l.value = []), l.value.push(C), n("add"), t.appearance === "tabs" && (await Me(), A.value = y.value[y.value.length - 1]?.hash), await Me(), M(u.value.length + 1);
1208
+ }, k = async (C) => {
1209
+ Array.isArray(l.value) && (l.value.splice(C, 1), l.value.length === 0 && !c.value.required && (l.value = i.emptyValue.value)), n("remove", C), t.appearance === "tabs" && (A.value = y.value[Math.max(0, C - 1)]?.hash);
1210
+ }, S = et("root");
1211
+ function M(C) {
1212
+ if (!S.value)
1211
1213
  return;
1212
- const b = Math.max(0, Math.min(S, u.value.length - 1)), D = I.value.querySelector(`[data-index="${b}"]`);
1213
- if (!D)
1214
+ const I = Math.max(0, Math.min(C, u.value.length - 1)), x = S.value.querySelector(`[data-index="${I}"]`);
1215
+ if (!x)
1214
1216
  return;
1215
- P(D)?.focus();
1217
+ P(x)?.focus();
1216
1218
  }
1217
- function P(S) {
1218
- const b = S.querySelector('[data-autofocus="true"]');
1219
- return b ? b.matches(Ke) ? b : b.querySelector(Ke) : S.querySelector(Ke);
1219
+ function P(C) {
1220
+ const I = C.querySelector('[data-autofocus="true"]');
1221
+ return I ? I.matches(Ke) ? I : I.querySelector(Ke) : C.querySelector(Ke);
1220
1222
  }
1221
- const x = A(() => {
1222
- const { appearance: S, stickyTabs: b } = t;
1223
- return S !== "tabs" || b == null || b === !1 ? null : typeof b == "number" ? `${t.stickyTabs}px` : typeof b == "string" ? b : "0";
1223
+ const K = w(() => {
1224
+ const { appearance: C, stickyTabs: I } = t;
1225
+ return C !== "tabs" || I == null || I === !1 ? null : typeof I == "number" ? `${t.stickyTabs}px` : typeof I == "string" ? I : "0";
1224
1226
  });
1225
- return (S, b) => {
1226
- const D = U("KAlert"), W = U("KLabel"), G = U("KButton"), yt = U("KTooltip"), vt = U("KTabs");
1227
- return i.error ? (w(), q(D, {
1227
+ return (C, I) => {
1228
+ const x = B("KAlert"), F = B("KLabel"), G = B("KButton"), yt = B("KTooltip"), vt = B("KTabs");
1229
+ return i.error ? (_(), q(x, {
1228
1230
  key: 0,
1229
1231
  appearance: "danger",
1230
1232
  message: i.error.message
1231
- }, null, 8, ["message"])) : X((w(), $("div", {
1233
+ }, null, 8, ["message"])) : X((_(), j("div", {
1232
1234
  key: 1,
1233
1235
  ref_key: "root",
1234
- ref: I,
1236
+ ref: S,
1235
1237
  class: Se(["ff-array-field", {
1236
1238
  [`ff-array-field-${v.value ?? "default"}`]: !0,
1237
1239
  "ff-array-field-sticky-tabs": e.stickyTabs
@@ -1239,17 +1241,17 @@ const _e = /* @__PURE__ */ N({
1239
1241
  "data-appearance": v.value,
1240
1242
  "data-testid": `ff-array-${i.path.value}`
1241
1243
  }, [
1242
- o(c).label && !e.hideLabel ? (w(), $("header", {
1244
+ o(c).label && !e.hideLabel ? (_(), j("header", {
1243
1245
  key: 0,
1244
1246
  class: "ff-array-field-header",
1245
1247
  "data-testid": `ff-array-header-${i.path.value}`
1246
1248
  }, [
1247
- V(W, H({ class: "ff-array-field-label" }, o(c), {
1249
+ R(F, W({ class: "ff-array-field-label" }, o(c), {
1248
1250
  "data-testid": `ff-label-${i.path.value}`,
1249
1251
  "tooltip-attributes": o(c).labelAttributes.tooltipAttributes
1250
1252
  }), Y({
1251
- default: K(() => [
1252
- O(S.$slots, "label", {
1253
+ default: E(() => [
1254
+ D(C.$slots, "label", {
1253
1255
  label: o(c).label
1254
1256
  }, () => [
1255
1257
  pe(de(o(c).label), 1)
@@ -1259,9 +1261,9 @@ const _e = /* @__PURE__ */ N({
1259
1261
  }, [
1260
1262
  o(c).labelAttributes?.info ? {
1261
1263
  name: "tooltip",
1262
- fn: K(() => [
1263
- O(S.$slots, "tooltip", {}, () => [
1264
- B("div", {
1264
+ fn: E(() => [
1265
+ D(C.$slots, "tooltip", {}, () => [
1266
+ N("div", {
1265
1267
  innerHTML: o(c).labelAttributes.info
1266
1268
  }, null, 8, Ta)
1267
1269
  ], !0)
@@ -1269,63 +1271,63 @@ const _e = /* @__PURE__ */ N({
1269
1271
  key: "0"
1270
1272
  } : void 0
1271
1273
  ]), 1040, ["data-testid", "tooltip-attributes"]),
1272
- e.appearance === "tabs" ? (w(), q(G, {
1274
+ e.appearance === "tabs" ? (_(), q(G, {
1273
1275
  key: 0,
1274
1276
  appearance: "tertiary",
1275
1277
  "aria-label": p.value,
1276
1278
  "data-testid": `ff-add-item-btn-${i.path.value}`,
1277
1279
  icon: "",
1278
- onClick: _
1280
+ onClick: b
1279
1281
  }, {
1280
- default: K(() => [
1281
- V(o($e))
1282
+ default: E(() => [
1283
+ R(o($e))
1282
1284
  ]),
1283
1285
  _: 1
1284
- }, 8, ["aria-label", "data-testid"])) : z("", !0)
1285
- ], 8, Ia)) : z("", !0),
1286
- v.value !== "tabs" ? (w(), $(te, { key: 1 }, [
1287
- B("div", {
1286
+ }, 8, ["aria-label", "data-testid"])) : H("", !0)
1287
+ ], 8, Ia)) : H("", !0),
1288
+ v.value !== "tabs" ? (_(), j(te, { key: 1 }, [
1289
+ N("div", {
1288
1290
  class: "ff-array-field-container",
1289
1291
  "data-testid": `ff-array-basic-container-${i.path.value}`
1290
1292
  }, [
1291
- (w(!0), $(te, null, re(u.value, (ue, F) => (w(), q(o(T), {
1292
- key: o(g)(ue, F),
1293
+ (_(!0), j(te, null, se(u.value, (ue, U) => (_(), q(o(T), {
1294
+ key: o(g)(ue, U),
1293
1295
  class: Se(["ff-array-field-item", { "ff-array-field-item-card": v.value === "card" }]),
1294
- "data-index": F,
1295
- "data-testid": `ff-array-item-${i.path.value}.${F}`
1296
+ "data-index": U,
1297
+ "data-testid": `ff-array-item-${i.path.value}.${U}`
1296
1298
  }, {
1297
- default: K(() => [
1298
- B("div", La, [
1299
- S.$slots.item ? O(S.$slots, "item", {
1299
+ default: E(() => [
1300
+ N("div", La, [
1301
+ C.$slots.item ? D(C.$slots, "item", {
1300
1302
  autofocus: !0,
1301
- fieldName: String(F),
1302
- index: F
1303
- }, void 0, !0, 0) : h.value.type === "array" && h.value.elements.type === "string" ? (w(), q(gt, {
1303
+ fieldName: String(U),
1304
+ index: U
1305
+ }, void 0, !0, 0) : h.value.type === "array" && h.value.elements.type === "string" ? (_(), q(gt, {
1304
1306
  key: 1,
1305
1307
  autofocus: "",
1306
1308
  help: o(s)("plugins.free-form.tag_helper"),
1307
- name: String(F)
1308
- }, null, 8, ["help", "name"])) : (w(), q(ye, {
1309
+ name: String(U)
1310
+ }, null, 8, ["help", "name"])) : (_(), q(ye, {
1309
1311
  key: 2,
1310
1312
  autofocus: "",
1311
- name: String(F)
1313
+ name: String(U)
1312
1314
  }, null, 8, ["name"]))
1313
1315
  ]),
1314
- V(yt, {
1316
+ R(yt, {
1315
1317
  class: "ff-array-field-item-remove-tooltip",
1316
1318
  text: o(s)("actions.remove_entity", { entity: m.value })
1317
1319
  }, {
1318
- default: K(() => [
1319
- V(G, {
1320
+ default: E(() => [
1321
+ R(G, {
1320
1322
  appearance: "tertiary",
1321
1323
  "aria-label": o(s)("actions.remove_entity", { entity: m.value }),
1322
1324
  class: "ff-array-field-item-remove",
1323
- "data-testid": `ff-array-remove-item-btn-${i.path.value}.${F}`,
1325
+ "data-testid": `ff-array-remove-item-btn-${i.path.value}.${U}`,
1324
1326
  icon: "",
1325
- onClick: Ie((bt) => C(F), ["stop"])
1327
+ onClick: Ie((bt) => k(U), ["stop"])
1326
1328
  }, {
1327
- default: K(() => [
1328
- V(o(rt))
1329
+ default: E(() => [
1330
+ R(o(rt))
1329
1331
  ]),
1330
1332
  _: 1
1331
1333
  }, 8, ["aria-label", "data-testid", "onClick"])
@@ -1336,64 +1338,64 @@ const _e = /* @__PURE__ */ N({
1336
1338
  _: 2
1337
1339
  }, 1032, ["class", "data-index", "data-testid"]))), 128))
1338
1340
  ], 8, Pa),
1339
- V(G, {
1341
+ R(G, {
1340
1342
  appearance: "tertiary",
1341
1343
  "aria-label": p.value,
1342
1344
  class: "ff-array-field-add-item-btn",
1343
1345
  "data-testid": `ff-add-item-btn-${i.path.value}`,
1344
- onClick: _
1346
+ onClick: b
1345
1347
  }, {
1346
- default: K(() => [
1347
- V(o($e)),
1348
+ default: E(() => [
1349
+ R(o($e)),
1348
1350
  pe(" " + de(p.value), 1)
1349
1351
  ]),
1350
1352
  _: 1
1351
1353
  }, 8, ["aria-label", "data-testid"])
1352
- ], 64)) : u.value.length ? (w(), q(o(Re), {
1354
+ ], 64)) : u.value.length ? (_(), q(o(Re), {
1353
1355
  key: 2,
1354
1356
  "data-testid": `ff-array-tab-container-${i.path.value}`
1355
1357
  }, {
1356
- default: K(() => [
1357
- V(vt, {
1358
- modelValue: k.value,
1359
- "onUpdate:modelValue": b[0] || (b[0] = (ue) => k.value = ue),
1358
+ default: E(() => [
1359
+ R(vt, {
1360
+ modelValue: A.value,
1361
+ "onUpdate:modelValue": I[0] || (I[0] = (ue) => A.value = ue),
1360
1362
  "data-testid": `ff-array-tabs-${i.path.value}`,
1361
1363
  tabs: y.value
1362
1364
  }, Y({ _: 2 }, [
1363
- re(u.value, (ue, F) => ({
1364
- name: o(g)(ue, F),
1365
- fn: K(() => [
1366
- B("div", {
1365
+ se(u.value, (ue, U) => ({
1366
+ name: o(g)(ue, U),
1367
+ fn: E(() => [
1368
+ N("div", {
1367
1369
  class: "ff-array-field-item",
1368
- "data-index": F,
1369
- "data-testid": `ff-array-item-${i.path.value}.${F}`
1370
+ "data-index": U,
1371
+ "data-testid": `ff-array-item-${i.path.value}.${U}`
1370
1372
  }, [
1371
- S.$slots.item ? O(S.$slots, "item", {
1373
+ C.$slots.item ? D(C.$slots, "item", {
1372
1374
  autofocus: !0,
1373
- fieldName: String(F),
1374
- index: F
1375
- }, void 0, !0, 0) : (w(), q(ye, {
1375
+ fieldName: String(U),
1376
+ index: U
1377
+ }, void 0, !0, 0) : (_(), q(ye, {
1376
1378
  key: 1,
1377
1379
  autofocus: "",
1378
- name: String(F)
1380
+ name: String(U)
1379
1381
  }, null, 8, ["name"]))
1380
1382
  ], 8, qa)
1381
1383
  ])
1382
1384
  })),
1383
- re(u.value, (ue, F) => ({
1384
- name: `${o(g)(ue, F)}-anchor`,
1385
- fn: K(() => [
1386
- pe(de(L(ue, F)) + " ", 1),
1387
- V(G, {
1385
+ se(u.value, (ue, U) => ({
1386
+ name: `${o(g)(ue, U)}-anchor`,
1387
+ fn: E(() => [
1388
+ pe(de(L(ue, U)) + " ", 1),
1389
+ R(G, {
1388
1390
  appearance: "tertiary",
1389
1391
  "aria-label": o(s)("actions.remove_entity", { entity: m.value }),
1390
1392
  class: "ff-array-field-item-remove",
1391
- "data-testid": `ff-array-remove-item-btn-${i.path.value}.${F}`,
1393
+ "data-testid": `ff-array-remove-item-btn-${i.path.value}.${U}`,
1392
1394
  icon: "",
1393
- onClick: Ie((bt) => C(F), ["stop"])
1395
+ onClick: Ie((bt) => k(U), ["stop"])
1394
1396
  }, {
1395
- default: K(() => [
1396
- V(o(Dt))
1397
+ default: E(() => [
1398
+ R(o(Dt))
1397
1399
  ]),
1398
1400
  _: 1
1399
1401
  }, 8, ["aria-label", "data-testid", "onClick"])
@@ -1402,13 +1404,13 @@ const _e = /* @__PURE__ */ N({
1402
1404
  ]), 1032, ["modelValue", "data-testid", "tabs"])
1403
1405
  ]),
1404
1406
  _: 3
1405
- }, 8, ["data-testid"])) : z("", !0)
1407
+ }, 8, ["data-testid"])) : H("", !0)
1406
1408
  ], 10, Sa)), [
1407
1409
  [Q, !o(f)]
1408
1410
  ]);
1409
1411
  };
1410
1412
  }
1411
- }), Ka = /* @__PURE__ */ J(xa, [["__scopeId", "data-v-6f244a39"]]), Ma = /* @__PURE__ */ N({
1413
+ }), Ka = /* @__PURE__ */ J(xa, [["__scopeId", "data-v-6f244a39"]]), Ma = /* @__PURE__ */ z({
1412
1414
  __name: "SlideTransition",
1413
1415
  setup(e) {
1414
1416
  const r = [
@@ -1464,7 +1466,7 @@ const _e = /* @__PURE__ */ N({
1464
1466
  function h(m) {
1465
1467
  a(m);
1466
1468
  }
1467
- return (m, p) => (w(), q(kt, {
1469
+ return (m, p) => (_(), q(kt, {
1468
1470
  "enter-active-class": "ff-slide-active",
1469
1471
  "leave-active-class": "ff-slide-active",
1470
1472
  onAfterEnter: f,
@@ -1474,20 +1476,20 @@ const _e = /* @__PURE__ */ N({
1474
1476
  onEnter: l,
1475
1477
  onLeave: c
1476
1478
  }, {
1477
- default: K(() => [
1478
- O(m.$slots, "default", {}, void 0, !0)
1479
+ default: E(() => [
1480
+ D(m.$slots, "default", {}, void 0, !0)
1479
1481
  ]),
1480
1482
  _: 3
1481
1483
  }));
1482
1484
  }
1483
- }), Ea = /* @__PURE__ */ J(Ma, [["__scopeId", "data-v-4969409d"]]), Va = { class: "ff-entity-checks-list" }, Ra = /* @__PURE__ */ N({
1485
+ }), Ea = /* @__PURE__ */ J(Ma, [["__scopeId", "data-v-4969409d"]]), Va = { class: "ff-entity-checks-list" }, Ra = /* @__PURE__ */ z({
1484
1486
  __name: "EntityChecksAlert",
1485
1487
  props: {
1486
1488
  entityChecks: {},
1487
1489
  visibleFields: {}
1488
1490
  },
1489
1491
  setup(e) {
1490
- const { i18n: { t: r } } = be(), t = A(() => {
1492
+ const { i18n: { t: r } } = be(), t = w(() => {
1491
1493
  if (!Array.isArray(e.entityChecks) || e.entityChecks.length === 0)
1492
1494
  return null;
1493
1495
  const a = [], d = [
@@ -1516,27 +1518,27 @@ const _e = /* @__PURE__ */ N({
1516
1518
  return Array.isArray(e.visibleFields) ? a.filter((d) => e.visibleFields.includes(d.split(".")[0])) : a;
1517
1519
  }
1518
1520
  return (a, d) => {
1519
- const l = U("KAlert");
1520
- return t.value ? (w(), q(l, {
1521
+ const l = B("KAlert");
1522
+ return t.value ? (_(), q(l, {
1521
1523
  key: 0,
1522
1524
  "data-testid": "ff-entity-checks-alert"
1523
1525
  }, {
1524
- default: K(() => [
1525
- B("ul", Va, [
1526
- (w(!0), $(te, null, re(t.value, (f) => (w(), $("li", {
1526
+ default: E(() => [
1527
+ N("ul", Va, [
1528
+ (_(!0), j(te, null, se(t.value, (f) => (_(), j("li", {
1527
1529
  key: f,
1528
1530
  "data-testid": "ff-entity-check-item"
1529
1531
  }, de(f), 1))), 128))
1530
1532
  ])
1531
1533
  ]),
1532
1534
  _: 1
1533
- })) : z("", !0);
1535
+ })) : H("", !0);
1534
1536
  };
1535
1537
  }
1536
1538
  }), Ye = /* @__PURE__ */ J(Ra, [["__scopeId", "data-v-374c59bc"]]), $a = ["data-testid"], ja = ["data-testid"], Oa = ["data-testid"], Da = { class: "ff-object-field-header-toggle" }, Fa = ["aria-controls", "aria-expanded", "aria-label", "data-testid", "disabled"], Ua = ["innerHTML"], Ba = ["data-testid"], Na = {
1537
1539
  key: 0,
1538
1540
  class: "indent-guide"
1539
- }, za = /* @__PURE__ */ N({
1541
+ }, za = /* @__PURE__ */ z({
1540
1542
  inheritAttrs: !1,
1541
1543
  __name: "ObjectField",
1542
1544
  props: /* @__PURE__ */ Ve({
@@ -1562,81 +1564,81 @@ const _e = /* @__PURE__ */ N({
1562
1564
  }),
1563
1565
  emits: ["update:added", "update:expanded"],
1564
1566
  setup(e) {
1565
- const r = Ct(), t = le(e, ["defaultAdded", "collapsible", "omit", "required", "asChild", "resetLabelPath", "fieldsOrder"]), { value: n, hide: s, ...a } = Z(j(t, "name")), {
1567
+ const r = Ct(), t = le(e, ["defaultAdded", "collapsible", "omit", "required", "asChild", "resetLabelPath", "fieldsOrder"]), { value: n, hide: s, ...a } = Z(O(t, "name")), {
1566
1568
  getSchema: d,
1567
1569
  getDefault: l,
1568
1570
  useCurrentRenderRules: f
1569
1571
  } = ne(), i = f({
1570
1572
  fieldPath: a.path,
1571
- rules: j(t, "renderRules"),
1572
- omittedFields: j(() => e.omit)
1573
- }), c = Ee(e, "added"), h = Ee(e, "expanded"), m = A(() => {
1573
+ rules: O(t, "renderRules"),
1574
+ omittedFields: O(() => e.omit)
1575
+ }), c = Ee(e, "added"), h = Ee(e, "expanded"), m = w(() => {
1574
1576
  if (a.ancestors?.value) {
1575
- const _ = a.ancestors.value.parent;
1576
- if (_?.path)
1577
- return d(_.path)?.type === "array";
1577
+ const b = a.ancestors.value.parent;
1578
+ if (b?.path)
1579
+ return d(b.path)?.type === "array";
1578
1580
  }
1579
1581
  return !1;
1580
- }), p = A(() => {
1582
+ }), p = w(() => {
1581
1583
  if (a.ancestors?.value) {
1582
- const _ = a.ancestors.value.parent;
1583
- if (_?.path)
1584
- return d(_.path)?.type === "map";
1584
+ const b = a.ancestors.value.parent;
1585
+ if (b?.path)
1586
+ return d(b.path)?.type === "map";
1585
1587
  }
1586
1588
  return !1;
1587
- }), u = ie(a.path, { required: e.required, ...t, resetLabelPath: e.resetLabelPath }), g = A(() => u.value.required ? !0 : c.value ?? e.defaultAdded), v = A(() => e.asChild !== void 0 ? e.asChild : m.value), T = A(() => {
1588
- let _ = a.schema.value.fields;
1589
- return e.omit && (_ = _.filter((C) => !e.omit.includes(Object.keys(C)[0]))), e.fieldsOrder ? lt(_, e.fieldsOrder) : (i.value?.bundles && (_ = ut([..._], i.value.bundles)), _);
1590
- }), L = A(() => T.value.map((_) => Object.keys(_)[0]));
1589
+ }), u = ie(a.path, { required: e.required, ...t, resetLabelPath: e.resetLabelPath }), g = w(() => u.value.required ? !0 : c.value ?? e.defaultAdded), v = w(() => e.asChild !== void 0 ? e.asChild : m.value), T = w(() => {
1590
+ let b = a.schema.value.fields;
1591
+ return e.omit && (b = b.filter((k) => !e.omit.includes(Object.keys(k)[0]))), e.fieldsOrder ? lt(b, e.fieldsOrder) : (i.value?.bundles && (b = ut([...b], i.value.bundles)), b);
1592
+ }), L = w(() => T.value.map((b) => Object.keys(b)[0]));
1591
1593
  function y() {
1592
1594
  h.value = !h.value;
1593
1595
  }
1594
- function k() {
1596
+ function A() {
1595
1597
  c.value ? n.value = l(a.path.value) : n.value = a.emptyValue.value;
1596
1598
  }
1597
- return ae(g, (_) => {
1598
- e.collapsible && (h.value = _);
1599
+ return ae(g, (b) => {
1600
+ e.collapsible && (h.value = b);
1599
1601
  }), St(() => {
1600
1602
  if (a.error || !n) return;
1601
- const _ = n.value != null;
1602
- c.value = _, (u.value.required || _) && (h.value = !0);
1603
- }), (_, C) => {
1604
- const I = U("KAlert"), M = U("KInputSwitch");
1605
- return w(), $(te, null, [
1606
- (w(), q(oe(_.$slots[o(ke)]))),
1607
- a.error ? (w(), q(I, {
1603
+ const b = n.value != null;
1604
+ c.value = b, (u.value.required || b) && (h.value = !0);
1605
+ }), (b, k) => {
1606
+ const S = B("KAlert"), M = B("KInputSwitch");
1607
+ return _(), j(te, null, [
1608
+ (_(), q(oe(b.$slots[o(ke)]))),
1609
+ a.error ? (_(), q(S, {
1608
1610
  key: 0,
1609
1611
  appearance: "danger",
1610
1612
  message: a.error.message
1611
- }, null, 8, ["message"])) : v.value ? X((w(), $("div", H({
1613
+ }, null, 8, ["message"])) : v.value ? X((_(), j("div", W({
1612
1614
  key: 1,
1613
1615
  class: "ff-object-field ff-object-field-as-child"
1614
- }, _.$attrs, {
1616
+ }, b.$attrs, {
1615
1617
  "data-testid": `ff-object-${a.path.value}`
1616
1618
  }), [
1617
- O(_.$slots, "default", {}, () => [
1618
- V(Ye, {
1619
+ D(b.$slots, "default", {}, () => [
1620
+ R(Ye, {
1619
1621
  "entity-checks": a.schema.value?.entity_checks,
1620
1622
  "visible-fields": L.value
1621
1623
  }, null, 8, ["entity-checks", "visible-fields"]),
1622
- (w(!0), $(te, null, re(T.value, (P) => (w(), q(ye, {
1624
+ (_(!0), j(te, null, se(T.value, (P) => (_(), q(ye, {
1623
1625
  key: Object.keys(P)[0],
1624
1626
  name: Object.keys(P)[0]
1625
1627
  }, null, 8, ["name"]))), 128))
1626
1628
  ], !0)
1627
1629
  ], 16, $a)), [
1628
1630
  [Q, !o(s)]
1629
- ]) : X((w(), $("div", H({
1631
+ ]) : X((_(), j("div", W({
1630
1632
  key: 2,
1631
1633
  class: ["ff-object-field", { "ff-object-field-collapsed": !h.value }],
1632
1634
  "data-testid": `ff-object-${a.path.value}`
1633
- }, _.$attrs), [
1634
- B("header", {
1635
+ }, b.$attrs), [
1636
+ N("header", {
1635
1637
  class: "ff-object-field-header",
1636
1638
  "data-testid": `ff-object-header-${a.path.value}`
1637
1639
  }, [
1638
- B("div", Da, [
1639
- B("button", {
1640
+ N("div", Da, [
1641
+ N("button", {
1640
1642
  "aria-controls": o(r),
1641
1643
  "aria-expanded": h.value,
1642
1644
  "aria-label": o(u).label,
@@ -1646,14 +1648,14 @@ const _e = /* @__PURE__ */ N({
1646
1648
  type: "button",
1647
1649
  onClick: Ie(y, ["prevent", "stop"])
1648
1650
  }, [
1649
- V(o(Ft), {
1651
+ R(o(Ft), {
1650
1652
  class: Se(["ff-object-field-toggle-btn-trigger-icon", { "collapse-expanded": h.value }]),
1651
1653
  "data-testid": `ff-object-toggle-trigger-icon-${a.path.value}`,
1652
1654
  decorative: "",
1653
1655
  size: `var(--kui-icon-size-30, ${o(Ut)})`
1654
1656
  }, null, 8, ["class", "data-testid", "size"])
1655
1657
  ], 8, Fa),
1656
- p.value ? z("", !0) : (w(), q(o(xt), H({
1658
+ p.value ? H("", !0) : (_(), q(o(xt), W({
1657
1659
  key: 0,
1658
1660
  class: "ff-object-field-label",
1659
1661
  "data-testid": `ff-label-${a.path.value}`
@@ -1663,16 +1665,16 @@ const _e = /* @__PURE__ */ N({
1663
1665
  }, {
1664
1666
  "tooltip-attributes": o(u).labelAttributes.tooltipAttributes
1665
1667
  }), Y({
1666
- default: K(() => [
1668
+ default: E(() => [
1667
1669
  pe(de(o(u).label) + " ", 1)
1668
1670
  ]),
1669
1671
  _: 2
1670
1672
  }, [
1671
1673
  o(u).labelAttributes?.info ? {
1672
1674
  name: "tooltip",
1673
- fn: K(() => [
1674
- O(_.$slots, "tooltip", {}, () => [
1675
- B("div", {
1675
+ fn: E(() => [
1676
+ D(b.$slots, "tooltip", {}, () => [
1677
+ N("div", {
1676
1678
  innerHTML: o(u).labelAttributes.info
1677
1679
  }, null, 8, Ua)
1678
1680
  ], !0)
@@ -1681,37 +1683,37 @@ const _e = /* @__PURE__ */ N({
1681
1683
  } : void 0
1682
1684
  ]), 1040, ["data-testid", "tooltip-attributes"]))
1683
1685
  ]),
1684
- o(u).required ? z("", !0) : (w(), q(M, {
1686
+ o(u).required ? H("", !0) : (_(), q(M, {
1685
1687
  key: 0,
1686
1688
  "data-testid": `ff-object-switch-${a.path.value}`,
1687
1689
  "model-value": c.value,
1688
- "onUpdate:modelValue": C[0] || (C[0] = (P) => {
1689
- c.value = P, k();
1690
+ "onUpdate:modelValue": k[0] || (k[0] = (P) => {
1691
+ c.value = P, A();
1690
1692
  })
1691
1693
  }, null, 8, ["data-testid", "model-value"]))
1692
1694
  ], 8, Oa),
1693
- V(Ea, null, {
1694
- default: K(() => [
1695
- h.value ? (w(), $("div", {
1695
+ R(Ea, null, {
1696
+ default: E(() => [
1697
+ h.value ? (_(), j("div", {
1696
1698
  key: 0,
1697
1699
  class: "ff-object-field-content",
1698
1700
  "data-testid": `ff-object-content-${a.path.value}`
1699
1701
  }, [
1700
- O(_.$slots, "default", {}, () => [
1701
- V(Ye, {
1702
+ D(b.$slots, "default", {}, () => [
1703
+ R(Ye, {
1702
1704
  "entity-checks": a.schema.value?.entity_checks,
1703
1705
  "visible-fields": L.value
1704
1706
  }, null, 8, ["entity-checks", "visible-fields"]),
1705
- (w(!0), $(te, null, re(T.value, (P) => (w(), q(ye, {
1707
+ (_(!0), j(te, null, se(T.value, (P) => (_(), q(ye, {
1706
1708
  key: Object.keys(P)[0],
1707
1709
  name: Object.keys(P)[0]
1708
1710
  }, null, 8, ["name"]))), 128))
1709
1711
  ], !0)
1710
- ], 8, Ba)) : z("", !0)
1712
+ ], 8, Ba)) : H("", !0)
1711
1713
  ]),
1712
1714
  _: 3
1713
1715
  }),
1714
- h.value ? (w(), $("div", Na)) : z("", !0)
1716
+ h.value ? (_(), j("div", Na)) : H("", !0)
1715
1717
  ], 16, ja)), [
1716
1718
  [Q, !o(s)]
1717
1719
  ])
@@ -1721,7 +1723,7 @@ const _e = /* @__PURE__ */ N({
1721
1723
  }), Ha = /* @__PURE__ */ J(za, [["__scopeId", "data-v-775d406c"]]), Wa = {
1722
1724
  key: 1,
1723
1725
  class: "ff-number-field-wrapper"
1724
- }, Ja = ["innerHTML"], Ga = /* @__PURE__ */ N({
1726
+ }, Ja = ["innerHTML"], Ga = /* @__PURE__ */ z({
1725
1727
  __name: "NumberField",
1726
1728
  props: {
1727
1729
  showVaultSecretPicker: { type: Boolean, default: () => {
@@ -1743,16 +1745,16 @@ const _e = /* @__PURE__ */ N({
1743
1745
  },
1744
1746
  emits: ["update:modelValue"],
1745
1747
  setup(e, { emit: r }) {
1746
- const t = le(e, ["autofocus", "showVaultSecretPicker", "name"]), { value: n, hide: s, ...a } = Z(j(() => e.name)), d = ie(a.path, t), { i18n: l } = be(), f = A(() => {
1748
+ const t = le(e, ["autofocus", "showVaultSecretPicker", "name"]), { value: n, hide: s, ...a } = Z(O(() => e.name)), d = ie(a.path, t), { i18n: l } = be(), f = w(() => {
1747
1749
  const L = a.schema?.value;
1748
1750
  if (typeof L.gt == "number")
1749
1751
  return { min: L.type === "integer" ? L.gt + 1 : L.gt };
1750
- const [y, k] = L.between ?? [];
1752
+ const [y, A] = L.between ?? [];
1751
1753
  return {
1752
1754
  min: t.min ?? y,
1753
- max: t.max ?? k
1755
+ max: t.max ?? A
1754
1756
  };
1755
- }), i = r, c = n.value, h = A(() => {
1757
+ }), i = r, c = n.value, h = w(() => {
1756
1758
  const L = n?.value;
1757
1759
  if (L == null || L === "") return "";
1758
1760
  if (v.value) return `${L}`;
@@ -1767,18 +1769,18 @@ const _e = /* @__PURE__ */ N({
1767
1769
  if (L === "") return a.emptyValue.value;
1768
1770
  const y = L.trim();
1769
1771
  if (y === "") return a.emptyValue.value;
1770
- const k = Number(y);
1771
- return Number.isFinite(k) ? k : v.value ? L : a.emptyValue.value;
1772
+ const A = Number(y);
1773
+ return Number.isFinite(A) ? A : v.value ? L : a.emptyValue.value;
1772
1774
  }
1773
- const u = ge(nt, void 0), g = A(() => ({ referenceable: v.value })), v = A(() => e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!a.schema.value?.referenceable), T = A(() => v.value ? "text" : "number");
1775
+ const u = ge(nt, void 0), g = w(() => ({ referenceable: v.value })), v = w(() => e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!a.schema.value?.referenceable), T = w(() => v.value ? "text" : "number");
1774
1776
  return (L, y) => {
1775
- const k = U("KAlert");
1776
- return a.error ? (w(), q(k, {
1777
+ const A = B("KAlert");
1778
+ return a.error ? (_(), q(A, {
1777
1779
  key: 0,
1778
1780
  appearance: "danger",
1779
1781
  message: a.error.message
1780
- }, null, 8, ["message"])) : X((w(), $("div", Wa, [
1781
- V(_e, H({ class: "ff-number-field" }, {
1782
+ }, null, 8, ["message"])) : X((_(), j("div", Wa, [
1783
+ R(_e, W({ class: "ff-number-field" }, {
1782
1784
  ...o(d),
1783
1785
  min: f.value.min,
1784
1786
  max: f.value.max
@@ -1791,9 +1793,9 @@ const _e = /* @__PURE__ */ N({
1791
1793
  }), Y({ _: 2 }, [
1792
1794
  o(d).labelAttributes?.info ? {
1793
1795
  name: "label-tooltip",
1794
- fn: K(() => [
1795
- O(L.$slots, "tooltip", {}, () => [
1796
- B("div", {
1796
+ fn: E(() => [
1797
+ D(L.$slots, "tooltip", {}, () => [
1798
+ N("div", {
1797
1799
  innerHTML: o(d).labelAttributes.info
1798
1800
  }, null, 8, Ja)
1799
1801
  ], !0)
@@ -1801,24 +1803,24 @@ const _e = /* @__PURE__ */ N({
1801
1803
  key: "0"
1802
1804
  } : void 0
1803
1805
  ]), 1040, ["data-autofocus", "data-testid", "model-value", "type"]),
1804
- o(u) && v.value ? (w(), q(oe(o(u)), {
1806
+ o(u) && v.value ? (_(), q(oe(o(u)), {
1805
1807
  key: 0,
1806
1808
  schema: g.value,
1807
1809
  update: m,
1808
1810
  value: o(n) ?? ""
1809
- }, null, 8, ["schema", "value"])) : z("", !0),
1810
- v.value && !o(u) ? (w(), q(k, {
1811
+ }, null, 8, ["schema", "value"])) : H("", !0),
1812
+ v.value && !o(u) ? (_(), q(A, {
1811
1813
  key: 1,
1812
1814
  appearance: "warning",
1813
1815
  "data-testid": `ff-vault-secret-picker-warning-${a.path.value}`,
1814
1816
  message: o(l).t("plugins.free-form.vault_picker.component_error")
1815
- }, null, 8, ["data-testid", "message"])) : z("", !0)
1817
+ }, null, 8, ["data-testid", "message"])) : H("", !0)
1816
1818
  ], 512)), [
1817
1819
  [Q, !o(s)]
1818
1820
  ]);
1819
1821
  };
1820
1822
  }
1821
- }), Ya = /* @__PURE__ */ J(Ga, [["__scopeId", "data-v-ba8e04d8"]]), Xa = ["innerHTML"], Qa = /* @__PURE__ */ N({
1823
+ }), Ya = /* @__PURE__ */ J(Ga, [["__scopeId", "data-v-ba8e04d8"]]), Xa = ["innerHTML"], Qa = /* @__PURE__ */ z({
1822
1824
  __name: "EnumField",
1823
1825
  props: /* @__PURE__ */ Ve({
1824
1826
  labelAttributes: {},
@@ -1858,7 +1860,7 @@ const _e = /* @__PURE__ */ N({
1858
1860
  emits: /* @__PURE__ */ Ve(["update"], ["update:modelValue"]),
1859
1861
  setup(e, { emit: r }) {
1860
1862
  const t = r, n = le(e, ["name", "items", "multiple", "autofocus"]), { getSelectItems: s } = ne(), { value: a, hide: d, ...l } = Z(
1861
- j(() => e.name)
1863
+ O(() => e.name)
1862
1864
  ), f = ie(l.path, n);
1863
1865
  function i(u) {
1864
1866
  if (f.value.required) return u;
@@ -1871,14 +1873,14 @@ const _e = /* @__PURE__ */ N({
1871
1873
  set: (u) => {
1872
1874
  a.value = i(u);
1873
1875
  }
1874
- }), h = A(() => e.items ? e.items : l.path ? s(l.path.value) : []), m = A(() => e.multiple !== void 0 ? e.multiple : l.schema.value?.type === "set"), p = A(() => m.value ? Kt : Mt);
1876
+ }), h = w(() => e.items ? e.items : l.path ? s(l.path.value) : []), m = w(() => e.multiple !== void 0 ? e.multiple : l.schema.value?.type === "set"), p = w(() => m.value ? Kt : Mt);
1875
1877
  return (u, g) => {
1876
- const v = U("KAlert");
1877
- return l.error ? (w(), q(v, {
1878
+ const v = B("KAlert");
1879
+ return l.error ? (_(), q(v, {
1878
1880
  key: 0,
1879
1881
  appearance: "danger",
1880
1882
  message: l.error.message
1881
- }, null, 8, ["message"])) : X((w(), q(o(p), H({ key: 1 }, { ...n, ...o(f) }, {
1883
+ }, null, 8, ["message"])) : X((_(), q(o(p), W({ key: 1 }, { ...n, ...o(f) }, {
1882
1884
  modelValue: c.value,
1883
1885
  "onUpdate:modelValue": [
1884
1886
  g[0] || (g[0] = (T) => c.value = T),
@@ -1893,9 +1895,9 @@ const _e = /* @__PURE__ */ N({
1893
1895
  }), Y({ _: 2 }, [
1894
1896
  "tooltip" in u.$slots || o(f).labelAttributes?.info ? {
1895
1897
  name: "label-tooltip",
1896
- fn: K(() => [
1897
- O(u.$slots, "tooltip", {}, () => [
1898
- B("div", {
1898
+ fn: E(() => [
1899
+ D(u.$slots, "tooltip", {}, () => [
1900
+ N("div", {
1899
1901
  innerHTML: o(f).labelAttributes.info
1900
1902
  }, null, 8, Xa)
1901
1903
  ], !0)
@@ -1904,15 +1906,15 @@ const _e = /* @__PURE__ */ N({
1904
1906
  } : void 0,
1905
1907
  u.$slots["item-label"] ? {
1906
1908
  name: "item-template",
1907
- fn: K(({ item: T }) => [
1908
- O(u.$slots, "item-label", Fe(Ze(T)), void 0, !0)
1909
+ fn: E(({ item: T }) => [
1910
+ D(u.$slots, "item-label", Fe(Ze(T)), void 0, !0)
1909
1911
  ]),
1910
1912
  key: "1"
1911
1913
  } : void 0,
1912
1914
  u.$slots["dropdown-footer-text"] ? {
1913
1915
  name: "dropdown-footer-text",
1914
- fn: K(() => [
1915
- O(u.$slots, "dropdown-footer-text", {}, void 0, !0)
1916
+ fn: E(() => [
1917
+ D(u.$slots, "dropdown-footer-text", {}, void 0, !0)
1916
1918
  ]),
1917
1919
  key: "2"
1918
1920
  } : void 0
@@ -1921,7 +1923,7 @@ const _e = /* @__PURE__ */ N({
1921
1923
  ]);
1922
1924
  };
1923
1925
  }
1924
- }), Ce = /* @__PURE__ */ J(Qa, [["__scopeId", "data-v-c8901fca"]]), Za = ["data-testid"], en = ["innerHTML"], tn = /* @__PURE__ */ N({
1926
+ }), Ce = /* @__PURE__ */ J(Qa, [["__scopeId", "data-v-c8901fca"]]), Za = ["data-testid"], en = ["innerHTML"], tn = /* @__PURE__ */ z({
1925
1927
  inheritAttrs: !1,
1926
1928
  __name: "JsonField",
1927
1929
  props: {
@@ -1931,7 +1933,7 @@ const _e = /* @__PURE__ */ N({
1931
1933
  },
1932
1934
  emits: ["update:modelValue"],
1933
1935
  setup(e, { emit: r }) {
1934
- const t = ve(), n = le(e, ["autofocus", "name"]), s = r, { value: a, hide: d, ...l } = Z(j(() => e.name)), f = ie(l.path, j({ ...n, ...t })), i = se("");
1936
+ const t = ve(), n = le(e, ["autofocus", "name"]), s = r, { value: a, hide: d, ...l } = Z(O(() => e.name)), f = ie(l.path, O({ ...n, ...t })), i = re("");
1935
1937
  function c(m) {
1936
1938
  i.value = m;
1937
1939
  let p = m === "" ? l.emptyValue.value : m;
@@ -1942,7 +1944,7 @@ const _e = /* @__PURE__ */ N({
1942
1944
  }
1943
1945
  a.value = p, s("update:modelValue", p);
1944
1946
  }
1945
- const h = A(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : me(e.name) === "name");
1947
+ const h = w(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : me(e.name) === "name");
1946
1948
  return ae(a, (m) => {
1947
1949
  if (m && typeof m == "object") {
1948
1950
  try {
@@ -1955,16 +1957,16 @@ const _e = /* @__PURE__ */ N({
1955
1957
  }
1956
1958
  i.value = m || "";
1957
1959
  }, { immediate: !0 }), (m, p) => {
1958
- const u = U("KAlert");
1959
- return l.error ? (w(), q(u, {
1960
+ const u = B("KAlert");
1961
+ return l.error ? (_(), q(u, {
1960
1962
  key: 0,
1961
1963
  appearance: "danger",
1962
1964
  message: l.error.message
1963
- }, null, 8, ["message"])) : X((w(), $("div", {
1965
+ }, null, 8, ["message"])) : X((_(), j("div", {
1964
1966
  key: 1,
1965
1967
  "data-testid": `ff-json-${l.path.value}`
1966
1968
  }, [
1967
- V(_e, H(o(f), {
1969
+ R(_e, W(o(f), {
1968
1970
  class: "ff-json-field",
1969
1971
  "data-1p-ignore": h.value,
1970
1972
  "data-autofocus": e.autofocus ? "true" : void 0,
@@ -1975,9 +1977,9 @@ const _e = /* @__PURE__ */ N({
1975
1977
  }), Y({ _: 2 }, [
1976
1978
  o(f).labelAttributes?.info ? {
1977
1979
  name: "label-tooltip",
1978
- fn: K(() => [
1979
- O(m.$slots, "tooltip", {}, () => [
1980
- B("div", {
1980
+ fn: E(() => [
1981
+ D(m.$slots, "tooltip", {}, () => [
1982
+ N("div", {
1981
1983
  innerHTML: o(f).labelAttributes.info
1982
1984
  }, null, 8, en)
1983
1985
  ], !0)
@@ -1990,7 +1992,7 @@ const _e = /* @__PURE__ */ N({
1990
1992
  ]);
1991
1993
  };
1992
1994
  }
1993
- }), an = /* @__PURE__ */ J(tn, [["__scopeId", "data-v-5614e8a5"]]), nn = ["innerHTML"], on = /* @__PURE__ */ N({
1995
+ }), an = /* @__PURE__ */ J(tn, [["__scopeId", "data-v-5614e8a5"]]), nn = ["innerHTML"], on = /* @__PURE__ */ z({
1994
1996
  inheritAttrs: !1,
1995
1997
  __name: "ForeignField",
1996
1998
  props: {
@@ -2009,15 +2011,15 @@ const _e = /* @__PURE__ */ N({
2009
2011
  },
2010
2012
  emits: ["update:modelValue"],
2011
2013
  setup(e, { emit: r }) {
2012
- const t = ve(), { i18n: { t: n } } = be(), s = le(e, ["autofocus", "name"]), a = r, { value: d, hide: l, ...f } = Z(j(() => e.name));
2014
+ const t = ve(), { i18n: { t: n } } = be(), s = le(e, ["autofocus", "name"]), a = r, { value: d, hide: l, ...f } = Z(O(() => e.name));
2013
2015
  if (f.error)
2014
2016
  throw new Error(f.error.message);
2015
- const i = ie(f.path, j({ ...s, ...t })), c = d.value ? d.value.id : null, h = A(() => i.value.placeholder ? i.value.placeholder : n("plugins.free-form.foreign_placeholder", { entity: f.schema.value?.reference ?? "entity" })), m = se(c ?? "");
2017
+ const i = ie(f.path, O({ ...s, ...t })), c = d.value ? d.value.id : null, h = w(() => i.value.placeholder ? i.value.placeholder : n("plugins.free-form.foreign_placeholder", { entity: f.schema.value?.reference ?? "entity" })), m = re(c ?? "");
2016
2018
  function p(g) {
2017
2019
  c !== void 0 && g === "" && g !== c ? (d.value = f.emptyValue.value, a("update:modelValue", f.emptyValue.value)) : (d.value = { id: g.trim() }, a("update:modelValue", d.value));
2018
2020
  }
2019
- const u = A(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : me(e.name) === "name");
2020
- return (g, v) => X((w(), q(_e, H(o(i), {
2021
+ const u = w(() => t["data-1p-ignore"] !== void 0 ? t["data-1p-ignore"] : me(e.name) === "name");
2022
+ return (g, v) => X((_(), q(_e, W(o(i), {
2021
2023
  class: "ff-foreign-field",
2022
2024
  "data-1p-ignore": u.value,
2023
2025
  "data-autofocus": e.autofocus ? "true" : void 0,
@@ -2031,9 +2033,9 @@ const _e = /* @__PURE__ */ N({
2031
2033
  }), Y({ _: 2 }, [
2032
2034
  o(i).labelAttributes?.info ? {
2033
2035
  name: "label-tooltip",
2034
- fn: K(() => [
2035
- O(g.$slots, "tooltip", {}, () => [
2036
- B("div", {
2036
+ fn: E(() => [
2037
+ D(g.$slots, "tooltip", {}, () => [
2038
+ N("div", {
2037
2039
  innerHTML: o(i).labelAttributes.info
2038
2040
  }, null, 8, nn)
2039
2041
  ], !0)
@@ -2044,7 +2046,7 @@ const _e = /* @__PURE__ */ N({
2044
2046
  [Q, !o(l)]
2045
2047
  ]);
2046
2048
  }
2047
- }), rn = /* @__PURE__ */ J(on, [["__scopeId", "data-v-bb4fc991"]]), sn = ["data-testid"], ln = ["data-testid"], un = ["innerHTML"], cn = { class: "ff-map-field-item-content" }, dn = { class: "ff-map-field-fields" }, pn = /* @__PURE__ */ N({
2049
+ }), rn = /* @__PURE__ */ J(on, [["__scopeId", "data-v-bb4fc991"]]), sn = ["data-testid"], ln = ["data-testid"], un = ["innerHTML"], cn = { class: "ff-map-field-item-content" }, dn = { class: "ff-map-field-fields" }, pn = /* @__PURE__ */ z({
2048
2050
  __name: "MapField",
2049
2051
  props: {
2050
2052
  keyPlaceholder: {},
@@ -2063,54 +2065,54 @@ const _e = /* @__PURE__ */ N({
2063
2065
  removeKey: f,
2064
2066
  field: i,
2065
2067
  fieldDisplayName: c
2066
- } = ma(j(n, "name"), _), h = ie(i.path, n), m = ["string", "number", "boolean", "integer", "foreign"], p = A(() => n.oneLine ? !0 : i.schema?.value?.type === "map" && m.includes(i.schema.value.values.type) && !n.appearance?.string?.multiline), u = A(() => i.schema?.value?.type === "map" ? i.schema.value.values : void 0), g = A(() => u.value?.type === "string" && !u.value?.one_of), v = A(() => p.value ? "div" : Re), T = et("root");
2067
- function L(C, I) {
2068
- n.appearance?.string?.multiline || (C.preventDefault(), I === a.value.length - 1 && l(), y(I + 1));
2068
+ } = ma(O(n, "name"), b), h = ie(i.path, n), m = ["string", "number", "boolean", "integer", "foreign"], p = w(() => n.oneLine ? !0 : i.schema?.value?.type === "map" && m.includes(i.schema.value.values.type) && !n.appearance?.string?.multiline), u = w(() => i.schema?.value?.type === "map" ? i.schema.value.values : void 0), g = w(() => u.value?.type === "string" && !u.value?.one_of), v = w(() => p.value ? "div" : Re), T = et("root");
2069
+ function L(k, S) {
2070
+ n.appearance?.string?.multiline || (k.preventDefault(), S === a.value.length - 1 && l(), y(S + 1));
2069
2071
  }
2070
- async function y(C) {
2071
- T.value && (await Me(), T.value.querySelector(`[data-key-input="${C}"]`)?.focus());
2072
+ async function y(k) {
2073
+ T.value && (await Me(), T.value.querySelector(`[data-key-input="${k}"]`)?.focus());
2072
2074
  }
2073
- function k() {
2075
+ function A() {
2074
2076
  l();
2075
- const C = a.value.findIndex(([I, M]) => !M);
2076
- y(C === -1 ? a.value.length - 1 : C);
2077
+ const k = a.value.findIndex(([S, M]) => !M);
2078
+ y(k === -1 ? a.value.length - 1 : k);
2077
2079
  }
2078
- function _(C) {
2079
- s("legacyValueChange", C);
2080
+ function b(k) {
2081
+ s("legacyValueChange", k);
2080
2082
  }
2081
- return (C, I) => {
2082
- const M = U("KAlert"), P = U("KLabel"), x = U("KButton"), S = U("KTooltip");
2083
- return o(i).error ? (w(), q(M, {
2083
+ return (k, S) => {
2084
+ const M = B("KAlert"), P = B("KLabel"), K = B("KButton"), C = B("KTooltip");
2085
+ return o(i).error ? (_(), q(M, {
2084
2086
  key: 0,
2085
2087
  appearance: "danger",
2086
2088
  message: o(i).error.message
2087
- }, null, 8, ["message"])) : X((w(), $("div", {
2089
+ }, null, 8, ["message"])) : X((_(), j("div", {
2088
2090
  key: 1,
2089
2091
  ref_key: "root",
2090
2092
  ref: T,
2091
2093
  class: "ff-map-field",
2092
2094
  "data-testid": `ff-map-${o(i).path.value}`
2093
2095
  }, [
2094
- o(h).label ? (w(), $("header", {
2096
+ o(h).label ? (_(), j("header", {
2095
2097
  key: 0,
2096
2098
  class: "ff-map-field-header",
2097
2099
  "data-testid": `ff-map-header-${o(i).path.value}`
2098
2100
  }, [
2099
- V(P, H({ class: "ff-map-field-label" }, o(h).labelAttributes, {
2101
+ R(P, W({ class: "ff-map-field-label" }, o(h).labelAttributes, {
2100
2102
  "data-testid": `ff-label-${o(i).path.value}`,
2101
2103
  required: o(h).required,
2102
2104
  "tooltip-attributes": o(h).labelAttributes.tooltipAttributes
2103
2105
  }), Y({
2104
- default: K(() => [
2106
+ default: E(() => [
2105
2107
  pe(de(o(h).label) + " ", 1)
2106
2108
  ]),
2107
2109
  _: 2
2108
2110
  }, [
2109
2111
  o(h).labelAttributes?.info ? {
2110
2112
  name: "tooltip",
2111
- fn: K(() => [
2112
- O(C.$slots, "tooltip", {}, () => [
2113
- B("div", {
2113
+ fn: E(() => [
2114
+ D(k.$slots, "tooltip", {}, () => [
2115
+ N("div", {
2114
2116
  innerHTML: o(h).labelAttributes.info
2115
2117
  }, null, 8, un)
2116
2118
  ], !0)
@@ -2118,53 +2120,53 @@ const _e = /* @__PURE__ */ N({
2118
2120
  key: "0"
2119
2121
  } : void 0
2120
2122
  ]), 1040, ["data-testid", "required", "tooltip-attributes"])
2121
- ], 8, ln)) : z("", !0),
2122
- (w(!0), $(te, null, re(o(a), ([b, D], W) => (w(), q(oe(v.value), {
2123
- key: b,
2123
+ ], 8, ln)) : H("", !0),
2124
+ (_(!0), j(te, null, se(o(a), ([I, x], F) => (_(), q(oe(v.value), {
2125
+ key: I,
2124
2126
  class: Se(["ff-map-field-item", {
2125
2127
  "ff-map-field-item-simple": p.value,
2126
2128
  "ff-map-field-item-complex": !p.value
2127
2129
  }]),
2128
- "data-testid": `ff-map-container-${o(i).path.value}.${W}`
2130
+ "data-testid": `ff-map-container-${o(i).path.value}.${F}`
2129
2131
  }, {
2130
- default: K(() => [
2131
- B("div", cn, [
2132
- B("div", dn, [
2133
- V(_e, {
2132
+ default: E(() => [
2133
+ N("div", cn, [
2134
+ N("div", dn, [
2135
+ R(_e, {
2134
2136
  class: "ff-map-field-fields-key",
2135
- "data-key-input": W,
2136
- "data-testid": `ff-map-key-${o(i).path.value}.${W}`,
2137
- "model-value": D,
2137
+ "data-key-input": F,
2138
+ "data-testid": `ff-map-key-${o(i).path.value}.${F}`,
2139
+ "model-value": x,
2138
2140
  placeholder: e.keyPlaceholder || "Key",
2139
- onKeydown: Ne(Ie((G) => y(W), ["prevent"]), ["enter"]),
2140
- "onUpdate:modelValue": (G) => o(d)(b, G)
2141
+ onKeydown: Ne(Ie((G) => y(F), ["prevent"]), ["enter"]),
2142
+ "onUpdate:modelValue": (G) => o(d)(I, G)
2141
2143
  }, null, 8, ["data-key-input", "data-testid", "model-value", "placeholder", "onKeydown", "onUpdate:modelValue"]),
2142
- O(C.$slots, "default", { keyId: b }, () => [
2143
- g.value ? (w(), q(ht, {
2144
+ D(k.$slots, "default", { keyId: I }, () => [
2145
+ g.value ? (_(), q(ht, {
2144
2146
  key: 0,
2145
2147
  "inline-vault-picker": "",
2146
2148
  multiline: e.appearance?.string?.multiline,
2147
- name: b,
2148
- onKeydown: Ne((G) => L(G, W), ["enter"])
2149
- }, null, 8, ["multiline", "name", "onKeydown"])) : (w(), q(ye, {
2149
+ name: I,
2150
+ onKeydown: Ne((G) => L(G, F), ["enter"])
2151
+ }, null, 8, ["multiline", "name", "onKeydown"])) : (_(), q(ye, {
2150
2152
  key: 1,
2151
- name: b
2153
+ name: I
2152
2154
  }, null, 8, ["name"]))
2153
2155
  ], !0)
2154
2156
  ]),
2155
- V(S, {
2157
+ R(C, {
2156
2158
  text: o(t).t("actions.remove_entity", { entity: o(c) })
2157
2159
  }, {
2158
- default: K(() => [
2159
- V(x, {
2160
+ default: E(() => [
2161
+ R(K, {
2160
2162
  appearance: "tertiary",
2161
2163
  "aria-label": o(t).t("actions.remove_entity", { entity: o(c) }),
2162
- "data-testid": `ff-map-remove-btn-${o(i).path.value}.${W}`,
2164
+ "data-testid": `ff-map-remove-btn-${o(i).path.value}.${F}`,
2163
2165
  icon: "",
2164
- onClick: (G) => o(f)(b)
2166
+ onClick: (G) => o(f)(I)
2165
2167
  }, {
2166
- default: K(() => [
2167
- V(o(rt))
2168
+ default: E(() => [
2169
+ R(o(rt))
2168
2170
  ]),
2169
2171
  _: 1
2170
2172
  }, 8, ["aria-label", "data-testid", "onClick"])
@@ -2175,15 +2177,15 @@ const _e = /* @__PURE__ */ N({
2175
2177
  ]),
2176
2178
  _: 2
2177
2179
  }, 1032, ["class", "data-testid"]))), 128)),
2178
- V(x, {
2180
+ R(K, {
2179
2181
  appearance: "tertiary",
2180
2182
  "aria-label": o(t).t("actions.add_entity", { entity: o(c) }),
2181
2183
  class: "ff-map-field-add-entry-btn",
2182
2184
  "data-testid": `ff-map-add-btn-${o(i).path.value}`,
2183
- onClick: k
2185
+ onClick: A
2184
2186
  }, {
2185
- default: K(() => [
2186
- V(o($e)),
2187
+ default: E(() => [
2188
+ R(o($e)),
2187
2189
  pe(" " + de(o(t).t("actions.add_entity", { entity: o(c) })), 1)
2188
2190
  ]),
2189
2191
  _: 1
@@ -2193,7 +2195,7 @@ const _e = /* @__PURE__ */ N({
2193
2195
  ]);
2194
2196
  };
2195
2197
  }
2196
- }), mn = /* @__PURE__ */ J(pn, [["__scopeId", "data-v-1431df84"]]), ye = /* @__PURE__ */ N({
2198
+ }), mn = /* @__PURE__ */ J(pn, [["__scopeId", "data-v-1431df84"]]), ye = /* @__PURE__ */ z({
2197
2199
  name: "AutoField",
2198
2200
  __name: "Field",
2199
2201
  props: {
@@ -2203,7 +2205,7 @@ const _e = /* @__PURE__ */ N({
2203
2205
  },
2204
2206
  emits: ["globalAction"],
2205
2207
  setup(e) {
2206
- const r = e, t = Z(j(r, "name")), n = A(() => {
2208
+ const r = e, t = Z(O(r, "name")), n = w(() => {
2207
2209
  switch (t.schema?.value?.type) {
2208
2210
  case "string":
2209
2211
  return "one_of" in t.schema.value ? Ce : ht;
@@ -2229,34 +2231,34 @@ const _e = /* @__PURE__ */ N({
2229
2231
  }
2230
2232
  });
2231
2233
  return (s, a) => {
2232
- const d = U("KAlert");
2233
- return w(), $(te, null, [
2234
- (w(), q(oe(s.$slots[o(ke)]))),
2235
- o(t).error ? (w(), q(d, {
2234
+ const d = B("KAlert");
2235
+ return _(), j(te, null, [
2236
+ (_(), q(oe(s.$slots[o(ke)]))),
2237
+ o(t).error ? (_(), q(d, {
2236
2238
  key: 0,
2237
2239
  appearance: "danger",
2238
2240
  message: o(t).error.message
2239
- }, null, 8, ["message"])) : o(t).renderer.value ? (w(), q(oe(o(t).renderer.value), {
2241
+ }, null, 8, ["message"])) : o(t).renderer.value ? (_(), q(oe(o(t).renderer.value), {
2240
2242
  key: 1,
2241
2243
  autofocus: r.autofocus,
2242
2244
  name: je(o(t).path.value),
2243
2245
  onGlobalAction: a[0] || (a[0] = (l, f) => s.$emit("globalAction", l, f))
2244
- }, null, 40, ["autofocus", "name"])) : (w(), $(te, { key: 2 }, [
2245
- n.value ? (w(), q(oe(n.value), {
2246
+ }, null, 40, ["autofocus", "name"])) : (_(), j(te, { key: 2 }, [
2247
+ n.value ? (_(), q(oe(n.value), {
2246
2248
  key: 0,
2247
2249
  autofocus: r.autofocus,
2248
2250
  name: je(o(t).path.value)
2249
- }, null, 8, ["autofocus", "name"])) : (w(), q(d, {
2251
+ }, null, 8, ["autofocus", "name"])) : (_(), q(d, {
2250
2252
  key: 1,
2251
2253
  appearance: "warning",
2252
2254
  message: `${o(t).path.value} ${o(t).schema.value.type} (no renderer yet)`
2253
2255
  }, null, 8, ["message"])),
2254
- O(s.$slots, "default")
2256
+ D(s.$slots, "default")
2255
2257
  ], 64))
2256
2258
  ], 64);
2257
2259
  };
2258
2260
  }
2259
- }), zn = /* @__PURE__ */ N({
2261
+ }), zn = /* @__PURE__ */ z({
2260
2262
  name: "SchemaForm",
2261
2263
  __name: "Form",
2262
2264
  props: {
@@ -2271,11 +2273,11 @@ const _e = /* @__PURE__ */ N({
2271
2273
  setup(e, { expose: r, emit: t }) {
2272
2274
  const n = t, s = Ae(), { getSchema: a, formData: d, setValue: l, getValue: f, rootRenderRules: i, getEmptyValue: c } = ia({
2273
2275
  schema: e.schema,
2274
- propsData: A(() => e.data),
2276
+ propsData: w(() => e.data),
2275
2277
  propsConfig: () => e.config,
2276
- propsRenderRules: j(() => e.renderRules),
2278
+ propsRenderRules: O(() => e.renderRules),
2277
2279
  onChange: (m) => n("change", m)
2278
- }), h = A(() => {
2280
+ }), h = w(() => {
2279
2281
  const { fields: m } = a();
2280
2282
  let p = [...m];
2281
2283
  return e.fieldsOrder ? lt(p, e.fieldsOrder) : (i.value?.bundles && (p = ut([...p], i.value.bundles)), p);
@@ -2285,11 +2287,11 @@ const _e = /* @__PURE__ */ N({
2285
2287
  getRawValue: () => Qe(d),
2286
2288
  setValue: l,
2287
2289
  getEmptyValue: c
2288
- }), (m, p) => (w(), q(oe(e.tag), null, {
2289
- default: K(() => [
2290
- (w(), q(oe(o(s)[o(ke)]))),
2291
- O(m.$slots, "default", {}, () => [
2292
- (w(!0), $(te, null, re(h.value, (u) => (w(), q(ye, {
2290
+ }), (m, p) => (_(), q(oe(e.tag), null, {
2291
+ default: E(() => [
2292
+ (_(), q(oe(o(s)[o(ke)]))),
2293
+ D(m.$slots, "default", {}, () => [
2294
+ (_(!0), j(te, null, se(h.value, (u) => (_(), q(ye, {
2293
2295
  key: Object.keys(u)[0],
2294
2296
  name: Object.keys(u)[0],
2295
2297
  onGlobalAction: p[0] || (p[0] = (g, v) => n("globalAction", g, v))
@@ -2299,7 +2301,7 @@ const _e = /* @__PURE__ */ N({
2299
2301
  _: 3
2300
2302
  }));
2301
2303
  }
2302
- }), Hn = /* @__PURE__ */ N({
2304
+ }), Hn = /* @__PURE__ */ z({
2303
2305
  __name: "FieldRenderer",
2304
2306
  props: {
2305
2307
  match: { type: Function },
@@ -2335,7 +2337,7 @@ function Pn() {
2335
2337
  // Translation component <i18n-t>
2336
2338
  };
2337
2339
  }
2338
- const Ln = ["data-testid"], qn = /* @__PURE__ */ N({
2340
+ const Ln = ["data-testid"], qn = /* @__PURE__ */ z({
2339
2341
  __name: "SwitchField",
2340
2342
  props: {
2341
2343
  labelAttributes: {},
@@ -2346,25 +2348,25 @@ const Ln = ["data-testid"], qn = /* @__PURE__ */ N({
2346
2348
  },
2347
2349
  emits: ["update:modelValue"],
2348
2350
  setup(e, { emit: r }) {
2349
- const { i18n: { t } } = Pn(), n = le(e, ["name", "enabledText", "disabledText"]), { value: s, hide: a, emptyOrDefaultValue: d, ...l } = Z(j(() => e.name)), f = r, i = (h) => {
2351
+ const { i18n: { t } } = Pn(), n = le(e, ["name", "enabledText", "disabledText"]), { value: s, hide: a, emptyOrDefaultValue: d, ...l } = Z(O(() => e.name)), f = r, i = (h) => {
2350
2352
  s.value = h, f("update:modelValue", h);
2351
2353
  }, c = ie(l.path, n);
2352
2354
  return (h, m) => {
2353
- const p = U("KAlert");
2354
- return l.error ? (w(), q(p, {
2355
+ const p = B("KAlert");
2356
+ return l.error ? (_(), q(p, {
2355
2357
  key: 0,
2356
2358
  appearance: "danger",
2357
2359
  message: l.error.message
2358
- }, null, 8, ["message"])) : X((w(), $("div", {
2360
+ }, null, 8, ["message"])) : X((_(), j("div", {
2359
2361
  key: 1,
2360
2362
  class: "ff-switch-field",
2361
2363
  "data-testid": `ff-${l.path.value}`
2362
2364
  }, [
2363
- V(o(Et), H(o(c), {
2365
+ R(o(Et), W(o(c), {
2364
2366
  "model-value": !!(o(s) == null ? o(d) : o(s)),
2365
2367
  "onUpdate:modelValue": i
2366
2368
  }), {
2367
- label: K(() => [
2369
+ label: E(() => [
2368
2370
  pe(de(o(s) ? e.enabledText || o(t)("actions.enabled") : e.disabledText || o(t)("actions.disabled")), 1)
2369
2371
  ]),
2370
2372
  _: 1