stone-kit 0.0.1037 → 0.0.1045
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/Option-DmDx_xOt.js +99 -0
- package/dist/components/CommercialLotCard/CommercialLotCard.js +61 -53
- package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.d.ts +6 -0
- package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.js +21 -0
- package/dist/components/CommercialLotCard/components/Price/Price.d.ts +2 -1
- package/dist/components/CommercialLotCard/components/Price/Price.js +21 -33
- package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +2 -1
- package/dist/components/CommercialLotCard/components/Tags/Tags.js +8 -7
- package/dist/components/FavoriteIcon/FavoriteIcon.d.ts +7 -0
- package/dist/components/FavoriteIcon/FavoriteIcon.js +66 -0
- package/dist/components/FavoriteIcon/Heart.d.ts +3 -0
- package/dist/components/FavoriteIcon/Heart.js +24 -0
- package/dist/components/FavoriteIcon/HeartFilled.d.ts +5 -0
- package/dist/components/FavoriteIcon/HeartFilled.js +27 -0
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +1 -1
- package/dist/components/LotCard/hooks/useLotCard.js +1 -1
- package/dist/components/LotCard/ui/LotCard.js +33 -45
- package/dist/components/Select/model/selectMode.d.ts +4 -2
- package/dist/components/Select/model/selectMode.js +53 -30
- package/dist/components/Select/ui/Category.js +43 -40
- package/dist/components/Select/ui/Option.js +1 -1
- package/dist/components/Select/ui/Select.js +98 -96
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +2 -0
- package/dist/components/SummarySelect/ui/SummarySelect.js +97 -91
- package/dist/pages/LotsPage/LotsPage.js +22 -16
- package/dist/stone-kit.css +1 -1
- package/dist/useLotCard-D-gK4J_o.js +186 -0
- package/package.json +1 -1
- package/dist/Option-DI87iJMM.js +0 -98
- package/dist/useLotCard-DPqIlj09.js +0 -187
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { jsxs as _, jsx as t, Fragment as J } from "react/jsx-runtime";
|
|
2
|
+
import { useState as K } from "react";
|
|
3
|
+
import { getTagsFeatures as Q } from "./components/LotCard/utils/getTagsFeatures.js";
|
|
4
|
+
import { c as U } from "./index-YnD2EP-S.js";
|
|
5
|
+
import { checkBedroomsCount as X } from "./components/LotCard/utils/checkBedroomsCount.js";
|
|
6
|
+
import { formatPayment as Y } from "./components/LotCard/utils/monthlyPayment.js";
|
|
7
|
+
import { useClientWidth as Z } from "./shared/useClientWidth.js";
|
|
8
|
+
import { Text as tt } from "./components/Text/ui/Text.js";
|
|
9
|
+
import { NewIcon as et } from "./components/NewIcon/ui/NewIcon.js";
|
|
10
|
+
const ot = "_root_1tkvz_1", rt = "_lotBtn_1tkvz_12", nt = "_rootDisable_1tkvz_26", st = "_lotImageWrapper_1tkvz_26", it = "_lotInfoWrapper_1tkvz_27", pt = "_infoHeader_1tkvz_48", ct = "_monthlyWrapper_1tkvz_57", lt = "_price_1tkvz_67", at = "_monthlyPayment_1tkvz_74", _t = "_decor_1tkvz_80", dt = "_lotPropertyListMobile_1tkvz_87", mt = "_lotPropertyItem_1tkvz_95", ut = "_lotPropertyListDesktop_1tkvz_112", ht = "_lotPriceWrapper_1tkvz_116", vt = "_discountWrapper_1tkvz_122", ft = "_discountPrice_1tkvz_133", kt = "_priceWrap_1tkvz_145", zt = "_snippetLast_1tkvz_155", Pt = "_snippet_1tkvz_155", gt = "_tagsMobile_1tkvz_170", St = "_discountTag_1tkvz_185", Wt = "_lotPricePerMetr_1tkvz_189", yt = "_btnWrapper_1tkvz_194", bt = "_title_1tkvz_201", Lt = "_snippets_1tkvz_205", wt = "_retailSnippets_1tkvz_210", It = "_shownSnippets_1tkvz_215", Mt = "_addSnippets_1tkvz_240", Nt = "_addSnippetsActive_1tkvz_256", Tt = "_addSnippetsList_1tkvz_261", Bt = "_closeSnippetBtn_1tkvz_305", Ct = "_rootRow_1tkvz_317", Rt = "_rowTablet_1tkvz_328", xt = "_rootRightSide_1tkvz_369", Dt = "_topWrapper_1tkvz_385", Ft = "_botWrapper_1tkvz_390", jt = "_lotPriceWrapperRow_1tkvz_421", Ht = "_fullscreenBtn_1tkvz_431", At = "_projectLotPricePerMetr_1tkvz_450", Vt = "_paymentClass_1tkvz_490", e = {
|
|
11
|
+
root: ot,
|
|
12
|
+
lotBtn: rt,
|
|
13
|
+
rootDisable: nt,
|
|
14
|
+
lotImageWrapper: st,
|
|
15
|
+
lotInfoWrapper: it,
|
|
16
|
+
infoHeader: pt,
|
|
17
|
+
monthlyWrapper: ct,
|
|
18
|
+
price: lt,
|
|
19
|
+
monthlyPayment: at,
|
|
20
|
+
decor: _t,
|
|
21
|
+
lotPropertyListMobile: dt,
|
|
22
|
+
lotPropertyItem: mt,
|
|
23
|
+
lotPropertyListDesktop: ut,
|
|
24
|
+
lotPriceWrapper: ht,
|
|
25
|
+
discountWrapper: vt,
|
|
26
|
+
discountPrice: ft,
|
|
27
|
+
priceWrap: kt,
|
|
28
|
+
snippetLast: zt,
|
|
29
|
+
snippet: Pt,
|
|
30
|
+
tagsMobile: gt,
|
|
31
|
+
discountTag: St,
|
|
32
|
+
lotPricePerMetr: Wt,
|
|
33
|
+
btnWrapper: yt,
|
|
34
|
+
title: bt,
|
|
35
|
+
snippets: Lt,
|
|
36
|
+
retailSnippets: wt,
|
|
37
|
+
shownSnippets: It,
|
|
38
|
+
addSnippets: Mt,
|
|
39
|
+
addSnippetsActive: Nt,
|
|
40
|
+
addSnippetsList: Tt,
|
|
41
|
+
closeSnippetBtn: Bt,
|
|
42
|
+
rootRow: Ct,
|
|
43
|
+
rowTablet: Rt,
|
|
44
|
+
rootRightSide: xt,
|
|
45
|
+
topWrapper: Dt,
|
|
46
|
+
botWrapper: Ft,
|
|
47
|
+
lotPriceWrapperRow: jt,
|
|
48
|
+
fullscreenBtn: Ht,
|
|
49
|
+
projectLotPricePerMetr: At,
|
|
50
|
+
paymentClass: Vt
|
|
51
|
+
}, d = U.bind(e), Yt = ({ lot: y, rowConditions: b }) => {
|
|
52
|
+
const {
|
|
53
|
+
status: R,
|
|
54
|
+
direction: x,
|
|
55
|
+
area: L,
|
|
56
|
+
floor: u,
|
|
57
|
+
endFloor: g,
|
|
58
|
+
floorsNumber: c,
|
|
59
|
+
type: S,
|
|
60
|
+
isCorner: D,
|
|
61
|
+
windowViews: h,
|
|
62
|
+
subTypeName: w,
|
|
63
|
+
number: I,
|
|
64
|
+
bedroomsCount: F,
|
|
65
|
+
mortgageMonthlyPayment: M
|
|
66
|
+
} = y, [W, v] = K(!1), j = R === 2, H = x === 1, f = S === 11, A = L ? L + " м²" : "", m = u && c ? (g && g !== u ? u + "-" + g : u) + " из " + c : "", k = Q({ ...y }), { isTablet: N, isDesktop: l, isMobile: T, currentClientWidth: V } = Z(), $ = typeof b < "u" ? b : l || N, E = () => f ? c ? "Кол-во этажей: " + c : "" : m ? "Этаж: " + m : "", O = () => f ? c ? /* @__PURE__ */ _("li", { className: d(e.lotPropertyItem), children: [
|
|
67
|
+
/* @__PURE__ */ t("div", { children: "Количество этажей" }),
|
|
68
|
+
/* @__PURE__ */ t("div", { children: c })
|
|
69
|
+
] }) : null : m ? /* @__PURE__ */ _("li", { className: d(e.lotPropertyItem), children: [
|
|
70
|
+
/* @__PURE__ */ t("div", { children: "Этаж" }),
|
|
71
|
+
/* @__PURE__ */ t("div", { children: m })
|
|
72
|
+
] }) : null, q = () => {
|
|
73
|
+
if (S === 3) {
|
|
74
|
+
if (T && (!h || h.length === 0))
|
|
75
|
+
return null;
|
|
76
|
+
let n = 0;
|
|
77
|
+
const r = l ? 36 : 28, i = [], z = [];
|
|
78
|
+
if (D) {
|
|
79
|
+
const o = "Угловая";
|
|
80
|
+
if (n + o.length <= r)
|
|
81
|
+
i.push(o), n += o.length;
|
|
82
|
+
else
|
|
83
|
+
return i;
|
|
84
|
+
}
|
|
85
|
+
if (h) {
|
|
86
|
+
const o = h.filter((p) => p && p.trim() !== "");
|
|
87
|
+
let s = 0, a = n;
|
|
88
|
+
for (let p = 0; p < o.length; p++) {
|
|
89
|
+
const P = o[p], B = s > 0 ? " " + P : P;
|
|
90
|
+
if (a + B.length <= r)
|
|
91
|
+
i.push(P), a += B.length, s++;
|
|
92
|
+
else {
|
|
93
|
+
if (s === 0) {
|
|
94
|
+
const C = r - a;
|
|
95
|
+
if (C > 3) {
|
|
96
|
+
const G = P.substring(0, C - 3) + "...";
|
|
97
|
+
i.push(G), a = r;
|
|
98
|
+
} else
|
|
99
|
+
i.push("..."), a += 3;
|
|
100
|
+
}
|
|
101
|
+
z.push(...o.slice(p));
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
n = a;
|
|
106
|
+
}
|
|
107
|
+
return /* @__PURE__ */ _("div", { className: e.retailSnippets, children: [
|
|
108
|
+
/* @__PURE__ */ t("ul", { className: e.shownSnippets, children: i?.map((o, s) => /* @__PURE__ */ t("li", { children: o }, s)) }),
|
|
109
|
+
z?.length > 0 && /* @__PURE__ */ _(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
className: d(e.addSnippets, { [e.addSnippetsActive]: W }),
|
|
113
|
+
onClick: (o) => {
|
|
114
|
+
l || (o.stopPropagation(), o.preventDefault(), v((s) => !s));
|
|
115
|
+
},
|
|
116
|
+
onMouseEnter: () => {
|
|
117
|
+
l && v(!0);
|
|
118
|
+
},
|
|
119
|
+
onMouseLeave: () => {
|
|
120
|
+
l && v(!1);
|
|
121
|
+
},
|
|
122
|
+
children: [
|
|
123
|
+
"+" + z?.length,
|
|
124
|
+
W && /* @__PURE__ */ _("ul", { className: e.addSnippetsList, children: [
|
|
125
|
+
z.map((o, s) => /* @__PURE__ */ t("li", { children: o }, s)),
|
|
126
|
+
/* @__PURE__ */ t("div", { className: e.closeSnippetBtn, children: /* @__PURE__ */ t(
|
|
127
|
+
et,
|
|
128
|
+
{
|
|
129
|
+
name: "close",
|
|
130
|
+
size: "16",
|
|
131
|
+
color: "#ffffff"
|
|
132
|
+
}
|
|
133
|
+
) })
|
|
134
|
+
] })
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
] });
|
|
139
|
+
}
|
|
140
|
+
return k.length ? /* @__PURE__ */ t("div", { className: e.snippets, children: k.map((n, r) => {
|
|
141
|
+
const i = r === k.length - 1;
|
|
142
|
+
return /* @__PURE__ */ t(
|
|
143
|
+
"div",
|
|
144
|
+
{
|
|
145
|
+
className: d(e.snippet, i ? "" : e.snippetLast),
|
|
146
|
+
children: n.text
|
|
147
|
+
},
|
|
148
|
+
r
|
|
149
|
+
);
|
|
150
|
+
}) }) : null;
|
|
151
|
+
};
|
|
152
|
+
return {
|
|
153
|
+
currentClientWidth: V,
|
|
154
|
+
isBuilding: f,
|
|
155
|
+
LotCardInfo: () => {
|
|
156
|
+
const n = H && S && w ? w : X(F), r = f ? n : `${n}${I ? `, ${I}` : ""}`;
|
|
157
|
+
return /* @__PURE__ */ t(J, { children: /* @__PURE__ */ _("div", { className: d(e.monthlyWrapper), children: [
|
|
158
|
+
r && /* @__PURE__ */ t(
|
|
159
|
+
tt,
|
|
160
|
+
{
|
|
161
|
+
className: d(e.infoHeader),
|
|
162
|
+
html: r
|
|
163
|
+
}
|
|
164
|
+
),
|
|
165
|
+
M && /* @__PURE__ */ t("div", { className: e.monthlyPayment, children: Y(M) }),
|
|
166
|
+
/* @__PURE__ */ t(q, {})
|
|
167
|
+
] }) });
|
|
168
|
+
},
|
|
169
|
+
tagFeatures: k,
|
|
170
|
+
FloorByType: O,
|
|
171
|
+
isTablet: N,
|
|
172
|
+
isDesktop: l,
|
|
173
|
+
getFloorStr: E,
|
|
174
|
+
isReserved: j,
|
|
175
|
+
isMobile: T,
|
|
176
|
+
areaStr: A,
|
|
177
|
+
floorStr: m,
|
|
178
|
+
isShowSnippet: W,
|
|
179
|
+
setIsShowSnippet: v,
|
|
180
|
+
rowConditionsVar: $
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
export {
|
|
184
|
+
e as s,
|
|
185
|
+
Yt as u
|
|
186
|
+
};
|
package/package.json
CHANGED
package/dist/Option-DI87iJMM.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { jsxs as O, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as C } from "./index-YnD2EP-S.js";
|
|
3
|
-
import { NewIcon as d } from "./components/NewIcon/ui/NewIcon.js";
|
|
4
|
-
const g = "_multiSelectWrapper_jaduw_1", S = "_loaderWrapper_jaduw_8", h = "_loader_jaduw_8", L = "_rotate_jaduw_1", f = "_selectedOptions_jaduw_27", k = "_selectedText_jaduw_45", v = "_selectedOptionsBtn_jaduw_53", x = "_selectedOptionsOpened_jaduw_79", W = "_selectedOptionsNotEmpty_jaduw_83", y = "_selectOptionsDisabled_jaduw_88", D = "_optionsOuterContainer_jaduw_95", N = "_optionLabel_jaduw_108", B = "_betweenSize_small_jaduw_114", A = "_betweenSize_medium_jaduw_118", E = "_optionsList_jaduw_122", R = "_scroll_standard_jaduw_151", T = "_scroll_compact_jaduw_155", H = "_lastList_jaduw_160", P = "_listRight_jaduw_165", U = "_inputWrapper_jaduw_169", $ = "_option_jaduw_95", q = "_category_jaduw_191", F = "_leftSide_jaduw_197", G = "_optionCategory_jaduw_202", I = "_isPositionLeftCheckbox_jaduw_208", J = "_optionDisabled_jaduw_213", K = "_optionClickable_jaduw_217", M = "_icon_jaduw_221", Q = "_iconArrow_jaduw_227", V = "_iconBtn_jaduw_233", t = {
|
|
5
|
-
multiSelectWrapper: g,
|
|
6
|
-
loaderWrapper: S,
|
|
7
|
-
loader: h,
|
|
8
|
-
rotate: L,
|
|
9
|
-
selectedOptions: f,
|
|
10
|
-
selectedText: k,
|
|
11
|
-
selectedOptionsBtn: v,
|
|
12
|
-
"small-size": "_small-size_jaduw_58",
|
|
13
|
-
"medium-size": "_medium-size_jaduw_65",
|
|
14
|
-
"large-size": "_large-size_jaduw_72",
|
|
15
|
-
selectedOptionsOpened: x,
|
|
16
|
-
selectedOptionsNotEmpty: W,
|
|
17
|
-
selectOptionsDisabled: y,
|
|
18
|
-
optionsOuterContainer: D,
|
|
19
|
-
optionLabel: N,
|
|
20
|
-
betweenSize_small: B,
|
|
21
|
-
betweenSize_medium: A,
|
|
22
|
-
optionsList: E,
|
|
23
|
-
scroll_standard: R,
|
|
24
|
-
scroll_compact: T,
|
|
25
|
-
lastList: H,
|
|
26
|
-
listRight: P,
|
|
27
|
-
inputWrapper: U,
|
|
28
|
-
option: $,
|
|
29
|
-
category: q,
|
|
30
|
-
leftSide: F,
|
|
31
|
-
optionCategory: G,
|
|
32
|
-
isPositionLeftCheckbox: I,
|
|
33
|
-
optionDisabled: J,
|
|
34
|
-
optionClickable: K,
|
|
35
|
-
icon: M,
|
|
36
|
-
iconArrow: Q,
|
|
37
|
-
iconBtn: V,
|
|
38
|
-
"small-size_m": "_small-size_m_jaduw_246",
|
|
39
|
-
"medium-size_m": "_medium-size_m_jaduw_252",
|
|
40
|
-
"large-size_m": "_large-size_m_jaduw_258",
|
|
41
|
-
"small-size_l": "_small-size_l_jaduw_273",
|
|
42
|
-
"medium-size_l": "_medium-size_l_jaduw_279",
|
|
43
|
-
"large-size_l": "_large-size_l_jaduw_285"
|
|
44
|
-
}, X = C.bind(t), te = ({
|
|
45
|
-
option: e,
|
|
46
|
-
selectedOptions: r,
|
|
47
|
-
disabledOptions: u,
|
|
48
|
-
clickableOptions: s,
|
|
49
|
-
handleOptionClick: p,
|
|
50
|
-
isOptionCategory: o,
|
|
51
|
-
isPositionLeftCheckbox: _ = !1,
|
|
52
|
-
sizeIcon: n,
|
|
53
|
-
dataTestId: m,
|
|
54
|
-
isDisabledNotClickable: w,
|
|
55
|
-
addClassName: j = ""
|
|
56
|
-
}) => {
|
|
57
|
-
const z = s ? s.includes(`${e.value}`) : !0, b = e.value === "selectAll", i = r.some((l) => l.value === e.value), c = () => w && s ? !s.includes(`${e.value}`) : u.some((l) => l.value === e.value);
|
|
58
|
-
return /* @__PURE__ */ O(
|
|
59
|
-
"div",
|
|
60
|
-
{
|
|
61
|
-
className: X(
|
|
62
|
-
t.option,
|
|
63
|
-
{
|
|
64
|
-
[t.optionDisabled]: c(),
|
|
65
|
-
[t.optionCategory]: o,
|
|
66
|
-
[t.isPositionLeftCheckbox]: _,
|
|
67
|
-
[t.optionClickable]: z || b
|
|
68
|
-
},
|
|
69
|
-
j
|
|
70
|
-
),
|
|
71
|
-
"data-testid": m,
|
|
72
|
-
onClick: () => {
|
|
73
|
-
c() && !i || p(e);
|
|
74
|
-
},
|
|
75
|
-
children: [
|
|
76
|
-
(o || _) && /* @__PURE__ */ a(
|
|
77
|
-
d,
|
|
78
|
-
{
|
|
79
|
-
size: n ?? "20",
|
|
80
|
-
name: i ? "selectChecked" : "selectUncheckedHollow"
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
/* @__PURE__ */ a("div", { className: t.optionLabel, children: e.label }),
|
|
84
|
-
!o && !_ && /* @__PURE__ */ a(
|
|
85
|
-
d,
|
|
86
|
-
{
|
|
87
|
-
size: n ?? "20",
|
|
88
|
-
name: i ? "selectChecked" : "selectUncheckedHollow"
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
};
|
|
95
|
-
export {
|
|
96
|
-
te as O,
|
|
97
|
-
t as s
|
|
98
|
-
};
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { jsxs as _, jsx as t, Fragment as J } from "react/jsx-runtime";
|
|
2
|
-
import { useState as K } from "react";
|
|
3
|
-
import { getTagsFeatures as Q } from "./components/LotCard/utils/getTagsFeatures.js";
|
|
4
|
-
import { c as U } from "./index-YnD2EP-S.js";
|
|
5
|
-
import { checkBedroomsCount as X } from "./components/LotCard/utils/checkBedroomsCount.js";
|
|
6
|
-
import { formatPayment as Y } from "./components/LotCard/utils/monthlyPayment.js";
|
|
7
|
-
import { useClientWidth as Z } from "./shared/useClientWidth.js";
|
|
8
|
-
import { Text as tt } from "./components/Text/ui/Text.js";
|
|
9
|
-
import { NewIcon as et } from "./components/NewIcon/ui/NewIcon.js";
|
|
10
|
-
const ot = "_root_zaa09_1", rt = "_lotBtn_zaa09_12", nt = "_rootDisable_zaa09_26", at = "_lotImageWrapper_zaa09_26", st = "_lotInfoWrapper_zaa09_27", it = "_favoriteBtn_zaa09_41", pt = "_infoHeader_zaa09_54", ct = "_monthlyWrapper_zaa09_63", lt = "_price_zaa09_73", _t = "_monthlyPayment_zaa09_80", dt = "_decor_zaa09_86", mt = "_lotPropertyListMobile_zaa09_93", ut = "_lotPropertyItem_zaa09_101", ft = "_lotPropertyListDesktop_zaa09_118", ht = "_lotPriceWrapper_zaa09_122", zt = "_discountWrapper_zaa09_128", Pt = "_discountPrice_zaa09_139", gt = "_priceWrap_zaa09_151", St = "_snippetLast_zaa09_161", Wt = "_snippet_zaa09_161", yt = "_tagsMobile_zaa09_176", bt = "_discountTag_zaa09_191", Lt = "_lotPricePerMetr_zaa09_195", vt = "_btnWrapper_zaa09_200", wt = "_title_zaa09_207", It = "_snippets_zaa09_211", Bt = "_retailSnippets_zaa09_216", Mt = "_shownSnippets_zaa09_221", Nt = "_addSnippets_zaa09_246", Tt = "_addSnippetsActive_zaa09_262", Ct = "_addSnippetsList_zaa09_267", Rt = "_closeSnippetBtn_zaa09_311", xt = "_rootRow_zaa09_323", Dt = "_rowTablet_zaa09_334", kt = "_rootRightSide_zaa09_375", Ft = "_topWrapper_zaa09_391", jt = "_botWrapper_zaa09_396", Ht = "_lotPriceWrapperRow_zaa09_427", At = "_fullscreenBtn_zaa09_437", Vt = "_projectLotPricePerMetr_zaa09_456", $t = "_paymentClass_zaa09_496", e = {
|
|
11
|
-
root: ot,
|
|
12
|
-
lotBtn: rt,
|
|
13
|
-
rootDisable: nt,
|
|
14
|
-
lotImageWrapper: at,
|
|
15
|
-
lotInfoWrapper: st,
|
|
16
|
-
favoriteBtn: it,
|
|
17
|
-
infoHeader: pt,
|
|
18
|
-
monthlyWrapper: ct,
|
|
19
|
-
price: lt,
|
|
20
|
-
monthlyPayment: _t,
|
|
21
|
-
decor: dt,
|
|
22
|
-
lotPropertyListMobile: mt,
|
|
23
|
-
lotPropertyItem: ut,
|
|
24
|
-
lotPropertyListDesktop: ft,
|
|
25
|
-
lotPriceWrapper: ht,
|
|
26
|
-
discountWrapper: zt,
|
|
27
|
-
discountPrice: Pt,
|
|
28
|
-
priceWrap: gt,
|
|
29
|
-
snippetLast: St,
|
|
30
|
-
snippet: Wt,
|
|
31
|
-
tagsMobile: yt,
|
|
32
|
-
discountTag: bt,
|
|
33
|
-
lotPricePerMetr: Lt,
|
|
34
|
-
btnWrapper: vt,
|
|
35
|
-
title: wt,
|
|
36
|
-
snippets: It,
|
|
37
|
-
retailSnippets: Bt,
|
|
38
|
-
shownSnippets: Mt,
|
|
39
|
-
addSnippets: Nt,
|
|
40
|
-
addSnippetsActive: Tt,
|
|
41
|
-
addSnippetsList: Ct,
|
|
42
|
-
closeSnippetBtn: Rt,
|
|
43
|
-
rootRow: xt,
|
|
44
|
-
rowTablet: Dt,
|
|
45
|
-
rootRightSide: kt,
|
|
46
|
-
topWrapper: Ft,
|
|
47
|
-
botWrapper: jt,
|
|
48
|
-
lotPriceWrapperRow: Ht,
|
|
49
|
-
fullscreenBtn: At,
|
|
50
|
-
projectLotPricePerMetr: Vt,
|
|
51
|
-
paymentClass: $t
|
|
52
|
-
}, d = U.bind(e), Zt = ({ lot: L, rowConditions: v }) => {
|
|
53
|
-
const {
|
|
54
|
-
status: x,
|
|
55
|
-
direction: D,
|
|
56
|
-
area: w,
|
|
57
|
-
floor: u,
|
|
58
|
-
endFloor: W,
|
|
59
|
-
floorsNumber: p,
|
|
60
|
-
type: y,
|
|
61
|
-
isCorner: k,
|
|
62
|
-
windowViews: f,
|
|
63
|
-
subTypeName: I,
|
|
64
|
-
number: B,
|
|
65
|
-
bedroomsCount: F,
|
|
66
|
-
mortgageMonthlyPayment: M
|
|
67
|
-
} = L, [b, h] = K(!1), j = x === 2, H = D === 1, z = y === 11, A = w ? w + " м²" : "", m = u && p ? (W && W !== u ? u + "-" + W : u) + " из " + p : "", P = Q({ ...L }), { isTablet: N, isDesktop: c, isMobile: T, currentClientWidth: V } = Z(), $ = typeof v < "u" ? v : c || N, E = () => z ? p ? "Кол-во этажей: " + p : "" : m ? "Этаж: " + m : "", O = () => z ? p ? /* @__PURE__ */ _("li", { className: d(e.lotPropertyItem), children: [
|
|
68
|
-
/* @__PURE__ */ t("div", { children: "Количество этажей" }),
|
|
69
|
-
/* @__PURE__ */ t("div", { children: p })
|
|
70
|
-
] }) : null : m ? /* @__PURE__ */ _("li", { className: d(e.lotPropertyItem), children: [
|
|
71
|
-
/* @__PURE__ */ t("div", { children: "Этаж" }),
|
|
72
|
-
/* @__PURE__ */ t("div", { children: m })
|
|
73
|
-
] }) : null, q = () => {
|
|
74
|
-
if (y === 3) {
|
|
75
|
-
if (T && (!f || f.length === 0))
|
|
76
|
-
return null;
|
|
77
|
-
let n = 0;
|
|
78
|
-
const r = c ? 36 : 28, s = [], g = [];
|
|
79
|
-
if (k) {
|
|
80
|
-
const o = "Угловая";
|
|
81
|
-
if (n + o.length <= r)
|
|
82
|
-
s.push(o), n += o.length;
|
|
83
|
-
else
|
|
84
|
-
return s;
|
|
85
|
-
}
|
|
86
|
-
if (f) {
|
|
87
|
-
const o = f.filter((i) => i && i.trim() !== "");
|
|
88
|
-
let a = 0, l = n;
|
|
89
|
-
for (let i = 0; i < o.length; i++) {
|
|
90
|
-
const S = o[i], C = a > 0 ? " " + S : S;
|
|
91
|
-
if (l + C.length <= r)
|
|
92
|
-
s.push(S), l += C.length, a++;
|
|
93
|
-
else {
|
|
94
|
-
if (a === 0) {
|
|
95
|
-
const R = r - l;
|
|
96
|
-
if (R > 3) {
|
|
97
|
-
const G = S.substring(0, R - 3) + "...";
|
|
98
|
-
s.push(G), l = r;
|
|
99
|
-
} else
|
|
100
|
-
s.push("..."), l += 3;
|
|
101
|
-
}
|
|
102
|
-
g.push(...o.slice(i));
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
n = l;
|
|
107
|
-
}
|
|
108
|
-
return /* @__PURE__ */ _("div", { className: e.retailSnippets, children: [
|
|
109
|
-
/* @__PURE__ */ t("ul", { className: e.shownSnippets, children: s?.map((o, a) => /* @__PURE__ */ t("li", { children: o }, a)) }),
|
|
110
|
-
g?.length > 0 && /* @__PURE__ */ _(
|
|
111
|
-
"div",
|
|
112
|
-
{
|
|
113
|
-
className: d(e.addSnippets, { [e.addSnippetsActive]: b }),
|
|
114
|
-
onClick: (o) => {
|
|
115
|
-
c || (o.stopPropagation(), o.preventDefault(), h((a) => !a));
|
|
116
|
-
},
|
|
117
|
-
onMouseEnter: () => {
|
|
118
|
-
c && h(!0);
|
|
119
|
-
},
|
|
120
|
-
onMouseLeave: () => {
|
|
121
|
-
c && h(!1);
|
|
122
|
-
},
|
|
123
|
-
children: [
|
|
124
|
-
"+" + g?.length,
|
|
125
|
-
b && /* @__PURE__ */ _("ul", { className: e.addSnippetsList, children: [
|
|
126
|
-
g.map((o, a) => /* @__PURE__ */ t("li", { children: o }, a)),
|
|
127
|
-
/* @__PURE__ */ t("div", { className: e.closeSnippetBtn, children: /* @__PURE__ */ t(
|
|
128
|
-
et,
|
|
129
|
-
{
|
|
130
|
-
name: "close",
|
|
131
|
-
size: "16",
|
|
132
|
-
color: "#ffffff"
|
|
133
|
-
}
|
|
134
|
-
) })
|
|
135
|
-
] })
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
|
-
)
|
|
139
|
-
] });
|
|
140
|
-
}
|
|
141
|
-
return P.length ? /* @__PURE__ */ t("div", { className: e.snippets, children: P.map((n, r) => {
|
|
142
|
-
const s = r === P.length - 1;
|
|
143
|
-
return /* @__PURE__ */ t(
|
|
144
|
-
"div",
|
|
145
|
-
{
|
|
146
|
-
className: d(e.snippet, s ? "" : e.snippetLast),
|
|
147
|
-
children: n.text
|
|
148
|
-
},
|
|
149
|
-
r
|
|
150
|
-
);
|
|
151
|
-
}) }) : null;
|
|
152
|
-
};
|
|
153
|
-
return {
|
|
154
|
-
currentClientWidth: V,
|
|
155
|
-
isBuilding: z,
|
|
156
|
-
LotCardInfo: () => {
|
|
157
|
-
const n = H && y && I ? I : X(F), r = z ? n : `${n}${B ? `, ${B}` : ""}`;
|
|
158
|
-
return /* @__PURE__ */ t(J, { children: /* @__PURE__ */ _("div", { className: d(e.monthlyWrapper), children: [
|
|
159
|
-
r && /* @__PURE__ */ t(
|
|
160
|
-
tt,
|
|
161
|
-
{
|
|
162
|
-
className: d(e.infoHeader),
|
|
163
|
-
html: r
|
|
164
|
-
}
|
|
165
|
-
),
|
|
166
|
-
M && /* @__PURE__ */ t("div", { className: e.monthlyPayment, children: Y(M) }),
|
|
167
|
-
/* @__PURE__ */ t(q, {})
|
|
168
|
-
] }) });
|
|
169
|
-
},
|
|
170
|
-
tagFeatures: P,
|
|
171
|
-
FloorByType: O,
|
|
172
|
-
isTablet: N,
|
|
173
|
-
isDesktop: c,
|
|
174
|
-
getFloorStr: E,
|
|
175
|
-
isReserved: j,
|
|
176
|
-
isMobile: T,
|
|
177
|
-
areaStr: A,
|
|
178
|
-
floorStr: m,
|
|
179
|
-
isShowSnippet: b,
|
|
180
|
-
setIsShowSnippet: h,
|
|
181
|
-
rowConditionsVar: $
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
export {
|
|
185
|
-
e as s,
|
|
186
|
-
Zt as u
|
|
187
|
-
};
|