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