stone-kit 0.0.804 → 0.0.805

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,4 +1,4 @@
1
- import { jsxs as k, jsx as d, Fragment as Se } from "react/jsx-runtime";
1
+ import { jsxs as N, jsx as d, Fragment as ke } from "react/jsx-runtime";
2
2
  import { NewIcon as me } from "./components/NewIcon/ui/NewIcon.js";
3
3
  import { Modal as rt } from "./components/Modal/ui/Modal.js";
4
4
  import z, { forwardRef as _t, useState as Ae, useRef as Pt, useEffect as tt } from "react";
@@ -31,7 +31,7 @@ import { TextArea as ar } from "./components/TextArea/TextArea.js";
31
31
  import { O as bt } from "./Option-BVIm7wOW.js";
32
32
  import "./components/CheckBoxOld/CheckBoxOld.js";
33
33
  import "./components/CheckboxSelect/ui/CheckboxSelect.js";
34
- const nr = "_root_14gc5_1", lr = "_text_14gc5_18", or = "_textMini_14gc5_26", cr = "_rootCol_14gc5_32", dr = "_item_14gc5_38", ur = "_whiteRow_14gc5_57", fr = "_firstItem_14gc5_68", mr = "_lastItem_14gc5_72", pr = "_whiteRowGrayLabel_14gc5_103", hr = "_labelItem_14gc5_118", yr = "_apart_14gc5_147", gr = "_isLong_14gc5_147", vr = "_autoWidth_14gc5_172", br = "_mini_14gc5_176", Fr = "_isDisabled_14gc5_184", wr = "_grayRow_14gc5_208", G = {
34
+ const nr = "_root_14gc5_1", lr = "_text_14gc5_18", or = "_textMini_14gc5_26", cr = "_rootCol_14gc5_32", dr = "_item_14gc5_38", ur = "_whiteRow_14gc5_57", fr = "_firstItem_14gc5_68", mr = "_lastItem_14gc5_72", pr = "_whiteRowGrayLabel_14gc5_103", hr = "_labelItem_14gc5_118", yr = "_apart_14gc5_147", gr = "_isLong_14gc5_147", vr = "_autoWidth_14gc5_172", br = "_mini_14gc5_176", Fr = "_isDisabled_14gc5_184", xr = "_grayRow_14gc5_208", G = {
35
35
  root: nr,
36
36
  text: lr,
37
37
  textMini: or,
@@ -47,7 +47,7 @@ const nr = "_root_14gc5_1", lr = "_text_14gc5_18", or = "_textMini_14gc5_26", cr
47
47
  autoWidth: vr,
48
48
  mini: br,
49
49
  isDisabled: Fr,
50
- grayRow: wr,
50
+ grayRow: xr,
51
51
  "tiny-size": "_tiny-size_14gc5_236",
52
52
  "small-size": "_small-size_14gc5_241",
53
53
  "medium-size": "_medium-size_14gc5_246",
@@ -68,32 +68,32 @@ const nr = "_root_14gc5_1", lr = "_text_14gc5_18", or = "_textMini_14gc5_26", cr
68
68
  "text-small-size_l": "_text-small-size_l_14gc5_325",
69
69
  "text-medium-size_l": "_text-medium-size_l_14gc5_329",
70
70
  "text-large-size_l": "_text-large-size_l_14gc5_333"
71
- }, Ne = Ze.bind(G), xr = ({
71
+ }, Se = Ze.bind(G), wr = ({
72
72
  children: e,
73
73
  variant: s = "whiteRow",
74
74
  isApart: t = !1,
75
75
  addClassName: a = "",
76
76
  col: l = !1
77
- }) => /* @__PURE__ */ d("div", { className: Ne(G.root, G[s], { [G.rootCol]: l, [G.apart]: t }, a), children: e }), Tt = _t((e, s) => {
77
+ }) => /* @__PURE__ */ d("div", { className: Se(G.root, G[s], { [G.rootCol]: l, [G.apart]: t }, a), children: e }), Tt = _t((e, s) => {
78
78
  const { isTablet: t, isDesktop: a } = Ie(), {
79
79
  index: l,
80
80
  children: i,
81
81
  addItemClassName: c,
82
82
  addLabelClassname: p,
83
83
  addTextClass: A,
84
- size_s: N = "large",
84
+ size_s: S = "large",
85
85
  size_m: v,
86
86
  size_l: y,
87
87
  disabled: T = !1,
88
88
  itemsLength: M = 0,
89
- isLongOn: S = !0,
89
+ isLongOn: k = !0,
90
90
  width: q,
91
91
  width_m: I,
92
92
  width_l: W,
93
93
  mini: F = !1,
94
94
  ...j
95
- } = e, X = (i != null && i.toString().length ? (i == null ? void 0 : i.toString().length) > 2 : !1) && S, x = (_, Q) => _ && I ? I : Q && W ? W : q, Z = !q && !I && !W && X;
96
- return /* @__PURE__ */ k("label", { className: Ne(G.labelItem, { [G.isLong]: X }, p), children: [
95
+ } = e, X = (i != null && i.toString().length ? (i == null ? void 0 : i.toString().length) > 2 : !1) && k, w = (_, Q) => _ && I ? I : Q && W ? W : q, Z = !q && !I && !W && X;
96
+ return /* @__PURE__ */ N("label", { className: Se(G.labelItem, { [G.isLong]: X }, p), children: [
97
97
  /* @__PURE__ */ d(
98
98
  "input",
99
99
  {
@@ -106,15 +106,15 @@ const nr = "_root_14gc5_1", lr = "_text_14gc5_18", or = "_textMini_14gc5_26", cr
106
106
  /* @__PURE__ */ d(
107
107
  "div",
108
108
  {
109
- style: { width: x(t, a) },
110
- className: Ne(
111
- Ne(
109
+ style: { width: w(t, a) },
110
+ className: Se(
111
+ Se(
112
112
  G.item,
113
113
  { [G.firstItem]: l === 0 },
114
114
  { [G.lastItem]: l === M - 1 },
115
115
  { [G.isDisabled]: T },
116
116
  { [G.autoWidth]: Z },
117
- G[`${N}-size`],
117
+ G[`${S}-size`],
118
118
  G[`${v}-size_m`],
119
119
  G[`${y}-size_l`],
120
120
  { [G.mini]: F }
@@ -124,9 +124,9 @@ const nr = "_root_14gc5_1", lr = "_text_14gc5_18", or = "_textMini_14gc5_26", cr
124
124
  children: /* @__PURE__ */ d(
125
125
  je,
126
126
  {
127
- className: Ne(
127
+ className: Se(
128
128
  G.text,
129
- G[`text-${N}-size`],
129
+ G[`text-${S}-size`],
130
130
  G[`text-${v}-size_m`],
131
131
  G[`text-${y}-size_l`],
132
132
  { [G.textMini]: F },
@@ -140,12 +140,12 @@ const nr = "_root_14gc5_1", lr = "_text_14gc5_18", or = "_textMini_14gc5_26", cr
140
140
  ] });
141
141
  });
142
142
  Tt.displayName = "TabSwitcherItem";
143
- const Be = Object.assign(xr, { Item: Tt }), Ar = "_root_1gm26_1", Cr = "_lotBtn_1gm26_12", kr = "_rootDisable_1gm26_17", Nr = "_lotImageWrapper_1gm26_17", Sr = "_lotInfoWrapper_1gm26_18", Pr = "_infoHeader_1gm26_38", Tr = "_monthlyWrapper_1gm26_47", Ir = "_monthlyPayment_1gm26_55", Er = "_decor_1gm26_61", Vr = "_lotPropertyListMobile_1gm26_68", Dr = "_lotPropertyItem_1gm26_76", Br = "_lotPropertyListDesktop_1gm26_97", Wr = "_lotPriceWrapper_1gm26_101", Lr = "_discountWrapper_1gm26_107", Or = "_discountPrice_1gm26_118", jr = "_snippetLast_1gm26_130", Mr = "_snippet_1gm26_130", Rr = "_tagsMobile_1gm26_145", zr = "_discountTag_1gm26_160", Xr = "_lotPricePerMetr_1gm26_164", qr = "_btnWrapper_1gm26_169", Zr = "_title_1gm26_176", Ur = "_snippets_1gm26_180", Gr = "_rootRow_1gm26_185", Hr = "_lotPriceWrapperRow_1gm26_252", Jr = "_fullscreenBtn_1gm26_262", Yr = "_projectLotPricePerMetr_1gm26_281", P = {
143
+ const Be = Object.assign(wr, { Item: Tt }), Ar = "_root_1gm26_1", Cr = "_lotBtn_1gm26_12", Nr = "_rootDisable_1gm26_17", Sr = "_lotImageWrapper_1gm26_17", kr = "_lotInfoWrapper_1gm26_18", Pr = "_infoHeader_1gm26_38", Tr = "_monthlyWrapper_1gm26_47", Ir = "_monthlyPayment_1gm26_55", Er = "_decor_1gm26_61", Vr = "_lotPropertyListMobile_1gm26_68", Dr = "_lotPropertyItem_1gm26_76", Br = "_lotPropertyListDesktop_1gm26_97", Wr = "_lotPriceWrapper_1gm26_101", Lr = "_discountWrapper_1gm26_107", Or = "_discountPrice_1gm26_118", jr = "_snippetLast_1gm26_130", Mr = "_snippet_1gm26_130", Rr = "_tagsMobile_1gm26_145", zr = "_discountTag_1gm26_160", Xr = "_lotPricePerMetr_1gm26_164", qr = "_btnWrapper_1gm26_169", Zr = "_title_1gm26_176", Ur = "_snippets_1gm26_180", Gr = "_rootRow_1gm26_185", Hr = "_lotPriceWrapperRow_1gm26_252", Jr = "_fullscreenBtn_1gm26_262", Yr = "_projectLotPricePerMetr_1gm26_281", P = {
144
144
  root: Ar,
145
145
  lotBtn: Cr,
146
- rootDisable: kr,
147
- lotImageWrapper: Nr,
148
- lotInfoWrapper: Sr,
146
+ rootDisable: Nr,
147
+ lotImageWrapper: Sr,
148
+ lotInfoWrapper: kr,
149
149
  infoHeader: Pr,
150
150
  monthlyWrapper: Tr,
151
151
  monthlyPayment: Ir,
@@ -180,32 +180,32 @@ const Be = Object.assign(xr, { Item: Tt }), Ar = "_root_1gm26_1", Cr = "_lotBtn_
180
180
  addClassnameLotImage: A
181
181
  }) => {
182
182
  const {
183
- area: N,
183
+ area: S,
184
184
  floor: v,
185
185
  floorsNumber: y,
186
186
  housing: T,
187
187
  bedroomsCount: M,
188
- number: S,
188
+ number: k,
189
189
  sellingPricePerMeter: q,
190
190
  interiorPlanImg: I,
191
191
  mortgageMonthlyPayment: W,
192
192
  type: F,
193
193
  direction: j,
194
194
  floorPlanImg: X,
195
- discount: x,
195
+ discount: w,
196
196
  sellingPrice: Z,
197
197
  sellingPriceBeforeDiscount: _,
198
198
  subTypeName: Q,
199
199
  endFloor: V,
200
200
  status: C
201
- } = e, D = er({ ...e }), g = C === 2, w = j === 1, E = N + " м²", B = (V && V !== v ? v + "-" + V : v) + " из " + y, { isTablet: ee, isDesktop: $, currentClientWidth: ye } = Ie(), ce = typeof p < "u" ? p : $ || ee, ge = () => F === 11 ? "Кол-во этажей: " + y : "Этаж: " + B, Ve = () => F === 11 ? /* @__PURE__ */ k(Se, { children: [
201
+ } = e, D = er({ ...e }), g = C === 2, x = j === 1, E = S + " м²", B = (V && V !== v ? v + "-" + V : v) + " из " + y, { isTablet: ee, isDesktop: $, currentClientWidth: ye } = Ie(), ce = typeof p < "u" ? p : $ || ee, ge = () => F === 11 ? "Кол-во этажей: " + y : "Этаж: " + B, Ve = () => F === 11 ? /* @__PURE__ */ N(ke, { children: [
202
202
  /* @__PURE__ */ d("div", { children: "Количество этажей" }),
203
203
  /* @__PURE__ */ d("div", { children: y })
204
- ] }) : /* @__PURE__ */ k(Se, { children: [
204
+ ] }) : /* @__PURE__ */ N(ke, { children: [
205
205
  /* @__PURE__ */ d("div", { children: "Этаж" }),
206
206
  /* @__PURE__ */ d("div", { children: B })
207
207
  ] });
208
- return ye ? /* @__PURE__ */ k(
208
+ return ye ? /* @__PURE__ */ N(
209
209
  "div",
210
210
  {
211
211
  className: J(P.root, l, {
@@ -214,13 +214,13 @@ const Be = Object.assign(xr, { Item: Tt }), Ar = "_root_1gm26_1", Cr = "_lotBtn_
214
214
  }),
215
215
  "data-testid": "lot_card",
216
216
  children: [
217
- !ce && /* @__PURE__ */ k("div", { className: J(P.title), children: [
218
- /* @__PURE__ */ k("div", { className: P.monthlyWrapper, children: [
217
+ !ce && /* @__PURE__ */ N("div", { className: J(P.title), children: [
218
+ /* @__PURE__ */ N("div", { className: P.monthlyWrapper, children: [
219
219
  /* @__PURE__ */ d(
220
220
  je,
221
221
  {
222
222
  className: J(P.infoHeader),
223
- html: `${w && F ? Q : yt(M)}, ${S}`
223
+ html: `${x && F ? Q : yt(M)}, ${k}`
224
224
  }
225
225
  ),
226
226
  W && /* @__PURE__ */ d("div", { className: P.monthlyPayment, children: gt(W) })
@@ -247,14 +247,14 @@ const Be = Object.assign(xr, { Item: Tt }), Ar = "_root_1gm26_1", Cr = "_lotBtn_
247
247
  alt: ""
248
248
  }
249
249
  ) }),
250
- /* @__PURE__ */ k("div", { className: J(P.lotInfoWrapper), children: [
251
- ce && /* @__PURE__ */ k(Se, { children: [
252
- /* @__PURE__ */ k("div", { className: J(P.monthlyWrapper), children: [
250
+ /* @__PURE__ */ N("div", { className: J(P.lotInfoWrapper), children: [
251
+ ce && /* @__PURE__ */ N(ke, { children: [
252
+ /* @__PURE__ */ N("div", { className: J(P.monthlyWrapper), children: [
253
253
  /* @__PURE__ */ d(
254
254
  je,
255
255
  {
256
256
  className: J(P.infoHeader),
257
- html: `${w && F ? Q : yt(M)}, ${S}`
257
+ html: `${x && F ? Q : yt(M)}, ${k}`
258
258
  }
259
259
  ),
260
260
  W && /* @__PURE__ */ d("div", { className: P.monthlyPayment, children: gt(W) })
@@ -271,26 +271,26 @@ const Be = Object.assign(xr, { Item: Tt }), Ar = "_root_1gm26_1", Cr = "_lotBtn_
271
271
  );
272
272
  }) })
273
273
  ] }),
274
- /* @__PURE__ */ k("div", { className: J(P.lotPropertyListDesktop), children: [
274
+ /* @__PURE__ */ N("div", { className: J(P.lotPropertyListDesktop), children: [
275
275
  /* @__PURE__ */ d(De, { variant: "gray", children: E }),
276
276
  /* @__PURE__ */ d(De, { variant: "gray", children: T }),
277
277
  /* @__PURE__ */ d(De, { variant: "gray", children: ge() })
278
278
  ] }),
279
- /* @__PURE__ */ k("ul", { className: J(P.lotPropertyListMobile), children: [
280
- /* @__PURE__ */ k("li", { className: J(P.lotPropertyItem), children: [
279
+ /* @__PURE__ */ N("ul", { className: J(P.lotPropertyListMobile), children: [
280
+ /* @__PURE__ */ N("li", { className: J(P.lotPropertyItem), children: [
281
281
  /* @__PURE__ */ d("div", { children: "Площадь" }),
282
282
  /* @__PURE__ */ d("div", { children: E })
283
283
  ] }),
284
- /* @__PURE__ */ k("li", { className: J(P.lotPropertyItem), children: [
284
+ /* @__PURE__ */ N("li", { className: J(P.lotPropertyItem), children: [
285
285
  /* @__PURE__ */ d("div", { children: T == null ? void 0 : T.split(" ")[0] }),
286
286
  /* @__PURE__ */ d("div", { children: T == null ? void 0 : T.split(" ")[1] })
287
287
  ] }),
288
288
  /* @__PURE__ */ d("li", { className: J(P.lotPropertyItem), children: /* @__PURE__ */ d(Ve, {}) })
289
289
  ] })
290
290
  ] }),
291
- /* @__PURE__ */ k("div", { className: J(P.lotPriceWrapper, { [P.lotPriceWrapperRow]: !ce }), children: [
292
- !g && /* @__PURE__ */ k("div", { className: P.discountWrapper, children: [
293
- x && Z && _ && /* @__PURE__ */ k("div", { className: J(P.discountPrice), children: [
291
+ /* @__PURE__ */ N("div", { className: J(P.lotPriceWrapper, { [P.lotPriceWrapperRow]: !ce }), children: [
292
+ !g && /* @__PURE__ */ N("div", { className: P.discountWrapper, children: [
293
+ w && Z && _ && /* @__PURE__ */ N("div", { className: J(P.discountPrice), children: [
294
294
  /* @__PURE__ */ d("span", { children: _e(_ ?? Z, !1, j) }),
295
295
  /* @__PURE__ */ d(
296
296
  De,
@@ -298,14 +298,14 @@ const Be = Object.assign(xr, { Item: Tt }), Ar = "_root_1gm26_1", Cr = "_lotBtn_
298
298
  additionalClass: J(P.discountTag),
299
299
  variant: "red",
300
300
  size: "tiny",
301
- children: "-" + Number(x) + "%"
301
+ children: "-" + Number(w) + "%"
302
302
  }
303
303
  )
304
304
  ] }),
305
305
  /* @__PURE__ */ d("div", { children: _e(Z, !1, j) })
306
306
  ] }),
307
307
  q && !g && /* @__PURE__ */ d("div", { className: J(P.lotPricePerMetr, P.projectLotPricePerMetr), children: _e(q, !0, j) }),
308
- /* @__PURE__ */ k("div", { className: J(P.btnWrapper), children: [
308
+ /* @__PURE__ */ N("div", { className: J(P.btnWrapper), children: [
309
309
  /* @__PURE__ */ d(
310
310
  pe,
311
311
  {
@@ -366,16 +366,16 @@ const Be = Object.assign(xr, { Item: Tt }), Ar = "_root_1gm26_1", Cr = "_lotBtn_
366
366
  onChange: c,
367
367
  onBlur: p,
368
368
  mini: A,
369
- openOnTop: N = !1,
369
+ openOnTop: S = !1,
370
370
  onClickItem: v,
371
371
  onCLickSelect: y,
372
372
  onOpenClick: T
373
373
  }) => {
374
- const [M, S] = Ae(!1), q = Pt(null), { isMobile: I } = Ie(), { handleBlur: W, getInputValue: F, getOption: j, handleDocumentClick: X } = tr({
374
+ const [M, k] = Ae(!1), q = Pt(null), { isMobile: I } = Ie(), { handleBlur: W, getInputValue: F, getOption: j, handleDocumentClick: X } = tr({
375
375
  selectedOption: s,
376
376
  onClickOption: v,
377
377
  setSelectedOption: c,
378
- setIsOpen: S,
378
+ setIsOpen: k,
379
379
  containerRef: q,
380
380
  isOpen: M,
381
381
  isMobile: I,
@@ -385,14 +385,14 @@ const Be = Object.assign(xr, { Item: Tt }), Ar = "_root_1gm26_1", Cr = "_lotBtn_
385
385
  });
386
386
  return tt(() => (document.addEventListener("click", X), () => {
387
387
  document.removeEventListener("click", X);
388
- }), []), /* @__PURE__ */ k(
388
+ }), []), /* @__PURE__ */ N(
389
389
  "div",
390
390
  {
391
391
  ref: q,
392
392
  className: We(
393
393
  te.sortSelectWrapper,
394
394
  { [te.sortSelectWrapperError]: a },
395
- { [te.sortSelectWrapperTop]: N },
395
+ { [te.sortSelectWrapperTop]: S },
396
396
  i
397
397
  ),
398
398
  tabIndex: 0,
@@ -401,7 +401,7 @@ const Be = Object.assign(xr, { Item: Tt }), Ar = "_root_1gm26_1", Cr = "_lotBtn_
401
401
  y && y();
402
402
  },
403
403
  children: [
404
- /* @__PURE__ */ k("div", { className: We(te.inputWrapper), children: [
404
+ /* @__PURE__ */ N("div", { className: We(te.inputWrapper), children: [
405
405
  /* @__PURE__ */ d(
406
406
  "input",
407
407
  {
@@ -414,7 +414,7 @@ const Be = Object.assign(xr, { Item: Tt }), Ar = "_root_1gm26_1", Cr = "_lotBtn_
414
414
  { [te.selectionOptionMini]: A }
415
415
  ),
416
416
  onClick: () => {
417
- M || T && T(), S(!M);
417
+ M || T && T(), k(!M);
418
418
  }
419
419
  }
420
420
  ),
@@ -427,19 +427,19 @@ const Be = Object.assign(xr, { Item: Tt }), Ar = "_root_1gm26_1", Cr = "_lotBtn_
427
427
  }
428
428
  )
429
429
  ] }),
430
- M && I && /* @__PURE__ */ k(
430
+ M && I && /* @__PURE__ */ N(
431
431
  rt,
432
432
  {
433
433
  isOpen: M,
434
- emitIsOpen: S,
434
+ emitIsOpen: k,
435
435
  additionalClassModalBody: te.modalAddBody,
436
436
  additionalClass: te.selectModal,
437
437
  createPortalObj: { domNode: document.querySelector("body") },
438
438
  isTransparentBack: !0,
439
439
  children: [
440
- /* @__PURE__ */ k("div", { className: te.mobileSortHeader, children: [
440
+ /* @__PURE__ */ N("div", { className: te.mobileSortHeader, children: [
441
441
  /* @__PURE__ */ d(je, { children: "Сортировка" }),
442
- /* @__PURE__ */ d("div", { onClick: () => S(!1), children: /* @__PURE__ */ d(
442
+ /* @__PURE__ */ d("div", { onClick: () => k(!1), children: /* @__PURE__ */ d(
443
443
  me,
444
444
  {
445
445
  name: "close",
@@ -447,11 +447,11 @@ const Be = Object.assign(xr, { Item: Tt }), Ar = "_root_1gm26_1", Cr = "_lotBtn_
447
447
  }
448
448
  ) })
449
449
  ] }),
450
- /* @__PURE__ */ d("div", { className: te.mobileOptionList, children: e == null ? void 0 : e.map((x) => j(x)) })
450
+ /* @__PURE__ */ d("div", { className: te.mobileOptionList, children: e == null ? void 0 : e.map((w) => j(w)) })
451
451
  ]
452
452
  }
453
453
  ),
454
- M && !I && /* @__PURE__ */ d("div", { className: We(te.optionsList, { [te.optionListOnTop]: N }), children: e == null ? void 0 : e.map((x) => j(x)) })
454
+ M && !I && /* @__PURE__ */ d("div", { className: We(te.optionsList, { [te.optionListOnTop]: S }), children: e == null ? void 0 : e.map((w) => j(w)) })
455
455
  ]
456
456
  }
457
457
  );
@@ -506,8 +506,8 @@ var Ue = (e) => Array.isArray(e) ? e.filter(Boolean) : [], U = (e) => e === void
506
506
  const p = l[a];
507
507
  let A = t;
508
508
  if (a !== c) {
509
- const N = e[p];
510
- A = K(N) || Array.isArray(N) ? N : isNaN(+l[a + 1]) ? {} : [];
509
+ const S = e[p];
510
+ A = K(S) || Array.isArray(S) ? S : isNaN(+l[a + 1]) ? {} : [];
511
511
  }
512
512
  if (p === "__proto__")
513
513
  return;
@@ -563,7 +563,7 @@ function nt(e) {
563
563
  }, [e.disabled]);
564
564
  }
565
565
  function ms(e) {
566
- const s = at(), { control: t = s.control, disabled: a, name: l, exact: i } = e || {}, [c, p] = z.useState(t._formState), A = z.useRef(!0), N = z.useRef({
566
+ const s = at(), { control: t = s.control, disabled: a, name: l, exact: i } = e || {}, [c, p] = z.useState(t._formState), A = z.useRef(!0), S = z.useRef({
567
567
  isDirty: !1,
568
568
  isLoading: !1,
569
569
  dirtyFields: !1,
@@ -575,14 +575,14 @@ function ms(e) {
575
575
  }), v = z.useRef(l);
576
576
  return v.current = l, nt({
577
577
  disabled: a,
578
- next: (y) => A.current && Lt(v.current, y.name, i) && Wt(y, N.current, t._updateFormState) && p({
578
+ next: (y) => A.current && Lt(v.current, y.name, i) && Wt(y, S.current, t._updateFormState) && p({
579
579
  ...t._formState,
580
580
  ...y
581
581
  }),
582
582
  subject: t._subjects.state
583
- }), z.useEffect(() => (A.current = !0, N.current.isValid && t._updateValid(!0), () => {
583
+ }), z.useEffect(() => (A.current = !0, S.current.isValid && t._updateValid(!0), () => {
584
584
  A.current = !1;
585
- }), [t]), Bt(c, t, N.current, !1);
585
+ }), [t]), Bt(c, t, S.current, !1);
586
586
  }
587
587
  var ue = (e) => typeof e == "string", Ot = (e, s, t, a, l) => ue(e) ? (a && s.watch.add(e), f(t, e, l)) : Array.isArray(e) ? e.map((i) => (a && s.watch.add(i), f(t, i))) : (a && (s.watchAll = !0), t);
588
588
  function ps(e) {
@@ -591,10 +591,10 @@ function ps(e) {
591
591
  disabled: i,
592
592
  subject: t._subjects.values,
593
593
  next: (v) => {
594
- Lt(p.current, v.name, c) && N(ie(Ot(p.current, t._names, v.values || t._formValues, !1, l)));
594
+ Lt(p.current, v.name, c) && S(ie(Ot(p.current, t._names, v.values || t._formValues, !1, l)));
595
595
  }
596
596
  });
597
- const [A, N] = z.useState(t._getWatch(a, l));
597
+ const [A, S] = z.useState(t._getWatch(a, l));
598
598
  return z.useEffect(() => t._removeUnmounted()), A;
599
599
  }
600
600
  function hs(e) {
@@ -607,15 +607,15 @@ function hs(e) {
607
607
  control: l,
608
608
  name: t,
609
609
  exact: !0
610
- }), N = z.useRef(l.register(t, {
610
+ }), S = z.useRef(l.register(t, {
611
611
  ...e.rules,
612
612
  value: p,
613
613
  ...de(e.disabled) ? { disabled: e.disabled } : {}
614
614
  }));
615
615
  return z.useEffect(() => {
616
616
  const v = l._options.shouldUnregister || i, y = (T, M) => {
617
- const S = f(l._fields, T);
618
- S && S._f && (S._f.mount = M);
617
+ const k = f(l._fields, T);
618
+ k && k._f && (k._f.mount = M);
619
619
  };
620
620
  if (y(t, !0), v) {
621
621
  const T = ie(f(l._options.defaultValues, t));
@@ -636,14 +636,14 @@ function hs(e) {
636
636
  name: t,
637
637
  value: p,
638
638
  ...de(a) || A.disabled ? { disabled: A.disabled || a } : {},
639
- onChange: z.useCallback((v) => N.current.onChange({
639
+ onChange: z.useCallback((v) => S.current.onChange({
640
640
  target: {
641
641
  value: Et(v),
642
642
  name: t
643
643
  },
644
644
  type: Me.CHANGE
645
645
  }), [t]),
646
- onBlur: z.useCallback(() => N.current.onBlur({
646
+ onBlur: z.useCallback(() => S.current.onBlur({
647
647
  target: {
648
648
  value: f(l._formValues, t),
649
649
  name: t
@@ -698,7 +698,7 @@ var gs = (e, s, t, a, l) => s ? {
698
698
  isOnChange: e === oe.onChange,
699
699
  isOnAll: e === oe.all,
700
700
  isOnTouch: e === oe.onTouched
701
- }), wt = (e, s, t) => !t && (s.watchAll || s.watch.has(e) || [...s.watch].some((a) => e.startsWith(a) && /^\.\w+/.test(e.slice(a.length))));
701
+ }), xt = (e, s, t) => !t && (s.watchAll || s.watch.has(e) || [...s.watch].some((a) => e.startsWith(a) && /^\.\w+/.test(e.slice(a.length))));
702
702
  const Te = (e, s, t, a) => {
703
703
  for (const l of t || Object.keys(e)) {
704
704
  const i = f(e, l);
@@ -724,7 +724,7 @@ var vs = (e, s, t) => {
724
724
  const s = e ? e.ownerDocument : 0;
725
725
  return e instanceof (s && s.defaultView ? s.defaultView.HTMLElement : HTMLElement);
726
726
  }, Oe = (e) => ue(e), ot = (e) => e.type === "radio", ze = (e) => e instanceof RegExp;
727
- const xt = {
727
+ const wt = {
728
728
  value: !1,
729
729
  isValid: !1
730
730
  }, At = { value: !0, isValid: !0 };
@@ -737,9 +737,9 @@ var jt = (e) => {
737
737
  return e[0].checked && !e[0].disabled ? (
738
738
  // @ts-expect-error expected to work in the browser
739
739
  e[0].attributes && !U(e[0].attributes.value) ? U(e[0].value) || e[0].value === "" ? At : { value: e[0].value, isValid: !0 } : At
740
- ) : xt;
740
+ ) : wt;
741
741
  }
742
- return xt;
742
+ return wt;
743
743
  };
744
744
  const Ct = {
745
745
  isValid: !1,
@@ -749,7 +749,7 @@ var Mt = (e) => Array.isArray(e) ? e.reduce((s, t) => t && t.checked && !t.disab
749
749
  isValid: !0,
750
750
  value: t.value
751
751
  } : s, Ct) : Ct;
752
- function kt(e, s, t = "validate") {
752
+ function Nt(e, s, t = "validate") {
753
753
  if (Oe(e) || Array.isArray(e) && e.every(Oe) || de(e) && !e)
754
754
  return {
755
755
  type: t,
@@ -757,18 +757,18 @@ function kt(e, s, t = "validate") {
757
757
  ref: s
758
758
  };
759
759
  }
760
- var xe = (e) => K(e) && !ze(e) ? e : {
760
+ var we = (e) => K(e) && !ze(e) ? e : {
761
761
  value: e,
762
762
  message: ""
763
- }, Nt = async (e, s, t, a, l) => {
764
- const { ref: i, refs: c, required: p, maxLength: A, minLength: N, min: v, max: y, pattern: T, validate: M, name: S, valueAsNumber: q, mount: I, disabled: W } = e._f, F = f(s, S);
763
+ }, St = async (e, s, t, a, l) => {
764
+ const { ref: i, refs: c, required: p, maxLength: A, minLength: S, min: v, max: y, pattern: T, validate: M, name: k, valueAsNumber: q, mount: I, disabled: W } = e._f, F = f(s, k);
765
765
  if (!I || W)
766
766
  return {};
767
767
  const j = c ? c[0] : i, X = (g) => {
768
768
  a && j.reportValidity && (j.setCustomValidity(de(g) ? "" : g || ""), j.reportValidity());
769
- }, x = {}, Z = ot(i), _ = Ee(i), Q = Z || _, V = (q || lt(i)) && U(i.value) && U(F) || Re(i) && i.value === "" || F === "" || Array.isArray(F) && !F.length, C = gs.bind(null, S, t, x), D = (g, w, E, B = fe.maxLength, ee = fe.minLength) => {
770
- const $ = g ? w : E;
771
- x[S] = {
769
+ }, w = {}, Z = ot(i), _ = Ee(i), Q = Z || _, V = (q || lt(i)) && U(i.value) && U(F) || Re(i) && i.value === "" || F === "" || Array.isArray(F) && !F.length, C = gs.bind(null, k, t, w), D = (g, x, E, B = fe.maxLength, ee = fe.minLength) => {
770
+ const $ = g ? x : E;
771
+ w[k] = {
772
772
  type: g ? B : ee,
773
773
  message: $,
774
774
  ref: i,
@@ -776,70 +776,70 @@ var xe = (e) => K(e) && !ze(e) ? e : {
776
776
  };
777
777
  };
778
778
  if (l ? !Array.isArray(F) || !F.length : p && (!Q && (V || se(F)) || de(F) && !F || _ && !jt(c).isValid || Z && !Mt(c).isValid)) {
779
- const { value: g, message: w } = Oe(p) ? { value: !!p, message: p } : xe(p);
780
- if (g && (x[S] = {
779
+ const { value: g, message: x } = Oe(p) ? { value: !!p, message: p } : we(p);
780
+ if (g && (w[k] = {
781
781
  type: fe.required,
782
- message: w,
782
+ message: x,
783
783
  ref: j,
784
- ...C(fe.required, w)
784
+ ...C(fe.required, x)
785
785
  }, !t))
786
- return X(w), x;
786
+ return X(x), w;
787
787
  }
788
788
  if (!V && (!se(v) || !se(y))) {
789
- let g, w;
790
- const E = xe(y), B = xe(v);
789
+ let g, x;
790
+ const E = we(y), B = we(v);
791
791
  if (!se(F) && !isNaN(F)) {
792
792
  const ee = i.valueAsNumber || F && +F;
793
- se(E.value) || (g = ee > E.value), se(B.value) || (w = ee < B.value);
793
+ se(E.value) || (g = ee > E.value), se(B.value) || (x = ee < B.value);
794
794
  } else {
795
795
  const ee = i.valueAsDate || new Date(F), $ = (ge) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + ge), ye = i.type == "time", ce = i.type == "week";
796
- ue(E.value) && F && (g = ye ? $(F) > $(E.value) : ce ? F > E.value : ee > new Date(E.value)), ue(B.value) && F && (w = ye ? $(F) < $(B.value) : ce ? F < B.value : ee < new Date(B.value));
796
+ ue(E.value) && F && (g = ye ? $(F) > $(E.value) : ce ? F > E.value : ee > new Date(E.value)), ue(B.value) && F && (x = ye ? $(F) < $(B.value) : ce ? F < B.value : ee < new Date(B.value));
797
797
  }
798
- if ((g || w) && (D(!!g, E.message, B.message, fe.max, fe.min), !t))
799
- return X(x[S].message), x;
798
+ if ((g || x) && (D(!!g, E.message, B.message, fe.max, fe.min), !t))
799
+ return X(w[k].message), w;
800
800
  }
801
- if ((A || N) && !V && (ue(F) || l && Array.isArray(F))) {
802
- const g = xe(A), w = xe(N), E = !se(g.value) && F.length > +g.value, B = !se(w.value) && F.length < +w.value;
803
- if ((E || B) && (D(E, g.message, w.message), !t))
804
- return X(x[S].message), x;
801
+ if ((A || S) && !V && (ue(F) || l && Array.isArray(F))) {
802
+ const g = we(A), x = we(S), E = !se(g.value) && F.length > +g.value, B = !se(x.value) && F.length < +x.value;
803
+ if ((E || B) && (D(E, g.message, x.message), !t))
804
+ return X(w[k].message), w;
805
805
  }
806
806
  if (T && !V && ue(F)) {
807
- const { value: g, message: w } = xe(T);
808
- if (ze(g) && !F.match(g) && (x[S] = {
807
+ const { value: g, message: x } = we(T);
808
+ if (ze(g) && !F.match(g) && (w[k] = {
809
809
  type: fe.pattern,
810
- message: w,
810
+ message: x,
811
811
  ref: i,
812
- ...C(fe.pattern, w)
812
+ ...C(fe.pattern, x)
813
813
  }, !t))
814
- return X(w), x;
814
+ return X(x), w;
815
815
  }
816
816
  if (M) {
817
817
  if (he(M)) {
818
- const g = await M(F, s), w = kt(g, j);
819
- if (w && (x[S] = {
820
- ...w,
821
- ...C(fe.validate, w.message)
818
+ const g = await M(F, s), x = Nt(g, j);
819
+ if (x && (w[k] = {
820
+ ...x,
821
+ ...C(fe.validate, x.message)
822
822
  }, !t))
823
- return X(w.message), x;
823
+ return X(x.message), w;
824
824
  } else if (K(M)) {
825
825
  let g = {};
826
- for (const w in M) {
826
+ for (const x in M) {
827
827
  if (!ae(g) && !t)
828
828
  break;
829
- const E = kt(await M[w](F, s), j, w);
829
+ const E = Nt(await M[x](F, s), j, x);
830
830
  E && (g = {
831
831
  ...E,
832
- ...C(w, E.message)
833
- }, X(E.message), t && (x[S] = g));
832
+ ...C(x, E.message)
833
+ }, X(E.message), t && (w[k] = g));
834
834
  }
835
- if (!ae(g) && (x[S] = {
835
+ if (!ae(g) && (w[k] = {
836
836
  ref: j,
837
837
  ...g
838
838
  }, !t))
839
- return x;
839
+ return w;
840
840
  }
841
841
  }
842
- return X(!0), x;
842
+ return X(!0), w;
843
843
  };
844
844
  function bs(e, s) {
845
845
  const t = s.slice(0, -1).length;
@@ -898,7 +898,7 @@ function be(e, s) {
898
898
  }
899
899
  return !0;
900
900
  }
901
- var Rt = (e) => e.type === "select-multiple", ws = (e) => ot(e) || Ee(e), $e = (e) => Re(e) && e.isConnected, zt = (e) => {
901
+ var Rt = (e) => e.type === "select-multiple", xs = (e) => ot(e) || Ee(e), $e = (e) => Re(e) && e.isConnected, zt = (e) => {
902
902
  for (const s in e)
903
903
  if (he(e[s]))
904
904
  return !0;
@@ -924,7 +924,7 @@ function et(e) {
924
924
  if (!(e.refs ? e.refs.every((t) => t.disabled) : s.disabled))
925
925
  return lt(s) ? s.files : ot(s) ? Mt(e.refs).value : Rt(s) ? [...s.selectedOptions].map(({ value: t }) => t) : Ee(s) ? jt(e.refs).value : qt(U(s.value) ? e.ref.value : s.value, e);
926
926
  }
927
- var xs = (e, s, t, a) => {
927
+ var ws = (e, s, t, a) => {
928
928
  const l = {};
929
929
  for (const i of e) {
930
930
  const c = f(s, i);
@@ -936,8 +936,8 @@ var xs = (e, s, t, a) => {
936
936
  fields: l,
937
937
  shouldUseNativeValidation: a
938
938
  };
939
- }, ke = (e) => U(e) ? e : ze(e) ? e.source : K(e) ? ze(e.value) ? e.value.source : e.value : e, As = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate);
940
- function St(e, s, t) {
939
+ }, Ne = (e) => U(e) ? e : ze(e) ? e.source : K(e) ? ze(e.value) ? e.value.source : e.value : e, As = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate);
940
+ function kt(e, s, t) {
941
941
  const a = f(e, t);
942
942
  if (a || it(t))
943
943
  return {
@@ -960,15 +960,15 @@ function St(e, s, t) {
960
960
  name: t
961
961
  };
962
962
  }
963
- var Cs = (e, s, t, a, l) => l.isOnAll ? !1 : !t && l.isOnTouch ? !(s || e) : (t ? a.isOnBlur : l.isOnBlur) ? !e : (t ? a.isOnChange : l.isOnChange) ? e : !0, ks = (e, s) => !Ue(f(e, s)).length && Y(e, s);
964
- const Ns = {
963
+ var Cs = (e, s, t, a, l) => l.isOnAll ? !1 : !t && l.isOnTouch ? !(s || e) : (t ? a.isOnBlur : l.isOnBlur) ? !e : (t ? a.isOnChange : l.isOnChange) ? e : !0, Ns = (e, s) => !Ue(f(e, s)).length && Y(e, s);
964
+ const Ss = {
965
965
  mode: oe.onSubmit,
966
966
  reValidateMode: oe.onChange,
967
967
  shouldFocusError: !0
968
968
  };
969
- function Ss(e = {}) {
969
+ function ks(e = {}) {
970
970
  let s = {
971
- ...Ns,
971
+ ...Ss,
972
972
  ...e
973
973
  }, t = {
974
974
  submitCount: 0,
@@ -993,7 +993,7 @@ function Ss(e = {}) {
993
993
  unMount: /* @__PURE__ */ new Set(),
994
994
  array: /* @__PURE__ */ new Set(),
995
995
  watch: /* @__PURE__ */ new Set()
996
- }, A, N = 0;
996
+ }, A, S = 0;
997
997
  const v = {
998
998
  isDirty: !1,
999
999
  dirtyFields: !1,
@@ -1006,8 +1006,8 @@ function Ss(e = {}) {
1006
1006
  values: Qe(),
1007
1007
  array: Qe(),
1008
1008
  state: Qe()
1009
- }, T = Ft(s.mode), M = Ft(s.reValidateMode), S = s.criteriaMode === oe.all, q = (r) => (n) => {
1010
- clearTimeout(N), N = setTimeout(r, n);
1009
+ }, T = Ft(s.mode), M = Ft(s.reValidateMode), k = s.criteriaMode === oe.all, q = (r) => (n) => {
1010
+ clearTimeout(S), S = setTimeout(r, n);
1011
1011
  }, I = async (r) => {
1012
1012
  if (v.isValid || r) {
1013
1013
  const n = s.resolver ? ae((await Q()).errors) : await C(a, !0);
@@ -1030,7 +1030,7 @@ function Ss(e = {}) {
1030
1030
  }
1031
1031
  if (u && Array.isArray(f(t.errors, r))) {
1032
1032
  const b = o(f(t.errors, r), h.argA, h.argB);
1033
- m && R(t.errors, r, b), ks(t.errors, r);
1033
+ m && R(t.errors, r, b), Ns(t.errors, r);
1034
1034
  }
1035
1035
  if (v.touchedFields && u && Array.isArray(f(t.touchedFields, r))) {
1036
1036
  const b = o(f(t.touchedFields, r), h.argA, h.argB);
@@ -1054,7 +1054,7 @@ function Ss(e = {}) {
1054
1054
  errors: t.errors,
1055
1055
  isValid: !1
1056
1056
  });
1057
- }, x = (r, n, o, h) => {
1057
+ }, w = (r, n, o, h) => {
1058
1058
  const m = f(a, r);
1059
1059
  if (m) {
1060
1060
  const u = f(i, r, U(o) ? f(l, r) : o);
@@ -1077,7 +1077,7 @@ function Ss(e = {}) {
1077
1077
  return u && m && y.state.next(L), u ? L : {};
1078
1078
  }, _ = (r, n, o, h) => {
1079
1079
  const m = f(t.errors, r), u = v.isValid && de(n) && t.isValid !== n;
1080
- if (e.delayError && o ? (A = q(() => j(r, o)), A(e.delayError)) : (clearTimeout(N), A = null, o ? R(t.errors, r, o) : Y(t.errors, r)), (o ? !be(m, o) : m) || !ae(h) || u) {
1080
+ if (e.delayError && o ? (A = q(() => j(r, o)), A(e.delayError)) : (clearTimeout(S), A = null, o ? R(t.errors, r, o) : Y(t.errors, r)), (o ? !be(m, o) : m) || !ae(h) || u) {
1081
1081
  const b = {
1082
1082
  ...h,
1083
1083
  ...u && de(n) ? { isValid: n } : {},
@@ -1091,7 +1091,7 @@ function Ss(e = {}) {
1091
1091
  }
1092
1092
  }, Q = async (r) => {
1093
1093
  W(r, !0);
1094
- const n = await s.resolver(i, s.context, xs(r || p.mount, a, s.criteriaMode, s.shouldUseNativeValidation));
1094
+ const n = await s.resolver(i, s.context, ws(r || p.mount, a, s.criteriaMode, s.shouldUseNativeValidation));
1095
1095
  return W(r), n;
1096
1096
  }, V = async (r) => {
1097
1097
  const { errors: n } = await Q(r);
@@ -1113,7 +1113,7 @@ function Ss(e = {}) {
1113
1113
  if (u) {
1114
1114
  const L = p.array.has(u.name);
1115
1115
  W([h], !0);
1116
- const H = await Nt(m, i, S, s.shouldUseNativeValidation && !n, L);
1116
+ const H = await St(m, i, k, s.shouldUseNativeValidation && !n, L);
1117
1117
  if (W([h]), H[u.name] && (o.valid = !1, n))
1118
1118
  break;
1119
1119
  !n && (f(H, u.name) ? L ? vs(t.errors, H, u.name) : R(t.errors, u.name, H[u.name]) : Y(t.errors, u.name));
@@ -1128,7 +1128,7 @@ function Ss(e = {}) {
1128
1128
  n && (n._f.refs ? n._f.refs.every((o) => !$e(o)) : !$e(n._f.ref)) && Ge(r);
1129
1129
  }
1130
1130
  p.unMount = /* @__PURE__ */ new Set();
1131
- }, g = (r, n) => (r && n && R(i, r, n), !be(Ve(), l)), w = (r, n, o) => Ot(r, p, {
1131
+ }, g = (r, n) => (r && n && R(i, r, n), !be(Ve(), l)), x = (r, n, o) => Ot(r, p, {
1132
1132
  ...c.mount ? i : U(n) ? l : ue(r) ? { [r]: n } : n
1133
1133
  }, o, n), E = (r) => Ue(f(c.mount ? i : l, r, e.shouldUnregister ? f(l, r, []) : [])), B = (r, n, o = {}) => {
1134
1134
  const h = f(a, r);
@@ -1155,7 +1155,7 @@ function Ss(e = {}) {
1155
1155
  name: r,
1156
1156
  dirtyFields: Le(l, i),
1157
1157
  isDirty: g(r, u)
1158
- })) : h && !h._f && !se(u) ? ee(r, u, o) : B(r, u, o), wt(r, p) && y.state.next({ ...t }), y.values.next({
1158
+ })) : h && !h._f && !se(u) ? ee(r, u, o) : B(r, u, o), xt(r, p) && y.state.next({ ...t }), y.values.next({
1159
1159
  name: c.mount ? r : void 0,
1160
1160
  values: { ...i }
1161
1161
  });
@@ -1168,23 +1168,23 @@ function Ss(e = {}) {
1168
1168
  };
1169
1169
  if (m) {
1170
1170
  let L, H;
1171
- const ne = u(), we = r.type === Me.BLUR || r.type === Me.FOCUS_OUT, Jt = !As(m._f) && !s.resolver && !f(t.errors, o) && !m._f.deps || Cs(we, f(t.touchedFields, o), t.isSubmitted, M, T), Je = wt(o, p, we);
1172
- R(i, o, ne), we ? (m._f.onBlur && m._f.onBlur(r), A && A(0)) : m._f.onChange && m._f.onChange(r);
1173
- const Ye = Z(o, ne, we, !1), Yt = !ae(Ye) || Je;
1174
- if (!we && y.values.next({
1171
+ const ne = u(), xe = r.type === Me.BLUR || r.type === Me.FOCUS_OUT, Jt = !As(m._f) && !s.resolver && !f(t.errors, o) && !m._f.deps || Cs(xe, f(t.touchedFields, o), t.isSubmitted, M, T), Je = xt(o, p, xe);
1172
+ R(i, o, ne), xe ? (m._f.onBlur && m._f.onBlur(r), A && A(0)) : m._f.onChange && m._f.onChange(r);
1173
+ const Ye = Z(o, ne, xe, !1), Yt = !ae(Ye) || Je;
1174
+ if (!xe && y.values.next({
1175
1175
  name: o,
1176
1176
  type: r.type,
1177
1177
  values: { ...i }
1178
1178
  }), Jt)
1179
1179
  return v.isValid && I(), Yt && y.state.next({ name: o, ...Je ? {} : Ye });
1180
- if (!we && Je && y.state.next({ ...t }), s.resolver) {
1180
+ if (!xe && Je && y.state.next({ ...t }), s.resolver) {
1181
1181
  const { errors: pt } = await Q([o]);
1182
1182
  if (b(ne), h) {
1183
- const Kt = St(t.errors, a, o), ht = St(pt, a, Kt.name || o);
1183
+ const Kt = kt(t.errors, a, o), ht = kt(pt, a, Kt.name || o);
1184
1184
  L = ht.error, o = ht.name, H = ae(pt);
1185
1185
  }
1186
1186
  } else
1187
- W([o], !0), L = (await Nt(m, i, S, s.shouldUseNativeValidation))[o], W([o]), b(ne), h && (L ? H = !1 : v.isValid && (H = await C(a, !0)));
1187
+ W([o], !0), L = (await St(m, i, k, s.shouldUseNativeValidation))[o], W([o]), b(ne), h && (L ? H = !1 : v.isValid && (H = await C(a, !0)));
1188
1188
  h && (m._f.deps && ge(m._f.deps), _(o, H, L, Ye));
1189
1189
  }
1190
1190
  }, ce = (r, n) => {
@@ -1233,8 +1233,8 @@ function Ss(e = {}) {
1233
1233
  isValid: !1
1234
1234
  }), o && o.shouldFocus && h && h.focus && h.focus();
1235
1235
  }, Ut = (r, n) => he(r) ? y.values.subscribe({
1236
- next: (o) => r(w(void 0, n), o)
1237
- }) : w(r, n, !0), Ge = (r, n = {}) => {
1236
+ next: (o) => r(x(void 0, n), o)
1237
+ }) : x(r, n, !0), Ge = (r, n = {}) => {
1238
1238
  for (const o of r ? Pe(r) : p.mount)
1239
1239
  p.mount.delete(o), p.array.delete(o), n.keepValue || (Y(a, o), Y(i, o)), !n.keepError && Y(t.errors, o), !n.keepDirty && Y(t.dirtyFields, o), !n.keepTouched && Y(t.touchedFields, o), !n.keepIsValidating && Y(t.validatingFields, o), !s.shouldUnregister && !n.keepDefaultValue && Y(l, o);
1240
1240
  y.values.next({
@@ -1264,15 +1264,15 @@ function Ss(e = {}) {
1264
1264
  disabled: n.disabled,
1265
1265
  name: r,
1266
1266
  value: n.value
1267
- }) : x(r, !0, n.value), {
1267
+ }) : w(r, !0, n.value), {
1268
1268
  ...h ? { disabled: n.disabled } : {},
1269
1269
  ...s.progressive ? {
1270
1270
  required: !!n.required,
1271
- min: ke(n.min),
1272
- max: ke(n.max),
1273
- minLength: ke(n.minLength),
1274
- maxLength: ke(n.maxLength),
1275
- pattern: ke(n.pattern)
1271
+ min: Ne(n.min),
1272
+ max: Ne(n.max),
1273
+ minLength: Ne(n.minLength),
1274
+ maxLength: Ne(n.maxLength),
1275
+ pattern: Ne(n.pattern)
1276
1276
  } : {},
1277
1277
  name: r,
1278
1278
  onChange: ye,
@@ -1280,7 +1280,7 @@ function Ss(e = {}) {
1280
1280
  ref: (m) => {
1281
1281
  if (m) {
1282
1282
  He(r, n), o = f(a, r);
1283
- const u = U(m.value) && m.querySelectorAll && m.querySelectorAll("input,select,textarea")[0] || m, b = ws(u), L = o._f.refs || [];
1283
+ const u = U(m.value) && m.querySelectorAll && m.querySelectorAll("input,select,textarea")[0] || m, b = xs(u), L = o._f.refs || [];
1284
1284
  if (b ? L.find((H) => H === u) : u === o._f.ref)
1285
1285
  return;
1286
1286
  R(a, r, {
@@ -1295,7 +1295,7 @@ function Ss(e = {}) {
1295
1295
  ref: { type: u.type, name: r }
1296
1296
  } : { ref: u }
1297
1297
  }
1298
- }), x(r, !1, void 0, u);
1298
+ }), w(r, !1, void 0, u);
1299
1299
  } else
1300
1300
  o = f(a, r, {}), o._f && (o._f.mount = !1), (s.shouldUnregister || n.shouldUnregister) && !(Vt(p.array, r) && c.action) && p.unMount.add(r);
1301
1301
  }
@@ -1394,7 +1394,7 @@ function Ss(e = {}) {
1394
1394
  handleSubmit: ut,
1395
1395
  setError: Fe,
1396
1396
  _executeSchema: Q,
1397
- _getWatch: w,
1397
+ _getWatch: x,
1398
1398
  _getDirty: g,
1399
1399
  _updateValid: I,
1400
1400
  _removeUnmounted: D,
@@ -1493,7 +1493,7 @@ function Ps(e = {}) {
1493
1493
  defaultValues: he(e.defaultValues) ? void 0 : e.defaultValues
1494
1494
  });
1495
1495
  s.current || (s.current = {
1496
- ...Ss(e),
1496
+ ...ks(e),
1497
1497
  formState: a
1498
1498
  });
1499
1499
  const i = s.current.control;
@@ -1531,12 +1531,12 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1531
1531
  isTextArea: c,
1532
1532
  telegramLink: p = "https://t.me/stone_developer",
1533
1533
  isRequiredPhone: A = !0,
1534
- isRequiredEmail: N = !1,
1534
+ isRequiredEmail: S = !1,
1535
1535
  isRequiredPhoneOrEmail: v,
1536
1536
  textAreaPlaceholder: y,
1537
1537
  subTitle: T,
1538
1538
  submitHandler: M,
1539
- modalWidth: S = "442px",
1539
+ modalWidth: k = "442px",
1540
1540
  rowsTextArea: q = 2,
1541
1541
  advCheckBox: I = { text: Is, isRequired: !0 },
1542
1542
  isAdvCheckBox: W,
@@ -1545,16 +1545,16 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1545
1545
  telegramClickHandler: X = () => null
1546
1546
  }) => {
1547
1547
  const {
1548
- register: x,
1548
+ register: w,
1549
1549
  handleSubmit: Z,
1550
1550
  reset: _,
1551
1551
  control: Q,
1552
1552
  watch: V,
1553
1553
  formState: { errors: C }
1554
- } = Ps(), D = !!V("email"), { isMobile: g, currentClientWidth: w } = Ie(), E = V("personalCheckBox"), B = V("advCheckBox"), ee = ($) => {
1554
+ } = Ps(), D = !!V("email"), { isMobile: g, currentClientWidth: x } = Ie(), E = V("personalCheckBox"), B = V("advCheckBox"), ee = ($) => {
1555
1555
  M($), _();
1556
1556
  };
1557
- return w ? /* @__PURE__ */ d(
1557
+ return x ? /* @__PURE__ */ d(
1558
1558
  rt,
1559
1559
  {
1560
1560
  additionalClass: re.modal,
@@ -1564,11 +1564,11 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1564
1564
  isTransparentBack: !0,
1565
1565
  emitIsOpen: () => s(!1),
1566
1566
  opacity: 0.7,
1567
- children: /* @__PURE__ */ k(
1567
+ children: /* @__PURE__ */ N(
1568
1568
  "div",
1569
1569
  {
1570
1570
  className: re.root,
1571
- style: { width: g ? "100%" : S },
1571
+ style: { width: g ? "100%" : k },
1572
1572
  "data-testid": "modal_window",
1573
1573
  children: [
1574
1574
  /* @__PURE__ */ d(
@@ -1578,7 +1578,7 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1578
1578
  dangerouslySetInnerHTML: { __html: a ?? "Оставить обращение" }
1579
1579
  }
1580
1580
  ),
1581
- t && /* @__PURE__ */ k("div", { className: re.telegramWrapper, children: [
1581
+ t && /* @__PURE__ */ N("div", { className: re.telegramWrapper, children: [
1582
1582
  /* @__PURE__ */ d(
1583
1583
  "a",
1584
1584
  {
@@ -1586,7 +1586,7 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1586
1586
  href: p,
1587
1587
  target: "_blank",
1588
1588
  "data-testid": "modal_telegram_link",
1589
- children: /* @__PURE__ */ k(
1589
+ children: /* @__PURE__ */ N(
1590
1590
  "div",
1591
1591
  {
1592
1592
  className: re.telegram,
@@ -1610,8 +1610,8 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1610
1610
  }
1611
1611
  }
1612
1612
  ),
1613
- /* @__PURE__ */ k("form", { onSubmit: Z(ee), children: [
1614
- /* @__PURE__ */ k($t, { className: re.inputWrapper, children: [
1613
+ /* @__PURE__ */ N("form", { onSubmit: Z(ee), children: [
1614
+ /* @__PURE__ */ N($t, { className: re.inputWrapper, children: [
1615
1615
  /* @__PURE__ */ d(
1616
1616
  Ke,
1617
1617
  {
@@ -1620,7 +1620,7 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1620
1620
  variant: "light",
1621
1621
  placeholder: "Введите имя",
1622
1622
  "data-testid": "modal_name",
1623
- ...x("name", { required: !0, pattern: rr }),
1623
+ ...w("name", { required: !0, pattern: rr }),
1624
1624
  error: !!C.name
1625
1625
  }
1626
1626
  ),
@@ -1630,7 +1630,7 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1630
1630
  name: "phone",
1631
1631
  control: Q,
1632
1632
  rules: {
1633
- required: N || A || v && !D,
1633
+ required: S || A || v && !D,
1634
1634
  pattern: { value: sr, message: "" }
1635
1635
  },
1636
1636
  defaultValue: "",
@@ -1658,8 +1658,8 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1658
1658
  variant: "light",
1659
1659
  placeholder: "Введите email",
1660
1660
  "data-testid": "modal_email",
1661
- ...x("email", {
1662
- required: N || v && !D,
1661
+ ...w("email", {
1662
+ required: S || v && !D,
1663
1663
  pattern: ir
1664
1664
  }),
1665
1665
  error: !!C.email
@@ -1672,7 +1672,7 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1672
1672
  placeholder: y,
1673
1673
  rows: q,
1674
1674
  width: "full",
1675
- ...x("textarea")
1675
+ ...w("textarea")
1676
1676
  }
1677
1677
  ),
1678
1678
  I && !t && W && /* @__PURE__ */ d(
@@ -1682,18 +1682,18 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1682
1682
  isChecked: B,
1683
1683
  error: !!C.advCheckBox,
1684
1684
  text: I.text,
1685
- ...x("advCheckBox", { required: I == null ? void 0 : I.isRequired })
1685
+ ...w("advCheckBox", { required: I == null ? void 0 : I.isRequired })
1686
1686
  }
1687
1687
  ),
1688
- /* @__PURE__ */ k(
1688
+ /* @__PURE__ */ N(
1689
1689
  vt,
1690
1690
  {
1691
1691
  "data-testid": "modal_personalCheckBox",
1692
1692
  isChecked: E,
1693
1693
  error: !!C.personalCheckBox,
1694
- ...x("personalCheckBox", { required: !t }),
1694
+ ...w("personalCheckBox", { required: !t }),
1695
1695
  children: [
1696
- t && /* @__PURE__ */ k("div", { children: [
1696
+ t && /* @__PURE__ */ N("div", { children: [
1697
1697
  "Согласен(-на)",
1698
1698
  " ",
1699
1699
  /* @__PURE__ */ d(
@@ -1707,7 +1707,7 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1707
1707
  " ",
1708
1708
  "от Stone"
1709
1709
  ] }),
1710
- !t && /* @__PURE__ */ k("div", { children: [
1710
+ !t && /* @__PURE__ */ N("div", { children: [
1711
1711
  "Я принимаю условия",
1712
1712
  " ",
1713
1713
  /* @__PURE__ */ d(
@@ -1733,7 +1733,7 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1733
1733
  size: "large",
1734
1734
  as: "button",
1735
1735
  additionalClass: re.modalBtn,
1736
- disabled: !!C.name || !!C.phone && A || !!C.email && N || !!C.advCheckBox && (I == null ? void 0 : I.isRequired) || !!C.personalCheckBox && !t,
1736
+ disabled: !!C.name || !!C.phone && A || !!C.email && S || !!C.advCheckBox && (I == null ? void 0 : I.isRequired) || !!C.personalCheckBox && !t,
1737
1737
  children: "Отправить запрос"
1738
1738
  }
1739
1739
  )
@@ -1763,7 +1763,7 @@ const Ts = Ze.bind(re), Is = "Я принимаю условия Политик
1763
1763
  )
1764
1764
  }
1765
1765
  ) : null;
1766
- }, Es = "_root_7kbqy_1", Vs = "_filterWithSaveModal_7kbqy_15", Ds = "_modalAddBody_7kbqy_20", Bs = "_closeBtn_7kbqy_29", Ws = "_btnName_7kbqy_35", Ls = "_modalTitle_7kbqy_39", Os = "_tabSWitcherWrapper_7kbqy_48", js = "_switcherTitle_7kbqy_56", Ms = "_switcherScroll_7kbqy_63", Rs = "_tabs_7kbqy_72", zs = "_selectWrapper_7kbqy_77", Xs = "_filterOption_7kbqy_81", qs = "_btnWrapper_7kbqy_89", Zs = "_resetBtn_7kbqy_95", Us = "_saveBtn_7kbqy_96", Gs = "_desktopWrapper_7kbqy_100", Hs = "_desktopWrapperOpen_7kbqy_123", O = {
1766
+ }, Es = "_root_xq0de_1", Vs = "_filterWithSaveModal_xq0de_15", Ds = "_modalAddBody_xq0de_20", Bs = "_closeBtn_xq0de_29", Ws = "_btnName_xq0de_35", Ls = "_modalTitle_xq0de_39", Os = "_tabSWitcherWrapper_xq0de_48", js = "_switcherTitle_xq0de_56", Ms = "_switcherScroll_xq0de_63", Rs = "_tabs_xq0de_72", zs = "_selectWrapper_xq0de_77", Xs = "_filterOption_xq0de_81", qs = "_btnWrapper_xq0de_89", Zs = "_resetBtn_xq0de_95", Us = "_saveBtn_xq0de_96", Gs = "_desktopWrapper_xq0de_100", Hs = "_desktopWrapperOpen_xq0de_123", O = {
1767
1767
  root: Es,
1768
1768
  filterWithSaveModal: Vs,
1769
1769
  modalAddBody: Ds,
@@ -1830,13 +1830,13 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
1830
1830
  onSaveClick: p,
1831
1831
  onClearClick: A
1832
1832
  }) => {
1833
- const { isMobile: N } = Ie(), [v, y] = Ae(!1), T = Pt(null), [M, S] = Ae(e), [q] = Ae(s), [I, W] = Ae(M), [F, j] = Ae(q), X = (V) => {
1833
+ const { isMobile: S } = Ie(), [v, y] = Ae(!1), T = Pt(null), [M, k] = Ae(e), [q] = Ae(s), [I, W] = Ae(M), [F, j] = Ae(q), X = (V) => {
1834
1834
  if (t && t(V), a.some((D) => D.value === V.value))
1835
1835
  return;
1836
1836
  const C = F.some((D) => D.value === V.value) ? F.filter((D) => D.value !== V.value) : [...F, V];
1837
1837
  j(C);
1838
- }, x = () => {
1839
- S(l), W(l), j([]), A(), i && (i([]), c == null || c(l));
1838
+ }, w = () => {
1839
+ k(l), W(l), j([]), A(), i && (i([]), c == null || c(l));
1840
1840
  }, Z = () => {
1841
1841
  j(s), W(e);
1842
1842
  }, _ = () => {
@@ -1857,8 +1857,8 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
1857
1857
  document.removeEventListener("click", V);
1858
1858
  };
1859
1859
  }, [v]), {
1860
- isMobile: N,
1861
- handleClearClick: x,
1860
+ isMobile: S,
1861
+ handleClearClick: w,
1862
1862
  handleCloseModal: _,
1863
1863
  handleOptionClick: X,
1864
1864
  handleSaveClick: Q,
@@ -1880,21 +1880,21 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
1880
1880
  setSelectedTabs: c,
1881
1881
  selectedTabs: p,
1882
1882
  onClickItem: A,
1883
- onCLickSelect: N,
1883
+ onCLickSelect: S,
1884
1884
  onSaveClick: v = () => null,
1885
1885
  onClearClick: y = () => null,
1886
1886
  onTabClick: T = () => null,
1887
1887
  btnName: M = "Фильтр"
1888
1888
  }) => {
1889
1889
  const {
1890
- handleCloseModal: S,
1890
+ handleCloseModal: k,
1891
1891
  localSelectedTabs: q,
1892
1892
  selectedOptions: I,
1893
1893
  isMobile: W,
1894
1894
  handleOptionClick: F,
1895
1895
  handleClearClick: j,
1896
1896
  handleSaveClick: X,
1897
- isModalOpen: x,
1897
+ isModalOpen: w,
1898
1898
  setLocalSelectedTabs: Z,
1899
1899
  setIsModalOpen: _,
1900
1900
  containerRef: Q
@@ -1908,13 +1908,13 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
1908
1908
  selectedValues: i,
1909
1909
  onSaveClick: v,
1910
1910
  onClearClick: y
1911
- }), V = () => /* @__PURE__ */ k(Se, { children: [
1911
+ }), V = () => /* @__PURE__ */ N(ke, { children: [
1912
1912
  /* @__PURE__ */ d(
1913
1913
  "div",
1914
1914
  {
1915
1915
  className: O.closeBtn,
1916
1916
  onClick: () => {
1917
- S();
1917
+ k();
1918
1918
  },
1919
1919
  children: /* @__PURE__ */ d(
1920
1920
  me,
@@ -1926,7 +1926,7 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
1926
1926
  }
1927
1927
  ),
1928
1928
  /* @__PURE__ */ d("div", { className: O.modalTitle, children: "Фильтры" }),
1929
- /* @__PURE__ */ k("div", { className: O.tabSWitcherWrapper, children: [
1929
+ /* @__PURE__ */ N("div", { className: O.tabSWitcherWrapper, children: [
1930
1930
  /* @__PURE__ */ d("div", { className: O.switcherTitle, children: "Готовность" }),
1931
1931
  /* @__PURE__ */ d("div", { className: O.switcherScroll, children: /* @__PURE__ */ d(
1932
1932
  Be,
@@ -1935,7 +1935,7 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
1935
1935
  addClassName: O.tabs,
1936
1936
  isApart: !0,
1937
1937
  children: s == null ? void 0 : s.map((C, D) => {
1938
- var w;
1938
+ var x;
1939
1939
  const g = C.value;
1940
1940
  return /* @__PURE__ */ d(
1941
1941
  Be.Item,
@@ -1946,7 +1946,7 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
1946
1946
  value: g,
1947
1947
  onClick: () => {
1948
1948
  },
1949
- checked: ((w = q == null ? void 0 : q.find((E) => E.value === g)) == null ? void 0 : w.state) ?? !1,
1949
+ checked: ((x = q == null ? void 0 : q.find((E) => E.value === g)) == null ? void 0 : x.state) ?? !1,
1950
1950
  onChange: () => {
1951
1951
  Z == null || Z(
1952
1952
  (E) => E.map((B) => B.value === g ? { ...B, state: !B.state } : B)
@@ -1974,7 +1974,7 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
1974
1974
  },
1975
1975
  D
1976
1976
  )) }),
1977
- /* @__PURE__ */ k("div", { className: O.btnWrapper, children: [
1977
+ /* @__PURE__ */ N("div", { className: O.btnWrapper, children: [
1978
1978
  /* @__PURE__ */ d(
1979
1979
  pe,
1980
1980
  {
@@ -1996,14 +1996,14 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
1996
1996
  )
1997
1997
  ] })
1998
1998
  ] });
1999
- return /* @__PURE__ */ k(Se, { children: [
2000
- /* @__PURE__ */ k("div", { style: { position: "relative" }, children: [
2001
- /* @__PURE__ */ k(
1999
+ return /* @__PURE__ */ N(ke, { children: [
2000
+ /* @__PURE__ */ N("div", { style: { position: "relative" }, children: [
2001
+ /* @__PURE__ */ N(
2002
2002
  "div",
2003
2003
  {
2004
2004
  className: O.root,
2005
2005
  onClick: () => {
2006
- N && N(), l && l(), W ? _((C) => !C) : x || _(!0);
2006
+ S && S(), l && l(), W ? _((C) => !C) : w || _(!0);
2007
2007
  },
2008
2008
  children: [
2009
2009
  /* @__PURE__ */ d("div", { className: O.btnName, children: M }),
@@ -2017,18 +2017,18 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
2017
2017
  ]
2018
2018
  }
2019
2019
  ),
2020
- !W && /* @__PURE__ */ k(
2020
+ !W && /* @__PURE__ */ N(
2021
2021
  "div",
2022
2022
  {
2023
2023
  ref: Q,
2024
- className: _s(O.desktopWrapper, { [O.desktopWrapperOpen]: x }),
2024
+ className: _s(O.desktopWrapper, { [O.desktopWrapperOpen]: w }),
2025
2025
  children: [
2026
2026
  /* @__PURE__ */ d(
2027
2027
  "div",
2028
2028
  {
2029
2029
  className: O.closeBtn,
2030
2030
  onClick: () => {
2031
- S();
2031
+ k();
2032
2032
  },
2033
2033
  children: /* @__PURE__ */ d(
2034
2034
  me,
@@ -2040,7 +2040,7 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
2040
2040
  }
2041
2041
  ),
2042
2042
  /* @__PURE__ */ d("div", { className: O.modalTitle, children: "Фильтры" }),
2043
- /* @__PURE__ */ k("div", { className: O.tabSWitcherWrapper, children: [
2043
+ /* @__PURE__ */ N("div", { className: O.tabSWitcherWrapper, children: [
2044
2044
  /* @__PURE__ */ d("div", { className: O.switcherTitle, children: "Готовность" }),
2045
2045
  /* @__PURE__ */ d("div", { className: O.switcherScroll, children: /* @__PURE__ */ d(
2046
2046
  Be,
@@ -2049,7 +2049,7 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
2049
2049
  addClassName: O.tabs,
2050
2050
  isApart: !0,
2051
2051
  children: s == null ? void 0 : s.map((C, D) => {
2052
- var w;
2052
+ var x;
2053
2053
  const g = C.value;
2054
2054
  return /* @__PURE__ */ d(
2055
2055
  Be.Item,
@@ -2059,7 +2059,7 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
2059
2059
  mini: !0,
2060
2060
  value: g,
2061
2061
  onClick: () => T(),
2062
- checked: ((w = q == null ? void 0 : q.find((E) => E.value === g)) == null ? void 0 : w.state) ?? !1,
2062
+ checked: ((x = q == null ? void 0 : q.find((E) => E.value === g)) == null ? void 0 : x.state) ?? !1,
2063
2063
  onChange: () => {
2064
2064
  Z == null || Z(
2065
2065
  (E) => E.map((B) => B.value === g ? { ...B, state: !B.state } : B)
@@ -2088,7 +2088,7 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
2088
2088
  },
2089
2089
  D
2090
2090
  )) }),
2091
- /* @__PURE__ */ k("div", { className: O.btnWrapper, children: [
2091
+ /* @__PURE__ */ N("div", { className: O.btnWrapper, children: [
2092
2092
  /* @__PURE__ */ d(
2093
2093
  pe,
2094
2094
  {
@@ -2116,7 +2116,7 @@ const Ys = /* @__PURE__ */ Qt(Js), Ks = ({
2116
2116
  W && /* @__PURE__ */ d(
2117
2117
  rt,
2118
2118
  {
2119
- isOpen: x,
2119
+ isOpen: w,
2120
2120
  emitIsOpen: _,
2121
2121
  isTransparentBack: !0,
2122
2122
  additionalClassModalBody: O.modalAddBody,