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