@lanaco/lnc-react-ui 4.0.86 → 4.0.88
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/BannerSectionBasic.cjs +1 -1
- package/dist/BannerSectionBasic.js +1 -1
- package/dist/BannerSectionCarousel.cjs +2 -2
- package/dist/BannerSectionCarousel.js +6 -3
- package/dist/BannerSectionGrid.cjs +1 -1
- package/dist/BannerSectionGrid.js +3 -3
- package/dist/BannerSectionSimple.cjs +7 -7
- package/dist/BannerSectionSimple.js +54 -51
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +33 -30
- package/dist/BannerSectionWithListImage.cjs +9 -9
- package/dist/BannerSectionWithListImage.js +44 -41
- package/dist/BlogCardsSponsoredSection.cjs +4 -4
- package/dist/BlogCardsSponsoredSection.js +33 -30
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +2 -2
- package/dist/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +1 -1
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +2 -2
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +2 -2
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +2 -2
- package/dist/BlogsSectionDetailed.cjs +2 -2
- package/dist/BlogsSectionDetailed.js +29 -26
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +4 -4
- package/dist/BlogsSectionSimple.cjs +6 -6
- package/dist/BlogsSectionSimple.js +33 -30
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +6 -6
- package/dist/BlogsSectionWithFilters.js +50 -45
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CustomLoanMapSection.cjs +3 -3
- package/dist/CustomLoanMapSection.js +96 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +40 -35
- package/dist/FieldOfInterestsMasonrySection.cjs +24 -13
- package/dist/FieldOfInterestsMasonrySection.js +72 -66
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +12 -11
- package/dist/FieldOfInterestsWithTagsCardsSection.js +56 -53
- package/dist/GeneralWithTagsCardsSection.cjs +6 -7
- package/dist/GeneralWithTagsCardsSection.js +8 -9
- package/dist/GiftCardsSection.cjs +8 -8
- package/dist/GiftCardsSection.js +55 -52
- package/dist/LoanCalculatorSection.cjs +106 -4
- package/dist/LoanCalculatorSection.js +505 -350
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +4 -4
- package/dist/LocationSearchSection.js +18 -16
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +2 -2
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +3 -3
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +1 -1
- package/dist/ReviewsSection.cjs +1 -1
- package/dist/ReviewsSection.js +2 -2
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +2 -2
- package/dist/SeparatorSection.cjs +1 -1
- package/dist/SeparatorSection.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +19 -16
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +3 -3
- package/dist/UrgentSaleProductsSection.cjs +12 -6
- package/dist/UrgentSaleProductsSection.js +56 -47
- package/dist/consts-BuFChS64.js +7 -0
- package/dist/consts-goSZX3xP.cjs +1 -0
- package/dist/{index-BxlCwYfi.cjs → index-BaLBHyTh.cjs} +1 -1
- package/dist/{index-C7iutNsj.cjs → index-Ccw8sLnK.cjs} +1 -1
- package/dist/{index-CpuLfTNK.js → index-CsrdUl1x.js} +1 -1
- package/dist/{index-CWAifrDS.cjs → index-Cx4KvZ9L.cjs} +1 -1
- package/dist/{index-rYeYJwuL.cjs → index-DG7qQq8L.cjs} +1 -1
- package/dist/{index-DmuZIVnC.js → index-Db8wvLXS.js} +2 -2
- package/dist/{index-BpS5mEUu.js → index-Yh18uk_f.js} +2 -2
- package/dist/{index-B5bRol0l.js → index-iSD5jNBk.js} +2 -2
- package/dist/{skeleton-BRWiMY6b.cjs → skeleton-BBSBZ4JV.cjs} +1 -1
- package/dist/{skeleton-DhXNRCfI.js → skeleton-DALCB1S7.js} +1 -1
- package/dist/{style-OPSfrtFm.cjs → style-BTTXJFJN.cjs} +1 -1
- package/dist/{style-CsMpu4iC.js → style-sLF37aOA.js} +1 -1
- package/dist/{style-DOKM5cZi.js → style-tw6KjI2J.js} +1 -1
- package/dist/{style-C571ywKV.cjs → style-xvwWn3Zv.cjs} +1 -1
- package/dist/{suspense-categories-card-simple-D-tE8xV6.cjs → suspense-categories-card-simple-5JZtz7wj.cjs} +1 -1
- package/dist/{suspense-categories-card-simple-BmmCOsc0.js → suspense-categories-card-simple-BTFqzXyn.js} +1 -1
- package/dist/{suspense-large-Buu1428e.cjs → suspense-large-BtfvnzWh.cjs} +1 -1
- package/dist/{suspense-large-iKRJJlJv.js → suspense-large-DFlSJhGG.js} +1 -1
- package/dist/{suspense-product-card-detailed-J2a9wi6Z.js → suspense-product-card-detailed-CwdbxJrY.js} +1 -1
- package/dist/{suspense-product-card-detailed-CwUN6A-L.cjs → suspense-product-card-detailed-DBNlkFiP.cjs} +1 -1
- package/dist/{useDetectMobile-BC6EGaBc.js → useDetectMobile-Bkvj0VMa.js} +1 -1
- package/dist/{useDetectMobile-D6d5LpdL.cjs → useDetectMobile-zkbzoOGV.cjs} +1 -1
- package/package.json +1 -1
- package/dist/consts-C1uHV4xc.js +0 -6
- package/dist/consts-CtNoHdBj.cjs +0 -1
- package/dist/index-B69VVFyo.js +0 -164
- package/dist/index-ZR5ws_qw.cjs +0 -103
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t, Fragment as h } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as u, Suspense as
|
|
2
|
+
import { forwardRef as u, Suspense as P, memo as z, useMemo as A } from "react";
|
|
3
3
|
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as S } from "./consts-
|
|
5
|
-
import { u as I } from "./useDetectMobile-
|
|
6
|
-
import { m as g, t as
|
|
7
|
-
import { T as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { P as
|
|
11
|
-
import { S as
|
|
12
|
-
const
|
|
4
|
+
import { M as S } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { m as g, t as O, k as w } from "./utils-BE-UlkKf.js";
|
|
7
|
+
import { T as R } from "./style-sLF37aOA.js";
|
|
8
|
+
import j from "./Button.js";
|
|
9
|
+
import E from "./Link.js";
|
|
10
|
+
import { P as F } from "./index-Ca38iPjf.js";
|
|
11
|
+
import { S as L } from "./index-Db8wvLXS.js";
|
|
12
|
+
const U = f.div`
|
|
13
13
|
display: grid;
|
|
14
14
|
grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
|
|
15
15
|
gap: 1.25rem;
|
|
@@ -86,52 +86,52 @@ const L = f.div`
|
|
|
86
86
|
font-weight: 400;
|
|
87
87
|
font-size: 0.875rem;
|
|
88
88
|
color: var(--gray-700, #4e555f);
|
|
89
|
-
${
|
|
89
|
+
${O(3)}
|
|
90
90
|
}
|
|
91
|
-
`,
|
|
92
|
-
const { title: o, imageUrl: m, text: r, buttonText:
|
|
91
|
+
`, _ = u((i, l) => {
|
|
92
|
+
const { title: o, imageUrl: m, text: r, buttonText: s, onCardClick: a } = i;
|
|
93
93
|
return /* @__PURE__ */ n(C, { ref: l, className: "blog-card", onClick: a, children: [
|
|
94
94
|
/* @__PURE__ */ n(N, { children: [
|
|
95
95
|
/* @__PURE__ */ t("div", { className: "text-wr-title", children: o }),
|
|
96
96
|
/* @__PURE__ */ t("div", { className: "text-wr", children: r }),
|
|
97
|
-
/* @__PURE__ */ t(
|
|
97
|
+
/* @__PURE__ */ t(E, { color: "gray", onClick: a, children: s })
|
|
98
98
|
] }),
|
|
99
|
-
/* @__PURE__ */ t(
|
|
99
|
+
/* @__PURE__ */ t(F, { src: m })
|
|
100
100
|
] });
|
|
101
|
-
}),
|
|
101
|
+
}), D = u(({}, i) => /* @__PURE__ */ n(C, { className: "blog-card", children: [
|
|
102
102
|
/* @__PURE__ */ n(N, { children: [
|
|
103
103
|
/* @__PURE__ */ t("div", { className: "skeleton-title" }),
|
|
104
104
|
/* @__PURE__ */ t("div", { className: "text-wr" }),
|
|
105
105
|
/* @__PURE__ */ t("div", { className: "skeleton-action" })
|
|
106
106
|
] }),
|
|
107
107
|
/* @__PURE__ */ t("div", { className: "skeleton-img" })
|
|
108
|
-
] })),
|
|
109
|
-
|
|
108
|
+
] })), G = ({ limit: i = 3, isLoading: l = !1, keyPrefix: o }) => /* @__PURE__ */ t(h, { children: Array.from({ length: i }, (m, r) => /* @__PURE__ */ t(
|
|
109
|
+
D,
|
|
110
110
|
{
|
|
111
111
|
isLoading: l
|
|
112
112
|
},
|
|
113
113
|
`${o}-skeleton-product-card-${r}`
|
|
114
|
-
)) }),
|
|
114
|
+
)) }), H = ({
|
|
115
115
|
children: i,
|
|
116
116
|
fallbackComponent: l = /* @__PURE__ */ t(h, {}),
|
|
117
117
|
isLoading: o = !1,
|
|
118
118
|
limit: m,
|
|
119
119
|
keyPrefix: r
|
|
120
|
-
}) => /* @__PURE__ */ t(
|
|
121
|
-
|
|
120
|
+
}) => /* @__PURE__ */ t(P, { fallbackComponent: l, children: o === !0 ? /* @__PURE__ */ t(
|
|
121
|
+
G,
|
|
122
122
|
{
|
|
123
123
|
isLoading: o,
|
|
124
124
|
limit: m,
|
|
125
125
|
keyPrefix: r
|
|
126
126
|
}
|
|
127
|
-
) : i }), y =
|
|
127
|
+
) : i }), y = z(_), ie = u((i, l) => {
|
|
128
128
|
const {
|
|
129
129
|
icon: o,
|
|
130
130
|
title: m,
|
|
131
131
|
items: r,
|
|
132
|
-
buttonText:
|
|
132
|
+
buttonText: s,
|
|
133
133
|
limit: a = 3,
|
|
134
|
-
options:
|
|
134
|
+
options: c,
|
|
135
135
|
selectedOption: T = [],
|
|
136
136
|
onButtonAction: $ = () => {
|
|
137
137
|
},
|
|
@@ -141,51 +141,55 @@ const L = f.div`
|
|
|
141
141
|
onSelectAll: B = () => {
|
|
142
142
|
},
|
|
143
143
|
isLoading: W = !1,
|
|
144
|
-
onSelectCard:
|
|
145
|
-
}
|
|
146
|
-
|
|
144
|
+
onSelectCard: p = () => {
|
|
145
|
+
},
|
|
146
|
+
productsToolbarName: x = "All"
|
|
147
|
+
} = i, v = I(), M = A(() => /* @__PURE__ */ t(h, { children: v === !0 ? r == null ? void 0 : r.map((e, d) => /* @__PURE__ */ t(
|
|
147
148
|
y,
|
|
148
149
|
{
|
|
149
150
|
title: e == null ? void 0 : e.title,
|
|
150
151
|
imageUrl: (e == null ? void 0 : e.image) || null,
|
|
151
152
|
text: e == null ? void 0 : e.text,
|
|
152
153
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
153
|
-
onCardClick: () =>
|
|
154
|
+
onCardClick: () => p(e)
|
|
154
155
|
},
|
|
155
|
-
|
|
156
|
-
)) : r == null ? void 0 : r.slice(0, a).map((e,
|
|
156
|
+
d
|
|
157
|
+
)) : r == null ? void 0 : r.slice(0, a).map((e, d) => /* @__PURE__ */ t(
|
|
157
158
|
y,
|
|
158
159
|
{
|
|
159
160
|
title: e == null ? void 0 : e.title,
|
|
160
161
|
imageUrl: (e == null ? void 0 : e.image) || null,
|
|
161
162
|
text: e == null ? void 0 : e.text,
|
|
162
163
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
163
|
-
onCardClick: () =>
|
|
164
|
+
onCardClick: () => p(e)
|
|
164
165
|
},
|
|
165
|
-
|
|
166
|
-
)) }), [r, v, a,
|
|
167
|
-
return /* @__PURE__ */ n(
|
|
166
|
+
d
|
|
167
|
+
)) }), [r, v, a, p]);
|
|
168
|
+
return /* @__PURE__ */ n(R, { ref: l, children: [
|
|
168
169
|
/* @__PURE__ */ n("div", { className: "regular-title", children: [
|
|
169
170
|
/* @__PURE__ */ n("div", { className: "regular-title-text", children: [
|
|
170
171
|
w(o) && /* @__PURE__ */ t("i", { className: o }),
|
|
171
172
|
/* @__PURE__ */ t("span", { children: m })
|
|
172
173
|
] }),
|
|
173
174
|
w(b) && /* @__PURE__ */ t(
|
|
174
|
-
|
|
175
|
+
j,
|
|
175
176
|
{
|
|
176
177
|
type: "button",
|
|
177
178
|
btnType: "tinted",
|
|
178
179
|
color: "gray",
|
|
179
|
-
onClick: () =>
|
|
180
|
+
onClick: (e) => {
|
|
181
|
+
var d;
|
|
182
|
+
(d = e == null ? void 0 : e.target) == null || d.blur(), $(b);
|
|
183
|
+
},
|
|
180
184
|
borderRadius: "curved",
|
|
181
|
-
children:
|
|
185
|
+
children: s
|
|
182
186
|
}
|
|
183
187
|
)
|
|
184
188
|
] }),
|
|
185
|
-
(
|
|
186
|
-
|
|
189
|
+
(c == null ? void 0 : c.length) > 0 && /* @__PURE__ */ t(
|
|
190
|
+
L,
|
|
187
191
|
{
|
|
188
|
-
items:
|
|
192
|
+
items: c,
|
|
189
193
|
selectedIds: T,
|
|
190
194
|
onRemove: (e) => {
|
|
191
195
|
k(e);
|
|
@@ -196,20 +200,21 @@ const L = f.div`
|
|
|
196
200
|
onSelectAll: B,
|
|
197
201
|
labelKey: "name",
|
|
198
202
|
valueKey: "code",
|
|
199
|
-
noMargin: !0
|
|
203
|
+
noMargin: !0,
|
|
204
|
+
productsToolbarName: x
|
|
200
205
|
}
|
|
201
206
|
),
|
|
202
|
-
/* @__PURE__ */ t(
|
|
203
|
-
|
|
207
|
+
/* @__PURE__ */ t(U, { limit: a, children: /* @__PURE__ */ t(
|
|
208
|
+
H,
|
|
204
209
|
{
|
|
205
210
|
isLoading: W,
|
|
206
211
|
limit: a,
|
|
207
212
|
keyPrefix: "explore-landing",
|
|
208
|
-
children:
|
|
213
|
+
children: M
|
|
209
214
|
}
|
|
210
215
|
) })
|
|
211
216
|
] });
|
|
212
217
|
});
|
|
213
218
|
export {
|
|
214
|
-
|
|
219
|
+
ie as default
|
|
215
220
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),p=require("react"),c=require("./utils-DhRHf5Ed.cjs"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),p=require("react"),c=require("./utils-DhRHf5Ed.cjs"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-goSZX3xP.cjs"),h=o.styled.div`
|
|
2
2
|
width: 7.5rem;
|
|
3
3
|
height: auto;
|
|
4
4
|
max-height: 7.5rem;
|
package/dist/BrandHitsSection.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as o } from "react";
|
|
3
3
|
import { m as c, l as s } from "./utils-BE-UlkKf.js";
|
|
4
4
|
import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { M as m } from "./consts-
|
|
5
|
+
import { M as m } from "./consts-BuFChS64.js";
|
|
6
6
|
const g = d.div`
|
|
7
7
|
width: 7.5rem;
|
|
8
8
|
height: auto;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),d=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./consts-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),d=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./consts-goSZX3xP.cjs"),z=require("./Button.cjs"),I=require("./index-BPVoEhTF.cjs"),L=require("./RangeSlider.cjs"),F=require("./DropdownItem.cjs"),X=require("./DropdownMenu.cjs"),Z=require("./IconButton.cjs"),V=require("./BannerSectionWithList.cjs"),H=require("./utils-DhRHf5Ed.cjs"),D=b.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as i, jsx as a, Fragment as z } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as w, useState as N, useRef as Y } from "react";
|
|
3
3
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as C } from "./consts-
|
|
4
|
+
import { M as C } from "./consts-BuFChS64.js";
|
|
5
5
|
import S from "./Button.js";
|
|
6
6
|
import { P as G } from "./index-S5Cd7WrG.js";
|
|
7
7
|
import A from "./RangeSlider.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),k=require("react"),z=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./consts-goSZX3xP.cjs"),G=require("./index-Cx4KvZ9L.cjs"),J=require("./LoanCalculatorSection.cjs"),K=z.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: 2rem;
|
|
4
4
|
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
.location-finder {
|
|
7
7
|
flex: 1;
|
|
8
8
|
}
|
|
9
|
-
@media (max-width: ${
|
|
9
|
+
@media (max-width: ${D.MOBILE_SIZE_PX+"px"}) {
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
gap: 1.25rem;
|
|
12
12
|
}
|
|
13
|
-
`,
|
|
13
|
+
`,N=k.forwardRef((t,n)=>{const{hasLoanCalculator:a,hasLocationFinder:o,locationFinderTitle:r,locationFinderPlaceholder:l,openMapText:i,onOpenMap:m=()=>{},mapFilters:s,inputComponent:u,loanCalculatorTitle:c,loanCalculatorText:d,loanCalculatorPlaceholder:x,openCalculatorText:p,onOpenCalculator:y=Q=>{},defaultLoanAmount:L,defaultInterestRate:P,defaultLoanPeriod:T,monthlyPayment:h,totalInterestPaid:f,currency:C,loanPeriodUnit:R,minLoanAmount:b,maxLoanAmount:q,minInterestRate:I,maxInterestRate:M,minLoanPeriod:A,maxLoanPeriod:F,headerTitleText:H,footerTitleText:S,loanAmountLabel:j,loanAmountHint:_,interestRateLabel:w,interestRateHint:O,loanPeriodLabel:g,loanPeriodHint:E,submitText:v,summaryMonthlyPaymentText:B,summaryMonthlyPaymentHint:U,summaryTotalPaymentText:W,summaryTotalPaymentHint:X,handleSubmit:Z,handleCancel:$}=t;return e.jsxs(K,{ref:n,children:[o===!0&&e.jsx(G.LocationFinder,{title:r,placeholderText:l,onOpenMap:m,openMapText:i,mapFilters:s,inputComponent:u}),a===!0&&e.jsx(J,{loanCalculatorTitle:c,loanCalculatorText:d,loanCalculatorPlaceholder:x,openCalculatorText:p,onOpenCalculator:y,defaultLoanAmount:L,defaultInterestRate:P,defaultLoanPeriod:T,monthlyPayment:h,totalInterestPaid:f,currency:C,loanPeriodUnit:R,minLoanAmount:b,maxLoanAmount:q,minInterestRate:I,maxInterestRate:M,minLoanPeriod:A,maxLoanPeriod:F,headerTitleText:H,footerTitleText:S,loanAmountLabel:j,loanAmountHint:_,interestRateLabel:w,interestRateHint:O,loanPeriodLabel:g,loanPeriodHint:E,submitText:v,summaryMonthlyPaymentText:B,summaryMonthlyPaymentHint:U,summaryTotalPaymentText:W,summaryTotalPaymentHint:X,handleSubmit:Z,handleCancel:$})]})});module.exports=N;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { L as
|
|
6
|
-
import
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as q, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z } from "react";
|
|
3
|
+
import { s as D } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as G } from "./consts-BuFChS64.js";
|
|
5
|
+
import { L as J } from "./index-iSD5jNBk.js";
|
|
6
|
+
import K from "./LoanCalculatorSection.js";
|
|
7
|
+
const N = D.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
gap: 2rem;
|
|
10
10
|
|
|
@@ -12,50 +12,110 @@ const M = C.div`
|
|
|
12
12
|
.location-finder {
|
|
13
13
|
flex: 1;
|
|
14
14
|
}
|
|
15
|
-
@media (max-width: ${
|
|
15
|
+
@media (max-width: ${G + "px"}) {
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
gap: 1.25rem;
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`, nt = z((a, e) => {
|
|
20
20
|
const {
|
|
21
|
-
hasLoanCalculator:
|
|
22
|
-
hasLocationFinder:
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
hasLoanCalculator: o,
|
|
22
|
+
hasLocationFinder: n,
|
|
23
|
+
// Location finder section
|
|
24
|
+
locationFinderTitle: l,
|
|
25
|
+
locationFinderPlaceholder: r,
|
|
25
26
|
openMapText: i,
|
|
26
|
-
onOpenMap:
|
|
27
|
+
onOpenMap: m = () => {
|
|
27
28
|
},
|
|
28
|
-
mapFilters:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
mapFilters: u,
|
|
30
|
+
inputComponent: d,
|
|
31
|
+
// Loan calculator section
|
|
32
|
+
loanCalculatorTitle: c,
|
|
33
|
+
loanCalculatorText: s,
|
|
34
|
+
loanCalculatorPlaceholder: p,
|
|
35
|
+
openCalculatorText: x,
|
|
36
|
+
onOpenCalculator: f = (Q) => {
|
|
37
|
+
},
|
|
38
|
+
defaultLoanAmount: L,
|
|
39
|
+
defaultInterestRate: y,
|
|
40
|
+
defaultLoanPeriod: P,
|
|
41
|
+
monthlyPayment: T,
|
|
42
|
+
totalInterestPaid: h,
|
|
43
|
+
currency: C,
|
|
44
|
+
loanPeriodUnit: M,
|
|
45
|
+
minLoanAmount: I,
|
|
46
|
+
maxLoanAmount: R,
|
|
47
|
+
minInterestRate: b,
|
|
48
|
+
maxInterestRate: A,
|
|
49
|
+
minLoanPeriod: F,
|
|
50
|
+
maxLoanPeriod: H,
|
|
51
|
+
headerTitleText: S,
|
|
52
|
+
footerTitleText: O,
|
|
53
|
+
loanAmountLabel: g,
|
|
54
|
+
loanAmountHint: j,
|
|
55
|
+
interestRateLabel: w,
|
|
56
|
+
interestRateHint: E,
|
|
57
|
+
loanPeriodLabel: _,
|
|
58
|
+
loanPeriodHint: v,
|
|
59
|
+
submitText: B,
|
|
60
|
+
summaryMonthlyPaymentText: U,
|
|
61
|
+
summaryMonthlyPaymentHint: W,
|
|
62
|
+
summaryTotalPaymentText: X,
|
|
63
|
+
summaryTotalPaymentHint: Z,
|
|
64
|
+
handleSubmit: $,
|
|
65
|
+
handleCancel: k
|
|
35
66
|
} = a;
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
|
|
38
|
-
|
|
67
|
+
return /* @__PURE__ */ q(N, { ref: e, children: [
|
|
68
|
+
n === !0 && /* @__PURE__ */ t(
|
|
69
|
+
J,
|
|
39
70
|
{
|
|
40
|
-
title:
|
|
41
|
-
placeholderText:
|
|
42
|
-
onOpenMap:
|
|
71
|
+
title: l,
|
|
72
|
+
placeholderText: r,
|
|
73
|
+
onOpenMap: m,
|
|
43
74
|
openMapText: i,
|
|
44
|
-
mapFilters:
|
|
75
|
+
mapFilters: u,
|
|
76
|
+
inputComponent: d
|
|
45
77
|
}
|
|
46
78
|
),
|
|
47
|
-
|
|
48
|
-
|
|
79
|
+
o === !0 && /* @__PURE__ */ t(
|
|
80
|
+
K,
|
|
49
81
|
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
82
|
+
loanCalculatorTitle: c,
|
|
83
|
+
loanCalculatorText: s,
|
|
84
|
+
loanCalculatorPlaceholder: p,
|
|
85
|
+
openCalculatorText: x,
|
|
86
|
+
onOpenCalculator: f,
|
|
87
|
+
defaultLoanAmount: L,
|
|
88
|
+
defaultInterestRate: y,
|
|
89
|
+
defaultLoanPeriod: P,
|
|
90
|
+
monthlyPayment: T,
|
|
91
|
+
totalInterestPaid: h,
|
|
92
|
+
currency: C,
|
|
93
|
+
loanPeriodUnit: M,
|
|
94
|
+
minLoanAmount: I,
|
|
95
|
+
maxLoanAmount: R,
|
|
96
|
+
minInterestRate: b,
|
|
97
|
+
maxInterestRate: A,
|
|
98
|
+
minLoanPeriod: F,
|
|
99
|
+
maxLoanPeriod: H,
|
|
100
|
+
headerTitleText: S,
|
|
101
|
+
footerTitleText: O,
|
|
102
|
+
loanAmountLabel: g,
|
|
103
|
+
loanAmountHint: j,
|
|
104
|
+
interestRateLabel: w,
|
|
105
|
+
interestRateHint: E,
|
|
106
|
+
loanPeriodLabel: _,
|
|
107
|
+
loanPeriodHint: v,
|
|
108
|
+
submitText: B,
|
|
109
|
+
summaryMonthlyPaymentText: U,
|
|
110
|
+
summaryMonthlyPaymentHint: W,
|
|
111
|
+
summaryTotalPaymentText: X,
|
|
112
|
+
summaryTotalPaymentHint: Z,
|
|
113
|
+
handleSubmit: $,
|
|
114
|
+
handleCancel: k
|
|
55
115
|
}
|
|
56
116
|
)
|
|
57
117
|
] });
|
|
58
118
|
});
|
|
59
119
|
export {
|
|
60
|
-
|
|
120
|
+
nt as default
|
|
61
121
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),l=require("react"),
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),l=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./consts-goSZX3xP.cjs"),P=require("./Button.cjs"),y=require("./utils-DhRHf5Ed.cjs"),U=require("./useDetectMobile-zkbzoOGV.cjs"),M=require("./style-xvwWn3Zv.cjs"),h=require("./suspense-product-card-detailed-DBNlkFiP.cjs"),F=require("./index-DG7qQq8L.cjs"),T=v.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
6
|
& .button-link {
|
|
7
7
|
white-space: pre;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
@media (max-width: ${
|
|
10
|
+
@media (max-width: ${D.MOBILE_SIZE_PX+"px"}) {
|
|
11
11
|
display: flex;
|
|
12
12
|
gap: 1rem;
|
|
13
13
|
overflow-x: auto;
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
/* Safari and Chrome */
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
`,S=l.memo(h.DetailedProductCard),E=l.forwardRef((
|
|
29
|
+
`,S=l.memo(h.DetailedProductCard),E=l.forwardRef((s,f)=>{const{icon:a,title:C,buttonLink:c,items:r,buttonText:j,limit:o=4,onSelectCard:u=()=>{},onButtonAction:w=()=>{},isLoading:N=!1,getImage:d=()=>{},negotiableText:m,freeText:p,options:n,onSelectOption:g=()=>{},productsToolbarName:q="All"}=s,b=U.useDetectMobile(),k=l.useMemo(()=>i.jsx(i.Fragment,{children:b===!0?r==null?void 0:r.map((e,t)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:p},t)):r==null?void 0:r.slice(0,o).map((e,t)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:p},t))}),[r,b,o]);return i.jsxs(M.TitleWithOptionsSectionWrapper,{ref:f,children:[i.jsxs("div",{className:"regular-title",children:[i.jsxs("div",{className:"regular-title-text",children:[y.isDefinedNotEmptyString(a)&&i.jsx("i",{className:a}),i.jsx("span",{children:C})]}),y.isDefinedNotEmptyString(c)&&i.jsx(P,{type:"button",btnType:"tinted",color:"gray",onClick:e=>{var t;(t=e==null?void 0:e.target)==null||t.blur(),w(c)},borderRadius:"curved",className:"button-link",children:j})]}),(n==null?void 0:n.length)>0&&i.jsx(F.SelectBar,{items:n,onRemove:e=>{g(e)},onSelect:e=>{g(e)},labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:q}),i.jsx(T,{limit:o,children:i.jsx(h.SuspenseDetailedProductCard,{isLoading:N,itemsCount:o,keyPrefix:"explore-landing",children:k})})]})});module.exports=E;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as i, Fragment as
|
|
2
|
-
import { memo as
|
|
1
|
+
import { jsx as i, Fragment as U, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { memo as M, forwardRef as P, useMemo as T } from "react";
|
|
3
3
|
import { s as D } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as F } from "./consts-
|
|
5
|
-
import
|
|
6
|
-
import { k as
|
|
7
|
-
import { u as
|
|
8
|
-
import { T as
|
|
9
|
-
import { D as
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
4
|
+
import { M as F } from "./consts-BuFChS64.js";
|
|
5
|
+
import B from "./Button.js";
|
|
6
|
+
import { k as f } from "./utils-BE-UlkKf.js";
|
|
7
|
+
import { u as E } from "./useDetectMobile-Bkvj0VMa.js";
|
|
8
|
+
import { T as I } from "./style-sLF37aOA.js";
|
|
9
|
+
import { D as L, S as O } from "./suspense-product-card-detailed-CwdbxJrY.js";
|
|
10
|
+
import { S as R } from "./index-Db8wvLXS.js";
|
|
11
|
+
const W = D.div`
|
|
12
12
|
display: grid;
|
|
13
|
-
grid-template-columns: ${(
|
|
13
|
+
grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
|
|
14
14
|
gap: 1.25rem;
|
|
15
15
|
|
|
16
16
|
& .button-link {
|
|
@@ -36,14 +36,14 @@ const R = D.div`
|
|
|
36
36
|
/* Safari and Chrome */
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
`, S =
|
|
39
|
+
`, S = M(L), H = P((a, y) => {
|
|
40
40
|
const {
|
|
41
41
|
icon: s,
|
|
42
42
|
title: h,
|
|
43
43
|
buttonLink: d,
|
|
44
44
|
items: r,
|
|
45
45
|
buttonText: C,
|
|
46
|
-
limit:
|
|
46
|
+
limit: t = 4,
|
|
47
47
|
onSelectCard: m = () => {
|
|
48
48
|
},
|
|
49
49
|
onButtonAction: w = () => {
|
|
@@ -53,10 +53,11 @@ const R = D.div`
|
|
|
53
53
|
},
|
|
54
54
|
negotiableText: u,
|
|
55
55
|
freeText: p,
|
|
56
|
-
options:
|
|
56
|
+
options: l,
|
|
57
57
|
onSelectOption: g = () => {
|
|
58
|
-
}
|
|
59
|
-
|
|
58
|
+
},
|
|
59
|
+
productsToolbarName: N = "All"
|
|
60
|
+
} = a, b = E(), v = T(() => /* @__PURE__ */ i(U, { children: b === !0 ? r == null ? void 0 : r.map((e, o) => /* @__PURE__ */ i(
|
|
60
61
|
S,
|
|
61
62
|
{
|
|
62
63
|
title: e == null ? void 0 : e.name,
|
|
@@ -74,8 +75,8 @@ const R = D.div`
|
|
|
74
75
|
negotiableText: u,
|
|
75
76
|
freeText: p
|
|
76
77
|
},
|
|
77
|
-
|
|
78
|
-
)) : r == null ? void 0 : r.slice(0,
|
|
78
|
+
o
|
|
79
|
+
)) : r == null ? void 0 : r.slice(0, t).map((e, o) => /* @__PURE__ */ i(
|
|
79
80
|
S,
|
|
80
81
|
{
|
|
81
82
|
title: e == null ? void 0 : e.name,
|
|
@@ -94,31 +95,34 @@ const R = D.div`
|
|
|
94
95
|
negotiableText: u,
|
|
95
96
|
freeText: p
|
|
96
97
|
},
|
|
97
|
-
|
|
98
|
-
)) }), [r,
|
|
99
|
-
return /* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
|
|
98
|
+
o
|
|
99
|
+
)) }), [r, b, t]);
|
|
100
|
+
return /* @__PURE__ */ n(I, { ref: y, children: [
|
|
101
|
+
/* @__PURE__ */ n("div", { className: "regular-title", children: [
|
|
102
|
+
/* @__PURE__ */ n("div", { className: "regular-title-text", children: [
|
|
103
|
+
f(s) && /* @__PURE__ */ i("i", { className: s }),
|
|
103
104
|
/* @__PURE__ */ i("span", { children: h })
|
|
104
105
|
] }),
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
f(d) && /* @__PURE__ */ i(
|
|
107
|
+
B,
|
|
107
108
|
{
|
|
108
109
|
type: "button",
|
|
109
110
|
btnType: "tinted",
|
|
110
111
|
color: "gray",
|
|
111
|
-
onClick: () =>
|
|
112
|
+
onClick: (e) => {
|
|
113
|
+
var o;
|
|
114
|
+
(o = e == null ? void 0 : e.target) == null || o.blur(), w(d);
|
|
115
|
+
},
|
|
112
116
|
borderRadius: "curved",
|
|
113
117
|
className: "button-link",
|
|
114
118
|
children: C
|
|
115
119
|
}
|
|
116
120
|
)
|
|
117
121
|
] }),
|
|
118
|
-
(
|
|
119
|
-
|
|
122
|
+
(l == null ? void 0 : l.length) > 0 && /* @__PURE__ */ i(
|
|
123
|
+
R,
|
|
120
124
|
{
|
|
121
|
-
items:
|
|
125
|
+
items: l,
|
|
122
126
|
onRemove: (e) => {
|
|
123
127
|
g(e);
|
|
124
128
|
},
|
|
@@ -127,14 +131,15 @@ const R = D.div`
|
|
|
127
131
|
},
|
|
128
132
|
labelKey: "name",
|
|
129
133
|
valueKey: "code",
|
|
130
|
-
noMargin: !0
|
|
134
|
+
noMargin: !0,
|
|
135
|
+
productsToolbarName: N
|
|
131
136
|
}
|
|
132
137
|
),
|
|
133
|
-
/* @__PURE__ */ i(
|
|
134
|
-
|
|
138
|
+
/* @__PURE__ */ i(W, { limit: t, children: /* @__PURE__ */ i(
|
|
139
|
+
O,
|
|
135
140
|
{
|
|
136
141
|
isLoading: k,
|
|
137
|
-
itemsCount:
|
|
142
|
+
itemsCount: t,
|
|
138
143
|
keyPrefix: "explore-landing",
|
|
139
144
|
children: v
|
|
140
145
|
}
|
|
@@ -142,5 +147,5 @@ const R = D.div`
|
|
|
142
147
|
] });
|
|
143
148
|
});
|
|
144
149
|
export {
|
|
145
|
-
|
|
150
|
+
H as default
|
|
146
151
|
};
|