stone-kit 0.0.698 → 0.0.700

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,6 +1,6 @@
1
1
  import { jsxs as f, jsx as t, Fragment as F } from "react/jsx-runtime";
2
2
  import { NewIcon as L } from "./components/NewIcon/ui/NewIcon.js";
3
- import { M as T } from "./Modal-BZv6nlLe.js";
3
+ import { Modal as T } from "./components/Modal/ui/Modal.js";
4
4
  import { forwardRef as Q, useState as q, useRef as J, useEffect as E } from "react";
5
5
  import { Text as H } from "./components/Text/ui/Text.js";
6
6
  import { c as V, g as U } from "./index-rKuIKazb.js";
@@ -12,6 +12,7 @@ import "./components/Tag/ui/Tag.js";
12
12
  import "./components/Switcher/ui/Switcher.js";
13
13
  import "./components/Flex/ui/Flex.js";
14
14
  import "./components/Input/ui/Input.js";
15
+ import "react-dom";
15
16
  import "./components/GroupedInput/ui/GroupedInputs.js";
16
17
  import "./components/MetroTag/ui/MetroTag.js";
17
18
  import "./components/LotCard/ui/LotCard.js";
@@ -332,7 +333,7 @@ const Me = /* @__PURE__ */ U(Ie), qe = ({
332
333
  setLocalSelectedTabs: _,
333
334
  containerRef: w
334
335
  };
335
- }, Re = Me.bind(i), at = ({
336
+ }, Re = Me.bind(i), nt = ({
336
337
  disabledOptions: n,
337
338
  tabs: a = [],
338
339
  selectOptions: s = [],
@@ -584,7 +585,7 @@ const Me = /* @__PURE__ */ U(Ie), qe = ({
584
585
  ] });
585
586
  };
586
587
  export {
587
- at as F,
588
+ nt as F,
588
589
  A as S,
589
590
  pe as a,
590
591
  qe as u
@@ -10,8 +10,8 @@ import "../../Text/ui/Text.js";
10
10
  import "../../Flex/ui/Flex.js";
11
11
  import "../../Input/ui/Input.js";
12
12
  import "react/jsx-runtime";
13
- import "../../../Modal-BZv6nlLe.js";
14
- import { u as q } from "../../../FilterWithSave-BrXTeB7_.js";
13
+ import "react-dom";
14
+ import { u as q } from "../../../FilterWithSave-Nihl2Z4W.js";
15
15
  import "../../GroupedInput/ui/GroupedInputs.js";
16
16
  import "../../../index-rKuIKazb.js";
17
17
  import "../../MetroTag/ui/MetroTag.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../NewIcon/ui/NewIcon.js";
3
- import { F as a } from "../../../FilterWithSave-BrXTeB7_.js";
4
- import "../../../Modal-BZv6nlLe.js";
3
+ import { F as a } from "../../../FilterWithSave-Nihl2Z4W.js";
4
+ import "../../Modal/ui/Modal.js";
5
5
  import "../../../Option-BJ7QJM8p.js";
6
6
  import "../../Button/ui/Button.js";
7
7
  export {
@@ -1,7 +1,8 @@
1
1
  import { jsx as ye, jsxs as Ve } from "react/jsx-runtime";
2
2
  import { g as _r, c as kr } from "../../../index-rKuIKazb.js";
3
3
  import we from "react";
4
- import { r as rr, M as Sr } from "../../../Modal-BZv6nlLe.js";
4
+ import rr from "react-dom";
5
+ import { Modal as Sr } from "../../Modal/ui/Modal.js";
5
6
  import { Flex as Pr } from "../../Flex/ui/Flex.js";
6
7
  import { Input as st } from "../../Input/ui/Input.js";
7
8
  import { Button as Tt } from "../../Button/ui/Button.js";
@@ -108,17 +109,17 @@ function Rr() {
108
109
  var I = h.$$typeof;
109
110
  switch (I) {
110
111
  case r:
111
- var N = h.type;
112
- switch (N) {
112
+ var q = h.type;
113
+ switch (q) {
113
114
  case X:
114
115
  case H:
115
116
  case l:
116
117
  case i:
117
118
  case f:
118
119
  case D:
119
- return N;
120
+ return q;
120
121
  default:
121
- var $ = N && N.$$typeof;
122
+ var $ = q && q.$$typeof;
122
123
  switch ($) {
123
124
  case S:
124
125
  case L:
@@ -296,11 +297,11 @@ function Fr() {
296
297
  process.env.NODE_ENV !== "production" && (t = {});
297
298
  }, ft = f, ft;
298
299
  }
299
- var dt, Nt;
300
+ var dt, qt;
300
301
  function Dr() {
301
- if (Nt)
302
+ if (qt)
302
303
  return dt;
303
- Nt = 1;
304
+ qt = 1;
304
305
  var e = nr(), r = Vr(), t = _t(), l = ir(), f = Fr(), i = function() {
305
306
  };
306
307
  process.env.NODE_ENV !== "production" && (i = function(S) {
@@ -618,11 +619,11 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
618
619
  return ee.checkPropTypes = f, ee.resetWarningCache = f.resetWarningCache, ee.PropTypes = ee, ee;
619
620
  }, dt;
620
621
  }
621
- var vt, qt;
622
+ var vt, Nt;
622
623
  function Mr() {
623
- if (qt)
624
+ if (Nt)
624
625
  return vt;
625
- qt = 1;
626
+ Nt = 1;
626
627
  var e = _t();
627
628
  function r() {
628
629
  }
@@ -994,8 +995,8 @@ function Lr() {
994
995
  }(t.Component), K = r.forwardRef(function(o, _) {
995
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"]);
996
997
  (function(h) {
997
- var I = h.mask, N = h.maskPlaceholder;
998
- I && N && N.length !== 1 && N.length !== I.length && f(!1);
998
+ var I = h.mask, q = h.maskPlaceholder;
999
+ I && q && q.length !== 1 && q.length !== I.length && f(!1);
999
1000
  })(o);
1000
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() {
1001
1002
  U.current = B;
@@ -1009,42 +1010,42 @@ function Lr() {
1009
1010
  var F = a(), C = F.selection, T = F.value;
1010
1011
  r.useLayoutEffect(function() {
1011
1012
  if (A) {
1012
- var h = L(c()), I = C, N = v(), $ = i({}, N);
1013
+ var h = L(c()), I = C, q = v(), $ = i({}, q);
1013
1014
  if (!G) {
1014
- var ae = N.value, he = M.formatValue(ae), n = M.isValueEmpty(he);
1015
+ var ae = q.value, he = M.formatValue(ae), n = M.isValueEmpty(he);
1015
1016
  !n || h || m ? $.value = he : n && !h && ($.value = "");
1016
1017
  }
1017
- h && !le ? $.selection = M.getDefaultSelectionForValue($.value) : G && h && I && I.start !== null && I.end !== null && ($.selection = I), W && ($ = W({ currentState: N, nextState: $ })), u($);
1018
+ h && !le ? $.selection = M.getDefaultSelectionForValue($.value) : G && h && I && I.start !== null && I.end !== null && ($.selection = I), W && ($ = W({ currentState: q, nextState: $ })), u($);
1018
1019
  }
1019
1020
  });
1020
1021
  var z = i({}, O, { onFocus: function(h) {
1021
1022
  k.current = h.target;
1022
1023
  var I = v().value;
1023
1024
  if (A && !M.isValueFilled(I)) {
1024
- var N = M.formatValue(I), $ = M.getDefaultSelectionForValue(N), ae = { value: N, selection: $ };
1025
- W && (N = (ae = W({ currentState: v(), nextState: ae })).value, $ = ae.selection), u(ae), N !== I && o.onChange && o.onChange(h), X(function() {
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() {
1026
1027
  u(a());
1027
1028
  });
1028
1029
  }
1029
1030
  o.onFocus && o.onFocus(h);
1030
1031
  }, onBlur: function(h) {
1031
- var I = v().value, N = a().value;
1032
- if (A && !m && M.isValueEmpty(N)) {
1032
+ var I = v().value, q = a().value;
1033
+ if (A && !m && M.isValueEmpty(q)) {
1033
1034
  var $ = "", ae = { value: $, selection: { start: null, end: null } };
1034
1035
  W && ($ = (ae = W({ currentState: v(), nextState: ae })).value), u(ae), $ !== I && o.onChange && o.onChange(h);
1035
1036
  }
1036
1037
  o.onBlur && o.onBlur(h);
1037
1038
  }, onChange: A && Y ? function(h) {
1038
- var I = v(), N = a(), $ = M.processChange(I, N);
1039
- W && ($ = W({ currentState: I, previousState: N, nextState: $ })), u($), o.onChange && o.onChange(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);
1040
1041
  } : o.onChange, onMouseDown: A && Y ? function(h) {
1041
- var I = c(), N = v().value, $ = D(I);
1042
- if (!L(I) && !M.isValueFilled(N)) {
1042
+ var I = c(), q = v().value, $ = D(I);
1043
+ if (!L(I) && !M.isValueFilled(q)) {
1043
1044
  var ae = h.clientX, he = h.clientY, n = (/* @__PURE__ */ new Date()).getTime();
1044
1045
  $.addEventListener("mouseup", function s(d) {
1045
1046
  if ($.removeEventListener("mouseup", s), L(I)) {
1046
- var R = Math.abs(d.clientX - ae), w = Math.abs(d.clientY - he), x = Math.max(R, w), q = (/* @__PURE__ */ new Date()).getTime() - n;
1047
- if (x <= 10 && q <= 200 || x <= 5 && q <= 300) {
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) {
1048
1049
  var te = a(), fe = i({}, te, { selection: M.getDefaultSelectionForValue(te.value) });
1049
1050
  u(fe);
1050
1051
  }
@@ -1058,8 +1059,8 @@ function Lr() {
1058
1059
  }(_) ? _(h) : _ !== null && typeof _ == "object" && (_.current = h);
1059
1060
  }, value: A && G ? T : o.value });
1060
1061
  return b ? (function(h, I) {
1061
- J.filter(function(N) {
1062
- return I.props[N] != null && I.props[N] !== h[N];
1062
+ J.filter(function(q) {
1063
+ return I.props[q] != null && I.props[q] !== h[q];
1063
1064
  }).length && f(!1);
1064
1065
  }(o, b), t.createElement(ne, z, b)) : t.createElement("input", z);
1065
1066
  });
@@ -1189,8 +1190,8 @@ function Ir() {
1189
1190
  }, [c]), p = r.useCallback(function() {
1190
1191
  return a.current;
1191
1192
  }, []), F = r.useCallback(function(I) {
1192
- var N = c();
1193
- !N || !Q(N) || (ee(N, I.start, I.end), a.current = y());
1193
+ var q = c();
1194
+ !q || !Q(q) || (ee(q, I.start, I.end), a.current = y());
1194
1195
  }, [c, y]), C = r.useCallback(function() {
1195
1196
  a.current = y();
1196
1197
  }, [y]), T = b(C), z = T[0], h = T[1];
@@ -1232,7 +1233,7 @@ function Ir() {
1232
1233
  selection: p()
1233
1234
  };
1234
1235
  }
1235
- function N() {
1236
+ function q() {
1236
1237
  return {
1237
1238
  value: T(),
1238
1239
  selection: y()
@@ -1244,7 +1245,7 @@ function Ir() {
1244
1245
  }
1245
1246
  return {
1246
1247
  inputRef: a,
1247
- getInputState: N,
1248
+ getInputState: q,
1248
1249
  getLastInputState: I,
1249
1250
  setInputState: $
1250
1251
  };
@@ -1374,21 +1375,21 @@ function Ir() {
1374
1375
  }, this.clearRange = function(c, y, p) {
1375
1376
  if (!p)
1376
1377
  return c;
1377
- var F = y + p, C = a.maskOptions, T = C.maskPlaceholder, z = C.mask, h = c.split("").map(function(I, N) {
1378
- var $ = a.isPositionEditable(N);
1379
- return !T && N >= F && !$ ? "" : N < y || N >= F ? I : $ ? T ? T[N] : "" : z[N];
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];
1380
1381
  }).join("");
1381
1382
  return a.formatValue(h);
1382
1383
  }, this.insertCharacterAtPosition = function(c, y, p) {
1383
1384
  var F = a.maskOptions, C = F.mask, T = F.maskPlaceholder;
1384
1385
  if (p >= C.length)
1385
1386
  return c;
1386
- var z = a.isCharacterAllowedAtPosition(y, p), h = a.isPositionEditable(p), I = a.getRightEditablePosition(p), N = T && I ? y === T[I] : null, $ = c.slice(0, p);
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);
1387
1388
  if (z || !h) {
1388
1389
  var ae = z ? y : C[p];
1389
1390
  c = $ + ae;
1390
1391
  }
1391
- return !z && !h && !N && (c = a.insertCharacterAtPosition(c, y, p + 1)), c;
1392
+ return !z && !h && !q && (c = a.insertCharacterAtPosition(c, y, p + 1)), c;
1392
1393
  }, this.insertStringAtPosition = function(c, y, p) {
1393
1394
  var F = a.maskOptions, C = F.mask, T = F.maskPlaceholder;
1394
1395
  if (!y || p >= C.length)
@@ -1401,20 +1402,20 @@ function Ir() {
1401
1402
  else if (a.isValueFilled(c))
1402
1403
  c += C.slice(c.length).join("");
1403
1404
  else {
1404
- var N = I.split("").filter(function($, ae) {
1405
+ var q = I.split("").filter(function($, ae) {
1405
1406
  return a.isPositionEditable(p + ae);
1406
1407
  });
1407
- c = N.reduce(function($, ae) {
1408
+ c = q.reduce(function($, ae) {
1408
1409
  var he = a.getRightEditablePosition($.length);
1409
1410
  return he === null ? $ : (a.isPositionEditable($.length) || ($ += C.slice($.length, he).join("")), a.insertCharacterAtPosition($, ae, $.length));
1410
1411
  }, c);
1411
1412
  }
1412
1413
  return c;
1413
1414
  }, this.processChange = function(c, y) {
1414
- var p = a.maskOptions, F = p.mask, C = p.prefix, T = p.lastEditablePosition, z = c.value, h = c.selection, I = y.value, N = y.selection, $ = z, ae = "", he = 0, n = 0, s = Math.min(N.start, h.start);
1415
- if (h.end > N.start ? (ae = $.slice(N.start, h.end), he = a.getStringFillingLengthAtPosition(ae, s), he ? n = N.length : n = 0) : $.length < I.length && (n = I.length - $.length), $ = I, n) {
1416
- if (n === 1 && !N.length) {
1417
- var d = N.start === h.start;
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;
1418
1419
  s = d ? a.getRightEditablePosition(h.start) : a.getLeftEditablePosition(h.start);
1419
1420
  }
1420
1421
  $ = a.clearRange($, s, n);
@@ -1444,7 +1445,7 @@ function Ir() {
1444
1445
  var z = new le({
1445
1446
  mask: p,
1446
1447
  maskPlaceholder: F
1447
- }), h = !!p, I = !T.disabled && !T.readOnly, N = u.value !== null && u.value !== void 0, $ = O(h), ae = _((N ? u.value : u.defaultValue) || ""), he = W(ae, h), n = he.inputRef, s = he.getInputState, d = he.setInputState, R = he.getLastInputState, w = m(n);
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);
1448
1449
  function x(be) {
1449
1450
  var de = s(), _e = R(), ke = z.processChange(de, _e);
1450
1451
  C && (ke = C({
@@ -1453,7 +1454,7 @@ function Ir() {
1453
1454
  nextState: ke
1454
1455
  })), d(ke), u.onChange && u.onChange(be);
1455
1456
  }
1456
- function q(be) {
1457
+ function N(be) {
1457
1458
  n.current = be.target;
1458
1459
  var de = s().value;
1459
1460
  if (h && !z.isValueFilled(de)) {
@@ -1505,7 +1506,7 @@ function Ir() {
1505
1506
  }
1506
1507
  u.onMouseDown && u.onMouseDown(be);
1507
1508
  }
1508
- if (h && N) {
1509
+ if (h && q) {
1509
1510
  var Ee = w(), Re = Ee && Q(Ee), Be = Re || c || u.value ? z.formatValue(u.value) : u.value;
1510
1511
  C && (Be = C({
1511
1512
  nextState: {
@@ -1519,31 +1520,31 @@ function Ir() {
1519
1520
  value: Be
1520
1521
  }));
1521
1522
  }
1522
- var Le = R(), Ne = Le.selection, nt = Le.value;
1523
+ var Le = R(), qe = Le.selection, nt = Le.value;
1523
1524
  r.useLayoutEffect(function() {
1524
1525
  if (h) {
1525
- var be = w(), de = Q(be), _e = Ne, ke = s(), ve = X({}, ke);
1526
- if (!N) {
1526
+ var be = w(), de = Q(be), _e = qe, ke = s(), ve = X({}, ke);
1527
+ if (!q) {
1527
1528
  var it = ke.value, Ye = z.formatValue(it), ze = z.isValueEmpty(Ye), at = !ze || de || c;
1528
1529
  at ? ve.value = Ye : ze && !de && (ve.value = "");
1529
1530
  }
1530
- de && !$ ? ve.selection = z.getDefaultSelectionForValue(ve.value) : N && de && _e && _e.start !== null && _e.end !== null && (ve.selection = _e), C && (ve = C({
1531
+ de && !$ ? ve.selection = z.getDefaultSelectionForValue(ve.value) : q && de && _e && _e.start !== null && _e.end !== null && (ve.selection = _e), C && (ve = C({
1531
1532
  currentState: ke,
1532
1533
  nextState: ve
1533
1534
  })), d(ve);
1534
1535
  }
1535
1536
  });
1536
- var qe = X({}, T, {
1537
- onFocus: q,
1537
+ var Ne = X({}, T, {
1538
+ onFocus: N,
1538
1539
  onBlur: te,
1539
1540
  onChange: h && I ? x : u.onChange,
1540
1541
  onMouseDown: h && I ? fe : u.onMouseDown,
1541
1542
  ref: function(de) {
1542
1543
  n.current = l.findDOMNode(de), ne(a) ? a(de) : a !== null && typeof a == "object" && (a.current = de);
1543
1544
  },
1544
- value: h && N ? nt : u.value
1545
+ value: h && q ? nt : u.value
1545
1546
  });
1546
- return y ? (Y(u, y), t.createElement(g, qe, y)) : t.createElement("input", qe);
1547
+ return y ? (Y(u, y), t.createElement(g, Ne, y)) : t.createElement("input", Ne);
1547
1548
  });
1548
1549
  return k.displayName = "InputMask", k.defaultProps = {
1549
1550
  alwaysShowMask: !1,
@@ -1562,9 +1563,9 @@ function Ir() {
1562
1563
  }
1563
1564
  process.env.NODE_ENV === "production" ? Et.exports = Lr() : Et.exports = Ir();
1564
1565
  var jr = Et.exports;
1565
- const Br = /* @__PURE__ */ _r(jr), Nr = "_btn_7n08v_1", qr = "_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 = {
1566
- btn: Nr,
1567
- modal: qr,
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,
1568
1569
  modalBody: $r,
1569
1570
  root: Ur,
1570
1571
  title: Wr,
@@ -2007,16 +2008,16 @@ function pn(e = {}) {
2007
2008
  }, Z = (n, s = [], d, R, w = !0, x = !0) => {
2008
2009
  if (R && d) {
2009
2010
  if (P.action = !0, x && Array.isArray(j(l, n))) {
2010
- const q = d(j(l, n), R.argA, R.argB);
2011
- w && ce(l, n, q);
2011
+ const N = d(j(l, n), R.argA, R.argB);
2012
+ w && ce(l, n, N);
2012
2013
  }
2013
2014
  if (x && Array.isArray(j(t.errors, n))) {
2014
- const q = d(j(t.errors, n), R.argA, R.argB);
2015
- w && ce(t.errors, n, q), gn(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);
2016
2017
  }
2017
2018
  if (L.touchedFields && x && Array.isArray(j(t.touchedFields, n))) {
2018
- const q = d(j(t.touchedFields, n), R.argA, R.argB);
2019
- w && ce(t.touchedFields, n, q);
2019
+ const N = d(j(t.touchedFields, n), R.argA, R.argB);
2020
+ w && ce(t.touchedFields, n, N);
2020
2021
  }
2021
2022
  L.dirtyFields && (t.dirtyFields = Ze(f, i)), D.state.next({
2022
2023
  name: n,
@@ -2043,14 +2044,14 @@ function pn(e = {}) {
2043
2044
  ge(x) || R && R.defaultChecked || s ? ce(i, n, s ? x : bt(w._f)) : M(n, x), P.mount && J();
2044
2045
  }
2045
2046
  }, _ = (n, s, d, R, w) => {
2046
- let x = !1, q = !1;
2047
+ let x = !1, N = !1;
2047
2048
  const te = {
2048
2049
  name: n
2049
2050
  }, fe = !!(j(l, n) && j(l, n)._f && j(l, n)._f.disabled);
2050
2051
  if (!d || R) {
2051
- L.isDirty && (q = t.isDirty, t.isDirty = te.isDirty = O(), x = q !== te.isDirty);
2052
+ L.isDirty && (N = t.isDirty, t.isDirty = te.isDirty = O(), x = N !== te.isDirty);
2052
2053
  const Ee = fe || Me(j(f, n), s);
2053
- q = !!(!fe && j(t.dirtyFields, n)), Ee || fe ? pe(t.dirtyFields, n) : ce(t.dirtyFields, n, !0), te.dirtyFields = t.dirtyFields, x = x || L.dirtyFields && q !== !Ee;
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;
2054
2055
  }
2055
2056
  if (d) {
2056
2057
  const Ee = j(t.touchedFields, n);
@@ -2060,7 +2061,7 @@ function pn(e = {}) {
2060
2061
  }, m = (n, s, d, R) => {
2061
2062
  const w = j(t.errors, n), x = L.isValid && Fe(s) && t.isValid !== s;
2062
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) {
2063
- const q = {
2064
+ const N = {
2064
2065
  ...R,
2065
2066
  ...x && Fe(s) ? { isValid: s } : {},
2066
2067
  errors: t.errors,
@@ -2068,8 +2069,8 @@ function pn(e = {}) {
2068
2069
  };
2069
2070
  t = {
2070
2071
  ...t,
2071
- ...q
2072
- }, D.state.next(q);
2072
+ ...N
2073
+ }, D.state.next(N);
2073
2074
  }
2074
2075
  }, b = async (n) => {
2075
2076
  ue(n, !0);
@@ -2091,7 +2092,7 @@ function pn(e = {}) {
2091
2092
  for (const R in n) {
2092
2093
  const w = n[R];
2093
2094
  if (w) {
2094
- const { _f: x, ...q } = w;
2095
+ const { _f: x, ...N } = w;
2095
2096
  if (x) {
2096
2097
  const te = S.array.has(x.name);
2097
2098
  ue([R], !0);
@@ -2100,7 +2101,7 @@ function pn(e = {}) {
2100
2101
  break;
2101
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));
2102
2103
  }
2103
- !xe(q) && await V(q, s, d);
2104
+ !xe(N) && await V(N, s, d);
2104
2105
  }
2105
2106
  }
2106
2107
  return d.valid;
@@ -2117,7 +2118,7 @@ function pn(e = {}) {
2117
2118
  let w = s;
2118
2119
  if (R) {
2119
2120
  const x = R._f;
2120
- x && (!x.disabled && ce(i, n, gr(s, x)), w = Ge(x.ref) && Pe(s) ? "" : s, dr(x.ref) ? [...x.ref.options].forEach((q) => q.selected = w.includes(q.value)) : x.refs ? We(x.ref) ? x.refs.length > 1 ? x.refs.forEach((q) => (!q.defaultChecked || !q.disabled) && (q.checked = Array.isArray(w) ? !!w.find((te) => te === q.value) : w === q.value)) : x.refs[0] && (x.refs[0].checked = !!w) : x.refs.forEach((q) => q.checked = q.value === w) : Pt(x.ref) ? x.ref.value = "" : (x.ref.value = w, x.ref.type || D.values.next({
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({
2121
2122
  name: n,
2122
2123
  values: { ...i }
2123
2124
  })));
@@ -2125,8 +2126,8 @@ function pn(e = {}) {
2125
2126
  (d.shouldDirty || d.shouldTouch) && _(n, w, d.shouldTouch, d.shouldDirty, !0), d.shouldValidate && g(n);
2126
2127
  }, A = (n, s, d) => {
2127
2128
  for (const R in s) {
2128
- const w = s[R], x = `${n}.${R}`, q = j(l, x);
2129
- (S.array.has(n) || !et(w) || q && !q._f) && !je(w) ? A(x, w, d) : M(x, w, d);
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);
2130
2131
  }
2131
2132
  }, Y = (n, s, d = {}) => {
2132
2133
  const R = j(l, n), w = S.array.has(n), x = Oe(s);
@@ -2145,29 +2146,29 @@ function pn(e = {}) {
2145
2146
  P.mount = !0;
2146
2147
  const s = n.target;
2147
2148
  let d = s.name, R = !0;
2148
- const w = j(l, d), x = () => s.type ? bt(w._f) : Gr(n), q = (te) => {
2149
+ const w = j(l, d), x = () => s.type ? bt(w._f) : Gr(n), N = (te) => {
2149
2150
  R = Number.isNaN(te) || te === j(i, d, te);
2150
2151
  };
2151
2152
  if (w) {
2152
2153
  let te, fe;
2153
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);
2154
2155
  ce(i, d, Ee), Re ? (w._f.onBlur && w._f.onBlur(n), X && X(0)) : w._f.onChange && w._f.onChange(n);
2155
- const Ne = _(d, Ee, Re, !1), nt = !xe(Ne) || Le;
2156
+ const qe = _(d, Ee, Re, !1), nt = !xe(qe) || Le;
2156
2157
  if (!Re && D.values.next({
2157
2158
  name: d,
2158
2159
  type: n.type,
2159
2160
  values: { ...i }
2160
2161
  }), Be)
2161
- return L.isValid && J(), nt && D.state.next({ name: d, ...Le ? {} : Ne });
2162
+ return L.isValid && J(), nt && D.state.next({ name: d, ...Le ? {} : qe });
2162
2163
  if (!Re && Le && D.state.next({ ...t }), r.resolver) {
2163
- const { errors: qe } = await b([d]);
2164
- if (q(Ee), R) {
2165
- const be = tr(t.errors, l, d), de = tr(qe, l, be.name || d);
2166
- te = de.error, d = de.name, fe = xe(qe);
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);
2167
2168
  }
2168
2169
  } else
2169
- ue([d], !0), te = (await er(w, i, re, r.shouldUseNativeValidation))[d], ue([d]), q(Ee), R && (te ? fe = !1 : L.isValid && (fe = await V(l, !0)));
2170
- R && (w._f.deps && g(w._f.deps), m(d, fe, te, Ne));
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));
2171
2172
  }
2172
2173
  }, le = (n, s) => {
2173
2174
  if (j(t.errors, s) && n.focus)
@@ -2177,11 +2178,11 @@ function pn(e = {}) {
2177
2178
  const w = Ke(n);
2178
2179
  if (r.resolver) {
2179
2180
  const x = await E(ge(n) ? n : w);
2180
- d = xe(x), R = n ? !w.some((q) => j(x, q)) : d;
2181
+ d = xe(x), R = n ? !w.some((N) => j(x, N)) : d;
2181
2182
  } else
2182
2183
  n ? (R = (await Promise.all(w.map(async (x) => {
2183
- const q = j(l, x);
2184
- return await V(q && q._f ? { [x]: q } : q);
2184
+ const N = j(l, x);
2185
+ return await V(N && N._f ? { [x]: N } : N);
2185
2186
  }))).every(Boolean), !(!R && !t.isValid) && J()) : R = d = await V(l);
2186
2187
  return D.state.next({
2187
2188
  ...!Ae(n) || L.isValid && d !== t.isValid ? {} : { name: n },
@@ -2204,7 +2205,7 @@ function pn(e = {}) {
2204
2205
  errors: n ? t.errors : {}
2205
2206
  });
2206
2207
  }, a = (n, s, d) => {
2207
- const R = (j(l, n, { _f: {} })._f || {}).ref, w = j(t.errors, n) || {}, { ref: x, message: q, type: te, ...fe } = w;
2208
+ const R = (j(l, n, { _f: {} })._f || {}).ref, w = j(t.errors, n) || {}, { ref: x, message: N, type: te, ...fe } = w;
2208
2209
  ce(t.errors, n, {
2209
2210
  ...fe,
2210
2211
  ...s,
@@ -2262,13 +2263,13 @@ function pn(e = {}) {
2262
2263
  ref: (w) => {
2263
2264
  if (w) {
2264
2265
  F(n, s), d = j(l, n);
2265
- const x = ge(w.value) && w.querySelectorAll && w.querySelectorAll("input,select,textarea")[0] || w, q = fn(x), te = d._f.refs || [];
2266
- if (q ? te.find((fe) => fe === x) : x === d._f.ref)
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)
2267
2268
  return;
2268
2269
  ce(l, n, {
2269
2270
  _f: {
2270
2271
  ...d._f,
2271
- ...q ? {
2272
+ ...N ? {
2272
2273
  refs: [
2273
2274
  ...te.filter(mt),
2274
2275
  x,
@@ -2296,8 +2297,8 @@ function pn(e = {}) {
2296
2297
  if (D.state.next({
2297
2298
  isSubmitting: !0
2298
2299
  }), r.resolver) {
2299
- const { errors: x, values: q } = await b();
2300
- t.errors = x, w = q;
2300
+ const { errors: x, values: N } = await b();
2301
+ t.errors = x, w = N;
2301
2302
  } else
2302
2303
  await V(l);
2303
2304
  if (pe(t.errors, "root"), xe(t.errors)) {
@@ -2325,12 +2326,12 @@ function pn(e = {}) {
2325
2326
  const d = n ? Oe(n) : f, R = Oe(d), w = xe(n), x = w ? f : R;
2326
2327
  if (s.keepDefaultValues || (f = d), !s.keepValues) {
2327
2328
  if (s.keepDirtyValues)
2328
- for (const q of S.mount)
2329
- j(t.dirtyFields, q) ? ce(x, q, j(i, q)) : Y(q, j(x, q));
2329
+ for (const N of S.mount)
2330
+ j(t.dirtyFields, N) ? ce(x, N, j(i, N)) : Y(N, j(x, N));
2330
2331
  else {
2331
2332
  if (kt && ge(n))
2332
- for (const q of S.mount) {
2333
- const te = j(l, q);
2333
+ for (const N of S.mount) {
2334
+ const te = j(l, N);
2334
2335
  if (te && te._f) {
2335
2336
  const fe = Array.isArray(te._f.refs) ? te._f.refs[0] : te._f.ref;
2336
2337
  if (Ge(fe)) {
@@ -2367,7 +2368,7 @@ function pn(e = {}) {
2367
2368
  isSubmitSuccessful: s.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
2368
2369
  isSubmitting: !1
2369
2370
  });
2370
- }, N = (n, s) => I(De(n) ? n(i) : n, s);
2371
+ }, q = (n, s) => I(De(n) ? n(i) : n, s);
2371
2372
  return {
2372
2373
  control: {
2373
2374
  register: F,
@@ -2385,7 +2386,7 @@ function pn(e = {}) {
2385
2386
  _getFieldArray: U,
2386
2387
  _reset: I,
2387
2388
  _resetDefaultValues: () => De(r.defaultValues) && r.defaultValues().then((n) => {
2388
- N(n, r.resetOptions), D.state.next({
2389
+ q(n, r.resetOptions), D.state.next({
2389
2390
  isLoading: !1
2390
2391
  });
2391
2392
  }),
@@ -2442,7 +2443,7 @@ function pn(e = {}) {
2442
2443
  watch: c,
2443
2444
  setValue: Y,
2444
2445
  getValues: k,
2445
- reset: N,
2446
+ reset: q,
2446
2447
  resetField: h,
2447
2448
  clearErrors: u,
2448
2449
  unregister: y,
@@ -2503,7 +2504,7 @@ function mn(e = {}) {
2503
2504
  });
2504
2505
  }, [e.shouldUnregister, i]), r.current.formState = rn(l, i), r.current;
2505
2506
  }
2506
- const bn = kr.bind(Se), En = "Я принимаю условия Политики обработки и защиты персональных данных, даю согласия на обработку персональных данных", Fn = ({
2507
+ const bn = kr.bind(Se), En = "Я принимаю условия Политики обработки и защиты персональных данных, даю согласия на обработку персональных данных", Dn = ({
2507
2508
  isFormOpen: e,
2508
2509
  setIsFormOpen: r,
2509
2510
  isNews: t,
@@ -2740,5 +2741,5 @@ const bn = kr.bind(Se), En = "Я принимаю условия Политик
2740
2741
  ) : null;
2741
2742
  };
2742
2743
  export {
2743
- Fn as ModalForm
2744
+ Dn as ModalForm
2744
2745
  };
@@ -1,4 +1,4 @@
1
- import { M as r } from "../../Modal-BZv6nlLe.js";
1
+ import { Modal as a } from "./ui/Modal.js";
2
2
  export {
3
- r as Modal
3
+ a as Modal
4
4
  };