@envisiongroup/porygon 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/dist/index.js +72 -69
  2. package/dist/react-components/fields/TagPicker/EFWTagPicker.js +130 -126
  3. package/dist/react-components/fields/TagPicker/EFWTagPicker.types.d.ts +11 -6
  4. package/dist/react-components/forms/EFWForm/EFWForm.js +284 -290
  5. package/dist/react-components/forms/EFWForm/EFWForm.utils.d.ts +26 -1
  6. package/dist/react-components/forms/EFWForm/EFWForm.utils.js +94 -65
  7. package/dist/react-components/forms/EFWForm/index.d.ts +4 -3
  8. package/dist/react-components/forms/EFWForm/index.js +10 -7
  9. package/dist/react-components/tables/EFWTable/EFWTable.js +767 -747
  10. package/dist/react-components/tables/EFWTable/EFWTable.types.d.ts +10 -1
  11. package/dist/react-components/tables/EFWTable/components/EFWTableCommandBar/EFWTableCommandBar.js +31 -9
  12. package/dist/react-components/tables/EFWTable/components/EFWTableCommandBar/EFWTableCommandBar.types.d.ts +39 -4
  13. package/dist/react-components/tables/EFWTable/components/EFWTableCommandBar/EFWTableCommandBar.utils.d.ts +8 -3
  14. package/dist/react-components/tables/EFWTable/components/EFWTableCommandBar/EFWTableCommandBar.utils.js +4 -1
  15. package/dist/react-components/tables/EFWTable/hooks/useDefaultAddButton/useDefaultAddButton.d.ts +1 -1
  16. package/dist/react-components/tables/EFWTable/hooks/useDefaultAddButton/useDefaultAddButton.js +47 -15
  17. package/dist/react-components/tables/EFWTable/hooks/useDefaultUpdateButton/useDefaultUpdateButton.js +52 -21
  18. package/dist/react-components/tables/EFWTable/utils/index.d.ts +2 -1
  19. package/dist/react-components/tables/EFWTable/utils/index.js +19 -17
  20. package/dist/react-components/tables/EFWTable/utils/itemCompletion.d.ts +32 -0
  21. package/dist/react-components/tables/EFWTable/utils/itemCompletion.js +23 -0
  22. package/package.json +2 -2
@@ -1,18 +1,18 @@
1
- import { jsxs as ze, jsx as w } from "react/jsx-runtime";
2
- import { useMemo as L, useRef as o, useState as He, useEffect as oe, useCallback as p } from "react";
3
- import { useIsomorphicLayoutEffect as ce } from "../../hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";
4
- import { makeStyles as Rt, mergeClasses as Lt, Subtitle2Stronger as Ye, Text as Je, tokens as Qe } from "@fluentui/react-components";
5
- import { generateGridTemplateColumns as wt, EFWFormFieldWrapper as xt } from "./EFWForm.utils.js";
6
- import { EFWMessageBarManager as It } from "../EFWMessageBarManager/EFWMessageBarManager.js";
1
+ import { jsxs as ze, jsx as L } from "react/jsx-runtime";
2
+ import { useMemo as D, useRef as o, useState as He, useEffect as ce, useCallback as p } from "react";
3
+ import { useIsomorphicLayoutEffect as le } from "../../hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";
4
+ import { makeStyles as wt, mergeClasses as Lt, Subtitle2Stronger as Ye, Text as Je, tokens as Qe } from "@fluentui/react-components";
5
+ import { getEmptyValueForFieldType as Z, generateGridTemplateColumns as xt, EFWFormFieldWrapper as It } from "./EFWForm.utils.js";
6
+ import { EFWMessageBarManager as Pt } from "../EFWMessageBarManager/EFWMessageBarManager.js";
7
7
  import { isFieldEmptyForValidation as Xe } from "../../commons/valueNormalization.js";
