stone-kit 0.0.708 → 0.0.710

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2745 +1,29 @@
1
- import { jsx as ye, jsxs as Ve } from "react/jsx-runtime";
2
- import { g as _r, c as kr } from "../../../index-rKuIKazb.js";
3
- import we from "react";
4
- import rr from "react-dom";
5
- import { Modal as Sr } from "../../Modal/ui/Modal.js";
6
- import { Flex as Pr } from "../../Flex/ui/Flex.js";
7
- import { Input as st } from "../../Input/ui/Input.js";
8
- import { Button as Tt } from "../../Button/ui/Button.js";
9
- import { NewIcon as Rt } from "../../NewIcon/ui/NewIcon.js";
10
- import { phoneReg as xr, nameReg as wr, emailReg as Or } from "../utils/reg.js";
11
- import { CheckBox as Vt } from "../../CheckBox/CheckBox.js";
12
- import { TextArea as Cr } from "../../TextArea/TextArea.js";
13
- import { useClientWidth as Ar } from "../../../shared/useClientWidth.js";
14
- var Et = { exports: {} }, ot = { exports: {} }, He = { exports: {} }, Xe = { exports: {} }, se = {};
15
- /** @license React v16.13.1
16
- * react-is.production.min.js
17
- *
18
- * Copyright (c) Facebook, Inc. and its affiliates.
19
- *
20
- * This source code is licensed under the MIT license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- */
23
- var Ft;
24
- function Tr() {
25
- if (Ft)
26
- return se;
27
- Ft = 1;
28
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, l = e ? Symbol.for("react.fragment") : 60107, f = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, P = e ? Symbol.for("react.provider") : 60109, S = e ? Symbol.for("react.context") : 60110, X = e ? Symbol.for("react.async_mode") : 60111, H = e ? Symbol.for("react.concurrent_mode") : 60111, L = e ? Symbol.for("react.forward_ref") : 60112, D = e ? Symbol.for("react.suspense") : 60113, ie = e ? Symbol.for("react.suspense_list") : 60120, ee = e ? Symbol.for("react.memo") : 60115, re = e ? Symbol.for("react.lazy") : 60116, Q = e ? Symbol.for("react.block") : 60121, J = e ? Symbol.for("react.fundamental") : 60117, ue = e ? Symbol.for("react.responder") : 60118, Z = e ? Symbol.for("react.scope") : 60119;
29
- function ne(o) {
30
- if (typeof o == "object" && o !== null) {
31
- var _ = o.$$typeof;
32
- switch (_) {
33
- case r:
34
- switch (o = o.type, o) {
35
- case X:
36
- case H:
37
- case l:
38
- case i:
39
- case f:
40
- case D:
41
- return o;
42
- default:
43
- switch (o = o && o.$$typeof, o) {
44
- case S:
45
- case L:
46
- case re:
47
- case ee:
48
- case P:
49
- return o;
50
- default:
51
- return _;
52
- }
53
- }
54
- case t:
55
- return _;
56
- }
57
- }
58
- }
59
- function K(o) {
60
- return ne(o) === H;
61
- }
62
- return se.AsyncMode = X, se.ConcurrentMode = H, se.ContextConsumer = S, se.ContextProvider = P, se.Element = r, se.ForwardRef = L, se.Fragment = l, se.Lazy = re, se.Memo = ee, se.Portal = t, se.Profiler = i, se.StrictMode = f, se.Suspense = D, se.isAsyncMode = function(o) {
63
- return K(o) || ne(o) === X;
64
- }, se.isConcurrentMode = K, se.isContextConsumer = function(o) {
65
- return ne(o) === S;
66
- }, se.isContextProvider = function(o) {
67
- return ne(o) === P;
68
- }, se.isElement = function(o) {
69
- return typeof o == "object" && o !== null && o.$$typeof === r;
70
- }, se.isForwardRef = function(o) {
71
- return ne(o) === L;
72
- }, se.isFragment = function(o) {
73
- return ne(o) === l;
74
- }, se.isLazy = function(o) {
75
- return ne(o) === re;
76
- }, se.isMemo = function(o) {
77
- return ne(o) === ee;
78
- }, se.isPortal = function(o) {
79
- return ne(o) === t;
80
- }, se.isProfiler = function(o) {
81
- return ne(o) === i;
82
- }, se.isStrictMode = function(o) {
83
- return ne(o) === f;
84
- }, se.isSuspense = function(o) {
85
- return ne(o) === D;
86
- }, se.isValidElementType = function(o) {
87
- return typeof o == "string" || typeof o == "function" || o === l || o === H || o === i || o === f || o === D || o === ie || typeof o == "object" && o !== null && (o.$$typeof === re || o.$$typeof === ee || o.$$typeof === P || o.$$typeof === S || o.$$typeof === L || o.$$typeof === J || o.$$typeof === ue || o.$$typeof === Z || o.$$typeof === Q);
88
- }, se.typeOf = ne, se;
89
- }
90
- var oe = {};
91
- /** @license React v16.13.1
92
- * react-is.development.js
93
- *
94
- * Copyright (c) Facebook, Inc. and its affiliates.
95
- *
96
- * This source code is licensed under the MIT license found in the
97
- * LICENSE file in the root directory of this source tree.
98
- */
99
- var Dt;
100
- function Rr() {
101
- return Dt || (Dt = 1, process.env.NODE_ENV !== "production" && function() {
102
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, l = e ? Symbol.for("react.fragment") : 60107, f = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, P = e ? Symbol.for("react.provider") : 60109, S = e ? Symbol.for("react.context") : 60110, X = e ? Symbol.for("react.async_mode") : 60111, H = e ? Symbol.for("react.concurrent_mode") : 60111, L = e ? Symbol.for("react.forward_ref") : 60112, D = e ? Symbol.for("react.suspense") : 60113, ie = e ? Symbol.for("react.suspense_list") : 60120, ee = e ? Symbol.for("react.memo") : 60115, re = e ? Symbol.for("react.lazy") : 60116, Q = e ? Symbol.for("react.block") : 60121, J = e ? Symbol.for("react.fundamental") : 60117, ue = e ? Symbol.for("react.responder") : 60118, Z = e ? Symbol.for("react.scope") : 60119;
103
- function ne(h) {
104
- return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
105
- h === l || h === H || h === i || h === f || h === D || h === ie || typeof h == "object" && h !== null && (h.$$typeof === re || h.$$typeof === ee || h.$$typeof === P || h.$$typeof === S || h.$$typeof === L || h.$$typeof === J || h.$$typeof === ue || h.$$typeof === Z || h.$$typeof === Q);
106
- }
107
- function K(h) {
108
- if (typeof h == "object" && h !== null) {
109
- var I = h.$$typeof;
110
- switch (I) {
111
- case r:
112
- var q = h.type;
113
- switch (q) {
114
- case X:
115
- case H:
116
- case l:
117
- case i:
118
- case f:
119
- case D:
120
- return q;
121
- default:
122
- var $ = q && q.$$typeof;
123
- switch ($) {
124
- case S:
125
- case L:
126
- case re:
127
- case ee:
128
- case P:
129
- return $;
130
- default:
131
- return I;
132
- }
133
- }
134
- case t:
135
- return I;
136
- }
137
- }
138
- }
139
- var o = X, _ = H, m = S, b = P, E = r, V = L, W = l, O = re, B = ee, U = t, M = i, A = f, Y = D, G = !1;
140
- function le(h) {
141
- return G || (G = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(h) || K(h) === X;
142
- }
143
- function g(h) {
144
- return K(h) === H;
145
- }
146
- function k(h) {
147
- return K(h) === S;
148
- }
149
- function v(h) {
150
- return K(h) === P;
151
- }
152
- function u(h) {
153
- return typeof h == "object" && h !== null && h.$$typeof === r;
154
- }
155
- function a(h) {
156
- return K(h) === L;
157
- }
158
- function c(h) {
159
- return K(h) === l;
160
- }
161
- function y(h) {
162
- return K(h) === re;
163
- }
164
- function p(h) {
165
- return K(h) === ee;
166
- }
167
- function F(h) {
168
- return K(h) === t;
169
- }
170
- function C(h) {
171
- return K(h) === i;
172
- }
173
- function T(h) {
174
- return K(h) === f;
175
- }
176
- function z(h) {
177
- return K(h) === D;
178
- }
179
- oe.AsyncMode = o, oe.ConcurrentMode = _, oe.ContextConsumer = m, oe.ContextProvider = b, oe.Element = E, oe.ForwardRef = V, oe.Fragment = W, oe.Lazy = O, oe.Memo = B, oe.Portal = U, oe.Profiler = M, oe.StrictMode = A, oe.Suspense = Y, oe.isAsyncMode = le, oe.isConcurrentMode = g, oe.isContextConsumer = k, oe.isContextProvider = v, oe.isElement = u, oe.isForwardRef = a, oe.isFragment = c, oe.isLazy = y, oe.isMemo = p, oe.isPortal = F, oe.isProfiler = C, oe.isStrictMode = T, oe.isSuspense = z, oe.isValidElementType = ne, oe.typeOf = K;
180
- }()), oe;
181
- }
182
- var Mt;
183
- function nr() {
184
- return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? Xe.exports = Tr() : Xe.exports = Rr()), Xe.exports;
185
- }
186
- /*
187
- object-assign
188
- (c) Sindre Sorhus
189
- @license MIT
190
- */
191
- var ut, Lt;
192
- function Vr() {
193
- if (Lt)
194
- return ut;
195
- Lt = 1;
196
- var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
197
- function l(i) {
198
- if (i == null)
199
- throw new TypeError("Object.assign cannot be called with null or undefined");
200
- return Object(i);
201
- }
202
- function f() {
203
- try {
204
- if (!Object.assign)
205
- return !1;
206
- var i = new String("abc");
207
- if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
208
- return !1;
209
- for (var P = {}, S = 0; S < 10; S++)
210
- P["_" + String.fromCharCode(S)] = S;
211
- var X = Object.getOwnPropertyNames(P).map(function(L) {
212
- return P[L];
213
- });
214
- if (X.join("") !== "0123456789")
215
- return !1;
216
- var H = {};
217
- return "abcdefghijklmnopqrst".split("").forEach(function(L) {
218
- H[L] = L;
219
- }), Object.keys(Object.assign({}, H)).join("") === "abcdefghijklmnopqrst";
220
- } catch {
221
- return !1;
222
- }
223
- }
224
- return ut = f() ? Object.assign : function(i, P) {
225
- for (var S, X = l(i), H, L = 1; L < arguments.length; L++) {
226
- S = Object(arguments[L]);
227
- for (var D in S)
228
- r.call(S, D) && (X[D] = S[D]);
229
- if (e) {
230
- H = e(S);
231
- for (var ie = 0; ie < H.length; ie++)
232
- t.call(S, H[ie]) && (X[H[ie]] = S[H[ie]]);
233
- }
234
- }
235
- return X;
236
- }, ut;
237
- }
238
- var lt, It;
239
- function _t() {
240
- if (It)
241
- return lt;
242
- It = 1;
243
- var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
244
- return lt = e, lt;
245
- }
246
- var ct, jt;
247
- function ir() {
248
- return jt || (jt = 1, ct = Function.call.bind(Object.prototype.hasOwnProperty)), ct;
249
- }
250
- var ft, Bt;
251
- function Fr() {
252
- if (Bt)
253
- return ft;
254
- Bt = 1;
255
- var e = function() {
256
- };
257
- if (process.env.NODE_ENV !== "production") {
258
- var r = _t(), t = {}, l = ir();
259
- e = function(i) {
260
- var P = "Warning: " + i;
261
- typeof console < "u" && console.error(P);
262
- try {
263
- throw new Error(P);
264
- } catch {
265
- }
266
- };
267
- }
268
- function f(i, P, S, X, H) {
269
- if (process.env.NODE_ENV !== "production") {
270
- for (var L in i)
271
- if (l(i, L)) {
272
- var D;
273
- try {
274
- if (typeof i[L] != "function") {
275
- var ie = Error(
276
- (X || "React class") + ": " + S + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
277
- );
278
- throw ie.name = "Invariant Violation", ie;
279
- }
280
- D = i[L](P, L, X, S, null, r);
281
- } catch (re) {
282
- D = re;
283
- }
284
- if (D && !(D instanceof Error) && e(
285
- (X || "React class") + ": type specification of " + S + " `" + L + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof D + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
286
- ), D instanceof Error && !(D.message in t)) {
287
- t[D.message] = !0;
288
- var ee = H ? H() : "";
289
- e(
290
- "Failed " + S + " type: " + D.message + (ee ?? "")
291
- );
292
- }
293
- }
294
- }
295
- }
296
- return f.resetWarningCache = function() {
297
- process.env.NODE_ENV !== "production" && (t = {});
298
- }, ft = f, ft;
299
- }
300
- var dt, qt;
301
- function Dr() {
302
- if (qt)
303
- return dt;
304
- qt = 1;
305
- var e = nr(), r = Vr(), t = _t(), l = ir(), f = Fr(), i = function() {
306
- };
307
- process.env.NODE_ENV !== "production" && (i = function(S) {
308
- var X = "Warning: " + S;
309
- typeof console < "u" && console.error(X);
310
- try {
311
- throw new Error(X);
312
- } catch {
313
- }
314
- });
315
- function P() {
316
- return null;
317
- }
318
- return dt = function(S, X) {
319
- var H = typeof Symbol == "function" && Symbol.iterator, L = "@@iterator";
320
- function D(g) {
321
- var k = g && (H && g[H] || g[L]);
322
- if (typeof k == "function")
323
- return k;
324
- }
325
- var ie = "<<anonymous>>", ee = {
326
- array: ue("array"),
327
- bigint: ue("bigint"),
328
- bool: ue("boolean"),
329
- func: ue("function"),
330
- number: ue("number"),
331
- object: ue("object"),
332
- string: ue("string"),
333
- symbol: ue("symbol"),
334
- any: Z(),
335
- arrayOf: ne,
336
- element: K(),
337
- elementType: o(),
338
- instanceOf: _,
339
- node: V(),
340
- objectOf: b,
341
- oneOf: m,
342
- oneOfType: E,
343
- shape: O,
344
- exact: B
345
- };
346
- function re(g, k) {
347
- return g === k ? g !== 0 || 1 / g === 1 / k : g !== g && k !== k;
348
- }
349
- function Q(g, k) {
350
- this.message = g, this.data = k && typeof k == "object" ? k : {}, this.stack = "";
351
- }
352
- Q.prototype = Error.prototype;
353
- function J(g) {
354
- if (process.env.NODE_ENV !== "production")
355
- var k = {}, v = 0;
356
- function u(c, y, p, F, C, T, z) {
357
- if (F = F || ie, T = T || p, z !== t) {
358
- if (X) {
359
- var h = new Error(
360
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
361
- );
362
- throw h.name = "Invariant Violation", h;
363
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
364
- var I = F + ":" + p;
365
- !k[I] && // Avoid spamming the console because they are often not actionable except for lib authors
366
- v < 3 && (i(
367
- "You are manually calling a React.PropTypes validation function for the `" + T + "` prop on `" + F + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
368
- ), k[I] = !0, v++);
369
- }
370
- }
371
- return y[p] == null ? c ? y[p] === null ? new Q("The " + C + " `" + T + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new Q("The " + C + " `" + T + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : g(y, p, F, C, T);
372
- }
373
- var a = u.bind(null, !1);
374
- return a.isRequired = u.bind(null, !0), a;
375
- }
376
- function ue(g) {
377
- function k(v, u, a, c, y, p) {
378
- var F = v[u], C = A(F);
379
- if (C !== g) {
380
- var T = Y(F);
381
- return new Q(
382
- "Invalid " + c + " `" + y + "` of type " + ("`" + T + "` supplied to `" + a + "`, expected ") + ("`" + g + "`."),
383
- { expectedType: g }
384
- );
385
- }
386
- return null;
387
- }
388
- return J(k);
389
- }
390
- function Z() {
391
- return J(P);
392
- }
393
- function ne(g) {
394
- function k(v, u, a, c, y) {
395
- if (typeof g != "function")
396
- return new Q("Property `" + y + "` of component `" + a + "` has invalid PropType notation inside arrayOf.");
397
- var p = v[u];
398
- if (!Array.isArray(p)) {
399
- var F = A(p);
400
- return new Q("Invalid " + c + " `" + y + "` of type " + ("`" + F + "` supplied to `" + a + "`, expected an array."));
401
- }
402
- for (var C = 0; C < p.length; C++) {
403
- var T = g(p, C, a, c, y + "[" + C + "]", t);
404
- if (T instanceof Error)
405
- return T;
406
- }
407
- return null;
408
- }
409
- return J(k);
410
- }
411
- function K() {
412
- function g(k, v, u, a, c) {
413
- var y = k[v];
414
- if (!S(y)) {
415
- var p = A(y);
416
- return new Q("Invalid " + a + " `" + c + "` of type " + ("`" + p + "` supplied to `" + u + "`, expected a single ReactElement."));
417
- }
418
- return null;
419
- }
420
- return J(g);
421
- }
422
- function o() {
423
- function g(k, v, u, a, c) {
424
- var y = k[v];
425
- if (!e.isValidElementType(y)) {
426
- var p = A(y);
427
- return new Q("Invalid " + a + " `" + c + "` of type " + ("`" + p + "` supplied to `" + u + "`, expected a single ReactElement type."));
428
- }
429
- return null;
430
- }
431
- return J(g);
432
- }
433
- function _(g) {
434
- function k(v, u, a, c, y) {
435
- if (!(v[u] instanceof g)) {
436
- var p = g.name || ie, F = le(v[u]);
437
- return new Q("Invalid " + c + " `" + y + "` of type " + ("`" + F + "` supplied to `" + a + "`, expected ") + ("instance of `" + p + "`."));
438
- }
439
- return null;
440
- }
441
- return J(k);
442
- }
443
- function m(g) {
444
- if (!Array.isArray(g))
445
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
446
- "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
447
- ) : i("Invalid argument supplied to oneOf, expected an array.")), P;
448
- function k(v, u, a, c, y) {
449
- for (var p = v[u], F = 0; F < g.length; F++)
450
- if (re(p, g[F]))
451
- return null;
452
- var C = JSON.stringify(g, function(z, h) {
453
- var I = Y(h);
454
- return I === "symbol" ? String(h) : h;
455
- });
456
- return new Q("Invalid " + c + " `" + y + "` of value `" + String(p) + "` " + ("supplied to `" + a + "`, expected one of " + C + "."));
457
- }
458
- return J(k);
459
- }
460
- function b(g) {
461
- function k(v, u, a, c, y) {
462
- if (typeof g != "function")
463
- return new Q("Property `" + y + "` of component `" + a + "` has invalid PropType notation inside objectOf.");
464
- var p = v[u], F = A(p);
465
- if (F !== "object")
466
- return new Q("Invalid " + c + " `" + y + "` of type " + ("`" + F + "` supplied to `" + a + "`, expected an object."));
467
- for (var C in p)
468
- if (l(p, C)) {
469
- var T = g(p, C, a, c, y + "." + C, t);
470
- if (T instanceof Error)
471
- return T;
472
- }
473
- return null;
474
- }
475
- return J(k);
476
- }
477
- function E(g) {
478
- if (!Array.isArray(g))
479
- return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), P;
480
- for (var k = 0; k < g.length; k++) {
481
- var v = g[k];
482
- if (typeof v != "function")
483
- return i(
484
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + G(v) + " at index " + k + "."
485
- ), P;
486
- }
487
- function u(a, c, y, p, F) {
488
- for (var C = [], T = 0; T < g.length; T++) {
489
- var z = g[T], h = z(a, c, y, p, F, t);
490
- if (h == null)
491
- return null;
492
- h.data && l(h.data, "expectedType") && C.push(h.data.expectedType);
493
- }
494
- var I = C.length > 0 ? ", expected one of type [" + C.join(", ") + "]" : "";
495
- return new Q("Invalid " + p + " `" + F + "` supplied to " + ("`" + y + "`" + I + "."));
496
- }
497
- return J(u);
498
- }
499
- function V() {
500
- function g(k, v, u, a, c) {
501
- return U(k[v]) ? null : new Q("Invalid " + a + " `" + c + "` supplied to " + ("`" + u + "`, expected a ReactNode."));
502
- }
503
- return J(g);
504
- }
505
- function W(g, k, v, u, a) {
506
- return new Q(
507
- (g || "React class") + ": " + k + " type `" + v + "." + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + a + "`."
508
- );
509
- }
510
- function O(g) {
511
- function k(v, u, a, c, y) {
512
- var p = v[u], F = A(p);
513
- if (F !== "object")
514
- return new Q("Invalid " + c + " `" + y + "` of type `" + F + "` " + ("supplied to `" + a + "`, expected `object`."));
515
- for (var C in g) {
516
- var T = g[C];
517
- if (typeof T != "function")
518
- return W(a, c, y, C, Y(T));
519
- var z = T(p, C, a, c, y + "." + C, t);
520
- if (z)
521
- return z;
522
- }
523
- return null;
524
- }
525
- return J(k);
526
- }
527
- function B(g) {
528
- function k(v, u, a, c, y) {
529
- var p = v[u], F = A(p);
530
- if (F !== "object")
531
- return new Q("Invalid " + c + " `" + y + "` of type `" + F + "` " + ("supplied to `" + a + "`, expected `object`."));
532
- var C = r({}, v[u], g);
533
- for (var T in C) {
534
- var z = g[T];
535
- if (l(g, T) && typeof z != "function")
536
- return W(a, c, y, T, Y(z));
537
- if (!z)
538
- return new Q(
539
- "Invalid " + c + " `" + y + "` key `" + T + "` supplied to `" + a + "`.\nBad object: " + JSON.stringify(v[u], null, " ") + `
540
- Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
541
- );
542
- var h = z(p, T, a, c, y + "." + T, t);
543
- if (h)
544
- return h;
545
- }
546
- return null;
547
- }
548
- return J(k);
549
- }
550
- function U(g) {
551
- switch (typeof g) {
552
- case "number":
553
- case "string":
554
- case "undefined":
555
- return !0;
556
- case "boolean":
557
- return !g;
558
- case "object":
559
- if (Array.isArray(g))
560
- return g.every(U);
561
- if (g === null || S(g))
562
- return !0;
563
- var k = D(g);
564
- if (k) {
565
- var v = k.call(g), u;
566
- if (k !== g.entries) {
567
- for (; !(u = v.next()).done; )
568
- if (!U(u.value))
569
- return !1;
570
- } else
571
- for (; !(u = v.next()).done; ) {
572
- var a = u.value;
573
- if (a && !U(a[1]))
574
- return !1;
575
- }
576
- } else
577
- return !1;
578
- return !0;
579
- default:
580
- return !1;
581
- }
582
- }
583
- function M(g, k) {
584
- return g === "symbol" ? !0 : k ? k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol : !1;
585
- }
586
- function A(g) {
587
- var k = typeof g;
588
- return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : M(k, g) ? "symbol" : k;
589
- }
590
- function Y(g) {
591
- if (typeof g > "u" || g === null)
592
- return "" + g;
593
- var k = A(g);
594
- if (k === "object") {
595
- if (g instanceof Date)
596
- return "date";
597
- if (g instanceof RegExp)
598
- return "regexp";
599
- }
600
- return k;
601
- }
602
- function G(g) {
603
- var k = Y(g);
604
- switch (k) {
605
- case "array":
606
- case "object":
607
- return "an " + k;
608
- case "boolean":
609
- case "date":
610
- case "regexp":
611
- return "a " + k;
612
- default:
613
- return k;
614
- }
615
- }
616
- function le(g) {
617
- return !g.constructor || !g.constructor.name ? ie : g.constructor.name;
618
- }
619
- return ee.checkPropTypes = f, ee.resetWarningCache = f.resetWarningCache, ee.PropTypes = ee, ee;
620
- }, dt;
621
- }
622
- var vt, Nt;
623
- function Mr() {
624
- if (Nt)
625
- return vt;
626
- Nt = 1;
627
- var e = _t();
628
- function r() {
629
- }
630
- function t() {
631
- }
632
- return t.resetWarningCache = r, vt = function() {
633
- function l(P, S, X, H, L, D) {
634
- if (D !== e) {
635
- var ie = new Error(
636
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
637
- );
638
- throw ie.name = "Invariant Violation", ie;
639
- }
640
- }
641
- l.isRequired = l;
642
- function f() {
643
- return l;
644
- }
645
- var i = {
646
- array: l,
647
- bigint: l,
648
- bool: l,
649
- func: l,
650
- number: l,
651
- object: l,
652
- string: l,
653
- symbol: l,
654
- any: l,
655
- arrayOf: f,
656
- element: l,
657
- elementType: l,
658
- instanceOf: f,
659
- node: l,
660
- objectOf: f,
661
- oneOf: f,
662
- oneOfType: f,
663
- shape: f,
664
- exact: f,
665
- checkPropTypes: t,
666
- resetWarningCache: r
667
- };
668
- return i.PropTypes = i, i;
669
- }, vt;
670
- }
671
- var $t;
672
- function ar() {
673
- if ($t)
674
- return He.exports;
675
- if ($t = 1, process.env.NODE_ENV !== "production") {
676
- var e = nr(), r = !0;
677
- He.exports = Dr()(e.isElement, r);
678
- } else
679
- He.exports = Mr()();
680
- return He.exports;
681
- }
682
- var ht, Ut;
683
- function sr() {
684
- if (Ut)
685
- return ht;
686
- Ut = 1;
687
- var e = function(r, t, l, f, i, P, S, X) {
688
- if (process.env.NODE_ENV !== "production" && t === void 0)
689
- throw new Error("invariant requires an error message argument");
690
- if (!r) {
691
- var H;
692
- if (t === void 0)
693
- H = new Error(
694
- "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
695
- );
696
- else {
697
- var L = [l, f, i, P, S, X], D = 0;
698
- H = new Error(
699
- t.replace(/%s/g, function() {
700
- return L[D++];
701
- })
702
- ), H.name = "Invariant Violation";
703
- }
704
- throw H.framesToPop = 1, H;
705
- }
706
- };
707
- return ht = e, ht;
708
- }
709
- var gt, Wt;
710
- function or() {
711
- if (Wt)
712
- return gt;
713
- Wt = 1;
714
- var e = process.env.NODE_ENV !== "production", r = function() {
715
- };
716
- if (e) {
717
- var t = function(f, i) {
718
- var P = arguments.length;
719
- i = new Array(P > 1 ? P - 1 : 0);
720
- for (var S = 1; S < P; S++)
721
- i[S - 1] = arguments[S];
722
- var X = 0, H = "Warning: " + f.replace(/%s/g, function() {
723
- return i[X++];
724
- });
725
- typeof console < "u" && console.error(H);
726
- try {
727
- throw new Error(H);
728
- } catch {
729
- }
730
- };
731
- r = function(l, f, i) {
732
- var P = arguments.length;
733
- i = new Array(P > 2 ? P - 2 : 0);
734
- for (var S = 2; S < P; S++)
735
- i[S - 2] = arguments[S];
736
- if (f === void 0)
737
- throw new Error(
738
- "`warning(condition, format, ...args)` requires a warning message argument"
739
- );
740
- l || t.apply(null, [f].concat(i));
741
- };
742
- }
743
- return gt = r, gt;
744
- }
745
- var Yt;
746
- function Lr() {
747
- if (Yt)
748
- return ot.exports;
749
- Yt = 1;
750
- function e(o) {
751
- return o && typeof o == "object" && "default" in o ? o.default : o;
752
- }
753
- var r = we, t = e(r), l = rr;
754
- ar();
755
- var f = e(sr());
756
- function i() {
757
- return (i = Object.assign || function(o) {
758
- for (var _ = 1; _ < arguments.length; _++) {
759
- var m = arguments[_];
760
- for (var b in m)
761
- Object.prototype.hasOwnProperty.call(m, b) && (o[b] = m[b]);
762
- }
763
- return o;
764
- }).apply(this, arguments);
765
- }
766
- function P(o, _) {
767
- o.prototype = Object.create(_.prototype), o.prototype.constructor = o, function(m, b) {
768
- for (var E = Object.getOwnPropertyNames(b), V = 0; V < E.length; V++) {
769
- var W = E[V], O = Object.getOwnPropertyDescriptor(b, W);
770
- O && O.configurable && m[W] === void 0 && Object.defineProperty(m, W, O);
771
- }
772
- }(o, _);
773
- }
774
- function S(o, _) {
775
- if (o == null)
776
- return {};
777
- var m, b, E = {}, V = Object.keys(o);
778
- for (b = 0; b < V.length; b++)
779
- m = V[b], _.indexOf(m) >= 0 || (E[m] = o[m]);
780
- return E;
781
- }
782
- function X(o) {
783
- return requestAnimationFrame(o);
784
- }
785
- function H(o) {
786
- cancelAnimationFrame(o);
787
- }
788
- function L(o) {
789
- var _ = o.ownerDocument;
790
- return _.hasFocus() && _.activeElement === o;
791
- }
792
- function D(o) {
793
- return o == null ? void 0 : o.ownerDocument;
794
- }
795
- function ie(o) {
796
- var _ = function(m) {
797
- var b;
798
- return (b = D(m)) == null ? void 0 : b.defaultView;
799
- }(o);
800
- return !!_ && o instanceof _.HTMLElement;
801
- }
802
- function ee(o) {
803
- return r.useCallback(function() {
804
- var _ = o.current, m = typeof window < "u" && ie(_);
805
- if (!_ || !m)
806
- return null;
807
- if (_.nodeName !== "INPUT" && (_ = _.querySelector("input")), !_)
808
- throw new Error("react-input-mask: inputComponent doesn't contain input node");
809
- return _;
810
- }, [o]);
811
- }
812
- function re(o, _) {
813
- var m, b, E, V, W = r.useRef({ start: null, end: null }), O = ee(o), B = r.useCallback(function() {
814
- return function(g) {
815
- var k = g.selectionStart, v = g.selectionEnd;
816
- return { start: k, end: v, length: v - k };
817
- }(O());
818
- }, [O]), U = r.useCallback(function() {
819
- return W.current;
820
- }, []), M = r.useCallback(function(g) {
821
- var k = O();
822
- k && L(k) && (function(v, u, a) {
823
- a === void 0 && (a = u), v.setSelectionRange(u, a);
824
- }(k, g.start, g.end), W.current = B());
825
- }, [O, B]), A = r.useCallback(function() {
826
- W.current = B();
827
- }, [B]), Y = (m = A, b = r.useRef(null), E = r.useCallback(function() {
828
- b.current === null && function g() {
829
- m(), b.current = X(g);
830
- }();
831
- }, [m]), V = r.useCallback(function() {
832
- H(b.current), b.current = null;
833
- }, []), r.useEffect(function() {
834
- b.current && (V(), E());
835
- }, [E, V]), r.useEffect(H, []), [E, V]), G = Y[0], le = Y[1];
836
- return r.useLayoutEffect(function() {
837
- if (_) {
838
- var g = O();
839
- return g.addEventListener("focus", G), g.addEventListener("blur", le), L(g) && G(), function() {
840
- g.removeEventListener("focus", G), g.removeEventListener("blur", le), le();
841
- };
842
- }
843
- }), { getSelection: B, getLastSelection: U, setSelection: M };
844
- }
845
- function Q(o, _) {
846
- var m = r.useRef(), b = re(m, _), E = b.getSelection, V = b.getLastSelection, W = b.setSelection, O = function(A, Y) {
847
- var G = ee(A), le = r.useRef(Y);
848
- return { getValue: r.useCallback(function() {
849
- return G().value;
850
- }, [G]), getLastValue: r.useCallback(function() {
851
- return le.current;
852
- }, []), setValue: r.useCallback(function(g) {
853
- le.current = g;
854
- var k = G();
855
- k && (k.value = g);
856
- }, [G]) };
857
- }(m, o), B = O.getValue, U = O.getLastValue, M = O.setValue;
858
- return { inputRef: m, getInputState: function() {
859
- return { value: B(), selection: E() };
860
- }, getLastInputState: function() {
861
- return { value: U(), selection: V() };
862
- }, setInputState: function(A) {
863
- var Y = A.value, G = A.selection;
864
- M(Y), W(G);
865
- } };
866
- }
867
- or();
868
- var J = ["disabled", "onBlur", "onChange", "onFocus", "onMouseDown", "readOnly", "value"], ue = { 9: /[0-9]/, a: /[A-Za-z]/, "*": /[A-Za-z0-9]/ }, Z = function(o) {
869
- var _ = this;
870
- this.isCharacterAllowedAtPosition = function(m, b) {
871
- var E = _.maskOptions.maskPlaceholder;
872
- return !!_.isCharacterFillingPosition(m, b) || !!E && E[b] === m;
873
- }, this.isCharacterFillingPosition = function(m, b) {
874
- var E = _.maskOptions.mask;
875
- if (!m || b >= E.length)
876
- return !1;
877
- if (!_.isPositionEditable(b))
878
- return E[b] === m;
879
- var V = E[b];
880
- return new RegExp(V).test(m);
881
- }, this.isPositionEditable = function(m) {
882
- var b = _.maskOptions, E = b.mask, V = b.permanents;
883
- return m < E.length && V.indexOf(m) === -1;
884
- }, this.isValueEmpty = function(m) {
885
- return m.split("").every(function(b, E) {
886
- return !_.isPositionEditable(E) || !_.isCharacterFillingPosition(b, E);
887
- });
888
- }, this.isValueFilled = function(m) {
889
- return _.getFilledLength(m) === _.maskOptions.lastEditablePosition + 1;
890
- }, this.getDefaultSelectionForValue = function(m) {
891
- var b = _.getFilledLength(m), E = _.getRightEditablePosition(b);
892
- return { start: E, end: E };
893
- }, this.getFilledLength = function(m) {
894
- return function(b, E) {
895
- for (var V = b.length - 1; V >= 0; V--)
896
- if (E(b[V], V))
897
- return V;
898
- return -1;
899
- }(m.split(""), function(b, E) {
900
- return _.isPositionEditable(E) && _.isCharacterFillingPosition(b, E);
901
- }) + 1;
902
- }, this.getStringFillingLengthAtPosition = function(m, b) {
903
- return m.split("").reduce(function(E, V) {
904
- return _.insertCharacterAtPosition(E, V, E.length);
905
- }, function(E, V) {
906
- V === void 0 && (V = 1);
907
- for (var W = "", O = 0; O < V; O++)
908
- W += E;
909
- return W;
910
- }(" ", b)).length - b;
911
- }, this.getLeftEditablePosition = function(m) {
912
- for (var b = m; b >= 0; b--)
913
- if (_.isPositionEditable(b))
914
- return b;
915
- return null;
916
- }, this.getRightEditablePosition = function(m) {
917
- for (var b = _.maskOptions.mask, E = m; E < b.length; E++)
918
- if (_.isPositionEditable(E))
919
- return E;
920
- return null;
921
- }, this.formatValue = function(m) {
922
- var b = _.maskOptions, E = b.maskPlaceholder, V = b.mask;
923
- if (!E) {
924
- for (m = _.insertStringAtPosition("", m, 0); m.length < V.length && !_.isPositionEditable(m.length); )
925
- m += V[m.length];
926
- return m;
927
- }
928
- return _.insertStringAtPosition(E, m, 0);
929
- }, this.clearRange = function(m, b, E) {
930
- if (!E)
931
- return m;
932
- var V = b + E, W = _.maskOptions, O = W.maskPlaceholder, B = W.mask, U = m.split("").map(function(M, A) {
933
- var Y = _.isPositionEditable(A);
934
- return !O && A >= V && !Y ? "" : A < b || A >= V ? M : Y ? O ? O[A] : "" : B[A];
935
- }).join("");
936
- return _.formatValue(U);
937
- }, this.insertCharacterAtPosition = function(m, b, E) {
938
- var V = _.maskOptions, W = V.mask, O = V.maskPlaceholder;
939
- if (E >= W.length)
940
- return m;
941
- var B = _.isCharacterAllowedAtPosition(b, E), U = _.isPositionEditable(E), M = _.getRightEditablePosition(E), A = O && M ? b === O[M] : null, Y = m.slice(0, E);
942
- return !B && U || (m = Y + (B ? b : W[E])), B || U || A || (m = _.insertCharacterAtPosition(m, b, E + 1)), m;
943
- }, this.insertStringAtPosition = function(m, b, E) {
944
- var V = _.maskOptions, W = V.mask, O = V.maskPlaceholder;
945
- if (!b || E >= W.length)
946
- return m;
947
- var B = b.split(""), U = _.isValueFilled(m) || !!O, M = m.slice(E);
948
- return m = B.reduce(function(A, Y) {
949
- return _.insertCharacterAtPosition(A, Y, A.length);
950
- }, m.slice(0, E)), U ? m += M.slice(m.length - E) : _.isValueFilled(m) ? m += W.slice(m.length).join("") : m = M.split("").filter(function(A, Y) {
951
- return _.isPositionEditable(E + Y);
952
- }).reduce(function(A, Y) {
953
- var G = _.getRightEditablePosition(A.length);
954
- return G === null ? A : (_.isPositionEditable(A.length) || (A += W.slice(A.length, G).join("")), _.insertCharacterAtPosition(A, Y, A.length));
955
- }, m), m;
956
- }, this.processChange = function(m, b) {
957
- var E = _.maskOptions, V = E.mask, W = E.prefix, O = E.lastEditablePosition, B = m.value, U = m.selection, M = b.value, A = b.selection, Y = B, G = "", le = 0, g = 0, k = Math.min(A.start, U.start);
958
- return U.end > A.start ? (G = Y.slice(A.start, U.end), g = (le = _.getStringFillingLengthAtPosition(G, k)) ? A.length : 0) : Y.length < M.length && (g = M.length - Y.length), Y = M, g && (g === 1 && !A.length && (k = A.start === U.start ? _.getRightEditablePosition(U.start) : _.getLeftEditablePosition(U.start)), Y = _.clearRange(Y, k, g)), Y = _.insertStringAtPosition(Y, G, k), (k += le) >= V.length ? k = V.length : k < W.length && !le ? k = W.length : k >= W.length && k < O && le && (k = _.getRightEditablePosition(k)), { value: Y = _.formatValue(Y), enteredString: G, selection: { start: k, end: k } };
959
- }, this.maskOptions = function(m) {
960
- var b = m.mask, E = m.maskPlaceholder, V = [];
961
- if (!b)
962
- return { maskPlaceholder: null, mask: null, prefix: null, lastEditablePosition: null, permanents: [] };
963
- if (typeof b == "string") {
964
- var W = !1, O = "";
965
- b.split("").forEach(function(M) {
966
- W || M !== "\\" ? (!W && ue[M] || V.push(O.length), O += M, W = !1) : W = !0;
967
- }), b = O.split("").map(function(M, A) {
968
- return V.indexOf(A) === -1 ? ue[M] : M;
969
- });
970
- } else
971
- b.forEach(function(M, A) {
972
- typeof M == "string" && V.push(A);
973
- });
974
- E && (E = E.length === 1 ? b.map(function(M, A) {
975
- return V.indexOf(A) !== -1 ? M : E;
976
- }) : E.split(""), V.forEach(function(M) {
977
- E[M] = b[M];
978
- }), E = E.join(""));
979
- for (var B = V.filter(function(M, A) {
980
- return M === A;
981
- }).map(function(M) {
982
- return b[M];
983
- }).join(""), U = b.length - 1; V.indexOf(U) !== -1; )
984
- U--;
985
- return { maskPlaceholder: E, prefix: B, mask: b, lastEditablePosition: U, permanents: V };
986
- }(o);
987
- }, ne = function(o) {
988
- function _() {
989
- return o.apply(this, arguments) || this;
990
- }
991
- return P(_, o), _.prototype.render = function() {
992
- var m = this.props, b = m.children, E = S(m, ["children"]);
993
- return t.cloneElement(b, E);
994
- }, _;
995
- }(t.Component), K = r.forwardRef(function(o, _) {
996
- var m = o.alwaysShowMask, b = o.children, E = o.mask, V = o.maskPlaceholder, W = o.beforeMaskedStateChange, O = S(o, ["alwaysShowMask", "children", "mask", "maskPlaceholder", "beforeMaskedStateChange"]);
997
- (function(h) {
998
- var I = h.mask, q = h.maskPlaceholder;
999
- I && q && q.length !== 1 && q.length !== I.length && f(!1);
1000
- })(o);
1001
- var B, U, M = new Z({ mask: E, maskPlaceholder: V }), A = !!E, Y = !O.disabled && !O.readOnly, G = o.value !== null && o.value !== void 0, le = (B = A, U = r.useRef(), r.useEffect(function() {
1002
- U.current = B;
1003
- }), U.current), g = Q(function(h) {
1004
- return "" + h;
1005
- }((G ? o.value : o.defaultValue) || ""), A), k = g.inputRef, v = g.getInputState, u = g.setInputState, a = g.getLastInputState, c = ee(k);
1006
- if (A && G) {
1007
- var y = c(), p = y && L(y) || m || o.value ? M.formatValue(o.value) : o.value;
1008
- W && (p = W({ nextState: { value: p, selection: { start: null, end: null } } }).value), u(i({}, a(), { value: p }));
1009
- }
1010
- var F = a(), C = F.selection, T = F.value;
1011
- r.useLayoutEffect(function() {
1012
- if (A) {
1013
- var h = L(c()), I = C, q = v(), $ = i({}, q);
1014
- if (!G) {
1015
- var ae = q.value, he = M.formatValue(ae), n = M.isValueEmpty(he);
1016
- !n || h || m ? $.value = he : n && !h && ($.value = "");
1017
- }
1018
- h && !le ? $.selection = M.getDefaultSelectionForValue($.value) : G && h && I && I.start !== null && I.end !== null && ($.selection = I), W && ($ = W({ currentState: q, nextState: $ })), u($);
1019
- }
1020
- });
1021
- var z = i({}, O, { onFocus: function(h) {
1022
- k.current = h.target;
1023
- var I = v().value;
1024
- if (A && !M.isValueFilled(I)) {
1025
- var q = M.formatValue(I), $ = M.getDefaultSelectionForValue(q), ae = { value: q, selection: $ };
1026
- W && (q = (ae = W({ currentState: v(), nextState: ae })).value, $ = ae.selection), u(ae), q !== I && o.onChange && o.onChange(h), X(function() {
1027
- u(a());
1028
- });
1029
- }
1030
- o.onFocus && o.onFocus(h);
1031
- }, onBlur: function(h) {
1032
- var I = v().value, q = a().value;
1033
- if (A && !m && M.isValueEmpty(q)) {
1034
- var $ = "", ae = { value: $, selection: { start: null, end: null } };
1035
- W && ($ = (ae = W({ currentState: v(), nextState: ae })).value), u(ae), $ !== I && o.onChange && o.onChange(h);
1036
- }
1037
- o.onBlur && o.onBlur(h);
1038
- }, onChange: A && Y ? function(h) {
1039
- var I = v(), q = a(), $ = M.processChange(I, q);
1040
- W && ($ = W({ currentState: I, previousState: q, nextState: $ })), u($), o.onChange && o.onChange(h);
1041
- } : o.onChange, onMouseDown: A && Y ? function(h) {
1042
- var I = c(), q = v().value, $ = D(I);
1043
- if (!L(I) && !M.isValueFilled(q)) {
1044
- var ae = h.clientX, he = h.clientY, n = (/* @__PURE__ */ new Date()).getTime();
1045
- $.addEventListener("mouseup", function s(d) {
1046
- if ($.removeEventListener("mouseup", s), L(I)) {
1047
- var R = Math.abs(d.clientX - ae), w = Math.abs(d.clientY - he), x = Math.max(R, w), N = (/* @__PURE__ */ new Date()).getTime() - n;
1048
- if (x <= 10 && N <= 200 || x <= 5 && N <= 300) {
1049
- var te = a(), fe = i({}, te, { selection: M.getDefaultSelectionForValue(te.value) });
1050
- u(fe);
1051
- }
1052
- }
1053
- });
1054
- }
1055
- o.onMouseDown && o.onMouseDown(h);
1056
- } : o.onMouseDown, ref: function(h) {
1057
- k.current = l.findDOMNode(h), /* @__PURE__ */ function(I) {
1058
- return typeof I == "function";
1059
- }(_) ? _(h) : _ !== null && typeof _ == "object" && (_.current = h);
1060
- }, value: A && G ? T : o.value });
1061
- return b ? (function(h, I) {
1062
- J.filter(function(q) {
1063
- return I.props[q] != null && I.props[q] !== h[q];
1064
- }).length && f(!1);
1065
- }(o, b), t.createElement(ne, z, b)) : t.createElement("input", z);
1066
- });
1067
- return K.displayName = "InputMask", K.defaultProps = { alwaysShowMask: !1, maskPlaceholder: "_" }, ot.exports = K, ot.exports;
1068
- }
1069
- var yt, zt;
1070
- function Ir() {
1071
- if (zt)
1072
- return yt;
1073
- zt = 1;
1074
- function e(v) {
1075
- return v && typeof v == "object" && "default" in v ? v.default : v;
1076
- }
1077
- var r = we, t = e(r), l = rr, f = e(ar()), i = e(sr()), P = e(or());
1078
- function S(v, u) {
1079
- for (var a = Object.getOwnPropertyNames(u), c = 0; c < a.length; c++) {
1080
- var y = a[c], p = Object.getOwnPropertyDescriptor(u, y);
1081
- p && p.configurable && v[y] === void 0 && Object.defineProperty(v, y, p);
1082
- }
1083
- return v;
1084
- }
1085
- function X() {
1086
- return X = Object.assign || function(v) {
1087
- for (var u = 1; u < arguments.length; u++) {
1088
- var a = arguments[u];
1089
- for (var c in a)
1090
- Object.prototype.hasOwnProperty.call(a, c) && (v[c] = a[c]);
1091
- }
1092
- return v;
1093
- }, X.apply(this, arguments);
1094
- }
1095
- function H(v, u) {
1096
- v.prototype = Object.create(u.prototype), v.prototype.constructor = v, S(v, u);
1097
- }
1098
- function L(v, u) {
1099
- if (v == null)
1100
- return {};
1101
- var a = {}, c = Object.keys(v), y, p;
1102
- for (p = 0; p < c.length; p++)
1103
- y = c[p], !(u.indexOf(y) >= 0) && (a[y] = v[y]);
1104
- return a;
1105
- }
1106
- function D(v) {
1107
- return requestAnimationFrame(v);
1108
- }
1109
- function ie(v) {
1110
- cancelAnimationFrame(v);
1111
- }
1112
- function ee(v, u, a) {
1113
- a === void 0 && (a = u), v.setSelectionRange(u, a);
1114
- }
1115
- function re(v) {
1116
- var u = v.selectionStart, a = v.selectionEnd;
1117
- return {
1118
- start: u,
1119
- end: a,
1120
- length: a - u
1121
- };
1122
- }
1123
- function Q(v) {
1124
- var u = v.ownerDocument;
1125
- return u.hasFocus() && u.activeElement === v;
1126
- }
1127
- function J(v) {
1128
- return v == null ? void 0 : v.ownerDocument;
1129
- }
1130
- function ue(v) {
1131
- var u;
1132
- return (u = J(v)) == null ? void 0 : u.defaultView;
1133
- }
1134
- function Z(v) {
1135
- var u = ue(v);
1136
- return !!u && v instanceof u.HTMLElement;
1137
- }
1138
- function ne(v) {
1139
- return typeof v == "function";
1140
- }
1141
- function K(v, u) {
1142
- for (var a = v.length - 1; a >= 0; a--) {
1143
- var c = v[a];
1144
- if (u(c, a))
1145
- return a;
1146
- }
1147
- return -1;
1148
- }
1149
- function o(v, u) {
1150
- u === void 0 && (u = 1);
1151
- for (var a = "", c = 0; c < u; c++)
1152
- a += v;
1153
- return a;
1154
- }
1155
- function _(v) {
1156
- return "" + v;
1157
- }
1158
- function m(v) {
1159
- return r.useCallback(function() {
1160
- var u = v.current, a = typeof window < "u" && Z(u);
1161
- if (!u || !a)
1162
- return null;
1163
- if (u.nodeName !== "INPUT" && (u = u.querySelector("input")), !u)
1164
- throw new Error("react-input-mask: inputComponent doesn't contain input node");
1165
- return u;
1166
- }, [v]);
1167
- }
1168
- function b(v) {
1169
- var u = r.useRef(null), a = r.useCallback(function() {
1170
- if (u.current !== null)
1171
- return;
1172
- function y() {
1173
- v(), u.current = D(y);
1174
- }
1175
- y();
1176
- }, [v]), c = r.useCallback(function() {
1177
- ie(u.current), u.current = null;
1178
- }, []);
1179
- return r.useEffect(function() {
1180
- u.current && (c(), a());
1181
- }, [a, c]), r.useEffect(ie, []), [a, c];
1182
- }
1183
- function E(v, u) {
1184
- var a = r.useRef({
1185
- start: null,
1186
- end: null
1187
- }), c = m(v), y = r.useCallback(function() {
1188
- var I = c();
1189
- return re(I);
1190
- }, [c]), p = r.useCallback(function() {
1191
- return a.current;
1192
- }, []), F = r.useCallback(function(I) {
1193
- var q = c();
1194
- !q || !Q(q) || (ee(q, I.start, I.end), a.current = y());
1195
- }, [c, y]), C = r.useCallback(function() {
1196
- a.current = y();
1197
- }, [y]), T = b(C), z = T[0], h = T[1];
1198
- return r.useLayoutEffect(function() {
1199
- if (u) {
1200
- var I = c();
1201
- return I.addEventListener("focus", z), I.addEventListener("blur", h), Q(I) && z(), function() {
1202
- I.removeEventListener("focus", z), I.removeEventListener("blur", h), h();
1203
- };
1204
- }
1205
- }), {
1206
- getSelection: y,
1207
- getLastSelection: p,
1208
- setSelection: F
1209
- };
1210
- }
1211
- function V(v, u) {
1212
- var a = m(v), c = r.useRef(u), y = r.useCallback(function() {
1213
- var C = a();
1214
- return C.value;
1215
- }, [a]), p = r.useCallback(function() {
1216
- return c.current;
1217
- }, []), F = r.useCallback(function(C) {
1218
- c.current = C;
1219
- var T = a();
1220
- T && (T.value = C);
1221
- }, [a]);
1222
- return {
1223
- getValue: y,
1224
- getLastValue: p,
1225
- setValue: F
1226
- };
1227
- }
1228
- function W(v, u) {
1229
- var a = r.useRef(), c = E(a, u), y = c.getSelection, p = c.getLastSelection, F = c.setSelection, C = V(a, v), T = C.getValue, z = C.getLastValue, h = C.setValue;
1230
- function I() {
1231
- return {
1232
- value: z(),
1233
- selection: p()
1234
- };
1235
- }
1236
- function q() {
1237
- return {
1238
- value: T(),
1239
- selection: y()
1240
- };
1241
- }
1242
- function $(ae) {
1243
- var he = ae.value, n = ae.selection;
1244
- h(he), F(n);
1245
- }
1246
- return {
1247
- inputRef: a,
1248
- getInputState: q,
1249
- getLastInputState: I,
1250
- setInputState: $
1251
- };
1252
- }
1253
- function O(v) {
1254
- var u = r.useRef();
1255
- return r.useEffect(function() {
1256
- u.current = v;
1257
- }), u.current;
1258
- }
1259
- var B = ["disabled", "onBlur", "onChange", "onFocus", "onMouseDown", "readOnly", "value"], U = {
1260
- 9: /[0-9]/,
1261
- a: /[A-Za-z]/,
1262
- "*": /[A-Za-z0-9]/
1263
- };
1264
- function M(v) {
1265
- process.env.NODE_ENV !== "production" && P(!v.maxLength || !v.mask, "react-input-mask: maxLength property shouldn't be passed to the masked input. It breaks masking and unnecessary because length is limited by the mask length.");
1266
- }
1267
- function A(v) {
1268
- var u = v.mask, a = v.maskPlaceholder;
1269
- !u || !a || a.length === 1 || a.length === u.length || (process.env.NODE_ENV !== "production" ? i(!1, `react-input-mask: maskPlaceholder should either be a single character or have the same length as the mask:
1270
- ` + ("mask: " + u + `
1271
- `) + ("maskPlaceholder: " + a)) : i(!1));
1272
- }
1273
- function Y(v, u) {
1274
- var a = B.filter(function(c) {
1275
- return u.props[c] != null && u.props[c] !== v[c];
1276
- });
1277
- a.length && (process.env.NODE_ENV !== "production" ? i(!1, "react-input-mask: the following props should be passed to the InputMask component, not to children: " + a.join(",")) : i(!1));
1278
- }
1279
- function G(v) {
1280
- var u = v.mask, a = v.maskPlaceholder, c = [];
1281
- if (!u)
1282
- return {
1283
- maskPlaceholder: null,
1284
- mask: null,
1285
- prefix: null,
1286
- lastEditablePosition: null,
1287
- permanents: []
1288
- };
1289
- if (typeof u == "string") {
1290
- var y = !1, p = "";
1291
- u.split("").forEach(function(T) {
1292
- !y && T === "\\" ? y = !0 : ((y || !U[T]) && c.push(p.length), p += T, y = !1);
1293
- }), u = p.split("").map(function(T, z) {
1294
- return c.indexOf(z) === -1 ? U[T] : T;
1295
- });
1296
- } else
1297
- u.forEach(function(T, z) {
1298
- typeof T == "string" && c.push(z);
1299
- });
1300
- a && (a.length === 1 ? a = u.map(function(T, z) {
1301
- return c.indexOf(z) !== -1 ? T : a;
1302
- }) : a = a.split(""), c.forEach(function(T) {
1303
- a[T] = u[T];
1304
- }), a = a.join(""));
1305
- for (var F = c.filter(function(T, z) {
1306
- return T === z;
1307
- }).map(function(T) {
1308
- return u[T];
1309
- }).join(""), C = u.length - 1; c.indexOf(C) !== -1; )
1310
- C--;
1311
- return {
1312
- maskPlaceholder: a,
1313
- prefix: F,
1314
- mask: u,
1315
- lastEditablePosition: C,
1316
- permanents: c
1317
- };
1318
- }
1319
- var le = function(u) {
1320
- var a = this;
1321
- this.isCharacterAllowedAtPosition = function(c, y) {
1322
- var p = a.maskOptions.maskPlaceholder;
1323
- return a.isCharacterFillingPosition(c, y) ? !0 : p ? p[y] === c : !1;
1324
- }, this.isCharacterFillingPosition = function(c, y) {
1325
- var p = a.maskOptions.mask;
1326
- if (!c || y >= p.length)
1327
- return !1;
1328
- if (!a.isPositionEditable(y))
1329
- return p[y] === c;
1330
- var F = p[y];
1331
- return new RegExp(F).test(c);
1332
- }, this.isPositionEditable = function(c) {
1333
- var y = a.maskOptions, p = y.mask, F = y.permanents;
1334
- return c < p.length && F.indexOf(c) === -1;
1335
- }, this.isValueEmpty = function(c) {
1336
- return c.split("").every(function(y, p) {
1337
- return !a.isPositionEditable(p) || !a.isCharacterFillingPosition(y, p);
1338
- });
1339
- }, this.isValueFilled = function(c) {
1340
- return a.getFilledLength(c) === a.maskOptions.lastEditablePosition + 1;
1341
- }, this.getDefaultSelectionForValue = function(c) {
1342
- var y = a.getFilledLength(c), p = a.getRightEditablePosition(y);
1343
- return {
1344
- start: p,
1345
- end: p
1346
- };
1347
- }, this.getFilledLength = function(c) {
1348
- var y = c.split(""), p = K(y, function(F, C) {
1349
- return a.isPositionEditable(C) && a.isCharacterFillingPosition(F, C);
1350
- });
1351
- return p + 1;
1352
- }, this.getStringFillingLengthAtPosition = function(c, y) {
1353
- var p = c.split(""), F = p.reduce(function(C, T) {
1354
- return a.insertCharacterAtPosition(C, T, C.length);
1355
- }, o(" ", y));
1356
- return F.length - y;
1357
- }, this.getLeftEditablePosition = function(c) {
1358
- for (var y = c; y >= 0; y--)
1359
- if (a.isPositionEditable(y))
1360
- return y;
1361
- return null;
1362
- }, this.getRightEditablePosition = function(c) {
1363
- for (var y = a.maskOptions.mask, p = c; p < y.length; p++)
1364
- if (a.isPositionEditable(p))
1365
- return p;
1366
- return null;
1367
- }, this.formatValue = function(c) {
1368
- var y = a.maskOptions, p = y.maskPlaceholder, F = y.mask;
1369
- if (!p) {
1370
- for (c = a.insertStringAtPosition("", c, 0); c.length < F.length && !a.isPositionEditable(c.length); )
1371
- c += F[c.length];
1372
- return c;
1373
- }
1374
- return a.insertStringAtPosition(p, c, 0);
1375
- }, this.clearRange = function(c, y, p) {
1376
- if (!p)
1377
- return c;
1378
- var F = y + p, C = a.maskOptions, T = C.maskPlaceholder, z = C.mask, h = c.split("").map(function(I, q) {
1379
- var $ = a.isPositionEditable(q);
1380
- return !T && q >= F && !$ ? "" : q < y || q >= F ? I : $ ? T ? T[q] : "" : z[q];
1381
- }).join("");
1382
- return a.formatValue(h);
1383
- }, this.insertCharacterAtPosition = function(c, y, p) {
1384
- var F = a.maskOptions, C = F.mask, T = F.maskPlaceholder;
1385
- if (p >= C.length)
1386
- return c;
1387
- var z = a.isCharacterAllowedAtPosition(y, p), h = a.isPositionEditable(p), I = a.getRightEditablePosition(p), q = T && I ? y === T[I] : null, $ = c.slice(0, p);
1388
- if (z || !h) {
1389
- var ae = z ? y : C[p];
1390
- c = $ + ae;
1391
- }
1392
- return !z && !h && !q && (c = a.insertCharacterAtPosition(c, y, p + 1)), c;
1393
- }, this.insertStringAtPosition = function(c, y, p) {
1394
- var F = a.maskOptions, C = F.mask, T = F.maskPlaceholder;
1395
- if (!y || p >= C.length)
1396
- return c;
1397
- var z = y.split(""), h = a.isValueFilled(c) || !!T, I = c.slice(p);
1398
- if (c = z.reduce(function($, ae) {
1399
- return a.insertCharacterAtPosition($, ae, $.length);
1400
- }, c.slice(0, p)), h)
1401
- c += I.slice(c.length - p);
1402
- else if (a.isValueFilled(c))
1403
- c += C.slice(c.length).join("");
1404
- else {
1405
- var q = I.split("").filter(function($, ae) {
1406
- return a.isPositionEditable(p + ae);
1407
- });
1408
- c = q.reduce(function($, ae) {
1409
- var he = a.getRightEditablePosition($.length);
1410
- return he === null ? $ : (a.isPositionEditable($.length) || ($ += C.slice($.length, he).join("")), a.insertCharacterAtPosition($, ae, $.length));
1411
- }, c);
1412
- }
1413
- return c;
1414
- }, this.processChange = function(c, y) {
1415
- var p = a.maskOptions, F = p.mask, C = p.prefix, T = p.lastEditablePosition, z = c.value, h = c.selection, I = y.value, q = y.selection, $ = z, ae = "", he = 0, n = 0, s = Math.min(q.start, h.start);
1416
- if (h.end > q.start ? (ae = $.slice(q.start, h.end), he = a.getStringFillingLengthAtPosition(ae, s), he ? n = q.length : n = 0) : $.length < I.length && (n = I.length - $.length), $ = I, n) {
1417
- if (n === 1 && !q.length) {
1418
- var d = q.start === h.start;
1419
- s = d ? a.getRightEditablePosition(h.start) : a.getLeftEditablePosition(h.start);
1420
- }
1421
- $ = a.clearRange($, s, n);
1422
- }
1423
- return $ = a.insertStringAtPosition($, ae, s), s += he, s >= F.length ? s = F.length : s < C.length && !he ? s = C.length : s >= C.length && s < T && he && (s = a.getRightEditablePosition(s)), $ = a.formatValue($), {
1424
- value: $,
1425
- enteredString: ae,
1426
- selection: {
1427
- start: s,
1428
- end: s
1429
- }
1430
- };
1431
- }, this.maskOptions = G(u);
1432
- }, g = /* @__PURE__ */ function(v) {
1433
- H(u, v);
1434
- function u() {
1435
- return v.apply(this, arguments) || this;
1436
- }
1437
- var a = u.prototype;
1438
- return a.render = function() {
1439
- var y = this.props, p = y.children, F = L(y, ["children"]);
1440
- return t.cloneElement(p, F);
1441
- }, u;
1442
- }(t.Component), k = r.forwardRef(function(u, a) {
1443
- var c = u.alwaysShowMask, y = u.children, p = u.mask, F = u.maskPlaceholder, C = u.beforeMaskedStateChange, T = L(u, ["alwaysShowMask", "children", "mask", "maskPlaceholder", "beforeMaskedStateChange"]);
1444
- M(u), A(u);
1445
- var z = new le({
1446
- mask: p,
1447
- maskPlaceholder: F
1448
- }), h = !!p, I = !T.disabled && !T.readOnly, q = u.value !== null && u.value !== void 0, $ = O(h), ae = _((q ? u.value : u.defaultValue) || ""), he = W(ae, h), n = he.inputRef, s = he.getInputState, d = he.setInputState, R = he.getLastInputState, w = m(n);
1449
- function x(be) {
1450
- var de = s(), _e = R(), ke = z.processChange(de, _e);
1451
- C && (ke = C({
1452
- currentState: de,
1453
- previousState: _e,
1454
- nextState: ke
1455
- })), d(ke), u.onChange && u.onChange(be);
1456
- }
1457
- function N(be) {
1458
- n.current = be.target;
1459
- var de = s().value;
1460
- if (h && !z.isValueFilled(de)) {
1461
- var _e = z.formatValue(de), ke = z.getDefaultSelectionForValue(_e), ve = {
1462
- value: _e,
1463
- selection: ke
1464
- };
1465
- C && (ve = C({
1466
- currentState: s(),
1467
- nextState: ve
1468
- }), _e = ve.value, ke = ve.selection), d(ve), _e !== de && u.onChange && u.onChange(be), D(function() {
1469
- d(R());
1470
- });
1471
- }
1472
- u.onFocus && u.onFocus(be);
1473
- }
1474
- function te(be) {
1475
- var de = s().value, _e = R().value;
1476
- if (h && !c && z.isValueEmpty(_e)) {
1477
- var ke = "", ve = {
1478
- value: ke,
1479
- selection: {
1480
- start: null,
1481
- end: null
1482
- }
1483
- };
1484
- C && (ve = C({
1485
- currentState: s(),
1486
- nextState: ve
1487
- }), ke = ve.value), d(ve), ke !== de && u.onChange && u.onChange(be);
1488
- }
1489
- u.onBlur && u.onBlur(be);
1490
- }
1491
- function fe(be) {
1492
- var de = w(), _e = s(), ke = _e.value, ve = J(de);
1493
- if (!Q(de) && !z.isValueFilled(ke)) {
1494
- var it = be.clientX, Ye = be.clientY, ze = (/* @__PURE__ */ new Date()).getTime(), at = function yr(wt) {
1495
- if (ve.removeEventListener("mouseup", yr), !!Q(de)) {
1496
- var pr = Math.abs(wt.clientX - it), mr = Math.abs(wt.clientY - Ye), Ot = Math.max(pr, mr), Ct = (/* @__PURE__ */ new Date()).getTime() - ze;
1497
- if (Ot <= 10 && Ct <= 200 || Ot <= 5 && Ct <= 300) {
1498
- var At = R(), br = z.getDefaultSelectionForValue(At.value), Er = X({}, At, {
1499
- selection: br
1500
- });
1501
- d(Er);
1502
- }
1503
- }
1504
- };
1505
- ve.addEventListener("mouseup", at);
1506
- }
1507
- u.onMouseDown && u.onMouseDown(be);
1508
- }
1509
- if (h && q) {
1510
- var Ee = w(), Re = Ee && Q(Ee), Be = Re || c || u.value ? z.formatValue(u.value) : u.value;
1511
- C && (Be = C({
1512
- nextState: {
1513
- value: Be,
1514
- selection: {
1515
- start: null,
1516
- end: null
1517
- }
1518
- }
1519
- }).value), d(X({}, R(), {
1520
- value: Be
1521
- }));
1522
- }
1523
- var Le = R(), qe = Le.selection, nt = Le.value;
1524
- r.useLayoutEffect(function() {
1525
- if (h) {
1526
- var be = w(), de = Q(be), _e = qe, ke = s(), ve = X({}, ke);
1527
- if (!q) {
1528
- var it = ke.value, Ye = z.formatValue(it), ze = z.isValueEmpty(Ye), at = !ze || de || c;
1529
- at ? ve.value = Ye : ze && !de && (ve.value = "");
1530
- }
1531
- de && !$ ? ve.selection = z.getDefaultSelectionForValue(ve.value) : q && de && _e && _e.start !== null && _e.end !== null && (ve.selection = _e), C && (ve = C({
1532
- currentState: ke,
1533
- nextState: ve
1534
- })), d(ve);
1535
- }
1536
- });
1537
- var Ne = X({}, T, {
1538
- onFocus: N,
1539
- onBlur: te,
1540
- onChange: h && I ? x : u.onChange,
1541
- onMouseDown: h && I ? fe : u.onMouseDown,
1542
- ref: function(de) {
1543
- n.current = l.findDOMNode(de), ne(a) ? a(de) : a !== null && typeof a == "object" && (a.current = de);
1544
- },
1545
- value: h && q ? nt : u.value
1546
- });
1547
- return y ? (Y(u, y), t.createElement(g, Ne, y)) : t.createElement("input", Ne);
1548
- });
1549
- return k.displayName = "InputMask", k.defaultProps = {
1550
- alwaysShowMask: !1,
1551
- maskPlaceholder: "_"
1552
- }, k.propTypes = {
1553
- alwaysShowMask: f.bool,
1554
- beforeMaskedStateChange: f.func,
1555
- children: f.element,
1556
- mask: f.oneOfType([f.string, f.arrayOf(f.oneOfType([f.string, f.instanceOf(RegExp)]))]),
1557
- maskPlaceholder: f.string,
1558
- onFocus: f.func,
1559
- onBlur: f.func,
1560
- onChange: f.func,
1561
- onMouseDown: f.func
1562
- }, yt = k, yt;
1563
- }
1564
- process.env.NODE_ENV === "production" ? Et.exports = Lr() : Et.exports = Ir();
1565
- var jr = Et.exports;
1566
- const Br = /* @__PURE__ */ _r(jr), qr = "_btn_7n08v_1", Nr = "_modal_7n08v_9", $r = "_modalBody_7n08v_16", Ur = "_root_7n08v_21", Wr = "_title_7n08v_34", Yr = "_description_7n08v_41", zr = "_inputWrapper_7n08v_48", Hr = "_linkPolicy_7n08v_55", Xr = "_telegramLink_7n08v_60", Zr = "_telegramWrapper_7n08v_65", Kr = "_telegram_7n08v_60", Jr = "_orText_7n08v_88", Se = {
1567
- btn: qr,
1568
- modal: Nr,
1569
- modalBody: $r,
1570
- root: Ur,
1571
- title: Wr,
1572
- description: Yr,
1573
- inputWrapper: zr,
1574
- linkPolicy: Hr,
1575
- telegramLink: Xr,
1576
- telegramWrapper: Zr,
1577
- telegram: Kr,
1578
- orText: Jr
1579
- };
1580
- var We = (e) => e.type === "checkbox", je = (e) => e instanceof Date, Pe = (e) => e == null;
1581
- const ur = (e) => typeof e == "object";
1582
- var me = (e) => !Pe(e) && !Array.isArray(e) && ur(e) && !je(e), Gr = (e) => me(e) && e.target ? We(e.target) ? e.target.checked : e.target.value : e, Qr = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, en = (e, r) => e.has(Qr(r)), tn = (e) => {
1583
- const r = e.constructor && e.constructor.prototype;
1584
- return me(r) && r.hasOwnProperty("isPrototypeOf");
1585
- }, kt = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
1586
- function Oe(e) {
1587
- let r;
1588
- const t = Array.isArray(e);
1589
- if (e instanceof Date)
1590
- r = new Date(e);
1591
- else if (e instanceof Set)
1592
- r = new Set(e);
1593
- else if (!(kt && (e instanceof Blob || e instanceof FileList)) && (t || me(e)))
1594
- if (r = t ? [] : {}, !t && !tn(e))
1595
- r = e;
1596
- else
1597
- for (const l in e)
1598
- e.hasOwnProperty(l) && (r[l] = Oe(e[l]));
1599
- else
1600
- return e;
1601
- return r;
1602
- }
1603
- var rt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], ge = (e) => e === void 0, j = (e, r, t) => {
1604
- if (!r || !me(e))
1605
- return t;
1606
- const l = rt(r.split(/[,[\].]+?/)).reduce((f, i) => Pe(f) ? f : f[i], e);
1607
- return ge(l) || l === e ? ge(e[r]) ? t : e[r] : l;
1608
- }, Fe = (e) => typeof e == "boolean", St = (e) => /^\w*$/.test(e), lr = (e) => rt(e.replace(/["|']|\]/g, "").split(/\.|\[/)), ce = (e, r, t) => {
1609
- let l = -1;
1610
- const f = St(r) ? [r] : lr(r), i = f.length, P = i - 1;
1611
- for (; ++l < i; ) {
1612
- const S = f[l];
1613
- let X = t;
1614
- if (l !== P) {
1615
- const H = e[S];
1616
- X = me(H) || Array.isArray(H) ? H : isNaN(+f[l + 1]) ? {} : [];
1617
- }
1618
- if (S === "__proto__")
1619
- return;
1620
- e[S] = X, e = e[S];
1621
- }
1622
- return e;
1623
- };
1624
- const Ht = {
1625
- BLUR: "blur",
1626
- FOCUS_OUT: "focusout",
1627
- CHANGE: "change"
1628
- }, Ce = {
1629
- onBlur: "onBlur",
1630
- onChange: "onChange",
1631
- onSubmit: "onSubmit",
1632
- onTouched: "onTouched",
1633
- all: "all"
1634
- }, Te = {
1635
- max: "max",
1636
- min: "min",
1637
- maxLength: "maxLength",
1638
- minLength: "minLength",
1639
- pattern: "pattern",
1640
- required: "required",
1641
- validate: "validate"
1642
- };
1643
- we.createContext(null);
1644
- var rn = (e, r, t, l = !0) => {
1645
- const f = {
1646
- defaultValues: r._defaultValues
1647
- };
1648
- for (const i in e)
1649
- Object.defineProperty(f, i, {
1650
- get: () => {
1651
- const P = i;
1652
- return r._proxyFormState[P] !== Ce.all && (r._proxyFormState[P] = !l || Ce.all), e[P];
1653
- }
1654
- });
1655
- return f;
1656
- }, xe = (e) => me(e) && !Object.keys(e).length, nn = (e, r, t, l) => {
1657
- t(e);
1658
- const { name: f, ...i } = e;
1659
- return xe(i) || Object.keys(i).length >= Object.keys(r).length || Object.keys(i).find((P) => r[P] === Ce.all);
1660
- }, Ke = (e) => Array.isArray(e) ? e : [e];
1661
- function an(e) {
1662
- const r = we.useRef(e);
1663
- r.current = e, we.useEffect(() => {
1664
- const t = !e.disabled && r.current.subject && r.current.subject.subscribe({
1665
- next: r.current.next
1666
- });
1667
- return () => {
1668
- t && t.unsubscribe();
1669
- };
1670
- }, [e.disabled]);
1671
- }
1672
- var Ae = (e) => typeof e == "string", sn = (e, r, t, l, f) => Ae(e) ? (l && r.watch.add(e), j(t, e, f)) : Array.isArray(e) ? e.map((i) => (l && r.watch.add(i), j(t, i))) : (l && (r.watchAll = !0), t), on = (e, r, t, l, f) => r ? {
1673
- ...t[e],
1674
- types: {
1675
- ...t[e] && t[e].types ? t[e].types : {},
1676
- [l]: f || !0
1677
- }
1678
- } : {}, Xt = (e) => ({
1679
- isOnSubmit: !e || e === Ce.onSubmit,
1680
- isOnBlur: e === Ce.onBlur,
1681
- isOnChange: e === Ce.onChange,
1682
- isOnAll: e === Ce.all,
1683
- isOnTouch: e === Ce.onTouched
1684
- }), Zt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((l) => e.startsWith(l) && /^\.\w+/.test(e.slice(l.length))));
1685
- const Ue = (e, r, t, l) => {
1686
- for (const f of t || Object.keys(e)) {
1687
- const i = j(e, f);
1688
- if (i) {
1689
- const { _f: P, ...S } = i;
1690
- if (P) {
1691
- if (P.refs && P.refs[0] && r(P.refs[0], f) && !l)
1692
- break;
1693
- if (P.ref && r(P.ref, P.name) && !l)
1694
- break;
1695
- Ue(S, r);
1696
- } else
1697
- me(S) && Ue(S, r);
1698
- }
1699
- }
1700
- };
1701
- var un = (e, r, t) => {
1702
- const l = Ke(j(e, t));
1703
- return ce(l, "root", r[t]), ce(e, t, l), e;
1704
- }, Pt = (e) => e.type === "file", De = (e) => typeof e == "function", Ge = (e) => {
1705
- if (!kt)
1706
- return !1;
1707
- const r = e ? e.ownerDocument : 0;
1708
- return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
1709
- }, Je = (e) => Ae(e), xt = (e) => e.type === "radio", Qe = (e) => e instanceof RegExp;
1710
- const Kt = {
1711
- value: !1,
1712
- isValid: !1
1713
- }, Jt = { value: !0, isValid: !0 };
1714
- var cr = (e) => {
1715
- if (Array.isArray(e)) {
1716
- if (e.length > 1) {
1717
- const r = e.filter((t) => t && t.checked && !t.disabled).map((t) => t.value);
1718
- return { value: r, isValid: !!r.length };
1719
- }
1720
- return e[0].checked && !e[0].disabled ? (
1721
- // @ts-expect-error expected to work in the browser
1722
- e[0].attributes && !ge(e[0].attributes.value) ? ge(e[0].value) || e[0].value === "" ? Jt : { value: e[0].value, isValid: !0 } : Jt
1723
- ) : Kt;
1724
- }
1725
- return Kt;
1726
- };
1727
- const Gt = {
1728
- isValid: !1,
1729
- value: null
1730
- };
1731
- var fr = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
1732
- isValid: !0,
1733
- value: t.value
1734
- } : r, Gt) : Gt;
1735
- function Qt(e, r, t = "validate") {
1736
- if (Je(e) || Array.isArray(e) && e.every(Je) || Fe(e) && !e)
1737
- return {
1738
- type: t,
1739
- message: Je(e) ? e : "",
1740
- ref: r
1741
- };
1742
- }
1743
- var Ie = (e) => me(e) && !Qe(e) ? e : {
1744
- value: e,
1745
- message: ""
1746
- }, er = async (e, r, t, l, f) => {
1747
- const { ref: i, refs: P, required: S, maxLength: X, minLength: H, min: L, max: D, pattern: ie, validate: ee, name: re, valueAsNumber: Q, mount: J, disabled: ue } = e._f, Z = j(r, re);
1748
- if (!J || ue)
1749
- return {};
1750
- const ne = P ? P[0] : i, K = (O) => {
1751
- l && ne.reportValidity && (ne.setCustomValidity(Fe(O) ? "" : O || ""), ne.reportValidity());
1752
- }, o = {}, _ = xt(i), m = We(i), b = _ || m, E = (Q || Pt(i)) && ge(i.value) && ge(Z) || Ge(i) && i.value === "" || Z === "" || Array.isArray(Z) && !Z.length, V = on.bind(null, re, t, o), W = (O, B, U, M = Te.maxLength, A = Te.minLength) => {
1753
- const Y = O ? B : U;
1754
- o[re] = {
1755
- type: O ? M : A,
1756
- message: Y,
1757
- ref: i,
1758
- ...V(O ? M : A, Y)
1759
- };
1760
- };
1761
- if (f ? !Array.isArray(Z) || !Z.length : S && (!b && (E || Pe(Z)) || Fe(Z) && !Z || m && !cr(P).isValid || _ && !fr(P).isValid)) {
1762
- const { value: O, message: B } = Je(S) ? { value: !!S, message: S } : Ie(S);
1763
- if (O && (o[re] = {
1764
- type: Te.required,
1765
- message: B,
1766
- ref: ne,
1767
- ...V(Te.required, B)
1768
- }, !t))
1769
- return K(B), o;
1770
- }
1771
- if (!E && (!Pe(L) || !Pe(D))) {
1772
- let O, B;
1773
- const U = Ie(D), M = Ie(L);
1774
- if (!Pe(Z) && !isNaN(Z)) {
1775
- const A = i.valueAsNumber || Z && +Z;
1776
- Pe(U.value) || (O = A > U.value), Pe(M.value) || (B = A < M.value);
1777
- } else {
1778
- const A = i.valueAsDate || new Date(Z), Y = (g) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + g), G = i.type == "time", le = i.type == "week";
1779
- Ae(U.value) && Z && (O = G ? Y(Z) > Y(U.value) : le ? Z > U.value : A > new Date(U.value)), Ae(M.value) && Z && (B = G ? Y(Z) < Y(M.value) : le ? Z < M.value : A < new Date(M.value));
1780
- }
1781
- if ((O || B) && (W(!!O, U.message, M.message, Te.max, Te.min), !t))
1782
- return K(o[re].message), o;
1783
- }
1784
- if ((X || H) && !E && (Ae(Z) || f && Array.isArray(Z))) {
1785
- const O = Ie(X), B = Ie(H), U = !Pe(O.value) && Z.length > +O.value, M = !Pe(B.value) && Z.length < +B.value;
1786
- if ((U || M) && (W(U, O.message, B.message), !t))
1787
- return K(o[re].message), o;
1788
- }
1789
- if (ie && !E && Ae(Z)) {
1790
- const { value: O, message: B } = Ie(ie);
1791
- if (Qe(O) && !Z.match(O) && (o[re] = {
1792
- type: Te.pattern,
1793
- message: B,
1794
- ref: i,
1795
- ...V(Te.pattern, B)
1796
- }, !t))
1797
- return K(B), o;
1798
- }
1799
- if (ee) {
1800
- if (De(ee)) {
1801
- const O = await ee(Z, r), B = Qt(O, ne);
1802
- if (B && (o[re] = {
1803
- ...B,
1804
- ...V(Te.validate, B.message)
1805
- }, !t))
1806
- return K(B.message), o;
1807
- } else if (me(ee)) {
1808
- let O = {};
1809
- for (const B in ee) {
1810
- if (!xe(O) && !t)
1811
- break;
1812
- const U = Qt(await ee[B](Z, r), ne, B);
1813
- U && (O = {
1814
- ...U,
1815
- ...V(B, U.message)
1816
- }, K(U.message), t && (o[re] = O));
1817
- }
1818
- if (!xe(O) && (o[re] = {
1819
- ref: ne,
1820
- ...O
1821
- }, !t))
1822
- return o;
1823
- }
1824
- }
1825
- return K(!0), o;
1826
- };
1827
- function ln(e, r) {
1828
- const t = r.slice(0, -1).length;
1829
- let l = 0;
1830
- for (; l < t; )
1831
- e = ge(e) ? l++ : e[r[l++]];
1832
- return e;
1833
- }
1834
- function cn(e) {
1835
- for (const r in e)
1836
- if (e.hasOwnProperty(r) && !ge(e[r]))
1837
- return !1;
1838
- return !0;
1839
- }
1840
- function pe(e, r) {
1841
- const t = Array.isArray(r) ? r : St(r) ? [r] : lr(r), l = t.length === 1 ? e : ln(e, t), f = t.length - 1, i = t[f];
1842
- return l && delete l[i], f !== 0 && (me(l) && xe(l) || Array.isArray(l) && cn(l)) && pe(e, t.slice(0, -1)), e;
1843
- }
1844
- var pt = () => {
1845
- let e = [];
1846
- return {
1847
- get observers() {
1848
- return e;
1849
- },
1850
- next: (f) => {
1851
- for (const i of e)
1852
- i.next && i.next(f);
1853
- },
1854
- subscribe: (f) => (e.push(f), {
1855
- unsubscribe: () => {
1856
- e = e.filter((i) => i !== f);
1857
- }
1858
- }),
1859
- unsubscribe: () => {
1860
- e = [];
1861
- }
1862
- };
1863
- }, et = (e) => Pe(e) || !ur(e);
1864
- function Me(e, r) {
1865
- if (et(e) || et(r))
1866
- return e === r;
1867
- if (je(e) && je(r))
1868
- return e.getTime() === r.getTime();
1869
- const t = Object.keys(e), l = Object.keys(r);
1870
- if (t.length !== l.length)
1871
- return !1;
1872
- for (const f of t) {
1873
- const i = e[f];
1874
- if (!l.includes(f))
1875
- return !1;
1876
- if (f !== "ref") {
1877
- const P = r[f];
1878
- if (je(i) && je(P) || me(i) && me(P) || Array.isArray(i) && Array.isArray(P) ? !Me(i, P) : i !== P)
1879
- return !1;
1880
- }
1881
- }
1882
- return !0;
1883
- }
1884
- var dr = (e) => e.type === "select-multiple", fn = (e) => xt(e) || We(e), mt = (e) => Ge(e) && e.isConnected, vr = (e) => {
1885
- for (const r in e)
1886
- if (De(e[r]))
1887
- return !0;
1888
- return !1;
1889
- };
1890
- function tt(e, r = {}) {
1891
- const t = Array.isArray(e);
1892
- if (me(e) || t)
1893
- for (const l in e)
1894
- Array.isArray(e[l]) || me(e[l]) && !vr(e[l]) ? (r[l] = Array.isArray(e[l]) ? [] : {}, tt(e[l], r[l])) : Pe(e[l]) || (r[l] = !0);
1895
- return r;
1896
- }
1897
- function hr(e, r, t) {
1898
- const l = Array.isArray(e);
1899
- if (me(e) || l)
1900
- for (const f in e)
1901
- Array.isArray(e[f]) || me(e[f]) && !vr(e[f]) ? ge(r) || et(t[f]) ? t[f] = Array.isArray(e[f]) ? tt(e[f], []) : { ...tt(e[f]) } : hr(e[f], Pe(r) ? {} : r[f], t[f]) : t[f] = !Me(e[f], r[f]);
1902
- return t;
1903
- }
1904
- var Ze = (e, r) => hr(e, r, tt(r)), gr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: l }) => ge(e) ? e : r ? e === "" ? NaN : e && +e : t && Ae(e) ? new Date(e) : l ? l(e) : e;
1905
- function bt(e) {
1906
- const r = e.ref;
1907
- if (!(e.refs ? e.refs.every((t) => t.disabled) : r.disabled))
1908
- return Pt(r) ? r.files : xt(r) ? fr(e.refs).value : dr(r) ? [...r.selectedOptions].map(({ value: t }) => t) : We(r) ? cr(e.refs).value : gr(ge(r.value) ? e.ref.value : r.value, e);
1909
- }
1910
- var dn = (e, r, t, l) => {
1911
- const f = {};
1912
- for (const i of e) {
1913
- const P = j(r, i);
1914
- P && ce(f, i, P._f);
1915
- }
1916
- return {
1917
- criteriaMode: t,
1918
- names: [...e],
1919
- fields: f,
1920
- shouldUseNativeValidation: l
1921
- };
1922
- }, $e = (e) => ge(e) ? e : Qe(e) ? e.source : me(e) ? Qe(e.value) ? e.value.source : e.value : e, vn = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate);
1923
- function tr(e, r, t) {
1924
- const l = j(e, t);
1925
- if (l || St(t))
1926
- return {
1927
- error: l,
1928
- name: t
1929
- };
1930
- const f = t.split(".");
1931
- for (; f.length; ) {
1932
- const i = f.join("."), P = j(r, i), S = j(e, i);
1933
- if (P && !Array.isArray(P) && t !== i)
1934
- return { name: t };
1935
- if (S && S.type)
1936
- return {
1937
- name: i,
1938
- error: S
1939
- };
1940
- f.pop();
1941
- }
1942
- return {
1943
- name: t
1944
- };
1945
- }
1946
- var hn = (e, r, t, l, f) => f.isOnAll ? !1 : !t && f.isOnTouch ? !(r || e) : (t ? l.isOnBlur : f.isOnBlur) ? !e : (t ? l.isOnChange : f.isOnChange) ? e : !0, gn = (e, r) => !rt(j(e, r)).length && pe(e, r);
1947
- const yn = {
1948
- mode: Ce.onSubmit,
1949
- reValidateMode: Ce.onChange,
1950
- shouldFocusError: !0
1951
- };
1952
- function pn(e = {}) {
1953
- let r = {
1954
- ...yn,
1955
- ...e
1956
- }, t = {
1957
- submitCount: 0,
1958
- isDirty: !1,
1959
- isLoading: De(r.defaultValues),
1960
- isValidating: !1,
1961
- isSubmitted: !1,
1962
- isSubmitting: !1,
1963
- isSubmitSuccessful: !1,
1964
- isValid: !1,
1965
- touchedFields: {},
1966
- dirtyFields: {},
1967
- validatingFields: {},
1968
- errors: r.errors || {},
1969
- disabled: r.disabled || !1
1970
- }, l = {}, f = me(r.defaultValues) || me(r.values) ? Oe(r.defaultValues || r.values) || {} : {}, i = r.shouldUnregister ? {} : Oe(f), P = {
1971
- action: !1,
1972
- mount: !1,
1973
- watch: !1
1974
- }, S = {
1975
- mount: /* @__PURE__ */ new Set(),
1976
- unMount: /* @__PURE__ */ new Set(),
1977
- array: /* @__PURE__ */ new Set(),
1978
- watch: /* @__PURE__ */ new Set()
1979
- }, X, H = 0;
1980
- const L = {
1981
- isDirty: !1,
1982
- dirtyFields: !1,
1983
- validatingFields: !1,
1984
- touchedFields: !1,
1985
- isValidating: !1,
1986
- isValid: !1,
1987
- errors: !1
1988
- }, D = {
1989
- values: pt(),
1990
- array: pt(),
1991
- state: pt()
1992
- }, ie = Xt(r.mode), ee = Xt(r.reValidateMode), re = r.criteriaMode === Ce.all, Q = (n) => (s) => {
1993
- clearTimeout(H), H = setTimeout(n, s);
1994
- }, J = async (n) => {
1995
- if (L.isValid || n) {
1996
- const s = r.resolver ? xe((await b()).errors) : await V(l, !0);
1997
- s !== t.isValid && D.state.next({
1998
- isValid: s
1999
- });
2000
- }
2001
- }, ue = (n, s) => {
2002
- (L.isValidating || L.validatingFields) && ((n || Array.from(S.mount)).forEach((d) => {
2003
- d && (s ? ce(t.validatingFields, d, s) : pe(t.validatingFields, d));
2004
- }), D.state.next({
2005
- validatingFields: t.validatingFields,
2006
- isValidating: !xe(t.validatingFields)
2007
- }));
2008
- }, Z = (n, s = [], d, R, w = !0, x = !0) => {
2009
- if (R && d) {
2010
- if (P.action = !0, x && Array.isArray(j(l, n))) {
2011
- const N = d(j(l, n), R.argA, R.argB);
2012
- w && ce(l, n, N);
2013
- }
2014
- if (x && Array.isArray(j(t.errors, n))) {
2015
- const N = d(j(t.errors, n), R.argA, R.argB);
2016
- w && ce(t.errors, n, N), gn(t.errors, n);
2017
- }
2018
- if (L.touchedFields && x && Array.isArray(j(t.touchedFields, n))) {
2019
- const N = d(j(t.touchedFields, n), R.argA, R.argB);
2020
- w && ce(t.touchedFields, n, N);
2021
- }
2022
- L.dirtyFields && (t.dirtyFields = Ze(f, i)), D.state.next({
2023
- name: n,
2024
- isDirty: O(n, s),
2025
- dirtyFields: t.dirtyFields,
2026
- errors: t.errors,
2027
- isValid: t.isValid
2028
- });
2029
- } else
2030
- ce(i, n, s);
2031
- }, ne = (n, s) => {
2032
- ce(t.errors, n, s), D.state.next({
2033
- errors: t.errors
2034
- });
2035
- }, K = (n) => {
2036
- t.errors = n, D.state.next({
2037
- errors: t.errors,
2038
- isValid: !1
2039
- });
2040
- }, o = (n, s, d, R) => {
2041
- const w = j(l, n);
2042
- if (w) {
2043
- const x = j(i, n, ge(d) ? j(f, n) : d);
2044
- ge(x) || R && R.defaultChecked || s ? ce(i, n, s ? x : bt(w._f)) : M(n, x), P.mount && J();
2045
- }
2046
- }, _ = (n, s, d, R, w) => {
2047
- let x = !1, N = !1;
2048
- const te = {
2049
- name: n
2050
- }, fe = !!(j(l, n) && j(l, n)._f && j(l, n)._f.disabled);
2051
- if (!d || R) {
2052
- L.isDirty && (N = t.isDirty, t.isDirty = te.isDirty = O(), x = N !== te.isDirty);
2053
- const Ee = fe || Me(j(f, n), s);
2054
- N = !!(!fe && j(t.dirtyFields, n)), Ee || fe ? pe(t.dirtyFields, n) : ce(t.dirtyFields, n, !0), te.dirtyFields = t.dirtyFields, x = x || L.dirtyFields && N !== !Ee;
2055
- }
2056
- if (d) {
2057
- const Ee = j(t.touchedFields, n);
2058
- Ee || (ce(t.touchedFields, n, d), te.touchedFields = t.touchedFields, x = x || L.touchedFields && Ee !== d);
2059
- }
2060
- return x && w && D.state.next(te), x ? te : {};
2061
- }, m = (n, s, d, R) => {
2062
- const w = j(t.errors, n), x = L.isValid && Fe(s) && t.isValid !== s;
2063
- if (e.delayError && d ? (X = Q(() => ne(n, d)), X(e.delayError)) : (clearTimeout(H), X = null, d ? ce(t.errors, n, d) : pe(t.errors, n)), (d ? !Me(w, d) : w) || !xe(R) || x) {
2064
- const N = {
2065
- ...R,
2066
- ...x && Fe(s) ? { isValid: s } : {},
2067
- errors: t.errors,
2068
- name: n
2069
- };
2070
- t = {
2071
- ...t,
2072
- ...N
2073
- }, D.state.next(N);
2074
- }
2075
- }, b = async (n) => {
2076
- ue(n, !0);
2077
- const s = await r.resolver(i, r.context, dn(n || S.mount, l, r.criteriaMode, r.shouldUseNativeValidation));
2078
- return ue(n), s;
2079
- }, E = async (n) => {
2080
- const { errors: s } = await b(n);
2081
- if (n)
2082
- for (const d of n) {
2083
- const R = j(s, d);
2084
- R ? ce(t.errors, d, R) : pe(t.errors, d);
2085
- }
2086
- else
2087
- t.errors = s;
2088
- return s;
2089
- }, V = async (n, s, d = {
2090
- valid: !0
2091
- }) => {
2092
- for (const R in n) {
2093
- const w = n[R];
2094
- if (w) {
2095
- const { _f: x, ...N } = w;
2096
- if (x) {
2097
- const te = S.array.has(x.name);
2098
- ue([R], !0);
2099
- const fe = await er(w, i, re, r.shouldUseNativeValidation && !s, te);
2100
- if (ue([R]), fe[x.name] && (d.valid = !1, s))
2101
- break;
2102
- !s && (j(fe, x.name) ? te ? un(t.errors, fe, x.name) : ce(t.errors, x.name, fe[x.name]) : pe(t.errors, x.name));
2103
- }
2104
- !xe(N) && await V(N, s, d);
2105
- }
2106
- }
2107
- return d.valid;
2108
- }, W = () => {
2109
- for (const n of S.unMount) {
2110
- const s = j(l, n);
2111
- s && (s._f.refs ? s._f.refs.every((d) => !mt(d)) : !mt(s._f.ref)) && y(n);
2112
- }
2113
- S.unMount = /* @__PURE__ */ new Set();
2114
- }, O = (n, s) => (n && s && ce(i, n, s), !Me(k(), f)), B = (n, s, d) => sn(n, S, {
2115
- ...P.mount ? i : ge(s) ? f : Ae(n) ? { [n]: s } : s
2116
- }, d, s), U = (n) => rt(j(P.mount ? i : f, n, e.shouldUnregister ? j(f, n, []) : [])), M = (n, s, d = {}) => {
2117
- const R = j(l, n);
2118
- let w = s;
2119
- if (R) {
2120
- const x = R._f;
2121
- x && (!x.disabled && ce(i, n, gr(s, x)), w = Ge(x.ref) && Pe(s) ? "" : s, dr(x.ref) ? [...x.ref.options].forEach((N) => N.selected = w.includes(N.value)) : x.refs ? We(x.ref) ? x.refs.length > 1 ? x.refs.forEach((N) => (!N.defaultChecked || !N.disabled) && (N.checked = Array.isArray(w) ? !!w.find((te) => te === N.value) : w === N.value)) : x.refs[0] && (x.refs[0].checked = !!w) : x.refs.forEach((N) => N.checked = N.value === w) : Pt(x.ref) ? x.ref.value = "" : (x.ref.value = w, x.ref.type || D.values.next({
2122
- name: n,
2123
- values: { ...i }
2124
- })));
2125
- }
2126
- (d.shouldDirty || d.shouldTouch) && _(n, w, d.shouldTouch, d.shouldDirty, !0), d.shouldValidate && g(n);
2127
- }, A = (n, s, d) => {
2128
- for (const R in s) {
2129
- const w = s[R], x = `${n}.${R}`, N = j(l, x);
2130
- (S.array.has(n) || !et(w) || N && !N._f) && !je(w) ? A(x, w, d) : M(x, w, d);
2131
- }
2132
- }, Y = (n, s, d = {}) => {
2133
- const R = j(l, n), w = S.array.has(n), x = Oe(s);
2134
- ce(i, n, x), w ? (D.array.next({
2135
- name: n,
2136
- values: { ...i }
2137
- }), (L.isDirty || L.dirtyFields) && d.shouldDirty && D.state.next({
2138
- name: n,
2139
- dirtyFields: Ze(f, i),
2140
- isDirty: O(n, x)
2141
- })) : R && !R._f && !Pe(x) ? A(n, x, d) : M(n, x, d), Zt(n, S) && D.state.next({ ...t }), D.values.next({
2142
- name: P.mount ? n : void 0,
2143
- values: { ...i }
2144
- });
2145
- }, G = async (n) => {
2146
- P.mount = !0;
2147
- const s = n.target;
2148
- let d = s.name, R = !0;
2149
- const w = j(l, d), x = () => s.type ? bt(w._f) : Gr(n), N = (te) => {
2150
- R = Number.isNaN(te) || te === j(i, d, te);
2151
- };
2152
- if (w) {
2153
- let te, fe;
2154
- const Ee = x(), Re = n.type === Ht.BLUR || n.type === Ht.FOCUS_OUT, Be = !vn(w._f) && !r.resolver && !j(t.errors, d) && !w._f.deps || hn(Re, j(t.touchedFields, d), t.isSubmitted, ee, ie), Le = Zt(d, S, Re);
2155
- ce(i, d, Ee), Re ? (w._f.onBlur && w._f.onBlur(n), X && X(0)) : w._f.onChange && w._f.onChange(n);
2156
- const qe = _(d, Ee, Re, !1), nt = !xe(qe) || Le;
2157
- if (!Re && D.values.next({
2158
- name: d,
2159
- type: n.type,
2160
- values: { ...i }
2161
- }), Be)
2162
- return L.isValid && J(), nt && D.state.next({ name: d, ...Le ? {} : qe });
2163
- if (!Re && Le && D.state.next({ ...t }), r.resolver) {
2164
- const { errors: Ne } = await b([d]);
2165
- if (N(Ee), R) {
2166
- const be = tr(t.errors, l, d), de = tr(Ne, l, be.name || d);
2167
- te = de.error, d = de.name, fe = xe(Ne);
2168
- }
2169
- } else
2170
- ue([d], !0), te = (await er(w, i, re, r.shouldUseNativeValidation))[d], ue([d]), N(Ee), R && (te ? fe = !1 : L.isValid && (fe = await V(l, !0)));
2171
- R && (w._f.deps && g(w._f.deps), m(d, fe, te, qe));
2172
- }
2173
- }, le = (n, s) => {
2174
- if (j(t.errors, s) && n.focus)
2175
- return n.focus(), 1;
2176
- }, g = async (n, s = {}) => {
2177
- let d, R;
2178
- const w = Ke(n);
2179
- if (r.resolver) {
2180
- const x = await E(ge(n) ? n : w);
2181
- d = xe(x), R = n ? !w.some((N) => j(x, N)) : d;
2182
- } else
2183
- n ? (R = (await Promise.all(w.map(async (x) => {
2184
- const N = j(l, x);
2185
- return await V(N && N._f ? { [x]: N } : N);
2186
- }))).every(Boolean), !(!R && !t.isValid) && J()) : R = d = await V(l);
2187
- return D.state.next({
2188
- ...!Ae(n) || L.isValid && d !== t.isValid ? {} : { name: n },
2189
- ...r.resolver || !n ? { isValid: d } : {},
2190
- errors: t.errors
2191
- }), s.shouldFocus && !R && Ue(l, le, n ? w : S.mount), R;
2192
- }, k = (n) => {
2193
- const s = {
2194
- ...P.mount ? i : f
2195
- };
2196
- return ge(n) ? s : Ae(n) ? j(s, n) : n.map((d) => j(s, d));
2197
- }, v = (n, s) => ({
2198
- invalid: !!j((s || t).errors, n),
2199
- isDirty: !!j((s || t).dirtyFields, n),
2200
- error: j((s || t).errors, n),
2201
- isValidating: !!j(t.validatingFields, n),
2202
- isTouched: !!j((s || t).touchedFields, n)
2203
- }), u = (n) => {
2204
- n && Ke(n).forEach((s) => pe(t.errors, s)), D.state.next({
2205
- errors: n ? t.errors : {}
2206
- });
2207
- }, a = (n, s, d) => {
2208
- const R = (j(l, n, { _f: {} })._f || {}).ref, w = j(t.errors, n) || {}, { ref: x, message: N, type: te, ...fe } = w;
2209
- ce(t.errors, n, {
2210
- ...fe,
2211
- ...s,
2212
- ref: R
2213
- }), D.state.next({
2214
- name: n,
2215
- errors: t.errors,
2216
- isValid: !1
2217
- }), d && d.shouldFocus && R && R.focus && R.focus();
2218
- }, c = (n, s) => De(n) ? D.values.subscribe({
2219
- next: (d) => n(B(void 0, s), d)
2220
- }) : B(n, s, !0), y = (n, s = {}) => {
2221
- for (const d of n ? Ke(n) : S.mount)
2222
- S.mount.delete(d), S.array.delete(d), s.keepValue || (pe(l, d), pe(i, d)), !s.keepError && pe(t.errors, d), !s.keepDirty && pe(t.dirtyFields, d), !s.keepTouched && pe(t.touchedFields, d), !s.keepIsValidating && pe(t.validatingFields, d), !r.shouldUnregister && !s.keepDefaultValue && pe(f, d);
2223
- D.values.next({
2224
- values: { ...i }
2225
- }), D.state.next({
2226
- ...t,
2227
- ...s.keepDirty ? { isDirty: O() } : {}
2228
- }), !s.keepIsValid && J();
2229
- }, p = ({ disabled: n, name: s, field: d, fields: R, value: w }) => {
2230
- if (Fe(n) && P.mount || n) {
2231
- const x = n ? void 0 : ge(w) ? bt(d ? d._f : j(R, s)._f) : w;
2232
- ce(i, s, x), _(s, x, !1, !1, !0);
2233
- }
2234
- }, F = (n, s = {}) => {
2235
- let d = j(l, n);
2236
- const R = Fe(s.disabled);
2237
- return ce(l, n, {
2238
- ...d || {},
2239
- _f: {
2240
- ...d && d._f ? d._f : { ref: { name: n } },
2241
- name: n,
2242
- mount: !0,
2243
- ...s
2244
- }
2245
- }), S.mount.add(n), d ? p({
2246
- field: d,
2247
- disabled: s.disabled,
2248
- name: n,
2249
- value: s.value
2250
- }) : o(n, !0, s.value), {
2251
- ...R ? { disabled: s.disabled } : {},
2252
- ...r.progressive ? {
2253
- required: !!s.required,
2254
- min: $e(s.min),
2255
- max: $e(s.max),
2256
- minLength: $e(s.minLength),
2257
- maxLength: $e(s.maxLength),
2258
- pattern: $e(s.pattern)
2259
- } : {},
2260
- name: n,
2261
- onChange: G,
2262
- onBlur: G,
2263
- ref: (w) => {
2264
- if (w) {
2265
- F(n, s), d = j(l, n);
2266
- const x = ge(w.value) && w.querySelectorAll && w.querySelectorAll("input,select,textarea")[0] || w, N = fn(x), te = d._f.refs || [];
2267
- if (N ? te.find((fe) => fe === x) : x === d._f.ref)
2268
- return;
2269
- ce(l, n, {
2270
- _f: {
2271
- ...d._f,
2272
- ...N ? {
2273
- refs: [
2274
- ...te.filter(mt),
2275
- x,
2276
- ...Array.isArray(j(f, n)) ? [{}] : []
2277
- ],
2278
- ref: { type: x.type, name: n }
2279
- } : { ref: x }
2280
- }
2281
- }), o(n, !1, void 0, x);
2282
- } else
2283
- d = j(l, n, {}), d._f && (d._f.mount = !1), (r.shouldUnregister || s.shouldUnregister) && !(en(S.array, n) && P.action) && S.unMount.add(n);
2284
- }
2285
- };
2286
- }, C = () => r.shouldFocusError && Ue(l, le, S.mount), T = (n) => {
2287
- Fe(n) && (D.state.next({ disabled: n }), Ue(l, (s, d) => {
2288
- const R = j(l, d);
2289
- R && (s.disabled = R._f.disabled || n, Array.isArray(R._f.refs) && R._f.refs.forEach((w) => {
2290
- w.disabled = R._f.disabled || n;
2291
- }));
2292
- }, 0, !1));
2293
- }, z = (n, s) => async (d) => {
2294
- let R;
2295
- d && (d.preventDefault && d.preventDefault(), d.persist && d.persist());
2296
- let w = Oe(i);
2297
- if (D.state.next({
2298
- isSubmitting: !0
2299
- }), r.resolver) {
2300
- const { errors: x, values: N } = await b();
2301
- t.errors = x, w = N;
2302
- } else
2303
- await V(l);
2304
- if (pe(t.errors, "root"), xe(t.errors)) {
2305
- D.state.next({
2306
- errors: {}
2307
- });
2308
- try {
2309
- await n(w, d);
2310
- } catch (x) {
2311
- R = x;
2312
- }
2313
- } else
2314
- s && await s({ ...t.errors }, d), C(), setTimeout(C);
2315
- if (D.state.next({
2316
- isSubmitted: !0,
2317
- isSubmitting: !1,
2318
- isSubmitSuccessful: xe(t.errors) && !R,
2319
- submitCount: t.submitCount + 1,
2320
- errors: t.errors
2321
- }), R)
2322
- throw R;
2323
- }, h = (n, s = {}) => {
2324
- j(l, n) && (ge(s.defaultValue) ? Y(n, Oe(j(f, n))) : (Y(n, s.defaultValue), ce(f, n, Oe(s.defaultValue))), s.keepTouched || pe(t.touchedFields, n), s.keepDirty || (pe(t.dirtyFields, n), t.isDirty = s.defaultValue ? O(n, Oe(j(f, n))) : O()), s.keepError || (pe(t.errors, n), L.isValid && J()), D.state.next({ ...t }));
2325
- }, I = (n, s = {}) => {
2326
- const d = n ? Oe(n) : f, R = Oe(d), w = xe(n), x = w ? f : R;
2327
- if (s.keepDefaultValues || (f = d), !s.keepValues) {
2328
- if (s.keepDirtyValues)
2329
- for (const N of S.mount)
2330
- j(t.dirtyFields, N) ? ce(x, N, j(i, N)) : Y(N, j(x, N));
2331
- else {
2332
- if (kt && ge(n))
2333
- for (const N of S.mount) {
2334
- const te = j(l, N);
2335
- if (te && te._f) {
2336
- const fe = Array.isArray(te._f.refs) ? te._f.refs[0] : te._f.ref;
2337
- if (Ge(fe)) {
2338
- const Ee = fe.closest("form");
2339
- if (Ee) {
2340
- Ee.reset();
2341
- break;
2342
- }
2343
- }
2344
- }
2345
- }
2346
- l = {};
2347
- }
2348
- i = e.shouldUnregister ? s.keepDefaultValues ? Oe(f) : {} : Oe(x), D.array.next({
2349
- values: { ...x }
2350
- }), D.values.next({
2351
- values: { ...x }
2352
- });
2353
- }
2354
- S = {
2355
- mount: s.keepDirtyValues ? S.mount : /* @__PURE__ */ new Set(),
2356
- unMount: /* @__PURE__ */ new Set(),
2357
- array: /* @__PURE__ */ new Set(),
2358
- watch: /* @__PURE__ */ new Set(),
2359
- watchAll: !1,
2360
- focus: ""
2361
- }, P.mount = !L.isValid || !!s.keepIsValid || !!s.keepDirtyValues, P.watch = !!e.shouldUnregister, D.state.next({
2362
- submitCount: s.keepSubmitCount ? t.submitCount : 0,
2363
- isDirty: w ? !1 : s.keepDirty ? t.isDirty : !!(s.keepDefaultValues && !Me(n, f)),
2364
- isSubmitted: s.keepIsSubmitted ? t.isSubmitted : !1,
2365
- dirtyFields: w ? {} : s.keepDirtyValues ? s.keepDefaultValues && i ? Ze(f, i) : t.dirtyFields : s.keepDefaultValues && n ? Ze(f, n) : s.keepDirty ? t.dirtyFields : {},
2366
- touchedFields: s.keepTouched ? t.touchedFields : {},
2367
- errors: s.keepErrors ? t.errors : {},
2368
- isSubmitSuccessful: s.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
2369
- isSubmitting: !1
2370
- });
2371
- }, q = (n, s) => I(De(n) ? n(i) : n, s);
2372
- return {
2373
- control: {
2374
- register: F,
2375
- unregister: y,
2376
- getFieldState: v,
2377
- handleSubmit: z,
2378
- setError: a,
2379
- _executeSchema: b,
2380
- _getWatch: B,
2381
- _getDirty: O,
2382
- _updateValid: J,
2383
- _removeUnmounted: W,
2384
- _updateFieldArray: Z,
2385
- _updateDisabledField: p,
2386
- _getFieldArray: U,
2387
- _reset: I,
2388
- _resetDefaultValues: () => De(r.defaultValues) && r.defaultValues().then((n) => {
2389
- q(n, r.resetOptions), D.state.next({
2390
- isLoading: !1
2391
- });
2392
- }),
2393
- _updateFormState: (n) => {
2394
- t = {
2395
- ...t,
2396
- ...n
2397
- };
2398
- },
2399
- _disableForm: T,
2400
- _subjects: D,
2401
- _proxyFormState: L,
2402
- _setErrors: K,
2403
- get _fields() {
2404
- return l;
2405
- },
2406
- get _formValues() {
2407
- return i;
2408
- },
2409
- get _state() {
2410
- return P;
2411
- },
2412
- set _state(n) {
2413
- P = n;
2414
- },
2415
- get _defaultValues() {
2416
- return f;
2417
- },
2418
- get _names() {
2419
- return S;
2420
- },
2421
- set _names(n) {
2422
- S = n;
2423
- },
2424
- get _formState() {
2425
- return t;
2426
- },
2427
- set _formState(n) {
2428
- t = n;
2429
- },
2430
- get _options() {
2431
- return r;
2432
- },
2433
- set _options(n) {
2434
- r = {
2435
- ...r,
2436
- ...n
2437
- };
2438
- }
2439
- },
2440
- trigger: g,
2441
- register: F,
2442
- handleSubmit: z,
2443
- watch: c,
2444
- setValue: Y,
2445
- getValues: k,
2446
- reset: q,
2447
- resetField: h,
2448
- clearErrors: u,
2449
- unregister: y,
2450
- setError: a,
2451
- setFocus: (n, s = {}) => {
2452
- const d = j(l, n), R = d && d._f;
2453
- if (R) {
2454
- const w = R.refs ? R.refs[0] : R.ref;
2455
- w.focus && (w.focus(), s.shouldSelect && w.select());
2456
- }
2457
- },
2458
- getFieldState: v
2459
- };
2460
- }
2461
- function mn(e = {}) {
2462
- const r = we.useRef(), t = we.useRef(), [l, f] = we.useState({
2463
- isDirty: !1,
2464
- isValidating: !1,
2465
- isLoading: De(e.defaultValues),
2466
- isSubmitted: !1,
2467
- isSubmitting: !1,
2468
- isSubmitSuccessful: !1,
2469
- isValid: !1,
2470
- submitCount: 0,
2471
- dirtyFields: {},
2472
- touchedFields: {},
2473
- validatingFields: {},
2474
- errors: e.errors || {},
2475
- disabled: e.disabled || !1,
2476
- defaultValues: De(e.defaultValues) ? void 0 : e.defaultValues
2477
- });
2478
- r.current || (r.current = {
2479
- ...pn(e),
2480
- formState: l
2481
- });
2482
- const i = r.current.control;
2483
- return i._options = e, an({
2484
- subject: i._subjects.state,
2485
- next: (P) => {
2486
- nn(P, i._proxyFormState, i._updateFormState) && f({ ...i._formState });
2487
- }
2488
- }), we.useEffect(() => i._disableForm(e.disabled), [i, e.disabled]), we.useEffect(() => {
2489
- if (i._proxyFormState.isDirty) {
2490
- const P = i._getDirty();
2491
- P !== l.isDirty && i._subjects.state.next({
2492
- isDirty: P
2493
- });
2494
- }
2495
- }, [i, l.isDirty]), we.useEffect(() => {
2496
- e.values && !Me(e.values, t.current) ? (i._reset(e.values, i._options.resetOptions), t.current = e.values, f((P) => ({ ...P }))) : i._resetDefaultValues();
2497
- }, [e.values, i]), we.useEffect(() => {
2498
- e.errors && i._setErrors(e.errors);
2499
- }, [e.errors, i]), we.useEffect(() => {
2500
- i._state.mount || (i._updateValid(), i._state.mount = !0), i._state.watch && (i._state.watch = !1, i._subjects.state.next({ ...i._formState })), i._removeUnmounted();
2501
- }), we.useEffect(() => {
2502
- e.shouldUnregister && i._subjects.values.next({
2503
- values: i._getWatch()
2504
- });
2505
- }, [e.shouldUnregister, i]), r.current.formState = rn(l, i), r.current;
2506
- }
2507
- const bn = kr.bind(Se), En = "Я принимаю условия Политики обработки и защиты персональных данных, даю согласия на обработку персональных данных", Dn = ({
2508
- isFormOpen: e,
2509
- setIsFormOpen: r,
2510
- isNews: t,
2511
- title: l,
2512
- isEmail: f,
2513
- isPhone: i,
2514
- isTextArea: P,
2515
- telegramLink: S = "https://t.me/stone_developer",
2516
- isRequiredPhone: X = !0,
2517
- isRequiredEmail: H = !1,
2518
- isRequiredPhoneOrEmail: L,
2519
- textAreaPlaceholder: D,
2520
- subTitle: ie,
2521
- submitHandler: ee,
2522
- modalWidth: re = "442px",
2523
- rowsTextArea: Q = 2,
2524
- advCheckBox: J = { text: En, isRequired: !0 },
2525
- isAdvCheckBox: ue,
2526
- addTitleClassName: Z,
2527
- createPortalObj: ne
2528
- }) => {
2529
- const {
2530
- register: K,
2531
- handleSubmit: o,
2532
- trigger: _,
2533
- reset: m,
2534
- watch: b,
2535
- formState: { errors: E }
2536
- } = mn(), V = !!b("email"), { onChange: W, onBlur: O, ...B } = K("phone", {
2537
- required: H || X || L && !V,
2538
- pattern: { value: xr, message: "" },
2539
- onBlur: () => _("phone")
2540
- }), { isMobile: U, currentClientWidth: M } = Ar(), A = b("personalCheckBox"), Y = b("advCheckBox"), G = (le) => {
2541
- ee(le), m();
2542
- };
2543
- return M ? /* @__PURE__ */ ye(
2544
- Sr,
2545
- {
2546
- additionalClass: Se.modal,
2547
- additionalClassModalBody: Se.modalBody,
2548
- createPortalObj: ne,
2549
- isOpen: e,
2550
- isTransparentBack: !0,
2551
- emitIsOpen: () => r(!1),
2552
- opacity: 0.7,
2553
- children: /* @__PURE__ */ Ve(
2554
- "div",
2555
- {
2556
- className: Se.root,
2557
- style: { width: U ? "100%" : re },
2558
- "data-testid": "modal_window",
2559
- children: [
2560
- /* @__PURE__ */ ye(
2561
- "div",
2562
- {
2563
- className: bn(Se.title, Z),
2564
- dangerouslySetInnerHTML: { __html: l ?? "Оставить обращение" }
2565
- }
2566
- ),
2567
- t && /* @__PURE__ */ Ve("div", { className: Se.telegramWrapper, children: [
2568
- /* @__PURE__ */ ye(
2569
- "a",
2570
- {
2571
- className: Se.telegramLink,
2572
- href: S,
2573
- target: "_blank",
2574
- children: /* @__PURE__ */ Ve("div", { className: Se.telegram, children: [
2575
- /* @__PURE__ */ ye("div", { children: "Подписаться в Telegram" }),
2576
- /* @__PURE__ */ ye(Rt, { name: "telegram" })
2577
- ] })
2578
- }
2579
- ),
2580
- /* @__PURE__ */ ye("div", { className: Se.orText, children: "или" })
2581
- ] }),
2582
- !t && /* @__PURE__ */ ye(
2583
- "div",
2584
- {
2585
- className: Se.description,
2586
- dangerouslySetInnerHTML: {
2587
- __html: ie && !t ? "Оставьте номер телефона для получения консультации" : `${/* @__PURE__ */ ye("div", { children: "привет" })}`
2588
- }
2589
- }
2590
- ),
2591
- /* @__PURE__ */ Ve("form", { onSubmit: o(G), children: [
2592
- /* @__PURE__ */ Ve(Pr, { className: Se.inputWrapper, children: [
2593
- /* @__PURE__ */ ye(
2594
- st,
2595
- {
2596
- width: "full",
2597
- size_s: "large",
2598
- variant: "light",
2599
- placeholder: "Введите имя",
2600
- "data-testid": "modal_name",
2601
- ...K("name", { required: !0, pattern: wr }),
2602
- error: !!E.name
2603
- }
2604
- ),
2605
- i && /* @__PURE__ */ ye(
2606
- Br,
2607
- {
2608
- inputMode: "numeric",
2609
- name: "phone",
2610
- mask: "+7 (999) 999-99-99",
2611
- onChange: W,
2612
- placeholder: "+7 (- - -) - - - - - - -",
2613
- onBlur: O,
2614
- children: /* @__PURE__ */ ye(
2615
- st,
2616
- {
2617
- width: "full",
2618
- "data-testid": "phone_modal",
2619
- type: "tel",
2620
- size_s: "large",
2621
- variant: "light",
2622
- ...B,
2623
- ...K("phone"),
2624
- error: !!E.phone
2625
- }
2626
- )
2627
- }
2628
- ),
2629
- f && /* @__PURE__ */ ye(
2630
- st,
2631
- {
2632
- width: "full",
2633
- size_s: "small",
2634
- variant: "light",
2635
- placeholder: "Введите email",
2636
- "data-testid": "modal_email",
2637
- ...K("email", {
2638
- required: H || L && !V,
2639
- pattern: Or
2640
- }),
2641
- error: !!E.email
2642
- }
2643
- ),
2644
- P && /* @__PURE__ */ ye(
2645
- Cr,
2646
- {
2647
- "data-testid": "modal_textarea",
2648
- placeholder: D,
2649
- rows: Q,
2650
- width: "full",
2651
- ...K("textarea")
2652
- }
2653
- ),
2654
- J && !t && ue && /* @__PURE__ */ ye(
2655
- Vt,
2656
- {
2657
- "data-testid": "modal_advCheckBox",
2658
- isChecked: Y,
2659
- error: !!E.advCheckBox,
2660
- text: J.text,
2661
- ...K("advCheckBox", { required: J == null ? void 0 : J.isRequired })
2662
- }
2663
- ),
2664
- /* @__PURE__ */ Ve(
2665
- Vt,
2666
- {
2667
- "data-testid": "modal_personalCheckBox",
2668
- isChecked: A,
2669
- error: !!E.personalCheckBox,
2670
- ...K("personalCheckBox", { required: !t }),
2671
- children: [
2672
- t && /* @__PURE__ */ Ve("div", { children: [
2673
- "Согласен(-на)",
2674
- " ",
2675
- /* @__PURE__ */ ye(
2676
- "a",
2677
- {
2678
- className: Se.linkPolicy,
2679
- href: "/documents/soglasie-na-rassylki",
2680
- children: "получать новости, информацию по сделке и рекламу"
2681
- }
2682
- ),
2683
- " ",
2684
- "от Stone"
2685
- ] }),
2686
- !t && /* @__PURE__ */ Ve("div", { children: [
2687
- "Я принимаю условия",
2688
- " ",
2689
- /* @__PURE__ */ ye(
2690
- "a",
2691
- {
2692
- className: Se.linkPolicy,
2693
- href: "/documents/docs",
2694
- children: "Политики обработки и защиты персональных данных"
2695
- }
2696
- ),
2697
- ", даю согласия на обработку персональных данных"
2698
- ] })
2699
- ]
2700
- }
2701
- ),
2702
- /* @__PURE__ */ ye(
2703
- Tt,
2704
- {
2705
- "data-testid": "modal_submit",
2706
- variant: "blue",
2707
- width: "full",
2708
- type: "submit",
2709
- size: "large",
2710
- as: "button",
2711
- additionalClass: Se.modalBtn,
2712
- disabled: !!E.name || !!E.phone && X || !!E.email && H || !!E.advCheckBox && (J == null ? void 0 : J.isRequired) || !!E.personalCheckBox && !t,
2713
- children: "Отправить запрос"
2714
- }
2715
- )
2716
- ] }),
2717
- /* @__PURE__ */ ye(
2718
- Tt,
2719
- {
2720
- additionalClass: Se.btn,
2721
- onClick: () => r(!1),
2722
- as: "button",
2723
- variant: "gray",
2724
- type: "button",
2725
- size: "small",
2726
- children: /* @__PURE__ */ ye(
2727
- Rt,
2728
- {
2729
- name: "close",
2730
- size: "16",
2731
- color: "#141416"
2732
- }
2733
- )
2734
- }
2735
- )
2736
- ] })
2737
- ]
2738
- }
2739
- )
2740
- }
2741
- ) : null;
2742
- };
1
+ import "react/jsx-runtime";
2
+ import { M as z } from "../../../FilterWithSave-CRMKY3qA.js";
3
+ import "../../Modal/ui/Modal.js";
4
+ import "../../Flex/ui/Flex.js";
5
+ import "../../Input/ui/Input.js";
6
+ import "../../Button/ui/Button.js";
7
+ import "../../NewIcon/ui/NewIcon.js";
8
+ import "../utils/reg.js";
9
+ import "../../CheckBox/CheckBox.js";
10
+ import "../../TextArea/TextArea.js";
11
+ import "../../../index-rKuIKazb.js";
12
+ import "../../mobileButton/ui/MobileButton.js";
13
+ import "../../DestinationTab/ui/DestinationTab.js";
14
+ import "../../RoundButton/ui/RoundButton.js";
15
+ import "../../Tag/ui/Tag.js";
16
+ import "../../Switcher/ui/Switcher.js";
17
+ import "../../Text/ui/Text.js";
18
+ import "../../GroupedInput/ui/GroupedInputs.js";
19
+ import "../../MetroTag/ui/MetroTag.js";
20
+ import "../../LotCard/ui/LotCard.js";
21
+ import "../../Select/ui/Select.js";
22
+ import "../../../shared/useClientWidth.js";
23
+ import "../../SliderNavigation/ui/SliderNavigation.js";
24
+ import "../../LotCardSkeleton/ui/LotCardSkeleton.js";
25
+ import "../../TabSelect/ui/TabSelect.js";
26
+ import "../../CheckboxSelect/ui/CheckboxSelect.js";
2743
27
  export {
2744
- Dn as ModalForm
28
+ z as ModalForm
2745
29
  };