stone-kit 0.0.952 → 0.0.954
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.js +1 -1
- package/dist/{FilterWithSave-nyKnOPeq.js → FilterWithSave-B22vajyV.js} +326 -326
- package/dist/{Menu-BtbUhvTF.js → Menu-C9AoAbny.js} +1 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +1 -1
- package/dist/components/FormModal/ui/ModalForm.js +1 -1
- package/dist/components/LotCard/hooks/useLotCard.js +1 -1
- package/dist/components/LotCard/index.js +1 -1
- package/dist/components/LotCard/ui/LotCard.js +1 -1
- package/dist/components/LotCard/ui/LotCard.types.d.ts +1 -1
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +1 -1
- package/dist/components/TabSwitcher/index.js +1 -1
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +1 -1
- package/dist/layout/components/Header/Header.js +2 -2
- package/dist/layout/components/Menu.js +2 -2
- package/dist/main.js +1 -1
- package/dist/pages/ButtonsPage/Buttons.js +1 -1
- package/dist/pages/FormsPage/FormsPage.js +1 -1
- package/dist/pages/IconsPage/IconsPage.js +1 -1
- package/dist/pages/InputPage/InputPage.js +1 -1
- package/dist/pages/LogoPage/LogoPage.js +1 -1
- package/dist/pages/LotsPage/LotsPage.js +1 -1
- package/dist/pages/ModalsPage/ModalPage.js +1 -1
- package/dist/pages/SelectPage/SelectPage.js +1 -1
- package/dist/pages/TabsPage/TabsPage.js +1 -1
- package/dist/pages/TagsPage/TagsPage.js +1 -1
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ import { getTagsFeatures as ir } from "./components/LotCard/utils/getTagsFeature
|
|
|
32
32
|
import { checkBedroomsCount as nr } from "./components/LotCard/utils/checkBedroomsCount.js";
|
|
33
33
|
import { formatPayment as ar } from "./components/LotCard/utils/monthlyPayment.js";
|
|
34
34
|
import { checkLargeOffice as lr } from "./shared/checkLargeOffice.js";
|
|
35
|
-
const or = "_root_14gc5_1", cr = "_text_14gc5_18", dr = "_textMini_14gc5_26", ur = "_rootCol_14gc5_32", fr = "_item_14gc5_38", pr = "_whiteRow_14gc5_57", mr = "_firstItem_14gc5_68", hr = "_lastItem_14gc5_72", yr = "_whiteRowGrayLabel_14gc5_103", vr = "_labelItem_14gc5_118", gr = "_apart_14gc5_147", br = "_isLong_14gc5_147", Fr = "_autoWidth_14gc5_172", wr = "_mini_14gc5_176", xr = "_isDisabled_14gc5_184", Sr = "_grayRow_14gc5_208",
|
|
35
|
+
const or = "_root_14gc5_1", cr = "_text_14gc5_18", dr = "_textMini_14gc5_26", ur = "_rootCol_14gc5_32", fr = "_item_14gc5_38", pr = "_whiteRow_14gc5_57", mr = "_firstItem_14gc5_68", hr = "_lastItem_14gc5_72", yr = "_whiteRowGrayLabel_14gc5_103", vr = "_labelItem_14gc5_118", gr = "_apart_14gc5_147", br = "_isLong_14gc5_147", Fr = "_autoWidth_14gc5_172", wr = "_mini_14gc5_176", xr = "_isDisabled_14gc5_184", Sr = "_grayRow_14gc5_208", Q = {
|
|
36
36
|
root: or,
|
|
37
37
|
text: cr,
|
|
38
38
|
textMini: dr,
|
|
@@ -69,13 +69,13 @@ const or = "_root_14gc5_1", cr = "_text_14gc5_18", dr = "_textMini_14gc5_26", ur
|
|
|
69
69
|
"text-small-size_l": "_text-small-size_l_14gc5_325",
|
|
70
70
|
"text-medium-size_l": "_text-medium-size_l_14gc5_329",
|
|
71
71
|
"text-large-size_l": "_text-large-size_l_14gc5_333"
|
|
72
|
-
}, Le = Re.bind(
|
|
72
|
+
}, Le = Re.bind(Q), Ar = ({
|
|
73
73
|
children: e,
|
|
74
74
|
variant: r = "whiteRow",
|
|
75
75
|
isApart: t = !1,
|
|
76
76
|
addClassName: n = "",
|
|
77
77
|
col: a = !1
|
|
78
|
-
}) => /* @__PURE__ */ c("div", { className: Le(
|
|
78
|
+
}) => /* @__PURE__ */ c("div", { className: Le(Q.root, Q[r], { [Q.rootCol]: a, [Q.apart]: t }, n), children: e }), Tt = Yt((e, r) => {
|
|
79
79
|
const { isTablet: t, isDesktop: n } = Me(), {
|
|
80
80
|
index: a,
|
|
81
81
|
children: i,
|
|
@@ -85,23 +85,23 @@ const or = "_root_14gc5_1", cr = "_text_14gc5_18", dr = "_textMini_14gc5_26", ur
|
|
|
85
85
|
size_s: S = "large",
|
|
86
86
|
size_m: v,
|
|
87
87
|
size_l: y,
|
|
88
|
-
disabled:
|
|
89
|
-
itemsLength:
|
|
88
|
+
disabled: L = !1,
|
|
89
|
+
itemsLength: z = 0,
|
|
90
90
|
isLongOn: T = !0,
|
|
91
|
-
width:
|
|
91
|
+
width: R,
|
|
92
92
|
width_m: P,
|
|
93
|
-
width_l:
|
|
93
|
+
width_l: E,
|
|
94
94
|
mini: F = !1,
|
|
95
|
-
...
|
|
96
|
-
} = e,
|
|
97
|
-
return /* @__PURE__ */ k("label", { className: Le(
|
|
95
|
+
...M
|
|
96
|
+
} = e, X = (i != null && i.toString().length ? (i == null ? void 0 : i.toString().length) > 2 : !1) && T, x = (J, U) => J && P ? P : U && E ? E : R, V = !R && !P && !E && X;
|
|
97
|
+
return /* @__PURE__ */ k("label", { className: Le(Q.labelItem, { [Q.isLong]: X }, f), children: [
|
|
98
98
|
/* @__PURE__ */ c(
|
|
99
99
|
"input",
|
|
100
100
|
{
|
|
101
101
|
ref: r,
|
|
102
102
|
type: "checkbox",
|
|
103
|
-
...
|
|
104
|
-
disabled:
|
|
103
|
+
...M,
|
|
104
|
+
disabled: L
|
|
105
105
|
}
|
|
106
106
|
),
|
|
107
107
|
/* @__PURE__ */ c(
|
|
@@ -110,15 +110,15 @@ const or = "_root_14gc5_1", cr = "_text_14gc5_18", dr = "_textMini_14gc5_26", ur
|
|
|
110
110
|
style: { width: x(t, n) },
|
|
111
111
|
className: Le(
|
|
112
112
|
Le(
|
|
113
|
-
|
|
114
|
-
{ [
|
|
115
|
-
{ [
|
|
116
|
-
{ [
|
|
117
|
-
{ [
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
{ [
|
|
113
|
+
Q.item,
|
|
114
|
+
{ [Q.firstItem]: a === 0 },
|
|
115
|
+
{ [Q.lastItem]: a === z - 1 },
|
|
116
|
+
{ [Q.isDisabled]: L },
|
|
117
|
+
{ [Q.autoWidth]: V },
|
|
118
|
+
Q[`${S}-size`],
|
|
119
|
+
Q[`${v}-size_m`],
|
|
120
|
+
Q[`${y}-size_l`],
|
|
121
|
+
{ [Q.mini]: F }
|
|
122
122
|
),
|
|
123
123
|
d
|
|
124
124
|
),
|
|
@@ -126,11 +126,11 @@ const or = "_root_14gc5_1", cr = "_text_14gc5_18", dr = "_textMini_14gc5_26", ur
|
|
|
126
126
|
nt,
|
|
127
127
|
{
|
|
128
128
|
className: Le(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
{ [
|
|
129
|
+
Q.text,
|
|
130
|
+
Q[`text-${S}-size`],
|
|
131
|
+
Q[`text-${v}-size_m`],
|
|
132
|
+
Q[`text-${y}-size_l`],
|
|
133
|
+
{ [Q.textMini]: F },
|
|
134
134
|
C
|
|
135
135
|
),
|
|
136
136
|
children: i
|
|
@@ -193,10 +193,10 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
193
193
|
isCorner: S,
|
|
194
194
|
windowViews: v,
|
|
195
195
|
subTypeName: y,
|
|
196
|
-
number:
|
|
197
|
-
bedroomsCount:
|
|
196
|
+
number: L,
|
|
197
|
+
bedroomsCount: z,
|
|
198
198
|
mortgageMonthlyPayment: T
|
|
199
|
-
} = e, [
|
|
199
|
+
} = e, [R, P] = Se(!1), E = t === 2, F = n === 1, M = C === 11, X = a ? a + " м²" : "", x = i && f ? (d && d !== i ? i + "-" + d : i) + " из " + f : "", V = ir({ ...e }), { isTablet: J, isDesktop: U, isMobile: D, currentClientWidth: W } = Me(), I = typeof r < "u" ? r : U || J, g = () => M ? f ? "Кол-во этажей: " + f : "" : x ? "Этаж: " + x : "", N = () => M ? f ? /* @__PURE__ */ k("li", { className: ke(w.lotPropertyItem), children: [
|
|
200
200
|
/* @__PURE__ */ c("div", { children: "Количество этажей" }),
|
|
201
201
|
/* @__PURE__ */ c("div", { children: f })
|
|
202
202
|
] }) : null : x ? /* @__PURE__ */ k("li", { className: ke(w.lotPropertyItem), children: [
|
|
@@ -207,44 +207,44 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
207
207
|
if (D && (!v || v.length === 0))
|
|
208
208
|
return null;
|
|
209
209
|
let q = 0;
|
|
210
|
-
const
|
|
210
|
+
const Z = U ? 36 : 28, H = [], se = [];
|
|
211
211
|
if (S) {
|
|
212
|
-
const
|
|
213
|
-
if (q +
|
|
214
|
-
|
|
212
|
+
const Y = "Угловая";
|
|
213
|
+
if (q + Y.length <= Z)
|
|
214
|
+
H.push(Y), q += Y.length;
|
|
215
215
|
else
|
|
216
|
-
return
|
|
216
|
+
return H;
|
|
217
217
|
}
|
|
218
218
|
if (v) {
|
|
219
|
-
const
|
|
219
|
+
const Y = v.filter((pe) => pe && pe.trim() !== "");
|
|
220
220
|
let le = 0, fe = q;
|
|
221
|
-
for (let pe = 0; pe <
|
|
222
|
-
const me =
|
|
223
|
-
if (fe + oe.length <=
|
|
224
|
-
|
|
221
|
+
for (let pe = 0; pe < Y.length; pe++) {
|
|
222
|
+
const me = Y[pe], oe = le > 0 ? " " + me : me;
|
|
223
|
+
if (fe + oe.length <= Z)
|
|
224
|
+
H.push(me), fe += oe.length, le++;
|
|
225
225
|
else {
|
|
226
226
|
if (le === 0) {
|
|
227
|
-
const ye =
|
|
227
|
+
const ye = Z - fe;
|
|
228
228
|
if (ye > 3) {
|
|
229
229
|
const Ce = me.substring(0, ye - 3) + "...";
|
|
230
|
-
|
|
230
|
+
H.push(Ce), fe = Z;
|
|
231
231
|
} else
|
|
232
|
-
|
|
232
|
+
H.push("..."), fe += 3;
|
|
233
233
|
}
|
|
234
|
-
se.push(...
|
|
234
|
+
se.push(...Y.slice(pe));
|
|
235
235
|
break;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
q = fe;
|
|
239
239
|
}
|
|
240
240
|
return /* @__PURE__ */ k("div", { className: w.retailSnippets, children: [
|
|
241
|
-
/* @__PURE__ */ c("ul", { className: w.shownSnippets, children:
|
|
241
|
+
/* @__PURE__ */ c("ul", { className: w.shownSnippets, children: H == null ? void 0 : H.map((Y, le) => /* @__PURE__ */ c("li", { children: Y }, le)) }),
|
|
242
242
|
(se == null ? void 0 : se.length) > 0 && /* @__PURE__ */ k(
|
|
243
243
|
"div",
|
|
244
244
|
{
|
|
245
|
-
className: ke(w.addSnippets, { [w.addSnippetsActive]:
|
|
246
|
-
onClick: (
|
|
247
|
-
U || (
|
|
245
|
+
className: ke(w.addSnippets, { [w.addSnippetsActive]: R }),
|
|
246
|
+
onClick: (Y) => {
|
|
247
|
+
U || (Y.stopPropagation(), Y.preventDefault(), P((le) => !le));
|
|
248
248
|
},
|
|
249
249
|
onMouseEnter: () => {
|
|
250
250
|
U && P(!0);
|
|
@@ -254,8 +254,8 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
254
254
|
},
|
|
255
255
|
children: [
|
|
256
256
|
"+" + (se == null ? void 0 : se.length),
|
|
257
|
-
|
|
258
|
-
se.map((
|
|
257
|
+
R && /* @__PURE__ */ k("ul", { className: w.addSnippetsList, children: [
|
|
258
|
+
se.map((Y, le) => /* @__PURE__ */ c("li", { children: Y }, le)),
|
|
259
259
|
/* @__PURE__ */ c("div", { className: w.closeSnippetBtn, children: /* @__PURE__ */ c(
|
|
260
260
|
be,
|
|
261
261
|
{
|
|
@@ -270,47 +270,47 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
270
270
|
)
|
|
271
271
|
] });
|
|
272
272
|
}
|
|
273
|
-
return /* @__PURE__ */ c("div", { className: w.snippets, children:
|
|
274
|
-
const
|
|
273
|
+
return /* @__PURE__ */ c("div", { className: w.snippets, children: V.map((q, Z) => {
|
|
274
|
+
const H = Z === V.length - 1;
|
|
275
275
|
return /* @__PURE__ */ c(
|
|
276
276
|
"div",
|
|
277
277
|
{
|
|
278
|
-
className: ke(w.snippet,
|
|
278
|
+
className: ke(w.snippet, H ? "" : w.snippetLast),
|
|
279
279
|
children: q.text
|
|
280
280
|
},
|
|
281
|
-
|
|
281
|
+
Z
|
|
282
282
|
);
|
|
283
283
|
}) });
|
|
284
284
|
};
|
|
285
285
|
return {
|
|
286
286
|
currentClientWidth: W,
|
|
287
|
-
isBuilding:
|
|
287
|
+
isBuilding: M,
|
|
288
288
|
LotCardInfo: () => {
|
|
289
|
-
const q = F && C && y ? y : nr(
|
|
289
|
+
const q = F && C && y ? y : nr(z), Z = M ? q : `${q}${L ? `, ${L}` : ""}`;
|
|
290
290
|
return /* @__PURE__ */ c(st, { children: /* @__PURE__ */ k("div", { className: ke(w.monthlyWrapper), children: [
|
|
291
|
-
|
|
291
|
+
Z && /* @__PURE__ */ c(
|
|
292
292
|
nt,
|
|
293
293
|
{
|
|
294
294
|
className: ke(w.infoHeader),
|
|
295
|
-
html:
|
|
295
|
+
html: Z
|
|
296
296
|
}
|
|
297
297
|
),
|
|
298
298
|
T && /* @__PURE__ */ c("div", { className: w.monthlyPayment, children: ar(T) }),
|
|
299
299
|
/* @__PURE__ */ c(B, {})
|
|
300
300
|
] }) });
|
|
301
301
|
},
|
|
302
|
-
tagFeatures:
|
|
302
|
+
tagFeatures: V,
|
|
303
303
|
FloorByType: N,
|
|
304
|
-
isTablet:
|
|
304
|
+
isTablet: J,
|
|
305
305
|
isDesktop: U,
|
|
306
306
|
getFloorStr: g,
|
|
307
|
-
isReserved:
|
|
307
|
+
isReserved: E,
|
|
308
308
|
isMobile: D,
|
|
309
|
-
areaStr:
|
|
309
|
+
areaStr: X,
|
|
310
310
|
floorStr: x,
|
|
311
|
-
isShowSnippet:
|
|
311
|
+
isShowSnippet: R,
|
|
312
312
|
setIsShowSnippet: P,
|
|
313
|
-
rowConditionsVar:
|
|
313
|
+
rowConditionsVar: I
|
|
314
314
|
};
|
|
315
315
|
}, ie = Re.bind(w), Ki = ({
|
|
316
316
|
lot: e,
|
|
@@ -323,34 +323,34 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
323
323
|
rowConditions: f,
|
|
324
324
|
addClassnameLotImage: C
|
|
325
325
|
}) => {
|
|
326
|
-
var A, q;
|
|
326
|
+
var A, q, Z;
|
|
327
327
|
const {
|
|
328
328
|
housing: S,
|
|
329
329
|
sellingPricePerMeter: v,
|
|
330
330
|
interiorPlanImg: y,
|
|
331
|
-
direction:
|
|
332
|
-
floorPlanImg:
|
|
331
|
+
direction: L,
|
|
332
|
+
floorPlanImg: z,
|
|
333
333
|
discount: T,
|
|
334
|
-
sellingPrice:
|
|
334
|
+
sellingPrice: R,
|
|
335
335
|
sellingPriceBeforeDiscount: P
|
|
336
|
-
} = e,
|
|
336
|
+
} = e, E = lr(e), {
|
|
337
337
|
getFloorStr: F,
|
|
338
|
-
FloorByType:
|
|
339
|
-
areaStr:
|
|
338
|
+
FloorByType: M,
|
|
339
|
+
areaStr: X,
|
|
340
340
|
isReserved: x,
|
|
341
|
-
rowConditionsVar:
|
|
342
|
-
currentClientWidth:
|
|
341
|
+
rowConditionsVar: V,
|
|
342
|
+
currentClientWidth: J,
|
|
343
343
|
isMobile: U,
|
|
344
344
|
isBuilding: D,
|
|
345
345
|
LotCardInfo: W
|
|
346
|
-
} = us({ lot: e, rowConditions: f }),
|
|
347
|
-
if (!
|
|
346
|
+
} = us({ lot: e, rowConditions: f }), I = !!((q = (A = e.project) == null ? void 0 : A.showPriceSubType) != null && q.some((H) => Number(H.filter) === e.subType));
|
|
347
|
+
if (console.log(I, (Z = e.project) == null ? void 0 : Z.showPriceSubType, e.subType), !J)
|
|
348
348
|
return null;
|
|
349
349
|
const g = () => /* @__PURE__ */ c("div", { className: ie(w.lotImageWrapper, C), children: d || /* @__PURE__ */ c(
|
|
350
350
|
"img",
|
|
351
351
|
{
|
|
352
352
|
loading: "lazy",
|
|
353
|
-
src: y ??
|
|
353
|
+
src: y ?? z ?? ds,
|
|
354
354
|
width: 280,
|
|
355
355
|
height: 200,
|
|
356
356
|
alt: "logo_image"
|
|
@@ -364,8 +364,8 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
364
364
|
disabled: n,
|
|
365
365
|
variant: "whiteStroke",
|
|
366
366
|
additionalClass: w.fullscreenBtn,
|
|
367
|
-
onClick: (
|
|
368
|
-
|
|
367
|
+
onClick: (H) => {
|
|
368
|
+
H.preventDefault(), t && t();
|
|
369
369
|
},
|
|
370
370
|
children: /* @__PURE__ */ c(
|
|
371
371
|
be,
|
|
@@ -395,19 +395,19 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
395
395
|
color: "#777E90"
|
|
396
396
|
}
|
|
397
397
|
) : void 0,
|
|
398
|
-
onClick: (
|
|
399
|
-
|
|
398
|
+
onClick: (H) => {
|
|
399
|
+
H.preventDefault(), r(H);
|
|
400
400
|
},
|
|
401
401
|
children: i
|
|
402
402
|
}
|
|
403
403
|
)
|
|
404
404
|
] }), B = () => /* @__PURE__ */ k("div", { className: w.rootRightSide, children: [
|
|
405
405
|
/* @__PURE__ */ k("div", { className: w.topWrapper, children: [
|
|
406
|
-
|
|
406
|
+
V && /* @__PURE__ */ c(W, {}),
|
|
407
407
|
!U && !x && /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "flex-start" }, children: /* @__PURE__ */ k("div", { className: w.priceWrap, children: [
|
|
408
|
-
/* @__PURE__ */ c("div", { className: w.discountWrapper, children: !
|
|
409
|
-
/* @__PURE__ */ c("span", { children:
|
|
410
|
-
|
|
408
|
+
/* @__PURE__ */ c("div", { className: w.discountWrapper, children: !E && T && R && P && V && /* @__PURE__ */ k("div", { className: ie(w.discountPrice), children: [
|
|
409
|
+
/* @__PURE__ */ c("span", { children: I && Be(P ?? R, !1, L) }),
|
|
410
|
+
I && /* @__PURE__ */ c(
|
|
411
411
|
We,
|
|
412
412
|
{
|
|
413
413
|
additionalClass: ie(w.discountTag),
|
|
@@ -417,40 +417,40 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
417
417
|
}
|
|
418
418
|
)
|
|
419
419
|
] }) }),
|
|
420
|
-
!
|
|
420
|
+
!E && V && /* @__PURE__ */ c(
|
|
421
421
|
"div",
|
|
422
422
|
{
|
|
423
423
|
className: w.price,
|
|
424
|
-
children:
|
|
424
|
+
children: I ? Be(R, !1, L) : "Цена по запросу"
|
|
425
425
|
}
|
|
426
426
|
),
|
|
427
|
-
|
|
427
|
+
E && V && /* @__PURE__ */ c("div", { className: w.price, children: "Цена по запросу" })
|
|
428
428
|
] }) }),
|
|
429
|
-
v && !x && /* @__PURE__ */ c("div", { className: ie(w.lotPricePerMetr, w.projectLotPricePerMetr), children: Be(v, !0,
|
|
429
|
+
v && !x && /* @__PURE__ */ c("div", { className: ie(w.lotPricePerMetr, w.projectLotPricePerMetr), children: Be(v, !0, L) })
|
|
430
430
|
] }),
|
|
431
431
|
/* @__PURE__ */ k("div", { className: w.botWrapper, children: [
|
|
432
|
-
/* @__PURE__ */ c("div", { className: ie(w.lotPriceWrapper, w.infoWrapper, { [w.lotPriceWrapperRow]: !
|
|
432
|
+
/* @__PURE__ */ c("div", { className: ie(w.lotPriceWrapper, w.infoWrapper, { [w.lotPriceWrapperRow]: !V }), children: /* @__PURE__ */ k("div", { className: ie(w.lotInfoWrapper), children: [
|
|
433
433
|
/* @__PURE__ */ k("div", { className: ie(w.lotPropertyListDesktop), children: [
|
|
434
|
-
|
|
434
|
+
X && /* @__PURE__ */ c(We, { variant: "gray", children: X }),
|
|
435
435
|
!D && S && /* @__PURE__ */ c(We, { variant: "gray", children: S }),
|
|
436
436
|
F() && /* @__PURE__ */ c(We, { variant: "gray", children: F() })
|
|
437
437
|
] }),
|
|
438
438
|
/* @__PURE__ */ k("ul", { className: ie(w.lotPropertyListMobile), children: [
|
|
439
|
-
|
|
439
|
+
X && /* @__PURE__ */ k("li", { className: ie(w.lotPropertyItem), children: [
|
|
440
440
|
/* @__PURE__ */ c("div", { children: "Площадь" }),
|
|
441
|
-
/* @__PURE__ */ c("div", { children:
|
|
441
|
+
/* @__PURE__ */ c("div", { children: X })
|
|
442
442
|
] }),
|
|
443
443
|
!D && S && /* @__PURE__ */ k("li", { className: ie(w.lotPropertyItem), children: [
|
|
444
444
|
/* @__PURE__ */ c("div", { children: S == null ? void 0 : S.split(" ")[0] }),
|
|
445
445
|
/* @__PURE__ */ c("div", { children: S == null ? void 0 : S.split(" ")[1] })
|
|
446
446
|
] }),
|
|
447
|
-
/* @__PURE__ */ c(
|
|
447
|
+
/* @__PURE__ */ c(M, {})
|
|
448
448
|
] })
|
|
449
449
|
] }) }),
|
|
450
|
-
(U && !x || !
|
|
451
|
-
/* @__PURE__ */ c("div", { className: w.discountWrapper, children: !
|
|
452
|
-
|
|
453
|
-
|
|
450
|
+
(U && !x || !V) && /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "flex-start" }, children: /* @__PURE__ */ k("div", { className: w.priceWrap, children: [
|
|
451
|
+
/* @__PURE__ */ c("div", { className: w.discountWrapper, children: !E && T && R && P && /* @__PURE__ */ k("div", { className: ie(w.discountPrice), children: [
|
|
452
|
+
I && /* @__PURE__ */ c("span", { children: Be(P ?? R, !1, L) }),
|
|
453
|
+
I && /* @__PURE__ */ c(
|
|
454
454
|
We,
|
|
455
455
|
{
|
|
456
456
|
additionalClass: ie(w.discountTag),
|
|
@@ -460,14 +460,14 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
460
460
|
}
|
|
461
461
|
)
|
|
462
462
|
] }) }),
|
|
463
|
-
!
|
|
463
|
+
!E && /* @__PURE__ */ c(
|
|
464
464
|
"div",
|
|
465
465
|
{
|
|
466
466
|
className: w.price,
|
|
467
|
-
children:
|
|
467
|
+
children: I ? Be(R, !1, L) : "Цена по запросу"
|
|
468
468
|
}
|
|
469
469
|
),
|
|
470
|
-
|
|
470
|
+
E && /* @__PURE__ */ c("div", { className: w.price, children: "Цена по запросу" })
|
|
471
471
|
] }) }),
|
|
472
472
|
/* @__PURE__ */ c(N, {})
|
|
473
473
|
] })
|
|
@@ -477,13 +477,13 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
477
477
|
{
|
|
478
478
|
className: ie(w.root, a, {
|
|
479
479
|
[w.rootDisable]: x,
|
|
480
|
-
[w.rootRow]:
|
|
481
|
-
[w.rowTablet]: !
|
|
480
|
+
[w.rootRow]: V,
|
|
481
|
+
[w.rowTablet]: !V
|
|
482
482
|
}),
|
|
483
483
|
"data-testid": "lot_card",
|
|
484
484
|
children: [
|
|
485
485
|
/* @__PURE__ */ c(g, {}),
|
|
486
|
-
!
|
|
486
|
+
!V && /* @__PURE__ */ c("div", { className: ie(w.title), children: /* @__PURE__ */ c(W, {}) }),
|
|
487
487
|
/* @__PURE__ */ c(B, {})
|
|
488
488
|
]
|
|
489
489
|
}
|
|
@@ -501,26 +501,26 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
501
501
|
openOnTop: S = !1,
|
|
502
502
|
onClickItem: v,
|
|
503
503
|
onCLickSelect: y,
|
|
504
|
-
onOpenClick:
|
|
504
|
+
onOpenClick: L
|
|
505
505
|
}) => {
|
|
506
|
-
const [
|
|
506
|
+
const [z, T] = Se(!1), R = Pt(null), { isMobile: P } = Me(), { handleBlur: E, getInputValue: F, getOption: M, handleDocumentClick: X } = $t({
|
|
507
507
|
selectedOption: r,
|
|
508
508
|
onClickOption: v,
|
|
509
509
|
setSelectedOption: d,
|
|
510
510
|
setIsOpen: T,
|
|
511
|
-
containerRef:
|
|
512
|
-
isOpen:
|
|
511
|
+
containerRef: R,
|
|
512
|
+
isOpen: z,
|
|
513
513
|
isMobile: P,
|
|
514
514
|
placeholder: t,
|
|
515
515
|
onChange: d,
|
|
516
516
|
onBlur: f
|
|
517
517
|
});
|
|
518
|
-
return De(() => (document.addEventListener("click",
|
|
519
|
-
document.removeEventListener("click",
|
|
518
|
+
return De(() => (document.addEventListener("click", X), () => {
|
|
519
|
+
document.removeEventListener("click", X);
|
|
520
520
|
}), []), /* @__PURE__ */ k(
|
|
521
521
|
"div",
|
|
522
522
|
{
|
|
523
|
-
ref:
|
|
523
|
+
ref: R,
|
|
524
524
|
className: ze(
|
|
525
525
|
ne.sortSelectWrapper,
|
|
526
526
|
{ [ne.sortSelectWrapperError]: n },
|
|
@@ -528,7 +528,7 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
528
528
|
i
|
|
529
529
|
),
|
|
530
530
|
tabIndex: 0,
|
|
531
|
-
onBlur:
|
|
531
|
+
onBlur: E,
|
|
532
532
|
onClick: () => {
|
|
533
533
|
y && y();
|
|
534
534
|
},
|
|
@@ -546,7 +546,7 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
546
546
|
{ [ne.selectionOptionMini]: C }
|
|
547
547
|
),
|
|
548
548
|
onClick: () => {
|
|
549
|
-
|
|
549
|
+
z || L && L(), T(!z);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
),
|
|
@@ -559,10 +559,10 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
559
559
|
}
|
|
560
560
|
)
|
|
561
561
|
] }),
|
|
562
|
-
|
|
562
|
+
z && P && /* @__PURE__ */ k(
|
|
563
563
|
it,
|
|
564
564
|
{
|
|
565
|
-
isOpen:
|
|
565
|
+
isOpen: z,
|
|
566
566
|
emitIsOpen: T,
|
|
567
567
|
additionalClassModalBody: ne.modalAddBody,
|
|
568
568
|
additionalClass: ne.selectModal,
|
|
@@ -579,11 +579,11 @@ const je = Object.assign(Ar, { Item: Tt }), Cr = "_root_1h9b3_1", Nr = "_lotBtn_
|
|
|
579
579
|
}
|
|
580
580
|
) })
|
|
581
581
|
] }),
|
|
582
|
-
/* @__PURE__ */ c("div", { className: ne.mobileOptionList, children: e == null ? void 0 : e.map((x) =>
|
|
582
|
+
/* @__PURE__ */ c("div", { className: ne.mobileOptionList, children: e == null ? void 0 : e.map((x) => M(x)) })
|
|
583
583
|
]
|
|
584
584
|
}
|
|
585
585
|
),
|
|
586
|
-
|
|
586
|
+
z && !P && /* @__PURE__ */ c("div", { className: ze(ne.optionsList, { [ne.optionListOnTop]: S }), children: e == null ? void 0 : e.map((x) => M(x)) })
|
|
587
587
|
]
|
|
588
588
|
}
|
|
589
589
|
);
|
|
@@ -627,11 +627,11 @@ function ce(e) {
|
|
|
627
627
|
return e;
|
|
628
628
|
return r;
|
|
629
629
|
}
|
|
630
|
-
var Je = (e) => Array.isArray(e) ? e.filter(Boolean) : [],
|
|
630
|
+
var Je = (e) => Array.isArray(e) ? e.filter(Boolean) : [], K = (e) => e === void 0, p = (e, r, t) => {
|
|
631
631
|
if (!r || !te(e))
|
|
632
632
|
return t;
|
|
633
633
|
const n = Je(r.split(/[,[\].]+?/)).reduce((a, i) => ae(a) ? a : a[i], e);
|
|
634
|
-
return
|
|
634
|
+
return K(n) || n === e ? K(e[r]) ? t : e[r] : n;
|
|
635
635
|
}, ve = (e) => typeof e == "boolean", lt = (e) => /^\w*$/.test(e), Lt = (e) => Je(e.replace(/["|']|\]/g, "").split(/\.|\[/)), G = (e, r, t) => {
|
|
636
636
|
let n = -1;
|
|
637
637
|
const a = lt(r) ? [r] : Lt(r), i = a.length, d = i - 1;
|
|
@@ -746,13 +746,13 @@ function Bs(e) {
|
|
|
746
746
|
...ve(e.disabled) ? { disabled: e.disabled } : {}
|
|
747
747
|
}));
|
|
748
748
|
return _.useEffect(() => {
|
|
749
|
-
const v = a._options.shouldUnregister || i, y = (
|
|
750
|
-
const T = p(a._fields,
|
|
751
|
-
T && T._f && (T._f.mount =
|
|
749
|
+
const v = a._options.shouldUnregister || i, y = (L, z) => {
|
|
750
|
+
const T = p(a._fields, L);
|
|
751
|
+
T && T._f && (T._f.mount = z);
|
|
752
752
|
};
|
|
753
753
|
if (y(t, !0), v) {
|
|
754
|
-
const
|
|
755
|
-
G(a._defaultValues, t,
|
|
754
|
+
const L = ce(p(a._options.defaultValues, t));
|
|
755
|
+
G(a._defaultValues, t, L), K(p(a._formValues, t)) && G(a._formValues, t, L);
|
|
756
756
|
}
|
|
757
757
|
return () => {
|
|
758
758
|
(d ? v && !a._state.action : v) ? a.unregister(t) : y(t, !1);
|
|
@@ -788,7 +788,7 @@ function Bs(e) {
|
|
|
788
788
|
y && v && (y._f.ref = {
|
|
789
789
|
focus: () => v.focus(),
|
|
790
790
|
select: () => v.select(),
|
|
791
|
-
setCustomValidity: (
|
|
791
|
+
setCustomValidity: (L) => v.setCustomValidity(L),
|
|
792
792
|
reportValidity: () => v.reportValidity()
|
|
793
793
|
});
|
|
794
794
|
}, [a._fields, t])
|
|
@@ -869,7 +869,7 @@ var Mt = (e) => {
|
|
|
869
869
|
}
|
|
870
870
|
return e[0].checked && !e[0].disabled ? (
|
|
871
871
|
// @ts-expect-error expected to work in the browser
|
|
872
|
-
e[0].attributes && !
|
|
872
|
+
e[0].attributes && !K(e[0].attributes.value) ? K(e[0].value) || e[0].value === "" ? St : { value: e[0].value, isValid: !0 } : St
|
|
873
873
|
) : xt;
|
|
874
874
|
}
|
|
875
875
|
return xt;
|
|
@@ -894,29 +894,29 @@ var Pe = (e) => te(e) && !Ge(e) ? e : {
|
|
|
894
894
|
value: e,
|
|
895
895
|
message: ""
|
|
896
896
|
}, Nt = async (e, r, t, n, a) => {
|
|
897
|
-
const { ref: i, refs: d, required: f, maxLength: C, minLength: S, min: v, max: y, pattern:
|
|
898
|
-
if (!P ||
|
|
897
|
+
const { ref: i, refs: d, required: f, maxLength: C, minLength: S, min: v, max: y, pattern: L, validate: z, name: T, valueAsNumber: R, mount: P, disabled: E } = e._f, F = p(r, T);
|
|
898
|
+
if (!P || E)
|
|
899
899
|
return {};
|
|
900
|
-
const
|
|
901
|
-
n &&
|
|
902
|
-
}, x = {},
|
|
903
|
-
const
|
|
900
|
+
const M = d ? d[0] : i, X = (g) => {
|
|
901
|
+
n && M.reportValidity && (M.setCustomValidity(ve(g) ? "" : g || ""), M.reportValidity());
|
|
902
|
+
}, x = {}, V = ut(i), J = Oe(i), U = V || J, D = (R || dt(i)) && K(i.value) && K(F) || qe(i) && i.value === "" || F === "" || Array.isArray(F) && !F.length, W = Ls.bind(null, T, t, x), I = (g, N, B, A = Fe.maxLength, q = Fe.minLength) => {
|
|
903
|
+
const Z = g ? N : B;
|
|
904
904
|
x[T] = {
|
|
905
905
|
type: g ? A : q,
|
|
906
|
-
message:
|
|
906
|
+
message: Z,
|
|
907
907
|
ref: i,
|
|
908
|
-
...W(g ? A : q,
|
|
908
|
+
...W(g ? A : q, Z)
|
|
909
909
|
};
|
|
910
910
|
};
|
|
911
|
-
if (a ? !Array.isArray(F) || !F.length : f && (!U && (D || ae(F)) || ve(F) && !F ||
|
|
911
|
+
if (a ? !Array.isArray(F) || !F.length : f && (!U && (D || ae(F)) || ve(F) && !F || J && !Mt(d).isValid || V && !Ot(d).isValid)) {
|
|
912
912
|
const { value: g, message: N } = Ze(f) ? { value: !!f, message: f } : Pe(f);
|
|
913
913
|
if (g && (x[T] = {
|
|
914
914
|
type: Fe.required,
|
|
915
915
|
message: N,
|
|
916
|
-
ref:
|
|
916
|
+
ref: M,
|
|
917
917
|
...W(Fe.required, N)
|
|
918
918
|
}, !t))
|
|
919
|
-
return
|
|
919
|
+
return X(N), x;
|
|
920
920
|
}
|
|
921
921
|
if (!D && (!ae(v) || !ae(y))) {
|
|
922
922
|
let g, N;
|
|
@@ -925,65 +925,65 @@ var Pe = (e) => te(e) && !Ge(e) ? e : {
|
|
|
925
925
|
const q = i.valueAsNumber || F && +F;
|
|
926
926
|
ae(B.value) || (g = q > B.value), ae(A.value) || (N = q < A.value);
|
|
927
927
|
} else {
|
|
928
|
-
const q = i.valueAsDate || new Date(F),
|
|
929
|
-
ge(B.value) && F && (g =
|
|
928
|
+
const q = i.valueAsDate || new Date(F), Z = (Y) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Y), H = i.type == "time", se = i.type == "week";
|
|
929
|
+
ge(B.value) && F && (g = H ? Z(F) > Z(B.value) : se ? F > B.value : q > new Date(B.value)), ge(A.value) && F && (N = H ? Z(F) < Z(A.value) : se ? F < A.value : q < new Date(A.value));
|
|
930
930
|
}
|
|
931
|
-
if ((g || N) && (
|
|
932
|
-
return
|
|
931
|
+
if ((g || N) && (I(!!g, B.message, A.message, Fe.max, Fe.min), !t))
|
|
932
|
+
return X(x[T].message), x;
|
|
933
933
|
}
|
|
934
934
|
if ((C || S) && !D && (ge(F) || a && Array.isArray(F))) {
|
|
935
935
|
const g = Pe(C), N = Pe(S), B = !ae(g.value) && F.length > +g.value, A = !ae(N.value) && F.length < +N.value;
|
|
936
|
-
if ((B || A) && (
|
|
937
|
-
return
|
|
936
|
+
if ((B || A) && (I(B, g.message, N.message), !t))
|
|
937
|
+
return X(x[T].message), x;
|
|
938
938
|
}
|
|
939
|
-
if (
|
|
940
|
-
const { value: g, message: N } = Pe(
|
|
939
|
+
if (L && !D && ge(F)) {
|
|
940
|
+
const { value: g, message: N } = Pe(L);
|
|
941
941
|
if (Ge(g) && !F.match(g) && (x[T] = {
|
|
942
942
|
type: Fe.pattern,
|
|
943
943
|
message: N,
|
|
944
944
|
ref: i,
|
|
945
945
|
...W(Fe.pattern, N)
|
|
946
946
|
}, !t))
|
|
947
|
-
return
|
|
947
|
+
return X(N), x;
|
|
948
948
|
}
|
|
949
|
-
if (
|
|
950
|
-
if (xe(
|
|
951
|
-
const g = await
|
|
949
|
+
if (z) {
|
|
950
|
+
if (xe(z)) {
|
|
951
|
+
const g = await z(F, r), N = Ct(g, M);
|
|
952
952
|
if (N && (x[T] = {
|
|
953
953
|
...N,
|
|
954
954
|
...W(Fe.validate, N.message)
|
|
955
955
|
}, !t))
|
|
956
|
-
return
|
|
957
|
-
} else if (te(
|
|
956
|
+
return X(N.message), x;
|
|
957
|
+
} else if (te(z)) {
|
|
958
958
|
let g = {};
|
|
959
|
-
for (const N in
|
|
959
|
+
for (const N in z) {
|
|
960
960
|
if (!de(g) && !t)
|
|
961
961
|
break;
|
|
962
|
-
const B = Ct(await
|
|
962
|
+
const B = Ct(await z[N](F, r), M, N);
|
|
963
963
|
B && (g = {
|
|
964
964
|
...B,
|
|
965
965
|
...W(N, B.message)
|
|
966
|
-
},
|
|
966
|
+
}, X(B.message), t && (x[T] = g));
|
|
967
967
|
}
|
|
968
968
|
if (!de(g) && (x[T] = {
|
|
969
|
-
ref:
|
|
969
|
+
ref: M,
|
|
970
970
|
...g
|
|
971
971
|
}, !t))
|
|
972
972
|
return x;
|
|
973
973
|
}
|
|
974
974
|
}
|
|
975
|
-
return
|
|
975
|
+
return X(!0), x;
|
|
976
976
|
};
|
|
977
977
|
function Vs(e, r) {
|
|
978
978
|
const t = r.slice(0, -1).length;
|
|
979
979
|
let n = 0;
|
|
980
980
|
for (; n < t; )
|
|
981
|
-
e =
|
|
981
|
+
e = K(e) ? n++ : e[r[n++]];
|
|
982
982
|
return e;
|
|
983
983
|
}
|
|
984
984
|
function Ds(e) {
|
|
985
985
|
for (const r in e)
|
|
986
|
-
if (e.hasOwnProperty(r) && !
|
|
986
|
+
if (e.hasOwnProperty(r) && !K(e[r]))
|
|
987
987
|
return !1;
|
|
988
988
|
return !0;
|
|
989
989
|
}
|
|
@@ -1048,14 +1048,14 @@ function Xt(e, r, t) {
|
|
|
1048
1048
|
const n = Array.isArray(e);
|
|
1049
1049
|
if (te(e) || n)
|
|
1050
1050
|
for (const a in e)
|
|
1051
|
-
Array.isArray(e[a]) || te(e[a]) && !zt(e[a]) ?
|
|
1051
|
+
Array.isArray(e[a]) || te(e[a]) && !zt(e[a]) ? K(r) || _e(t[a]) ? t[a] = Array.isArray(e[a]) ? He(e[a], []) : { ...He(e[a]) } : Xt(e[a], ae(r) ? {} : r[a], t[a]) : t[a] = !Ae(e[a], r[a]);
|
|
1052
1052
|
return t;
|
|
1053
1053
|
}
|
|
1054
|
-
var Xe = (e, r) => Xt(e, r, He(r)), Zt = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: n }) =>
|
|
1054
|
+
var Xe = (e, r) => Xt(e, r, He(r)), Zt = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: n }) => K(e) ? e : r ? e === "" ? NaN : e && +e : t && ge(e) ? new Date(e) : n ? n(e) : e;
|
|
1055
1055
|
function rt(e) {
|
|
1056
1056
|
const r = e.ref;
|
|
1057
1057
|
if (!(e.refs ? e.refs.every((t) => t.disabled) : r.disabled))
|
|
1058
|
-
return dt(r) ? r.files : ut(r) ? Ot(e.refs).value : jt(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Oe(r) ? Mt(e.refs).value : Zt(
|
|
1058
|
+
return dt(r) ? r.files : ut(r) ? Ot(e.refs).value : jt(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Oe(r) ? Mt(e.refs).value : Zt(K(r.value) ? e.ref.value : r.value, e);
|
|
1059
1059
|
}
|
|
1060
1060
|
var Ms = (e, r, t, n) => {
|
|
1061
1061
|
const a = {};
|
|
@@ -1069,7 +1069,7 @@ var Ms = (e, r, t, n) => {
|
|
|
1069
1069
|
fields: a,
|
|
1070
1070
|
shouldUseNativeValidation: n
|
|
1071
1071
|
};
|
|
1072
|
-
}, Ie = (e) =>
|
|
1072
|
+
}, Ie = (e) => K(e) ? e : Ge(e) ? e.source : te(e) ? Ge(e.value) ? e.value.source : e.value : e, Os = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate);
|
|
1073
1073
|
function kt(e, r, t) {
|
|
1074
1074
|
const n = p(e, t);
|
|
1075
1075
|
if (n || lt(t))
|
|
@@ -1139,7 +1139,7 @@ function Zs(e = {}) {
|
|
|
1139
1139
|
values: et(),
|
|
1140
1140
|
array: et(),
|
|
1141
1141
|
state: et()
|
|
1142
|
-
},
|
|
1142
|
+
}, L = Ft(r.mode), z = Ft(r.reValidateMode), T = r.criteriaMode === he.all, R = (s) => (l) => {
|
|
1143
1143
|
clearTimeout(S), S = setTimeout(s, l);
|
|
1144
1144
|
}, P = async (s) => {
|
|
1145
1145
|
if (v.isValid || s) {
|
|
@@ -1148,7 +1148,7 @@ function Zs(e = {}) {
|
|
|
1148
1148
|
isValid: l
|
|
1149
1149
|
});
|
|
1150
1150
|
}
|
|
1151
|
-
},
|
|
1151
|
+
}, E = (s, l) => {
|
|
1152
1152
|
(v.isValidating || v.validatingFields) && ((s || Array.from(f.mount)).forEach((o) => {
|
|
1153
1153
|
o && (l ? G(t.validatingFields, o, l) : ee(t.validatingFields, o));
|
|
1154
1154
|
}), y.state.next({
|
|
@@ -1178,11 +1178,11 @@ function Zs(e = {}) {
|
|
|
1178
1178
|
});
|
|
1179
1179
|
} else
|
|
1180
1180
|
G(i, s, l);
|
|
1181
|
-
},
|
|
1181
|
+
}, M = (s, l) => {
|
|
1182
1182
|
G(t.errors, s, l), y.state.next({
|
|
1183
1183
|
errors: t.errors
|
|
1184
1184
|
});
|
|
1185
|
-
},
|
|
1185
|
+
}, X = (s) => {
|
|
1186
1186
|
t.errors = s, y.state.next({
|
|
1187
1187
|
errors: t.errors,
|
|
1188
1188
|
isValid: !1
|
|
@@ -1190,27 +1190,27 @@ function Zs(e = {}) {
|
|
|
1190
1190
|
}, x = (s, l, o, h) => {
|
|
1191
1191
|
const m = p(n, s);
|
|
1192
1192
|
if (m) {
|
|
1193
|
-
const u = p(i, s,
|
|
1194
|
-
|
|
1193
|
+
const u = p(i, s, K(o) ? p(a, s) : o);
|
|
1194
|
+
K(u) || h && h.defaultChecked || l ? G(i, s, l ? u : rt(m._f)) : A(s, u), d.mount && P();
|
|
1195
1195
|
}
|
|
1196
|
-
},
|
|
1196
|
+
}, V = (s, l, o, h, m) => {
|
|
1197
1197
|
let u = !1, b = !1;
|
|
1198
|
-
const
|
|
1198
|
+
const O = {
|
|
1199
1199
|
name: s
|
|
1200
|
-
},
|
|
1200
|
+
}, $ = !!(p(n, s) && p(n, s)._f && p(n, s)._f.disabled);
|
|
1201
1201
|
if (!o || h) {
|
|
1202
|
-
v.isDirty && (b = t.isDirty, t.isDirty =
|
|
1203
|
-
const ue =
|
|
1204
|
-
b = !!(
|
|
1202
|
+
v.isDirty && (b = t.isDirty, t.isDirty = O.isDirty = g(), u = b !== O.isDirty);
|
|
1203
|
+
const ue = $ || Ae(p(a, s), l);
|
|
1204
|
+
b = !!(!$ && p(t.dirtyFields, s)), ue || $ ? ee(t.dirtyFields, s) : G(t.dirtyFields, s, !0), O.dirtyFields = t.dirtyFields, u = u || v.dirtyFields && b !== !ue;
|
|
1205
1205
|
}
|
|
1206
1206
|
if (o) {
|
|
1207
1207
|
const ue = p(t.touchedFields, s);
|
|
1208
|
-
ue || (G(t.touchedFields, s, o),
|
|
1208
|
+
ue || (G(t.touchedFields, s, o), O.touchedFields = t.touchedFields, u = u || v.touchedFields && ue !== o);
|
|
1209
1209
|
}
|
|
1210
|
-
return u && m && y.state.next(
|
|
1211
|
-
},
|
|
1210
|
+
return u && m && y.state.next(O), u ? O : {};
|
|
1211
|
+
}, J = (s, l, o, h) => {
|
|
1212
1212
|
const m = p(t.errors, s), u = v.isValid && ve(l) && t.isValid !== l;
|
|
1213
|
-
if (e.delayError && o ? (C =
|
|
1213
|
+
if (e.delayError && o ? (C = R(() => M(s, o)), C(e.delayError)) : (clearTimeout(S), C = null, o ? G(t.errors, s, o) : ee(t.errors, s)), (o ? !Ae(m, o) : m) || !de(h) || u) {
|
|
1214
1214
|
const b = {
|
|
1215
1215
|
...h,
|
|
1216
1216
|
...u && ve(l) ? { isValid: l } : {},
|
|
@@ -1223,9 +1223,9 @@ function Zs(e = {}) {
|
|
|
1223
1223
|
}, y.state.next(b);
|
|
1224
1224
|
}
|
|
1225
1225
|
}, U = async (s) => {
|
|
1226
|
-
|
|
1226
|
+
E(s, !0);
|
|
1227
1227
|
const l = await r.resolver(i, r.context, Ms(s || f.mount, n, r.criteriaMode, r.shouldUseNativeValidation));
|
|
1228
|
-
return
|
|
1228
|
+
return E(s), l;
|
|
1229
1229
|
}, D = async (s) => {
|
|
1230
1230
|
const { errors: l } = await U(s);
|
|
1231
1231
|
if (s)
|
|
@@ -1244,42 +1244,42 @@ function Zs(e = {}) {
|
|
|
1244
1244
|
if (m) {
|
|
1245
1245
|
const { _f: u, ...b } = m;
|
|
1246
1246
|
if (u) {
|
|
1247
|
-
const
|
|
1248
|
-
|
|
1249
|
-
const
|
|
1250
|
-
if (
|
|
1247
|
+
const O = f.array.has(u.name);
|
|
1248
|
+
E([h], !0);
|
|
1249
|
+
const $ = await Nt(m, i, T, r.shouldUseNativeValidation && !l, O);
|
|
1250
|
+
if (E([h]), $[u.name] && (o.valid = !1, l))
|
|
1251
1251
|
break;
|
|
1252
|
-
!l && (p(
|
|
1252
|
+
!l && (p($, u.name) ? O ? Es(t.errors, $, u.name) : G(t.errors, u.name, $[u.name]) : ee(t.errors, u.name));
|
|
1253
1253
|
}
|
|
1254
1254
|
!de(b) && await W(b, l, o);
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
1257
|
return o.valid;
|
|
1258
|
-
},
|
|
1258
|
+
}, I = () => {
|
|
1259
1259
|
for (const s of f.unMount) {
|
|
1260
1260
|
const l = p(n, s);
|
|
1261
1261
|
l && (l._f.refs ? l._f.refs.every((o) => !tt(o)) : !tt(l._f.ref)) && ye(s);
|
|
1262
1262
|
}
|
|
1263
1263
|
f.unMount = /* @__PURE__ */ new Set();
|
|
1264
1264
|
}, g = (s, l) => (s && l && G(i, s, l), !Ae(le(), a)), N = (s, l, o) => Rt(s, f, {
|
|
1265
|
-
...d.mount ? i :
|
|
1265
|
+
...d.mount ? i : K(l) ? a : ge(s) ? { [s]: l } : l
|
|
1266
1266
|
}, o, l), B = (s) => Je(p(d.mount ? i : a, s, e.shouldUnregister ? p(a, s, []) : [])), A = (s, l, o = {}) => {
|
|
1267
1267
|
const h = p(n, s);
|
|
1268
1268
|
let m = l;
|
|
1269
1269
|
if (h) {
|
|
1270
1270
|
const u = h._f;
|
|
1271
|
-
u && (!u.disabled && G(i, s, Zt(l, u)), m = qe(u.ref) && ae(l) ? "" : l, jt(u.ref) ? [...u.ref.options].forEach((b) => b.selected = m.includes(b.value)) : u.refs ? Oe(u.ref) ? u.refs.length > 1 ? u.refs.forEach((b) => (!b.defaultChecked || !b.disabled) && (b.checked = Array.isArray(m) ? !!m.find((
|
|
1271
|
+
u && (!u.disabled && G(i, s, Zt(l, u)), m = qe(u.ref) && ae(l) ? "" : l, jt(u.ref) ? [...u.ref.options].forEach((b) => b.selected = m.includes(b.value)) : u.refs ? Oe(u.ref) ? u.refs.length > 1 ? u.refs.forEach((b) => (!b.defaultChecked || !b.disabled) && (b.checked = Array.isArray(m) ? !!m.find((O) => O === b.value) : m === b.value)) : u.refs[0] && (u.refs[0].checked = !!m) : u.refs.forEach((b) => b.checked = b.value === m) : dt(u.ref) ? u.ref.value = "" : (u.ref.value = m, u.ref.type || y.values.next({
|
|
1272
1272
|
name: s,
|
|
1273
1273
|
values: { ...i }
|
|
1274
1274
|
})));
|
|
1275
1275
|
}
|
|
1276
|
-
(o.shouldDirty || o.shouldTouch) &&
|
|
1276
|
+
(o.shouldDirty || o.shouldTouch) && V(s, m, o.shouldTouch, o.shouldDirty, !0), o.shouldValidate && Y(s);
|
|
1277
1277
|
}, q = (s, l, o) => {
|
|
1278
1278
|
for (const h in l) {
|
|
1279
1279
|
const m = l[h], u = `${s}.${h}`, b = p(n, u);
|
|
1280
1280
|
(f.array.has(s) || !_e(m) || b && !b._f) && !Te(m) ? q(u, m, o) : A(u, m, o);
|
|
1281
1281
|
}
|
|
1282
|
-
},
|
|
1282
|
+
}, Z = (s, l, o = {}) => {
|
|
1283
1283
|
const h = p(n, s), m = f.array.has(s), u = ce(l);
|
|
1284
1284
|
G(i, s, u), m ? (y.array.next({
|
|
1285
1285
|
name: s,
|
|
@@ -1292,18 +1292,18 @@ function Zs(e = {}) {
|
|
|
1292
1292
|
name: d.mount ? s : void 0,
|
|
1293
1293
|
values: { ...i }
|
|
1294
1294
|
});
|
|
1295
|
-
},
|
|
1295
|
+
}, H = async (s) => {
|
|
1296
1296
|
d.mount = !0;
|
|
1297
1297
|
const l = s.target;
|
|
1298
1298
|
let o = l.name, h = !0;
|
|
1299
|
-
const m = p(n, o), u = () => l.type ? rt(m._f) : Bt(s), b = (
|
|
1300
|
-
h = Number.isNaN(
|
|
1299
|
+
const m = p(n, o), u = () => l.type ? rt(m._f) : Bt(s), b = (O) => {
|
|
1300
|
+
h = Number.isNaN(O) || O === p(i, o, O);
|
|
1301
1301
|
};
|
|
1302
1302
|
if (m) {
|
|
1303
|
-
let
|
|
1304
|
-
const ue = u(), Ne = s.type === Ue.BLUR || s.type === Ue.FOCUS_OUT, _t = !Os(m._f) && !r.resolver && !p(t.errors, o) && !m._f.deps || js(Ne, p(t.touchedFields, o), t.isSubmitted,
|
|
1303
|
+
let O, $;
|
|
1304
|
+
const ue = u(), Ne = s.type === Ue.BLUR || s.type === Ue.FOCUS_OUT, _t = !Os(m._f) && !r.resolver && !p(t.errors, o) && !m._f.deps || js(Ne, p(t.touchedFields, o), t.isSubmitted, z, L), Ke = wt(o, f, Ne);
|
|
1305
1305
|
G(i, o, ue), Ne ? (m._f.onBlur && m._f.onBlur(s), C && C(0)) : m._f.onChange && m._f.onChange(s);
|
|
1306
|
-
const Qe =
|
|
1306
|
+
const Qe = V(o, ue, Ne, !1), Ht = !de(Qe) || Ke;
|
|
1307
1307
|
if (!Ne && y.values.next({
|
|
1308
1308
|
name: o,
|
|
1309
1309
|
type: s.type,
|
|
@@ -1314,20 +1314,20 @@ function Zs(e = {}) {
|
|
|
1314
1314
|
const { errors: yt } = await U([o]);
|
|
1315
1315
|
if (b(ue), h) {
|
|
1316
1316
|
const Jt = kt(t.errors, n, o), vt = kt(yt, n, Jt.name || o);
|
|
1317
|
-
|
|
1317
|
+
O = vt.error, o = vt.name, $ = de(yt);
|
|
1318
1318
|
}
|
|
1319
1319
|
} else
|
|
1320
|
-
|
|
1321
|
-
h && (m._f.deps &&
|
|
1320
|
+
E([o], !0), O = (await Nt(m, i, T, r.shouldUseNativeValidation))[o], E([o]), b(ue), h && (O ? $ = !1 : v.isValid && ($ = await W(n, !0)));
|
|
1321
|
+
h && (m._f.deps && Y(m._f.deps), J(o, $, O, Qe));
|
|
1322
1322
|
}
|
|
1323
1323
|
}, se = (s, l) => {
|
|
1324
1324
|
if (p(t.errors, l) && s.focus)
|
|
1325
1325
|
return s.focus(), 1;
|
|
1326
|
-
},
|
|
1326
|
+
}, Y = async (s, l = {}) => {
|
|
1327
1327
|
let o, h;
|
|
1328
1328
|
const m = Ee(s);
|
|
1329
1329
|
if (r.resolver) {
|
|
1330
|
-
const u = await D(
|
|
1330
|
+
const u = await D(K(s) ? s : m);
|
|
1331
1331
|
o = de(u), h = s ? !m.some((b) => p(u, b)) : o;
|
|
1332
1332
|
} else
|
|
1333
1333
|
s ? (h = (await Promise.all(m.map(async (u) => {
|
|
@@ -1343,7 +1343,7 @@ function Zs(e = {}) {
|
|
|
1343
1343
|
const l = {
|
|
1344
1344
|
...d.mount ? i : a
|
|
1345
1345
|
};
|
|
1346
|
-
return
|
|
1346
|
+
return K(s) ? l : ge(s) ? p(l, s) : s.map((o) => p(l, o));
|
|
1347
1347
|
}, fe = (s, l) => ({
|
|
1348
1348
|
invalid: !!p((l || t).errors, s),
|
|
1349
1349
|
isDirty: !!p((l || t).dirtyFields, s),
|
|
@@ -1355,9 +1355,9 @@ function Zs(e = {}) {
|
|
|
1355
1355
|
errors: s ? t.errors : {}
|
|
1356
1356
|
});
|
|
1357
1357
|
}, me = (s, l, o) => {
|
|
1358
|
-
const h = (p(n, s, { _f: {} })._f || {}).ref, m = p(t.errors, s) || {}, { ref: u, message: b, type:
|
|
1358
|
+
const h = (p(n, s, { _f: {} })._f || {}).ref, m = p(t.errors, s) || {}, { ref: u, message: b, type: O, ...$ } = m;
|
|
1359
1359
|
G(t.errors, s, {
|
|
1360
|
-
|
|
1360
|
+
...$,
|
|
1361
1361
|
...l,
|
|
1362
1362
|
ref: h
|
|
1363
1363
|
}), y.state.next({
|
|
@@ -1378,8 +1378,8 @@ function Zs(e = {}) {
|
|
|
1378
1378
|
}), !l.keepIsValid && P();
|
|
1379
1379
|
}, Ce = ({ disabled: s, name: l, field: o, fields: h, value: m }) => {
|
|
1380
1380
|
if (ve(s) && d.mount || s) {
|
|
1381
|
-
const u = s ? void 0 :
|
|
1382
|
-
G(i, l, u),
|
|
1381
|
+
const u = s ? void 0 : K(m) ? rt(o ? o._f : p(h, l)._f) : m;
|
|
1382
|
+
G(i, l, u), V(l, u, !1, !1, !0);
|
|
1383
1383
|
}
|
|
1384
1384
|
}, Ye = (s, l = {}) => {
|
|
1385
1385
|
let o = p(n, s);
|
|
@@ -1408,20 +1408,20 @@ function Zs(e = {}) {
|
|
|
1408
1408
|
pattern: Ie(l.pattern)
|
|
1409
1409
|
} : {},
|
|
1410
1410
|
name: s,
|
|
1411
|
-
onChange:
|
|
1412
|
-
onBlur:
|
|
1411
|
+
onChange: H,
|
|
1412
|
+
onBlur: H,
|
|
1413
1413
|
ref: (m) => {
|
|
1414
1414
|
if (m) {
|
|
1415
1415
|
Ye(s, l), o = p(n, s);
|
|
1416
|
-
const u =
|
|
1417
|
-
if (b ?
|
|
1416
|
+
const u = K(m.value) && m.querySelectorAll && m.querySelectorAll("input,select,textarea")[0] || m, b = Rs(u), O = o._f.refs || [];
|
|
1417
|
+
if (b ? O.find(($) => $ === u) : u === o._f.ref)
|
|
1418
1418
|
return;
|
|
1419
1419
|
G(n, s, {
|
|
1420
1420
|
_f: {
|
|
1421
1421
|
...o._f,
|
|
1422
1422
|
...b ? {
|
|
1423
1423
|
refs: [
|
|
1424
|
-
...
|
|
1424
|
+
...O.filter(tt),
|
|
1425
1425
|
u,
|
|
1426
1426
|
...Array.isArray(p(a, s)) ? [{}] : []
|
|
1427
1427
|
],
|
|
@@ -1471,21 +1471,21 @@ function Zs(e = {}) {
|
|
|
1471
1471
|
}), h)
|
|
1472
1472
|
throw h;
|
|
1473
1473
|
}, Gt = (s, l = {}) => {
|
|
1474
|
-
p(n, s) && (
|
|
1474
|
+
p(n, s) && (K(l.defaultValue) ? Z(s, ce(p(a, s))) : (Z(s, l.defaultValue), G(a, s, ce(l.defaultValue))), l.keepTouched || ee(t.touchedFields, s), l.keepDirty || (ee(t.dirtyFields, s), t.isDirty = l.defaultValue ? g(s, ce(p(a, s))) : g()), l.keepError || (ee(t.errors, s), v.isValid && P()), y.state.next({ ...t }));
|
|
1475
1475
|
}, mt = (s, l = {}) => {
|
|
1476
1476
|
const o = s ? ce(s) : a, h = ce(o), m = de(s), u = m ? a : h;
|
|
1477
1477
|
if (l.keepDefaultValues || (a = o), !l.keepValues) {
|
|
1478
1478
|
if (l.keepDirtyValues)
|
|
1479
1479
|
for (const b of f.mount)
|
|
1480
|
-
p(t.dirtyFields, b) ? G(u, b, p(i, b)) :
|
|
1480
|
+
p(t.dirtyFields, b) ? G(u, b, p(i, b)) : Z(b, p(u, b));
|
|
1481
1481
|
else {
|
|
1482
|
-
if (at &&
|
|
1482
|
+
if (at && K(s))
|
|
1483
1483
|
for (const b of f.mount) {
|
|
1484
|
-
const
|
|
1485
|
-
if (
|
|
1486
|
-
const
|
|
1487
|
-
if (qe(
|
|
1488
|
-
const ue =
|
|
1484
|
+
const O = p(n, b);
|
|
1485
|
+
if (O && O._f) {
|
|
1486
|
+
const $ = Array.isArray(O._f.refs) ? O._f.refs[0] : O._f.ref;
|
|
1487
|
+
if (qe($)) {
|
|
1488
|
+
const ue = $.closest("form");
|
|
1489
1489
|
if (ue) {
|
|
1490
1490
|
ue.reset();
|
|
1491
1491
|
break;
|
|
@@ -1530,7 +1530,7 @@ function Zs(e = {}) {
|
|
|
1530
1530
|
_getWatch: N,
|
|
1531
1531
|
_getDirty: g,
|
|
1532
1532
|
_updateValid: P,
|
|
1533
|
-
_removeUnmounted:
|
|
1533
|
+
_removeUnmounted: I,
|
|
1534
1534
|
_updateFieldArray: F,
|
|
1535
1535
|
_updateDisabledField: Ce,
|
|
1536
1536
|
_getFieldArray: B,
|
|
@@ -1549,7 +1549,7 @@ function Zs(e = {}) {
|
|
|
1549
1549
|
_disableForm: qt,
|
|
1550
1550
|
_subjects: y,
|
|
1551
1551
|
_proxyFormState: v,
|
|
1552
|
-
_setErrors:
|
|
1552
|
+
_setErrors: X,
|
|
1553
1553
|
get _fields() {
|
|
1554
1554
|
return n;
|
|
1555
1555
|
},
|
|
@@ -1587,11 +1587,11 @@ function Zs(e = {}) {
|
|
|
1587
1587
|
};
|
|
1588
1588
|
}
|
|
1589
1589
|
},
|
|
1590
|
-
trigger:
|
|
1590
|
+
trigger: Y,
|
|
1591
1591
|
register: Ye,
|
|
1592
1592
|
handleSubmit: pt,
|
|
1593
1593
|
watch: oe,
|
|
1594
|
-
setValue:
|
|
1594
|
+
setValue: Z,
|
|
1595
1595
|
getValues: le,
|
|
1596
1596
|
reset: ht,
|
|
1597
1597
|
resetField: Gt,
|
|
@@ -1667,48 +1667,48 @@ const qs = Re.bind(re), Gs = "Я принимаю условия Политик
|
|
|
1667
1667
|
isRequiredEmail: S = !1,
|
|
1668
1668
|
isRequiredPhoneOrEmail: v,
|
|
1669
1669
|
textAreaPlaceholder: y,
|
|
1670
|
-
subTitle:
|
|
1671
|
-
submitHandler:
|
|
1670
|
+
subTitle: L,
|
|
1671
|
+
submitHandler: z,
|
|
1672
1672
|
modalWidth: T = "442px",
|
|
1673
|
-
rowsTextArea:
|
|
1673
|
+
rowsTextArea: R = 2,
|
|
1674
1674
|
advCheckBox: P = { text: Gs, isRequired: !0 },
|
|
1675
|
-
isAdvCheckBox:
|
|
1675
|
+
isAdvCheckBox: E,
|
|
1676
1676
|
addTitleClassName: F,
|
|
1677
|
-
createPortalObj:
|
|
1678
|
-
telegramClickHandler:
|
|
1677
|
+
createPortalObj: M,
|
|
1678
|
+
telegramClickHandler: X = () => null,
|
|
1679
1679
|
blurHandler: x,
|
|
1680
|
-
handlerButton:
|
|
1681
|
-
block_name:
|
|
1680
|
+
handlerButton: V,
|
|
1681
|
+
block_name: J,
|
|
1682
1682
|
emitCheckBox: U,
|
|
1683
1683
|
emitAdvCheckBox: D
|
|
1684
1684
|
}) => {
|
|
1685
1685
|
const {
|
|
1686
1686
|
register: W,
|
|
1687
|
-
handleSubmit:
|
|
1687
|
+
handleSubmit: I,
|
|
1688
1688
|
reset: g,
|
|
1689
1689
|
control: N,
|
|
1690
1690
|
watch: B,
|
|
1691
1691
|
formState: { errors: A }
|
|
1692
|
-
} = Us(), q = !!B("email"),
|
|
1692
|
+
} = Us(), q = !!B("email"), Z = B("personalCheckBox"), H = B("advCheckBox");
|
|
1693
1693
|
De(() => {
|
|
1694
|
-
typeof
|
|
1695
|
-
}, [U,
|
|
1696
|
-
typeof
|
|
1697
|
-
}, [D,
|
|
1698
|
-
const { isMobile: se, currentClientWidth:
|
|
1699
|
-
|
|
1694
|
+
typeof Z < "u" && U && U();
|
|
1695
|
+
}, [U, Z]), De(() => {
|
|
1696
|
+
typeof H < "u" && D && D();
|
|
1697
|
+
}, [D, H]);
|
|
1698
|
+
const { isMobile: se, currentClientWidth: Y } = Me(), le = B("personalCheckBox"), fe = B("advCheckBox"), pe = (oe) => {
|
|
1699
|
+
z(oe), g();
|
|
1700
1700
|
}, me = (oe, { action_element_status: ye, action_element: Ce }) => {
|
|
1701
1701
|
x && x({
|
|
1702
1702
|
e: oe,
|
|
1703
|
-
analyticParams: { action_element: Ce, action_element_status: ye, block_name:
|
|
1703
|
+
analyticParams: { action_element: Ce, action_element_status: ye, block_name: J }
|
|
1704
1704
|
});
|
|
1705
1705
|
};
|
|
1706
|
-
return
|
|
1706
|
+
return Y ? /* @__PURE__ */ c(
|
|
1707
1707
|
it,
|
|
1708
1708
|
{
|
|
1709
1709
|
additionalClass: re.modal,
|
|
1710
1710
|
additionalClassModalBody: re.modalBody,
|
|
1711
|
-
createPortalObj:
|
|
1711
|
+
createPortalObj: M,
|
|
1712
1712
|
isOpen: e,
|
|
1713
1713
|
isTransparentBack: !0,
|
|
1714
1714
|
emitIsOpen: () => r(!1),
|
|
@@ -1739,7 +1739,7 @@ const qs = Re.bind(re), Gs = "Я принимаю условия Политик
|
|
|
1739
1739
|
"div",
|
|
1740
1740
|
{
|
|
1741
1741
|
className: re.telegram,
|
|
1742
|
-
onClick:
|
|
1742
|
+
onClick: X,
|
|
1743
1743
|
children: [
|
|
1744
1744
|
/* @__PURE__ */ c("div", { children: "Подписаться в Telegram" }),
|
|
1745
1745
|
/* @__PURE__ */ c(be, { name: "telegram" })
|
|
@@ -1755,11 +1755,11 @@ const qs = Re.bind(re), Gs = "Я принимаю условия Политик
|
|
|
1755
1755
|
{
|
|
1756
1756
|
className: re.description,
|
|
1757
1757
|
dangerouslySetInnerHTML: {
|
|
1758
|
-
__html:
|
|
1758
|
+
__html: L && !t ? "Оставьте номер телефона для получения консультации" : `${/* @__PURE__ */ c("div", { children: "привет" })}`
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
1761
1761
|
),
|
|
1762
|
-
/* @__PURE__ */ k("form", { onSubmit:
|
|
1762
|
+
/* @__PURE__ */ k("form", { onSubmit: I(pe), children: [
|
|
1763
1763
|
/* @__PURE__ */ k(Qt, { className: re.inputWrapper, children: [
|
|
1764
1764
|
/* @__PURE__ */ c(
|
|
1765
1765
|
$e,
|
|
@@ -1772,7 +1772,7 @@ const qs = Re.bind(re), Gs = "Я принимаю условия Политик
|
|
|
1772
1772
|
...W("name", { required: !0, pattern: er }),
|
|
1773
1773
|
onBlur: (oe) => me(oe, {
|
|
1774
1774
|
action_element_status: A.name ? "error" : "success",
|
|
1775
|
-
action_element: `input_${
|
|
1775
|
+
action_element: `input_${J}_name`
|
|
1776
1776
|
}),
|
|
1777
1777
|
error: !!A.name
|
|
1778
1778
|
}
|
|
@@ -1801,7 +1801,7 @@ const qs = Re.bind(re), Gs = "Я принимаю условия Политик
|
|
|
1801
1801
|
variant: "light",
|
|
1802
1802
|
onBlur: (ye) => me(ye, {
|
|
1803
1803
|
action_element_status: A.phone ? "error" : "success",
|
|
1804
|
-
action_element: `input_${
|
|
1804
|
+
action_element: `input_${J}_phone`
|
|
1805
1805
|
})
|
|
1806
1806
|
}
|
|
1807
1807
|
)
|
|
@@ -1822,7 +1822,7 @@ const qs = Re.bind(re), Gs = "Я принимаю условия Политик
|
|
|
1822
1822
|
error: !!A.email,
|
|
1823
1823
|
onBlur: (oe) => me(oe, {
|
|
1824
1824
|
action_element_status: A.email ? "error" : "success",
|
|
1825
|
-
action_element: `input_${
|
|
1825
|
+
action_element: `input_${J}_email`
|
|
1826
1826
|
})
|
|
1827
1827
|
}
|
|
1828
1828
|
),
|
|
@@ -1831,12 +1831,12 @@ const qs = Re.bind(re), Gs = "Я принимаю условия Политик
|
|
|
1831
1831
|
{
|
|
1832
1832
|
"data-testid": "modal_textarea",
|
|
1833
1833
|
placeholder: y,
|
|
1834
|
-
rows:
|
|
1834
|
+
rows: R,
|
|
1835
1835
|
width: "full",
|
|
1836
1836
|
...W("textarea")
|
|
1837
1837
|
}
|
|
1838
1838
|
),
|
|
1839
|
-
P && !t &&
|
|
1839
|
+
P && !t && E && /* @__PURE__ */ c(
|
|
1840
1840
|
gt,
|
|
1841
1841
|
{
|
|
1842
1842
|
"data-testid": "modal_advCheckBox",
|
|
@@ -1895,7 +1895,7 @@ const qs = Re.bind(re), Gs = "Я принимаю условия Политик
|
|
|
1895
1895
|
as: "button",
|
|
1896
1896
|
additionalClass: re.modalBtn,
|
|
1897
1897
|
onClick: () => {
|
|
1898
|
-
|
|
1898
|
+
V && V();
|
|
1899
1899
|
},
|
|
1900
1900
|
disabled: !!A.name || !!A.phone && C || !!A.email && S || !!A.advCheckBox && (P == null ? void 0 : P.isRequired) || !!A.personalCheckBox && !t,
|
|
1901
1901
|
children: "Отправить запрос"
|
|
@@ -1927,7 +1927,7 @@ const qs = Re.bind(re), Gs = "Я принимаю условия Политик
|
|
|
1927
1927
|
)
|
|
1928
1928
|
}
|
|
1929
1929
|
) : null;
|
|
1930
|
-
}, _s = "_root_1v1y9_1", Hs = "_filterWithSaveModal_1v1y9_15", Js = "_modalAddBody_1v1y9_20", Ys = "_closeBtn_1v1y9_29", Ks = "_btnName_1v1y9_35", Qs = "_modalTitle_1v1y9_39", $s = "_tabSWitcherWrapper_1v1y9_48", ei = "_switcherTitle_1v1y9_77", ti = "_switcherScroll_1v1y9_84", ri = "_tabs_1v1y9_93", si = "_selectWrapper_1v1y9_98", ii = "_filterOption_1v1y9_102", ni = "_btnWrapper_1v1y9_110", ai = "_resetBtn_1v1y9_116", li = "_saveBtn_1v1y9_117", oi = "_desktopWrapper_1v1y9_121", ci = "_desktopWrapperOpen_1v1y9_144",
|
|
1930
|
+
}, _s = "_root_1v1y9_1", Hs = "_filterWithSaveModal_1v1y9_15", Js = "_modalAddBody_1v1y9_20", Ys = "_closeBtn_1v1y9_29", Ks = "_btnName_1v1y9_35", Qs = "_modalTitle_1v1y9_39", $s = "_tabSWitcherWrapper_1v1y9_48", ei = "_switcherTitle_1v1y9_77", ti = "_switcherScroll_1v1y9_84", ri = "_tabs_1v1y9_93", si = "_selectWrapper_1v1y9_98", ii = "_filterOption_1v1y9_102", ni = "_btnWrapper_1v1y9_110", ai = "_resetBtn_1v1y9_116", li = "_saveBtn_1v1y9_117", oi = "_desktopWrapper_1v1y9_121", ci = "_desktopWrapperOpen_1v1y9_144", j = {
|
|
1931
1931
|
root: _s,
|
|
1932
1932
|
filterWithSaveModal: Hs,
|
|
1933
1933
|
modalAddBody: Js,
|
|
@@ -1994,28 +1994,28 @@ const ui = /* @__PURE__ */ Kt(di), fi = ({
|
|
|
1994
1994
|
onSaveClick: f,
|
|
1995
1995
|
onClearClick: C
|
|
1996
1996
|
}) => {
|
|
1997
|
-
const { isMobile: S } = Me(), [v, y] = Se(!1),
|
|
1998
|
-
if (t && t(D), n.some((
|
|
1997
|
+
const { isMobile: S } = Me(), [v, y] = Se(!1), L = Pt(null), [z, T] = Se(e), [R] = Se(r), [P, E] = Se(z), [F, M] = Se(R), X = (D) => {
|
|
1998
|
+
if (t && t(D), n.some((I) => I.value === D.value))
|
|
1999
1999
|
return;
|
|
2000
|
-
const W = F.some((
|
|
2001
|
-
|
|
2000
|
+
const W = F.some((I) => I.value === D.value) ? F.filter((I) => I.value !== D.value) : [...F, D];
|
|
2001
|
+
M(W);
|
|
2002
2002
|
}, x = () => {
|
|
2003
|
-
T(a),
|
|
2004
|
-
},
|
|
2005
|
-
|
|
2006
|
-
},
|
|
2007
|
-
|
|
2003
|
+
T(a), E(a), M([]), C(), i && (i([]), d == null || d(a));
|
|
2004
|
+
}, V = () => {
|
|
2005
|
+
M(r), E(e);
|
|
2006
|
+
}, J = () => {
|
|
2007
|
+
V(), y(!1);
|
|
2008
2008
|
}, U = (D) => {
|
|
2009
2009
|
D.stopPropagation(), f(), i && (d == null || d(P), i(F)), y(!1);
|
|
2010
2010
|
};
|
|
2011
2011
|
return De(() => {
|
|
2012
|
-
v ||
|
|
2012
|
+
v || E((D) => JSON.stringify(D) !== JSON.stringify(e) ? e : D);
|
|
2013
2013
|
}, [v, e]), De(() => {
|
|
2014
2014
|
const D = (W) => {
|
|
2015
|
-
if (!
|
|
2015
|
+
if (!L.current)
|
|
2016
2016
|
return;
|
|
2017
|
-
const
|
|
2018
|
-
|
|
2017
|
+
const I = W.target;
|
|
2018
|
+
L.current.contains(I) || I.closest("svg") || J();
|
|
2019
2019
|
};
|
|
2020
2020
|
return v ? document.addEventListener("click", D) : document.removeEventListener("click", D), () => {
|
|
2021
2021
|
document.removeEventListener("click", D);
|
|
@@ -2023,18 +2023,18 @@ const ui = /* @__PURE__ */ Kt(di), fi = ({
|
|
|
2023
2023
|
}, [v]), {
|
|
2024
2024
|
isMobile: S,
|
|
2025
2025
|
handleClearClick: x,
|
|
2026
|
-
handleCloseModal:
|
|
2027
|
-
handleOptionClick:
|
|
2026
|
+
handleCloseModal: J,
|
|
2027
|
+
handleOptionClick: X,
|
|
2028
2028
|
handleSaveClick: U,
|
|
2029
2029
|
localSelectedTabs: P,
|
|
2030
2030
|
selectedOptions: F,
|
|
2031
|
-
setSelectedOptions:
|
|
2031
|
+
setSelectedOptions: M,
|
|
2032
2032
|
isModalOpen: v,
|
|
2033
2033
|
setIsModalOpen: y,
|
|
2034
|
-
setLocalSelectedTabs:
|
|
2035
|
-
containerRef:
|
|
2034
|
+
setLocalSelectedTabs: E,
|
|
2035
|
+
containerRef: L
|
|
2036
2036
|
};
|
|
2037
|
-
}, pi = ui.bind(
|
|
2037
|
+
}, pi = ui.bind(j), $i = ({
|
|
2038
2038
|
disabledOptions: e,
|
|
2039
2039
|
tabs: r = [],
|
|
2040
2040
|
selectOptions: t = [],
|
|
@@ -2047,20 +2047,20 @@ const ui = /* @__PURE__ */ Kt(di), fi = ({
|
|
|
2047
2047
|
onCLickSelect: S,
|
|
2048
2048
|
onSaveClick: v = () => null,
|
|
2049
2049
|
onClearClick: y = () => null,
|
|
2050
|
-
onTabClick:
|
|
2051
|
-
btnName:
|
|
2050
|
+
onTabClick: L = () => null,
|
|
2051
|
+
btnName: z = "Фильтр"
|
|
2052
2052
|
}) => {
|
|
2053
2053
|
const {
|
|
2054
2054
|
handleCloseModal: T,
|
|
2055
|
-
localSelectedTabs:
|
|
2055
|
+
localSelectedTabs: R,
|
|
2056
2056
|
selectedOptions: P,
|
|
2057
|
-
isMobile:
|
|
2057
|
+
isMobile: E,
|
|
2058
2058
|
handleOptionClick: F,
|
|
2059
|
-
handleClearClick:
|
|
2060
|
-
handleSaveClick:
|
|
2059
|
+
handleClearClick: M,
|
|
2060
|
+
handleSaveClick: X,
|
|
2061
2061
|
isModalOpen: x,
|
|
2062
|
-
setLocalSelectedTabs:
|
|
2063
|
-
setIsModalOpen:
|
|
2062
|
+
setLocalSelectedTabs: V,
|
|
2063
|
+
setIsModalOpen: J,
|
|
2064
2064
|
containerRef: U
|
|
2065
2065
|
} = fi({
|
|
2066
2066
|
selectedTabs: f,
|
|
@@ -2076,7 +2076,7 @@ const ui = /* @__PURE__ */ Kt(di), fi = ({
|
|
|
2076
2076
|
/* @__PURE__ */ c(
|
|
2077
2077
|
"div",
|
|
2078
2078
|
{
|
|
2079
|
-
className:
|
|
2079
|
+
className: j.closeBtn,
|
|
2080
2080
|
onClick: () => {
|
|
2081
2081
|
T();
|
|
2082
2082
|
},
|
|
@@ -2089,16 +2089,16 @@ const ui = /* @__PURE__ */ Kt(di), fi = ({
|
|
|
2089
2089
|
)
|
|
2090
2090
|
}
|
|
2091
2091
|
),
|
|
2092
|
-
/* @__PURE__ */ c("div", { className:
|
|
2093
|
-
/* @__PURE__ */ k("div", { className:
|
|
2094
|
-
/* @__PURE__ */ c("div", { className:
|
|
2095
|
-
/* @__PURE__ */ c("div", { className:
|
|
2092
|
+
/* @__PURE__ */ c("div", { className: j.modalTitle, children: "Фильтры" }),
|
|
2093
|
+
/* @__PURE__ */ k("div", { className: j.tabSWitcherWrapper, children: [
|
|
2094
|
+
/* @__PURE__ */ c("div", { className: j.switcherTitle, children: "Готовность" }),
|
|
2095
|
+
/* @__PURE__ */ c("div", { className: j.switcherScroll, children: /* @__PURE__ */ c(
|
|
2096
2096
|
je,
|
|
2097
2097
|
{
|
|
2098
2098
|
variant: "grayRow",
|
|
2099
|
-
addClassName:
|
|
2099
|
+
addClassName: j.tabs,
|
|
2100
2100
|
isApart: !0,
|
|
2101
|
-
children: r == null ? void 0 : r.map((W,
|
|
2101
|
+
children: r == null ? void 0 : r.map((W, I) => {
|
|
2102
2102
|
var N;
|
|
2103
2103
|
const g = W.value;
|
|
2104
2104
|
return /* @__PURE__ */ c(
|
|
@@ -2110,42 +2110,42 @@ const ui = /* @__PURE__ */ Kt(di), fi = ({
|
|
|
2110
2110
|
value: g,
|
|
2111
2111
|
onClick: () => {
|
|
2112
2112
|
},
|
|
2113
|
-
checked: ((N =
|
|
2113
|
+
checked: ((N = R == null ? void 0 : R.find((B) => B.value === g)) == null ? void 0 : N.state) ?? !1,
|
|
2114
2114
|
onChange: () => {
|
|
2115
|
-
|
|
2115
|
+
V == null || V(
|
|
2116
2116
|
(B) => B.map((A) => A.value === g ? { ...A, state: !A.state } : A)
|
|
2117
2117
|
);
|
|
2118
2118
|
},
|
|
2119
|
-
index:
|
|
2119
|
+
index: I,
|
|
2120
2120
|
children: g
|
|
2121
2121
|
},
|
|
2122
|
-
|
|
2122
|
+
I
|
|
2123
2123
|
);
|
|
2124
2124
|
})
|
|
2125
2125
|
}
|
|
2126
2126
|
) })
|
|
2127
2127
|
] }),
|
|
2128
|
-
/* @__PURE__ */ c("div", { className:
|
|
2128
|
+
/* @__PURE__ */ c("div", { className: j.selectWrapper, children: t == null ? void 0 : t.map((W, I) => /* @__PURE__ */ c(
|
|
2129
2129
|
bt,
|
|
2130
2130
|
{
|
|
2131
2131
|
sizeIcon: "24",
|
|
2132
|
-
addClassName:
|
|
2132
|
+
addClassName: j.filterOption,
|
|
2133
2133
|
disabledOptions: [],
|
|
2134
2134
|
clickableOptions: t == null ? void 0 : t.map((g) => g.value.toString()),
|
|
2135
2135
|
selectedOptions: P,
|
|
2136
2136
|
option: W,
|
|
2137
2137
|
handleOptionClick: F
|
|
2138
2138
|
},
|
|
2139
|
-
|
|
2139
|
+
I
|
|
2140
2140
|
)) }),
|
|
2141
|
-
/* @__PURE__ */ k("div", { className:
|
|
2141
|
+
/* @__PURE__ */ k("div", { className: j.btnWrapper, children: [
|
|
2142
2142
|
/* @__PURE__ */ c(
|
|
2143
2143
|
we,
|
|
2144
2144
|
{
|
|
2145
2145
|
as: "button",
|
|
2146
2146
|
variant: "gray",
|
|
2147
|
-
additionalClass:
|
|
2148
|
-
onClick:
|
|
2147
|
+
additionalClass: j.resetBtn,
|
|
2148
|
+
onClick: M,
|
|
2149
2149
|
children: "Сбросить"
|
|
2150
2150
|
}
|
|
2151
2151
|
),
|
|
@@ -2153,8 +2153,8 @@ const ui = /* @__PURE__ */ Kt(di), fi = ({
|
|
|
2153
2153
|
we,
|
|
2154
2154
|
{
|
|
2155
2155
|
as: "button",
|
|
2156
|
-
additionalClass:
|
|
2157
|
-
onClick:
|
|
2156
|
+
additionalClass: j.saveBtn,
|
|
2157
|
+
onClick: X,
|
|
2158
2158
|
children: "Сохранить"
|
|
2159
2159
|
}
|
|
2160
2160
|
)
|
|
@@ -2165,12 +2165,12 @@ const ui = /* @__PURE__ */ Kt(di), fi = ({
|
|
|
2165
2165
|
/* @__PURE__ */ k(
|
|
2166
2166
|
"div",
|
|
2167
2167
|
{
|
|
2168
|
-
className:
|
|
2168
|
+
className: j.root,
|
|
2169
2169
|
onClick: () => {
|
|
2170
|
-
S && S(), a && a(),
|
|
2170
|
+
S && S(), a && a(), E ? J((W) => !W) : x || J(!0);
|
|
2171
2171
|
},
|
|
2172
2172
|
children: [
|
|
2173
|
-
/* @__PURE__ */ c("div", { className:
|
|
2173
|
+
/* @__PURE__ */ c("div", { className: j.btnName, children: z }),
|
|
2174
2174
|
/* @__PURE__ */ c(
|
|
2175
2175
|
be,
|
|
2176
2176
|
{
|
|
@@ -2181,16 +2181,16 @@ const ui = /* @__PURE__ */ Kt(di), fi = ({
|
|
|
2181
2181
|
]
|
|
2182
2182
|
}
|
|
2183
2183
|
),
|
|
2184
|
-
!
|
|
2184
|
+
!E && /* @__PURE__ */ k(
|
|
2185
2185
|
"div",
|
|
2186
2186
|
{
|
|
2187
2187
|
ref: U,
|
|
2188
|
-
className: pi(
|
|
2188
|
+
className: pi(j.desktopWrapper, { [j.desktopWrapperOpen]: x }),
|
|
2189
2189
|
children: [
|
|
2190
2190
|
/* @__PURE__ */ c(
|
|
2191
2191
|
"div",
|
|
2192
2192
|
{
|
|
2193
|
-
className:
|
|
2193
|
+
className: j.closeBtn,
|
|
2194
2194
|
onClick: () => {
|
|
2195
2195
|
T();
|
|
2196
2196
|
},
|
|
@@ -2203,16 +2203,16 @@ const ui = /* @__PURE__ */ Kt(di), fi = ({
|
|
|
2203
2203
|
)
|
|
2204
2204
|
}
|
|
2205
2205
|
),
|
|
2206
|
-
/* @__PURE__ */ c("div", { className:
|
|
2207
|
-
/* @__PURE__ */ k("div", { className:
|
|
2208
|
-
/* @__PURE__ */ c("div", { className:
|
|
2209
|
-
/* @__PURE__ */ c("div", { className:
|
|
2206
|
+
/* @__PURE__ */ c("div", { className: j.modalTitle, children: "Фильтры" }),
|
|
2207
|
+
/* @__PURE__ */ k("div", { className: j.tabSWitcherWrapper, children: [
|
|
2208
|
+
/* @__PURE__ */ c("div", { className: j.switcherTitle, children: "Готовность" }),
|
|
2209
|
+
/* @__PURE__ */ c("div", { className: j.switcherScroll, children: /* @__PURE__ */ c(
|
|
2210
2210
|
je,
|
|
2211
2211
|
{
|
|
2212
2212
|
variant: "grayRow",
|
|
2213
|
-
addClassName:
|
|
2213
|
+
addClassName: j.tabs,
|
|
2214
2214
|
isApart: !0,
|
|
2215
|
-
children: r == null ? void 0 : r.map((W,
|
|
2215
|
+
children: r == null ? void 0 : r.map((W, I) => {
|
|
2216
2216
|
var N;
|
|
2217
2217
|
const g = W.value;
|
|
2218
2218
|
return /* @__PURE__ */ c(
|
|
@@ -2222,44 +2222,44 @@ const ui = /* @__PURE__ */ Kt(di), fi = ({
|
|
|
2222
2222
|
size_s: "small",
|
|
2223
2223
|
mini: !0,
|
|
2224
2224
|
value: g,
|
|
2225
|
-
onClick: () =>
|
|
2226
|
-
checked: ((N =
|
|
2225
|
+
onClick: () => L(),
|
|
2226
|
+
checked: ((N = R == null ? void 0 : R.find((B) => B.value === g)) == null ? void 0 : N.state) ?? !1,
|
|
2227
2227
|
onChange: () => {
|
|
2228
|
-
|
|
2228
|
+
V == null || V(
|
|
2229
2229
|
(B) => B.map((A) => A.value === g ? { ...A, state: !A.state } : A)
|
|
2230
2230
|
);
|
|
2231
2231
|
},
|
|
2232
|
-
index:
|
|
2233
|
-
addItemClassName:
|
|
2232
|
+
index: I,
|
|
2233
|
+
addItemClassName: j.tabSwitcher,
|
|
2234
2234
|
children: g
|
|
2235
2235
|
},
|
|
2236
|
-
|
|
2236
|
+
I
|
|
2237
2237
|
);
|
|
2238
2238
|
})
|
|
2239
2239
|
}
|
|
2240
2240
|
) })
|
|
2241
2241
|
] }),
|
|
2242
|
-
/* @__PURE__ */ c("div", { className:
|
|
2242
|
+
/* @__PURE__ */ c("div", { className: j.selectWrapper, children: t == null ? void 0 : t.map((W, I) => /* @__PURE__ */ c(
|
|
2243
2243
|
bt,
|
|
2244
2244
|
{
|
|
2245
2245
|
sizeIcon: "24",
|
|
2246
|
-
addClassName:
|
|
2246
|
+
addClassName: j.filterOption,
|
|
2247
2247
|
disabledOptions: [],
|
|
2248
2248
|
clickableOptions: t == null ? void 0 : t.map((g) => g.value.toString()),
|
|
2249
2249
|
selectedOptions: P,
|
|
2250
2250
|
option: W,
|
|
2251
2251
|
handleOptionClick: F
|
|
2252
2252
|
},
|
|
2253
|
-
|
|
2253
|
+
I
|
|
2254
2254
|
)) }),
|
|
2255
|
-
/* @__PURE__ */ k("div", { className:
|
|
2255
|
+
/* @__PURE__ */ k("div", { className: j.btnWrapper, children: [
|
|
2256
2256
|
/* @__PURE__ */ c(
|
|
2257
2257
|
we,
|
|
2258
2258
|
{
|
|
2259
2259
|
as: "button",
|
|
2260
2260
|
variant: "gray",
|
|
2261
|
-
additionalClass:
|
|
2262
|
-
onClick:
|
|
2261
|
+
additionalClass: j.resetBtn,
|
|
2262
|
+
onClick: M,
|
|
2263
2263
|
children: "Сбросить"
|
|
2264
2264
|
}
|
|
2265
2265
|
),
|
|
@@ -2267,8 +2267,8 @@ const ui = /* @__PURE__ */ Kt(di), fi = ({
|
|
|
2267
2267
|
we,
|
|
2268
2268
|
{
|
|
2269
2269
|
as: "button",
|
|
2270
|
-
additionalClass:
|
|
2271
|
-
onClick:
|
|
2270
|
+
additionalClass: j.saveBtn,
|
|
2271
|
+
onClick: X,
|
|
2272
2272
|
children: "Сохранить"
|
|
2273
2273
|
}
|
|
2274
2274
|
)
|
|
@@ -2277,14 +2277,14 @@ const ui = /* @__PURE__ */ Kt(di), fi = ({
|
|
|
2277
2277
|
}
|
|
2278
2278
|
)
|
|
2279
2279
|
] }),
|
|
2280
|
-
|
|
2280
|
+
E && /* @__PURE__ */ c(
|
|
2281
2281
|
it,
|
|
2282
2282
|
{
|
|
2283
2283
|
isOpen: x,
|
|
2284
|
-
emitIsOpen:
|
|
2284
|
+
emitIsOpen: J,
|
|
2285
2285
|
isTransparentBack: !0,
|
|
2286
|
-
additionalClassModalBody:
|
|
2287
|
-
additionalClass:
|
|
2286
|
+
additionalClassModalBody: j.modalAddBody,
|
|
2287
|
+
additionalClass: j.filterWithSaveModal,
|
|
2288
2288
|
children: /* @__PURE__ */ c(D, {})
|
|
2289
2289
|
}
|
|
2290
2290
|
)
|