@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.
Files changed (109) hide show
  1. package/dist/BannerSectionBasic.cjs +1 -1
  2. package/dist/BannerSectionBasic.js +1 -1
  3. package/dist/BannerSectionCarousel.cjs +2 -2
  4. package/dist/BannerSectionCarousel.js +6 -3
  5. package/dist/BannerSectionGrid.cjs +1 -1
  6. package/dist/BannerSectionGrid.js +3 -3
  7. package/dist/BannerSectionSimple.cjs +7 -7
  8. package/dist/BannerSectionSimple.js +54 -51
  9. package/dist/BannerSectionWithList.cjs +7 -7
  10. package/dist/BannerSectionWithList.js +33 -30
  11. package/dist/BannerSectionWithListImage.cjs +9 -9
  12. package/dist/BannerSectionWithListImage.js +44 -41
  13. package/dist/BlogCardsSponsoredSection.cjs +4 -4
  14. package/dist/BlogCardsSponsoredSection.js +33 -30
  15. package/dist/BlogCategoryCardsSection.cjs +1 -1
  16. package/dist/BlogCategoryCardsSection.js +2 -2
  17. package/dist/BlogListSection.cjs +1 -1
  18. package/dist/BlogListSection.js +1 -1
  19. package/dist/BlogProductCardsSection.cjs +1 -1
  20. package/dist/BlogProductCardsSection.js +2 -2
  21. package/dist/BlogShopCardsSection.cjs +1 -1
  22. package/dist/BlogShopCardsSection.js +2 -2
  23. package/dist/BlogSingleSection.cjs +1 -1
  24. package/dist/BlogSingleSection.js +2 -2
  25. package/dist/BlogsSectionDetailed.cjs +2 -2
  26. package/dist/BlogsSectionDetailed.js +29 -26
  27. package/dist/BlogsSectionLarge.cjs +1 -1
  28. package/dist/BlogsSectionLarge.js +4 -4
  29. package/dist/BlogsSectionSimple.cjs +6 -6
  30. package/dist/BlogsSectionSimple.js +33 -30
  31. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  32. package/dist/BlogsSectionSimpleCentered.js +2 -2
  33. package/dist/BlogsSectionWithFilters.cjs +6 -6
  34. package/dist/BlogsSectionWithFilters.js +50 -45
  35. package/dist/BrandHitsSection.cjs +1 -1
  36. package/dist/BrandHitsSection.js +1 -1
  37. package/dist/CalorieCalculatorSection.cjs +1 -1
  38. package/dist/CalorieCalculatorSection.js +1 -1
  39. package/dist/CustomLoanMapSection.cjs +3 -3
  40. package/dist/CustomLoanMapSection.js +96 -36
  41. package/dist/DetailedProductsSection.cjs +4 -4
  42. package/dist/DetailedProductsSection.js +40 -35
  43. package/dist/FieldOfInterestsMasonrySection.cjs +24 -13
  44. package/dist/FieldOfInterestsMasonrySection.js +72 -66
  45. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  46. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
  47. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +12 -11
  48. package/dist/FieldOfInterestsWithTagsCardsSection.js +56 -53
  49. package/dist/GeneralWithTagsCardsSection.cjs +6 -7
  50. package/dist/GeneralWithTagsCardsSection.js +8 -9
  51. package/dist/GiftCardsSection.cjs +8 -8
  52. package/dist/GiftCardsSection.js +55 -52
  53. package/dist/LoanCalculatorSection.cjs +106 -4
  54. package/dist/LoanCalculatorSection.js +505 -350
  55. package/dist/LocationFinderSection.cjs +1 -1
  56. package/dist/LocationFinderSection.js +1 -1
  57. package/dist/LocationSearchSection.cjs +4 -4
  58. package/dist/LocationSearchSection.js +18 -16
  59. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  60. package/dist/MasonryGeneralCardsSection.js +1 -1
  61. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  62. package/dist/OverlayGeneralCardsSection.js +2 -2
  63. package/dist/ProductsWithBannerSection.cjs +1 -1
  64. package/dist/ProductsWithBannerSection.js +3 -3
  65. package/dist/QuizSection.cjs +1 -1
  66. package/dist/QuizSection.js +1 -1
  67. package/dist/ReviewsSection.cjs +1 -1
  68. package/dist/ReviewsSection.js +2 -2
  69. package/dist/SalesCampaignsSection.cjs +1 -1
  70. package/dist/SalesCampaignsSection.js +2 -2
  71. package/dist/SeparatorSection.cjs +1 -1
  72. package/dist/SeparatorSection.js +1 -1
  73. package/dist/ShopCardsSection.cjs +1 -1
  74. package/dist/ShopCardsSection.js +1 -1
  75. package/dist/SimpleCategoriesSection.cjs +2 -2
  76. package/dist/SimpleCategoriesSection.js +19 -16
  77. package/dist/SimpleProductsSection.cjs +1 -1
  78. package/dist/SimpleProductsSection.js +3 -3
  79. package/dist/UrgentSaleProductsSection.cjs +12 -6
  80. package/dist/UrgentSaleProductsSection.js +56 -47
  81. package/dist/consts-BuFChS64.js +7 -0
  82. package/dist/consts-goSZX3xP.cjs +1 -0
  83. package/dist/{index-BxlCwYfi.cjs → index-BaLBHyTh.cjs} +1 -1
  84. package/dist/{index-C7iutNsj.cjs → index-Ccw8sLnK.cjs} +1 -1
  85. package/dist/{index-CpuLfTNK.js → index-CsrdUl1x.js} +1 -1
  86. package/dist/{index-CWAifrDS.cjs → index-Cx4KvZ9L.cjs} +1 -1
  87. package/dist/{index-rYeYJwuL.cjs → index-DG7qQq8L.cjs} +1 -1
  88. package/dist/{index-DmuZIVnC.js → index-Db8wvLXS.js} +2 -2
  89. package/dist/{index-BpS5mEUu.js → index-Yh18uk_f.js} +2 -2
  90. package/dist/{index-B5bRol0l.js → index-iSD5jNBk.js} +2 -2
  91. package/dist/{skeleton-BRWiMY6b.cjs → skeleton-BBSBZ4JV.cjs} +1 -1
  92. package/dist/{skeleton-DhXNRCfI.js → skeleton-DALCB1S7.js} +1 -1
  93. package/dist/{style-OPSfrtFm.cjs → style-BTTXJFJN.cjs} +1 -1
  94. package/dist/{style-CsMpu4iC.js → style-sLF37aOA.js} +1 -1
  95. package/dist/{style-DOKM5cZi.js → style-tw6KjI2J.js} +1 -1
  96. package/dist/{style-C571ywKV.cjs → style-xvwWn3Zv.cjs} +1 -1
  97. package/dist/{suspense-categories-card-simple-D-tE8xV6.cjs → suspense-categories-card-simple-5JZtz7wj.cjs} +1 -1
  98. package/dist/{suspense-categories-card-simple-BmmCOsc0.js → suspense-categories-card-simple-BTFqzXyn.js} +1 -1
  99. package/dist/{suspense-large-Buu1428e.cjs → suspense-large-BtfvnzWh.cjs} +1 -1
  100. package/dist/{suspense-large-iKRJJlJv.js → suspense-large-DFlSJhGG.js} +1 -1
  101. package/dist/{suspense-product-card-detailed-J2a9wi6Z.js → suspense-product-card-detailed-CwdbxJrY.js} +1 -1
  102. package/dist/{suspense-product-card-detailed-CwUN6A-L.cjs → suspense-product-card-detailed-DBNlkFiP.cjs} +1 -1
  103. package/dist/{useDetectMobile-BC6EGaBc.js → useDetectMobile-Bkvj0VMa.js} +1 -1
  104. package/dist/{useDetectMobile-D6d5LpdL.cjs → useDetectMobile-zkbzoOGV.cjs} +1 -1
  105. package/package.json +1 -1
  106. package/dist/consts-C1uHV4xc.js +0 -6
  107. package/dist/consts-CtNoHdBj.cjs +0 -1
  108. package/dist/index-B69VVFyo.js +0 -164
  109. 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 M, memo as P, useMemo as z } from "react";
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-C1uHV4xc.js";
5
- import { u as I } from "./useDetectMobile-BC6EGaBc.js";
6
- import { m as g, t as A, k as w } from "./utils-BE-UlkKf.js";
7
- import { T as O } from "./style-CsMpu4iC.js";
8
- import R from "./Button.js";
9
- import j from "./Link.js";
10
- import { P as E } from "./index-Ca38iPjf.js";
11
- import { S as F } from "./index-DmuZIVnC.js";
12
- const L = f.div`
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
- ${A(3)}
89
+ ${O(3)}
90
90
  }
91
- `, U = u((i, l) => {
92
- const { title: o, imageUrl: m, text: r, buttonText: c, onCardClick: a } = i;
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(j, { color: "gray", onClick: a, children: c })
97
+ /* @__PURE__ */ t(E, { color: "gray", onClick: a, children: s })
98
98
  ] }),
