@lanaco/lnc-react-ui 4.0.188 → 4.0.189
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/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/index-Coo0aVuh.cjs +362 -0
- package/dist/{index-DdUC0zgY.js → index-PhMLWAC1.js} +301 -215
- package/package.json +1 -1
- package/dist/index-DBokGIps.cjs +0 -308
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),a=require("react"),B=require("./emotion-styled.browser.esm-BtEseadx.cjs"),E=require("./consts-goSZX3xP.cjs"),I=require("./IconButton.cjs"),L=require("./Button.cjs"),n=require("./utils-RnrgDDZP.cjs"),T=require("./useDetectMobile-zkbzoOGV.cjs"),g=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),a=require("react"),B=require("./emotion-styled.browser.esm-BtEseadx.cjs"),E=require("./consts-goSZX3xP.cjs"),I=require("./IconButton.cjs"),L=require("./Button.cjs"),n=require("./utils-RnrgDDZP.cjs"),T=require("./useDetectMobile-zkbzoOGV.cjs"),g=require("./index-Coo0aVuh.cjs"),z=B.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 1.5rem;
|
|
@@ -6,7 +6,7 @@ import U from "./IconButton.js";
|
|
|
6
6
|
import $ from "./Button.js";
|
|
7
7
|
import { k as r } from "./utils-Dc5zIpaz.js";
|
|
8
8
|
import { u as j } from "./useDetectMobile-Bkvj0VMa.js";
|
|
9
|
-
import { D as A, S as F } from "./index-
|
|
9
|
+
import { D as A, S as F } from "./index-PhMLWAC1.js";
|
|
10
10
|
const O = z.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),c=require("react"),E=require("./emotion-styled.browser.esm-BtEseadx.cjs"),F=require("./consts-goSZX3xP.cjs"),B=require("./Button.cjs"),l=require("./utils-RnrgDDZP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),I=require("./style-CkcozOY6.cjs"),P=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),c=require("react"),E=require("./emotion-styled.browser.esm-BtEseadx.cjs"),F=require("./consts-goSZX3xP.cjs"),B=require("./Button.cjs"),l=require("./utils-RnrgDDZP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),I=require("./style-CkcozOY6.cjs"),P=require("./index-Coo0aVuh.cjs"),Q=require("./index-CSNxZFTX.cjs"),_=E.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -6,7 +6,7 @@ import R from "./Button.js";
|
|
|
6
6
|
import { k as m } from "./utils-Dc5zIpaz.js";
|
|
7
7
|
import { u as W } from "./useDetectMobile-Bkvj0VMa.js";
|
|
8
8
|
import { T as $ } from "./style-C7FUSHmS.js";
|
|
9
|
-
import { D as j, S as z } from "./index-
|
|
9
|
+
import { D as j, S as z } from "./index-PhMLWAC1.js";
|
|
10
10
|
import { S as A } from "./index-BGiZlEQt.js";
|
|
11
11
|
const K = Q.div`
|
|
12
12
|
display: grid;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime"),s=require("react"),$=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),T=require("./useDetectMobile-zkbzoOGV.cjs"),F=require("./Button.cjs"),P=require("./index-
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),s=require("react"),$=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),T=require("./useDetectMobile-zkbzoOGV.cjs"),F=require("./Button.cjs"),P=require("./index-Coo0aVuh.cjs"),I=$.styled.div`
|
|
2
2
|
padding: 1.75rem 3rem;
|
|
3
3
|
display: grid;
|
|
4
4
|
grid-template-columns: ${t=>`repeat(${t.limit||5}, minmax(0, 1fr))`};
|
|
@@ -4,7 +4,7 @@ import { s as B } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
|
4
4
|
import { M as D, S as E } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as Q } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
6
|
import j from "./Button.js";
|
|
7
|
-
import { D as z, S as A } from "./index-
|
|
7
|
+
import { D as z, S as A } from "./index-PhMLWAC1.js";
|
|
8
8
|
const G = B.div`
|
|
9
9
|
padding: 1.75rem 3rem;
|
|
10
10
|
display: grid;
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),m=require("react"),k=require("./emotion-styled.browser.esm-BtEseadx.cjs"),V=require("./consts-goSZX3xP.cjs"),a=require("./utils-RnrgDDZP.cjs"),Pe=require("./index-uwl7BjRF.cjs"),L=require("./Badge.cjs"),ye=require("./Popover.cjs"),Re=require("./PopoverTrigger.cjs"),_e=require("./PopoverContent.cjs"),Ne=require("./useDetectMobile-zkbzoOGV.cjs"),Le=require("./Icon.cjs"),o=require("./style-BAcV7F53.cjs"),$e=k.styled.a`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 0.5rem;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
width: 100%;
|
|
8
|
+
text-decoration: none;
|
|
9
|
+
color: var(--gray-950, #14161a);
|
|
10
|
+
position: relative;
|
|
11
|
+
& .seller {
|
|
12
|
+
text-transform: uppercase;
|
|
13
|
+
${a.truncateText()}
|
|
14
|
+
color: var(--gray-500);
|
|
15
|
+
font-size: 0.625rem;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
& .wrapper-card-1 {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 0.12rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
& .wrapper-card-2 {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
& .wrapper-card-3 {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
gap: 0.25rem;
|
|
35
|
+
|
|
36
|
+
& > div {
|
|
37
|
+
& > div {
|
|
38
|
+
width: 100% !important;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
& .tag {
|
|
44
|
+
height: 1.5rem;
|
|
45
|
+
gap: 0.25rem;
|
|
46
|
+
padding: 0.25rem 0.375rem;
|
|
47
|
+
border-radius: 0.375rem;
|
|
48
|
+
background: #f9fafb;
|
|
49
|
+
border: 1px solid var(--gray-95012, #14161a1f);
|
|
50
|
+
font-weight: 400;
|
|
51
|
+
font-size: 0.75rem;
|
|
52
|
+
line-height: 1rem;
|
|
53
|
+
letter-spacing: 0.025rem;
|
|
54
|
+
color: var(--gray-950, #14161a);
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
flex: 0 0 auto;
|
|
57
|
+
|
|
58
|
+
& i {
|
|
59
|
+
color: var(--yellow-500, #f59e0b);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
& .card-title {
|
|
64
|
+
font-size: 0.875rem;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
${a.truncateTextInRows(2)}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& .price-text {
|
|
70
|
+
font-size: 1rem;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
${a.truncateText()}
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: end;
|
|
75
|
+
gap: 0.5rem;
|
|
76
|
+
color: var(--gray-950, #14161a);
|
|
77
|
+
|
|
78
|
+
&.new-price {
|
|
79
|
+
color: var(--danger-600, #e11d48);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
& .full-price {
|
|
83
|
+
text-decoration: line-through;
|
|
84
|
+
font-size: 0.75rem;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
padding-bottom: 0.125rem;
|
|
87
|
+
color: var(--gray-600, #676e79);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
& .location-text {
|
|
92
|
+
font-size: 0.75rem;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
color: var(--gray-600, #676e79);
|
|
95
|
+
${a.truncateText()}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
& .tags-wrapper {
|
|
99
|
+
display: flex;
|
|
100
|
+
gap: 0.5rem;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
& .tags-popover__trigger {
|
|
104
|
+
display: flex;
|
|
105
|
+
gap: 0.25rem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
& .campaign-badges {
|
|
109
|
+
position: absolute;
|
|
110
|
+
top: 0.5rem;
|
|
111
|
+
left: 0.75rem;
|
|
112
|
+
display: flex;
|
|
113
|
+
gap: 0.25rem;
|
|
114
|
+
flex-wrap: wrap;
|
|
115
|
+
justify-content: flex-start;
|
|
116
|
+
z-index: 1;
|
|
117
|
+
width: max-content;
|
|
118
|
+
max-width: 7rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
& .campaign-badge {
|
|
122
|
+
width: fit-content;
|
|
123
|
+
height: 1.5rem;
|
|
124
|
+
border-radius: 0.25rem;
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
justify-content: center;
|
|
128
|
+
color: white;
|
|
129
|
+
font-size: 1rem;
|
|
130
|
+
padding-inline: 0.15rem;
|
|
131
|
+
|
|
132
|
+
i {
|
|
133
|
+
::before {
|
|
134
|
+
margin-inline: 0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
& .campaign-badge-adddiscount {
|
|
140
|
+
background-color: #f43f5e;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
& .campaign-badge-freeshipping {
|
|
144
|
+
background-color: #1abc86;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
& .campaign-badge-freequantity {
|
|
148
|
+
background-color: #2691d9;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
& .campaign-badge-includegifts {
|
|
152
|
+
background-color: #8b5cf6;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
& .campaign-badge-urgent {
|
|
156
|
+
background-color: #e11d48;
|
|
157
|
+
width: fit-content;
|
|
158
|
+
padding-inline: 0.5rem;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@media (max-width: ${V.MOBILE_SIZE_PX+"px"}) {
|
|
162
|
+
overflow: visible;
|
|
163
|
+
|
|
164
|
+
& .wrapper-card-3 {
|
|
165
|
+
flex-wrap: nowrap;
|
|
166
|
+
justify-content: flex-start;
|
|
167
|
+
overflow-x: scroll;
|
|
168
|
+
width: 8.875rem !important;
|
|
169
|
+
|
|
170
|
+
-webkit-overflow-scrolling: touch;
|
|
171
|
+
::-webkit-scrollbar {
|
|
172
|
+
-webkit-appearance: none;
|
|
173
|
+
}
|
|
174
|
+
-ms-overflow-style: none;
|
|
175
|
+
/* Internet Explorer 10+ */
|
|
176
|
+
scrollbar-width: none;
|
|
177
|
+
/* Firefox */
|
|
178
|
+
|
|
179
|
+
&::-webkit-scrollbar {
|
|
180
|
+
display: none;
|
|
181
|
+
/* Safari and Chrome */
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
& > div {
|
|
185
|
+
& > div {
|
|
186
|
+
width: 8.875rem !important;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
& .tags-popover__trigger {
|
|
192
|
+
overflow-x: scroll;
|
|
193
|
+
justify-content: flex-start;
|
|
194
|
+
width: 100%;
|
|
195
|
+
|
|
196
|
+
-webkit-overflow-scrolling: touch;
|
|
197
|
+
::-webkit-scrollbar {
|
|
198
|
+
-webkit-appearance: none;
|
|
199
|
+
}
|
|
200
|
+
-ms-overflow-style: none;
|
|
201
|
+
/* Internet Explorer 10+ */
|
|
202
|
+
scrollbar-width: none;
|
|
203
|
+
/* Firefox */
|
|
204
|
+
|
|
205
|
+
&::-webkit-scrollbar {
|
|
206
|
+
display: none;
|
|
207
|
+
/* Safari and Chrome */
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
& .price-text {
|
|
212
|
+
font-size: 0.875rem;
|
|
213
|
+
font-weight: 600;
|
|
214
|
+
|
|
215
|
+
& .full-price {
|
|
216
|
+
display: none;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&:hover .product-image-wrapper img {
|
|
222
|
+
transform: scale(1.1);
|
|
223
|
+
}
|
|
224
|
+
`,Ee=k.styled.div`
|
|
225
|
+
position: relative;
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
border-radius: 0.75rem;
|
|
228
|
+
width: 100%;
|
|
229
|
+
aspect-ratio: 1 / 1;
|
|
230
|
+
border: 1px solid #0c15201f;
|
|
231
|
+
|
|
232
|
+
& .bookmarking-btn {
|
|
233
|
+
position: absolute;
|
|
234
|
+
right: 0.5rem;
|
|
235
|
+
top: 0.5rem;
|
|
236
|
+
z-index: 1;
|
|
237
|
+
|
|
238
|
+
display: none;
|
|
239
|
+
|
|
240
|
+
align-items: center;
|
|
241
|
+
justify-content: center;
|
|
242
|
+
|
|
243
|
+
width: 2.25rem;
|
|
244
|
+
height: 2.25rem;
|
|
245
|
+
border-radius: ${i=>a.getBorderRadiusValueWithUnits(i.theme,"curved")};
|
|
246
|
+
border: 1px solid var(--gray-95008);
|
|
247
|
+
background-color: white;
|
|
248
|
+
color: var(--gray-950);
|
|
249
|
+
transition: transform 0.2s ease;
|
|
250
|
+
|
|
251
|
+
&:hover {
|
|
252
|
+
transform: scale(1.05);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
i {
|
|
256
|
+
color: #14161a;
|
|
257
|
+
font-size: 1.1rem;
|
|
258
|
+
line-height: 1;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
&:hover {
|
|
263
|
+
& .bookmarking-btn {
|
|
264
|
+
display: flex;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
& img {
|
|
269
|
+
display: block;
|
|
270
|
+
width: 100%;
|
|
271
|
+
height: 100%;
|
|
272
|
+
object-fit: cover;
|
|
273
|
+
border-radius: 0.75rem;
|
|
274
|
+
transition: var(--transition, all 0.3s ease);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
@media (max-width: ${V.MOBILE_SIZE_PX+"px"}) {
|
|
278
|
+
& img {
|
|
279
|
+
width: 8.875rem;
|
|
280
|
+
height: 8.875rem;
|
|
281
|
+
min-width: 8.875rem;
|
|
282
|
+
min-height: 8.875rem;
|
|
283
|
+
object-fit: cover;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
& .bookmarking-btn {
|
|
287
|
+
display: flex;
|
|
288
|
+
bottom: 0.5rem;
|
|
289
|
+
top: unset;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
`,We=k.styled.div`
|
|
293
|
+
background: var(--white, #fff);
|
|
294
|
+
z-index: 1;
|
|
295
|
+
|
|
296
|
+
border: 1px solid var(--gray-200, #dddfe4);
|
|
297
|
+
border-radius: 0.5rem;
|
|
298
|
+
line-height: 1rem;
|
|
299
|
+
position: absolute;
|
|
300
|
+
padding: 0.5rem 0.75rem;
|
|
301
|
+
top: 0.5rem;
|
|
302
|
+
left: 25%;
|
|
303
|
+
transform: translateX(-50%);
|
|
304
|
+
min-width: 13rem;
|
|
305
|
+
|
|
306
|
+
&::before,
|
|
307
|
+
&::after {
|
|
308
|
+
content: "";
|
|
309
|
+
position: absolute;
|
|
310
|
+
left: 50%;
|
|
311
|
+
transform: translateX(-50%);
|
|
312
|
+
border-style: solid;
|
|
313
|
+
border-width: 0.625rem;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&::after {
|
|
317
|
+
top: -1.1875rem;
|
|
318
|
+
border-color: transparent transparent var(--white, #fff) transparent;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
&::before {
|
|
322
|
+
top: -1.25rem;
|
|
323
|
+
border-color: transparent transparent var(--gray-200, #dddfe4) transparent;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
& .tags-popover__content {
|
|
327
|
+
display: flex;
|
|
328
|
+
flex-wrap: wrap;
|
|
329
|
+
flex-direction: column;
|
|
330
|
+
gap: 0.375rem;
|
|
331
|
+
font-size: 0.75rem;
|
|
332
|
+
font-weight: 400;
|
|
333
|
+
|
|
334
|
+
& .tags-popover__name {
|
|
335
|
+
color: var(--gray-600, #676e79);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
& .tags-popover__value {
|
|
339
|
+
color: var(--gray-950, #14161a);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
`,qe=k.styled.div`
|
|
343
|
+
display: flex;
|
|
344
|
+
align-items: center;
|
|
345
|
+
gap: 0.25rem;
|
|
346
|
+
color: var(--gray-500);
|
|
347
|
+
font-size: 0.75rem;
|
|
348
|
+
font-weight: 500;
|
|
349
|
+
|
|
350
|
+
& i {
|
|
351
|
+
font-size: 1rem;
|
|
352
|
+
color: var(--warning-500, #F59E0B);
|
|
353
|
+
}
|
|
354
|
+
`,Ie=m.forwardRef(({sponsoredText:i="Sponsored"},C)=>e.jsxs(qe,{ref:C,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:i})]})),Oe="Vehicles_Cars",Ve="Vehicles_Motorcycles",ze="Vehicles_Trucks",Be="Vehicles_AgriculturalMachines_Tractors",De="Vehicles_ConstructionMachines",Fe="Vehicles_Bus",Ge="Vehicles_Campers",Ue="RealEstates_",l={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:""}},O={ADDDISCOUNT:" mng-lnc-percentage",URGENT:" mng-lnc-flash",FREEQUANTITY:" mng-lnc-3d-software",INCLUDEGIFTS:" mng-lnc-gift",FREESHIPPING:" mng-lnc-delivery--parcel"},Me=m.forwardRef((i,C)=>{const{uuid:h,sellerUuid:$,name:K,price:P=0,sellingPrice:v,currency:x,isNegotiable:y,isFree:R,imageUrl:Q,location:J,sponsored:ee,imageComponent:z,freeText:re="Free",negotiableText:oe="Negotiable",tags:t=[],categoryCode:_,categoryName:ne,condition:B,quantity:E,trade:D,sponsoredText:te,forCart:ie,forOrder:ae,contactSeller:se,hasVariants:le,hasQuantities:ce,status:de,onBookmark:W=()=>{},actionComponent:j,bookmarked:F,bookmarkLists:me,metadata:b,sellerName:G,nameSlug:N,onSelectCard:he=()=>{},activeSalesPackages:q,urgentText:ue="Urgent",LinkComponent:U}=i,ge=U||"a",I=Ne.useDetectMobile(),pe=()=>{var d;if(!a.isDefined(j))return e.jsx(e.Fragment,{});const r=j,n=(d=j==null?void 0:j.props)==null?void 0:d.children,s=m.cloneElement(n,{key:`bookmark_pr__${F}`,bookmarked:F,productUuid:h,onAddToBookmark:()=>W(!0,h),onRemoveFromBookmark:()=>W(!1,h),bookmarkedUuidList:me,sellerUuid:$,handleBookmarking:W,forCart:ie,forOrder:ae,contactSeller:se,hasVariants:le,status:de,quantity:E,hasQuantities:ce,productBasicInfo:{uuid:h,price:P,sellingPrice:v,categoryCode:_,categoryName:ne,currency:x,isNegotiable:y,isFree:R}});return m.cloneElement(r,void 0,s)},M=[Oe,Ve,ze,Be,De,Fe,Ge,Ue].some(r=>_==null?void 0:_.includes(r)),[fe,T]=m.useState(!1),be=()=>{T(!0)},we=()=>{T(!1)},c=m.useRef(null),p=m.useRef([]),[ve,X]=m.useState(t==null?void 0:t.length),xe=()=>{var d,w,S;if(!(c!=null&&c.current)||((d=p==null?void 0:p.current)==null?void 0:d.length)===0)return;if(I){X(t==null?void 0:t.length);return}const r=(w=c==null?void 0:c.current)==null?void 0:w.offsetWidth;let n=0,s=0;for(let u=0;u<(t==null?void 0:t.length);u++){const f=((S=p==null?void 0:p.current[u])==null?void 0:S.offsetWidth)||0,g=n+f+4;if(g<=r)n+=g,s++;else break}X(s)};m.useEffect(()=>{const r=c==null?void 0:c.current;if(!r)return;const n=new ResizeObserver(()=>{xe()});return n.observe(r),()=>{n.disconnect()}},[t,I]);const je=()=>{var r;return e.jsx("div",{className:"tags-popover__trigger",children:(r=t==null?void 0:t.slice(0,ve))==null?void 0:r.map((n,s)=>{var f,g,Y,Z,H;const d=((f=l==null?void 0:l[n==null?void 0:n.code])==null?void 0:f.icon)??((g=l==null?void 0:l.default)==null?void 0:g.icon)??"",w=((Y=n==null?void 0:n.measurementUnit)==null?void 0:Y.symbol)??((Z=l==null?void 0:l[n==null?void 0:n.code])==null?void 0:Z.measure)??"",u=[(n==null?void 0:n.value)??((H=n==null?void 0:n.multiOptions)==null?void 0:H[0])??"",w].filter(Boolean).join(" ");return e.jsxs(L,{ref:Ce=>p.current[s]=Ce,className:"tag",children:[e.jsx("i",{className:d}),u]},`detailed-products-section-tag__${s+1}`)})})},Se=()=>e.jsx("div",{className:"tags-popover__content",children:t==null?void 0:t.map((r,n)=>{var u,f,g;const s=((u=r==null?void 0:r.measurementUnit)==null?void 0:u.symbol)??((f=l==null?void 0:l[r==null?void 0:r.code])==null?void 0:f.measure)??"",w=[(r==null?void 0:r.value)??((g=r==null?void 0:r.multiOptions)==null?void 0:g[0])??"",s].filter(Boolean).join(" "),S=r==null?void 0:r.name;return e.jsxs("div",{children:[e.jsx("span",{className:"tags-popover__name",children:`${S}: `}),e.jsx("span",{className:"tags-popover__value",children:w})]},`detailed-products-section-tag-dropdown__${n+1}`)})}),ke=()=>e.jsxs(e.Fragment,{children:[B&&e.jsx(L,{className:"tag",children:B},"detailed-products-section-tag__condition"),E&&e.jsx(L,{className:"tag",children:E},"detailed-products-section-tag__quantity"),D&&e.jsx(L,{className:"tag",children:D},"detailed-products-section-tag__trade")]}),A=P>0&&x&&y!==!0&&R!==!0&&P!==v;return e.jsxs($e,{ref:c,className:"product-card","data-accessor":b==null?void 0:b.accessor,name:b==null?void 0:b.name,onClick:r=>he(r,c),as:ge,...U?{to:`/product/${a.isDefinedNotEmptyString(N)?`${N}-`:""}${h}`}:{href:`/product/${a.isDefinedNotEmptyString(N)?`${N}-`:""}${h}`},children:[e.jsxs(Ee,{className:"product-image-wrapper",children:[e.jsx("div",{onClick:r=>{r==null||r.preventDefault(),r==null||r.stopPropagation()},children:e.jsx(pe,{})}),a.isDefined(z)?z:e.jsx(Pe.ProductImageWrapper,{src:Q})]}),q&&q.length>0&&e.jsx("div",{className:"campaign-badges",children:q.map((r,n)=>{var s,d;return e.jsxs("div",{className:`campaign-badge campaign-badge-${(s=r==null?void 0:r.salesPackageCode)==null?void 0:s.toLowerCase()}`,children:[(r==null?void 0:r.salesPackageCode)!=="Urgent"&&e.jsx(Le,{icon:O==null?void 0:O[(d=r==null?void 0:r.salesPackageCode)==null?void 0:d.toUpperCase()],sizeInUnits:"1rem"}),(r==null?void 0:r.salesPackageCode)==="Urgent"&&e.jsxs(e.Fragment,{children:[" ",ue]})]},n)})}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"seller",title:G,children:G}),e.jsx("div",{className:"card-title",children:K})]}),e.jsxs("div",{className:"wrapper-card-3",onClick:r=>{r==null||r.preventDefault(),r==null||r.stopPropagation()},children:[M&&e.jsx("div",{...I?{}:{onMouseEnter:be,onMouseLeave:we},children:e.jsxs(ye,{placement:"bottom",open:fe,children:[e.jsx(Re,{children:je()}),e.jsx(_e,{style:{all:"unset"},children:e.jsx(We,{children:Se()})})]})}),!M&&ke()]}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:`price-text ${A?"new-price":""}`,children:[v>0&&x&&y!==!0&&R!==!0&&e.jsx("div",{children:`${a.formatPrice(v)} ${a.GetCurrencySymbol(x)}`}),A&&e.jsx("div",{className:`${v>0?"full-price":""}`,children:`${a.formatPrice(P)} ${a.GetCurrencySymbol(x)}`}),y&&oe,R&&re]}),e.jsx("div",{className:"location-text",children:J})]}),ee===!0&&e.jsx(Ie,{sponsoredText:te})]})}),Te=k.styled(o.SkeletonRowWrapper)`
|
|
355
|
+
@media (max-width: ${V.MOBILE_SIZE_PX+"px"}) {
|
|
356
|
+
& > div {
|
|
357
|
+
&:nth-of-type(even) {
|
|
358
|
+
display: none;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
`,Xe=({keyPrefix:i})=>e.jsxs(Te,{children:[e.jsxs(o.SkeletonColumnWrapper,{gap:"0.5rem",children:[e.jsx(o.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(o.SkeletonColumnWrapper,{height:"1rem",children:e.jsx(o.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),e.jsxs(o.SkeletonRowWrapper,{gap:"0.5rem",children:[e.jsx(o.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(o.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(o.SkeletonColumnWrapper,{height:"2rem",children:e.jsx(o.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${i}-1`),e.jsxs(o.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(o.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(o.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(o.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(o.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(o.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(o.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-2`),e.jsxs(o.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(o.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(o.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(o.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(o.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(o.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(o.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-3`),e.jsxs(o.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(o.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(o.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(o.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(o.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(o.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(o.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-4`),e.jsxs(o.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(o.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(o.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(o.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(o.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(o.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(o.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-5`),e.jsxs(o.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(o.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(o.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(o.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(o.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(o.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(o.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-6`)]}),Ae=({keyPrefix:i,isLoading:C=!1,fallbackComponent:h=e.jsx(e.Fragment,{}),children:$})=>e.jsx(m.Suspense,{fallbackComponent:h,children:C===!0?e.jsx(Xe,{keyPrefix:i}):$});exports.DetailedProductCard=Me;exports.SuspenseDetailedProductCard=Ae;
|