@lanaco/lnc-react-ui 4.0.169 → 4.0.171
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/Accordion.js +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +9 -48
- package/dist/BannerSectionCarousel.js +208 -249
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +67 -68
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +22 -30
- package/dist/BlogExploreSection.js +9 -9
- package/dist/BlogListSection.cjs +11 -5
- package/dist/BlogListSection.js +187 -123
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +28 -37
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +40 -67
- package/dist/BlogSingleSection.cjs +16 -1
- package/dist/BlogSingleSection.js +47 -45
- package/dist/BlogsSectionDetailed.cjs +8 -27
- package/dist/BlogsSectionDetailed.js +111 -159
- package/dist/BlogsSectionLarge.cjs +19 -4
- package/dist/BlogsSectionLarge.js +73 -37
- package/dist/BlogsSectionSimple.cjs +9 -9
- package/dist/BlogsSectionSimple.js +81 -107
- package/dist/BlogsSectionSimpleCentered.cjs +25 -23
- package/dist/BlogsSectionSimpleCentered.js +103 -96
- package/dist/BlogsSectionWithFilters.cjs +31 -29
- package/dist/BlogsSectionWithFilters.js +173 -134
- package/dist/BrandHitsSection.cjs +10 -14
- package/dist/BrandHitsSection.js +93 -45
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
- package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +35 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +62 -63
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
- package/dist/FieldOfInterestsMasonrySection.js +228 -154
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
- package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +11 -27
- package/dist/GeneralWithTagsCardsSection.js +87 -99
- package/dist/GiftCardsSection.cjs +18 -23
- package/dist/GiftCardsSection.js +146 -77
- package/dist/Icon.js +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +33 -19
- package/dist/MasonryGeneralCardsSection.js +114 -68
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +54 -40
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +15 -20
- package/dist/ProductsWithBannerSection.js +176 -104
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +6 -6
- package/dist/QuattroCardsSection.js +42 -34
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -30
- package/dist/ReviewsSection.js +170 -137
- package/dist/SalesCampaignsSection.cjs +46 -130
- package/dist/SalesCampaignsSection.js +354 -433
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +18 -5
- package/dist/ShopCardsSection.js +145 -88
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +10 -4
- package/dist/SimpleCategoriesSection.js +79 -51
- package/dist/SimpleProductsSection.cjs +16 -3
- package/dist/SimpleProductsSection.js +172 -70
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.js +4 -4
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +62 -61
- package/dist/index-BAJkosVg.cjs +11 -0
- package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
- package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
- package/dist/index-BSpdEGFd.js +42 -0
- package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
- package/dist/index-BhBRZf4M.js +742 -0
- package/dist/index-BovNbKxB.js +54 -0
- package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
- package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
- package/dist/index-D-3I_Ppj.cjs +16 -0
- package/dist/index-D0IYt1s3.cjs +20 -0
- package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
- package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
- package/dist/index-DFdPWO4O.js +133 -0
- package/dist/index-DFyV_EK2.cjs +305 -0
- package/dist/index-DxwIu0Wn.js +84 -0
- package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
- package/dist/index.js +1 -1
- package/dist/style-BAcV7F53.cjs +64 -0
- package/dist/style-CXMUA6cI.js +74 -0
- package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
- package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
- package/package.json +1 -1
- package/dist/index-1Dm1i6WK.js +0 -52
- package/dist/index-BGTtoLxz.cjs +0 -1
- package/dist/skeleton-BdbB-LdT.cjs +0 -97
- package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
- package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
- package/dist/suspense-large-BMO7JH52.js +0 -26
- package/dist/suspense-large-CFmcSzX-.cjs +0 -1
- package/dist/suspense-product-card-detailed-CxiFuUOT.js +0 -653
- package/dist/suspense-product-card-detailed-IR4sh-l4.cjs +0 -330
- package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
- package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
|
@@ -1,653 +0,0 @@
|
|
|
1
|
-
import { jsxs as t, jsx as e, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as W, useState as K, useRef as H, useEffect as Pe, cloneElement as Z, Suspense as $e } from "react";
|
|
3
|
-
import { t as M, p as Te, o as y, a as Ve, l as J, q as Q, G as ee } from "./utils-BdsZgOUE.js";
|
|
4
|
-
import { s as T } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { P as Ee } from "./index-CF3HhgvN.js";
|
|
6
|
-
import P from "./Badge.js";
|
|
7
|
-
import Se from "./Popover.js";
|
|
8
|
-
import Oe from "./PopoverTrigger.js";
|
|
9
|
-
import Be from "./PopoverContent.js";
|
|
10
|
-
import { u as ze } from "./useDetectMobile-Bkvj0VMa.js";
|
|
11
|
-
import { M as re } from "./consts-BuFChS64.js";
|
|
12
|
-
const oe = T.div`
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
gap: 0.5rem;
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
width: 100%;
|
|
19
|
-
|
|
20
|
-
& .seller {
|
|
21
|
-
text-transform: uppercase;
|
|
22
|
-
${M()}
|
|
23
|
-
color: var(--gray-500);
|
|
24
|
-
font-size: 0.625rem;
|
|
25
|
-
font-weight: 400;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
& .wrapper-card-1 {
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
gap: 0.12rem;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
& .wrapper-card-2 {
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
gap: 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
& .wrapper-card-3 {
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-wrap: wrap;
|
|
43
|
-
gap: 0.25rem;
|
|
44
|
-
|
|
45
|
-
& > div {
|
|
46
|
-
& > div {
|
|
47
|
-
width: 100% !important;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
& .tag {
|
|
53
|
-
height: 1.5rem;
|
|
54
|
-
gap: 0.25rem;
|
|
55
|
-
padding: 0.25rem 0.375rem;
|
|
56
|
-
border-radius: 0.375rem;
|
|
57
|
-
background: #f9fafb;
|
|
58
|
-
border: 1px solid var(--gray-95012, #14161a1f);
|
|
59
|
-
font-weight: 400;
|
|
60
|
-
font-size: 0.75rem;
|
|
61
|
-
line-height: 1rem;
|
|
62
|
-
letter-spacing: 0.025rem;
|
|
63
|
-
color: var(--gray-950, #14161a);
|
|
64
|
-
white-space: nowrap;
|
|
65
|
-
flex: 0 0 auto;
|
|
66
|
-
|
|
67
|
-
& i {
|
|
68
|
-
color: var(--yellow-500, #f59e0b);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
& .card-title {
|
|
73
|
-
font-size: 0.875rem;
|
|
74
|
-
font-weight: 600;
|
|
75
|
-
${Te(2)}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
& .price-text {
|
|
79
|
-
font-size: 1rem;
|
|
80
|
-
font-weight: 600;
|
|
81
|
-
${M()}
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: end;
|
|
84
|
-
gap: 0.5rem;
|
|
85
|
-
color: var(--gray-950, #14161a);
|
|
86
|
-
|
|
87
|
-
&.new-price {
|
|
88
|
-
color: var(--danger-600, #e11d48);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
& .full-price {
|
|
92
|
-
text-decoration: line-through;
|
|
93
|
-
font-size: 0.75rem;
|
|
94
|
-
font-weight: 400;
|
|
95
|
-
padding-bottom: 0.125rem;
|
|
96
|
-
color: var(--gray-600, #676e79);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
& .location-text {
|
|
101
|
-
font-size: 0.75rem;
|
|
102
|
-
font-weight: 400;
|
|
103
|
-
color: var(--gray-600, #676e79);
|
|
104
|
-
${M()}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
& .tags-wrapper {
|
|
108
|
-
display: flex;
|
|
109
|
-
gap: 0.5rem;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
& .skeleton-img {
|
|
113
|
-
background-color: ${y("-90deg")};
|
|
114
|
-
border-radius: 0.75rem;
|
|
115
|
-
border: 1px solid white;
|
|
116
|
-
width: 100%;
|
|
117
|
-
height: 11rem;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
& .skeleton-title {
|
|
121
|
-
background-color: ${y("-90deg")};
|
|
122
|
-
width: 100%;
|
|
123
|
-
height: 2.5rem;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
& .skeleton-tags {
|
|
127
|
-
background-color: ${y("-90deg")};
|
|
128
|
-
width: 80%;
|
|
129
|
-
height: 1.5rem;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
& .skeleton-price {
|
|
133
|
-
background-color: ${y("-90deg")};
|
|
134
|
-
width: 50%;
|
|
135
|
-
height: 2.5rem;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
& .skeleton-sponsored {
|
|
139
|
-
background-color: ${y("-90deg")};
|
|
140
|
-
width: 50%;
|
|
141
|
-
height: 1rem;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
& .tags-popover__trigger {
|
|
145
|
-
display: flex;
|
|
146
|
-
gap: 0.25rem;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
@media (max-width: ${re + "px"}) {
|
|
150
|
-
overflow: visible;
|
|
151
|
-
|
|
152
|
-
& .wrapper-card-3 {
|
|
153
|
-
flex-wrap: nowrap;
|
|
154
|
-
justify-content: flex-start;
|
|
155
|
-
overflow-x: scroll;
|
|
156
|
-
width: 8.875rem !important;
|
|
157
|
-
|
|
158
|
-
-webkit-overflow-scrolling: touch;
|
|
159
|
-
::-webkit-scrollbar {
|
|
160
|
-
-webkit-appearance: none;
|
|
161
|
-
}
|
|
162
|
-
-ms-overflow-style: none;
|
|
163
|
-
/* Internet Explorer 10+ */
|
|
164
|
-
scrollbar-width: none;
|
|
165
|
-
/* Firefox */
|
|
166
|
-
|
|
167
|
-
&::-webkit-scrollbar {
|
|
168
|
-
display: none;
|
|
169
|
-
/* Safari and Chrome */
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
& > div {
|
|
173
|
-
& > div {
|
|
174
|
-
width: 8.875rem !important;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
& .tags-popover__trigger {
|
|
180
|
-
overflow-x: scroll;
|
|
181
|
-
justify-content: flex-start;
|
|
182
|
-
width: 100%;
|
|
183
|
-
|
|
184
|
-
-webkit-overflow-scrolling: touch;
|
|
185
|
-
::-webkit-scrollbar {
|
|
186
|
-
-webkit-appearance: none;
|
|
187
|
-
}
|
|
188
|
-
-ms-overflow-style: none;
|
|
189
|
-
/* Internet Explorer 10+ */
|
|
190
|
-
scrollbar-width: none;
|
|
191
|
-
/* Firefox */
|
|
192
|
-
|
|
193
|
-
&::-webkit-scrollbar {
|
|
194
|
-
display: none;
|
|
195
|
-
/* Safari and Chrome */
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
& .price-text {
|
|
200
|
-
font-size: 0.875rem;
|
|
201
|
-
font-weight: 600;
|
|
202
|
-
|
|
203
|
-
& .full-price {
|
|
204
|
-
display: none;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&:hover .product-image-wrapper img {
|
|
210
|
-
transform: scale(1.1);
|
|
211
|
-
}
|
|
212
|
-
`, Me = T.div`
|
|
213
|
-
position: relative;
|
|
214
|
-
overflow: hidden;
|
|
215
|
-
border-radius: 0.75rem;
|
|
216
|
-
width: 100%;
|
|
217
|
-
aspect-ratio: 1 / 1;
|
|
218
|
-
border: 1px solid #0c15201f;
|
|
219
|
-
|
|
220
|
-
& .bookmarking-btn {
|
|
221
|
-
position: absolute;
|
|
222
|
-
right: 0.5rem;
|
|
223
|
-
top: 0.5rem;
|
|
224
|
-
z-index: 1;
|
|
225
|
-
|
|
226
|
-
display: none;
|
|
227
|
-
|
|
228
|
-
display: flex;
|
|
229
|
-
align-items: center;
|
|
230
|
-
justify-content: center;
|
|
231
|
-
|
|
232
|
-
width: 2.25rem;
|
|
233
|
-
height: 2.25rem;
|
|
234
|
-
border-radius: ${(s) => Ve(s.theme, "curved")};
|
|
235
|
-
border: 1px solid var(--gray-95008);
|
|
236
|
-
background-color: white;
|
|
237
|
-
color: var(--gray-950);
|
|
238
|
-
transition: transform 0.2s ease;
|
|
239
|
-
|
|
240
|
-
&:hover {
|
|
241
|
-
transform: scale(1.05);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
i {
|
|
245
|
-
color: #14161a;
|
|
246
|
-
font-size: 1.1rem;
|
|
247
|
-
line-height: 1;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
&:hover {
|
|
252
|
-
& .bookmarking-btn {
|
|
253
|
-
display: flex;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
& img {
|
|
258
|
-
display: block;
|
|
259
|
-
width: 100%;
|
|
260
|
-
height: 100%;
|
|
261
|
-
object-fit: cover;
|
|
262
|
-
border-radius: 0.75rem;
|
|
263
|
-
transition: var(--transition, all 0.3s ease);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
@media (max-width: ${re + "px"}) {
|
|
267
|
-
& img {
|
|
268
|
-
width: 8.875rem;
|
|
269
|
-
height: 8.875rem;
|
|
270
|
-
min-width: 8.875rem;
|
|
271
|
-
min-height: 8.875rem;
|
|
272
|
-
object-fit: cover;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
& .bookmarking-btn {
|
|
276
|
-
display: flex;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
`, We = T.div`
|
|
280
|
-
background: var(--white, #fff);
|
|
281
|
-
z-index: 1;
|
|
282
|
-
|
|
283
|
-
border: 1px solid var(--gray-200, #dddfe4);
|
|
284
|
-
border-radius: 0.5rem;
|
|
285
|
-
line-height: 1rem;
|
|
286
|
-
position: absolute;
|
|
287
|
-
padding: 0.5rem 0.75rem;
|
|
288
|
-
top: 0.5rem;
|
|
289
|
-
left: 25%;
|
|
290
|
-
transform: translateX(-50%);
|
|
291
|
-
min-width: 13rem;
|
|
292
|
-
|
|
293
|
-
&::before,
|
|
294
|
-
&::after {
|
|
295
|
-
content: "";
|
|
296
|
-
position: absolute;
|
|
297
|
-
left: 50%;
|
|
298
|
-
transform: translateX(-50%);
|
|
299
|
-
border-style: solid;
|
|
300
|
-
border-width: 0.625rem;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
&::after {
|
|
304
|
-
top: -1.1875rem;
|
|
305
|
-
border-color: transparent transparent var(--white, #fff) transparent;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
&::before {
|
|
309
|
-
top: -1.25rem;
|
|
310
|
-
border-color: transparent transparent var(--gray-200, #dddfe4) transparent;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
& .tags-popover__content {
|
|
314
|
-
display: flex;
|
|
315
|
-
flex-wrap: wrap;
|
|
316
|
-
flex-direction: column;
|
|
317
|
-
gap: 0.375rem;
|
|
318
|
-
font-size: 0.75rem;
|
|
319
|
-
font-weight: 400;
|
|
320
|
-
|
|
321
|
-
& .tags-popover__name {
|
|
322
|
-
color: var(--gray-600, #676e79);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
& .tags-popover__value {
|
|
326
|
-
color: var(--gray-950, #14161a);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
`, Fe = T.div`
|
|
330
|
-
display: flex;
|
|
331
|
-
align-items: center;
|
|
332
|
-
gap: 0.25rem;
|
|
333
|
-
color: var(--gray-500);
|
|
334
|
-
font-size: 0.75rem;
|
|
335
|
-
font-weight: 500;
|
|
336
|
-
|
|
337
|
-
& i {
|
|
338
|
-
font-size: 1rem;
|
|
339
|
-
color: var(--warning-500, #F59E0B);
|
|
340
|
-
}
|
|
341
|
-
`, Ie = W(({ sponsoredText: s = "Sponsored" }, h) => /* @__PURE__ */ t(Fe, { ref: h, className: "sponsored-line", children: [
|
|
342
|
-
/* @__PURE__ */ e("i", { className: "mng-lnc-paw2" }),
|
|
343
|
-
/* @__PURE__ */ e("span", { children: s })
|
|
344
|
-
] })), je = "Vehicles_Cars", xe = "Vehicles_Motorcycles", De = "Vehicles_Trucks", Ue = "Vehicles_AgriculturalMachines_Tractors", Re = "Vehicles_ConstructionMachines", Ge = "Vehicles_Bus", Xe = "Vehicles_Campers", Le = "RealEstates_", a = {
|
|
345
|
-
Mileage: {
|
|
346
|
-
icon: "mng-lnc-road",
|
|
347
|
-
measure: "km"
|
|
348
|
-
},
|
|
349
|
-
YearOfProduction: {
|
|
350
|
-
icon: "mng-lnc-calendar",
|
|
351
|
-
measure: ""
|
|
352
|
-
},
|
|
353
|
-
Fuel: {
|
|
354
|
-
icon: "mng-lnc-gas-station",
|
|
355
|
-
measure: ""
|
|
356
|
-
},
|
|
357
|
-
EnginePowerKW: {
|
|
358
|
-
icon: "mng-lnc-engine",
|
|
359
|
-
measure: "kW"
|
|
360
|
-
},
|
|
361
|
-
Transmission: {
|
|
362
|
-
icon: "mng-lnc-transmission",
|
|
363
|
-
measure: ""
|
|
364
|
-
},
|
|
365
|
-
Model: {
|
|
366
|
-
icon: "mng-lnc-application",
|
|
367
|
-
measure: ""
|
|
368
|
-
},
|
|
369
|
-
Brand: {
|
|
370
|
-
icon: "mng-lnc-car--front",
|
|
371
|
-
measure: ""
|
|
372
|
-
},
|
|
373
|
-
SurfaceArea: {
|
|
374
|
-
icon: "mng-lnc-right-angle",
|
|
375
|
-
measure: ""
|
|
376
|
-
},
|
|
377
|
-
Floor: {
|
|
378
|
-
icon: "mng-lnc-elevator",
|
|
379
|
-
measure: ""
|
|
380
|
-
},
|
|
381
|
-
FurnishedCondition: {
|
|
382
|
-
icon: "mng-lnc-sofa-01",
|
|
383
|
-
measure: ""
|
|
384
|
-
},
|
|
385
|
-
AdType: {
|
|
386
|
-
icon: "mng-lnc-notes",
|
|
387
|
-
measure: ""
|
|
388
|
-
},
|
|
389
|
-
NumberOfRooms: {
|
|
390
|
-
icon: "mng-lnc-meeting-room",
|
|
391
|
-
measure: ""
|
|
392
|
-
},
|
|
393
|
-
HeatingType: {
|
|
394
|
-
icon: "mng-lnc-heat",
|
|
395
|
-
measure: ""
|
|
396
|
-
},
|
|
397
|
-
AirConditioning: {
|
|
398
|
-
icon: "mng-lnc-air-conditioner",
|
|
399
|
-
measure: ""
|
|
400
|
-
},
|
|
401
|
-
Type: {
|
|
402
|
-
icon: "mng-lnc-house-building",
|
|
403
|
-
measure: ""
|
|
404
|
-
},
|
|
405
|
-
Parking: {
|
|
406
|
-
icon: "mng-lnc-parking-area-circle",
|
|
407
|
-
measure: ""
|
|
408
|
-
},
|
|
409
|
-
Internet: {
|
|
410
|
-
icon: "mng-lnc-wifi-02",
|
|
411
|
-
measure: ""
|
|
412
|
-
},
|
|
413
|
-
State: {
|
|
414
|
-
icon: "mng-lnc-settings-1",
|
|
415
|
-
measure: ""
|
|
416
|
-
},
|
|
417
|
-
NumberOfPremises: {
|
|
418
|
-
icon: "mng-lnc-meeting-room",
|
|
419
|
-
measure: ""
|
|
420
|
-
},
|
|
421
|
-
Pool: {
|
|
422
|
-
icon: "mng-lnc-pool",
|
|
423
|
-
measure: ""
|
|
424
|
-
},
|
|
425
|
-
Approach: {
|
|
426
|
-
icon: "mng-lnc-driveway",
|
|
427
|
-
measure: ""
|
|
428
|
-
},
|
|
429
|
-
NumberOfBeds: {
|
|
430
|
-
icon: "mng-lnc-bed",
|
|
431
|
-
measure: ""
|
|
432
|
-
},
|
|
433
|
-
Kitchen: {
|
|
434
|
-
icon: "mng-lnc-fridge",
|
|
435
|
-
measure: ""
|
|
436
|
-
},
|
|
437
|
-
BathroomToilet: {
|
|
438
|
-
icon: "mng-lnc-bath",
|
|
439
|
-
measure: ""
|
|
440
|
-
},
|
|
441
|
-
default: {
|
|
442
|
-
icon: " mng-lnc-clock--filled",
|
|
443
|
-
measure: ""
|
|
444
|
-
}
|
|
445
|
-
}, ir = W((s, h) => {
|
|
446
|
-
const {
|
|
447
|
-
uuid: c,
|
|
448
|
-
sellerUuid: _,
|
|
449
|
-
name: w,
|
|
450
|
-
price: V = 0,
|
|
451
|
-
sellingPrice: C,
|
|
452
|
-
currency: N,
|
|
453
|
-
isNegotiable: E,
|
|
454
|
-
isFree: S,
|
|
455
|
-
imageUrl: ne,
|
|
456
|
-
location: te,
|
|
457
|
-
sponsored: ae,
|
|
458
|
-
imageComponent: F,
|
|
459
|
-
onSelectCard: ie = () => {
|
|
460
|
-
},
|
|
461
|
-
freeText: se = "Free",
|
|
462
|
-
negotiableText: le = "Negotiable",
|
|
463
|
-
tags: n = [],
|
|
464
|
-
categoryCode: O,
|
|
465
|
-
condition: I,
|
|
466
|
-
quantity: j,
|
|
467
|
-
trade: x,
|
|
468
|
-
sponsoredText: ce,
|
|
469
|
-
forCart: de,
|
|
470
|
-
forOrder: me,
|
|
471
|
-
contactSeller: pe,
|
|
472
|
-
hasVariants: ge,
|
|
473
|
-
onBookmark: B = () => {
|
|
474
|
-
},
|
|
475
|
-
bookmarkComponent: b,
|
|
476
|
-
bookmarked: D,
|
|
477
|
-
bookmarkLists: ue,
|
|
478
|
-
metadata: f,
|
|
479
|
-
sellerName: U
|
|
480
|
-
} = s, z = ze(), he = () => {
|
|
481
|
-
var d;
|
|
482
|
-
if (!J(b)) return /* @__PURE__ */ e($, {});
|
|
483
|
-
const r = b, o = (d = b == null ? void 0 : b.props) == null ? void 0 : d.children, l = Z(o, {
|
|
484
|
-
key: `bookmark_pr__${D}`,
|
|
485
|
-
bookmarked: D,
|
|
486
|
-
productUuid: c,
|
|
487
|
-
onAddToBookmark: () => B(!0, c),
|
|
488
|
-
onRemoveFromBookmark: () => B(!1, c),
|
|
489
|
-
bookmarkedUuidList: ue,
|
|
490
|
-
sellerUuid: _,
|
|
491
|
-
handleBookmarking: B,
|
|
492
|
-
forCart: de,
|
|
493
|
-
forOrder: me,
|
|
494
|
-
contactSeller: pe,
|
|
495
|
-
hasVariants: ge
|
|
496
|
-
});
|
|
497
|
-
return Z(r, void 0, l);
|
|
498
|
-
}, R = [
|
|
499
|
-
je,
|
|
500
|
-
xe,
|
|
501
|
-
De,
|
|
502
|
-
Ue,
|
|
503
|
-
Re,
|
|
504
|
-
Ge,
|
|
505
|
-
Xe,
|
|
506
|
-
Le
|
|
507
|
-
].some(
|
|
508
|
-
(r) => O == null ? void 0 : O.includes(r)
|
|
509
|
-
), [fe, G] = K(!1), ve = () => {
|
|
510
|
-
G(!0);
|
|
511
|
-
}, we = () => {
|
|
512
|
-
G(!1);
|
|
513
|
-
}, i = H(null), g = H([]), [be, X] = K(n == null ? void 0 : n.length), ke = () => {
|
|
514
|
-
var d, v, k;
|
|
515
|
-
if (!(i != null && i.current) || ((d = g == null ? void 0 : g.current) == null ? void 0 : d.length) === 0) return;
|
|
516
|
-
if (z) {
|
|
517
|
-
X(n == null ? void 0 : n.length);
|
|
518
|
-
return;
|
|
519
|
-
}
|
|
520
|
-
const r = (v = i == null ? void 0 : i.current) == null ? void 0 : v.offsetWidth;
|
|
521
|
-
let o = 0, l = 0;
|
|
522
|
-
for (let m = 0; m < (n == null ? void 0 : n.length); m++) {
|
|
523
|
-
const u = ((k = g == null ? void 0 : g.current[m]) == null ? void 0 : k.offsetWidth) || 0, p = o + u + 4;
|
|
524
|
-
if (p <= r)
|
|
525
|
-
o += p, l++;
|
|
526
|
-
else
|
|
527
|
-
break;
|
|
528
|
-
}
|
|
529
|
-
X(l);
|
|
530
|
-
};
|
|
531
|
-
Pe(() => {
|
|
532
|
-
const r = i == null ? void 0 : i.current;
|
|
533
|
-
if (!r) return;
|
|
534
|
-
const o = new ResizeObserver(() => {
|
|
535
|
-
ke();
|
|
536
|
-
});
|
|
537
|
-
return o.observe(r), () => {
|
|
538
|
-
o.disconnect();
|
|
539
|
-
};
|
|
540
|
-
}, [n, z]);
|
|
541
|
-
const ye = () => {
|
|
542
|
-
var r;
|
|
543
|
-
return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = n == null ? void 0 : n.slice(0, be)) == null ? void 0 : r.map((o, l) => {
|
|
544
|
-
var u, p, q, A, Y;
|
|
545
|
-
const d = ((u = a == null ? void 0 : a[o == null ? void 0 : o.code]) == null ? void 0 : u.icon) ?? ((p = a == null ? void 0 : a.default) == null ? void 0 : p.icon) ?? "", v = ((q = o == null ? void 0 : o.measurementUnit) == null ? void 0 : q.symbol) ?? ((A = a == null ? void 0 : a[o == null ? void 0 : o.code]) == null ? void 0 : A.measure) ?? "", m = [(o == null ? void 0 : o.value) ?? ((Y = o == null ? void 0 : o.multiOptions) == null ? void 0 : Y[0]) ?? "", v].filter(Boolean).join(" ");
|
|
546
|
-
return /* @__PURE__ */ t(
|
|
547
|
-
P,
|
|
548
|
-
{
|
|
549
|
-
ref: (Ne) => g.current[l] = Ne,
|
|
550
|
-
className: "tag",
|
|
551
|
-
children: [
|
|
552
|
-
/* @__PURE__ */ e("i", { className: d }),
|
|
553
|
-
m
|
|
554
|
-
]
|
|
555
|
-
},
|
|
556
|
-
`detailed-products-section-tag__${l + 1}`
|
|
557
|
-
);
|
|
558
|
-
}) });
|
|
559
|
-
}, _e = () => /* @__PURE__ */ e("div", { className: "tags-popover__content", children: n == null ? void 0 : n.map((r, o) => {
|
|
560
|
-
var m, u, p;
|
|
561
|
-
const l = ((m = r == null ? void 0 : r.measurementUnit) == null ? void 0 : m.symbol) ?? ((u = a == null ? void 0 : a[r == null ? void 0 : r.code]) == null ? void 0 : u.measure) ?? "", v = [(r == null ? void 0 : r.value) ?? ((p = r == null ? void 0 : r.multiOptions) == null ? void 0 : p[0]) ?? "", l].filter(Boolean).join(" "), k = r == null ? void 0 : r.name;
|
|
562
|
-
return /* @__PURE__ */ t("div", { children: [
|
|
563
|
-
/* @__PURE__ */ e("span", { className: "tags-popover__name", children: `${k}: ` }),
|
|
564
|
-
/* @__PURE__ */ e("span", { className: "tags-popover__value", children: v })
|
|
565
|
-
] }, `detailed-products-section-tag-dropdown__${o + 1}`);
|
|
566
|
-
}) }), Ce = () => /* @__PURE__ */ t($, { children: [
|
|
567
|
-
I && /* @__PURE__ */ e(P, { className: "tag", children: I }, "detailed-products-section-tag__condition"),
|
|
568
|
-
j && /* @__PURE__ */ e(P, { className: "tag", children: j }, "detailed-products-section-tag__quantity"),
|
|
569
|
-
x && /* @__PURE__ */ e(P, { className: "tag", children: x }, "detailed-products-section-tag__trade")
|
|
570
|
-
] }), L = V > 0 && N && E !== !0 && S !== !0 && V !== C;
|
|
571
|
-
return (
|
|
572
|
-
// <LandingPageProductCardSkeleton />
|
|
573
|
-
/* @__PURE__ */ t(
|
|
574
|
-
oe,
|
|
575
|
-
{
|
|
576
|
-
ref: i,
|
|
577
|
-
className: "product-card",
|
|
578
|
-
"data-accessor": f == null ? void 0 : f.accessor,
|
|
579
|
-
name: f == null ? void 0 : f.name,
|
|
580
|
-
onClick: (r) => ie(r, i),
|
|
581
|
-
children: [
|
|
582
|
-
/* @__PURE__ */ t(Me, { className: "product-image-wrapper", children: [
|
|
583
|
-
/* @__PURE__ */ e(he, {}),
|
|
584
|
-
J(F) ? F : /* @__PURE__ */ e(Ee, { src: ne })
|
|
585
|
-
] }),
|
|
586
|
-
/* @__PURE__ */ t("div", { className: "wrapper-card-1", children: [
|
|
587
|
-
/* @__PURE__ */ e("div", { className: "seller", title: U, children: U }),
|
|
588
|
-
/* @__PURE__ */ e("div", { className: "card-title", children: w })
|
|
589
|
-
] }),
|
|
590
|
-
/* @__PURE__ */ t("div", { className: "wrapper-card-3", children: [
|
|
591
|
-
R && /* @__PURE__ */ e(
|
|
592
|
-
"div",
|
|
593
|
-
{
|
|
594
|
-
...z ? {} : {
|
|
595
|
-
onMouseEnter: ve,
|
|
596
|
-
onMouseLeave: we
|
|
597
|
-
},
|
|
598
|
-
children: /* @__PURE__ */ t(Se, { placement: "bottom", open: fe, children: [
|
|
599
|
-
/* @__PURE__ */ e(Oe, { children: ye() }),
|
|
600
|
-
/* @__PURE__ */ e(Be, { style: { all: "unset" }, children: /* @__PURE__ */ e(We, { children: _e() }) })
|
|
601
|
-
] })
|
|
602
|
-
}
|
|
603
|
-
),
|
|
604
|
-
!R && Ce()
|
|
605
|
-
] }),
|
|
606
|
-
/* @__PURE__ */ t("div", { className: "wrapper-card-2", children: [
|
|
607
|
-
/* @__PURE__ */ t("div", { className: `price-text ${L ? "new-price" : ""}`, children: [
|
|
608
|
-
C > 0 && N && E !== !0 && S !== !0 && /* @__PURE__ */ e("div", { children: `${Q(C)} ${ee(N)}` }),
|
|
609
|
-
L && /* @__PURE__ */ e("div", { className: `${C > 0 ? "full-price" : ""}`, children: `${Q(V)} ${ee(N)}` }),
|
|
610
|
-
E && le,
|
|
611
|
-
S && se
|
|
612
|
-
] }),
|
|
613
|
-
/* @__PURE__ */ e("div", { className: "location-text", children: te })
|
|
614
|
-
] }),
|
|
615
|
-
ae === !0 && /* @__PURE__ */ e(Ie, { sponsoredText: ce })
|
|
616
|
-
]
|
|
617
|
-
}
|
|
618
|
-
)
|
|
619
|
-
);
|
|
620
|
-
}), qe = W(({}, s) => /* @__PURE__ */ t(oe, { className: "product-card", children: [
|
|
621
|
-
/* @__PURE__ */ e("img", { className: "skeleton-img" }),
|
|
622
|
-
/* @__PURE__ */ t("div", { className: "wrapper-card-1", children: [
|
|
623
|
-
/* @__PURE__ */ e("div", { className: "skeleton-title" }),
|
|
624
|
-
/* @__PURE__ */ e("div", { className: "skeleton-tags" })
|
|
625
|
-
] }),
|
|
626
|
-
/* @__PURE__ */ t("div", { className: "wrapper-card-1", children: [
|
|
627
|
-
/* @__PURE__ */ e("div", { className: "skeleton-price" }),
|
|
628
|
-
/* @__PURE__ */ e("div", { className: "skeleton-sponsored" })
|
|
629
|
-
] })
|
|
630
|
-
] })), Ae = ({ limit: s = 5, isLoading: h = !1, keyPrefix: c }) => /* @__PURE__ */ e($, { children: Array.from({ length: s }, (_, w) => /* @__PURE__ */ e(
|
|
631
|
-
qe,
|
|
632
|
-
{
|
|
633
|
-
isLoading: h
|
|
634
|
-
},
|
|
635
|
-
`${c}-skeleton-product-card-${w}`
|
|
636
|
-
)) }), sr = ({
|
|
637
|
-
children: s,
|
|
638
|
-
fallbackComponent: h = /* @__PURE__ */ e($, {}),
|
|
639
|
-
isLoading: c = !1,
|
|
640
|
-
limit: _,
|
|
641
|
-
keyPrefix: w
|
|
642
|
-
}) => /* @__PURE__ */ e($e, { fallbackComponent: h, children: c === !0 ? /* @__PURE__ */ e(
|
|
643
|
-
Ae,
|
|
644
|
-
{
|
|
645
|
-
isLoading: c,
|
|
646
|
-
limit: _,
|
|
647
|
-
keyPrefix: w
|
|
648
|
-
}
|
|
649
|
-
) : s });
|
|
650
|
-
export {
|
|
651
|
-
ir as D,
|
|
652
|
-
sr as S
|
|
653
|
-
};
|