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