stone-kit 0.0.659 → 0.0.660
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.
|
@@ -2,7 +2,7 @@ import { jsxs as p, jsx as r, Fragment as y } from "react/jsx-runtime";
|
|
|
2
2
|
import { Text as U } from "../../Text/ui/Text.js";
|
|
3
3
|
import { checkBedroomsCount as k } from "../utils/checkBedroomsCount.js";
|
|
4
4
|
import { NewIcon as N } from "../../NewIcon/ui/NewIcon.js";
|
|
5
|
-
import { Tag as
|
|
5
|
+
import { Tag as l } from "../../Tag/ui/Tag.js";
|
|
6
6
|
import { Button as h } from "../../Button/ui/Button.js";
|
|
7
7
|
import { formatPrice as P } from "../utils/formatPrice.js";
|
|
8
8
|
import { formatPayment as x } from "../utils/monthlyPayment.js";
|
|
@@ -52,28 +52,28 @@ const Y = "_root_paqvy_1", K = "_lotBtn_paqvy_11", V = "_rootProject_paqvy_16",
|
|
|
52
52
|
}) => {
|
|
53
53
|
const {
|
|
54
54
|
area: M,
|
|
55
|
-
floor:
|
|
56
|
-
floorsNumber:
|
|
55
|
+
floor: i,
|
|
56
|
+
floorsNumber: m,
|
|
57
57
|
housing: n,
|
|
58
58
|
bedroomsCount: E,
|
|
59
59
|
number: O,
|
|
60
60
|
isDecoration: D,
|
|
61
|
-
sellingPrice:
|
|
61
|
+
sellingPrice: b,
|
|
62
62
|
sellingPricePerMeter: u,
|
|
63
63
|
interiorPlanImg: B,
|
|
64
64
|
mortgageMonthlyPayment: L,
|
|
65
|
-
workPlacesCount:
|
|
66
|
-
type:
|
|
65
|
+
workPlacesCount: d,
|
|
66
|
+
type: j,
|
|
67
67
|
direction: c,
|
|
68
68
|
floorPlanImg: G,
|
|
69
69
|
discount: X,
|
|
70
70
|
sellingPriceBeforeDiscount: T,
|
|
71
71
|
subTypeName: R,
|
|
72
|
-
endFloor:
|
|
72
|
+
endFloor: v,
|
|
73
73
|
status: H
|
|
74
|
-
} = g, a = H === 2,
|
|
74
|
+
} = g, a = H === 2, f = c === 1, q = M + " м²", A = (v && v !== i ? i + "-" + v : i) + " из " + m, J = () => j === 11 ? "Кол-во этажей: " + m : "Этаж: " + A, S = () => j === 11 ? /* @__PURE__ */ p(y, { children: [
|
|
75
75
|
/* @__PURE__ */ r("div", { children: "Количество этажей" }),
|
|
76
|
-
/* @__PURE__ */ r("div", { children:
|
|
76
|
+
/* @__PURE__ */ r("div", { children: m })
|
|
77
77
|
] }) : /* @__PURE__ */ p(y, { children: [
|
|
78
78
|
/* @__PURE__ */ r("div", { children: "Этаж" }),
|
|
79
79
|
/* @__PURE__ */ r("div", { children: A })
|
|
@@ -103,14 +103,14 @@ const Y = "_root_paqvy_1", K = "_lotBtn_paqvy_11", V = "_rootProject_paqvy_16",
|
|
|
103
103
|
U,
|
|
104
104
|
{
|
|
105
105
|
className: o(t.infoHeader, { [t.projectLotInfoHeader]: e }),
|
|
106
|
-
html: `${
|
|
106
|
+
html: `${f && j ? R : k(E)}, ${O}`
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
109
|
L && /* @__PURE__ */ r("div", { className: t.monthlyPayment, children: x(L) })
|
|
110
110
|
] }),
|
|
111
111
|
!D && !e && /* @__PURE__ */ p("div", { className: t.decor, children: [
|
|
112
|
-
!
|
|
113
|
-
|
|
112
|
+
!f && /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r("span", {}) }),
|
|
113
|
+
f && d !== 0 && d && /* @__PURE__ */ r("span", { children: `${d} рабочих мест` })
|
|
114
114
|
] }),
|
|
115
115
|
/* @__PURE__ */ p(
|
|
116
116
|
"div",
|
|
@@ -119,9 +119,9 @@ const Y = "_root_paqvy_1", K = "_lotBtn_paqvy_11", V = "_rootProject_paqvy_16",
|
|
|
119
119
|
[t.projectLotPropertyListDesktop]: e
|
|
120
120
|
}),
|
|
121
121
|
children: [
|
|
122
|
-
/* @__PURE__ */ r(
|
|
123
|
-
/* @__PURE__ */ r(
|
|
124
|
-
/* @__PURE__ */ r(
|
|
122
|
+
/* @__PURE__ */ r(l, { variant: "gray", children: q }),
|
|
123
|
+
/* @__PURE__ */ r(l, { variant: "gray", children: n }),
|
|
124
|
+
/* @__PURE__ */ r(l, { variant: "gray", children: J() })
|
|
125
125
|
]
|
|
126
126
|
}
|
|
127
127
|
),
|
|
@@ -147,10 +147,10 @@ const Y = "_root_paqvy_1", K = "_lotBtn_paqvy_11", V = "_rootProject_paqvy_16",
|
|
|
147
147
|
] }),
|
|
148
148
|
/* @__PURE__ */ p("div", { className: o(t.lotPriceWrapper, { [t.projectLotPriceWrapper]: e }), children: [
|
|
149
149
|
!a && /* @__PURE__ */ p("div", { className: t.discountWrapper, children: [
|
|
150
|
-
X &&
|
|
151
|
-
/* @__PURE__ */ r("span", { children: P(T ??
|
|
150
|
+
X && b && T && /* @__PURE__ */ p("div", { className: o(t.discountPrice, { [t.projectDiscountPrice]: e }), children: [
|
|
151
|
+
/* @__PURE__ */ r("span", { children: P(T ?? b, !1, c) }),
|
|
152
152
|
/* @__PURE__ */ r(
|
|
153
|
-
|
|
153
|
+
l,
|
|
154
154
|
{
|
|
155
155
|
additionalClass: o(t.discountTag, { [t.projectDiscountTag]: e }),
|
|
156
156
|
variant: "red",
|
|
@@ -159,7 +159,7 @@ const Y = "_root_paqvy_1", K = "_lotBtn_paqvy_11", V = "_rootProject_paqvy_16",
|
|
|
159
159
|
}
|
|
160
160
|
)
|
|
161
161
|
] }),
|
|
162
|
-
/* @__PURE__ */ r("div", { children: P(
|
|
162
|
+
/* @__PURE__ */ r("div", { children: P(b, !1, c) })
|
|
163
163
|
] }),
|
|
164
164
|
u && !a && /* @__PURE__ */ r("div", { className: o(t.lotPricePerMetr, t.projectLotPricePerMetr), children: P(u, !0, c) }),
|
|
165
165
|
/* @__PURE__ */ p("div", { className: o(t.btnWrapper, { [t.projectBtnWrapper]: e }), children: [
|
|
@@ -171,8 +171,8 @@ const Y = "_root_paqvy_1", K = "_lotBtn_paqvy_11", V = "_rootProject_paqvy_16",
|
|
|
171
171
|
disabled: w,
|
|
172
172
|
variant: "whiteStroke",
|
|
173
173
|
additionalClass: t.fullscreenBtn,
|
|
174
|
-
onClick: (
|
|
175
|
-
|
|
174
|
+
onClick: (s) => {
|
|
175
|
+
s.preventDefault(), s.stopPropagation(), F && F();
|
|
176
176
|
},
|
|
177
177
|
children: /* @__PURE__ */ r(
|
|
178
178
|
N,
|
|
@@ -202,8 +202,8 @@ const Y = "_root_paqvy_1", K = "_lotBtn_paqvy_11", V = "_rootProject_paqvy_16",
|
|
|
202
202
|
color: "#777E90"
|
|
203
203
|
}
|
|
204
204
|
) : void 0,
|
|
205
|
-
onClick: (
|
|
206
|
-
|
|
205
|
+
onClick: (s) => {
|
|
206
|
+
s.preventDefault(), Z();
|
|
207
207
|
},
|
|
208
208
|
children: C
|
|
209
209
|
}
|