stone-kit 0.0.871 → 0.0.872

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.
@@ -80,41 +80,41 @@ const ar = "_root_14gc5_1", or = "_text_14gc5_18", cr = "_textMini_14gc5_26", dr
80
80
  children: i,
81
81
  addItemClassName: c,
82
82
  addLabelClassname: m,
83
- addTextClass: A,
84
- size_s: w = "large",
83
+ addTextClass: k,
84
+ size_s: x = "large",
85
85
  size_m: g,
86
86
  size_l: y,
87
87
  disabled: V = !1,
88
- itemsLength: O = 0,
88
+ itemsLength: R = 0,
89
89
  isLongOn: P = !0,
90
90
  width: j,
91
91
  width_m: S,
92
- width_l: R,
92
+ width_l: L,
93
93
  mini: F = !1,
94
- ...E
95
- } = e, L = (i != null && i.toString().length ? (i == null ? void 0 : i.toString().length) > 2 : !1) && P, k = (H, X) => H && S ? S : X && R ? R : j, z = !j && !S && !R && L;
96
- return /* @__PURE__ */ N("label", { className: Ne(Y.labelItem, { [Y.isLong]: L }, m), children: [
94
+ ...D
95
+ } = e, z = (i != null && i.toString().length ? (i == null ? void 0 : i.toString().length) > 2 : !1) && P, w = (J, X) => J && S ? S : X && L ? L : j, W = !j && !S && !L && z;
96
+ return /* @__PURE__ */ N("label", { className: Ne(Y.labelItem, { [Y.isLong]: z }, m), children: [
97
97
  /* @__PURE__ */ d(
98
98
  "input",
99
99
  {
100
100
  ref: r,
101
101
  type: "checkbox",
102
- ...E,
102
+ ...D,
103
103
  disabled: V
104
104
  }
105
105
  ),
106
106
  /* @__PURE__ */ d(
107
107
  "div",
108
108
  {
109
- style: { width: k(t, n) },
109
+ style: { width: w(t, n) },
110
110
  className: Ne(
111
111
  Ne(
112
112
  Y.item,
113
113
  { [Y.firstItem]: a === 0 },
114
- { [Y.lastItem]: a === O - 1 },
114
+ { [Y.lastItem]: a === R - 1 },
115
115
  { [Y.isDisabled]: V },
116
- { [Y.autoWidth]: z },
117
- Y[`${w}-size`],
116
+ { [Y.autoWidth]: W },
117
+ Y[`${x}-size`],
118
118
  Y[`${g}-size_m`],
119
119
  Y[`${y}-size_l`],
120
120
  { [Y.mini]: F }
@@ -126,11 +126,11 @@ const ar = "_root_14gc5_1", or = "_text_14gc5_18", cr = "_textMini_14gc5_26", dr
126
126
  {
127
127
  className: Ne(
128
128
  Y.text,
129
- Y[`text-${w}-size`],
129
+ Y[`text-${x}-size`],
130
130
  Y[`text-${g}-size_m`],
131
131
  Y[`text-${y}-size_l`],
132
132
  { [Y.textMini]: F },
133
- A
133
+ k
134
134
  ),
135
135
  children: i
136
136
  }
@@ -182,41 +182,41 @@ const Oe = Object.assign(Ar, { Item: Tt }), kr = "_root_nl7sm_1", Cr = "_lotBtn_
182
182
  floor: i,
183
183
  endFloor: c,
184
184
  floorsNumber: m,
185
- type: A,
186
- isCorner: w,
185
+ type: k,
186
+ isCorner: x,
187
187
  windowViews: g,
188
188
  subTypeName: y,
189
189
  number: V,
190
- bedroomsCount: O,
190
+ bedroomsCount: R,
191
191
  mortgageMonthlyPayment: P
192
- } = e, [j, S] = ve(!1), R = t === 2, F = n === 1, E = A === 11, L = a + " м²", k = (c && c !== i ? i + "-" + c : i) + " из " + m, z = ir({ ...e }), { isTablet: H, isDesktop: X, currentClientWidth: T } = Ve(), D = typeof r < "u" ? r : X || H, Z = () => E ? "Кол-во этажей: " + m : "Этаж: " + k, b = () => E ? /* @__PURE__ */ N(Pe, { children: [
192
+ } = e, [j, S] = ve(!1), L = t === 2, F = n === 1, D = k === 11, z = a + " м²", w = (c && c !== i ? i + "-" + c : i) + " из " + m, W = ir({ ...e }), { isTablet: J, isDesktop: X, currentClientWidth: E } = Ve(), B = typeof r < "u" ? r : X || J, Z = () => D ? "Кол-во этажей: " + m : "Этаж: " + w, b = () => D ? /* @__PURE__ */ N(Pe, { children: [
193
193
  /* @__PURE__ */ d("div", { children: "Количество этажей" }),
194
194
  /* @__PURE__ */ d("div", { children: m })
195
195
  ] }) : /* @__PURE__ */ N(Pe, { children: [
196
196
  /* @__PURE__ */ d("div", { children: "Этаж" }),
197
- /* @__PURE__ */ d("div", { children: k })
198
- ] }), x = () => {
199
- if (A === 3) {
200
- let B = 0;
197
+ /* @__PURE__ */ d("div", { children: w })
198
+ ] }), A = () => {
199
+ if (k === 3) {
200
+ let T = 0;
201
201
  const K = X ? 38 : 28, G = [], re = [];
202
- if (w) {
203
- const J = "Угловая";
204
- if (B + J.length <= K)
205
- G.push(J), B += J.length;
202
+ if (x) {
203
+ const H = "Угловая";
204
+ if (T + H.length <= K)
205
+ G.push(H), T += H.length;
206
206
  else
207
207
  return G;
208
208
  }
209
209
  if (g)
210
- for (const J of g)
211
- B + J.length <= K ? (G.push(J), B += J.length) : re.push(J);
210
+ for (const H of g)
211
+ T + H.length <= K ? (G.push(H), T += H.length) : re.push(H);
212
212
  return /* @__PURE__ */ N("div", { className: I.retailSnippets, children: [
213
- /* @__PURE__ */ d("ul", { className: I.shownSnippets, children: G == null ? void 0 : G.map((J, oe) => /* @__PURE__ */ d("li", { children: J }, oe)) }),
213
+ /* @__PURE__ */ d("ul", { className: I.shownSnippets, children: G == null ? void 0 : G.map((H, oe) => /* @__PURE__ */ d("li", { children: H }, oe)) }),
214
214
  (re == null ? void 0 : re.length) > 0 && /* @__PURE__ */ N(
215
215
  "div",
216
216
  {
217
217
  className: Re(I.addSnippets, { [I.addSnippetsActive]: j }),
218
- onClick: (J) => {
219
- X || (J.stopPropagation(), J.preventDefault(), S((oe) => !oe));
218
+ onClick: (H) => {
219
+ X || (H.stopPropagation(), H.preventDefault(), S((oe) => !oe));
220
220
  },
221
221
  onMouseEnter: () => {
222
222
  X && S(!0);
@@ -227,7 +227,7 @@ const Oe = Object.assign(Ar, { Item: Tt }), kr = "_root_nl7sm_1", Cr = "_lotBtn_
227
227
  children: [
228
228
  "+" + (re == null ? void 0 : re.length),
229
229
  j && /* @__PURE__ */ N("ul", { className: I.addSnippetsList, children: [
230
- re.map((J, oe) => /* @__PURE__ */ d("li", { children: J }, oe)),
230
+ re.map((H, oe) => /* @__PURE__ */ d("li", { children: H }, oe)),
231
231
  /* @__PURE__ */ d("div", { className: I.closeSnippetBtn, children: /* @__PURE__ */ d(
232
232
  pe,
233
233
  {
@@ -242,45 +242,45 @@ const Oe = Object.assign(Ar, { Item: Tt }), kr = "_root_nl7sm_1", Cr = "_lotBtn_
242
242
  )
243
243
  ] });
244
244
  }
245
- return /* @__PURE__ */ d("div", { className: I.snippets, children: z.map((B, K) => {
246
- const G = K === z.length - 1;
245
+ return /* @__PURE__ */ d("div", { className: I.snippets, children: W.map((T, K) => {
246
+ const G = K === W.length - 1;
247
247
  return /* @__PURE__ */ d(
248
248
  "div",
249
249
  {
250
250
  className: Re(I.snippet, G ? "" : I.snippetLast),
251
- children: B.text
251
+ children: T.text
252
252
  },
253
253
  K
254
254
  );
255
255
  }) });
256
256
  };
257
257
  return {
258
- currentClientWidth: T,
259
- isBuilding: E,
258
+ currentClientWidth: E,
259
+ isBuilding: D,
260
260
  LotCardInfo: () => /* @__PURE__ */ N(Pe, { children: [
261
261
  /* @__PURE__ */ N("div", { className: Re(I.monthlyWrapper), children: [
262
262
  /* @__PURE__ */ d(
263
263
  it,
264
264
  {
265
265
  className: Re(I.infoHeader),
266
- html: `${F && A ? y : nr(O)}${E ? "" : `, ${V}`}`
266
+ html: `${F && k ? y : nr(R)}${D ? "" : `, ${V}`}`
267
267
  }
268
268
  ),
269
269
  P && /* @__PURE__ */ d("div", { className: I.monthlyPayment, children: lr(P) })
270
270
  ] }),
271
- /* @__PURE__ */ d(x, {})
271
+ /* @__PURE__ */ d(A, {})
272
272
  ] }),
273
- tagFeatures: z,
273
+ tagFeatures: W,
274
274
  FloorByType: b,
275
- isTablet: H,
275
+ isTablet: J,
276
276
  isDesktop: X,
277
277
  getFloorStr: Z,
278
- isReserved: R,
279
- areaStr: L,
280
- floorStr: k,
278
+ isReserved: L,
279
+ areaStr: z,
280
+ floorStr: w,
281
281
  isShowSnippet: j,
282
282
  setIsShowSnippet: S,
283
- rowConditionsVar: D
283
+ rowConditionsVar: B
284
284
  };
285
285
  }, ne = Ee.bind(I), Zi = ({
286
286
  lot: e,
@@ -291,69 +291,69 @@ const Oe = Object.assign(Ar, { Item: Tt }), kr = "_root_nl7sm_1", Cr = "_lotBtn_
291
291
  btnName: i = "Уточнить детали",
292
292
  imgNode: c,
293
293
  rowConditions: m,
294
- addClassnameLotImage: A
294
+ addClassnameLotImage: k
295
295
  }) => {
296
296
  const {
297
- housing: w,
297
+ housing: x,
298
298
  sellingPricePerMeter: g,
299
299
  interiorPlanImg: y,
300
300
  direction: V,
301
- floorPlanImg: O,
301
+ floorPlanImg: R,
302
302
  discount: P,
303
303
  sellingPrice: j,
304
304
  sellingPriceBeforeDiscount: S
305
- } = e, {
306
- getFloorStr: R,
307
- FloorByType: F,
308
- areaStr: E,
309
- isReserved: L,
310
- rowConditionsVar: k,
311
- currentClientWidth: z,
312
- isBuilding: H,
313
- LotCardInfo: X
305
+ } = e, L = e.direction === 1 && e.type === 11 || (typeof e.beginFloor == "number" && typeof e.endFloor == "number" ? e.beginFloor !== e.endFloor : !1), {
306
+ getFloorStr: F,
307
+ FloorByType: D,
308
+ areaStr: z,
309
+ isReserved: w,
310
+ rowConditionsVar: W,
311
+ currentClientWidth: J,
312
+ isBuilding: X,
313
+ LotCardInfo: E
314
314
  } = is({ lot: e, rowConditions: m });
315
- return z ? /* @__PURE__ */ N(
315
+ return J ? /* @__PURE__ */ N(
316
316
  "div",
317
317
  {
318
318
  className: ne(I.root, a, {
319
- [I.rootDisable]: L,
320
- [I.rootRow]: k
319
+ [I.rootDisable]: w,
320
+ [I.rootRow]: W
321
321
  }),
322
322
  "data-testid": "lot_card",
323
323
  children: [
324
- !k && /* @__PURE__ */ d("div", { className: ne(I.title), children: /* @__PURE__ */ d(X, {}) }),
325
- /* @__PURE__ */ d("div", { className: ne(I.lotImageWrapper, A), children: c || /* @__PURE__ */ d(
324
+ !W && /* @__PURE__ */ d("div", { className: ne(I.title), children: /* @__PURE__ */ d(E, {}) }),
325
+ /* @__PURE__ */ d("div", { className: ne(I.lotImageWrapper, k), children: c || /* @__PURE__ */ d(
326
326
  "img",
327
327
  {
328
328
  loading: "lazy",
329
- src: y ?? O ?? ss,
329
+ src: y ?? R ?? ss,
330
330
  width: 280,
331
331
  height: 200,
332
332
  alt: ""
333
333
  }
334
334
  ) }),
335
335
  /* @__PURE__ */ N("div", { className: ne(I.lotInfoWrapper), children: [
336
- k && /* @__PURE__ */ d(X, {}),
336
+ W && /* @__PURE__ */ d(E, {}),
337
337
  /* @__PURE__ */ N("div", { className: ne(I.lotPropertyListDesktop), children: [
338
- /* @__PURE__ */ d(Me, { variant: "gray", children: E }),
339
- !H && /* @__PURE__ */ d(Me, { variant: "gray", children: w }),
340
- /* @__PURE__ */ d(Me, { variant: "gray", children: R() })
338
+ /* @__PURE__ */ d(Me, { variant: "gray", children: z }),
339
+ !X && /* @__PURE__ */ d(Me, { variant: "gray", children: x }),
340
+ /* @__PURE__ */ d(Me, { variant: "gray", children: F() })
341
341
  ] }),
342
342
  /* @__PURE__ */ N("ul", { className: ne(I.lotPropertyListMobile), children: [
343
343
  /* @__PURE__ */ N("li", { className: ne(I.lotPropertyItem), children: [
344
344
  /* @__PURE__ */ d("div", { children: "Площадь" }),
345
- /* @__PURE__ */ d("div", { children: E })
345
+ /* @__PURE__ */ d("div", { children: z })
346
346
  ] }),
347
- !H && /* @__PURE__ */ N("li", { className: ne(I.lotPropertyItem), children: [
348
- /* @__PURE__ */ d("div", { children: w == null ? void 0 : w.split(" ")[0] }),
349
- /* @__PURE__ */ d("div", { children: w == null ? void 0 : w.split(" ")[1] })
347
+ !X && /* @__PURE__ */ N("li", { className: ne(I.lotPropertyItem), children: [
348
+ /* @__PURE__ */ d("div", { children: x == null ? void 0 : x.split(" ")[0] }),
349
+ /* @__PURE__ */ d("div", { children: x == null ? void 0 : x.split(" ")[1] })
350
350
  ] }),
351
- /* @__PURE__ */ d("li", { className: ne(I.lotPropertyItem), children: /* @__PURE__ */ d(F, {}) })
351
+ /* @__PURE__ */ d("li", { className: ne(I.lotPropertyItem), children: /* @__PURE__ */ d(D, {}) })
352
352
  ] })
353
353
  ] }),
354
- /* @__PURE__ */ N("div", { className: ne(I.lotPriceWrapper, { [I.lotPriceWrapperRow]: !k }), children: [
355
- !L && /* @__PURE__ */ N("div", { className: I.discountWrapper, children: [
356
- P && j && S && /* @__PURE__ */ N("div", { className: ne(I.discountPrice), children: [
354
+ /* @__PURE__ */ N("div", { className: ne(I.lotPriceWrapper, { [I.lotPriceWrapperRow]: !W }), children: [
355
+ !w && /* @__PURE__ */ N("div", { className: I.discountWrapper, children: [
356
+ !L && P && j && S && /* @__PURE__ */ N("div", { className: ne(I.discountPrice), children: [
357
357
  /* @__PURE__ */ d("span", { children: $e(S ?? j, !1, V) }),
358
358
  /* @__PURE__ */ d(
359
359
  Me,
@@ -365,9 +365,10 @@ const Oe = Object.assign(Ar, { Item: Tt }), kr = "_root_nl7sm_1", Cr = "_lotBtn_
365
365
  }
366
366
  )
367
367
  ] }),
368
- /* @__PURE__ */ d("div", { children: $e(j, !1, V) })
368
+ !L && /* @__PURE__ */ d("div", { children: $e(j, !1, V) }),
369
+ L && /* @__PURE__ */ d("div", { children: "Цена по запросу" })
369
370
  ] }),
370
- g && !L && /* @__PURE__ */ d("div", { className: ne(I.lotPricePerMetr, I.projectLotPricePerMetr), children: $e(g, !0, V) }),
371
+ g && !w && /* @__PURE__ */ d("div", { className: ne(I.lotPricePerMetr, I.projectLotPricePerMetr), children: $e(g, !0, V) }),
371
372
  /* @__PURE__ */ N("div", { className: ne(I.btnWrapper), children: [
372
373
  /* @__PURE__ */ d(
373
374
  ye,
@@ -377,8 +378,8 @@ const Oe = Object.assign(Ar, { Item: Tt }), kr = "_root_nl7sm_1", Cr = "_lotBtn_
377
378
  disabled: n,
378
379
  variant: "whiteStroke",
379
380
  additionalClass: I.fullscreenBtn,
380
- onClick: (T) => {
381
- T.preventDefault(), t && t();
381
+ onClick: (B) => {
382
+ B.preventDefault(), t && t();
382
383
  },
383
384
  children: /* @__PURE__ */ d(
384
385
  pe,
@@ -395,12 +396,12 @@ const Oe = Object.assign(Ar, { Item: Tt }), kr = "_root_nl7sm_1", Cr = "_lotBtn_
395
396
  {
396
397
  as: "button",
397
398
  size: "medium",
398
- disabled: L,
399
- variant: L ? "gray" : "blue",
399
+ disabled: w,
400
+ variant: w ? "gray" : "blue",
400
401
  width: "full",
401
402
  additionalClass: I.lotBtn,
402
403
  "data-testid": "lot_form",
403
- post: L ? /* @__PURE__ */ d(
404
+ post: w ? /* @__PURE__ */ d(
404
405
  pe,
405
406
  {
406
407
  name: "lock",
@@ -408,8 +409,8 @@ const Oe = Object.assign(Ar, { Item: Tt }), kr = "_root_nl7sm_1", Cr = "_lotBtn_
408
409
  color: "#777E90"
409
410
  }
410
411
  ) : void 0,
411
- onClick: (T) => {
412
- T.preventDefault(), r(T);
412
+ onClick: (B) => {
413
+ B.preventDefault(), r(B);
413
414
  },
414
415
  children: i
415
416
  }
@@ -428,26 +429,26 @@ const Oe = Object.assign(Ar, { Item: Tt }), kr = "_root_nl7sm_1", Cr = "_lotBtn_
428
429
  additionalClass: i = "",
429
430
  onChange: c,
430
431
  onBlur: m,
431
- mini: A,
432
- openOnTop: w = !1,
432
+ mini: k,
433
+ openOnTop: x = !1,
433
434
  onClickItem: g,
434
435
  onCLickSelect: y,
435
436
  onOpenClick: V
436
437
  }) => {
437
- const [O, P] = ve(!1), j = Pt(null), { isMobile: S } = Ve(), { handleBlur: R, getInputValue: F, getOption: E, handleDocumentClick: L } = $t({
438
+ const [R, P] = ve(!1), j = Pt(null), { isMobile: S } = Ve(), { handleBlur: L, getInputValue: F, getOption: D, handleDocumentClick: z } = $t({
438
439
  selectedOption: r,
439
440
  onClickOption: g,
440
441
  setSelectedOption: c,
441
442
  setIsOpen: P,
442
443
  containerRef: j,
443
- isOpen: O,
444
+ isOpen: R,
444
445
  isMobile: S,
445
446
  placeholder: t,
446
447
  onChange: c,
447
448
  onBlur: m
448
449
  });
449
- return Ie(() => (document.addEventListener("click", L), () => {
450
- document.removeEventListener("click", L);
450
+ return Ie(() => (document.addEventListener("click", z), () => {
451
+ document.removeEventListener("click", z);
451
452
  }), []), /* @__PURE__ */ N(
452
453
  "div",
453
454
  {
@@ -455,11 +456,11 @@ const Oe = Object.assign(Ar, { Item: Tt }), kr = "_root_nl7sm_1", Cr = "_lotBtn_
455
456
  className: je(
456
457
  se.sortSelectWrapper,
457
458
  { [se.sortSelectWrapperError]: n },
458
- { [se.sortSelectWrapperTop]: w },
459
+ { [se.sortSelectWrapperTop]: x },
459
460
  i
460
461
  ),
461
462
  tabIndex: 0,
462
- onBlur: R,
463
+ onBlur: L,
463
464
  onClick: () => {
464
465
  y && y();
465
466
  },
@@ -474,10 +475,10 @@ const Oe = Object.assign(Ar, { Item: Tt }), kr = "_root_nl7sm_1", Cr = "_lotBtn_
474
475
  className: je(
475
476
  se.selectedOptions,
476
477
  { [se.selectOptionsDisabled]: a },
477
- { [se.selectionOptionMini]: A }
478
+ { [se.selectionOptionMini]: k }
478
479
  ),
479
480
  onClick: () => {
480
- O || V && V(), P(!O);
481
+ R || V && V(), P(!R);
481
482
  }
482
483
  }
483
484
  ),
@@ -490,10 +491,10 @@ const Oe = Object.assign(Ar, { Item: Tt }), kr = "_root_nl7sm_1", Cr = "_lotBtn_
490
491
  }
491
492
  )
492
493
  ] }),
493
- O && S && /* @__PURE__ */ N(
494
+ R && S && /* @__PURE__ */ N(
494
495
  st,
495
496
  {
496
- isOpen: O,
497
+ isOpen: R,
497
498
  emitIsOpen: P,
498
499
  additionalClassModalBody: se.modalAddBody,
499
500
  additionalClass: se.selectModal,
@@ -510,11 +511,11 @@ const Oe = Object.assign(Ar, { Item: Tt }), kr = "_root_nl7sm_1", Cr = "_lotBtn_
510
511
  }
511
512
  ) })
512
513
  ] }),
513
- /* @__PURE__ */ d("div", { className: se.mobileOptionList, children: e == null ? void 0 : e.map((k) => E(k)) })
514
+ /* @__PURE__ */ d("div", { className: se.mobileOptionList, children: e == null ? void 0 : e.map((w) => D(w)) })
514
515
  ]
515
516
  }
516
517
  ),
517
- O && !S && /* @__PURE__ */ d("div", { className: je(se.optionsList, { [se.optionListOnTop]: w }), children: e == null ? void 0 : e.map((k) => E(k)) })
518
+ R && !S && /* @__PURE__ */ d("div", { className: je(se.optionsList, { [se.optionListOnTop]: x }), children: e == null ? void 0 : e.map((w) => D(w)) })
518
519
  ]
519
520
  }
520
521
  );
@@ -568,14 +569,14 @@ var Je = (e) => Array.isArray(e) ? e.filter(Boolean) : [], _ = (e) => e === void
568
569
  const a = lt(r) ? [r] : Vt(r), i = a.length, c = i - 1;
569
570
  for (; ++n < i; ) {
570
571
  const m = a[n];
571
- let A = t;
572
+ let k = t;
572
573
  if (n !== c) {
573
- const w = e[m];
574
- A = ee(w) || Array.isArray(w) ? w : isNaN(+a[n + 1]) ? {} : [];
574
+ const x = e[m];
575
+ k = ee(x) || Array.isArray(x) ? x : isNaN(+a[n + 1]) ? {} : [];
575
576
  }
576
577
  if (m === "__proto__")
577
578
  return;
578
- e[m] = A, e = e[m];
579
+ e[m] = k, e = e[m];
579
580
  }
580
581
  return e;
581
582
  };
@@ -627,7 +628,7 @@ function ot(e) {
627
628
  }, [e.disabled]);
628
629
  }
629
630
  function xs(e) {
630
- const r = at(), { control: t = r.control, disabled: n, name: a, exact: i } = e || {}, [c, m] = q.useState(t._formState), A = q.useRef(!0), w = q.useRef({
631
+ const r = at(), { control: t = r.control, disabled: n, name: a, exact: i } = e || {}, [c, m] = q.useState(t._formState), k = q.useRef(!0), x = q.useRef({
631
632
  isDirty: !1,
632
633
  isLoading: !1,
633
634
  dirtyFields: !1,
@@ -639,14 +640,14 @@ function xs(e) {
639
640
  }), g = q.useRef(a);
640
641
  return g.current = a, ot({
641
642
  disabled: n,
642
- next: (y) => A.current && Wt(g.current, y.name, i) && Dt(y, w.current, t._updateFormState) && m({
643
+ next: (y) => k.current && Wt(g.current, y.name, i) && Dt(y, x.current, t._updateFormState) && m({
643
644
  ...t._formState,
644
645
  ...y
645
646
  }),
646
647
  subject: t._subjects.state
647
- }), q.useEffect(() => (A.current = !0, w.current.isValid && t._updateValid(!0), () => {
648
- A.current = !1;
649
- }), [t]), Lt(c, t, w.current, !1);
648
+ }), q.useEffect(() => (k.current = !0, x.current.isValid && t._updateValid(!0), () => {
649
+ k.current = !1;
650
+ }), [t]), Lt(c, t, x.current, !1);
650
651
  }
651
652
  var me = (e) => typeof e == "string", Mt = (e, r, t, n, a) => me(e) ? (n && r.watch.add(e), f(t, e, a)) : Array.isArray(e) ? e.map((i) => (n && r.watch.add(i), f(t, i))) : (n && (r.watchAll = !0), t);
652
653
  function As(e) {
@@ -655,11 +656,11 @@ function As(e) {
655
656
  disabled: i,
656
657
  subject: t._subjects.values,
657
658
  next: (g) => {
658
- Wt(m.current, g.name, c) && w(le(Mt(m.current, t._names, g.values || t._formValues, !1, a)));
659
+ Wt(m.current, g.name, c) && x(le(Mt(m.current, t._names, g.values || t._formValues, !1, a)));
659
660
  }
660
661
  });
661
- const [A, w] = q.useState(t._getWatch(n, a));
662
- return q.useEffect(() => t._removeUnmounted()), A;
662
+ const [k, x] = q.useState(t._getWatch(n, a));
663
+ return q.useEffect(() => t._removeUnmounted()), k;
663
664
  }
664
665
  function ks(e) {
665
666
  const r = at(), { name: t, disabled: n, control: a = r.control, shouldUnregister: i } = e, c = Et(a._names.array, t), m = As({
@@ -667,19 +668,19 @@ function ks(e) {
667
668
  name: t,
668
669
  defaultValue: f(a._formValues, t, f(a._defaultValues, t, e.defaultValue)),
669
670
  exact: !0
670
- }), A = xs({
671
+ }), k = xs({
671
672
  control: a,
672
673
  name: t,
673
674
  exact: !0
674
- }), w = q.useRef(a.register(t, {
675
+ }), x = q.useRef(a.register(t, {
675
676
  ...e.rules,
676
677
  value: m,
677
678
  ...fe(e.disabled) ? { disabled: e.disabled } : {}
678
679
  }));
679
680
  return q.useEffect(() => {
680
- const g = a._options.shouldUnregister || i, y = (V, O) => {
681
+ const g = a._options.shouldUnregister || i, y = (V, R) => {
681
682
  const P = f(a._fields, V);
682
- P && P._f && (P._f.mount = O);
683
+ P && P._f && (P._f.mount = R);
683
684
  };
684
685
  if (y(t, !0), g) {
685
686
  const V = le(f(a._options.defaultValues, t));
@@ -699,15 +700,15 @@ function ks(e) {
699
700
  field: {
700
701
  name: t,
701
702
  value: m,
702
- ...fe(n) || A.disabled ? { disabled: A.disabled || n } : {},
703
- onChange: q.useCallback((g) => w.current.onChange({
703
+ ...fe(n) || k.disabled ? { disabled: k.disabled || n } : {},
704
+ onChange: q.useCallback((g) => x.current.onChange({
704
705
  target: {
705
706
  value: It(g),
706
707
  name: t
707
708
  },
708
709
  type: Ze.CHANGE
709
710
  }), [t]),
710
- onBlur: q.useCallback(() => w.current.onBlur({
711
+ onBlur: q.useCallback(() => x.current.onBlur({
711
712
  target: {
712
713
  value: f(a._formValues, t),
713
714
  name: t
@@ -724,27 +725,27 @@ function ks(e) {
724
725
  });
725
726
  }, [a._fields, t])
726
727
  },
727
- formState: A,
728
+ formState: k,
728
729
  fieldState: Object.defineProperties({}, {
729
730
  invalid: {
730
731
  enumerable: !0,
731
- get: () => !!f(A.errors, t)
732
+ get: () => !!f(k.errors, t)
732
733
  },
733
734
  isDirty: {
734
735
  enumerable: !0,
735
- get: () => !!f(A.dirtyFields, t)
736
+ get: () => !!f(k.dirtyFields, t)
736
737
  },
737
738
  isTouched: {
738
739
  enumerable: !0,
739
- get: () => !!f(A.touchedFields, t)
740
+ get: () => !!f(k.touchedFields, t)
740
741
  },
741
742
  isValidating: {
742
743
  enumerable: !0,
743
- get: () => !!f(A.validatingFields, t)
744
+ get: () => !!f(k.validatingFields, t)
744
745
  },
745
746
  error: {
746
747
  enumerable: !0,
747
- get: () => f(A.errors, t)
748
+ get: () => f(k.errors, t)
748
749
  }
749
750
  })
750
751
  };
@@ -825,85 +826,85 @@ var we = (e) => ee(e) && !qe(e) ? e : {
825
826
  value: e,
826
827
  message: ""
827
828
  }, St = async (e, r, t, n, a) => {
828
- const { ref: i, refs: c, required: m, maxLength: A, minLength: w, min: g, max: y, pattern: V, validate: O, name: P, valueAsNumber: j, mount: S, disabled: R } = e._f, F = f(r, P);
829
- if (!S || R)
829
+ const { ref: i, refs: c, required: m, maxLength: k, minLength: x, min: g, max: y, pattern: V, validate: R, name: P, valueAsNumber: j, mount: S, disabled: L } = e._f, F = f(r, P);
830
+ if (!S || L)
830
831
  return {};
831
- const E = c ? c[0] : i, L = (b) => {
832
- n && E.reportValidity && (E.setCustomValidity(fe(b) ? "" : b || ""), E.reportValidity());
833
- }, k = {}, z = dt(i), H = Le(i), X = z || H, T = (j || ct(i)) && _(i.value) && _(F) || Ue(i) && i.value === "" || F === "" || Array.isArray(F) && !F.length, D = Ss.bind(null, P, t, k), Z = (b, x, C, B = he.maxLength, K = he.minLength) => {
834
- const G = b ? x : C;
835
- k[P] = {
836
- type: b ? B : K,
832
+ const D = c ? c[0] : i, z = (b) => {
833
+ n && D.reportValidity && (D.setCustomValidity(fe(b) ? "" : b || ""), D.reportValidity());
834
+ }, w = {}, W = dt(i), J = Le(i), X = W || J, E = (j || ct(i)) && _(i.value) && _(F) || Ue(i) && i.value === "" || F === "" || Array.isArray(F) && !F.length, B = Ss.bind(null, P, t, w), Z = (b, A, C, T = he.maxLength, K = he.minLength) => {
835
+ const G = b ? A : C;
836
+ w[P] = {
837
+ type: b ? T : K,
837
838
  message: G,
838
839
  ref: i,
839
- ...D(b ? B : K, G)
840
+ ...B(b ? T : K, G)
840
841
  };
841
842
  };
842
- if (a ? !Array.isArray(F) || !F.length : m && (!X && (T || ie(F)) || fe(F) && !F || H && !Ot(c).isValid || z && !Rt(c).isValid)) {
843
- const { value: b, message: x } = Xe(m) ? { value: !!m, message: m } : we(m);
844
- if (b && (k[P] = {
843
+ if (a ? !Array.isArray(F) || !F.length : m && (!X && (E || ie(F)) || fe(F) && !F || J && !Ot(c).isValid || W && !Rt(c).isValid)) {
844
+ const { value: b, message: A } = Xe(m) ? { value: !!m, message: m } : we(m);
845
+ if (b && (w[P] = {
845
846
  type: he.required,
846
- message: x,
847
- ref: E,
848
- ...D(he.required, x)
847
+ message: A,
848
+ ref: D,
849
+ ...B(he.required, A)
849
850
  }, !t))
850
- return L(x), k;
851
+ return z(A), w;
851
852
  }
852
- if (!T && (!ie(g) || !ie(y))) {
853
- let b, x;
854
- const C = we(y), B = we(g);
853
+ if (!E && (!ie(g) || !ie(y))) {
854
+ let b, A;
855
+ const C = we(y), T = we(g);
855
856
  if (!ie(F) && !isNaN(F)) {
856
857
  const K = i.valueAsNumber || F && +F;
857
- ie(C.value) || (b = K > C.value), ie(B.value) || (x = K < B.value);
858
+ ie(C.value) || (b = K > C.value), ie(T.value) || (A = K < T.value);
858
859
  } else {
859
- const K = i.valueAsDate || new Date(F), G = (oe) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + oe), re = i.type == "time", J = i.type == "week";
860
- me(C.value) && F && (b = re ? G(F) > G(C.value) : J ? F > C.value : K > new Date(C.value)), me(B.value) && F && (x = re ? G(F) < G(B.value) : J ? F < B.value : K < new Date(B.value));
860
+ const K = i.valueAsDate || new Date(F), G = (oe) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + oe), re = i.type == "time", H = i.type == "week";
861
+ me(C.value) && F && (b = re ? G(F) > G(C.value) : H ? F > C.value : K > new Date(C.value)), me(T.value) && F && (A = re ? G(F) < G(T.value) : H ? F < T.value : K < new Date(T.value));
861
862
  }
862
- if ((b || x) && (Z(!!b, C.message, B.message, he.max, he.min), !t))
863
- return L(k[P].message), k;
863
+ if ((b || A) && (Z(!!b, C.message, T.message, he.max, he.min), !t))
864
+ return z(w[P].message), w;
864
865
  }
865
- if ((A || w) && !T && (me(F) || a && Array.isArray(F))) {
866
- const b = we(A), x = we(w), C = !ie(b.value) && F.length > +b.value, B = !ie(x.value) && F.length < +x.value;
867
- if ((C || B) && (Z(C, b.message, x.message), !t))
868
- return L(k[P].message), k;
866
+ if ((k || x) && !E && (me(F) || a && Array.isArray(F))) {
867
+ const b = we(k), A = we(x), C = !ie(b.value) && F.length > +b.value, T = !ie(A.value) && F.length < +A.value;
868
+ if ((C || T) && (Z(C, b.message, A.message), !t))
869
+ return z(w[P].message), w;
869
870
  }
870
- if (V && !T && me(F)) {
871
- const { value: b, message: x } = we(V);
872
- if (qe(b) && !F.match(b) && (k[P] = {
871
+ if (V && !E && me(F)) {
872
+ const { value: b, message: A } = we(V);
873
+ if (qe(b) && !F.match(b) && (w[P] = {
873
874
  type: he.pattern,
874
- message: x,
875
+ message: A,
875
876
  ref: i,
876
- ...D(he.pattern, x)
877
+ ...B(he.pattern, A)
877
878
  }, !t))
878
- return L(x), k;
879
+ return z(A), w;
879
880
  }
880
- if (O) {
881
- if (ge(O)) {
882
- const b = await O(F, r), x = Ct(b, E);
883
- if (x && (k[P] = {
884
- ...x,
885
- ...D(he.validate, x.message)
881
+ if (R) {
882
+ if (ge(R)) {
883
+ const b = await R(F, r), A = Ct(b, D);
884
+ if (A && (w[P] = {
885
+ ...A,
886
+ ...B(he.validate, A.message)
886
887
  }, !t))
887
- return L(x.message), k;
888
- } else if (ee(O)) {
888
+ return z(A.message), w;
889
+ } else if (ee(R)) {
889
890
  let b = {};
890
- for (const x in O) {
891
+ for (const A in R) {
891
892
  if (!ae(b) && !t)
892
893
  break;
893
- const C = Ct(await O[x](F, r), E, x);
894
+ const C = Ct(await R[A](F, r), D, A);
894
895
  C && (b = {
895
896
  ...C,
896
- ...D(x, C.message)
897
- }, L(C.message), t && (k[P] = b));
897
+ ...B(A, C.message)
898
+ }, z(C.message), t && (w[P] = b));
898
899
  }
899
- if (!ae(b) && (k[P] = {
900
- ref: E,
900
+ if (!ae(b) && (w[P] = {
901
+ ref: D,
901
902
  ...b
902
903
  }, !t))
903
- return k;
904
+ return w;
904
905
  }
905
906
  }
906
- return L(!0), k;
907
+ return z(!0), w;
907
908
  };
908
909
  function Ps(e, r) {
909
910
  const t = r.slice(0, -1).length;
@@ -1057,7 +1058,7 @@ function Ws(e = {}) {
1057
1058
  unMount: /* @__PURE__ */ new Set(),
1058
1059
  array: /* @__PURE__ */ new Set(),
1059
1060
  watch: /* @__PURE__ */ new Set()
1060
- }, A, w = 0;
1061
+ }, k, x = 0;
1061
1062
  const g = {
1062
1063
  isDirty: !1,
1063
1064
  dirtyFields: !1,
@@ -1070,16 +1071,16 @@ function Ws(e = {}) {
1070
1071
  values: et(),
1071
1072
  array: et(),
1072
1073
  state: et()
1073
- }, V = Ft(r.mode), O = Ft(r.reValidateMode), P = r.criteriaMode === ue.all, j = (s) => (l) => {
1074
- clearTimeout(w), w = setTimeout(s, l);
1074
+ }, V = Ft(r.mode), R = Ft(r.reValidateMode), P = r.criteriaMode === ue.all, j = (s) => (l) => {
1075
+ clearTimeout(x), x = setTimeout(s, l);
1075
1076
  }, S = async (s) => {
1076
1077
  if (g.isValid || s) {
1077
- const l = r.resolver ? ae((await X()).errors) : await D(n, !0);
1078
+ const l = r.resolver ? ae((await X()).errors) : await B(n, !0);
1078
1079
  l !== t.isValid && y.state.next({
1079
1080
  isValid: l
1080
1081
  });
1081
1082
  }
1082
- }, R = (s, l) => {
1083
+ }, L = (s, l) => {
1083
1084
  (g.isValidating || g.validatingFields) && ((s || Array.from(m.mount)).forEach((o) => {
1084
1085
  o && (l ? U(t.validatingFields, o, l) : $(t.validatingFields, o));
1085
1086
  }), y.state.next({
@@ -1109,39 +1110,39 @@ function Ws(e = {}) {
1109
1110
  });
1110
1111
  } else
1111
1112
  U(i, s, l);
1112
- }, E = (s, l) => {
1113
+ }, D = (s, l) => {
1113
1114
  U(t.errors, s, l), y.state.next({
1114
1115
  errors: t.errors
1115
1116
  });
1116
- }, L = (s) => {
1117
+ }, z = (s) => {
1117
1118
  t.errors = s, y.state.next({
1118
1119
  errors: t.errors,
1119
1120
  isValid: !1
1120
1121
  });
1121
- }, k = (s, l, o, h) => {
1122
+ }, w = (s, l, o, h) => {
1122
1123
  const p = f(n, s);
1123
1124
  if (p) {
1124
1125
  const u = f(i, s, _(o) ? f(a, s) : o);
1125
- _(u) || h && h.defaultChecked || l ? U(i, s, l ? u : rt(p._f)) : B(s, u), c.mount && S();
1126
+ _(u) || h && h.defaultChecked || l ? U(i, s, l ? u : rt(p._f)) : T(s, u), c.mount && S();
1126
1127
  }
1127
- }, z = (s, l, o, h, p) => {
1128
+ }, W = (s, l, o, h, p) => {
1128
1129
  let u = !1, v = !1;
1129
- const W = {
1130
+ const M = {
1130
1131
  name: s
1131
1132
  }, Q = !!(f(n, s) && f(n, s)._f && f(n, s)._f.disabled);
1132
1133
  if (!o || h) {
1133
- g.isDirty && (v = t.isDirty, t.isDirty = W.isDirty = b(), u = v !== W.isDirty);
1134
+ g.isDirty && (v = t.isDirty, t.isDirty = M.isDirty = b(), u = v !== M.isDirty);
1134
1135
  const ce = Q || be(f(a, s), l);
1135
- v = !!(!Q && f(t.dirtyFields, s)), ce || Q ? $(t.dirtyFields, s) : U(t.dirtyFields, s, !0), W.dirtyFields = t.dirtyFields, u = u || g.dirtyFields && v !== !ce;
1136
+ v = !!(!Q && f(t.dirtyFields, s)), ce || Q ? $(t.dirtyFields, s) : U(t.dirtyFields, s, !0), M.dirtyFields = t.dirtyFields, u = u || g.dirtyFields && v !== !ce;
1136
1137
  }
1137
1138
  if (o) {
1138
1139
  const ce = f(t.touchedFields, s);
1139
- ce || (U(t.touchedFields, s, o), W.touchedFields = t.touchedFields, u = u || g.touchedFields && ce !== o);
1140
+ ce || (U(t.touchedFields, s, o), M.touchedFields = t.touchedFields, u = u || g.touchedFields && ce !== o);
1140
1141
  }
1141
- return u && p && y.state.next(W), u ? W : {};
1142
- }, H = (s, l, o, h) => {
1142
+ return u && p && y.state.next(M), u ? M : {};
1143
+ }, J = (s, l, o, h) => {
1143
1144
  const p = f(t.errors, s), u = g.isValid && fe(l) && t.isValid !== l;
1144
- if (e.delayError && o ? (A = j(() => E(s, o)), A(e.delayError)) : (clearTimeout(w), A = null, o ? U(t.errors, s, o) : $(t.errors, s)), (o ? !be(p, o) : p) || !ae(h) || u) {
1145
+ if (e.delayError && o ? (k = j(() => D(s, o)), k(e.delayError)) : (clearTimeout(x), k = null, o ? U(t.errors, s, o) : $(t.errors, s)), (o ? !be(p, o) : p) || !ae(h) || u) {
1145
1146
  const v = {
1146
1147
  ...h,
1147
1148
  ...u && fe(l) ? { isValid: l } : {},
@@ -1154,10 +1155,10 @@ function Ws(e = {}) {
1154
1155
  }, y.state.next(v);
1155
1156
  }
1156
1157
  }, X = async (s) => {
1157
- R(s, !0);
1158
+ L(s, !0);
1158
1159
  const l = await r.resolver(i, r.context, Is(s || m.mount, n, r.criteriaMode, r.shouldUseNativeValidation));
1159
- return R(s), l;
1160
- }, T = async (s) => {
1160
+ return L(s), l;
1161
+ }, E = async (s) => {
1161
1162
  const { errors: l } = await X(s);
1162
1163
  if (s)
1163
1164
  for (const o of s) {
@@ -1167,7 +1168,7 @@ function Ws(e = {}) {
1167
1168
  else
1168
1169
  t.errors = l;
1169
1170
  return l;
1170
- }, D = async (s, l, o = {
1171
+ }, B = async (s, l, o = {
1171
1172
  valid: !0
1172
1173
  }) => {
1173
1174
  for (const h in s) {
@@ -1175,14 +1176,14 @@ function Ws(e = {}) {
1175
1176
  if (p) {
1176
1177
  const { _f: u, ...v } = p;
1177
1178
  if (u) {
1178
- const W = m.array.has(u.name);
1179
- R([h], !0);
1180
- const Q = await St(p, i, P, r.shouldUseNativeValidation && !l, W);
1181
- if (R([h]), Q[u.name] && (o.valid = !1, l))
1179
+ const M = m.array.has(u.name);
1180
+ L([h], !0);
1181
+ const Q = await St(p, i, P, r.shouldUseNativeValidation && !l, M);
1182
+ if (L([h]), Q[u.name] && (o.valid = !1, l))
1182
1183
  break;
1183
- !l && (f(Q, u.name) ? W ? Ns(t.errors, Q, u.name) : U(t.errors, u.name, Q[u.name]) : $(t.errors, u.name));
1184
+ !l && (f(Q, u.name) ? M ? Ns(t.errors, Q, u.name) : U(t.errors, u.name, Q[u.name]) : $(t.errors, u.name));
1184
1185
  }
1185
- !ae(v) && await D(v, l, o);
1186
+ !ae(v) && await B(v, l, o);
1186
1187
  }
1187
1188
  }
1188
1189
  return o.valid;
@@ -1192,23 +1193,23 @@ function Ws(e = {}) {
1192
1193
  l && (l._f.refs ? l._f.refs.every((o) => !tt(o)) : !tt(l._f.ref)) && Ce(s);
1193
1194
  }
1194
1195
  m.unMount = /* @__PURE__ */ new Set();
1195
- }, b = (s, l) => (s && l && U(i, s, l), !be(De(), a)), x = (s, l, o) => Mt(s, m, {
1196
+ }, b = (s, l) => (s && l && U(i, s, l), !be(De(), a)), A = (s, l, o) => Mt(s, m, {
1196
1197
  ...c.mount ? i : _(l) ? a : me(s) ? { [s]: l } : l
1197
- }, o, l), C = (s) => Je(f(c.mount ? i : a, s, e.shouldUnregister ? f(a, s, []) : [])), B = (s, l, o = {}) => {
1198
+ }, o, l), C = (s) => Je(f(c.mount ? i : a, s, e.shouldUnregister ? f(a, s, []) : [])), T = (s, l, o = {}) => {
1198
1199
  const h = f(n, s);
1199
1200
  let p = l;
1200
1201
  if (h) {
1201
1202
  const u = h._f;
1202
- u && (!u.disabled && U(i, s, Zt(l, u)), p = Ue(u.ref) && ie(l) ? "" : l, jt(u.ref) ? [...u.ref.options].forEach((v) => v.selected = p.includes(v.value)) : u.refs ? Le(u.ref) ? u.refs.length > 1 ? u.refs.forEach((v) => (!v.defaultChecked || !v.disabled) && (v.checked = Array.isArray(p) ? !!p.find((W) => W === v.value) : p === v.value)) : u.refs[0] && (u.refs[0].checked = !!p) : u.refs.forEach((v) => v.checked = v.value === p) : ct(u.ref) ? u.ref.value = "" : (u.ref.value = p, u.ref.type || y.values.next({
1203
+ u && (!u.disabled && U(i, s, Zt(l, u)), p = Ue(u.ref) && ie(l) ? "" : l, jt(u.ref) ? [...u.ref.options].forEach((v) => v.selected = p.includes(v.value)) : u.refs ? Le(u.ref) ? u.refs.length > 1 ? u.refs.forEach((v) => (!v.defaultChecked || !v.disabled) && (v.checked = Array.isArray(p) ? !!p.find((M) => M === v.value) : p === v.value)) : u.refs[0] && (u.refs[0].checked = !!p) : u.refs.forEach((v) => v.checked = v.value === p) : ct(u.ref) ? u.ref.value = "" : (u.ref.value = p, u.ref.type || y.values.next({
1203
1204
  name: s,
1204
1205
  values: { ...i }
1205
1206
  })));
1206
1207
  }
1207
- (o.shouldDirty || o.shouldTouch) && z(s, p, o.shouldTouch, o.shouldDirty, !0), o.shouldValidate && oe(s);
1208
+ (o.shouldDirty || o.shouldTouch) && W(s, p, o.shouldTouch, o.shouldDirty, !0), o.shouldValidate && oe(s);
1208
1209
  }, K = (s, l, o) => {
1209
1210
  for (const h in l) {
1210
1211
  const p = l[h], u = `${s}.${h}`, v = f(n, u);
1211
- (m.array.has(s) || !Ge(p) || v && !v._f) && !xe(p) ? K(u, p, o) : B(u, p, o);
1212
+ (m.array.has(s) || !Ge(p) || v && !v._f) && !xe(p) ? K(u, p, o) : T(u, p, o);
1212
1213
  }
1213
1214
  }, G = (s, l, o = {}) => {
1214
1215
  const h = f(n, s), p = m.array.has(s), u = le(l);
@@ -1219,7 +1220,7 @@ function Ws(e = {}) {
1219
1220
  name: s,
1220
1221
  dirtyFields: ze(a, i),
1221
1222
  isDirty: b(s, u)
1222
- })) : h && !h._f && !ie(u) ? K(s, u, o) : B(s, u, o), wt(s, m) && y.state.next({ ...t }), y.values.next({
1223
+ })) : h && !h._f && !ie(u) ? K(s, u, o) : T(s, u, o), wt(s, m) && y.state.next({ ...t }), y.values.next({
1223
1224
  name: c.mount ? s : void 0,
1224
1225
  values: { ...i }
1225
1226
  });
@@ -1227,14 +1228,14 @@ function Ws(e = {}) {
1227
1228
  c.mount = !0;
1228
1229
  const l = s.target;
1229
1230
  let o = l.name, h = !0;
1230
- const p = f(n, o), u = () => l.type ? rt(p._f) : It(s), v = (W) => {
1231
- h = Number.isNaN(W) || W === f(i, o, W);
1231
+ const p = f(n, o), u = () => l.type ? rt(p._f) : It(s), v = (M) => {
1232
+ h = Number.isNaN(M) || M === f(i, o, M);
1232
1233
  };
1233
1234
  if (p) {
1234
- let W, Q;
1235
- const ce = u(), Fe = s.type === Ze.BLUR || s.type === Ze.FOCUS_OUT, Ht = !Es(p._f) && !r.resolver && !f(t.errors, o) && !p._f.deps || Vs(Fe, f(t.touchedFields, o), t.isSubmitted, O, V), Ye = wt(o, m, Fe);
1236
- U(i, o, ce), Fe ? (p._f.onBlur && p._f.onBlur(s), A && A(0)) : p._f.onChange && p._f.onChange(s);
1237
- const Ke = z(o, ce, Fe, !1), Jt = !ae(Ke) || Ye;
1235
+ let M, Q;
1236
+ const ce = u(), Fe = s.type === Ze.BLUR || s.type === Ze.FOCUS_OUT, Ht = !Es(p._f) && !r.resolver && !f(t.errors, o) && !p._f.deps || Vs(Fe, f(t.touchedFields, o), t.isSubmitted, R, V), Ye = wt(o, m, Fe);
1237
+ U(i, o, ce), Fe ? (p._f.onBlur && p._f.onBlur(s), k && k(0)) : p._f.onChange && p._f.onChange(s);
1238
+ const Ke = W(o, ce, Fe, !1), Jt = !ae(Ke) || Ye;
1238
1239
  if (!Fe && y.values.next({
1239
1240
  name: o,
1240
1241
  type: s.type,
@@ -1245,31 +1246,31 @@ function Ws(e = {}) {
1245
1246
  const { errors: yt } = await X([o]);
1246
1247
  if (v(ce), h) {
1247
1248
  const _t = Nt(t.errors, n, o), gt = Nt(yt, n, _t.name || o);
1248
- W = gt.error, o = gt.name, Q = ae(yt);
1249
+ M = gt.error, o = gt.name, Q = ae(yt);
1249
1250
  }
1250
1251
  } else
1251
- R([o], !0), W = (await St(p, i, P, r.shouldUseNativeValidation))[o], R([o]), v(ce), h && (W ? Q = !1 : g.isValid && (Q = await D(n, !0)));
1252
- h && (p._f.deps && oe(p._f.deps), H(o, Q, W, Ke));
1252
+ L([o], !0), M = (await St(p, i, P, r.shouldUseNativeValidation))[o], L([o]), v(ce), h && (M ? Q = !1 : g.isValid && (Q = await B(n, !0)));
1253
+ h && (p._f.deps && oe(p._f.deps), J(o, Q, M, Ke));
1253
1254
  }
1254
- }, J = (s, l) => {
1255
+ }, H = (s, l) => {
1255
1256
  if (f(t.errors, l) && s.focus)
1256
1257
  return s.focus(), 1;
1257
1258
  }, oe = async (s, l = {}) => {
1258
1259
  let o, h;
1259
1260
  const p = Te(s);
1260
1261
  if (r.resolver) {
1261
- const u = await T(_(s) ? s : p);
1262
+ const u = await E(_(s) ? s : p);
1262
1263
  o = ae(u), h = s ? !p.some((v) => f(u, v)) : o;
1263
1264
  } else
1264
1265
  s ? (h = (await Promise.all(p.map(async (u) => {
1265
1266
  const v = f(n, u);
1266
- return await D(v && v._f ? { [u]: v } : v);
1267
- }))).every(Boolean), !(!h && !t.isValid) && S()) : h = o = await D(n);
1267
+ return await B(v && v._f ? { [u]: v } : v);
1268
+ }))).every(Boolean), !(!h && !t.isValid) && S()) : h = o = await B(n);
1268
1269
  return y.state.next({
1269
1270
  ...!me(s) || g.isValid && o !== t.isValid ? {} : { name: s },
1270
1271
  ...r.resolver || !s ? { isValid: o } : {},
1271
1272
  errors: t.errors
1272
- }), l.shouldFocus && !h && Be(n, J, s ? p : m.mount), h;
1273
+ }), l.shouldFocus && !h && Be(n, H, s ? p : m.mount), h;
1273
1274
  }, De = (s) => {
1274
1275
  const l = {
1275
1276
  ...c.mount ? i : a
@@ -1286,7 +1287,7 @@ function Ws(e = {}) {
1286
1287
  errors: s ? t.errors : {}
1287
1288
  });
1288
1289
  }, de = (s, l, o) => {
1289
- const h = (f(n, s, { _f: {} })._f || {}).ref, p = f(t.errors, s) || {}, { ref: u, message: v, type: W, ...Q } = p;
1290
+ const h = (f(n, s, { _f: {} })._f || {}).ref, p = f(t.errors, s) || {}, { ref: u, message: v, type: M, ...Q } = p;
1290
1291
  U(t.errors, s, {
1291
1292
  ...Q,
1292
1293
  ...l,
@@ -1297,8 +1298,8 @@ function Ws(e = {}) {
1297
1298
  isValid: !1
1298
1299
  }), o && o.shouldFocus && h && h.focus && h.focus();
1299
1300
  }, ke = (s, l) => ge(s) ? y.values.subscribe({
1300
- next: (o) => s(x(void 0, l), o)
1301
- }) : x(s, l, !0), Ce = (s, l = {}) => {
1301
+ next: (o) => s(A(void 0, l), o)
1302
+ }) : A(s, l, !0), Ce = (s, l = {}) => {
1302
1303
  for (const o of s ? Te(s) : m.mount)
1303
1304
  m.mount.delete(o), m.array.delete(o), l.keepValue || ($(n, o), $(i, o)), !l.keepError && $(t.errors, o), !l.keepDirty && $(t.dirtyFields, o), !l.keepTouched && $(t.touchedFields, o), !l.keepIsValidating && $(t.validatingFields, o), !r.shouldUnregister && !l.keepDefaultValue && $(a, o);
1304
1305
  y.values.next({
@@ -1310,7 +1311,7 @@ function Ws(e = {}) {
1310
1311
  }, ut = ({ disabled: s, name: l, field: o, fields: h, value: p }) => {
1311
1312
  if (fe(s) && c.mount || s) {
1312
1313
  const u = s ? void 0 : _(p) ? rt(o ? o._f : f(h, l)._f) : p;
1313
- U(i, l, u), z(l, u, !1, !1, !0);
1314
+ U(i, l, u), W(l, u, !1, !1, !0);
1314
1315
  }
1315
1316
  }, _e = (s, l = {}) => {
1316
1317
  let o = f(n, s);
@@ -1328,7 +1329,7 @@ function Ws(e = {}) {
1328
1329
  disabled: l.disabled,
1329
1330
  name: s,
1330
1331
  value: l.value
1331
- }) : k(s, !0, l.value), {
1332
+ }) : w(s, !0, l.value), {
1332
1333
  ...h ? { disabled: l.disabled } : {},
1333
1334
  ...r.progressive ? {
1334
1335
  required: !!l.required,
@@ -1344,27 +1345,27 @@ function Ws(e = {}) {
1344
1345
  ref: (p) => {
1345
1346
  if (p) {
1346
1347
  _e(s, l), o = f(n, s);
1347
- const u = _(p.value) && p.querySelectorAll && p.querySelectorAll("input,select,textarea")[0] || p, v = Bs(u), W = o._f.refs || [];
1348
- if (v ? W.find((Q) => Q === u) : u === o._f.ref)
1348
+ const u = _(p.value) && p.querySelectorAll && p.querySelectorAll("input,select,textarea")[0] || p, v = Bs(u), M = o._f.refs || [];
1349
+ if (v ? M.find((Q) => Q === u) : u === o._f.ref)
1349
1350
  return;
1350
1351
  U(n, s, {
1351
1352
  _f: {
1352
1353
  ...o._f,
1353
1354
  ...v ? {
1354
1355
  refs: [
1355
- ...W.filter(tt),
1356
+ ...M.filter(tt),
1356
1357
  u,
1357
1358
  ...Array.isArray(f(a, s)) ? [{}] : []
1358
1359
  ],
1359
1360
  ref: { type: u.type, name: s }
1360
1361
  } : { ref: u }
1361
1362
  }
1362
- }), k(s, !1, void 0, u);
1363
+ }), w(s, !1, void 0, u);
1363
1364
  } else
1364
1365
  o = f(n, s, {}), o._f && (o._f.mount = !1), (r.shouldUnregister || l.shouldUnregister) && !(Et(m.array, s) && c.action) && m.unMount.add(s);
1365
1366
  }
1366
1367
  };
1367
- }, ft = () => r.shouldFocusError && Be(n, J, m.mount), qt = (s) => {
1368
+ }, ft = () => r.shouldFocusError && Be(n, H, m.mount), qt = (s) => {
1368
1369
  fe(s) && (y.state.next({ disabled: s }), Be(n, (l, o) => {
1369
1370
  const h = f(n, o);
1370
1371
  h && (l.disabled = h._f.disabled || s, Array.isArray(h._f.refs) && h._f.refs.forEach((p) => {
@@ -1381,7 +1382,7 @@ function Ws(e = {}) {
1381
1382
  const { errors: u, values: v } = await X();
1382
1383
  t.errors = u, p = v;
1383
1384
  } else
1384
- await D(n);
1385
+ await B(n);
1385
1386
  if ($(t.errors, "root"), ae(t.errors)) {
1386
1387
  y.state.next({
1387
1388
  errors: {}
@@ -1412,9 +1413,9 @@ function Ws(e = {}) {
1412
1413
  else {
1413
1414
  if (nt && _(s))
1414
1415
  for (const v of m.mount) {
1415
- const W = f(n, v);
1416
- if (W && W._f) {
1417
- const Q = Array.isArray(W._f.refs) ? W._f.refs[0] : W._f.ref;
1416
+ const M = f(n, v);
1417
+ if (M && M._f) {
1418
+ const Q = Array.isArray(M._f.refs) ? M._f.refs[0] : M._f.ref;
1418
1419
  if (Ue(Q)) {
1419
1420
  const ce = Q.closest("form");
1420
1421
  if (ce) {
@@ -1458,7 +1459,7 @@ function Ws(e = {}) {
1458
1459
  handleSubmit: mt,
1459
1460
  setError: de,
1460
1461
  _executeSchema: X,
1461
- _getWatch: x,
1462
+ _getWatch: A,
1462
1463
  _getDirty: b,
1463
1464
  _updateValid: S,
1464
1465
  _removeUnmounted: Z,
@@ -1480,7 +1481,7 @@ function Ws(e = {}) {
1480
1481
  _disableForm: qt,
1481
1482
  _subjects: y,
1482
1483
  _proxyFormState: g,
1483
- _setErrors: L,
1484
+ _setErrors: z,
1484
1485
  get _fields() {
1485
1486
  return n;
1486
1487
  },
@@ -1594,51 +1595,51 @@ const Os = Ee.bind(te), Rs = "Я принимаю условия Политик
1594
1595
  isPhone: i,
1595
1596
  isTextArea: c,
1596
1597
  telegramLink: m = "https://t.me/stone_developer",
1597
- isRequiredPhone: A = !0,
1598
- isRequiredEmail: w = !1,
1598
+ isRequiredPhone: k = !0,
1599
+ isRequiredEmail: x = !1,
1599
1600
  isRequiredPhoneOrEmail: g,
1600
1601
  textAreaPlaceholder: y,
1601
1602
  subTitle: V,
1602
- submitHandler: O,
1603
+ submitHandler: R,
1603
1604
  modalWidth: P = "442px",
1604
1605
  rowsTextArea: j = 2,
1605
1606
  advCheckBox: S = { text: Rs, isRequired: !0 },
1606
- isAdvCheckBox: R,
1607
+ isAdvCheckBox: L,
1607
1608
  addTitleClassName: F,
1608
- createPortalObj: E,
1609
- telegramClickHandler: L = () => null,
1610
- blurHandler: k,
1611
- block_name: z,
1612
- emitCheckBox: H,
1609
+ createPortalObj: D,
1610
+ telegramClickHandler: z = () => null,
1611
+ blurHandler: w,
1612
+ block_name: W,
1613
+ emitCheckBox: J,
1613
1614
  emitAdvCheckBox: X
1614
1615
  }) => {
1615
1616
  const {
1616
- register: T,
1617
- handleSubmit: D,
1617
+ register: E,
1618
+ handleSubmit: B,
1618
1619
  reset: Z,
1619
1620
  control: b,
1620
- watch: x,
1621
+ watch: A,
1621
1622
  formState: { errors: C }
1622
- } = Ms(), B = !!x("email"), K = x("personalCheckBox"), G = x("advCheckBox");
1623
+ } = Ms(), T = !!A("email"), K = A("personalCheckBox"), G = A("advCheckBox");
1623
1624
  Ie(() => {
1624
- typeof K < "u" && H && H();
1625
- }, [H, K]), Ie(() => {
1625
+ typeof K < "u" && J && J();
1626
+ }, [J, K]), Ie(() => {
1626
1627
  typeof G < "u" && X && X();
1627
1628
  }, [X, G]);
1628
- const { isMobile: re, currentClientWidth: J } = Ve(), oe = x("personalCheckBox"), De = x("advCheckBox"), We = (de) => {
1629
- O(de), Z();
1629
+ const { isMobile: re, currentClientWidth: H } = Ve(), oe = A("personalCheckBox"), De = A("advCheckBox"), We = (de) => {
1630
+ R(de), Z();
1630
1631
  }, Ae = (de, { action_element_status: ke, action_element: Ce }) => {
1631
- k && k({
1632
+ w && w({
1632
1633
  e: de,
1633
- analyticParams: { action_element: Ce, action_element_status: ke, block_name: z }
1634
+ analyticParams: { action_element: Ce, action_element_status: ke, block_name: W }
1634
1635
  });
1635
1636
  };
1636
- return J ? /* @__PURE__ */ d(
1637
+ return H ? /* @__PURE__ */ d(
1637
1638
  st,
1638
1639
  {
1639
1640
  additionalClass: te.modal,
1640
1641
  additionalClassModalBody: te.modalBody,
1641
- createPortalObj: E,
1642
+ createPortalObj: D,
1642
1643
  isOpen: e,
1643
1644
  isTransparentBack: !0,
1644
1645
  emitIsOpen: () => r(!1),
@@ -1669,7 +1670,7 @@ const Os = Ee.bind(te), Rs = "Я принимаю условия Политик
1669
1670
  "div",
1670
1671
  {
1671
1672
  className: te.telegram,
1672
- onClick: L,
1673
+ onClick: z,
1673
1674
  children: [
1674
1675
  /* @__PURE__ */ d("div", { children: "Подписаться в Telegram" }),
1675
1676
  /* @__PURE__ */ d(pe, { name: "telegram" })
@@ -1689,7 +1690,7 @@ const Os = Ee.bind(te), Rs = "Я принимаю условия Политик
1689
1690
  }
1690
1691
  }
1691
1692
  ),
1692
- /* @__PURE__ */ N("form", { onSubmit: D(We), children: [
1693
+ /* @__PURE__ */ N("form", { onSubmit: B(We), children: [
1693
1694
  /* @__PURE__ */ N(Qt, { className: te.inputWrapper, children: [
1694
1695
  /* @__PURE__ */ d(
1695
1696
  Qe,
@@ -1699,10 +1700,10 @@ const Os = Ee.bind(te), Rs = "Я принимаю условия Политик
1699
1700
  variant: "light",
1700
1701
  placeholder: "Введите имя",
1701
1702
  "data-testid": "modal_name",
1702
- ...T("name", { required: !0, pattern: er }),
1703
+ ...E("name", { required: !0, pattern: er }),
1703
1704
  onBlur: (de) => Ae(de, {
1704
1705
  action_element_status: C.name ? "error" : "success",
1705
- action_element: `input_${z}_name`
1706
+ action_element: `input_${W}_name`
1706
1707
  }),
1707
1708
  error: !!C.name
1708
1709
  }
@@ -1713,7 +1714,7 @@ const Os = Ee.bind(te), Rs = "Я принимаю условия Политик
1713
1714
  name: "phone",
1714
1715
  control: b,
1715
1716
  rules: {
1716
- required: w || A || g && !B,
1717
+ required: x || k || g && !T,
1717
1718
  pattern: { value: tr, message: "" }
1718
1719
  },
1719
1720
  defaultValue: "",
@@ -1731,7 +1732,7 @@ const Os = Ee.bind(te), Rs = "Я принимаю условия Политик
1731
1732
  variant: "light",
1732
1733
  onBlur: (ke) => Ae(ke, {
1733
1734
  action_element_status: C.phone ? "error" : "success",
1734
- action_element: `input_${z}_phone`
1735
+ action_element: `input_${W}_phone`
1735
1736
  })
1736
1737
  }
1737
1738
  )
@@ -1745,14 +1746,14 @@ const Os = Ee.bind(te), Rs = "Я принимаю условия Политик
1745
1746
  variant: "light",
1746
1747
  placeholder: "Введите email",
1747
1748
  "data-testid": "modal_email",
1748
- ...T("email", {
1749
- required: w || g && !B,
1749
+ ...E("email", {
1750
+ required: x || g && !T,
1750
1751
  pattern: rr
1751
1752
  }),
1752
1753
  error: !!C.email,
1753
1754
  onBlur: (de) => Ae(de, {
1754
1755
  action_element_status: C.email ? "error" : "success",
1755
- action_element: `input_${z}_email`
1756
+ action_element: `input_${W}_email`
1756
1757
  })
1757
1758
  }
1758
1759
  ),
@@ -1763,17 +1764,17 @@ const Os = Ee.bind(te), Rs = "Я принимаю условия Политик
1763
1764
  placeholder: y,
1764
1765
  rows: j,
1765
1766
  width: "full",
1766
- ...T("textarea")
1767
+ ...E("textarea")
1767
1768
  }
1768
1769
  ),
1769
- S && !t && R && /* @__PURE__ */ d(
1770
+ S && !t && L && /* @__PURE__ */ d(
1770
1771
  vt,
1771
1772
  {
1772
1773
  "data-testid": "modal_advCheckBox",
1773
1774
  isChecked: De,
1774
1775
  error: !!C.advCheckBox,
1775
1776
  text: S.text,
1776
- ...T("advCheckBox", { required: S == null ? void 0 : S.isRequired })
1777
+ ...E("advCheckBox", { required: S == null ? void 0 : S.isRequired })
1777
1778
  }
1778
1779
  ),
1779
1780
  /* @__PURE__ */ N(
@@ -1782,7 +1783,7 @@ const Os = Ee.bind(te), Rs = "Я принимаю условия Политик
1782
1783
  "data-testid": "modal_personalCheckBox",
1783
1784
  isChecked: oe,
1784
1785
  error: !!C.personalCheckBox,
1785
- ...T("personalCheckBox", { required: !t }),
1786
+ ...E("personalCheckBox", { required: !t }),
1786
1787
  children: [
1787
1788
  t && /* @__PURE__ */ N("div", { className: te.checkboxText, children: [
1788
1789
  "Согласен(-на)",
@@ -1824,7 +1825,7 @@ const Os = Ee.bind(te), Rs = "Я принимаю условия Политик
1824
1825
  size: "large",
1825
1826
  as: "button",
1826
1827
  additionalClass: te.modalBtn,
1827
- disabled: !!C.name || !!C.phone && A || !!C.email && w || !!C.advCheckBox && (S == null ? void 0 : S.isRequired) || !!C.personalCheckBox && !t,
1828
+ disabled: !!C.name || !!C.phone && k || !!C.email && x || !!C.advCheckBox && (S == null ? void 0 : S.isRequired) || !!C.personalCheckBox && !t,
1828
1829
  children: "Отправить запрос"
1829
1830
  }
1830
1831
  )
@@ -1854,7 +1855,7 @@ const Os = Ee.bind(te), Rs = "Я принимаю условия Политик
1854
1855
  )
1855
1856
  }
1856
1857
  ) : null;
1857
- }, js = "_root_1lkos_1", zs = "_filterWithSaveModal_1lkos_15", Xs = "_modalAddBody_1lkos_20", Zs = "_closeBtn_1lkos_29", Us = "_btnName_1lkos_35", qs = "_modalTitle_1lkos_39", Gs = "_tabSWitcherWrapper_1lkos_48", Hs = "_switcherTitle_1lkos_56", Js = "_switcherScroll_1lkos_63", _s = "_tabs_1lkos_72", Ys = "_selectWrapper_1lkos_77", Ks = "_filterOption_1lkos_81", Qs = "_btnWrapper_1lkos_89", $s = "_resetBtn_1lkos_95", ei = "_saveBtn_1lkos_96", ti = "_desktopWrapper_1lkos_100", ri = "_desktopWrapperOpen_1lkos_123", M = {
1858
+ }, js = "_root_1lkos_1", zs = "_filterWithSaveModal_1lkos_15", Xs = "_modalAddBody_1lkos_20", Zs = "_closeBtn_1lkos_29", Us = "_btnName_1lkos_35", qs = "_modalTitle_1lkos_39", Gs = "_tabSWitcherWrapper_1lkos_48", Hs = "_switcherTitle_1lkos_56", Js = "_switcherScroll_1lkos_63", _s = "_tabs_1lkos_72", Ys = "_selectWrapper_1lkos_77", Ks = "_filterOption_1lkos_81", Qs = "_btnWrapper_1lkos_89", $s = "_resetBtn_1lkos_95", ei = "_saveBtn_1lkos_96", ti = "_desktopWrapper_1lkos_100", ri = "_desktopWrapperOpen_1lkos_123", O = {
1858
1859
  root: js,
1859
1860
  filterWithSaveModal: zs,
1860
1861
  modalAddBody: Xs,
@@ -1919,49 +1920,49 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
1919
1920
  onChange: i,
1920
1921
  setSelectedTabs: c,
1921
1922
  onSaveClick: m,
1922
- onClearClick: A
1923
+ onClearClick: k
1923
1924
  }) => {
1924
- const { isMobile: w } = Ve(), [g, y] = ve(!1), V = Pt(null), [O, P] = ve(e), [j] = ve(r), [S, R] = ve(O), [F, E] = ve(j), L = (T) => {
1925
- if (t && t(T), n.some((Z) => Z.value === T.value))
1925
+ const { isMobile: x } = Ve(), [g, y] = ve(!1), V = Pt(null), [R, P] = ve(e), [j] = ve(r), [S, L] = ve(R), [F, D] = ve(j), z = (E) => {
1926
+ if (t && t(E), n.some((Z) => Z.value === E.value))
1926
1927
  return;
1927
- const D = F.some((Z) => Z.value === T.value) ? F.filter((Z) => Z.value !== T.value) : [...F, T];
1928
- E(D);
1929
- }, k = () => {
1930
- P(a), R(a), E([]), A(), i && (i([]), c == null || c(a));
1931
- }, z = () => {
1932
- E(r), R(e);
1933
- }, H = () => {
1934
- z(), y(!1);
1935
- }, X = (T) => {
1936
- T.stopPropagation(), m(), i && (c == null || c(S), i(F)), y(!1);
1928
+ const B = F.some((Z) => Z.value === E.value) ? F.filter((Z) => Z.value !== E.value) : [...F, E];
1929
+ D(B);
1930
+ }, w = () => {
1931
+ P(a), L(a), D([]), k(), i && (i([]), c == null || c(a));
1932
+ }, W = () => {
1933
+ D(r), L(e);
1934
+ }, J = () => {
1935
+ W(), y(!1);
1936
+ }, X = (E) => {
1937
+ E.stopPropagation(), m(), i && (c == null || c(S), i(F)), y(!1);
1937
1938
  };
1938
1939
  return Ie(() => {
1939
- g || R((T) => JSON.stringify(T) !== JSON.stringify(e) ? e : T);
1940
+ g || L((E) => JSON.stringify(E) !== JSON.stringify(e) ? e : E);
1940
1941
  }, [g, e]), Ie(() => {
1941
- const T = (D) => {
1942
+ const E = (B) => {
1942
1943
  if (!V.current)
1943
1944
  return;
1944
- const Z = D.target;
1945
- V.current.contains(Z) || Z.closest("svg") || H();
1945
+ const Z = B.target;
1946
+ V.current.contains(Z) || Z.closest("svg") || J();
1946
1947
  };
1947
- return g ? document.addEventListener("click", T) : document.removeEventListener("click", T), () => {
1948
- document.removeEventListener("click", T);
1948
+ return g ? document.addEventListener("click", E) : document.removeEventListener("click", E), () => {
1949
+ document.removeEventListener("click", E);
1949
1950
  };
1950
1951
  }, [g]), {
1951
- isMobile: w,
1952
- handleClearClick: k,
1953
- handleCloseModal: H,
1954
- handleOptionClick: L,
1952
+ isMobile: x,
1953
+ handleClearClick: w,
1954
+ handleCloseModal: J,
1955
+ handleOptionClick: z,
1955
1956
  handleSaveClick: X,
1956
1957
  localSelectedTabs: S,
1957
1958
  selectedOptions: F,
1958
- setSelectedOptions: E,
1959
+ setSelectedOptions: D,
1959
1960
  isModalOpen: g,
1960
1961
  setIsModalOpen: y,
1961
- setLocalSelectedTabs: R,
1962
+ setLocalSelectedTabs: L,
1962
1963
  containerRef: V
1963
1964
  };
1964
- }, li = ii.bind(M), qi = ({
1965
+ }, li = ii.bind(O), qi = ({
1965
1966
  disabledOptions: e,
1966
1967
  tabs: r = [],
1967
1968
  selectOptions: t = [],
@@ -1970,28 +1971,28 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
1970
1971
  selectedValues: i,
1971
1972
  setSelectedTabs: c,
1972
1973
  selectedTabs: m,
1973
- onClickItem: A,
1974
- onCLickSelect: w,
1974
+ onClickItem: k,
1975
+ onCLickSelect: x,
1975
1976
  onSaveClick: g = () => null,
1976
1977
  onClearClick: y = () => null,
1977
1978
  onTabClick: V = () => null,
1978
- btnName: O = "Фильтр"
1979
+ btnName: R = "Фильтр"
1979
1980
  }) => {
1980
1981
  const {
1981
1982
  handleCloseModal: P,
1982
1983
  localSelectedTabs: j,
1983
1984
  selectedOptions: S,
1984
- isMobile: R,
1985
+ isMobile: L,
1985
1986
  handleOptionClick: F,
1986
- handleClearClick: E,
1987
- handleSaveClick: L,
1988
- isModalOpen: k,
1989
- setLocalSelectedTabs: z,
1990
- setIsModalOpen: H,
1987
+ handleClearClick: D,
1988
+ handleSaveClick: z,
1989
+ isModalOpen: w,
1990
+ setLocalSelectedTabs: W,
1991
+ setIsModalOpen: J,
1991
1992
  containerRef: X
1992
1993
  } = ni({
1993
1994
  selectedTabs: m,
1994
- onClickItem: A,
1995
+ onClickItem: k,
1995
1996
  setSelectedTabs: c,
1996
1997
  tabs: r,
1997
1998
  onChange: n,
@@ -1999,11 +2000,11 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
1999
2000
  selectedValues: i,
2000
2001
  onSaveClick: g,
2001
2002
  onClearClick: y
2002
- }), T = () => /* @__PURE__ */ N(Pe, { children: [
2003
+ }), E = () => /* @__PURE__ */ N(Pe, { children: [
2003
2004
  /* @__PURE__ */ d(
2004
2005
  "div",
2005
2006
  {
2006
- className: M.closeBtn,
2007
+ className: O.closeBtn,
2007
2008
  onClick: () => {
2008
2009
  P();
2009
2010
  },
@@ -2016,18 +2017,18 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
2016
2017
  )
2017
2018
  }
2018
2019
  ),
2019
- /* @__PURE__ */ d("div", { className: M.modalTitle, children: "Фильтры" }),
2020
- /* @__PURE__ */ N("div", { className: M.tabSWitcherWrapper, children: [
2021
- /* @__PURE__ */ d("div", { className: M.switcherTitle, children: "Готовность" }),
2022
- /* @__PURE__ */ d("div", { className: M.switcherScroll, children: /* @__PURE__ */ d(
2020
+ /* @__PURE__ */ d("div", { className: O.modalTitle, children: "Фильтры" }),
2021
+ /* @__PURE__ */ N("div", { className: O.tabSWitcherWrapper, children: [
2022
+ /* @__PURE__ */ d("div", { className: O.switcherTitle, children: "Готовность" }),
2023
+ /* @__PURE__ */ d("div", { className: O.switcherScroll, children: /* @__PURE__ */ d(
2023
2024
  Oe,
2024
2025
  {
2025
2026
  variant: "grayRow",
2026
- addClassName: M.tabs,
2027
+ addClassName: O.tabs,
2027
2028
  isApart: !0,
2028
- children: r == null ? void 0 : r.map((D, Z) => {
2029
- var x;
2030
- const b = D.value;
2029
+ children: r == null ? void 0 : r.map((B, Z) => {
2030
+ var A;
2031
+ const b = B.value;
2031
2032
  return /* @__PURE__ */ d(
2032
2033
  Oe.Item,
2033
2034
  {
@@ -2037,10 +2038,10 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
2037
2038
  value: b,
2038
2039
  onClick: () => {
2039
2040
  },
2040
- checked: ((x = j == null ? void 0 : j.find((C) => C.value === b)) == null ? void 0 : x.state) ?? !1,
2041
+ checked: ((A = j == null ? void 0 : j.find((C) => C.value === b)) == null ? void 0 : A.state) ?? !1,
2041
2042
  onChange: () => {
2042
- z == null || z(
2043
- (C) => C.map((B) => B.value === b ? { ...B, state: !B.state } : B)
2043
+ W == null || W(
2044
+ (C) => C.map((T) => T.value === b ? { ...T, state: !T.state } : T)
2044
2045
  );
2045
2046
  },
2046
2047
  index: Z,
@@ -2052,27 +2053,27 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
2052
2053
  }
2053
2054
  ) })
2054
2055
  ] }),
2055
- /* @__PURE__ */ d("div", { className: M.selectWrapper, children: t == null ? void 0 : t.map((D, Z) => /* @__PURE__ */ d(
2056
+ /* @__PURE__ */ d("div", { className: O.selectWrapper, children: t == null ? void 0 : t.map((B, Z) => /* @__PURE__ */ d(
2056
2057
  bt,
2057
2058
  {
2058
2059
  sizeIcon: "24",
2059
- addClassName: M.filterOption,
2060
+ addClassName: O.filterOption,
2060
2061
  disabledOptions: [],
2061
2062
  clickableOptions: t == null ? void 0 : t.map((b) => b.value.toString()),
2062
2063
  selectedOptions: S,
2063
- option: D,
2064
+ option: B,
2064
2065
  handleOptionClick: F
2065
2066
  },
2066
2067
  Z
2067
2068
  )) }),
2068
- /* @__PURE__ */ N("div", { className: M.btnWrapper, children: [
2069
+ /* @__PURE__ */ N("div", { className: O.btnWrapper, children: [
2069
2070
  /* @__PURE__ */ d(
2070
2071
  ye,
2071
2072
  {
2072
2073
  as: "button",
2073
2074
  variant: "gray",
2074
- additionalClass: M.resetBtn,
2075
- onClick: E,
2075
+ additionalClass: O.resetBtn,
2076
+ onClick: D,
2076
2077
  children: "Сбросить"
2077
2078
  }
2078
2079
  ),
@@ -2080,8 +2081,8 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
2080
2081
  ye,
2081
2082
  {
2082
2083
  as: "button",
2083
- additionalClass: M.saveBtn,
2084
- onClick: L,
2084
+ additionalClass: O.saveBtn,
2085
+ onClick: z,
2085
2086
  children: "Сохранить"
2086
2087
  }
2087
2088
  )
@@ -2092,12 +2093,12 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
2092
2093
  /* @__PURE__ */ N(
2093
2094
  "div",
2094
2095
  {
2095
- className: M.root,
2096
+ className: O.root,
2096
2097
  onClick: () => {
2097
- w && w(), a && a(), R ? H((D) => !D) : k || H(!0);
2098
+ x && x(), a && a(), L ? J((B) => !B) : w || J(!0);
2098
2099
  },
2099
2100
  children: [
2100
- /* @__PURE__ */ d("div", { className: M.btnName, children: O }),
2101
+ /* @__PURE__ */ d("div", { className: O.btnName, children: R }),
2101
2102
  /* @__PURE__ */ d(
2102
2103
  pe,
2103
2104
  {
@@ -2108,16 +2109,16 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
2108
2109
  ]
2109
2110
  }
2110
2111
  ),
2111
- !R && /* @__PURE__ */ N(
2112
+ !L && /* @__PURE__ */ N(
2112
2113
  "div",
2113
2114
  {
2114
2115
  ref: X,
2115
- className: li(M.desktopWrapper, { [M.desktopWrapperOpen]: k }),
2116
+ className: li(O.desktopWrapper, { [O.desktopWrapperOpen]: w }),
2116
2117
  children: [
2117
2118
  /* @__PURE__ */ d(
2118
2119
  "div",
2119
2120
  {
2120
- className: M.closeBtn,
2121
+ className: O.closeBtn,
2121
2122
  onClick: () => {
2122
2123
  P();
2123
2124
  },
@@ -2130,18 +2131,18 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
2130
2131
  )
2131
2132
  }
2132
2133
  ),
2133
- /* @__PURE__ */ d("div", { className: M.modalTitle, children: "Фильтры" }),
2134
- /* @__PURE__ */ N("div", { className: M.tabSWitcherWrapper, children: [
2135
- /* @__PURE__ */ d("div", { className: M.switcherTitle, children: "Готовность" }),
2136
- /* @__PURE__ */ d("div", { className: M.switcherScroll, children: /* @__PURE__ */ d(
2134
+ /* @__PURE__ */ d("div", { className: O.modalTitle, children: "Фильтры" }),
2135
+ /* @__PURE__ */ N("div", { className: O.tabSWitcherWrapper, children: [
2136
+ /* @__PURE__ */ d("div", { className: O.switcherTitle, children: "Готовность" }),
2137
+ /* @__PURE__ */ d("div", { className: O.switcherScroll, children: /* @__PURE__ */ d(
2137
2138
  Oe,
2138
2139
  {
2139
2140
  variant: "grayRow",
2140
- addClassName: M.tabs,
2141
+ addClassName: O.tabs,
2141
2142
  isApart: !0,
2142
- children: r == null ? void 0 : r.map((D, Z) => {
2143
- var x;
2144
- const b = D.value;
2143
+ children: r == null ? void 0 : r.map((B, Z) => {
2144
+ var A;
2145
+ const b = B.value;
2145
2146
  return /* @__PURE__ */ d(
2146
2147
  Oe.Item,
2147
2148
  {
@@ -2150,14 +2151,14 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
2150
2151
  mini: !0,
2151
2152
  value: b,
2152
2153
  onClick: () => V(),
2153
- checked: ((x = j == null ? void 0 : j.find((C) => C.value === b)) == null ? void 0 : x.state) ?? !1,
2154
+ checked: ((A = j == null ? void 0 : j.find((C) => C.value === b)) == null ? void 0 : A.state) ?? !1,
2154
2155
  onChange: () => {
2155
- z == null || z(
2156
- (C) => C.map((B) => B.value === b ? { ...B, state: !B.state } : B)
2156
+ W == null || W(
2157
+ (C) => C.map((T) => T.value === b ? { ...T, state: !T.state } : T)
2157
2158
  );
2158
2159
  },
2159
2160
  index: Z,
2160
- addItemClassName: M.tabSwitcher,
2161
+ addItemClassName: O.tabSwitcher,
2161
2162
  children: b
2162
2163
  },
2163
2164
  Z
@@ -2166,27 +2167,27 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
2166
2167
  }
2167
2168
  ) })
2168
2169
  ] }),
2169
- /* @__PURE__ */ d("div", { className: M.selectWrapper, children: t == null ? void 0 : t.map((D, Z) => /* @__PURE__ */ d(
2170
+ /* @__PURE__ */ d("div", { className: O.selectWrapper, children: t == null ? void 0 : t.map((B, Z) => /* @__PURE__ */ d(
2170
2171
  bt,
2171
2172
  {
2172
2173
  sizeIcon: "24",
2173
- addClassName: M.filterOption,
2174
+ addClassName: O.filterOption,
2174
2175
  disabledOptions: [],
2175
2176
  clickableOptions: t == null ? void 0 : t.map((b) => b.value.toString()),
2176
2177
  selectedOptions: S,
2177
- option: D,
2178
+ option: B,
2178
2179
  handleOptionClick: F
2179
2180
  },
2180
2181
  Z
2181
2182
  )) }),
2182
- /* @__PURE__ */ N("div", { className: M.btnWrapper, children: [
2183
+ /* @__PURE__ */ N("div", { className: O.btnWrapper, children: [
2183
2184
  /* @__PURE__ */ d(
2184
2185
  ye,
2185
2186
  {
2186
2187
  as: "button",
2187
2188
  variant: "gray",
2188
- additionalClass: M.resetBtn,
2189
- onClick: E,
2189
+ additionalClass: O.resetBtn,
2190
+ onClick: D,
2190
2191
  children: "Сбросить"
2191
2192
  }
2192
2193
  ),
@@ -2194,8 +2195,8 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
2194
2195
  ye,
2195
2196
  {
2196
2197
  as: "button",
2197
- additionalClass: M.saveBtn,
2198
- onClick: L,
2198
+ additionalClass: O.saveBtn,
2199
+ onClick: z,
2199
2200
  children: "Сохранить"
2200
2201
  }
2201
2202
  )
@@ -2204,15 +2205,15 @@ const ii = /* @__PURE__ */ Kt(si), ni = ({
2204
2205
  }
2205
2206
  )
2206
2207
  ] }),
2207
- R && /* @__PURE__ */ d(
2208
+ L && /* @__PURE__ */ d(
2208
2209
  st,
2209
2210
  {
2210
- isOpen: k,
2211
- emitIsOpen: H,
2211
+ isOpen: w,
2212
+ emitIsOpen: J,
2212
2213
  isTransparentBack: !0,
2213
- additionalClassModalBody: M.modalAddBody,
2214
- additionalClass: M.filterWithSaveModal,
2215
- children: /* @__PURE__ */ d(T, {})
2214
+ additionalClassModalBody: O.modalAddBody,
2215
+ additionalClass: O.filterWithSaveModal,
2216
+ children: /* @__PURE__ */ d(E, {})
2216
2217
  }
2217
2218
  )
2218
2219
  ] });