99
- /* @__PURE__ */ t(E, { src: m })
99
+ /* @__PURE__ */ t(F, { src: m })
100
100
  ] });
101
- }), _ = u(({}, i) => /* @__PURE__ */ n(C, { className: "blog-card", children: [
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
- ] })), D = ({ limit: i = 3, isLoading: l = !1, keyPrefix: o }) => /* @__PURE__ */ t(h, { children: Array.from({ length: i }, (m, r) => /* @__PURE__ */ t(
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
- )) }), G = ({
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(M, { fallbackComponent: l, children: o === !0 ? /* @__PURE__ */ t(
121
- D,
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 = P(U), re = u((i, l) => {
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: c,
132
+ buttonText: s,
133
133
  limit: a = 3,
134
- options: d,
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: s = () => {
145
- }
146
- } = i, v = I(), x = z(() => /* @__PURE__ */ t(h, { children: v === !0 ? r == null ? void 0 : r.map((e, p) => /* @__PURE__ */ t(
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: () => s(e)
154
+ onCardClick: () => p(e)
154
155
  },
155
- p
156
- )) : r == null ? void 0 : r.slice(0, a).map((e, p) => /* @__PURE__ */ t(
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: () => s(e)
164
+ onCardClick: () => p(e)
164
165
  },
165
- p
166
- )) }), [r, v, a, s]);
167
- return /* @__PURE__ */ n(O, { ref: l, children: [
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
- R,
175
+ j,
175
176
  {
176
177
  type: "button",
177
178
  btnType: "tinted",
178
179
  color: "gray",
179
- onClick: () => $(b),
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: c
185
+ children: s
182
186
  }
183
187
  )
184
188
  ] }),
185
- (d == null ? void 0 : d.length) > 0 && /* @__PURE__ */ t(
186
- F,
189
+ (c == null ? void 0 : c.length) > 0 && /* @__PURE__ */ t(
190
+ L,
187
191
  {
188
- items: d,
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(L, { limit: a, children: /* @__PURE__ */ t(
203
- G,
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: x
213
+ children: M
209
214
  }
210
215
  ) })
211
216
  ] });
212
217
  });
