stone-kit 0.0.985 → 0.0.987
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,34 +1,36 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { NewIcon as
|
|
1
|
+
import { jsxs as p, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { NewIcon as g } from "../../../NewIcon/ui/NewIcon.js";
|
|
3
3
|
import { formatPrice as d } from "../../utils/formatPrice.js";
|
|
4
|
-
const
|
|
5
|
-
root:
|
|
4
|
+
const P = "_root_tmyym_1", W = "_price_tmyym_7", u = "_paymentWrapper_tmyym_19", N = "_pamentWrapperLargeOffice_tmyym_29", e = {
|
|
5
|
+
root: P,
|
|
6
6
|
price: W,
|
|
7
|
-
paymentWrapper:
|
|
8
|
-
pamentWrapperLargeOffice:
|
|
9
|
-
},
|
|
10
|
-
var
|
|
11
|
-
const { project:
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
|
|
7
|
+
paymentWrapper: u,
|
|
8
|
+
pamentWrapperLargeOffice: N
|
|
9
|
+
}, b = ({ lot: s, onPriceClickHandler: o }) => {
|
|
10
|
+
var l;
|
|
11
|
+
const { project: a, sellingPriceBeforeDiscount: t, showPriceFlg: f, direction: y, subType: n, sellingPrice: h } = s || {}, _ = !!((l = a == null ? void 0 : a.showPriceSubType) != null && l.some((r) => Number(r.filter) === s.subType)), i = n === 8 || n === 11, m = (t ?? h) && f && !i && _;
|
|
12
|
+
return /* @__PURE__ */ p("div", { className: e.root, children: [
|
|
13
|
+
m && /* @__PURE__ */ p("p", { className: e.price, children: [
|
|
14
14
|
" ",
|
|
15
|
-
d(
|
|
15
|
+
d(t, !1, y)
|
|
16
16
|
] }),
|
|
17
|
-
!
|
|
17
|
+
!m && /* @__PURE__ */ p(
|
|
18
18
|
"p",
|
|
19
19
|
{
|
|
20
20
|
className: e.price,
|
|
21
|
-
onClick:
|
|
21
|
+
onClick: (r) => {
|
|
22
|
+
r.preventDefault(), r.stopPropagation(), o && o();
|
|
23
|
+
},
|
|
22
24
|
children: [
|
|
23
25
|
"Цена ",
|
|
24
26
|
/* @__PURE__ */ c("span", { children: "по запросу" })
|
|
25
27
|
]
|
|
26
28
|
}
|
|
27
29
|
),
|
|
28
|
-
!i && /* @__PURE__ */
|
|
30
|
+
!i && /* @__PURE__ */ p("p", { className: e.paymentWrapper, children: [
|
|
29
31
|
/* @__PURE__ */ c("span", { children: "Доступно несколько способов оплаты" }),
|
|
30
32
|
/* @__PURE__ */ c(
|
|
31
|
-
|
|
33
|
+
g,
|
|
32
34
|
{
|
|
33
35
|
name: "arrowRight",
|
|
34
36
|
size: "16"
|
|
@@ -39,5 +41,5 @@ const g = "_root_tmyym_1", W = "_price_tmyym_7", N = "_paymentWrapper_tmyym_19",
|
|
|
39
41
|
] });
|
|
40
42
|
};
|
|
41
43
|
export {
|
|
42
|
-
|
|
44
|
+
b as Price
|
|
43
45
|
};
|