@reactfast/forms 0.1.8 → 0.1.10
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/forms.cjs +53 -1
- package/dist/forms.es.js +15465 -8
- package/dist/forms.umd.js +14 -14
- package/package.json +1 -1
- package/dist/barrel-Bm3bvhaX.cjs +0 -24
- package/dist/barrel-Y1-0ECY7.js +0 -14536
- package/dist/index-BLii0zfI.cjs +0 -30
- package/dist/index-BxZpfcT4.js +0 -956
package/dist/index-BxZpfcT4.js
DELETED
|
@@ -1,956 +0,0 @@
|
|
|
1
|
-
import Ye from "react";
|
|
2
|
-
var he = { exports: {} }, X = {};
|
|
3
|
-
/**
|
|
4
|
-
* @license React
|
|
5
|
-
* react-jsx-runtime.production.min.js
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var We;
|
|
13
|
-
function hr() {
|
|
14
|
-
if (We) return X;
|
|
15
|
-
We = 1;
|
|
16
|
-
var r = Ye, l = Symbol.for("react.element"), o = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, f = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
-
function E(s, a, m) {
|
|
18
|
-
var v, T = {}, _ = null, g = null;
|
|
19
|
-
m !== void 0 && (_ = "" + m), a.key !== void 0 && (_ = "" + a.key), a.ref !== void 0 && (g = a.ref);
|
|
20
|
-
for (v in a) c.call(a, v) && !u.hasOwnProperty(v) && (T[v] = a[v]);
|
|
21
|
-
if (s && s.defaultProps) for (v in a = s.defaultProps, a) T[v] === void 0 && (T[v] = a[v]);
|
|
22
|
-
return { $$typeof: l, type: s, key: _, ref: g, props: T, _owner: f.current };
|
|
23
|
-
}
|
|
24
|
-
return X.Fragment = o, X.jsx = E, X.jsxs = E, X;
|
|
25
|
-
}
|
|
26
|
-
var V = {};
|
|
27
|
-
/**
|
|
28
|
-
* @license React
|
|
29
|
-
* react-jsx-runtime.development.js
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/
|
|
36
|
-
var $e;
|
|
37
|
-
function yr() {
|
|
38
|
-
return $e || ($e = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var r = Ye, l = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), C = Symbol.iterator, q = "@@iterator";
|
|
40
|
-
function M(e) {
|
|
41
|
-
if (e === null || typeof e != "object")
|
|
42
|
-
return null;
|
|
43
|
-
var t = C && e[C] || e[q];
|
|
44
|
-
return typeof t == "function" ? t : null;
|
|
45
|
-
}
|
|
46
|
-
var x = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
-
function R(e) {
|
|
48
|
-
{
|
|
49
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
50
|
-
n[i - 1] = arguments[i];
|
|
51
|
-
N("error", e, n);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function N(e, t, n) {
|
|
55
|
-
{
|
|
56
|
-
var i = x.ReactDebugCurrentFrame, h = i.getStackAddendum();
|
|
57
|
-
h !== "" && (t += "%s", n = n.concat([h]));
|
|
58
|
-
var y = n.map(function(p) {
|
|
59
|
-
return String(p);
|
|
60
|
-
});
|
|
61
|
-
y.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, y);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
var J = !1, Q = !1, Y = !1, D = !1, W = !1, U;
|
|
65
|
-
U = Symbol.for("react.module.reference");
|
|
66
|
-
function ee(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e === u || W || e === f || e === m || e === v || D || e === g || J || Q || Y || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === T || e.$$typeof === E || e.$$typeof === s || e.$$typeof === a || // This needs to include all possible module reference object
|
|
68
|
-
// types supported by any Flight configuration anywhere since
|
|
69
|
-
// we don't know which Flight build this will end up being used
|
|
70
|
-
// with.
|
|
71
|
-
e.$$typeof === U || e.getModuleId !== void 0));
|
|
72
|
-
}
|
|
73
|
-
function ue(e, t, n) {
|
|
74
|
-
var i = e.displayName;
|
|
75
|
-
if (i)
|
|
76
|
-
return i;
|
|
77
|
-
var h = t.displayName || t.name || "";
|
|
78
|
-
return h !== "" ? n + "(" + h + ")" : n;
|
|
79
|
-
}
|
|
80
|
-
function K(e) {
|
|
81
|
-
return e.displayName || "Context";
|
|
82
|
-
}
|
|
83
|
-
function j(e) {
|
|
84
|
-
if (e == null)
|
|
85
|
-
return null;
|
|
86
|
-
if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
|
-
return e.displayName || e.name || null;
|
|
88
|
-
if (typeof e == "string")
|
|
89
|
-
return e;
|
|
90
|
-
switch (e) {
|
|
91
|
-
case c:
|
|
92
|
-
return "Fragment";
|
|
93
|
-
case o:
|
|
94
|
-
return "Portal";
|
|
95
|
-
case u:
|
|
96
|
-
return "Profiler";
|
|
97
|
-
case f:
|
|
98
|
-
return "StrictMode";
|
|
99
|
-
case m:
|
|
100
|
-
return "Suspense";
|
|
101
|
-
case v:
|
|
102
|
-
return "SuspenseList";
|
|
103
|
-
}
|
|
104
|
-
if (typeof e == "object")
|
|
105
|
-
switch (e.$$typeof) {
|
|
106
|
-
case s:
|
|
107
|
-
var t = e;
|
|
108
|
-
return K(t) + ".Consumer";
|
|
109
|
-
case E:
|
|
110
|
-
var n = e;
|
|
111
|
-
return K(n._context) + ".Provider";
|
|
112
|
-
case a:
|
|
113
|
-
return ue(e, e.render, "ForwardRef");
|
|
114
|
-
case T:
|
|
115
|
-
var i = e.displayName || null;
|
|
116
|
-
return i !== null ? i : j(e.type) || "Memo";
|
|
117
|
-
case _: {
|
|
118
|
-
var h = e, y = h._payload, p = h._init;
|
|
119
|
-
try {
|
|
120
|
-
return j(p(y));
|
|
121
|
-
} catch {
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
var P = Object.assign, I = 0, z, re, te, G, be, ge, Ee;
|
|
129
|
-
function Re() {
|
|
130
|
-
}
|
|
131
|
-
Re.__reactDisabledLog = !0;
|
|
132
|
-
function Be() {
|
|
133
|
-
{
|
|
134
|
-
if (I === 0) {
|
|
135
|
-
z = console.log, re = console.info, te = console.warn, G = console.error, be = console.group, ge = console.groupCollapsed, Ee = console.groupEnd;
|
|
136
|
-
var e = {
|
|
137
|
-
configurable: !0,
|
|
138
|
-
enumerable: !0,
|
|
139
|
-
value: Re,
|
|
140
|
-
writable: !0
|
|
141
|
-
};
|
|
142
|
-
Object.defineProperties(console, {
|
|
143
|
-
info: e,
|
|
144
|
-
log: e,
|
|
145
|
-
warn: e,
|
|
146
|
-
error: e,
|
|
147
|
-
group: e,
|
|
148
|
-
groupCollapsed: e,
|
|
149
|
-
groupEnd: e
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
I++;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function qe() {
|
|
156
|
-
{
|
|
157
|
-
if (I--, I === 0) {
|
|
158
|
-
var e = {
|
|
159
|
-
configurable: !0,
|
|
160
|
-
enumerable: !0,
|
|
161
|
-
writable: !0
|
|
162
|
-
};
|
|
163
|
-
Object.defineProperties(console, {
|
|
164
|
-
log: P({}, e, {
|
|
165
|
-
value: z
|
|
166
|
-
}),
|
|
167
|
-
info: P({}, e, {
|
|
168
|
-
value: re
|
|
169
|
-
}),
|
|
170
|
-
warn: P({}, e, {
|
|
171
|
-
value: te
|
|
172
|
-
}),
|
|
173
|
-
error: P({}, e, {
|
|
174
|
-
value: G
|
|
175
|
-
}),
|
|
176
|
-
group: P({}, e, {
|
|
177
|
-
value: be
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: P({}, e, {
|
|
180
|
-
value: ge
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: P({}, e, {
|
|
183
|
-
value: Ee
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
I < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var se = x.ReactCurrentDispatcher, ce;
|
|
191
|
-
function ne(e, t, n) {
|
|
192
|
-
{
|
|
193
|
-
if (ce === void 0)
|
|
194
|
-
try {
|
|
195
|
-
throw Error();
|
|
196
|
-
} catch (h) {
|
|
197
|
-
var i = h.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
ce = i && i[1] || "";
|
|
199
|
-
}
|
|
200
|
-
return `
|
|
201
|
-
` + ce + e;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
var le = !1, ae;
|
|
205
|
-
{
|
|
206
|
-
var Je = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
ae = new Je();
|
|
208
|
-
}
|
|
209
|
-
function _e(e, t) {
|
|
210
|
-
if (!e || le)
|
|
211
|
-
return "";
|
|
212
|
-
{
|
|
213
|
-
var n = ae.get(e);
|
|
214
|
-
if (n !== void 0)
|
|
215
|
-
return n;
|
|
216
|
-
}
|
|
217
|
-
var i;
|
|
218
|
-
le = !0;
|
|
219
|
-
var h = Error.prepareStackTrace;
|
|
220
|
-
Error.prepareStackTrace = void 0;
|
|
221
|
-
var y;
|
|
222
|
-
y = se.current, se.current = null, Be();
|
|
223
|
-
try {
|
|
224
|
-
if (t) {
|
|
225
|
-
var p = function() {
|
|
226
|
-
throw Error();
|
|
227
|
-
};
|
|
228
|
-
if (Object.defineProperty(p.prototype, "props", {
|
|
229
|
-
set: function() {
|
|
230
|
-
throw Error();
|
|
231
|
-
}
|
|
232
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
-
try {
|
|
234
|
-
Reflect.construct(p, []);
|
|
235
|
-
} catch (O) {
|
|
236
|
-
i = O;
|
|
237
|
-
}
|
|
238
|
-
Reflect.construct(e, [], p);
|
|
239
|
-
} else {
|
|
240
|
-
try {
|
|
241
|
-
p.call();
|
|
242
|
-
} catch (O) {
|
|
243
|
-
i = O;
|
|
244
|
-
}
|
|
245
|
-
e.call(p.prototype);
|
|
246
|
-
}
|
|
247
|
-
} else {
|
|
248
|
-
try {
|
|
249
|
-
throw Error();
|
|
250
|
-
} catch (O) {
|
|
251
|
-
i = O;
|
|
252
|
-
}
|
|
253
|
-
e();
|
|
254
|
-
}
|
|
255
|
-
} catch (O) {
|
|
256
|
-
if (O && i && typeof O.stack == "string") {
|
|
257
|
-
for (var d = O.stack.split(`
|
|
258
|
-
`), A = i.stack.split(`
|
|
259
|
-
`), w = d.length - 1, S = A.length - 1; w >= 1 && S >= 0 && d[w] !== A[S]; )
|
|
260
|
-
S--;
|
|
261
|
-
for (; w >= 1 && S >= 0; w--, S--)
|
|
262
|
-
if (d[w] !== A[S]) {
|
|
263
|
-
if (w !== 1 || S !== 1)
|
|
264
|
-
do
|
|
265
|
-
if (w--, S--, S < 0 || d[w] !== A[S]) {
|
|
266
|
-
var k = `
|
|
267
|
-
` + d[w].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && ae.set(e, k), k;
|
|
269
|
-
}
|
|
270
|
-
while (w >= 1 && S >= 0);
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
} finally {
|
|
275
|
-
le = !1, se.current = y, qe(), Error.prepareStackTrace = h;
|
|
276
|
-
}
|
|
277
|
-
var B = e ? e.displayName || e.name : "", $ = B ? ne(B) : "";
|
|
278
|
-
return typeof e == "function" && ae.set(e, $), $;
|
|
279
|
-
}
|
|
280
|
-
function Ke(e, t, n) {
|
|
281
|
-
return _e(e, !1);
|
|
282
|
-
}
|
|
283
|
-
function ze(e) {
|
|
284
|
-
var t = e.prototype;
|
|
285
|
-
return !!(t && t.isReactComponent);
|
|
286
|
-
}
|
|
287
|
-
function ie(e, t, n) {
|
|
288
|
-
if (e == null)
|
|
289
|
-
return "";
|
|
290
|
-
if (typeof e == "function")
|
|
291
|
-
return _e(e, ze(e));
|
|
292
|
-
if (typeof e == "string")
|
|
293
|
-
return ne(e);
|
|
294
|
-
switch (e) {
|
|
295
|
-
case m:
|
|
296
|
-
return ne("Suspense");
|
|
297
|
-
case v:
|
|
298
|
-
return ne("SuspenseList");
|
|
299
|
-
}
|
|
300
|
-
if (typeof e == "object")
|
|
301
|
-
switch (e.$$typeof) {
|
|
302
|
-
case a:
|
|
303
|
-
return Ke(e.render);
|
|
304
|
-
case T:
|
|
305
|
-
return ie(e.type, t, n);
|
|
306
|
-
case _: {
|
|
307
|
-
var i = e, h = i._payload, y = i._init;
|
|
308
|
-
try {
|
|
309
|
-
return ie(y(h), t, n);
|
|
310
|
-
} catch {
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return "";
|
|
315
|
-
}
|
|
316
|
-
var H = Object.prototype.hasOwnProperty, we = {}, Se = x.ReactDebugCurrentFrame;
|
|
317
|
-
function oe(e) {
|
|
318
|
-
if (e) {
|
|
319
|
-
var t = e._owner, n = ie(e.type, e._source, t ? t.type : null);
|
|
320
|
-
Se.setExtraStackFrame(n);
|
|
321
|
-
} else
|
|
322
|
-
Se.setExtraStackFrame(null);
|
|
323
|
-
}
|
|
324
|
-
function Ge(e, t, n, i, h) {
|
|
325
|
-
{
|
|
326
|
-
var y = Function.call.bind(H);
|
|
327
|
-
for (var p in e)
|
|
328
|
-
if (y(e, p)) {
|
|
329
|
-
var d = void 0;
|
|
330
|
-
try {
|
|
331
|
-
if (typeof e[p] != "function") {
|
|
332
|
-
var A = Error((i || "React class") + ": " + n + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
-
throw A.name = "Invariant Violation", A;
|
|
334
|
-
}
|
|
335
|
-
d = e[p](t, p, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (w) {
|
|
337
|
-
d = w;
|
|
338
|
-
}
|
|
339
|
-
d && !(d instanceof Error) && (oe(h), R("%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).", i || "React class", n, p, typeof d), oe(null)), d instanceof Error && !(d.message in we) && (we[d.message] = !0, oe(h), R("Failed %s type: %s", n, d.message), oe(null));
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
var He = Array.isArray;
|
|
344
|
-
function fe(e) {
|
|
345
|
-
return He(e);
|
|
346
|
-
}
|
|
347
|
-
function Xe(e) {
|
|
348
|
-
{
|
|
349
|
-
var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
-
return n;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function Ve(e) {
|
|
354
|
-
try {
|
|
355
|
-
return Te(e), !1;
|
|
356
|
-
} catch {
|
|
357
|
-
return !0;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
function Te(e) {
|
|
361
|
-
return "" + e;
|
|
362
|
-
}
|
|
363
|
-
function Ce(e) {
|
|
364
|
-
if (Ve(e))
|
|
365
|
-
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), Te(e);
|
|
366
|
-
}
|
|
367
|
-
var xe = x.ReactCurrentOwner, Ze = {
|
|
368
|
-
key: !0,
|
|
369
|
-
ref: !0,
|
|
370
|
-
__self: !0,
|
|
371
|
-
__source: !0
|
|
372
|
-
}, Ae, Oe;
|
|
373
|
-
function Qe(e) {
|
|
374
|
-
if (H.call(e, "ref")) {
|
|
375
|
-
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
|
-
if (t && t.isReactWarning)
|
|
377
|
-
return !1;
|
|
378
|
-
}
|
|
379
|
-
return e.ref !== void 0;
|
|
380
|
-
}
|
|
381
|
-
function er(e) {
|
|
382
|
-
if (H.call(e, "key")) {
|
|
383
|
-
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
|
-
if (t && t.isReactWarning)
|
|
385
|
-
return !1;
|
|
386
|
-
}
|
|
387
|
-
return e.key !== void 0;
|
|
388
|
-
}
|
|
389
|
-
function rr(e, t) {
|
|
390
|
-
typeof e.ref == "string" && xe.current;
|
|
391
|
-
}
|
|
392
|
-
function tr(e, t) {
|
|
393
|
-
{
|
|
394
|
-
var n = function() {
|
|
395
|
-
Ae || (Ae = !0, R("%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)", t));
|
|
396
|
-
};
|
|
397
|
-
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
-
get: n,
|
|
399
|
-
configurable: !0
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
function nr(e, t) {
|
|
404
|
-
{
|
|
405
|
-
var n = function() {
|
|
406
|
-
Oe || (Oe = !0, R("%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)", t));
|
|
407
|
-
};
|
|
408
|
-
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
|
-
get: n,
|
|
410
|
-
configurable: !0
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
var ar = function(e, t, n, i, h, y, p) {
|
|
415
|
-
var d = {
|
|
416
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof: l,
|
|
418
|
-
// Built-in properties that belong on the element
|
|
419
|
-
type: e,
|
|
420
|
-
key: t,
|
|
421
|
-
ref: n,
|
|
422
|
-
props: p,
|
|
423
|
-
// Record the component responsible for creating this element.
|
|
424
|
-
_owner: y
|
|
425
|
-
};
|
|
426
|
-
return d._store = {}, Object.defineProperty(d._store, "validated", {
|
|
427
|
-
configurable: !1,
|
|
428
|
-
enumerable: !1,
|
|
429
|
-
writable: !0,
|
|
430
|
-
value: !1
|
|
431
|
-
}), Object.defineProperty(d, "_self", {
|
|
432
|
-
configurable: !1,
|
|
433
|
-
enumerable: !1,
|
|
434
|
-
writable: !1,
|
|
435
|
-
value: i
|
|
436
|
-
}), Object.defineProperty(d, "_source", {
|
|
437
|
-
configurable: !1,
|
|
438
|
-
enumerable: !1,
|
|
439
|
-
writable: !1,
|
|
440
|
-
value: h
|
|
441
|
-
}), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
|
|
442
|
-
};
|
|
443
|
-
function ir(e, t, n, i, h) {
|
|
444
|
-
{
|
|
445
|
-
var y, p = {}, d = null, A = null;
|
|
446
|
-
n !== void 0 && (Ce(n), d = "" + n), er(t) && (Ce(t.key), d = "" + t.key), Qe(t) && (A = t.ref, rr(t, h));
|
|
447
|
-
for (y in t)
|
|
448
|
-
H.call(t, y) && !Ze.hasOwnProperty(y) && (p[y] = t[y]);
|
|
449
|
-
if (e && e.defaultProps) {
|
|
450
|
-
var w = e.defaultProps;
|
|
451
|
-
for (y in w)
|
|
452
|
-
p[y] === void 0 && (p[y] = w[y]);
|
|
453
|
-
}
|
|
454
|
-
if (d || A) {
|
|
455
|
-
var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
d && tr(p, S), A && nr(p, S);
|
|
457
|
-
}
|
|
458
|
-
return ar(e, d, A, h, i, xe.current, p);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
var de = x.ReactCurrentOwner, je = x.ReactDebugCurrentFrame;
|
|
462
|
-
function L(e) {
|
|
463
|
-
if (e) {
|
|
464
|
-
var t = e._owner, n = ie(e.type, e._source, t ? t.type : null);
|
|
465
|
-
je.setExtraStackFrame(n);
|
|
466
|
-
} else
|
|
467
|
-
je.setExtraStackFrame(null);
|
|
468
|
-
}
|
|
469
|
-
var ve;
|
|
470
|
-
ve = !1;
|
|
471
|
-
function pe(e) {
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof === l;
|
|
473
|
-
}
|
|
474
|
-
function ke() {
|
|
475
|
-
{
|
|
476
|
-
if (de.current) {
|
|
477
|
-
var e = j(de.current.type);
|
|
478
|
-
if (e)
|
|
479
|
-
return `
|
|
480
|
-
|
|
481
|
-
Check the render method of \`` + e + "`.";
|
|
482
|
-
}
|
|
483
|
-
return "";
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
function or(e) {
|
|
487
|
-
return "";
|
|
488
|
-
}
|
|
489
|
-
var Pe = {};
|
|
490
|
-
function ur(e) {
|
|
491
|
-
{
|
|
492
|
-
var t = ke();
|
|
493
|
-
if (!t) {
|
|
494
|
-
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
|
-
n && (t = `
|
|
496
|
-
|
|
497
|
-
Check the top-level render call using <` + n + ">.");
|
|
498
|
-
}
|
|
499
|
-
return t;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
function Fe(e, t) {
|
|
503
|
-
{
|
|
504
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
505
|
-
return;
|
|
506
|
-
e._store.validated = !0;
|
|
507
|
-
var n = ur(t);
|
|
508
|
-
if (Pe[n])
|
|
509
|
-
return;
|
|
510
|
-
Pe[n] = !0;
|
|
511
|
-
var i = "";
|
|
512
|
-
e && e._owner && e._owner !== de.current && (i = " It was passed a child from " + j(e._owner.type) + "."), L(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, i), L(null);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
function Ie(e, t) {
|
|
516
|
-
{
|
|
517
|
-
if (typeof e != "object")
|
|
518
|
-
return;
|
|
519
|
-
if (fe(e))
|
|
520
|
-
for (var n = 0; n < e.length; n++) {
|
|
521
|
-
var i = e[n];
|
|
522
|
-
pe(i) && Fe(i, t);
|
|
523
|
-
}
|
|
524
|
-
else if (pe(e))
|
|
525
|
-
e._store && (e._store.validated = !0);
|
|
526
|
-
else if (e) {
|
|
527
|
-
var h = M(e);
|
|
528
|
-
if (typeof h == "function" && h !== e.entries)
|
|
529
|
-
for (var y = h.call(e), p; !(p = y.next()).done; )
|
|
530
|
-
pe(p.value) && Fe(p.value, t);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
function sr(e) {
|
|
535
|
-
{
|
|
536
|
-
var t = e.type;
|
|
537
|
-
if (t == null || typeof t == "string")
|
|
538
|
-
return;
|
|
539
|
-
var n;
|
|
540
|
-
if (typeof t == "function")
|
|
541
|
-
n = t.propTypes;
|
|
542
|
-
else if (typeof t == "object" && (t.$$typeof === a || // Note: Memo only checks outer props here.
|
|
543
|
-
// Inner props are checked in the reconciler.
|
|
544
|
-
t.$$typeof === T))
|
|
545
|
-
n = t.propTypes;
|
|
546
|
-
else
|
|
547
|
-
return;
|
|
548
|
-
if (n) {
|
|
549
|
-
var i = j(t);
|
|
550
|
-
Ge(n, e.props, "prop", i, e);
|
|
551
|
-
} else if (t.PropTypes !== void 0 && !ve) {
|
|
552
|
-
ve = !0;
|
|
553
|
-
var h = j(t);
|
|
554
|
-
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
|
|
555
|
-
}
|
|
556
|
-
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
function cr(e) {
|
|
560
|
-
{
|
|
561
|
-
for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
|
|
562
|
-
var i = t[n];
|
|
563
|
-
if (i !== "children" && i !== "key") {
|
|
564
|
-
L(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), L(null);
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
e.ref !== null && (L(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
var Ne = {};
|
|
572
|
-
function De(e, t, n, i, h, y) {
|
|
573
|
-
{
|
|
574
|
-
var p = ee(e);
|
|
575
|
-
if (!p) {
|
|
576
|
-
var d = "";
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
-
var A = or();
|
|
579
|
-
A ? d += A : d += ke();
|
|
580
|
-
var w;
|
|
581
|
-
e === null ? w = "null" : fe(e) ? w = "array" : e !== void 0 && e.$$typeof === l ? (w = "<" + (j(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : w = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, d);
|
|
582
|
-
}
|
|
583
|
-
var S = ir(e, t, n, h, y);
|
|
584
|
-
if (S == null)
|
|
585
|
-
return S;
|
|
586
|
-
if (p) {
|
|
587
|
-
var k = t.children;
|
|
588
|
-
if (k !== void 0)
|
|
589
|
-
if (i)
|
|
590
|
-
if (fe(k)) {
|
|
591
|
-
for (var B = 0; B < k.length; B++)
|
|
592
|
-
Ie(k[B], e);
|
|
593
|
-
Object.freeze && Object.freeze(k);
|
|
594
|
-
} else
|
|
595
|
-
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
|
-
else
|
|
597
|
-
Ie(k, e);
|
|
598
|
-
}
|
|
599
|
-
if (H.call(t, "key")) {
|
|
600
|
-
var $ = j(e), O = Object.keys(t).filter(function(mr) {
|
|
601
|
-
return mr !== "key";
|
|
602
|
-
}), me = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
-
if (!Ne[$ + me]) {
|
|
604
|
-
var pr = O.length > 0 ? "{" + O.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
-
R(`A props object containing a "key" prop is being spread into JSX:
|
|
606
|
-
let props = %s;
|
|
607
|
-
<%s {...props} />
|
|
608
|
-
React keys must be passed directly to JSX without using spread:
|
|
609
|
-
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, me, $, pr, $), Ne[$ + me] = !0;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return e === c ? cr(S) : sr(S), S;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
function lr(e, t, n) {
|
|
617
|
-
return De(e, t, n, !0);
|
|
618
|
-
}
|
|
619
|
-
function fr(e, t, n) {
|
|
620
|
-
return De(e, t, n, !1);
|
|
621
|
-
}
|
|
622
|
-
var dr = fr, vr = lr;
|
|
623
|
-
V.Fragment = c, V.jsx = dr, V.jsxs = vr;
|
|
624
|
-
}()), V;
|
|
625
|
-
}
|
|
626
|
-
process.env.NODE_ENV === "production" ? he.exports = hr() : he.exports = yr();
|
|
627
|
-
var F = he.exports;
|
|
628
|
-
const ye = {};
|
|
629
|
-
function b(r, l) {
|
|
630
|
-
ye[r] = l;
|
|
631
|
-
}
|
|
632
|
-
function br(r) {
|
|
633
|
-
return ye[r];
|
|
634
|
-
}
|
|
635
|
-
function Cr() {
|
|
636
|
-
return { ...ye };
|
|
637
|
-
}
|
|
638
|
-
async function gr() {
|
|
639
|
-
const r = await import("./barrel-Y1-0ECY7.js");
|
|
640
|
-
b("string", r.InputDefault), b("text", r.InputTextArea), b("color", r.InputColor), b("number", r.InputNumber), b("boolean", r.InputCheckbox), b("toggle", r.InputToggle), b("date", r.InputDate), b("datetime", r.DateTime), b("time", r.TimeInput), b("select", r.SingleSelect), b("multiselect", r.MultiSelect), b("file", r.AutoUploadFileField), b("fileV2", r.MediaSelectorModal), b("uploadToBase", r.ImageUploadBase64), b("array", r.DynamicSubForm), b("subForm", r.DynamicSubForm), b("email", r.EmailInput), b("tel", r.PhoneInput), b("radio", r.RadioGroup), b("url", r.UrlInput), b("captcha", r.Captcha), b("signature", r.Signature), b("rating", r.Rating), b("scale", r.Scale), b("header", r.FormHeader), b("image", (l) => {
|
|
641
|
-
var o;
|
|
642
|
-
return /* @__PURE__ */ F.jsx("img", { src: (o = l.field.image) == null ? void 0 : o.src, alt: "" });
|
|
643
|
-
}), b("paragraph", (l) => /* @__PURE__ */ F.jsx("p", { children: l.field.content }));
|
|
644
|
-
}
|
|
645
|
-
gr();
|
|
646
|
-
const Er = {
|
|
647
|
-
title: "#000",
|
|
648
|
-
label: "#111",
|
|
649
|
-
inputText: "#000",
|
|
650
|
-
inputBackground: "#fff",
|
|
651
|
-
inputBorder: "#ebebeb",
|
|
652
|
-
inputPlaceholder: "#888",
|
|
653
|
-
inputFocusBorder: "#020DF9",
|
|
654
|
-
description: "#555",
|
|
655
|
-
error: "#ff0000",
|
|
656
|
-
requiredAsterisk: "#020DF9",
|
|
657
|
-
// Rating-specific
|
|
658
|
-
ratingActive: "#020DF9",
|
|
659
|
-
ratingInactive: "#8e8e8eff",
|
|
660
|
-
ratingHover: "#5555ff"
|
|
661
|
-
};
|
|
662
|
-
function Ue({ field: r, onChange: l, value: o, theme: c }) {
|
|
663
|
-
if (!r || !r.type) return null;
|
|
664
|
-
const f = { ...Er, ...c || {} }, u = (a) => {
|
|
665
|
-
if (l) {
|
|
666
|
-
if (a && a.target) {
|
|
667
|
-
l(a);
|
|
668
|
-
return;
|
|
669
|
-
}
|
|
670
|
-
l({
|
|
671
|
-
target: {
|
|
672
|
-
name: r.name,
|
|
673
|
-
value: a
|
|
674
|
-
}
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
}, E = (a, m, v, T) => /* @__PURE__ */ F.jsx(
|
|
678
|
-
Ue,
|
|
679
|
-
{
|
|
680
|
-
field: a,
|
|
681
|
-
value: m,
|
|
682
|
-
onChange: (_) => T(_, v),
|
|
683
|
-
theme: f
|
|
684
|
-
},
|
|
685
|
-
v
|
|
686
|
-
), s = br(r.type);
|
|
687
|
-
return s ? r.type === "subForm" || r.type === "array" ? /* @__PURE__ */ F.jsx(
|
|
688
|
-
s,
|
|
689
|
-
{
|
|
690
|
-
field: r,
|
|
691
|
-
fields: r.fields,
|
|
692
|
-
value: Array.isArray(o) ? o : [],
|
|
693
|
-
title: r.title || r.name,
|
|
694
|
-
onSave: (a) => u(a),
|
|
695
|
-
renderField: E,
|
|
696
|
-
theme: f
|
|
697
|
-
}
|
|
698
|
-
) : /* @__PURE__ */ F.jsx(
|
|
699
|
-
s,
|
|
700
|
-
{
|
|
701
|
-
field: r,
|
|
702
|
-
value: o,
|
|
703
|
-
onChange: u,
|
|
704
|
-
theme: f
|
|
705
|
-
}
|
|
706
|
-
) : null;
|
|
707
|
-
}
|
|
708
|
-
function Me({
|
|
709
|
-
type: r,
|
|
710
|
-
kind: l,
|
|
711
|
-
targetValue: o,
|
|
712
|
-
modifierValue: c,
|
|
713
|
-
strictString: f = !1,
|
|
714
|
-
sourceFields: u
|
|
715
|
-
}) {
|
|
716
|
-
if (r === "concat" && Array.isArray(u)) {
|
|
717
|
-
let a = "";
|
|
718
|
-
return u.forEach((m) => {
|
|
719
|
-
const v = String(m.fieldValue || "");
|
|
720
|
-
a += (m.charBefore || "") + v + (m.charAfter || "");
|
|
721
|
-
}), a;
|
|
722
|
-
}
|
|
723
|
-
if (typeof c == "number" && f !== !0) {
|
|
724
|
-
const a = Number(o) || 0, m = Number(c);
|
|
725
|
-
let v;
|
|
726
|
-
switch (r) {
|
|
727
|
-
case "add":
|
|
728
|
-
v = a + m;
|
|
729
|
-
break;
|
|
730
|
-
case "subtract":
|
|
731
|
-
v = a - m;
|
|
732
|
-
break;
|
|
733
|
-
case "multiply":
|
|
734
|
-
v = a * m;
|
|
735
|
-
break;
|
|
736
|
-
case "divide":
|
|
737
|
-
v = a / m;
|
|
738
|
-
break;
|
|
739
|
-
case "replace":
|
|
740
|
-
v = m;
|
|
741
|
-
break;
|
|
742
|
-
case "concat":
|
|
743
|
-
v = a + m;
|
|
744
|
-
break;
|
|
745
|
-
}
|
|
746
|
-
return l === "percent" && (v = a * m / 100), String(v);
|
|
747
|
-
} else {
|
|
748
|
-
let a = o;
|
|
749
|
-
switch (r) {
|
|
750
|
-
case "concat":
|
|
751
|
-
case "add":
|
|
752
|
-
a = String(o) + String(c);
|
|
753
|
-
break;
|
|
754
|
-
case "replace":
|
|
755
|
-
a = String(c);
|
|
756
|
-
break;
|
|
757
|
-
case "subtract":
|
|
758
|
-
case "multiply":
|
|
759
|
-
case "divide":
|
|
760
|
-
a = String(o);
|
|
761
|
-
break;
|
|
762
|
-
}
|
|
763
|
-
return String(a);
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
function xr({ setState: r, fields: l = [], rules: o = [] }) {
|
|
767
|
-
const c = Array.isArray(o) ? o.reduce((f, u) => (u != null && u.name && (f[u.name] = u), f), {}) : {};
|
|
768
|
-
return function(u, E) {
|
|
769
|
-
let s, a, m, v, T;
|
|
770
|
-
if (u != null && u.target) {
|
|
771
|
-
const _ = u;
|
|
772
|
-
s = _.target.name, a = _.target.value, m = _.target.type, v = _.target.checked, T = _.target.files;
|
|
773
|
-
} else
|
|
774
|
-
s = E, a = u;
|
|
775
|
-
m === "checkbox" && (a = v), m === "file" && (a = (T == null ? void 0 : T[0]) ?? a), r((_) => {
|
|
776
|
-
var M;
|
|
777
|
-
let g = { ..._, [s]: a };
|
|
778
|
-
const C = l.find((x) => x.name === s);
|
|
779
|
-
return (M = C == null ? void 0 : C.modifiers) != null && M.length && C.modifiers.forEach((x) => {
|
|
780
|
-
const {
|
|
781
|
-
target: R,
|
|
782
|
-
type: N,
|
|
783
|
-
kind: J = "number",
|
|
784
|
-
when: Q,
|
|
785
|
-
value: Y,
|
|
786
|
-
strictString: D = !1
|
|
787
|
-
} = x;
|
|
788
|
-
if (R && Z(a, Q, Y)) {
|
|
789
|
-
const W = D ? String(g[R] || "") : Number(g[R] || 0), U = D ? String(Y) : Number(Y);
|
|
790
|
-
g[R] = Me({
|
|
791
|
-
type: N,
|
|
792
|
-
kind: J,
|
|
793
|
-
targetValue: W,
|
|
794
|
-
modifierValue: U,
|
|
795
|
-
strictString: D
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
}), (Array.isArray(C == null ? void 0 : C.triggers) ? C.triggers : []).forEach((x) => {
|
|
799
|
-
const R = x == null ? void 0 : x.rule;
|
|
800
|
-
if (!R) return;
|
|
801
|
-
const N = c[R];
|
|
802
|
-
if (!N) return;
|
|
803
|
-
const J = x.when;
|
|
804
|
-
if (!Z(a, J, x.value)) return;
|
|
805
|
-
(Array.isArray(N.effects) ? N.effects : []).forEach((D) => {
|
|
806
|
-
const { targetField: W, prop: U = "value", type: ee, kind: ue = "number", value: K, strictString: j = !1, sourceFields: P } = D;
|
|
807
|
-
if (!W || U !== "value") return;
|
|
808
|
-
let I = null;
|
|
809
|
-
ee === "concat" && Array.isArray(P) && (I = P.map((G) => ({
|
|
810
|
-
...G,
|
|
811
|
-
fieldValue: g[G.field] || ""
|
|
812
|
-
})));
|
|
813
|
-
const z = g[W] || "", re = j ? String(z) : Number(z) || 0, te = j ? String(K) : Number(K);
|
|
814
|
-
g[W] = Me({
|
|
815
|
-
type: ee,
|
|
816
|
-
kind: ue,
|
|
817
|
-
targetValue: re,
|
|
818
|
-
modifierValue: te,
|
|
819
|
-
strictString: j,
|
|
820
|
-
sourceFields: I
|
|
821
|
-
});
|
|
822
|
-
});
|
|
823
|
-
}), g;
|
|
824
|
-
});
|
|
825
|
-
};
|
|
826
|
-
}
|
|
827
|
-
function Z(r, l, o) {
|
|
828
|
-
const c = Number(r);
|
|
829
|
-
switch (l) {
|
|
830
|
-
case "true":
|
|
831
|
-
return !!r;
|
|
832
|
-
case "false":
|
|
833
|
-
return !r;
|
|
834
|
-
case "empty":
|
|
835
|
-
return !r || r === "" || r === null || r === void 0;
|
|
836
|
-
case "not empty":
|
|
837
|
-
return r && r !== "" && r !== null && r !== void 0;
|
|
838
|
-
case "null":
|
|
839
|
-
return r == null;
|
|
840
|
-
case "not null":
|
|
841
|
-
return r != null;
|
|
842
|
-
case "less than":
|
|
843
|
-
return c < Number(o);
|
|
844
|
-
case "greater than":
|
|
845
|
-
return c > Number(o);
|
|
846
|
-
case "equal":
|
|
847
|
-
return c === Number(o);
|
|
848
|
-
case "not equal":
|
|
849
|
-
return c !== Number(o);
|
|
850
|
-
case "between":
|
|
851
|
-
return c >= Number(o[0]) && c <= Number(o[1]);
|
|
852
|
-
case "matches":
|
|
853
|
-
return new RegExp(o).test(r);
|
|
854
|
-
default:
|
|
855
|
-
return !1;
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
function Rr(r, l) {
|
|
859
|
-
if (l) return "w-full";
|
|
860
|
-
switch (r) {
|
|
861
|
-
case 25:
|
|
862
|
-
return "w-full sm:w-1/4";
|
|
863
|
-
case 50:
|
|
864
|
-
return "w-full sm:w-1/2";
|
|
865
|
-
case 75:
|
|
866
|
-
return "w-full sm:w-3/4";
|
|
867
|
-
case 100:
|
|
868
|
-
default:
|
|
869
|
-
return "w-full";
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
function Le(r, l, o) {
|
|
873
|
-
const c = Array.isArray(r) ? r : r ? [r] : [];
|
|
874
|
-
if (c.length === 0) return !1;
|
|
875
|
-
const f = (u) => Z(o == null ? void 0 : o[u.field], u.when, u.value);
|
|
876
|
-
return l === "all" ? c.every(f) : c.some(f);
|
|
877
|
-
}
|
|
878
|
-
function _r(r, l) {
|
|
879
|
-
var f, u;
|
|
880
|
-
const o = (f = r == null ? void 0 : r.conditions) == null ? void 0 : f.hiddenWhen, c = ((u = r == null ? void 0 : r.conditions) == null ? void 0 : u.hiddenMode) === "all" ? "all" : "any";
|
|
881
|
-
return Le(o, c, l);
|
|
882
|
-
}
|
|
883
|
-
function wr(r, l) {
|
|
884
|
-
var f, u, E;
|
|
885
|
-
const o = ((f = r == null ? void 0 : r.conditions) == null ? void 0 : f.readOnlyWhen) || ((u = r == null ? void 0 : r.conditions) == null ? void 0 : u.disabledWhen), c = ((E = r == null ? void 0 : r.conditions) == null ? void 0 : E.readOnlyMode) === "all" ? "all" : "any";
|
|
886
|
-
return Le(o, c, l);
|
|
887
|
-
}
|
|
888
|
-
function Sr(r, l, o) {
|
|
889
|
-
const c = Array.isArray(l) ? l.reduce((u, E) => (E != null && E.name && (u[E.name] = E), u), {}) : {}, f = {};
|
|
890
|
-
return r.forEach((u) => {
|
|
891
|
-
(Array.isArray(u == null ? void 0 : u.triggers) ? u.triggers : []).forEach((s) => {
|
|
892
|
-
const a = c[s == null ? void 0 : s.rule];
|
|
893
|
-
if (!a) return;
|
|
894
|
-
const m = Array.isArray(s.when) ? s.when : s.when ? [s.when] : [], v = s.mode === "all" ? "all" : "any";
|
|
895
|
-
if (!(m.length === 0 ? !0 : v === "all" ? m.every(
|
|
896
|
-
(g) => Z(o == null ? void 0 : o[g.field], g.when, g.value)
|
|
897
|
-
) : m.some(
|
|
898
|
-
(g) => Z(o == null ? void 0 : o[g.field], g.when, g.value)
|
|
899
|
-
))) return;
|
|
900
|
-
(Array.isArray(a.effects) ? a.effects : []).forEach((g) => {
|
|
901
|
-
const { targetField: C, prop: q = "value", value: M } = g;
|
|
902
|
-
!C || q === "value" || (f[C] = {
|
|
903
|
-
...f[C] || {},
|
|
904
|
-
[q]: M
|
|
905
|
-
});
|
|
906
|
-
});
|
|
907
|
-
});
|
|
908
|
-
}), f;
|
|
909
|
-
}
|
|
910
|
-
function Ar({
|
|
911
|
-
fields: r = [],
|
|
912
|
-
onChange: l,
|
|
913
|
-
theme: o,
|
|
914
|
-
isMobileView: c = !1,
|
|
915
|
-
formData: f = {},
|
|
916
|
-
rules: u = []
|
|
917
|
-
}) {
|
|
918
|
-
const E = Sr(r, u, f);
|
|
919
|
-
return /* @__PURE__ */ F.jsx("div", { className: "w-full", children: /* @__PURE__ */ F.jsx("div", { className: "-mx-2 flex flex-wrap", children: r.map((s, a) => {
|
|
920
|
-
var _, g, C;
|
|
921
|
-
const m = _r(s, f) || ((_ = E[s.name]) == null ? void 0 : _.hidden) === !0, v = s.readOnly || wr(s, f) || ((g = E[s.name]) == null ? void 0 : g.readOnly) === !0, T = ((C = E[s.name]) == null ? void 0 : C.title) ?? (s.label || s.title || s.name);
|
|
922
|
-
return /* @__PURE__ */ F.jsx(
|
|
923
|
-
"div",
|
|
924
|
-
{
|
|
925
|
-
className: `${Rr(s.width || 100, c)} mb-4 px-2 ${m ? "hidden" : ""}`,
|
|
926
|
-
children: /* @__PURE__ */ F.jsx(
|
|
927
|
-
Ue,
|
|
928
|
-
{
|
|
929
|
-
onChange: l,
|
|
930
|
-
value: f[s.name] ?? s.default ?? "",
|
|
931
|
-
field: {
|
|
932
|
-
...s,
|
|
933
|
-
title: T,
|
|
934
|
-
readOnly: v
|
|
935
|
-
},
|
|
936
|
-
theme: o
|
|
937
|
-
}
|
|
938
|
-
)
|
|
939
|
-
},
|
|
940
|
-
s.name || a
|
|
941
|
-
);
|
|
942
|
-
}) }) });
|
|
943
|
-
}
|
|
944
|
-
function Or(r, l = {}) {
|
|
945
|
-
return { ...r.reduce((c, f) => (f.default !== void 0 && (c[f.name] = f.default), c), {}), ...l };
|
|
946
|
-
}
|
|
947
|
-
export {
|
|
948
|
-
Ar as F,
|
|
949
|
-
Ue as R,
|
|
950
|
-
Cr as a,
|
|
951
|
-
xr as c,
|
|
952
|
-
br as g,
|
|
953
|
-
Or as i,
|
|
954
|
-
F as j,
|
|
955
|
-
b as r
|
|
956
|
-
};
|