@goodie-forms/react 1.0.0-alpha → 1.1.1-alpha
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.
- package/dist/components/FieldRenderer.d.ts +12 -6
- package/dist/components/FieldRenderer.d.ts.map +1 -1
- package/dist/hooks/useForm.d.ts +1 -1
- package/dist/hooks/useForm.d.ts.map +1 -1
- package/dist/hooks/useFormErrorObserver.d.ts +3 -1
- package/dist/hooks/useFormErrorObserver.d.ts.map +1 -1
- package/dist/hooks/useFormField.d.ts +1 -1
- package/dist/hooks/useFormField.d.ts.map +1 -1
- package/dist/hooks/useFormValuesObserver.d.ts +2 -2
- package/dist/hooks/useFormValuesObserver.d.ts.map +1 -1
- package/dist/hooks/useRenderControl.d.ts.map +1 -1
- package/dist/index.js +314 -296
- package/dist/index.js.map +1 -1
- package/package.json +32 -32
- package/src/components/FieldRenderer.tsx +120 -107
- package/src/hooks/useForm.tsx +46 -51
- package/src/hooks/useFormErrorObserver.ts +40 -38
- package/src/hooks/useFormField.tsx +55 -46
- package/src/hooks/useFormValuesObserver.ts +45 -34
- package/src/hooks/useRenderControl.tsx +26 -12
- package/src/index.ts +7 -7
- package/src/utils/composeFns.ts +7 -7
- package/src/utils/groupBy.ts +13 -13
- package/tsconfig.json +8 -8
- package/vite.config.ts +23 -23
package/dist/index.js
CHANGED
|
@@ -1,167 +1,182 @@
|
|
|
1
|
-
import { FormController as
|
|
2
|
-
import
|
|
3
|
-
function
|
|
1
|
+
import { FormController as br, Field as F } from "@goodie-forms/core";
|
|
2
|
+
import De, { useState as ne, useRef as re, startTransition as pr, useEffect as I } from "react";
|
|
3
|
+
function W(...t) {
|
|
4
4
|
return () => {
|
|
5
|
-
for (const
|
|
6
|
-
|
|
5
|
+
for (const o of t)
|
|
6
|
+
o();
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
const [,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
function J() {
|
|
10
|
+
const [, t] = ne(0), o = re(0), l = re(!1);
|
|
11
|
+
o.current++;
|
|
12
|
+
const d = () => {
|
|
13
|
+
l.current || (l.current = !0, queueMicrotask(() => {
|
|
14
|
+
pr(() => {
|
|
15
|
+
t((v) => v + 1);
|
|
16
|
+
}), l.current = !1;
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
renderCount: o.current,
|
|
21
|
+
forceRerender: d
|
|
14
22
|
};
|
|
15
23
|
}
|
|
16
|
-
function
|
|
17
|
-
const [l] =
|
|
18
|
-
return
|
|
19
|
-
const
|
|
24
|
+
function Sr(t, o) {
|
|
25
|
+
const [l] = ne(() => new br(t)), d = J();
|
|
26
|
+
return I(() => {
|
|
27
|
+
const v = () => {
|
|
20
28
|
};
|
|
21
|
-
return
|
|
22
|
-
l.events.on("
|
|
23
|
-
d(
|
|
29
|
+
return W(
|
|
30
|
+
l.events.on("submissionStatusChange", () => {
|
|
31
|
+
d.forceRerender();
|
|
24
32
|
}),
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
() =>
|
|
28
|
-
) :
|
|
29
|
-
|
|
33
|
+
o?.watchIssues ? l.events.on(
|
|
34
|
+
"fieldIssuesUpdated",
|
|
35
|
+
() => d.forceRerender()
|
|
36
|
+
) : v,
|
|
37
|
+
o?.watchValues ? l.events.on(
|
|
30
38
|
"valueChanged",
|
|
31
|
-
() =>
|
|
32
|
-
) :
|
|
39
|
+
() => d.forceRerender()
|
|
40
|
+
) : v
|
|
33
41
|
);
|
|
34
42
|
}, [l]), {
|
|
35
|
-
formConfigs:
|
|
36
|
-
hookConfigs:
|
|
43
|
+
formConfigs: t,
|
|
44
|
+
hookConfigs: o,
|
|
37
45
|
controller: l
|
|
38
46
|
};
|
|
39
47
|
}
|
|
40
|
-
function mr(
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
function mr(t, o, l) {
|
|
49
|
+
const d = J(), [v, c] = ne(() => {
|
|
50
|
+
let g = t.controller.getField(o);
|
|
51
|
+
return g == null && l != null && (g = t.controller.bindField(o, l)), g;
|
|
52
|
+
});
|
|
53
|
+
return I(() => {
|
|
54
|
+
const { events: g } = t.controller;
|
|
55
|
+
return c(t.controller.getField(o)), W(
|
|
56
|
+
g.on("fieldBound", (h) => {
|
|
57
|
+
h === o && c(t.controller.getField(o));
|
|
58
|
+
}),
|
|
59
|
+
g.on("fieldUnbound", (h) => {
|
|
60
|
+
h === o && c(void 0);
|
|
61
|
+
}),
|
|
62
|
+
g.on("valueChanged", (h) => {
|
|
63
|
+
(h === o || F.isDescendant(h, o)) && d.forceRerender();
|
|
49
64
|
}),
|
|
50
|
-
|
|
51
|
-
h ===
|
|
65
|
+
g.on("fieldTouchUpdated", (h) => {
|
|
66
|
+
h === o && d.forceRerender();
|
|
52
67
|
}),
|
|
53
|
-
|
|
54
|
-
h ===
|
|
68
|
+
g.on("fieldDirtyUpdated", (h) => {
|
|
69
|
+
h === o && d.forceRerender();
|
|
55
70
|
}),
|
|
56
|
-
|
|
57
|
-
h ===
|
|
71
|
+
g.on("fieldIssuesUpdated", (h) => {
|
|
72
|
+
h === o && d.forceRerender();
|
|
58
73
|
})
|
|
59
74
|
);
|
|
60
|
-
}, []),
|
|
75
|
+
}, []), v;
|
|
61
76
|
}
|
|
62
|
-
function
|
|
63
|
-
const l =
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
77
|
+
function wr(t, o) {
|
|
78
|
+
const l = J(), d = o?.include == null ? t.controller._data : o.include.reduce((v, c) => {
|
|
79
|
+
const g = F.getValue(t.controller._data, c);
|
|
80
|
+
return F.setValue(v, c, g), v;
|
|
81
|
+
}, {});
|
|
82
|
+
return I(() => {
|
|
83
|
+
const { events: v } = t.controller;
|
|
84
|
+
return W(
|
|
85
|
+
v.on("valueChanged", (c) => {
|
|
86
|
+
(o?.include == null || o.include.some(
|
|
87
|
+
(h) => h === c || F.isDescendant(h, c)
|
|
88
|
+
)) && l.forceRerender();
|
|
69
89
|
})
|
|
70
90
|
);
|
|
71
|
-
}, []),
|
|
72
|
-
const v = we.getValue(a.controller._data, d);
|
|
73
|
-
return we.setValue(f, d, v), f;
|
|
74
|
-
}, {});
|
|
91
|
+
}, []), d;
|
|
75
92
|
}
|
|
76
|
-
function
|
|
93
|
+
function yr(t, o) {
|
|
77
94
|
const l = {};
|
|
78
|
-
for (const
|
|
79
|
-
const
|
|
80
|
-
(l[
|
|
95
|
+
for (const d of t) {
|
|
96
|
+
const v = o(d);
|
|
97
|
+
(l[v] ??= []).push(d);
|
|
81
98
|
}
|
|
82
99
|
return l;
|
|
83
100
|
}
|
|
84
|
-
function
|
|
85
|
-
const l =
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
return
|
|
89
|
-
|
|
90
|
-
|
|
101
|
+
function Pr(t, o) {
|
|
102
|
+
const l = J(), d = t.controller._issues.filter((c) => {
|
|
103
|
+
if (o?.include == null) return !0;
|
|
104
|
+
const g = F.parsePath(c.path);
|
|
105
|
+
return o.include.includes(g);
|
|
106
|
+
}), v = yr(
|
|
107
|
+
d,
|
|
108
|
+
(c) => F.parsePath(c.path)
|
|
109
|
+
);
|
|
110
|
+
return I(() => {
|
|
111
|
+
const { events: c } = t.controller;
|
|
112
|
+
return W(
|
|
113
|
+
c.on("fieldIssuesUpdated", (g) => {
|
|
114
|
+
(o?.include?.includes?.(g) ?? !0) && l.forceRerender();
|
|
91
115
|
})
|
|
92
116
|
);
|
|
93
|
-
}, []);
|
|
94
|
-
const f = a.controller._issues.filter((d) => {
|
|
95
|
-
if (i?.include == null) return !0;
|
|
96
|
-
const v = d.path.join(".");
|
|
97
|
-
return i.include.includes(v);
|
|
98
|
-
});
|
|
99
|
-
return br(
|
|
100
|
-
f,
|
|
101
|
-
(d) => d.path.join(".")
|
|
102
|
-
);
|
|
117
|
+
}, []), v;
|
|
103
118
|
}
|
|
104
|
-
var
|
|
105
|
-
var
|
|
119
|
+
var q = { exports: {} }, $ = {};
|
|
120
|
+
var Fe;
|
|
106
121
|
function Er() {
|
|
107
|
-
if (
|
|
108
|
-
|
|
109
|
-
var
|
|
110
|
-
function h
|
|
111
|
-
var
|
|
112
|
-
j !== void 0 && (S = "" + j),
|
|
113
|
-
for (
|
|
114
|
-
if (
|
|
115
|
-
return { $$typeof:
|
|
122
|
+
if (Fe) return $;
|
|
123
|
+
Fe = 1;
|
|
124
|
+
var t = De, o = /* @__PURE__ */ Symbol.for("react.element"), l = /* @__PURE__ */ Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
125
|
+
function g(h, p, j) {
|
|
126
|
+
var _, T = {}, S = null, Y = null;
|
|
127
|
+
j !== void 0 && (S = "" + j), p.key !== void 0 && (S = "" + p.key), p.ref !== void 0 && (Y = p.ref);
|
|
128
|
+
for (_ in p) d.call(p, _) && !c.hasOwnProperty(_) && (T[_] = p[_]);
|
|
129
|
+
if (h && h.defaultProps) for (_ in p = h.defaultProps, p) T[_] === void 0 && (T[_] = p[_]);
|
|
130
|
+
return { $$typeof: o, type: h, key: S, ref: Y, props: T, _owner: v.current };
|
|
116
131
|
}
|
|
117
|
-
return
|
|
132
|
+
return $.Fragment = l, $.jsx = g, $.jsxs = g, $;
|
|
118
133
|
}
|
|
119
|
-
var
|
|
134
|
+
var U = {};
|
|
120
135
|
var je;
|
|
121
|
-
function
|
|
136
|
+
function _r() {
|
|
122
137
|
return je || (je = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
123
|
-
var
|
|
124
|
-
function
|
|
138
|
+
var t = De, o = /* @__PURE__ */ Symbol.for("react.element"), l = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), v = /* @__PURE__ */ Symbol.for("react.strict_mode"), c = /* @__PURE__ */ Symbol.for("react.profiler"), g = /* @__PURE__ */ Symbol.for("react.provider"), h = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), j = /* @__PURE__ */ Symbol.for("react.suspense"), _ = /* @__PURE__ */ Symbol.for("react.suspense_list"), T = /* @__PURE__ */ Symbol.for("react.memo"), S = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.offscreen"), te = Symbol.iterator, Ie = "@@iterator";
|
|
139
|
+
function Ae(e) {
|
|
125
140
|
if (e === null || typeof e != "object")
|
|
126
141
|
return null;
|
|
127
|
-
var r =
|
|
142
|
+
var r = te && e[te] || e[Ie];
|
|
128
143
|
return typeof r == "function" ? r : null;
|
|
129
144
|
}
|
|
130
|
-
var x =
|
|
145
|
+
var x = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
131
146
|
function m(e) {
|
|
132
147
|
{
|
|
133
|
-
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0),
|
|
134
|
-
n[
|
|
148
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
149
|
+
n[a - 1] = arguments[a];
|
|
135
150
|
Ve("error", e, n);
|
|
136
151
|
}
|
|
137
152
|
}
|
|
138
153
|
function Ve(e, r, n) {
|
|
139
154
|
{
|
|
140
|
-
var
|
|
155
|
+
var a = x.ReactDebugCurrentFrame, s = a.getStackAddendum();
|
|
141
156
|
s !== "" && (r += "%s", n = n.concat([s]));
|
|
142
|
-
var
|
|
157
|
+
var f = n.map(function(u) {
|
|
143
158
|
return String(u);
|
|
144
159
|
});
|
|
145
|
-
|
|
160
|
+
f.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, f);
|
|
146
161
|
}
|
|
147
162
|
}
|
|
148
|
-
var $e = !1,
|
|
149
|
-
|
|
163
|
+
var $e = !1, Ue = !1, We = !1, Ye = !1, Me = !1, ae;
|
|
164
|
+
ae = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
150
165
|
function Le(e) {
|
|
151
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
166
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === c || Me || e === v || e === j || e === _ || Ye || e === Y || $e || Ue || We || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === T || e.$$typeof === g || e.$$typeof === h || e.$$typeof === p || // This needs to include all possible module reference object
|
|
152
167
|
// types supported by any Flight configuration anywhere since
|
|
153
168
|
// we don't know which Flight build this will end up being used
|
|
154
169
|
// with.
|
|
155
|
-
e.$$typeof ===
|
|
170
|
+
e.$$typeof === ae || e.getModuleId !== void 0));
|
|
156
171
|
}
|
|
157
|
-
function
|
|
158
|
-
var
|
|
159
|
-
if (
|
|
160
|
-
return
|
|
172
|
+
function Be(e, r, n) {
|
|
173
|
+
var a = e.displayName;
|
|
174
|
+
if (a)
|
|
175
|
+
return a;
|
|
161
176
|
var s = r.displayName || r.name || "";
|
|
162
177
|
return s !== "" ? n + "(" + s + ")" : n;
|
|
163
178
|
}
|
|
164
|
-
function
|
|
179
|
+
function oe(e) {
|
|
165
180
|
return e.displayName || "Context";
|
|
166
181
|
}
|
|
167
182
|
function O(e) {
|
|
@@ -172,36 +187,36 @@ function yr() {
|
|
|
172
187
|
if (typeof e == "string")
|
|
173
188
|
return e;
|
|
174
189
|
switch (e) {
|
|
175
|
-
case
|
|
190
|
+
case d:
|
|
176
191
|
return "Fragment";
|
|
177
192
|
case l:
|
|
178
193
|
return "Portal";
|
|
179
|
-
case
|
|
194
|
+
case c:
|
|
180
195
|
return "Profiler";
|
|
181
|
-
case
|
|
196
|
+
case v:
|
|
182
197
|
return "StrictMode";
|
|
183
198
|
case j:
|
|
184
199
|
return "Suspense";
|
|
185
|
-
case
|
|
200
|
+
case _:
|
|
186
201
|
return "SuspenseList";
|
|
187
202
|
}
|
|
188
203
|
if (typeof e == "object")
|
|
189
204
|
switch (e.$$typeof) {
|
|
190
|
-
case C:
|
|
191
|
-
var r = e;
|
|
192
|
-
return te(r) + ".Consumer";
|
|
193
205
|
case h:
|
|
206
|
+
var r = e;
|
|
207
|
+
return oe(r) + ".Consumer";
|
|
208
|
+
case g:
|
|
194
209
|
var n = e;
|
|
195
|
-
return
|
|
196
|
-
case
|
|
197
|
-
return
|
|
210
|
+
return oe(n._context) + ".Provider";
|
|
211
|
+
case p:
|
|
212
|
+
return Be(e, e.render, "ForwardRef");
|
|
198
213
|
case T:
|
|
199
|
-
var
|
|
200
|
-
return
|
|
214
|
+
var a = e.displayName || null;
|
|
215
|
+
return a !== null ? a : O(e.type) || "Memo";
|
|
201
216
|
case S: {
|
|
202
|
-
var s = e,
|
|
217
|
+
var s = e, f = s._payload, u = s._init;
|
|
203
218
|
try {
|
|
204
|
-
return O(u(
|
|
219
|
+
return O(u(f));
|
|
205
220
|
} catch {
|
|
206
221
|
return null;
|
|
207
222
|
}
|
|
@@ -209,18 +224,18 @@ function yr() {
|
|
|
209
224
|
}
|
|
210
225
|
return null;
|
|
211
226
|
}
|
|
212
|
-
var w = Object.assign, A = 0,
|
|
213
|
-
function
|
|
227
|
+
var w = Object.assign, A = 0, ie, ue, le, se, ce, fe, de;
|
|
228
|
+
function ve() {
|
|
214
229
|
}
|
|
215
|
-
|
|
216
|
-
function
|
|
230
|
+
ve.__reactDisabledLog = !0;
|
|
231
|
+
function Ne() {
|
|
217
232
|
{
|
|
218
233
|
if (A === 0) {
|
|
219
|
-
|
|
234
|
+
ie = console.log, ue = console.info, le = console.warn, se = console.error, ce = console.group, fe = console.groupCollapsed, de = console.groupEnd;
|
|
220
235
|
var e = {
|
|
221
236
|
configurable: !0,
|
|
222
237
|
enumerable: !0,
|
|
223
|
-
value:
|
|
238
|
+
value: ve,
|
|
224
239
|
writable: !0
|
|
225
240
|
};
|
|
226
241
|
Object.defineProperties(console, {
|
|
@@ -236,7 +251,7 @@ function yr() {
|
|
|
236
251
|
A++;
|
|
237
252
|
}
|
|
238
253
|
}
|
|
239
|
-
function
|
|
254
|
+
function qe() {
|
|
240
255
|
{
|
|
241
256
|
if (A--, A === 0) {
|
|
242
257
|
var e = {
|
|
@@ -246,25 +261,25 @@ function yr() {
|
|
|
246
261
|
};
|
|
247
262
|
Object.defineProperties(console, {
|
|
248
263
|
log: w({}, e, {
|
|
249
|
-
value:
|
|
264
|
+
value: ie
|
|
250
265
|
}),
|
|
251
266
|
info: w({}, e, {
|
|
252
|
-
value:
|
|
267
|
+
value: ue
|
|
253
268
|
}),
|
|
254
269
|
warn: w({}, e, {
|
|
255
|
-
value:
|
|
270
|
+
value: le
|
|
256
271
|
}),
|
|
257
272
|
error: w({}, e, {
|
|
258
|
-
value:
|
|
273
|
+
value: se
|
|
259
274
|
}),
|
|
260
275
|
group: w({}, e, {
|
|
261
|
-
value:
|
|
276
|
+
value: ce
|
|
262
277
|
}),
|
|
263
278
|
groupCollapsed: w({}, e, {
|
|
264
|
-
value:
|
|
279
|
+
value: fe
|
|
265
280
|
}),
|
|
266
281
|
groupEnd: w({}, e, {
|
|
267
|
-
value:
|
|
282
|
+
value: de
|
|
268
283
|
})
|
|
269
284
|
});
|
|
270
285
|
}
|
|
@@ -278,8 +293,8 @@ function yr() {
|
|
|
278
293
|
try {
|
|
279
294
|
throw Error();
|
|
280
295
|
} catch (s) {
|
|
281
|
-
var
|
|
282
|
-
G =
|
|
296
|
+
var a = s.stack.trim().match(/\n( *(at )?)/);
|
|
297
|
+
G = a && a[1] || "";
|
|
283
298
|
}
|
|
284
299
|
return `
|
|
285
300
|
` + G + e;
|
|
@@ -287,10 +302,10 @@ function yr() {
|
|
|
287
302
|
}
|
|
288
303
|
var z = !1, L;
|
|
289
304
|
{
|
|
290
|
-
var
|
|
291
|
-
L = new
|
|
305
|
+
var Je = typeof WeakMap == "function" ? WeakMap : Map;
|
|
306
|
+
L = new Je();
|
|
292
307
|
}
|
|
293
|
-
function
|
|
308
|
+
function ge(e, r) {
|
|
294
309
|
if (!e || z)
|
|
295
310
|
return "";
|
|
296
311
|
{
|
|
@@ -298,12 +313,12 @@ function yr() {
|
|
|
298
313
|
if (n !== void 0)
|
|
299
314
|
return n;
|
|
300
315
|
}
|
|
301
|
-
var
|
|
316
|
+
var a;
|
|
302
317
|
z = !0;
|
|
303
318
|
var s = Error.prepareStackTrace;
|
|
304
319
|
Error.prepareStackTrace = void 0;
|
|
305
|
-
var
|
|
306
|
-
|
|
320
|
+
var f;
|
|
321
|
+
f = K.current, K.current = null, Ne();
|
|
307
322
|
try {
|
|
308
323
|
if (r) {
|
|
309
324
|
var u = function() {
|
|
@@ -317,14 +332,14 @@ function yr() {
|
|
|
317
332
|
try {
|
|
318
333
|
Reflect.construct(u, []);
|
|
319
334
|
} catch (E) {
|
|
320
|
-
|
|
335
|
+
a = E;
|
|
321
336
|
}
|
|
322
337
|
Reflect.construct(e, [], u);
|
|
323
338
|
} else {
|
|
324
339
|
try {
|
|
325
340
|
u.call();
|
|
326
341
|
} catch (E) {
|
|
327
|
-
|
|
342
|
+
a = E;
|
|
328
343
|
}
|
|
329
344
|
e.call(u.prototype);
|
|
330
345
|
}
|
|
@@ -332,95 +347,95 @@ function yr() {
|
|
|
332
347
|
try {
|
|
333
348
|
throw Error();
|
|
334
349
|
} catch (E) {
|
|
335
|
-
|
|
350
|
+
a = E;
|
|
336
351
|
}
|
|
337
352
|
e();
|
|
338
353
|
}
|
|
339
354
|
} catch (E) {
|
|
340
|
-
if (E &&
|
|
341
|
-
for (var
|
|
342
|
-
`),
|
|
343
|
-
`),
|
|
344
|
-
|
|
345
|
-
for (;
|
|
346
|
-
if (
|
|
347
|
-
if (
|
|
355
|
+
if (E && a && typeof E.stack == "string") {
|
|
356
|
+
for (var i = E.stack.split(`
|
|
357
|
+
`), y = a.stack.split(`
|
|
358
|
+
`), R = i.length - 1, b = y.length - 1; R >= 1 && b >= 0 && i[R] !== y[b]; )
|
|
359
|
+
b--;
|
|
360
|
+
for (; R >= 1 && b >= 0; R--, b--)
|
|
361
|
+
if (i[R] !== y[b]) {
|
|
362
|
+
if (R !== 1 || b !== 1)
|
|
348
363
|
do
|
|
349
|
-
if (
|
|
350
|
-
var
|
|
351
|
-
` +
|
|
352
|
-
return e.displayName &&
|
|
364
|
+
if (R--, b--, b < 0 || i[R] !== y[b]) {
|
|
365
|
+
var C = `
|
|
366
|
+
` + i[R].replace(" at new ", " at ");
|
|
367
|
+
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, C), C;
|
|
353
368
|
}
|
|
354
|
-
while (
|
|
369
|
+
while (R >= 1 && b >= 0);
|
|
355
370
|
break;
|
|
356
371
|
}
|
|
357
372
|
}
|
|
358
373
|
} finally {
|
|
359
|
-
z = !1, K.current =
|
|
374
|
+
z = !1, K.current = f, qe(), Error.prepareStackTrace = s;
|
|
360
375
|
}
|
|
361
|
-
var
|
|
376
|
+
var D = e ? e.displayName || e.name : "", P = D ? M(D) : "";
|
|
362
377
|
return typeof e == "function" && L.set(e, P), P;
|
|
363
378
|
}
|
|
364
379
|
function Ke(e, r, n) {
|
|
365
|
-
return
|
|
380
|
+
return ge(e, !1);
|
|
366
381
|
}
|
|
367
382
|
function Ge(e) {
|
|
368
383
|
var r = e.prototype;
|
|
369
384
|
return !!(r && r.isReactComponent);
|
|
370
385
|
}
|
|
371
|
-
function
|
|
386
|
+
function B(e, r, n) {
|
|
372
387
|
if (e == null)
|
|
373
388
|
return "";
|
|
374
389
|
if (typeof e == "function")
|
|
375
|
-
return
|
|
390
|
+
return ge(e, Ge(e));
|
|
376
391
|
if (typeof e == "string")
|
|
377
392
|
return M(e);
|
|
378
393
|
switch (e) {
|
|
379
394
|
case j:
|
|
380
395
|
return M("Suspense");
|
|
381
|
-
case
|
|
396
|
+
case _:
|
|
382
397
|
return M("SuspenseList");
|
|
383
398
|
}
|
|
384
399
|
if (typeof e == "object")
|
|
385
400
|
switch (e.$$typeof) {
|
|
386
|
-
case
|
|
401
|
+
case p:
|
|
387
402
|
return Ke(e.render);
|
|
388
403
|
case T:
|
|
389
|
-
return
|
|
404
|
+
return B(e.type, r, n);
|
|
390
405
|
case S: {
|
|
391
|
-
var
|
|
406
|
+
var a = e, s = a._payload, f = a._init;
|
|
392
407
|
try {
|
|
393
|
-
return
|
|
408
|
+
return B(f(s), r, n);
|
|
394
409
|
} catch {
|
|
395
410
|
}
|
|
396
411
|
}
|
|
397
412
|
}
|
|
398
413
|
return "";
|
|
399
414
|
}
|
|
400
|
-
var
|
|
401
|
-
function
|
|
415
|
+
var V = Object.prototype.hasOwnProperty, he = {}, Re = x.ReactDebugCurrentFrame;
|
|
416
|
+
function N(e) {
|
|
402
417
|
if (e) {
|
|
403
|
-
var r = e._owner, n =
|
|
404
|
-
|
|
418
|
+
var r = e._owner, n = B(e.type, e._source, r ? r.type : null);
|
|
419
|
+
Re.setExtraStackFrame(n);
|
|
405
420
|
} else
|
|
406
|
-
|
|
421
|
+
Re.setExtraStackFrame(null);
|
|
407
422
|
}
|
|
408
|
-
function ze(e, r, n,
|
|
423
|
+
function ze(e, r, n, a, s) {
|
|
409
424
|
{
|
|
410
|
-
var
|
|
425
|
+
var f = Function.call.bind(V);
|
|
411
426
|
for (var u in e)
|
|
412
|
-
if (
|
|
413
|
-
var
|
|
427
|
+
if (f(e, u)) {
|
|
428
|
+
var i = void 0;
|
|
414
429
|
try {
|
|
415
430
|
if (typeof e[u] != "function") {
|
|
416
|
-
var
|
|
417
|
-
throw
|
|
431
|
+
var y = Error((a || "React class") + ": " + n + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
432
|
+
throw y.name = "Invariant Violation", y;
|
|
418
433
|
}
|
|
419
|
-
|
|
420
|
-
} catch (
|
|
421
|
-
|
|
434
|
+
i = e[u](r, u, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
435
|
+
} catch (R) {
|
|
436
|
+
i = R;
|
|
422
437
|
}
|
|
423
|
-
|
|
438
|
+
i && !(i instanceof Error) && (N(s), m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", n, u, typeof i), N(null)), i instanceof Error && !(i.message in he) && (he[i.message] = !0, N(s), m("Failed %s type: %s", n, i.message), N(null));
|
|
424
439
|
}
|
|
425
440
|
}
|
|
426
441
|
}
|
|
@@ -436,26 +451,26 @@ function yr() {
|
|
|
436
451
|
}
|
|
437
452
|
function Ze(e) {
|
|
438
453
|
try {
|
|
439
|
-
return
|
|
454
|
+
return be(e), !1;
|
|
440
455
|
} catch {
|
|
441
456
|
return !0;
|
|
442
457
|
}
|
|
443
458
|
}
|
|
444
|
-
function
|
|
459
|
+
function be(e) {
|
|
445
460
|
return "" + e;
|
|
446
461
|
}
|
|
447
|
-
function
|
|
462
|
+
function pe(e) {
|
|
448
463
|
if (Ze(e))
|
|
449
|
-
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)),
|
|
464
|
+
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), be(e);
|
|
450
465
|
}
|
|
451
|
-
var
|
|
466
|
+
var me = x.ReactCurrentOwner, Qe = {
|
|
452
467
|
key: !0,
|
|
453
468
|
ref: !0,
|
|
454
469
|
__self: !0,
|
|
455
470
|
__source: !0
|
|
456
|
-
},
|
|
471
|
+
}, ye, Ee;
|
|
457
472
|
function er(e) {
|
|
458
|
-
if (
|
|
473
|
+
if (V.call(e, "ref")) {
|
|
459
474
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
460
475
|
if (r && r.isReactWarning)
|
|
461
476
|
return !1;
|
|
@@ -463,7 +478,7 @@ function yr() {
|
|
|
463
478
|
return e.ref !== void 0;
|
|
464
479
|
}
|
|
465
480
|
function rr(e) {
|
|
466
|
-
if (
|
|
481
|
+
if (V.call(e, "key")) {
|
|
467
482
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
468
483
|
if (r && r.isReactWarning)
|
|
469
484
|
return !1;
|
|
@@ -471,12 +486,12 @@ function yr() {
|
|
|
471
486
|
return e.key !== void 0;
|
|
472
487
|
}
|
|
473
488
|
function nr(e, r) {
|
|
474
|
-
typeof e.ref == "string" &&
|
|
489
|
+
typeof e.ref == "string" && me.current;
|
|
475
490
|
}
|
|
476
491
|
function tr(e, r) {
|
|
477
492
|
{
|
|
478
493
|
var n = function() {
|
|
479
|
-
|
|
494
|
+
ye || (ye = !0, m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
480
495
|
};
|
|
481
496
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
482
497
|
get: n,
|
|
@@ -487,7 +502,7 @@ function yr() {
|
|
|
487
502
|
function ar(e, r) {
|
|
488
503
|
{
|
|
489
504
|
var n = function() {
|
|
490
|
-
|
|
505
|
+
Ee || (Ee = !0, m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
491
506
|
};
|
|
492
507
|
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
493
508
|
get: n,
|
|
@@ -495,67 +510,67 @@ function yr() {
|
|
|
495
510
|
});
|
|
496
511
|
}
|
|
497
512
|
}
|
|
498
|
-
var or = function(e, r, n,
|
|
499
|
-
var
|
|
513
|
+
var or = function(e, r, n, a, s, f, u) {
|
|
514
|
+
var i = {
|
|
500
515
|
// This tag allows us to uniquely identify this as a React Element
|
|
501
|
-
$$typeof:
|
|
516
|
+
$$typeof: o,
|
|
502
517
|
// Built-in properties that belong on the element
|
|
503
518
|
type: e,
|
|
504
519
|
key: r,
|
|
505
520
|
ref: n,
|
|
506
521
|
props: u,
|
|
507
522
|
// Record the component responsible for creating this element.
|
|
508
|
-
_owner:
|
|
523
|
+
_owner: f
|
|
509
524
|
};
|
|
510
|
-
return
|
|
525
|
+
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
511
526
|
configurable: !1,
|
|
512
527
|
enumerable: !1,
|
|
513
528
|
writable: !0,
|
|
514
529
|
value: !1
|
|
515
|
-
}), Object.defineProperty(
|
|
530
|
+
}), Object.defineProperty(i, "_self", {
|
|
516
531
|
configurable: !1,
|
|
517
532
|
enumerable: !1,
|
|
518
533
|
writable: !1,
|
|
519
|
-
value:
|
|
520
|
-
}), Object.defineProperty(
|
|
534
|
+
value: a
|
|
535
|
+
}), Object.defineProperty(i, "_source", {
|
|
521
536
|
configurable: !1,
|
|
522
537
|
enumerable: !1,
|
|
523
538
|
writable: !1,
|
|
524
539
|
value: s
|
|
525
|
-
}), Object.freeze && (Object.freeze(
|
|
540
|
+
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
526
541
|
};
|
|
527
|
-
function ir(e, r, n,
|
|
542
|
+
function ir(e, r, n, a, s) {
|
|
528
543
|
{
|
|
529
|
-
var
|
|
530
|
-
n !== void 0 && (
|
|
531
|
-
for (
|
|
532
|
-
|
|
544
|
+
var f, u = {}, i = null, y = null;
|
|
545
|
+
n !== void 0 && (pe(n), i = "" + n), rr(r) && (pe(r.key), i = "" + r.key), er(r) && (y = r.ref, nr(r, s));
|
|
546
|
+
for (f in r)
|
|
547
|
+
V.call(r, f) && !Qe.hasOwnProperty(f) && (u[f] = r[f]);
|
|
533
548
|
if (e && e.defaultProps) {
|
|
534
|
-
var
|
|
535
|
-
for (
|
|
536
|
-
u[
|
|
549
|
+
var R = e.defaultProps;
|
|
550
|
+
for (f in R)
|
|
551
|
+
u[f] === void 0 && (u[f] = R[f]);
|
|
537
552
|
}
|
|
538
|
-
if (
|
|
539
|
-
var
|
|
540
|
-
|
|
553
|
+
if (i || y) {
|
|
554
|
+
var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
555
|
+
i && tr(u, b), y && ar(u, b);
|
|
541
556
|
}
|
|
542
|
-
return or(e,
|
|
557
|
+
return or(e, i, y, s, a, me.current, u);
|
|
543
558
|
}
|
|
544
559
|
}
|
|
545
|
-
var H = x.ReactCurrentOwner,
|
|
546
|
-
function
|
|
560
|
+
var H = x.ReactCurrentOwner, _e = x.ReactDebugCurrentFrame;
|
|
561
|
+
function k(e) {
|
|
547
562
|
if (e) {
|
|
548
|
-
var r = e._owner, n =
|
|
549
|
-
|
|
563
|
+
var r = e._owner, n = B(e.type, e._source, r ? r.type : null);
|
|
564
|
+
_e.setExtraStackFrame(n);
|
|
550
565
|
} else
|
|
551
|
-
|
|
566
|
+
_e.setExtraStackFrame(null);
|
|
552
567
|
}
|
|
553
568
|
var Z;
|
|
554
569
|
Z = !1;
|
|
555
570
|
function Q(e) {
|
|
556
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
571
|
+
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
557
572
|
}
|
|
558
|
-
function
|
|
573
|
+
function Ce() {
|
|
559
574
|
{
|
|
560
575
|
if (H.current) {
|
|
561
576
|
var e = O(H.current.type);
|
|
@@ -570,10 +585,10 @@ Check the render method of \`` + e + "`.";
|
|
|
570
585
|
function ur(e) {
|
|
571
586
|
return "";
|
|
572
587
|
}
|
|
573
|
-
var
|
|
588
|
+
var Te = {};
|
|
574
589
|
function lr(e) {
|
|
575
590
|
{
|
|
576
|
-
var r =
|
|
591
|
+
var r = Ce();
|
|
577
592
|
if (!r) {
|
|
578
593
|
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
579
594
|
n && (r = `
|
|
@@ -583,35 +598,35 @@ Check the top-level render call using <` + n + ">.");
|
|
|
583
598
|
return r;
|
|
584
599
|
}
|
|
585
600
|
}
|
|
586
|
-
function
|
|
601
|
+
function Oe(e, r) {
|
|
587
602
|
{
|
|
588
603
|
if (!e._store || e._store.validated || e.key != null)
|
|
589
604
|
return;
|
|
590
605
|
e._store.validated = !0;
|
|
591
606
|
var n = lr(r);
|
|
592
|
-
if (
|
|
607
|
+
if (Te[n])
|
|
593
608
|
return;
|
|
594
|
-
|
|
595
|
-
var
|
|
596
|
-
e && e._owner && e._owner !== H.current && (
|
|
609
|
+
Te[n] = !0;
|
|
610
|
+
var a = "";
|
|
611
|
+
e && e._owner && e._owner !== H.current && (a = " It was passed a child from " + O(e._owner.type) + "."), k(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), k(null);
|
|
597
612
|
}
|
|
598
613
|
}
|
|
599
|
-
function
|
|
614
|
+
function Se(e, r) {
|
|
600
615
|
{
|
|
601
616
|
if (typeof e != "object")
|
|
602
617
|
return;
|
|
603
618
|
if (X(e))
|
|
604
619
|
for (var n = 0; n < e.length; n++) {
|
|
605
|
-
var
|
|
606
|
-
Q(
|
|
620
|
+
var a = e[n];
|
|
621
|
+
Q(a) && Oe(a, r);
|
|
607
622
|
}
|
|
608
623
|
else if (Q(e))
|
|
609
624
|
e._store && (e._store.validated = !0);
|
|
610
625
|
else if (e) {
|
|
611
|
-
var s =
|
|
626
|
+
var s = Ae(e);
|
|
612
627
|
if (typeof s == "function" && s !== e.entries)
|
|
613
|
-
for (var
|
|
614
|
-
Q(u.value) &&
|
|
628
|
+
for (var f = s.call(e), u; !(u = f.next()).done; )
|
|
629
|
+
Q(u.value) && Oe(u.value, r);
|
|
615
630
|
}
|
|
616
631
|
}
|
|
617
632
|
}
|
|
@@ -623,15 +638,15 @@ Check the top-level render call using <` + n + ">.");
|
|
|
623
638
|
var n;
|
|
624
639
|
if (typeof r == "function")
|
|
625
640
|
n = r.propTypes;
|
|
626
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
641
|
+
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
|
|
627
642
|
// Inner props are checked in the reconciler.
|
|
628
643
|
r.$$typeof === T))
|
|
629
644
|
n = r.propTypes;
|
|
630
645
|
else
|
|
631
646
|
return;
|
|
632
647
|
if (n) {
|
|
633
|
-
var
|
|
634
|
-
ze(n, e.props, "prop",
|
|
648
|
+
var a = O(r);
|
|
649
|
+
ze(n, e.props, "prop", a, e);
|
|
635
650
|
} else if (r.PropTypes !== void 0 && !Z) {
|
|
636
651
|
Z = !0;
|
|
637
652
|
var s = O(r);
|
|
@@ -643,80 +658,83 @@ Check the top-level render call using <` + n + ">.");
|
|
|
643
658
|
function cr(e) {
|
|
644
659
|
{
|
|
645
660
|
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
|
646
|
-
var
|
|
647
|
-
if (
|
|
648
|
-
|
|
661
|
+
var a = r[n];
|
|
662
|
+
if (a !== "children" && a !== "key") {
|
|
663
|
+
k(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), k(null);
|
|
649
664
|
break;
|
|
650
665
|
}
|
|
651
666
|
}
|
|
652
|
-
e.ref !== null && (
|
|
667
|
+
e.ref !== null && (k(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
653
668
|
}
|
|
654
669
|
}
|
|
655
|
-
var
|
|
656
|
-
function
|
|
670
|
+
var we = {};
|
|
671
|
+
function Pe(e, r, n, a, s, f) {
|
|
657
672
|
{
|
|
658
673
|
var u = Le(e);
|
|
659
674
|
if (!u) {
|
|
660
|
-
var
|
|
661
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
662
|
-
var
|
|
663
|
-
|
|
664
|
-
var
|
|
665
|
-
e === null ?
|
|
675
|
+
var i = "";
|
|
676
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
677
|
+
var y = ur();
|
|
678
|
+
y ? i += y : i += Ce();
|
|
679
|
+
var R;
|
|
680
|
+
e === null ? R = "null" : X(e) ? R = "array" : e !== void 0 && e.$$typeof === o ? (R = "<" + (O(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, i);
|
|
666
681
|
}
|
|
667
|
-
var
|
|
668
|
-
if (
|
|
669
|
-
return
|
|
682
|
+
var b = ir(e, r, n, s, f);
|
|
683
|
+
if (b == null)
|
|
684
|
+
return b;
|
|
670
685
|
if (u) {
|
|
671
|
-
var
|
|
672
|
-
if (
|
|
673
|
-
if (
|
|
674
|
-
if (X(
|
|
675
|
-
for (var
|
|
676
|
-
|
|
677
|
-
Object.freeze && Object.freeze(
|
|
686
|
+
var C = r.children;
|
|
687
|
+
if (C !== void 0)
|
|
688
|
+
if (a)
|
|
689
|
+
if (X(C)) {
|
|
690
|
+
for (var D = 0; D < C.length; D++)
|
|
691
|
+
Se(C[D], e);
|
|
692
|
+
Object.freeze && Object.freeze(C);
|
|
678
693
|
} else
|
|
679
694
|
m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
680
695
|
else
|
|
681
|
-
|
|
696
|
+
Se(C, e);
|
|
682
697
|
}
|
|
683
|
-
if (
|
|
684
|
-
var P = O(e), E = Object.keys(r).filter(function(
|
|
685
|
-
return
|
|
698
|
+
if (V.call(r, "key")) {
|
|
699
|
+
var P = O(e), E = Object.keys(r).filter(function(Rr) {
|
|
700
|
+
return Rr !== "key";
|
|
686
701
|
}), ee = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
687
|
-
if (!
|
|
688
|
-
var
|
|
702
|
+
if (!we[P + ee]) {
|
|
703
|
+
var hr = E.length > 0 ? "{" + E.join(": ..., ") + ": ...}" : "{}";
|
|
689
704
|
m(`A props object containing a "key" prop is being spread into JSX:
|
|
690
705
|
let props = %s;
|
|
691
706
|
<%s {...props} />
|
|
692
707
|
React keys must be passed directly to JSX without using spread:
|
|
693
708
|
let props = %s;
|
|
694
|
-
<%s key={someKey} {...props} />`, ee, P,
|
|
709
|
+
<%s key={someKey} {...props} />`, ee, P, hr, P), we[P + ee] = !0;
|
|
695
710
|
}
|
|
696
711
|
}
|
|
697
|
-
return e ===
|
|
712
|
+
return e === d ? cr(b) : sr(b), b;
|
|
698
713
|
}
|
|
699
714
|
}
|
|
700
715
|
function fr(e, r, n) {
|
|
701
|
-
return
|
|
716
|
+
return Pe(e, r, n, !0);
|
|
702
717
|
}
|
|
703
718
|
function dr(e, r, n) {
|
|
704
|
-
return
|
|
719
|
+
return Pe(e, r, n, !1);
|
|
705
720
|
}
|
|
706
721
|
var vr = dr, gr = fr;
|
|
707
|
-
|
|
708
|
-
})()),
|
|
722
|
+
U.Fragment = d, U.jsx = vr, U.jsxs = gr;
|
|
723
|
+
})()), U;
|
|
709
724
|
}
|
|
710
725
|
var xe;
|
|
711
|
-
function
|
|
712
|
-
return xe || (xe = 1, process.env.NODE_ENV === "production" ?
|
|
726
|
+
function Cr() {
|
|
727
|
+
return xe || (xe = 1, process.env.NODE_ENV === "production" ? q.exports = Er() : q.exports = _r()), q.exports;
|
|
713
728
|
}
|
|
714
|
-
var
|
|
715
|
-
function
|
|
716
|
-
const
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
729
|
+
var ke = Cr();
|
|
730
|
+
function Fr(t) {
|
|
731
|
+
const o = re(null), l = mr(t.form, t.path, {
|
|
732
|
+
overrideInitialValue: t.overrideInitialValue ?? !0,
|
|
733
|
+
defaultValue: typeof t.defaultValue == "function" ? t.defaultValue() : t.defaultValue
|
|
734
|
+
}), d = {
|
|
735
|
+
onChange(v) {
|
|
736
|
+
const { target: c } = v;
|
|
737
|
+
c === l.boundElement && "value" in c && typeof c.value == "string" && l.setValue(c.value, {
|
|
720
738
|
shouldTouch: !0,
|
|
721
739
|
shouldMarkDirty: !0
|
|
722
740
|
});
|
|
@@ -725,31 +743,31 @@ function Pr(a) {
|
|
|
725
743
|
l.touch();
|
|
726
744
|
},
|
|
727
745
|
onBlur() {
|
|
728
|
-
(
|
|
746
|
+
(t.form.hookConfigs?.validateMode === "onBlur" || t.form.hookConfigs?.validateMode === "onChange") && t.form.controller.validateField(t.path);
|
|
729
747
|
}
|
|
730
748
|
};
|
|
731
|
-
return
|
|
732
|
-
const { events:
|
|
733
|
-
return
|
|
734
|
-
|
|
735
|
-
|
|
749
|
+
return I(() => {
|
|
750
|
+
const { events: v } = t.form.controller;
|
|
751
|
+
return W(
|
|
752
|
+
v.on("valueChanged", (c) => {
|
|
753
|
+
c !== t.path && !F.isDescendant(c, t.path) || t.form.hookConfigs?.validateMode === "onChange" && t.form.controller.validateField(t.path);
|
|
736
754
|
})
|
|
737
755
|
);
|
|
738
|
-
}, []),
|
|
739
|
-
|
|
740
|
-
}), []), /* @__PURE__ */
|
|
741
|
-
ref:
|
|
756
|
+
}, []), I(() => (l.bindElement(o.current), () => {
|
|
757
|
+
t.unbindOnUnmount && t.form.controller.unbindField(t.path);
|
|
758
|
+
}), []), /* @__PURE__ */ ke.jsx(ke.Fragment, { children: t.render({
|
|
759
|
+
ref: o,
|
|
742
760
|
value: l.value,
|
|
743
|
-
handlers:
|
|
761
|
+
handlers: d,
|
|
744
762
|
field: l
|
|
745
763
|
}) });
|
|
746
764
|
}
|
|
747
765
|
export {
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
766
|
+
Fr as FieldRenderer,
|
|
767
|
+
Sr as useForm,
|
|
768
|
+
Pr as useFormErrorObserver,
|
|
751
769
|
mr as useFormField,
|
|
752
|
-
|
|
753
|
-
|
|
770
|
+
wr as useFormValuesObserver,
|
|
771
|
+
J as useRenderControl
|
|
754
772
|
};
|
|
755
773
|
//# sourceMappingURL=index.js.map
|