@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,330 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),a=require("react"),t=require("./utils-Dl9xPH4c.cjs"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),fe=require("./index-BueKsXT8.cjs"),C=require("./Badge.cjs"),ve=require("./Popover.cjs"),we=require("./PopoverTrigger.cjs"),be=require("./PopoverContent.cjs"),ye=require("./useDetectMobile-zkbzoOGV.cjs"),X=require("./consts-goSZX3xP.cjs"),L=N.styled.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 0.5rem;
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
width: 100%;
|
|
8
|
-
|
|
9
|
-
& .seller {
|
|
10
|
-
text-transform: uppercase;
|
|
11
|
-
${t.truncateText()}
|
|
12
|
-
color: var(--gray-500);
|
|
13
|
-
font-size: 0.625rem;
|
|
14
|
-
font-weight: 400;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
& .wrapper-card-1 {
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
gap: 0.12rem;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
& .wrapper-card-2 {
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
gap: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
& .wrapper-card-3 {
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-wrap: wrap;
|
|
32
|
-
gap: 0.25rem;
|
|
33
|
-
|
|
34
|
-
& > div {
|
|
35
|
-
& > div {
|
|
36
|
-
width: 100% !important;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
& .tag {
|
|
42
|
-
height: 1.5rem;
|
|
43
|
-
gap: 0.25rem;
|
|
44
|
-
padding: 0.25rem 0.375rem;
|
|
45
|
-
border-radius: 0.375rem;
|
|
46
|
-
background: #f9fafb;
|
|
47
|
-
border: 1px solid var(--gray-95012, #14161a1f);
|
|
48
|
-
font-weight: 400;
|
|
49
|
-
font-size: 0.75rem;
|
|
50
|
-
line-height: 1rem;
|
|
51
|
-
letter-spacing: 0.025rem;
|
|
52
|
-
color: var(--gray-950, #14161a);
|
|
53
|
-
white-space: nowrap;
|
|
54
|
-
flex: 0 0 auto;
|
|
55
|
-
|
|
56
|
-
& i {
|
|
57
|
-
color: var(--yellow-500, #f59e0b);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
& .card-title {
|
|
62
|
-
font-size: 0.875rem;
|
|
63
|
-
font-weight: 600;
|
|
64
|
-
${t.truncateTextInRows(2)}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
& .price-text {
|
|
68
|
-
font-size: 1rem;
|
|
69
|
-
font-weight: 600;
|
|
70
|
-
${t.truncateText()}
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: end;
|
|
73
|
-
gap: 0.5rem;
|
|
74
|
-
color: var(--gray-950, #14161a);
|
|
75
|
-
|
|
76
|
-
&.new-price {
|
|
77
|
-
color: var(--danger-600, #e11d48);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
& .full-price {
|
|
81
|
-
text-decoration: line-through;
|
|
82
|
-
font-size: 0.75rem;
|
|
83
|
-
font-weight: 400;
|
|
84
|
-
padding-bottom: 0.125rem;
|
|
85
|
-
color: var(--gray-600, #676e79);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
& .location-text {
|
|
90
|
-
font-size: 0.75rem;
|
|
91
|
-
font-weight: 400;
|
|
92
|
-
color: var(--gray-600, #676e79);
|
|
93
|
-
${t.truncateText()}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
& .tags-wrapper {
|
|
97
|
-
display: flex;
|
|
98
|
-
gap: 0.5rem;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
& .skeleton-img {
|
|
102
|
-
background-color: ${t.linearGradientAnimation("-90deg")};
|
|
103
|
-
border-radius: 0.75rem;
|
|
104
|
-
border: 1px solid white;
|
|
105
|
-
width: 100%;
|
|
106
|
-
height: 11rem;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
& .skeleton-title {
|
|
110
|
-
background-color: ${t.linearGradientAnimation("-90deg")};
|
|
111
|
-
width: 100%;
|
|
112
|
-
height: 2.5rem;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
& .skeleton-tags {
|
|
116
|
-
background-color: ${t.linearGradientAnimation("-90deg")};
|
|
117
|
-
width: 80%;
|
|
118
|
-
height: 1.5rem;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
& .skeleton-price {
|
|
122
|
-
background-color: ${t.linearGradientAnimation("-90deg")};
|
|
123
|
-
width: 50%;
|
|
124
|
-
height: 2.5rem;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
& .skeleton-sponsored {
|
|
128
|
-
background-color: ${t.linearGradientAnimation("-90deg")};
|
|
129
|
-
width: 50%;
|
|
130
|
-
height: 1rem;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
& .tags-popover__trigger {
|
|
134
|
-
display: flex;
|
|
135
|
-
gap: 0.25rem;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@media (max-width: ${X.MOBILE_SIZE_PX+"px"}) {
|
|
139
|
-
overflow: visible;
|
|
140
|
-
|
|
141
|
-
& .wrapper-card-3 {
|
|
142
|
-
flex-wrap: nowrap;
|
|
143
|
-
justify-content: flex-start;
|
|
144
|
-
overflow-x: scroll;
|
|
145
|
-
width: 8.875rem !important;
|
|
146
|
-
|
|
147
|
-
-webkit-overflow-scrolling: touch;
|
|
148
|
-
::-webkit-scrollbar {
|
|
149
|
-
-webkit-appearance: none;
|
|
150
|
-
}
|
|
151
|
-
-ms-overflow-style: none;
|
|
152
|
-
/* Internet Explorer 10+ */
|
|
153
|
-
scrollbar-width: none;
|
|
154
|
-
/* Firefox */
|
|
155
|
-
|
|
156
|
-
&::-webkit-scrollbar {
|
|
157
|
-
display: none;
|
|
158
|
-
/* Safari and Chrome */
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
& > div {
|
|
162
|
-
& > div {
|
|
163
|
-
width: 8.875rem !important;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
& .tags-popover__trigger {
|
|
169
|
-
overflow-x: scroll;
|
|
170
|
-
justify-content: flex-start;
|
|
171
|
-
width: 100%;
|
|
172
|
-
|
|
173
|
-
-webkit-overflow-scrolling: touch;
|
|
174
|
-
::-webkit-scrollbar {
|
|
175
|
-
-webkit-appearance: none;
|
|
176
|
-
}
|
|
177
|
-
-ms-overflow-style: none;
|
|
178
|
-
/* Internet Explorer 10+ */
|
|
179
|
-
scrollbar-width: none;
|
|
180
|
-
/* Firefox */
|
|
181
|
-
|
|
182
|
-
&::-webkit-scrollbar {
|
|
183
|
-
display: none;
|
|
184
|
-
/* Safari and Chrome */
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
& .price-text {
|
|
189
|
-
font-size: 0.875rem;
|
|
190
|
-
font-weight: 600;
|
|
191
|
-
|
|
192
|
-
& .full-price {
|
|
193
|
-
display: none;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
&:hover .product-image-wrapper img {
|
|
199
|
-
transform: scale(1.1);
|
|
200
|
-
}
|
|
201
|
-
`,ke=N.styled.div`
|
|
202
|
-
position: relative;
|
|
203
|
-
overflow: hidden;
|
|
204
|
-
border-radius: 0.75rem;
|
|
205
|
-
width: 100%;
|
|
206
|
-
aspect-ratio: 1 / 1;
|
|
207
|
-
border: 1px solid #0c15201f;
|
|
208
|
-
|
|
209
|
-
& .bookmarking-btn {
|
|
210
|
-
position: absolute;
|
|
211
|
-
right: 0.5rem;
|
|
212
|
-
top: 0.5rem;
|
|
213
|
-
z-index: 1;
|
|
214
|
-
|
|
215
|
-
display: none;
|
|
216
|
-
|
|
217
|
-
display: flex;
|
|
218
|
-
align-items: center;
|
|
219
|
-
justify-content: center;
|
|
220
|
-
|
|
221
|
-
width: 2.25rem;
|
|
222
|
-
height: 2.25rem;
|
|
223
|
-
border-radius: ${c=>t.getBorderRadiusValueWithUnits(c.theme,"curved")};
|
|
224
|
-
border: 1px solid var(--gray-95008);
|
|
225
|
-
background-color: white;
|
|
226
|
-
color: var(--gray-950);
|
|
227
|
-
transition: transform 0.2s ease;
|
|
228
|
-
|
|
229
|
-
&:hover {
|
|
230
|
-
transform: scale(1.05);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
i {
|
|
234
|
-
color: #14161a;
|
|
235
|
-
font-size: 1.1rem;
|
|
236
|
-
line-height: 1;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
&:hover {
|
|
241
|
-
& .bookmarking-btn {
|
|
242
|
-
display: flex;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
& img {
|
|
247
|
-
display: block;
|
|
248
|
-
width: 100%;
|
|
249
|
-
height: 100%;
|
|
250
|
-
object-fit: cover;
|
|
251
|
-
border-radius: 0.75rem;
|
|
252
|
-
transition: var(--transition, all 0.3s ease);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
@media (max-width: ${X.MOBILE_SIZE_PX+"px"}) {
|
|
256
|
-
& img {
|
|
257
|
-
width: 8.875rem;
|
|
258
|
-
height: 8.875rem;
|
|
259
|
-
min-width: 8.875rem;
|
|
260
|
-
min-height: 8.875rem;
|
|
261
|
-
object-fit: cover;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
& .bookmarking-btn {
|
|
265
|
-
display: flex;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
`,xe=N.styled.div`
|
|
269
|
-
background: var(--white, #fff);
|
|
270
|
-
z-index: 1;
|
|
271
|
-
|
|
272
|
-
border: 1px solid var(--gray-200, #dddfe4);
|
|
273
|
-
border-radius: 0.5rem;
|
|
274
|
-
line-height: 1rem;
|
|
275
|
-
position: absolute;
|
|
276
|
-
padding: 0.5rem 0.75rem;
|
|
277
|
-
top: 0.5rem;
|
|
278
|
-
left: 25%;
|
|
279
|
-
transform: translateX(-50%);
|
|
280
|
-
min-width: 13rem;
|
|
281
|
-
|
|
282
|
-
&::before,
|
|
283
|
-
&::after {
|
|
284
|
-
content: "";
|
|
285
|
-
position: absolute;
|
|
286
|
-
left: 50%;
|
|
287
|
-
transform: translateX(-50%);
|
|
288
|
-
border-style: solid;
|
|
289
|
-
border-width: 0.625rem;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
&::after {
|
|
293
|
-
top: -1.1875rem;
|
|
294
|
-
border-color: transparent transparent var(--white, #fff) transparent;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
&::before {
|
|
298
|
-
top: -1.25rem;
|
|
299
|
-
border-color: transparent transparent var(--gray-200, #dddfe4) transparent;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
& .tags-popover__content {
|
|
303
|
-
display: flex;
|
|
304
|
-
flex-wrap: wrap;
|
|
305
|
-
flex-direction: column;
|
|
306
|
-
gap: 0.375rem;
|
|
307
|
-
font-size: 0.75rem;
|
|
308
|
-
font-weight: 400;
|
|
309
|
-
|
|
310
|
-
& .tags-popover__name {
|
|
311
|
-
color: var(--gray-600, #676e79);
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
& .tags-popover__value {
|
|
315
|
-
color: var(--gray-950, #14161a);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
`,je=N.styled.div`
|
|
319
|
-
display: flex;
|
|
320
|
-
align-items: center;
|
|
321
|
-
gap: 0.25rem;
|
|
322
|
-
color: var(--gray-500);
|
|
323
|
-
font-size: 0.75rem;
|
|
324
|
-
font-weight: 500;
|
|
325
|
-
|
|
326
|
-
& i {
|
|
327
|
-
font-size: 1rem;
|
|
328
|
-
color: var(--warning-500, #F59E0B);
|
|
329
|
-
}
|
|
330
|
-
`,_e=a.forwardRef(({sponsoredText:c="Sponsored"},f)=>e.jsxs(je,{ref:f,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:c})]})),Ce="Vehicles_Cars",Ne="Vehicles_Motorcycles",Pe="Vehicles_Trucks",$e="Vehicles_AgriculturalMachines_Tractors",Se="Vehicles_ConstructionMachines",Ee="Vehicles_Bus",Te="Vehicles_Campers",Ve="RealEstates_",s={Mileage:{icon:"mng-lnc-road",measure:"km"},YearOfProduction:{icon:"mng-lnc-calendar",measure:""},Fuel:{icon:"mng-lnc-gas-station",measure:""},EnginePowerKW:{icon:"mng-lnc-engine",measure:"kW"},Transmission:{icon:"mng-lnc-transmission",measure:""},Model:{icon:"mng-lnc-application",measure:""},Brand:{icon:"mng-lnc-car--front",measure:""},SurfaceArea:{icon:"mng-lnc-right-angle",measure:""},Floor:{icon:"mng-lnc-elevator",measure:""},FurnishedCondition:{icon:"mng-lnc-sofa-01",measure:""},AdType:{icon:"mng-lnc-notes",measure:""},NumberOfRooms:{icon:"mng-lnc-meeting-room",measure:""},HeatingType:{icon:"mng-lnc-heat",measure:""},AirConditioning:{icon:"mng-lnc-air-conditioner",measure:""},Type:{icon:"mng-lnc-house-building",measure:""},Parking:{icon:"mng-lnc-parking-area-circle",measure:""},Internet:{icon:"mng-lnc-wifi-02",measure:""},State:{icon:"mng-lnc-settings-1",measure:""},NumberOfPremises:{icon:"mng-lnc-meeting-room",measure:""},Pool:{icon:"mng-lnc-pool",measure:""},Approach:{icon:"mng-lnc-driveway",measure:""},NumberOfBeds:{icon:"mng-lnc-bed",measure:""},Kitchen:{icon:"mng-lnc-fridge",measure:""},BathroomToilet:{icon:"mng-lnc-bath",measure:""},default:{icon:" mng-lnc-clock--filled",measure:""}},Oe=a.forwardRef((c,f)=>{const{uuid:d,sellerUuid:x,name:b,price:P=0,sellingPrice:j,currency:_,isNegotiable:$,isFree:S,imageUrl:Y,location:K,sponsored:Z,imageComponent:O,onSelectCard:H=()=>{},freeText:J="Free",negotiableText:Q="Negotiable",tags:n=[],categoryCode:E,condition:B,quantity:z,trade:F,sponsoredText:ee,forCart:re,forOrder:oe,contactSeller:ne,hasVariants:te,onBookmark:T=()=>{},bookmarkComponent:y,bookmarked:M,bookmarkLists:se,metadata:v,sellerName:q}=c,V=ye.useDetectMobile(),ie=()=>{var m;if(!t.isDefined(y))return e.jsx(e.Fragment,{});const r=y,o=(m=y==null?void 0:y.props)==null?void 0:m.children,l=a.cloneElement(o,{key:`bookmark_pr__${M}`,bookmarked:M,productUuid:d,onAddToBookmark:()=>T(!0,d),onRemoveFromBookmark:()=>T(!1,d),bookmarkedUuidList:se,sellerUuid:x,handleBookmarking:T,forCart:re,forOrder:oe,contactSeller:ne,hasVariants:te});return a.cloneElement(r,void 0,l)},W=[Ce,Ne,Pe,$e,Se,Ee,Te,Ve].some(r=>E==null?void 0:E.includes(r)),[ae,I]=a.useState(!1),ce=()=>{I(!0)},le=()=>{I(!1)},i=a.useRef(null),g=a.useRef([]),[de,R]=a.useState(n==null?void 0:n.length),me=()=>{var m,w,k;if(!(i!=null&&i.current)||((m=g==null?void 0:g.current)==null?void 0:m.length)===0)return;if(V){R(n==null?void 0:n.length);return}const r=(w=i==null?void 0:i.current)==null?void 0:w.offsetWidth;let o=0,l=0;for(let p=0;p<(n==null?void 0:n.length);p++){const h=((k=g==null?void 0:g.current[p])==null?void 0:k.offsetWidth)||0,u=o+h+4;if(u<=r)o+=u,l++;else break}R(l)};a.useEffect(()=>{const r=i==null?void 0:i.current;if(!r)return;const o=new ResizeObserver(()=>{me()});return o.observe(r),()=>{o.disconnect()}},[n,V]);const pe=()=>{var r;return e.jsx("div",{className:"tags-popover__trigger",children:(r=n==null?void 0:n.slice(0,de))==null?void 0:r.map((o,l)=>{var h,u,G,A,U;const m=((h=s==null?void 0:s[o==null?void 0:o.code])==null?void 0:h.icon)??((u=s==null?void 0:s.default)==null?void 0:u.icon)??"",w=((G=o==null?void 0:o.measurementUnit)==null?void 0:G.symbol)??((A=s==null?void 0:s[o==null?void 0:o.code])==null?void 0:A.measure)??"",p=[(o==null?void 0:o.value)??((U=o==null?void 0:o.multiOptions)==null?void 0:U[0])??"",w].filter(Boolean).join(" ");return e.jsxs(C,{ref:he=>g.current[l]=he,className:"tag",children:[e.jsx("i",{className:m}),p]},`detailed-products-section-tag__${l+1}`)})})},ue=()=>e.jsx("div",{className:"tags-popover__content",children:n==null?void 0:n.map((r,o)=>{var p,h,u;const l=((p=r==null?void 0:r.measurementUnit)==null?void 0:p.symbol)??((h=s==null?void 0:s[r==null?void 0:r.code])==null?void 0:h.measure)??"",w=[(r==null?void 0:r.value)??((u=r==null?void 0:r.multiOptions)==null?void 0:u[0])??"",l].filter(Boolean).join(" "),k=r==null?void 0:r.name;return e.jsxs("div",{children:[e.jsx("span",{className:"tags-popover__name",children:`${k}: `}),e.jsx("span",{className:"tags-popover__value",children:w})]},`detailed-products-section-tag-dropdown__${o+1}`)})}),ge=()=>e.jsxs(e.Fragment,{children:[B&&e.jsx(C,{className:"tag",children:B},"detailed-products-section-tag__condition"),z&&e.jsx(C,{className:"tag",children:z},"detailed-products-section-tag__quantity"),F&&e.jsx(C,{className:"tag",children:F},"detailed-products-section-tag__trade")]}),D=P>0&&_&&$!==!0&&S!==!0&&P!==j;return e.jsxs(L,{ref:i,className:"product-card","data-accessor":v==null?void 0:v.accessor,name:v==null?void 0:v.name,onClick:r=>H(r,i),children:[e.jsxs(ke,{className:"product-image-wrapper",children:[e.jsx(ie,{}),t.isDefined(O)?O:e.jsx(fe.ProductImageWrapper,{src:Y})]}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"seller",title:q,children:q}),e.jsx("div",{className:"card-title",children:b})]}),e.jsxs("div",{className:"wrapper-card-3",children:[W&&e.jsx("div",{...V?{}:{onMouseEnter:ce,onMouseLeave:le},children:e.jsxs(ve,{placement:"bottom",open:ae,children:[e.jsx(we,{children:pe()}),e.jsx(be,{style:{all:"unset"},children:e.jsx(xe,{children:ue()})})]})}),!W&&ge()]}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:`price-text ${D?"new-price":""}`,children:[j>0&&_&&$!==!0&&S!==!0&&e.jsx("div",{children:`${t.formatPrice(j)} ${t.GetCurrencySymbol(_)}`}),D&&e.jsx("div",{className:`${j>0?"full-price":""}`,children:`${t.formatPrice(P)} ${t.GetCurrencySymbol(_)}`}),$&&Q,S&&J]}),e.jsx("div",{className:"location-text",children:K})]}),Z===!0&&e.jsx(_e,{sponsoredText:ee})]})}),Be=a.forwardRef(({},c)=>e.jsxs(L,{className:"product-card",children:[e.jsx("img",{className:"skeleton-img"}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"skeleton-title"}),e.jsx("div",{className:"skeleton-tags"})]}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"skeleton-price"}),e.jsx("div",{className:"skeleton-sponsored"})]})]})),ze=({limit:c=5,isLoading:f=!1,keyPrefix:d})=>e.jsx(e.Fragment,{children:Array.from({length:c},(x,b)=>e.jsx(Be,{isLoading:f},`${d}-skeleton-product-card-${b}`))}),Fe=({children:c,fallbackComponent:f=e.jsx(e.Fragment,{}),isLoading:d=!1,limit:x,keyPrefix:b})=>e.jsx(a.Suspense,{fallbackComponent:f,children:d===!0?e.jsx(ze,{isLoading:d,limit:x,keyPrefix:b}):c});exports.DetailedProductCard=Oe;exports.SuspenseDetailedProductCard=Fe;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),u=require("react"),c=require("./index-DicTpiG0.cjs"),d=u.forwardRef((r,t)=>e.jsx(c.SkeletonWrapper,{})),l=({limit:r=6,isLoading:t=!1,keyPrefix:s})=>e.jsx(e.Fragment,{children:Array.from({length:r},(o,n)=>e.jsx(d,{isLoading:t},`${s}-skeleton-product-card-${n}`))}),a=({children:r,fallbackComponent:t=e.jsx(e.Fragment,{}),isLoading:s=!1,limit:o,keyPrefix:n})=>e.jsx(u.Suspense,{fallbackComponent:t,children:s===!0?e.jsx(l,{isLoading:s,limit:o,keyPrefix:n}):r});exports.SuspenseSimpleProductCard=a;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as r, Fragment as p } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as a, Suspense as l } from "react";
|
|
3
|
-
import { a as c } from "./index-y6sKgrZC.js";
|
|
4
|
-
const m = a((e, t) => /* @__PURE__ */ r(c, {})), u = ({ limit: e = 6, isLoading: t = !1, keyPrefix: o }) => /* @__PURE__ */ r(p, { children: Array.from({ length: e }, (s, n) => /* @__PURE__ */ r(
|
|
5
|
-
m,
|
|
6
|
-
{
|
|
7
|
-
isLoading: t
|
|
8
|
-
},
|
|
9
|
-
`${o}-skeleton-product-card-${n}`
|
|
10
|
-
)) }), i = ({
|
|
11
|
-
children: e,
|
|
12
|
-
fallbackComponent: t = /* @__PURE__ */ r(p, {}),
|
|
13
|
-
isLoading: o = !1,
|
|
14
|
-
limit: s,
|
|
15
|
-
keyPrefix: n
|
|
16
|
-
}) => /* @__PURE__ */ r(l, { fallbackComponent: t, children: o === !0 ? /* @__PURE__ */ r(
|
|
17
|
-
u,
|
|
18
|
-
{
|
|
19
|
-
isLoading: o,
|
|
20
|
-
limit: s,
|
|
21
|
-
keyPrefix: n
|
|
22
|
-
}
|
|
23
|
-
) : e });
|
|
24
|
-
export {
|
|
25
|
-
i as S
|
|
26
|
-
};
|