stone-kit 0.0.332 → 0.0.334
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as e, jsx as r, Fragment as g } from "react/jsx-runtime";
|
|
2
2
|
import { Text as M } from "../../Text/ui/Text.js";
|
|
3
3
|
import { checkBedroomsCount as G } from "../utils/checkBedroomsCount.js";
|
|
4
|
-
import { NewIcon as
|
|
4
|
+
import { NewIcon as c } from "../../NewIcon/ui/NewIcon.js";
|
|
5
5
|
import { Tag as p } from "../../Tag/ui/Tag.js";
|
|
6
|
-
import { Button as
|
|
7
|
-
import { formatPrice as
|
|
6
|
+
import { Button as m } from "../../Button/ui/Button.js";
|
|
7
|
+
import { formatPrice as f } from "../utils/formatPrice.js";
|
|
8
8
|
import "../../mobileButton/ui/MobileButton.js";
|
|
9
9
|
import "../../DestinationTab/ui/DestinationTab.js";
|
|
10
10
|
import "../../RoundButton/ui/RoundButton.js";
|
|
@@ -58,19 +58,19 @@ const B = "_root_flyfq_1", J = "_fullscreenBtnMobile_flyfq_11", D = "_lotImageWr
|
|
|
58
58
|
number: T,
|
|
59
59
|
isDecoration: h,
|
|
60
60
|
sellingPrice: a,
|
|
61
|
-
sellingPricePerMeter:
|
|
62
|
-
discountedPrice:
|
|
61
|
+
sellingPricePerMeter: b,
|
|
62
|
+
discountedPrice: d,
|
|
63
63
|
discountVolume: Z,
|
|
64
64
|
interiorPlanImg: q,
|
|
65
|
-
mortgageMonthlyPayment:
|
|
66
|
-
workPlacesCount:
|
|
65
|
+
mortgageMonthlyPayment: v,
|
|
66
|
+
workPlacesCount: i,
|
|
67
67
|
type: P,
|
|
68
68
|
direction: w,
|
|
69
69
|
floorPlanImg: E
|
|
70
|
-
} = y,
|
|
70
|
+
} = y, s = w === 1, F = A + " м²", j = C + " из " + I, { isMobile: O } = W();
|
|
71
71
|
return /* @__PURE__ */ e("div", { className: t.root, children: [
|
|
72
72
|
/* @__PURE__ */ r(
|
|
73
|
-
|
|
73
|
+
m,
|
|
74
74
|
{
|
|
75
75
|
as: "button",
|
|
76
76
|
variant: "gray",
|
|
@@ -80,7 +80,7 @@ const B = "_root_flyfq_1", J = "_fullscreenBtnMobile_flyfq_11", D = "_lotImageWr
|
|
|
80
80
|
l.preventDefault(), o && o();
|
|
81
81
|
},
|
|
82
82
|
children: /* @__PURE__ */ r(
|
|
83
|
-
|
|
83
|
+
c,
|
|
84
84
|
{
|
|
85
85
|
name: "fullscreen",
|
|
86
86
|
color: "#141416",
|
|
@@ -103,17 +103,17 @@ const B = "_root_flyfq_1", J = "_fullscreenBtnMobile_flyfq_11", D = "_lotImageWr
|
|
|
103
103
|
M,
|
|
104
104
|
{
|
|
105
105
|
className: t.infoHeader,
|
|
106
|
-
html: `${
|
|
106
|
+
html: `${s && P ? L[P] : G(N)}, ${T}`
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
|
-
|
|
109
|
+
v && /* @__PURE__ */ r("div", { className: t.monthlyPayment, children: R(v) })
|
|
110
110
|
] }),
|
|
111
111
|
!h && /* @__PURE__ */ e("div", { className: t.decor, children: [
|
|
112
|
-
!
|
|
113
|
-
/* @__PURE__ */ r(
|
|
112
|
+
!s && /* @__PURE__ */ e(g, { children: [
|
|
113
|
+
/* @__PURE__ */ r(c, { name: "withoutDecor" }),
|
|
114
114
|
/* @__PURE__ */ r("span", { children: "Без отделки" })
|
|
115
115
|
] }),
|
|
116
|
-
|
|
116
|
+
s && (i === 0 || i) && /* @__PURE__ */ r("span", { children: `${i} рабочих мест` })
|
|
117
117
|
] }),
|
|
118
118
|
/* @__PURE__ */ e("div", { className: t.lotPropertyListDesktop, children: [
|
|
119
119
|
/* @__PURE__ */ r(p, { variant: "gray", children: F }),
|
|
@@ -137,8 +137,8 @@ const B = "_root_flyfq_1", J = "_fullscreenBtnMobile_flyfq_11", D = "_lotImageWr
|
|
|
137
137
|
] }),
|
|
138
138
|
/* @__PURE__ */ e("div", { className: t.lotPriceWrapper, children: [
|
|
139
139
|
/* @__PURE__ */ e("div", { className: t.discountWrapper, children: [
|
|
140
|
-
|
|
141
|
-
/* @__PURE__ */ r("span", { children:
|
|
140
|
+
d && a && /* @__PURE__ */ e("div", { className: t.discountPrice, children: [
|
|
141
|
+
/* @__PURE__ */ r("span", { children: f(a) }),
|
|
142
142
|
/* @__PURE__ */ r(
|
|
143
143
|
p,
|
|
144
144
|
{
|
|
@@ -148,12 +148,12 @@ const B = "_root_flyfq_1", J = "_fullscreenBtnMobile_flyfq_11", D = "_lotImageWr
|
|
|
148
148
|
}
|
|
149
149
|
)
|
|
150
150
|
] }),
|
|
151
|
-
/* @__PURE__ */ r("div", { children:
|
|
151
|
+
/* @__PURE__ */ r("div", { children: f(d || a) })
|
|
152
152
|
] }),
|
|
153
|
-
|
|
153
|
+
b && /* @__PURE__ */ r("div", { className: t.lotPricePerMetr, children: f(b, !0) }),
|
|
154
154
|
/* @__PURE__ */ e("div", { className: t.btnWrapper, children: [
|
|
155
155
|
/* @__PURE__ */ r(
|
|
156
|
-
|
|
156
|
+
m,
|
|
157
157
|
{
|
|
158
158
|
as: "button",
|
|
159
159
|
variant: "gray",
|
|
@@ -162,7 +162,7 @@ const B = "_root_flyfq_1", J = "_fullscreenBtnMobile_flyfq_11", D = "_lotImageWr
|
|
|
162
162
|
l.preventDefault(), o && o();
|
|
163
163
|
},
|
|
164
164
|
children: /* @__PURE__ */ r(
|
|
165
|
-
|
|
165
|
+
c,
|
|
166
166
|
{
|
|
167
167
|
name: "fullscreen",
|
|
168
168
|
color: "#141416",
|
|
@@ -172,7 +172,7 @@ const B = "_root_flyfq_1", J = "_fullscreenBtnMobile_flyfq_11", D = "_lotImageWr
|
|
|
172
172
|
}
|
|
173
173
|
),
|
|
174
174
|
/* @__PURE__ */ r(
|
|
175
|
-
|
|
175
|
+
m,
|
|
176
176
|
{
|
|
177
177
|
as: "button",
|
|
178
178
|
size: O ? "large" : "medium",
|