213
218
  export {
214
- re as default
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-CtNoHdBj.cjs"),h=o.styled.div`
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;
@@ -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-C1uHV4xc.js";
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-CtNoHdBj.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`
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-C1uHV4xc.js";
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"),h=require("react"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./consts-CtNoHdBj.cjs"),f=require("./index-CWAifrDS.cjs"),q=require("./index-ZR5ws_qw.cjs"),L=C.styled.div`
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: ${T.MOBILE_SIZE_PX+"px"}) {
9
+ @media (max-width: ${D.MOBILE_SIZE_PX+"px"}) {
10
10
  flex-direction: column;
11
11
  gap: 1.25rem;
12
12
  }
13
- `,F=h.forwardRef((o,t)=>{const{hasLoanCalculator:a,hasLocationFinder:r,locationFinderTitle:l,locationFinderPlaceholder:n,openMapText:c,onOpenMap:i=()=>{},mapFilters:s,loanCalculatorTitle:u,loanCalculatorText:d,loanCalculatorPlaceholder:x,openCalculatorText:p,onOpenCalculator:m=()=>{}}=o;return e.jsxs(L,{ref:t,children:[r===!0&&e.jsx(f.LocationFinder,{title:l,placeholderText:n,onOpenMap:i,openMapText:c,mapFilters:s}),a===!0&&e.jsx(q.LoanCalculator,{title:u,text:d,openCalculatorText:p,onOpenCalculator:m,placeholderText:x})]})});module.exports=F;
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 f, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as h } from "react";
3
- import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as L } from "./consts-C1uHV4xc.js";
5
- import { L as T } from "./index-B5bRol0l.js";
6
- import { L as F } from "./index-B69VVFyo.js";
7
- const M = C.div`
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: ${L + "px"}) {
15
+ @media (max-width: ${G + "px"}) {
16
16
  flex-direction: column;
17
17
  gap: 1.25rem;
18
18
  }
19
- `, E = h((a, t) => {
19
+ `, nt = z((a, e) => {
20
20
  const {
21
- hasLoanCalculator: e,
22
- hasLocationFinder: l,
23
- locationFinderTitle: r,
24
- locationFinderPlaceholder: n,
21
+ hasLoanCalculator: o,
22
+ hasLocationFinder: n,
23
+ // Location finder section
24
+ locationFinderTitle: l,
25
+ locationFinderPlaceholder: r,
25
26
  openMapText: i,
26
- onOpenMap: c = () => {
27
+ onOpenMap: m = () => {
27
28
  },
28
- mapFilters: p,
29
- loanCalculatorTitle: m,
30
- loanCalculatorText: d,
31
- loanCalculatorPlaceholder: s,
32
- openCalculatorText: u,
33
- onOpenCalculator: x = () => {
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__ */ f(M, { ref: t, children: [
37
- l === !0 && /* @__PURE__ */ o(
38
- T,
67
+ return /* @__PURE__ */ q(N, { ref: e, children: [
68
+ n === !0 && /* @__PURE__ */ t(
69
+ J,
39
70
  {
40
- title: r,
41
- placeholderText: n,
42
- onOpenMap: c,
71
+ title: l,
72
+ placeholderText: r,
73
+ onOpenMap: m,
43
74
  openMapText: i,
44
- mapFilters: p
75
+ mapFilters: u,
76
+ inputComponent: d
45
77
  }
46
78
  ),
47
- e === !0 && /* @__PURE__ */ o(
48
- F,
79
+ o === !0 && /* @__PURE__ */ t(
80
+ K,
49
81
  {
50
- title: m,
51
- text: d,
52
- openCalculatorText: u,
53
- onOpenCalculator: x,
54
- placeholderText: s
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
- E as default
120
+ nt as default
61
121
  };
@@ -1,13 +1,13 @@
1
- "use strict";const i=require("react/jsx-runtime"),l=require("react"),k=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-CtNoHdBj.cjs"),D=require("./Button.cjs"),y=require("./utils-DhRHf5Ed.cjs"),P=require("./useDetectMobile-D6d5LpdL.cjs"),U=require("./style-C571ywKV.cjs"),h=require("./suspense-product-card-detailed-CwUN6A-L.cjs"),M=require("./index-rYeYJwuL.cjs"),F=k.styled.div`
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: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
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: ${v.MOBILE_SIZE_PX+"px"}) {
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((n,f)=>{const{icon:a,title:C,buttonLink:c,items:r,buttonText:j,limit:t=4,onSelectCard:u=()=>{},onButtonAction:w=()=>{},isLoading:q=!1,getImage:d=()=>{},negotiableText:m,freeText:p,options:o,onSelectOption:g=()=>{}}=n,b=P.useDetectMobile(),N=l.useMemo(()=>i.jsx(i.Fragment,{children:b===!0?r==null?void 0:r.map((e,s)=>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},s)):r==null?void 0:r.slice(0,t).map((e,s)=>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},s))}),[r,b,t]);return i.jsxs(U.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(D,{type:"button",btnType:"tinted",color:"gray",onClick:()=>w(c),borderRadius:"curved",className:"button-link",children:j})]}),(o==null?void 0:o.length)>0&&i.jsx(M.SelectBar,{items:o,onRemove:e=>{g(e)},onSelect:e=>{g(e)},labelKey:"name",valueKey:"code",noMargin:!0}),i.jsx(F,{limit:t,children:i.jsx(h.SuspenseDetailedProductCard,{isLoading:q,itemsCount:t,keyPrefix:"explore-landing",children:N})})]})});module.exports=E;
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 N, jsxs as a } from "react/jsx-runtime";
2
- import { memo as U, forwardRef as M, useMemo as P } from "react";
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-C1uHV4xc.js";
5
- import T from "./Button.js";
6
- import { k as b } from "./utils-BE-UlkKf.js";
7
- import { u as B } from "./useDetectMobile-BC6EGaBc.js";
8
- import { T as E } from "./style-CsMpu4iC.js";
9
- import { D as I, S as L } from "./suspense-product-card-detailed-J2a9wi6Z.js";
10
- import { S as O } from "./index-DmuZIVnC.js";
11
- const R = D.div`
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: ${(n) => `repeat(${n.limit}, minmax(0, 1fr))`};
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 = U(I), q = M((n, y) => {
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: o = 4,
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: t,
56
+ options: l,
57
57
  onSelectOption: g = () => {
58
- }
59
- } = n, f = B(), v = P(() => /* @__PURE__ */ i(N, { children: f === !0 ? r == null ? void 0 : r.map((e, l) => /* @__PURE__ */ i(
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
- l
78
- )) : r == null ? void 0 : r.slice(0, o).map((e, l) => /* @__PURE__ */ i(
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
- l
98
- )) }), [r, f, o]);
99
- return /* @__PURE__ */ a(E, { ref: y, children: [
100
- /* @__PURE__ */ a("div", { className: "regular-title", children: [
101
- /* @__PURE__ */ a("div", { className: "regular-title-text", children: [
102
- b(s) && /* @__PURE__ */ i("i", { className: s }),
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
- b(d) && /* @__PURE__ */ i(
106
- T,
106
+ f(d) && /* @__PURE__ */ i(
107
+ B,
107
108
  {
108
109
  type: "button",
109
110
  btnType: "tinted",
110
111
  color: "gray",
111
- onClick: () => w(d),
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
- (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ i(
119
- O,
122
+ (l == null ? void 0 : l.length) > 0 && /* @__PURE__ */ i(
123
+ R,
120
124
  {
121
- items: t,
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(R, { limit: o, children: /* @__PURE__ */ i(
134
- L,
138
+ /* @__PURE__ */ i(W, { limit: t, children: /* @__PURE__ */ i(
139
+ O,
135
140
  {
136
141
  isLoading: k,
137
- itemsCount: o,
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
- q as default
150
+ H as default
146
151
  };