8
- import { useFormLocaleText as Pt, PorygonI18nProvider as $t } from "../../i18n/PorygonI18nProvider.js";
9
- const Nt = Rt({
8
+ import { useFormLocaleText as $t, PorygonI18nProvider as Nt } from "../../i18n/PorygonI18nProvider.js";
9
+ const qt = wt({
10
10
  efwFormFieldWrapper: {
11
11
  "&:empty": {
12
12
  display: "none !important"
13
13
  }
14
14
  }
15
- }), qt = 900, Ut = 20, Bt = {}, _t = [
15
+ }), Ut = 900, Bt = 20, _t = {}, jt = [
16
16
  ".fui-Input",
17
17
  ".fui-Textarea",
18
18
  ".fui-DatePicker",
@@ -23,24 +23,24 @@ const Nt = Rt({
23
23
  'input:not([type="hidden"]):not([type="file"])',
24
24
  ".fui-Button",
25
25
  'button:not([aria-hidden="true"])'
26
- ], jt = (s) => {
27
- for (const S of _t) {
28
- const E = s.querySelector(S);
29
- if (E)
30
- return E;
26
+ ], Kt = (s) => {
27
+ for (const S of jt) {
28
+ const M = s.querySelector(S);
29
+ if (M)
30
+ return M;
31
31
  }
32
32
  return null;
33
- }, Kt = ({
33
+ }, kt = ({
34
34
  animationDelay: s = 0,
35
35
  animationToken: S,
36
- children: E,
37
- className: D
36
+ children: M,
37
+ className: O
38
38
  }) => {
39
39
  const g = o(null), b = p(
40
40
  (y) => {
41
41
  if (g.current?.cancel(), g.current = null, !S || !y)
42
42
  return;
43
- const j = jt(y);
43
+ const j = Kt(y);
44
44
  !j || typeof j.animate != "function" || typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches || (g.current = j.animate(
45
45
  [
46
46
  {
@@ -61,36 +61,20 @@ const Nt = Rt({
61
61
  ],
62
62
  {
63
63
  delay: s,
64
- duration: qt,
64
+ duration: Ut,
65
65
  easing: "ease-out"
66
66
  }
67
67
  ));
68
68
  },
69
69
  [s, S]
70
70
  );
71
- return /* @__PURE__ */ w("div", { ref: b, className: D, children: E });
72
- }, X = {
73
- Text: "",
74
- // String vacío para modo controlado
75
- Number: null,
76
- // Default value for Number fields
77
- Note: "",
78
- // String vacío para modo controlado
79
- Choice: [],
80
- // Default value for Choice fields (array for multiple selections)
81
- Date: [],
82
- // Date picker expects arrays even cuando está vacío
83
- Boolean: !1,
84
- // false para modo controlado
85
- Attachments: [],
86
- MultiChoice: []
87
- // Default value for MultiChoice fields (array for multiple selections)
88
- }, kt = [
71
+ return /* @__PURE__ */ L("div", { ref: b, className: O, children: M });
72
+ }, Wt = [
89
73
  "value",
90
74
  "selectedOptions",
91
75
  "selectedDates",
92
76
  "files"
93
- ], Wt = {
77
+ ], Gt = {
94
78
  Text: "value",
95
79
  Number: "value",
96
80
  Choice: "selectedOptions",
@@ -102,19 +86,19 @@ const Nt = Rt({
102
86
  }, Ve = (s, S) => (
103
87
  // biome-ignore lint/complexity/useObjectHasOwn: el target de tsconfig es < es2022 y Object.hasOwn no está disponible
104
88
  Object.prototype.hasOwnProperty.call(s, S)
105
- ), Gt = (s, S, E) => {
106
- const D = { ...S }, g = Wt[s], b = kt.filter(
107
- (y) => y !== g && y in D
89
+ ), zt = (s, S, M) => {
90
+ const O = { ...S }, g = Gt[s], b = Wt.filter(
91
+ (y) => y !== g && y in O
108
92
  );
109
93
  if (b.length > 0) {
110
94
  for (const y of b)
111
- delete D[y];
95
+ delete O[y];
112
96
  console.warn(
113
- `updateField recibió keys de valor incompatibles para '${E}' (${s}): ${b.join(", ")}. Se ignoraron y solo se permite '${g}'.`
97
+ `updateField recibió keys de valor incompatibles para '${M}' (${s}): ${b.join(", ")}. Se ignoraron y solo se permite '${g}'.`
114
98
  );
115
99
  }
116
- return D;
117
- }, zt = (s) => !(Ve(s, "validationState") || Ve(s, "validationMessage")) || Ve(s, "validationMessageIcon") ? s : {
100
+ return O;
101
+ }, Ht = (s) => !(Ve(s, "validationState") || Ve(s, "validationMessage")) || Ve(s, "validationMessageIcon") ? s : {
118
102
  ...s,
119
103
  validationMessageIcon: void 0
120
104
  }, Ze = (s) => {
@@ -123,34 +107,34 @@ const Nt = Rt({
123
107
  case "Note":
124
108
  case "Boolean":
125
109
  case "Number":
126
- return s.value !== void 0 ? s.value : "defaultValue" in s && s.defaultValue !== void 0 ? s.defaultValue : X[s.typeAsString];
110
+ return s.value !== void 0 ? s.value : "defaultValue" in s && s.defaultValue !== void 0 ? s.defaultValue : Z(s.typeAsString);
127
111
  case "Choice":
128
112
  case "MultiChoice":
129
- return "selectedOptions" in s && s.selectedOptions !== void 0 ? s.selectedOptions : "defaultSelectedOptions" in s && s.defaultSelectedOptions !== void 0 ? s.defaultSelectedOptions : X[s.typeAsString];
113
+ return "selectedOptions" in s && s.selectedOptions !== void 0 ? s.selectedOptions : "defaultSelectedOptions" in s && s.defaultSelectedOptions !== void 0 ? s.defaultSelectedOptions : Z(s.typeAsString);
130
114
  case "Date":
131
- return "selectedDates" in s && s.selectedDates !== void 0 ? s.selectedDates : "defaultSelectedDates" in s && s.defaultSelectedDates !== void 0 ? s.defaultSelectedDates : X[s.typeAsString];
115
+ return "selectedDates" in s && s.selectedDates !== void 0 ? s.selectedDates : "defaultSelectedDates" in s && s.defaultSelectedDates !== void 0 ? s.defaultSelectedDates : Z(s.typeAsString);
132
116
  case "Attachments":
133
- return "files" in s && s.files !== void 0 ? s.files : "defaultFiles" in s && s.defaultFiles !== void 0 ? s.defaultFiles : X[s.typeAsString];
117
+ return "files" in s && s.files !== void 0 ? s.files : "defaultFiles" in s && s.defaultFiles !== void 0 ? s.defaultFiles : Z(s.typeAsString);
134
118
  default: {
135
- const S = s.typeAsString, E = S ? X[S] : void 0;
136
- return E !== void 0 ? E : void 0;
119
+ const S = s.typeAsString;
120
+ return S ? Z(S) : void 0;
137
121
  }
138
122
  }
139
- }, et = (s, S, E) => {
140
- const D = S.current;
123
+ }, et = (s, S, M) => {
124
+ const O = S.current;
141
125
  let g = !1;
142
- const b = /* @__PURE__ */ new Set([...Object.keys(D), ...Object.keys(s)]);
126
+ const b = /* @__PURE__ */ new Set([...Object.keys(O), ...Object.keys(s)]);
143
127
  for (const y of b)
144
- if (!Object.is(D[y], s[y])) {
128
+ if (!Object.is(O[y], s[y])) {
145
129
  g = !0;
146
130
  break;
147
131
  }
148
- return g && (E.current += 1, S.current = { ...s }), E.current;
149
- }, rr = (s) => {
132
+ return g && (M.current += 1, S.current = { ...s }), M.current;
133
+ }, nr = (s) => {
150
134
  const {
151
135
  title: S,
152
- description: E,
153
- hidden: D = !1,
136
+ description: M,
137
+ hidden: O = !1,
154
138
  editable: g = !0,
155
139
  disabled: b = !1,
156
140
  fields: y = [],
@@ -160,31 +144,31 @@ const Nt = Rt({
160
144
  className: rt = "",
161
145
  header: nt,
162
146
  footer: st,
163
- children: it,
164
- gridTemplateColumns: at = 1,
165
- gridTemplateGap: Z = 16,
147
+ children: at,
148
+ gridTemplateColumns: it = 1,
149
+ gridTemplateGap: ee = 16,
166
150
  defaultValues: N = {},
167
- values: O,
151
+ values: R,
168
152
  sections: x = [],
169
153
  messages: ot = [],
170
- fieldAnimationConfig: Ae = Bt,
171
- onInit: le,
154
+ fieldAnimationConfig: Te = _t,
155
+ onInit: de,
172
156
  formRef: K,
173
- localeText: Te
174
- } = s, Ce = L(() => {
157
+ localeText: Ae
158
+ } = s, Ce = D(() => {
175
159
  const {
176
160
  fields: e,
177
161
  buttons: t,
178
162
  ...r
179
- } = Te ?? {}, i = Object.keys(r).length > 0 ? r : void 0, n = e || t ? {
163
+ } = Ae ?? {}, a = Object.keys(r).length > 0 ? r : void 0, n = e || t ? {
180
164
  ...e ? { fields: e } : {},
181
165
  ...t ? { buttons: t } : {}
182
166
  } : void 0;
183
167
  return {
184
- formOverrides: i,
168
+ formOverrides: a,
185
169
  i18nProviderLocale: n
186
170
  };
187
- }, [Te]), Y = Pt(Ce.formOverrides), De = Ce.i18nProviderLocale;
171
+ }, [Ae]), Y = $t(Ce.formOverrides), De = Ce.i18nProviderLocale;
188
172
  if (y.length > 0 && x.length > 0)
189
173
  throw console.error(
190
174
  'EFWForm: No se pueden usar "fields" y "sections" al mismo tiempo. Use solo uno de ellos.'
@@ -194,13 +178,13 @@ const Nt = Rt({
194
178
  y.length === 0 && x.length === 0 && console.warn(
195
179
  'EFWForm: No se han proporcionado "fields" ni "sections". El formulario estará vacío.'
196
180
  );
197
- const ct = Nt(), c = L(() => y.length > 0 ? [...y] : x.length > 0 ? x.flatMap((e) => e.fields) : [], [y, x]), I = L(() => {
181
+ const ct = qt(), c = D(() => y.length > 0 ? [...y] : x.length > 0 ? x.flatMap((e) => e.fields) : [], [y, x]), I = D(() => {
198
182
  const e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set();
199
183
  return c.forEach((r) => {
200
- const i = r.internalName;
201
- r.editable === void 0 && e.add(i), r.disabled === void 0 && t.add(i);
184
+ const a = r.internalName;
185
+ r.editable === void 0 && e.add(a), r.disabled === void 0 && t.add(a);
202
186
  }), { editable: e, disabled: t };
203
- }, [c]), de = L(
187
+ }, [c]), J = D(
204
188
  () => c.map((e) => {
205
189
  const t = e.editable === void 0 && g !== !0, r = e.disabled === void 0 && b !== !1;
206
190
  return !t && !r ? e : {
@@ -210,25 +194,30 @@ const Nt = Rt({
210
194
  };
211
195
  }),
212
196
  [c, g, b]
213
- ), ee = L(() => {
197
+ ), lt = D(() => {
198
+ const e = /* @__PURE__ */ new Map();
199
+ for (const t of J)
200
+ e.set(t.internalName, t);
201
+ return e;
202
+ }, [J]), te = D(() => {
214
203
  const e = {};
215
204
  for (const t of c)
216
205
  e[t.internalName] = Ze(t);
217
206
  return e;
218
- }, [c]), J = L(
207
+ }, [c]), Q = D(
219
208
  () => ({
220
- ...ee,
209
+ ...te,
221
210
  ...N
222
211
  }),
223
- [ee, N]
224
- ), q = O !== void 0, lt = L(() => q ? {
225
- ...J,
226
- ...O
227
- } : J, [q, J, O]), Oe = L(
212
+ [te, N]
213
+ ), q = R !== void 0, dt = D(() => q ? {
214
+ ...Q,
215
+ ...R
216
+ } : Q, [q, Q, R]), Oe = D(
228
217
  () => c.map((e) => `${e.internalName}::${e.id ?? "no-id"}`).join("|"),
229
218
  [c]
230
- ), U = o(null), [dt, Re] = He(!le), [ut, ft] = He({}), u = o(lt), m = o(null);
231
- m.current === null && (m.current = de.reduce(
219
+ ), U = o(null), [ut, Re] = He(!de), [ft, pt] = He({}), u = o(dt), m = o(null);
220
+ m.current === null && (m.current = J.reduce(
232
221
  (e, t) => (e[t.internalName] = {
233
222
  disabled: !1,
234
223
  editable: !0,
@@ -249,12 +238,12 @@ const Nt = Rt({
249
238
  required: t.required ?? !1
250
239
  }, e),
251
240
  {}
252
- )), oe(() => {
241
+ )), ce(() => {
253
242
  const e = new Set(Object.keys(m.current)), t = new Set(c.map((r) => r.internalName));
254
243
  e.forEach((r) => {
255
- t.has(r) || (delete m.current[r], delete B.current[r], delete R.current[r]);
244
+ t.has(r) || (delete m.current[r], delete B.current[r], delete w.current[r]);
256
245
  }), c.forEach((r) => {
257
- const i = r.editable ?? g, n = r.disabled ?? b, a = r.hidden ?? !1, f = r.required ?? !1, l = B.current[r.internalName];
246
+ const a = r.editable ?? g, n = r.disabled ?? b, i = r.hidden ?? !1, f = r.required ?? !1, l = B.current[r.internalName];
258
247
  if (!e.has(r.internalName)) {
259
248
  m.current[r.internalName] = {
260
249
  hidden: !1,
@@ -262,65 +251,65 @@ const Nt = Rt({
262
251
  validationState: "none",
263
252
  validationMessage: "",
264
253
  ...r,
265
- editable: i,
254
+ editable: a,
266
255
  disabled: n
267
256
  }, B.current[r.internalName] = {
268
- editable: i,
257
+ editable: a,
269
258
  disabled: n,
270
- hidden: a,
259
+ hidden: i,
271
260
  required: f
272
261
  };
273
262
  return;
274
263
  }
275
- const V = m.current[r.internalName];
276
- if (!V) {
264
+ const E = m.current[r.internalName];
265
+ if (!E) {
277
266
  B.current[r.internalName] = {
278
- editable: i,
267
+ editable: a,
279
268
  disabled: n,
280
- hidden: a,
269
+ hidden: i,
281
270
  required: f
282
271
  };
283
272
  return;
284
273
  }
285
- (!l || l.editable !== i || l.disabled !== n || l.hidden !== a || l.required !== f) && (m.current[r.internalName] = {
286
- ...V,
287
- editable: i,
274
+ (!l || l.editable !== a || l.disabled !== n || l.hidden !== i || l.required !== f) && (m.current[r.internalName] = {
275
+ ...E,
276
+ editable: a,
288
277
  disabled: n,
289
- hidden: a,
278
+ hidden: i,
290
279
  required: f
291
280
  }), B.current[r.internalName] = {
292
- editable: i,
281
+ editable: a,
293
282
  disabled: n,
294
- hidden: a,
283
+ hidden: i,
295
284
  required: f
296
285
  };
297
286
  });
298
287
  }, [c, g, b]);
299
- const R = o({}), ue = o(!1), fe = o(/* @__PURE__ */ new Set()), pt = o({}), k = o(null);
300
- k.current === null && (k.current = de.reduce(
288
+ const w = o({}), ue = o(!1), fe = o(/* @__PURE__ */ new Set()), gt = o({}), k = o(null);
289
+ k.current === null && (k.current = J.reduce(
301
290
  (e, t) => (e[t.internalName] = {
302
291
  validationState: t.validationState || "none",
303
292
  validationMessage: t.validationMessage || ""
304
293
  }, e),
305
294
  {}
306
295
  ));
307
- const pe = o(""), te = o(!1), gt = o({
308
- ...ee
309
- }), mt = o(0), ge = et(
310
- ee,
311
- gt,
312
- mt
313
- ), Le = o(N), W = o(j), we = o(le), me = o(Ae), re = o({}), xe = o(!1);
314
- oe(() => {
315
- Le.current = N;
316
- }, [N]), W.current = j, we.current = le, me.current = Ae;
317
- const vt = o({
296
+ const pe = o(""), re = o(!1), mt = o({
297
+ ...te
298
+ }), vt = o(0), ge = et(
299
+ te,
300
+ mt,
301
+ vt
302
+ ), we = o(N), W = o(j), Le = o(de), me = o(Te), ne = o({}), xe = o(!1);
303
+ ce(() => {
304
+ we.current = N;
305
+ }, [N]), W.current = j, Le.current = de, me.current = Te;
306
+ const ht = o({
318
307
  ...N
319
- }), ht = o(0), ve = et(
308
+ }), bt = o(0), ve = et(
320
309
  N,
321
- vt,
322
- ht
323
- ), he = `${ge}:${ve}`, be = o(""), G = L(
310
+ ht,
311
+ bt
312
+ ), he = `${ge}:${ve}`, be = o(""), G = D(
324
313
  () => new Map(
325
314
  c.map((e) => [
326
315
  e.internalName,
@@ -330,7 +319,7 @@ const Nt = Rt({
330
319
  [c]
331
320
  ), Ie = o(G);
332
321
  Ie.current = G;
333
- const bt = p(
322
+ const St = p(
334
323
  (e, t) => {
335
324
  k.current[e] = {
336
325
  validationState: t.currentValidationState,
@@ -342,12 +331,12 @@ const Nt = Rt({
342
331
  };
343
332
  },
344
333
  []
345
- ), ne = p(
334
+ ), se = p(
346
335
  (e, t = "internal") => {
347
336
  U.current && U.current.addMessageBar(e, t);
348
337
  },
349
338
  []
350
- ), se = p((e) => {
339
+ ), ae = p((e) => {
351
340
  U.current && U.current.removeMessageBar(e);
352
341
  }, []), Pe = p(() => {
353
342
  U.current && U.current.removeAllMessagesBar();
@@ -355,7 +344,7 @@ const Nt = Rt({
355
344
  $e.current = Me;
356
345
  const ie = p(() => {
357
346
  $e.current?.({ ...u.current });
358
- }, []), Q = p(
347
+ }, []), X = p(
359
348
  (e, t) => {
360
349
  const r = Fe.current;
361
350
  r?.(e, t);
@@ -363,10 +352,10 @@ const Nt = Rt({
363
352
  []
364
353
  ), z = p(
365
354
  (e, t) => {
366
- const r = k.current[e], i = re.current[e];
367
- if (!(i !== void 0 && r?.validationState === "error" && r?.validationMessage === i)) return;
368
- const a = Ie.current.get(e);
369
- a && (Xe(t, a.typeAsString) || (Q(e, {
355
+ const r = k.current[e], a = ne.current[e];
356
+ if (!(a !== void 0 && r?.validationState === "error" && r?.validationMessage === a)) return;
357
+ const i = Ie.current.get(e);
358
+ i && (Xe(t, i.typeAsString) || (X(e, {
370
359
  validationState: "none",
371
360
  validationMessage: ""
372
361
  }), k.current[e] = {
@@ -376,29 +365,29 @@ const Nt = Rt({
376
365
  ...m.current[e],
377
366
  validationState: "none",
378
367
  validationMessage: ""
379
- }, delete re.current[e]));
368
+ }, delete ne.current[e]));
380
369
  },
381
- [Q]
382
- ), St = p(
370
+ [X]
371
+ ), Ft = p(
383
372
  (e, t, r) => {
384
373
  u.current[e] = t, !r?.silent && (z(e, t), ue.current || (ue.current = !0, ie(), ue.current = !1));
385
374
  },
386
375
  [ie, z]
387
- ), Ft = p(
376
+ ), yt = p(
388
377
  (e, t) => {
389
- R.current[e] = t;
378
+ w.current[e] = t;
390
379
  },
391
380
  []
392
- ), yt = p(
381
+ ), Et = p(
393
382
  (e, t) => {
394
- R.current[e] === t && delete R.current[e];
383
+ w.current[e] === t && delete w.current[e];
395
384
  },
396
385
  []
397
- ), A = p(
386
+ ), T = p(
398
387
  (e, t) => {
399
- const r = Array.isArray(e) ? e : [e], i = (n) => {
400
- const a = R.current[n];
401
- if (!a) {
388
+ const r = Array.isArray(e) ? e : [e], a = (n) => {
389
+ const i = w.current[n];
390
+ if (!i) {
402
391
  console.warn(
403
392
  `No se encontró un campo registrado para '${String(n)}'`
404
393
  );
@@ -411,15 +400,15 @@ const Nt = Rt({
411
400
  );
412
401
  return;
413
402
  }
414
- const l = f.typeAsString, V = Gt(
403
+ const l = f.typeAsString, E = zt(
415
404
  l,
416
405
  t,
417
406
  String(n)
418
- ), F = zt(V);
419
- a(F);
407
+ ), F = Ht(E);
408
+ i(F);
420
409
  const {
421
410
  value: v,
422
- selectedOptions: M,
411
+ selectedOptions: V,
423
412
  selectedDates: d,
424
413
  files: h,
425
414
  ...$
@@ -428,32 +417,32 @@ const Nt = Rt({
428
417
  ...m.current[n],
429
418
  ...$
430
419
  });
431
- const H = W.current, T = (Ct, Dt, Ot = "change") => {
420
+ const H = W.current, A = (Dt, Ot, Rt = "change") => {
432
421
  const Ge = H?.[n];
433
422
  if (!Ge)
434
423
  return;
435
- const ae = String(n);
436
- if (fe.current.has(ae)) {
424
+ const oe = String(n);
425
+ if (fe.current.has(oe)) {
437
426
  console.warn(
438
- `Se detectó una actualización en cascada cíclica sobre el campo '${ae}'. Se omite la re-ejecución de su fieldLogic para evitar recursión infinita; revisa que la lógica del campo no se actualice a sí misma de forma indefinida.`
427
+ `Se detectó una actualización en cascada cíclica sobre el campo '${oe}'. Se omite la re-ejecución de su fieldLogic para evitar recursión infinita; revisa que la lógica del campo no se actualice a sí misma de forma indefinida.`
439
428
  );
440
429
  return;
441
430
  }
442
- fe.current.add(ae);
431
+ fe.current.add(oe);
443
432
  try {
444
433
  Ge(
445
- Ct,
446
- A,
434
+ Dt,
435
+ T,
447
436
  {
448
437
  allValues: u.current,
449
- trigger: Ot,
438
+ trigger: Rt,
450
439
  fieldName: n,
451
- previousValue: Dt,
440
+ previousValue: Ot,
452
441
  isControlled: q
453
442
  }
454
443
  );
455
444
  } finally {
456
- fe.current.delete(ae);
445
+ fe.current.delete(oe);
457
446
  }
458
447
  }, C = u.current[n];
459
448
  switch (l) {
@@ -461,48 +450,48 @@ const Nt = Rt({
461
450
  case "Number":
462
451
  case "Boolean":
463
452
  case "Note": {
464
- v !== void 0 && (u.current[n] = v, T(v, C));
453
+ v !== void 0 && (u.current[n] = v, A(v, C));
465
454
  break;
466
455
  }
467
456
  case "Choice":
468
457
  case "MultiChoice": {
469
- M !== void 0 && (u.current[n] = M, T(
470
- M,
458
+ V !== void 0 && (u.current[n] = V, A(
459
+ V,
471
460
  C
472
461
  ));
473
462
  break;
474
463
  }
475
464
  case "Date": {
476
- d !== void 0 && (u.current[n] = d, T(
465
+ d !== void 0 && (u.current[n] = d, A(
477
466
  d,
478
467
  C
479
468
  ));
480
469
  break;
481
470
  }
482
471
  case "Attachments": {
483
- h !== void 0 && (u.current[n] = h, T(h, C));
472
+ h !== void 0 && (u.current[n] = h, A(h, C));
484
473
  break;
485
474
  }
486
475
  default:
487
476
  console.warn(`Tipo de campo desconocido: ${l}`);
488
477
  }
489
- const At = v !== void 0 || M !== void 0 || d !== void 0 || h !== void 0, Tt = "validationState" in F || "validationMessage" in F;
490
- At && !Tt && z(
478
+ const At = v !== void 0 || V !== void 0 || d !== void 0 || h !== void 0, Ct = "validationState" in F || "validationMessage" in F;
479
+ At && !Ct && z(
491
480
  n,
492
481
  u.current[n]
493
482
  );
494
483
  };
495
484
  for (const n of r)
496
- i(n);
485
+ a(n);
497
486
  },
498
487
  [G, q, z]
499
- ), Se = L(() => {
488
+ ), Se = D(() => {
500
489
  const e = Array.from(I.editable).sort().join("|"), t = Array.from(I.disabled).sort().join("|");
501
490
  return `${e}::${t}`;
502
491
  }, [I]), Ne = o(
503
492
  `${g}::${b}::${Se}`
504
493
  );
505
- ce(() => {
494
+ le(() => {
506
495
  const e = `${g}::${b}::${Se}`;
507
496
  if (Ne.current === e)
508
497
  return;
@@ -510,14 +499,14 @@ const Nt = Rt({
510
499
  ...I.editable,
511
500
  ...I.disabled
512
501
  ])).forEach((r) => {
513
- const i = m.current[r];
514
- if (!i)
502
+ const a = m.current[r];
503
+ if (!a)
515
504
  return;
516
- let n = i.editable, a = i.disabled, f = !1;
517
- I.editable.has(r) && i.editable !== g && (n = g, f = !0), I.disabled.has(r) && i.disabled !== b && (a = b, f = !0), f && (m.current[r] = {
518
- ...i,
505
+ let n = a.editable, i = a.disabled, f = !1;
506
+ I.editable.has(r) && a.editable !== g && (n = g, f = !0), I.disabled.has(r) && a.disabled !== b && (i = b, f = !0), f && (m.current[r] = {
507
+ ...a,
519
508
  editable: n,
520
- disabled: a
509
+ disabled: i
521
510
  });
522
511
  });
523
512
  }, [
@@ -526,37 +515,37 @@ const Nt = Rt({
526
515
  Se,
527
516
  I
528
517
  ]);
529
- const Fe = o(A);
530
- Fe.current = A;
518
+ const Fe = o(T);
519
+ Fe.current = T;
531
520
  const _ = p(
532
521
  (e, t = {}) => {
533
522
  const r = W.current;
534
523
  if (!r)
535
524
  return;
536
- const i = e && e.length > 0 ? e : Object.keys(r);
537
- if (i.length === 0)
525
+ const a = e && e.length > 0 ? e : Object.keys(r);
526
+ if (a.length === 0)
538
527
  return;
539
- const n = r, { trigger: a = "change", previousValues: f, allValuesOverride: l } = t, V = l ?? u.current;
540
- i.forEach((F) => {
528
+ const n = r, { trigger: i = "change", previousValues: f, allValuesOverride: l } = t, E = l ?? u.current;
529
+ a.forEach((F) => {
541
530
  const v = n[F];
542
531
  if (!v)
543
532
  return;
544
- const M = f?.[F];
533
+ const V = f?.[F];
545
534
  v(
546
- V[F],
547
- A,
535
+ E[F],
536
+ T,
548
537
  {
549
- allValues: V,
550
- trigger: a,
538
+ allValues: E,
539
+ trigger: i,
551
540
  fieldName: F,
552
- previousValue: M,
541
+ previousValue: V,
553
542
  isControlled: q
554
543
  }
555
544
  );
556
545
  });
557
546
  },
558
- [A, q]
559
- ), Et = p(
547
+ [T, q]
548
+ ), Vt = p(
560
549
  (e) => W.current?.[e],
561
550
  []
562
551
  ), ye = p(
@@ -569,20 +558,20 @@ const Nt = Rt({
569
558
  overwriteAll: !1
570
559
  }, r) => {
571
560
  const {
572
- triggerOnChange: i = !0,
561
+ triggerOnChange: a = !0,
573
562
  triggerFieldLogic: n = !0,
574
- overwriteAll: a = !1,
563
+ overwriteAll: i = !1,
575
564
  force: f = !1
576
- } = t, l = t.animateUpdatedFields ?? r ?? me.current.setValues ?? !1, V = Object.keys(e), F = {}, v = [], M = f ? V : V.filter(
565
+ } = t, l = t.animateUpdatedFields ?? r ?? me.current.setValues ?? !1, E = Object.keys(e), F = {}, v = [], V = f ? E : E.filter(
577
566
  (d) => !Object.is(
578
567
  u.current[d],
579
568
  e[d]
580
569
  )
581
570
  );
582
- if (M.forEach((d) => {
571
+ if (V.forEach((d) => {
583
572
  F[d] = u.current[d];
584
- }), !(M.length === 0 && !a)) {
585
- if (a)
573
+ }), !(V.length === 0 && !i)) {
574
+ if (i)
586
575
  u.current = {
587
576
  ...u.current,
588
577
  ...e
@@ -593,48 +582,48 @@ const Nt = Rt({
593
582
  h in u.current && (d[h] = e[h]);
594
583
  }), u.current = d;
595
584
  }
596
- M.forEach((d) => {
597
- const h = R.current[d];
585
+ V.forEach((d) => {
586
+ const h = w.current[d];
598
587
  if (h) {
599
588
  const $ = G.get(d);
600
589
  if ($) {
601
- const H = $.typeAsString, T = e[d];
590
+ const H = $.typeAsString, A = e[d];
602
591
  let C;
603
592
  switch (H) {
604
593
  case "Text":
605
594
  case "Number":
606
595
  case "Boolean":
607
596
  case "Note":
608
- C = { value: T };
597
+ C = { value: A };
609
598
  break;
610
599
  case "Choice":
611
600
  case "MultiChoice":
612
- C = { selectedOptions: T };
601
+ C = { selectedOptions: A };
613
602
  break;
614
603
  case "Date":
615
- C = { selectedDates: T };
604
+ C = { selectedDates: A };
616
605
  break;
617
606
  case "Attachments":
618
- C = { files: T };
607
+ C = { files: A };
619
608
  break;
620
609
  default:
621
610
  console.warn(`Tipo de campo desconocido: ${H}`), C = {};
622
611
  }
623
- h(C), z(d, T), l && !Object.is(F[d], T) && v.push(d);
612
+ h(C), z(d, A), l && !Object.is(F[d], A) && v.push(d);
624
613
  } else
625
614
  console.warn(`No se encontró la definición del campo: ${d}`);
626
615
  }
627
- }), v.length > 0 && ft((d) => {
616
+ }), v.length > 0 && pt((d) => {
628
617
  const h = { ...d };
629
618
  return v.forEach(($, H) => {
630
619
  h[$] = {
631
- delay: H * Ut,
620
+ delay: H * Bt,
632
621
  token: (h[$]?.token ?? 0) + 1
633
622
  };
634
623
  }), h;
635
- }), n && M.length > 0 && _(M, {
624
+ }), n && V.length > 0 && _(V, {
636
625
  previousValues: F
637
- }), i && ie();
626
+ }), a && ie();
638
627
  }
639
628
  },
640
629
  [
@@ -644,13 +633,13 @@ const Nt = Rt({
644
633
  z
645
634
  ]
646
635
  );
647
- ce(() => {
648
- if (O !== void 0) {
636
+ le(() => {
637
+ if (R !== void 0) {
649
638
  be.current = "";
650
639
  return;
651
640
  }
652
641
  be.current !== he && (be.current = he, P(
653
- J,
642
+ Q,
654
643
  {
655
644
  overwriteAll: !0,
656
645
  triggerOnChange: !1,
@@ -658,30 +647,30 @@ const Nt = Rt({
658
647
  },
659
648
  !1
660
649
  ));
661
- }, [O, he, P, J]), ce(() => {
650
+ }, [R, he, P, Q]), le(() => {
662
651
  if (!W.current)
663
652
  return;
664
- if (O !== void 0) {
653
+ if (R !== void 0) {
665
654
  pe.current = "";
666
655
  return;
667
656
  }
668
657
  const e = `uncontrolled::${Oe}::${ge}::${ve}`;
669
658
  pe.current !== e && (pe.current = e, _(void 0, { trigger: "init" }));
670
659
  }, [
671
- O,
660
+ R,
672
661
  Oe,
673
662
  ge,
674
663
  ve,
675
664
  _
676
- ]), ce(() => {
677
- if (O === void 0) {
678
- te.current = !1;
665
+ ]), le(() => {
666
+ if (R === void 0) {
667
+ re.current = !1;
679
668
  return;
680
669
  }
681
- const e = u.current, t = O, i = Object.keys(t).filter(
670
+ const e = u.current, t = R, a = Object.keys(t).filter(
682
671
  (n) => e[n] !== t[n]
683
672
  );
684
- if (i.length > 0 && P(
673
+ if (a.length > 0 && P(
685
674
  t,
686
675
  {
687
676
  triggerOnChange: !1,
@@ -690,19 +679,19 @@ const Nt = Rt({
690
679
  },
691
680
  !1
692
681
  ), !W.current) {
693
- te.current = !0;
682
+ re.current = !0;
694
683
  return;
695
684
  }
696
- i.length > 0 ? _(i, { previousValues: e }) : te.current || _(void 0, { trigger: "init" }), te.current = !0;
697
- }, [O, P, _]);
685
+ a.length > 0 ? _(a, { previousValues: e }) : re.current || _(void 0, { trigger: "init" }), re.current = !0;
686
+ }, [R, P, _]);
698
687
  const qe = p(
699
688
  (e = {}) => {
700
689
  const r = {
701
690
  ...c.reduce(
702
- (i, n) => (i[n.internalName] = Ze(n), i),
691
+ (a, n) => (a[n.internalName] = Ze(n), a),
703
692
  {}
704
693
  ),
705
- ...Le.current
694
+ ...we.current
706
695
  };
707
696
  P(
708
697
  r,
@@ -716,69 +705,69 @@ const Nt = Rt({
716
705
  [c, P]
717
706
  ), Ue = p(
718
707
  (e, t) => {
719
- const r = t || c.map((n) => n.internalName), i = [];
708
+ const r = t || c.map((n) => n.internalName), a = [];
720
709
  return r.forEach((n) => {
721
- const a = m.current[n];
722
- if (!a) {
710
+ const i = m.current[n];
711
+ if (!i) {
723
712
  console.warn(`Field state not found for ${n}`);
724
713
  return;
725
714
  }
726
- const f = a.disabled ?? !1;
727
- e !== f && R.current[n] ? (A(n, { disabled: e }), i.push(n)) : R.current[n] || console.warn(`Field ${n} not found in fieldUpdateRefs`);
728
- }), i;
715
+ const f = i.disabled ?? !1;
716
+ e !== f && w.current[n] ? (T(n, { disabled: e }), a.push(n)) : w.current[n] || console.warn(`Field ${n} not found in fieldUpdateRefs`);
717
+ }), a;
729
718
  },
730
- [c, A]
719
+ [c, T]
731
720
  ), Be = p(
732
721
  (e, t) => {
733
- const r = t || c.map((n) => n.internalName), i = [];
722
+ const r = t || c.map((n) => n.internalName), a = [];
734
723
  return r.forEach((n) => {
735
- const a = m.current[n];
736
- if (!a) {
724
+ const i = m.current[n];
725
+ if (!i) {
737
726
  console.warn(`Field state not found for ${n}`);
738
727
  return;
739
728
  }
740
- const f = a.editable ?? !0;
741
- e !== f && R.current[n] ? (A(n, { editable: e }), i.push(n)) : R.current[n] || console.warn(`Field ${n} not found in fieldUpdateRefs`);
742
- }), i;
729
+ const f = i.editable ?? !0;
730
+ e !== f && w.current[n] ? (T(n, { editable: e }), a.push(n)) : w.current[n] || console.warn(`Field ${n} not found in fieldUpdateRefs`);
731
+ }), a;
743
732
  },
744
- [c, A]
733
+ [c, T]
745
734
  ), _e = p(() => c.every(
746
735
  (e) => m.current[e.internalName]?.disabled === !0
747
736
  ), [c]), je = p(() => c.every(
748
737
  (e) => m.current[e.internalName]?.editable === !0
749
738
  ), [c]), Ke = p(
750
739
  (e = !0) => {
751
- const t = "validacion__10000001", r = "error", i = Y.requiredFieldError, n = pt.current;
752
- let a = !0;
740
+ const t = "validacion__10000001", r = "error", a = Y.requiredFieldError, n = gt.current;
741
+ let i = !0;
753
742
  return c.forEach((f) => {
754
- const l = f.internalName, V = u.current[l], F = m.current[l], v = k.current[l];
743
+ const l = f.internalName, E = u.current[l], F = m.current[l], v = k.current[l];
755
744
  if (F?.hidden === !0)
756
745
  return;
757
746
  const d = Xe(
758
- V,
747
+ E,
759
748
  f.typeAsString
760
749
  );
761
750
  if (!F?.required && v?.validationState === "error") {
762
- a = !1;
751
+ i = !1;
763
752
  return;
764
753
  }
765
754
  if (F?.required)
766
755
  if (d)
767
- re.current[l] = i, (v?.validationState !== "error" || v?.validationMessage !== i) && (n[l] = {
756
+ ne.current[l] = a, (v?.validationState !== "error" || v?.validationMessage !== a) && (n[l] = {
768
757
  validationState: v?.validationState || "none",
769
758
  validationMessage: v?.validationMessage || ""
770
- }, Q(l, {
759
+ }, X(l, {
771
760
  validationState: r,
772
- validationMessage: i
773
- })), a = !1;
774
- else if (delete re.current[l], v?.validationState === "error" && v?.validationMessage === i) {
761
+ validationMessage: a
762
+ })), i = !1;
763
+ else if (delete ne.current[l], v?.validationState === "error" && v?.validationMessage === a) {
775
764
  const h = n[l];
776
- h && (Q(l, {
765
+ h && (X(l, {
777
766
  validationState: h.validationState,
778
767
  validationMessage: h.validationMessage
779
- }), h.validationState === "error" && (a = !1));
780
- } else v?.validationState === "error" && (a = !1);
781
- }), e && !a ? ne(
768
+ }), h.validationState === "error" && (i = !1));
769
+ } else v?.validationState === "error" && (i = !1);
770
+ }), e && !i ? se(
782
771
  {
783
772
  id: t,
784
773
  intent: "error",
@@ -786,15 +775,15 @@ const Nt = Rt({
786
775
  actions: []
787
776
  },
788
777
  "internal"
789
- ) : se(t), a;
778
+ ) : ae(t), i;
790
779
  },
791
780
  [
792
- ne,
781
+ se,
793
782
  c,
794
783
  Y.requiredFieldError,
795
784
  Y.requiredFieldsNotification,
796
- se,
797
- Q
785
+ ae,
786
+ X
798
787
  ]
799
788
  ), Ee = o({
800
789
  getValues: () => u.current,
@@ -816,7 +805,7 @@ const Nt = Rt({
816
805
  updateField: () => {
817
806
  }
818
807
  });
819
- oe(() => (Ee.current = {
808
+ ce(() => (Ee.current = {
820
809
  getValues: ye,
821
810
  setValues: P,
822
811
  resetValues: qe,
@@ -825,10 +814,10 @@ const Nt = Rt({
825
814
  isDisabled: _e,
826
815
  isEditable: je,
827
816
  validateForm: Ke,
828
- addMessageBar: ne,
829
- removeMessageBar: se,
817
+ addMessageBar: se,
818
+ removeMessageBar: ae,
830
819
  removeAllMessagesBar: Pe,
831
- updateField: A
820
+ updateField: T
832
821
  }, K && (K.current = Ee.current), () => {
833
822
  K && K.current === Ee.current && (K.current = null);
834
823
  }), [
@@ -839,17 +828,17 @@ const Nt = Rt({
839
828
  _e,
840
829
  Ke,
841
830
  K,
842
- ne,
843
831
  se,
832
+ ae,
844
833
  Pe,
845
834
  Be,
846
835
  je,
847
- A
848
- ]), oe(() => {
836
+ T
837
+ ]), ce(() => {
849
838
  if (xe.current)
850
839
  return;
851
840
  xe.current = !0;
852
- const e = we.current;
841
+ const e = Le.current;
853
842
  if (e) {
854
843
  const t = e(
855
844
  u.current,
@@ -858,27 +847,27 @@ const Nt = Rt({
858
847
  t instanceof Promise ? t.catch((r) => console.error("Error en onInit:", r)).finally(() => Re(!0)) : Re(!0);
859
848
  }
860
849
  }, []);
861
- const Vt = (e) => {
862
- const t = e.internalName, r = u.current[t], i = ut[t];
863
- return /* @__PURE__ */ w(
864
- Kt,
850
+ const Mt = (e) => {
851
+ const t = e.internalName, r = u.current[t], a = ft[t];
852
+ return /* @__PURE__ */ L(
853
+ kt,
865
854
  {
866
855
  className: ct.efwFormFieldWrapper,
867
- animationDelay: i?.delay,
868
- animationToken: i?.token,
869
- children: /* @__PURE__ */ w(
870
- xt,
856
+ animationDelay: a?.delay,
857
+ animationToken: a?.token,
858
+ children: /* @__PURE__ */ L(
859
+ It,
871
860
  {
872
861
  field: e,
873
862
  initialValue: r,
874
- onValueChange: St,
875
- registerUpdateProps: Ft,
876
- unregisterUpdateProps: yt,
877
- getFieldLogicByName: Et,
863
+ onValueChange: Ft,
864
+ registerUpdateProps: yt,
865
+ unregisterUpdateProps: Et,
866
+ getFieldLogicByName: Vt,
878
867
  isControlled: q,
879
868
  getAllValues: ye,
880
- updateFieldProps: A,
881
- onValidationChange: bt,
869
+ updateFieldProps: T,
870
+ onValidationChange: St,
882
871
  localeText: Y
883
872
  }
884
873
  )
@@ -886,68 +875,73 @@ const Nt = Rt({
886
875
  e.id
887
876
  );
888
877
  }, ke = (e, t = 1) => {
889
- const r = wt(t);
890
- return /* @__PURE__ */ w(
878
+ const r = xt(t);
879
+ return /* @__PURE__ */ L(
891
880
  "div",
892
881
  {
893
882
  style: {
894
883
  display: "grid",
895
884
  gridTemplateColumns: r,
896
- gap: Z,
897
- margin: `${Z}px 0px 0px`
885
+ gap: ee,
886
+ margin: `${ee}px 0px 0px`
898
887
  },
899
- children: e.map(Vt)
888
+ children: e.map(Mt)
900
889
  }
901
890
  );
902
- }, Mt = Lt(rt, "efw-form");
903
- if (D) return null;
891
+ }, Tt = Lt(rt, "efw-form");
892
+ if (O) return null;
904
893
  const We = /* @__PURE__ */ ze(
905
894
  "div",
906
895
  {
907
896
  style: {
908
897
  ...tt,
909
- ...dt ? {} : { visibility: "hidden" }
898
+ ...ut ? {} : { visibility: "hidden" }
910
899
  },
911
- className: Mt,
900
+ className: Tt,
912
901
  children: [
913
902
  nt,
914
- S && /* @__PURE__ */ w(Ye, { style: { marginTop: 12 }, block: !0, children: S }),
915
- E && /* @__PURE__ */ w(Je, { block: !0, as: "p", children: E }),
903
+ S && /* @__PURE__ */ L(Ye, { style: { marginTop: 12 }, block: !0, children: S }),
904
+ M && /* @__PURE__ */ L(Je, { block: !0, as: "p", children: M }),
916
905
  x && x.length > 0 ? x.map((e, t) => /* @__PURE__ */ ze("div", { children: [
917
- e.title && /* @__PURE__ */ w(
906
+ e.title && /* @__PURE__ */ L(
918
907
  Ye,
919
908
  {
920
- style: { marginTop: Z * (t > 0 ? 2 : 1) },
909
+ style: { marginTop: ee * (t > 0 ? 2 : 1) },
921
910
  block: !0,
922
911
  children: e.title
923
912
  }
924
913
  ),
925
- e.description && /* @__PURE__ */ w(
914
+ e.description && /* @__PURE__ */ L(
926
915
  Je,
927
916
  {
928
917
  block: !0,
929
918
  as: "p",
930
- style: e.title ? {} : { marginTop: Z * (t > 0 ? 2 : 1) },
919
+ style: e.title ? {} : { marginTop: ee * (t > 0 ? 2 : 1) },
931
920
  children: e.description
932
921
  }
933
922
  ),
934
- ke(e.fields, e.gridTemplateColumns)
935
- ] }, e.fields[0]?.internalName ?? `section-${t}`)) : ke(de, at),
936
- /* @__PURE__ */ w(
937
- It,
923
+ ke(
924
+ e.fields.map(
925
+ (r) => lt.get(r.internalName) ?? r
926
+ ),
927
+ e.gridTemplateColumns
928
+ )
929
+ ] }, e.fields[0]?.internalName ?? `section-${t}`)) : ke(J, it),
930
+ /* @__PURE__ */ L(
931
+ Pt,
938
932
  {
939
933
  style: { marginTop: "22px" },
940
934
  initialExternalMessages: ot,
941
935
  ref: U
942
936
  }
943
937
  ),
944
- it,
938
+ at,
945
939
  st
946
940
  ]
947
941
  }
948
942
  );
949
- return De ? /* @__PURE__ */ w($t, { localeText: De, children: We }) : We;
943
+ return De ? /* @__PURE__ */ L(Nt, { localeText: De, children: We }) : We;
950
944
  };
951
945
  export {
952
- rr as EFWForm
946
+ nr as EFWForm
953
947
  };