@lanaco/lnc-react-ui 4.0.150 → 4.0.152
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/AdBannerSection.cjs +3 -3
- package/dist/AdBannerSection.js +16 -16
- package/dist/BannerSectionBasic.cjs +4 -4
- package/dist/BannerSectionBasic.js +33 -32
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +33 -33
- package/dist/BlogCardsSponsoredSection.cjs +3 -3
- package/dist/BlogCardsSponsoredSection.js +15 -15
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -12
- package/dist/BlogExploreSection.cjs +4 -4
- package/dist/BlogExploreSection.js +30 -30
- package/dist/BlogListSection.cjs +2 -2
- package/dist/BlogListSection.js +28 -28
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +20 -19
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +22 -22
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +24 -24
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{DailyMotion-CPQ6kDJJ.cjs → DailyMotion-BaFUcQKQ.cjs} +1 -1
- package/dist/{DailyMotion-BrbMSyj1.js → DailyMotion-ByXblnua.js} +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +53 -84
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/{Facebook-Dw3my9_4.js → Facebook-BCqiOWZO.js} +1 -1
- package/dist/{Facebook-DKhRiODC.cjs → Facebook-D9wwecSW.cjs} +1 -1
- package/dist/FaqSection.cjs +2 -2
- package/dist/FaqSection.js +2 -2
- package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
- package/dist/FieldOfInterestsMasonrySection.js +65 -48
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +3 -3
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +27 -25
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +40 -32
- package/dist/{FilePlayer-DlCyGLHB.cjs → FilePlayer-DB6jnpeC.cjs} +1 -1
- package/dist/{FilePlayer-Ckx8dmB0.js → FilePlayer-ktaNhf3p.js} +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +9 -9
- package/dist/GeneralWithTagsCardsSection.js +15 -15
- package/dist/{Kaltura-31Xm8S1J.cjs → Kaltura-CCdXLzOa.cjs} +1 -1
- package/dist/{Kaltura-qHdDvnjZ.js → Kaltura-CvlN0HDg.js} +1 -1
- package/dist/LoanCalculatorSection.cjs +2 -2
- package/dist/LoanCalculatorSection.js +89 -88
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/{Mixcloud-DvH0vfg5.js → Mixcloud-Bb8MTclI.js} +1 -1
- package/dist/{Mixcloud-CP9Zq_TX.cjs → Mixcloud-nG_VyBNt.cjs} +1 -1
- package/dist/{Mux-BlblTeid.cjs → Mux-BgB2a8kM.cjs} +1 -1
- package/dist/{Mux--JeF6dPG.js → Mux-DfYpGTiP.js} +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +11 -11
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- package/dist/QuattroCardsSection.cjs +5 -5
- package/dist/QuattroCardsSection.js +7 -7
- package/dist/QuizSection.cjs +7 -7
- package/dist/QuizSection.js +51 -51
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +2 -1
- package/dist/SearchSection-BcbHP6QF.cjs +161 -0
- package/dist/{SearchSection-CsfURtvf.js → SearchSection-DDQ_K98T.js} +52 -52
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/{SoundCloud-1hd9TBSO.cjs → SoundCloud-C86xwUG6.cjs} +1 -1
- package/dist/{SoundCloud-CKaavZky.js → SoundCloud-DG91z39R.js} +1 -1
- package/dist/StatsSection.cjs +5 -5
- package/dist/StatsSection.js +22 -22
- package/dist/{Streamable-DLxq1ZNX.cjs → Streamable-4uAnb3WN.cjs} +1 -1
- package/dist/{Streamable-CZEPghiG.js → Streamable-BAIWLgyD.js} +1 -1
- package/dist/ToggleSection.cjs +3 -3
- package/dist/ToggleSection.js +10 -10
- package/dist/{Twitch-Bb8e342z.cjs → Twitch-CVAj24ti.cjs} +1 -1
- package/dist/{Twitch-BJeGquex.js → Twitch-DfXeW5Xs.js} +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{Vidyard-WNQdOeK1.cjs → Vidyard-DaCcaaH4.cjs} +1 -1
- package/dist/{Vidyard-CuGoX_VE.js → Vidyard-De3pges0.js} +1 -1
- package/dist/{Vimeo-Da2vBv-V.cjs → Vimeo-8wXdCXGs.cjs} +1 -1
- package/dist/{Vimeo-B9eKoxWn.js → Vimeo-N6I2qi_h.js} +1 -1
- package/dist/{Wistia-ZPcGhh1L.cjs → Wistia-BrUzHQoq.cjs} +1 -1
- package/dist/{Wistia-BB50IUif.js → Wistia-dlV6n6tO.js} +1 -1
- package/dist/{YouTube-4RMnpdLL.cjs → YouTube-Cfsj4ZaP.cjs} +1 -1
- package/dist/{YouTube-CG6JL2_w.js → YouTube-DNJxWqRm.js} +1 -1
- package/dist/{index-DzYKmmn2.js → index-BGY3PSA-.js} +18 -18
- package/dist/{index-Djw_s9eq.js → index-C0SKNFzP.js} +15 -15
- package/dist/{index-cd9auaNr.cjs → index-CLoINIGC.cjs} +3 -3
- package/dist/{index-GxCvHDwv.cjs → index-ELUMKl0N.cjs} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{suspense-categories-card-simple-DuKEj9IU.js → suspense-categories-card-simple-BGj475Ca.js} +11 -10
- package/dist/{suspense-categories-card-simple-DaA0JGJJ.cjs → suspense-categories-card-simple-CjGtzfzp.cjs} +1 -1
- package/dist/suspense-product-card-detailed-BJ-HBkBc.js +577 -0
- package/dist/suspense-product-card-detailed-wPRUytSf.cjs +263 -0
- package/dist/{suspense-product-card-simple-D2m3NcrV.js → suspense-product-card-simple-CLJjab5B.js} +1 -1
- package/dist/{suspense-product-card-simple-BWxWMag0.cjs → suspense-product-card-simple-CrqjSxHI.cjs} +1 -1
- package/dist/{tag-CtleOqEC.js → tag-cRMfP-SZ.js} +9 -9
- package/dist/{tag-Bov1gw34.cjs → tag-yputMSpE.cjs} +4 -4
- package/package.json +1 -1
- package/dist/SearchSection-BGK1Fxaj.cjs +0 -161
- package/dist/suspense-product-card-detailed-C-ZCjG5p.js +0 -538
- package/dist/suspense-product-card-detailed-FuxsUusc.cjs +0 -260
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),m=require("react"),o=require("./utils-Dl9xPH4c.cjs"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),oe=require("./index-BueKsXT8.cjs"),k=require("./Badge.cjs"),ne=require("./Popover.cjs"),te=require("./PopoverTrigger.cjs"),se=require("./PopoverContent.cjs"),ae=require("./useDetectMobile-zkbzoOGV.cjs"),O=require("./consts-goSZX3xP.cjs"),D=_.styled.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 0.5rem;
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
width: 100%;
|
|
8
|
-
|
|
9
|
-
& .wrapper-card-1 {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
gap: 0.38rem;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
& .wrapper-card-2 {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
gap: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
& .wrapper-card-3 {
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-wrap: wrap;
|
|
24
|
-
gap: 0.25rem;
|
|
25
|
-
|
|
26
|
-
& > div {
|
|
27
|
-
& > div {
|
|
28
|
-
width: 100% !important;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
& .tag {
|
|
34
|
-
height: 1.5rem;
|
|
35
|
-
gap: 0.25rem;
|
|
36
|
-
padding: 0.25rem 0.375rem;
|
|
37
|
-
border-radius: 0.375rem;
|
|
38
|
-
background: #f9fafb;
|
|
39
|
-
border: 1px solid var(--gray-95012, #14161a1f);
|
|
40
|
-
font-weight: 400;
|
|
41
|
-
font-size: 0.75rem;
|
|
42
|
-
line-height: 1rem;
|
|
43
|
-
letter-spacing: 0.025rem;
|
|
44
|
-
color: var(--gray-950, #14161a);
|
|
45
|
-
white-space: nowrap;
|
|
46
|
-
flex: 0 0 auto;
|
|
47
|
-
|
|
48
|
-
& i {
|
|
49
|
-
color: var(--yellow-500, #f59e0b);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
& .tag-mobile {
|
|
54
|
-
font-weight: 400;
|
|
55
|
-
font-size: 0.75rem;
|
|
56
|
-
line-height: 1rem;
|
|
57
|
-
letter-spacing: 0.025rem;
|
|
58
|
-
color: var(--gray-600, #676e79);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
& .card-title {
|
|
62
|
-
font-size: 0.875rem;
|
|
63
|
-
font-weight: 600;
|
|
64
|
-
${o.truncateTextInRows(2)}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
& .price-text {
|
|
68
|
-
font-size: 1rem;
|
|
69
|
-
font-weight: 600;
|
|
70
|
-
${o.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
|
-
${o.truncateText()}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
& .tags-wrapper {
|
|
97
|
-
display: flex;
|
|
98
|
-
gap: 0.5rem;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
& .skeleton-img {
|
|
102
|
-
background-color: ${o.linearGradientAnimation("-90deg")};
|
|
103
|
-
border-radius: 0.75rem;
|
|
104
|
-
border: 1px solid white;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
& .skeleton-title {
|
|
108
|
-
background-color: ${o.linearGradientAnimation("-90deg")};
|
|
109
|
-
width: 100%;
|
|
110
|
-
height: 2.5rem;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
& .skeleton-tags {
|
|
114
|
-
background-color: ${o.linearGradientAnimation("-90deg")};
|
|
115
|
-
width: 80%;
|
|
116
|
-
height: 1.5rem;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
& .skeleton-price {
|
|
120
|
-
background-color: ${o.linearGradientAnimation("-90deg")};
|
|
121
|
-
width: 50%;
|
|
122
|
-
height: 2.5rem;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
& .skeleton-sponsored {
|
|
126
|
-
background-color: ${o.linearGradientAnimation("-90deg")};
|
|
127
|
-
width: 50%;
|
|
128
|
-
height: 1rem;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
& .tags-popover__trigger {
|
|
132
|
-
display: flex;
|
|
133
|
-
flex-wrap: wrap;
|
|
134
|
-
gap: 0.25rem;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
@media (max-width: ${O.MOBILE_SIZE_PX+"px"}) {
|
|
138
|
-
overflow: visible;
|
|
139
|
-
|
|
140
|
-
& .price-text {
|
|
141
|
-
font-size: 0.875rem;
|
|
142
|
-
font-weight: 600;
|
|
143
|
-
|
|
144
|
-
& .full-price {
|
|
145
|
-
display: none;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&:hover .product-image-wrapper img {
|
|
151
|
-
transform: scale(1.1);
|
|
152
|
-
}
|
|
153
|
-
`,ie=_.styled.div`
|
|
154
|
-
position: relative;
|
|
155
|
-
overflow: hidden;
|
|
156
|
-
border-radius: 0.75rem;
|
|
157
|
-
width: 100%;
|
|
158
|
-
aspect-ratio: 1 / 1;
|
|
159
|
-
border: 1px solid #0c15201f;
|
|
160
|
-
|
|
161
|
-
& .bookmarking-btn {
|
|
162
|
-
position: absolute;
|
|
163
|
-
right: 0.5rem;
|
|
164
|
-
top: 0.5rem;
|
|
165
|
-
z-index: 1;
|
|
166
|
-
|
|
167
|
-
display: none;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
&:hover {
|
|
171
|
-
& .bookmarking-btn {
|
|
172
|
-
display: flex;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
& img {
|
|
177
|
-
display: block;
|
|
178
|
-
width: 100%;
|
|
179
|
-
height: 100%;
|
|
180
|
-
object-fit: cover;
|
|
181
|
-
border-radius: 0.75rem;
|
|
182
|
-
transition: var(--transition, all 0.3s ease);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
@media (max-width: ${O.MOBILE_SIZE_PX+"px"}) {
|
|
186
|
-
& img {
|
|
187
|
-
width: 8.875rem;
|
|
188
|
-
height: 8.875rem;
|
|
189
|
-
min-width: 8.875rem;
|
|
190
|
-
min-height: 8.875rem;
|
|
191
|
-
object-fit: cover;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
& .bookmarking-btn {
|
|
195
|
-
display: flex;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
`,ce=_.styled.div`
|
|
199
|
-
background: var(--white, #fff);
|
|
200
|
-
z-index: 1;
|
|
201
|
-
|
|
202
|
-
border: 1px solid var(--gray-200, #dddfe4);
|
|
203
|
-
border-radius: 0.5rem;
|
|
204
|
-
line-height: 1rem;
|
|
205
|
-
position: absolute;
|
|
206
|
-
padding: 0.5rem 0.75rem;
|
|
207
|
-
top: 0.5rem;
|
|
208
|
-
left: 25%;
|
|
209
|
-
transform: translateX(-50%);
|
|
210
|
-
min-width: 13rem;
|
|
211
|
-
|
|
212
|
-
&::before,
|
|
213
|
-
&::after {
|
|
214
|
-
content: "";
|
|
215
|
-
position: absolute;
|
|
216
|
-
left: 50%;
|
|
217
|
-
transform: translateX(-50%);
|
|
218
|
-
border-style: solid;
|
|
219
|
-
border-width: 0.625rem;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
&::after {
|
|
223
|
-
top: -1.1875rem;
|
|
224
|
-
border-color: transparent transparent var(--white, #fff) transparent;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
&::before {
|
|
228
|
-
top: -1.25rem;
|
|
229
|
-
border-color: transparent transparent var(--gray-200, #dddfe4) transparent;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
& .tags-popover__content {
|
|
233
|
-
display: flex;
|
|
234
|
-
flex-wrap: wrap;
|
|
235
|
-
flex-direction: column;
|
|
236
|
-
gap: 0.375rem;
|
|
237
|
-
font-size: 0.75rem;
|
|
238
|
-
font-weight: 400;
|
|
239
|
-
|
|
240
|
-
& .tags-popover__name {
|
|
241
|
-
color: var(--gray-600, #676e79);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
& .tags-popover__value {
|
|
245
|
-
color: var(--gray-950, #14161a);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
`,le=_.styled.div`
|
|
249
|
-
display: flex;
|
|
250
|
-
align-items: center;
|
|
251
|
-
gap: 0.25rem;
|
|
252
|
-
color: var(--gray-500);
|
|
253
|
-
font-size: 0.75rem;
|
|
254
|
-
font-weight: 500;
|
|
255
|
-
|
|
256
|
-
& i {
|
|
257
|
-
font-size: 1rem;
|
|
258
|
-
color: var(--warning-500, #F59E0B);
|
|
259
|
-
}
|
|
260
|
-
`,de=m.forwardRef(({sponsoredText:i="Sponsored"},p)=>e.jsxs(le,{ref:p,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:i})]})),me="Vehicles_Cars",pe="Vehicles_Motorcycles",ge="Vehicles_Trucks",ue="Vehicles_AgriculturalMachines_Tractors",he="Vehicles_ConstructionMachines",fe="Vehicles_Bus",ve="Vehicles_Campers",we="RealEstates_",n={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:""}},ye=m.forwardRef((i,p)=>{const{uuid:c,name:w,price:l=0,sellingPrice:y,currency:b,isNegotiable:x,isFree:C,imageUrl:I,location:G,sponsored:A,imageComponent:B,onSelectCard:W=()=>{},freeText:X="Free",negotiableText:L="Negotiable",tags:s=[],categoryCode:N,condition:P,quantity:$,trade:E,sponsoredText:U,onBookmark:R=()=>{},bookmarkComponent:u,bookmarked:T,bookmarkLists:Y}=i,S=ae.useDetectMobile(),K=()=>{var d;if(!o.isDefined(u))return e.jsx(e.Fragment,{});const r=u,t=(d=u==null?void 0:u.props)==null?void 0:d.children,a=m.cloneElement(t,{key:`bookmark_pr__${T}`,bookmarked:T,productUuid:c,onAddToBookmark:()=>R(!0,c),onRemoveFromBookmark:()=>R(!1,c),bookmarkedUuidList:Y});return m.cloneElement(r,void 0,a)},V=[me,pe,ge,ue,he,fe,ve,we].some(r=>N==null?void 0:N.includes(r)),[Z,M]=m.useState(!1),H=()=>{M(!0)},J=()=>{M(!1)},Q=()=>e.jsx("div",{className:"tags-popover__trigger",children:s==null?void 0:s.map((r,t)=>{var h,f,v,F,z;const a=((h=n==null?void 0:n[r==null?void 0:r.code])==null?void 0:h.icon)??((f=n==null?void 0:n.default)==null?void 0:f.icon)??"",d=((v=r==null?void 0:r.measurementUnit)==null?void 0:v.symbol)??((F=n==null?void 0:n[r==null?void 0:r.code])==null?void 0:F.measure)??"",j=[(r==null?void 0:r.value)??((z=r==null?void 0:r.multiOptions)==null?void 0:z[0])??"",d].filter(Boolean).join(" ");return S?e.jsxs("div",{className:"tag-mobile",children:[j,t<(s==null?void 0:s.length)-1?" · ":""]}):e.jsxs(k,{className:"tag",children:[e.jsx("i",{className:a}),j]},`detailed-products-section-tag__${t+1}`)})}),ee=()=>e.jsx("div",{className:"tags-popover__content",children:s==null?void 0:s.map((r,t)=>{var h,f,v;const a=((h=r==null?void 0:r.measurementUnit)==null?void 0:h.symbol)??((f=n==null?void 0:n[r==null?void 0:r.code])==null?void 0:f.measure)??"",g=[(r==null?void 0:r.value)??((v=r==null?void 0:r.multiOptions)==null?void 0:v[0])??"",a].filter(Boolean).join(" "),j=r==null?void 0:r.name;return e.jsxs("div",{children:[e.jsx("span",{className:"tags-popover__name",children:`${j}: `}),e.jsx("span",{className:"tags-popover__value",children:g})]},`detailed-products-section-tag-dropdown__${t+1}`)})}),re=()=>{var r;if(S){const t=[P,$,E];return(r=t==null?void 0:t.filter(a=>o.isDefinedNotEmptyString(a)))==null?void 0:r.map((a,d,g)=>e.jsxs("div",{className:"tag-mobile",children:[a,d<(g==null?void 0:g.length)-1?" · ":""]}))}return e.jsxs(e.Fragment,{children:[P&&e.jsx(k,{className:"tag",children:P},"detailed-products-section-tag__condition"),$&&e.jsx(k,{className:"tag",children:$},"detailed-products-section-tag__quantity"),E&&e.jsx(k,{className:"tag",children:E},"detailed-products-section-tag__trade")]})},q=l>0&&b&&x!==!0&&C!==!0&&l!==y;return e.jsxs(D,{className:"product-card",onClick:W,children:[e.jsxs(ie,{className:"product-image-wrapper",children:[e.jsx(K,{}),o.isDefined(B)?B:e.jsx(oe.ProductImageWrapper,{src:I})]}),e.jsx("div",{className:"wrapper-card-1",children:e.jsx("div",{className:"card-title",children:w})}),e.jsxs("div",{className:"wrapper-card-3",children:[V&&e.jsx("div",{...S?{}:{onMouseEnter:H,onMouseLeave:J},children:e.jsxs(ne,{placement:"bottom",open:Z,children:[e.jsx(te,{children:Q()}),e.jsx(se,{style:{all:"unset"},children:e.jsx(ce,{children:ee()})})]})}),!V&&re()]}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:`price-text ${q?"new-price":""}`,children:[y>0&&b&&x!==!0&&C!==!0&&e.jsx("div",{children:`${o.formatPrice(y)} ${o.GetCurrencySymbol(b)}`}),q&&e.jsx("div",{className:`${y>0?"full-price":""}`,children:`${o.formatPrice(l)} ${o.GetCurrencySymbol(b)}`}),x&&L,C&&X]}),e.jsx("div",{className:"location-text",children:G})]}),A===!0&&e.jsx(de,{sponsoredText:U})]})}),be=m.forwardRef(({},i)=>e.jsxs(D,{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"})]})]})),je=({limit:i=5,isLoading:p=!1,keyPrefix:c})=>e.jsx(e.Fragment,{children:Array.from({length:i},(w,l)=>e.jsx(be,{isLoading:p},`${c}-skeleton-product-card-${l}`))}),ke=({children:i,fallbackComponent:p=e.jsx(e.Fragment,{}),isLoading:c=!1,limit:w,keyPrefix:l})=>e.jsx(m.Suspense,{fallbackComponent:p,children:c===!0?e.jsx(je,{isLoading:c,limit:w,keyPrefix:l}):i});exports.DetailedProductCard=ye;exports.SuspenseDetailedProductCard=ke;
|