@lanaco/lnc-react-ui 4.0.226 → 4.0.228

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 (267) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +1 -1
  3. package/dist/AccordionSummary.cjs +1 -1
  4. package/dist/AccordionSummary.js +1 -1
  5. package/dist/ActionsToolbar.cjs +1 -1
  6. package/dist/ActionsToolbar.js +1 -1
  7. package/dist/Alert.cjs +1 -1
  8. package/dist/Alert.js +1 -1
  9. package/dist/Avatar.cjs +1 -1
  10. package/dist/Avatar.js +1 -1
  11. package/dist/Badge.cjs +1 -1
  12. package/dist/Badge.js +1 -1
  13. package/dist/BannerNextSection.cjs +1 -1
  14. package/dist/BannerNextSection.js +1 -1
  15. package/dist/BannerSectionCarousel.cjs +3 -3
  16. package/dist/BannerSectionCarousel.js +19 -12
  17. package/dist/BannerSectionSimple.cjs +1 -1
  18. package/dist/BannerSectionSimple.js +1 -1
  19. package/dist/BannerSectionWithList.cjs +1 -1
  20. package/dist/BannerSectionWithList.js +1 -1
  21. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  22. package/dist/BlogCardsSponsoredSection.js +4 -4
  23. package/dist/BlogCategoryCardsSection.cjs +1 -1
  24. package/dist/BlogCategoryCardsSection.js +1 -1
  25. package/dist/BlogExploreSection.cjs +1 -1
  26. package/dist/BlogExploreSection.js +2 -2
  27. package/dist/BlogListSection.cjs +7 -7
  28. package/dist/BlogListSection.js +157 -207
  29. package/dist/BlogProductCardsSection.cjs +1 -1
  30. package/dist/BlogProductCardsSection.js +1 -1
  31. package/dist/BlogShopCardsSection.cjs +1 -1
  32. package/dist/BlogShopCardsSection.js +1 -1
  33. package/dist/BlogSingleSection.cjs +2 -11
  34. package/dist/BlogSingleSection.js +20 -36
  35. package/dist/BlogsSectionDetailed.cjs +1 -1
  36. package/dist/BlogsSectionDetailed.js +4 -4
  37. package/dist/BlogsSectionLarge.cjs +8 -16
  38. package/dist/BlogsSectionLarge.js +41 -59
  39. package/dist/BlogsSectionSimple.cjs +1 -1
  40. package/dist/BlogsSectionSimple.js +4 -4
  41. package/dist/BlogsSectionSimpleCentered.cjs +12 -25
  42. package/dist/BlogsSectionSimpleCentered.js +64 -98
  43. package/dist/BlogsSectionWithFilters.cjs +10 -21
  44. package/dist/BlogsSectionWithFilters.js +106 -154
  45. package/dist/BrandHitsSection.cjs +7 -7
  46. package/dist/BrandHitsSection.js +41 -87
  47. package/dist/Breadcrumbs.cjs +1 -1
  48. package/dist/Breadcrumbs.js +1 -1
  49. package/dist/Button.cjs +1 -1
  50. package/dist/Button.js +1 -1
  51. package/dist/ButtonGroup.cjs +1 -1
  52. package/dist/ButtonGroup.js +1 -1
  53. package/dist/CalorieCalculatorSection.cjs +1 -1
  54. package/dist/CalorieCalculatorSection.js +1 -1
  55. package/dist/{CategorySimpleCard-TJRJ_2Sb.js → CategorySimpleCard-BE6F0PFT.js} +1 -1
  56. package/dist/{CategorySimpleCard-lIdzBNDa.cjs → CategorySimpleCard-Dr1FxIY9.cjs} +1 -1
  57. package/dist/CheckBoxInput.cjs +1 -1
  58. package/dist/CheckBoxInput.js +1 -1
  59. package/dist/Chip.cjs +1 -1
  60. package/dist/Chip.js +1 -1
  61. package/dist/ColorInput.cjs +1 -1
  62. package/dist/ColorInput.js +1 -1
  63. package/dist/ConfirmationForm.cjs +1 -1
  64. package/dist/ConfirmationForm.js +1 -1
  65. package/dist/CustomLoanMapSection.cjs +1 -1
  66. package/dist/CustomLoanMapSection.js +1 -1
  67. package/dist/{CustomStyles-B6uutenq.js → CustomStyles-YyM49BGx.js} +1 -1
  68. package/dist/{CustomStyles-dJQPJ4s4.cjs → CustomStyles-lzAjVMnI.cjs} +1 -1
  69. package/dist/DateInput.cjs +1 -1
  70. package/dist/DateInput.js +1 -1
  71. package/dist/DecimalInput.cjs +1 -1
  72. package/dist/DecimalInput.js +1 -1
  73. package/dist/DecimalInputV2.cjs +1 -1
  74. package/dist/DecimalInputV2.js +1 -1
  75. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  76. package/dist/DetailedProductsInfinitiveSection.js +4 -4
  77. package/dist/DetailedProductsSection.cjs +1 -1
  78. package/dist/DetailedProductsSection.js +5 -5
  79. package/dist/DetailsView.cjs +1 -1
  80. package/dist/DetailsView.js +1 -1
  81. package/dist/DoubleRangeSlider.cjs +1 -1
  82. package/dist/DoubleRangeSlider.js +1 -1
  83. package/dist/DragAndDropFile.cjs +1 -1
  84. package/dist/DragAndDropFile.js +1 -1
  85. package/dist/DragDropFiles.cjs +1 -1
  86. package/dist/DragDropFiles.js +1 -1
  87. package/dist/Drawer.cjs +1 -1
  88. package/dist/Drawer.js +1 -1
  89. package/dist/Dropdown.cjs +1 -1
  90. package/dist/Dropdown.js +2 -2
  91. package/dist/DropdownItem.cjs +1 -1
  92. package/dist/DropdownItem.js +1 -1
  93. package/dist/DropdownLookup.cjs +1 -1
  94. package/dist/DropdownLookup.js +1 -1
  95. package/dist/DropdownMenu.cjs +1 -1
  96. package/dist/DropdownMenu.js +1 -1
  97. package/dist/EditableTable.cjs +1 -1
  98. package/dist/EditableTable.js +1 -1
  99. package/dist/FeedbackSection.cjs +1 -1
  100. package/dist/FeedbackSection.js +1 -1
  101. package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
  102. package/dist/FieldOfInterestsMasonrySection.js +105 -159
  103. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
  104. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
  105. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  106. package/dist/FieldOfInterestsWithTagsCardsSection.js +2 -2
  107. package/dist/FileInput.cjs +1 -1
  108. package/dist/FileInput.js +1 -1
  109. package/dist/FlexGridItem.cjs +1 -1
  110. package/dist/FlexGridItem.js +1 -1
  111. package/dist/FormField.cjs +1 -1
  112. package/dist/FormField.js +1 -1
  113. package/dist/FormView.cjs +1 -1
  114. package/dist/FormView.js +1 -1
  115. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  116. package/dist/GeneralWithTagsCardsSection.js +2 -2
  117. package/dist/GiftCardsSection.cjs +10 -14
  118. package/dist/GiftCardsSection.js +77 -147
  119. package/dist/Icon.cjs +1 -1
  120. package/dist/Icon.js +1 -1
  121. package/dist/IconButton.cjs +1 -1
  122. package/dist/IconButton.js +1 -1
  123. package/dist/Kanban.cjs +1 -1
  124. package/dist/Kanban.js +1 -1
  125. package/dist/KanbanActionsToolbar.cjs +1 -1
  126. package/dist/KanbanActionsToolbar.js +1 -1
  127. package/dist/KanbanView.cjs +1 -1
  128. package/dist/KanbanView.js +1 -1
  129. package/dist/Link.cjs +1 -1
  130. package/dist/Link.js +1 -1
  131. package/dist/LoanCalculatorSection.cjs +1 -1
  132. package/dist/LoanCalculatorSection.js +1 -1
  133. package/dist/LocationFinderSection.cjs +1 -1
  134. package/dist/LocationFinderSection.js +1 -1
  135. package/dist/LocationSearchSection.cjs +1 -1
  136. package/dist/LocationSearchSection.js +1 -1
  137. package/dist/MasonryGeneralCardsSection.cjs +10 -10
  138. package/dist/MasonryGeneralCardsSection.js +45 -44
  139. package/dist/MenuItem.cjs +1 -1
  140. package/dist/MenuItem.js +1 -1
  141. package/dist/Modal.cjs +1 -1
  142. package/dist/Modal.js +1 -1
  143. package/dist/MultiSelectDropdown.cjs +1 -1
  144. package/dist/MultiSelectDropdown.js +1 -1
  145. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  146. package/dist/MultiSelectDropdownLookup.js +1 -1
  147. package/dist/NestedDropdownItem.cjs +1 -1
  148. package/dist/NestedDropdownItem.js +1 -1
  149. package/dist/NestedMenuItem.cjs +1 -1
  150. package/dist/NestedMenuItem.js +1 -1
  151. package/dist/NotificationContainer.cjs +1 -1
  152. package/dist/NotificationContainer.js +1 -1
  153. package/dist/NotificationMessage.cjs +1 -1
  154. package/dist/NotificationMessage.js +1 -1
  155. package/dist/NumberInput.cjs +1 -1
  156. package/dist/NumberInput.js +1 -1
  157. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  158. package/dist/OverlayGeneralCardsSection.js +1 -1
  159. package/dist/PartnerBrandsSection.cjs +1 -1
  160. package/dist/PartnerBrandsSection.js +1 -1
  161. package/dist/PartnerCardsSection.cjs +1 -1
  162. package/dist/PartnerCardsSection.js +1 -1
  163. package/dist/PartnerStatsSection.cjs +1 -1
  164. package/dist/PartnerStatsSection.js +1 -1
  165. package/dist/PasswordInput.cjs +1 -1
  166. package/dist/PasswordInput.js +1 -1
  167. package/dist/PopoverContent.cjs +1 -1
  168. package/dist/PopoverContent.js +1 -1
  169. package/dist/ProductsWithBannerSection.cjs +13 -13
  170. package/dist/ProductsWithBannerSection.js +87 -168
  171. package/dist/ProgressBar.cjs +1 -1
  172. package/dist/ProgressBar.js +1 -1
  173. package/dist/QuattroCardsSection.cjs +1 -1
  174. package/dist/QuattroCardsSection.js +2 -2
  175. package/dist/QuizSection.cjs +1 -1
  176. package/dist/QuizSection.js +1 -1
  177. package/dist/RadioInput.cjs +1 -1
  178. package/dist/RadioInput.js +1 -1
  179. package/dist/RangeSlider.cjs +1 -1
  180. package/dist/RangeSlider.js +1 -1
  181. package/dist/ReviewsSection.cjs +18 -22
  182. package/dist/ReviewsSection.js +101 -163
  183. package/dist/SalesCampaignsSection.cjs +25 -25
  184. package/dist/SalesCampaignsSection.js +267 -306
  185. package/dist/Separator.cjs +1 -1
  186. package/dist/Separator.js +1 -1
  187. package/dist/ShopCardsSection.cjs +6 -19
  188. package/dist/ShopCardsSection.js +56 -102
  189. package/dist/Sidebar.cjs +1 -1
  190. package/dist/Sidebar.js +1 -1
  191. package/dist/SimpleCategoriesSection.cjs +3 -3
  192. package/dist/SimpleCategoriesSection.js +65 -68
  193. package/dist/SimpleProductsSection.cjs +7 -7
  194. package/dist/SimpleProductsSection.js +65 -138
  195. package/dist/Spinner.cjs +1 -1
  196. package/dist/Spinner.js +1 -1
  197. package/dist/StatsSection.cjs +1 -1
  198. package/dist/StatsSection.js +1 -1
  199. package/dist/Surface.cjs +1 -1
  200. package/dist/Surface.js +1 -1
  201. package/dist/SwipeableDrawer.cjs +1 -1
  202. package/dist/SwipeableDrawer.js +1 -1
  203. package/dist/TabItem.cjs +1 -1
  204. package/dist/TabItem.js +1 -1
  205. package/dist/Table.cjs +1 -1
  206. package/dist/Table.js +1 -1
  207. package/dist/TableView.cjs +1 -1
  208. package/dist/TableView.js +1 -1
  209. package/dist/TextAreaInput.cjs +1 -1
  210. package/dist/TextAreaInput.js +1 -1
  211. package/dist/TextInput.cjs +1 -1
  212. package/dist/TextInput.js +1 -1
  213. package/dist/ThemeProvider.cjs +1 -1
  214. package/dist/ThemeProvider.js +1 -1
  215. package/dist/TimeInput.cjs +1 -1
  216. package/dist/TimeInput.js +1 -1
  217. package/dist/Toggle.cjs +1 -1
  218. package/dist/Toggle.js +1 -1
  219. package/dist/TreeMenuSeparator.cjs +1 -1
  220. package/dist/TreeMenuSeparator.js +1 -1
  221. package/dist/UploadedFile.cjs +1 -1
  222. package/dist/UploadedFile.js +1 -1
  223. package/dist/UrgentSaleProductsSection.cjs +1 -1
  224. package/dist/UrgentSaleProductsSection.js +1 -1
  225. package/dist/index-B7fBsitY.js +45 -0
  226. package/dist/{index-BkztbBWe.cjs → index-B96icAp4.cjs} +1 -1
  227. package/dist/index-BMAvJQBG.cjs +9 -0
  228. package/dist/index-BUdvfHpp.cjs +5 -0
  229. package/dist/{index-tdg_Vmed.cjs → index-BXkL0HmX.cjs} +1 -1
  230. package/dist/index-C6amCwRZ.js +25 -0
  231. package/dist/index-C8R9lsWG.cjs +1 -0
  232. package/dist/{index-Djo0ZcRE.js → index-CCwfh-7A.js} +1 -1
  233. package/dist/{index-jGcy-5M_.js → index-CNUuIL97.js} +2 -2
  234. package/dist/index-CeQvy566.cjs +11 -0
  235. package/dist/{index-DsINTjQk.cjs → index-ChHUGfjn.cjs} +1 -1
  236. package/dist/index-Cyt4EUZ6.js +20 -0
  237. package/dist/{index-DEypPQRI.js → index-D6_3Q8lN.js} +1 -1
  238. package/dist/{index-D4-_TrSn.cjs → index-DnbzopIv.cjs} +1 -1
  239. package/dist/{index-rhYVjszT.js → index-DtVJCOWc.js} +2 -2
  240. package/dist/index-DueyY06i.cjs +368 -0
  241. package/dist/{index-D4OKsSqi.cjs → index-HzW6OHFF.cjs} +1 -1
  242. package/dist/{index-3GKF_7BJ.cjs → index-RrqW9QBJ.cjs} +1 -1
  243. package/dist/index-VTkAaA-n.js +18 -0
  244. package/dist/{index-CM6vzQBx.js → index-eOeAkUSU.js} +1 -1
  245. package/dist/{index-Dx2hfxCG.js → index-gHaK62BZ.js} +2 -2
  246. package/dist/index-zIt6TVeg.js +753 -0
  247. package/dist/index.cjs +1 -1
  248. package/dist/index.js +2 -2
  249. package/dist/style-BFPpppS9.js +73 -0
  250. package/dist/{style-D54KOzZj.js → style-CP_urKvc.js} +1 -1
  251. package/dist/style-CQdEALKR.cjs +59 -0
  252. package/dist/{style-Boz6dk5s.cjs → style-cJUZrJoG.cjs} +1 -1
  253. package/dist/{utils-CITgSxXe.cjs → utils-BK6B_Y9X.cjs} +2 -2
  254. package/dist/{utils-MoGhNMmj.js → utils-BUdHa0nB.js} +16 -23
  255. package/package.json +1 -1
  256. package/dist/index-BGNavrtB.cjs +0 -368
  257. package/dist/index-BHcrzV2G.js +0 -54
  258. package/dist/index-Bj1KWOV4.cjs +0 -11
  259. package/dist/index-BsAddfgC.cjs +0 -1
  260. package/dist/index-Cn4bq6ZX.js +0 -84
  261. package/dist/index-CuRcxKQH.js +0 -42
  262. package/dist/index-DB1J-G6Z.js +0 -38
  263. package/dist/index-DkPva6Gr.cjs +0 -20
  264. package/dist/index-fzBXDy05.cjs +0 -16
  265. package/dist/index-gFZSZLba.js +0 -882
  266. package/dist/style-DvkivBNg.js +0 -74
  267. package/dist/style-Ito6YFqi.cjs +0 -64
@@ -1,882 +0,0 @@
1
- import { jsxs as n, jsx as e, Fragment as U } from "react/jsx-runtime";
2
- import { forwardRef as ce, useState as ne, useRef as ie, useEffect as Me, cloneElement as te, Suspense as Le } from "react";
3
- import { s as S } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
- import { d as L } from "./breakpoints-BubDitvo.js";
5
- import { t as I, n as xe, b as Te, m as M, p as ae, G as se, l as le } from "./utils-MoGhNMmj.js";
6
- import { P as qe } from "./index-DEypPQRI.js";
7
- import O from "./Badge.js";
8
- import Ae from "./Popover.js";
9
- import Xe from "./PopoverTrigger.js";
10
- import Ye from "./PopoverContent.js";
11
- import { u as He } from "./useDetectMobile-B0Jog4jQ.js";
12
- import de from "./Icon.js";
13
- import { S as v, b as u, c as _, a as i } from "./style-DvkivBNg.js";
14
- const Ke = S.a`
15
- display: flex;
16
- flex-direction: column;
17
- gap: 0.5rem;
18
- cursor: pointer;
19
- overflow: hidden;
20
- width: 100%;
21
- text-decoration: none;
22
- color: var(--gray-950, #14161a);
23
- position: relative;
24
-
25
- & .prevent-el {
26
- height: 0;
27
- width: 0;
28
- }
29
- & .seller {
30
- text-transform: uppercase;
31
- ${I()}
32
- color: var(--gray-500);
33
- font-size: 0.625rem;
34
- font-weight: 400;
35
- }
36
-
37
- & .wrapper-card-1 {
38
- display: flex;
39
- flex-direction: column;
40
- gap: 0.12rem;
41
- }
42
-
43
- & .wrapper-card-2 {
44
- display: flex;
45
- flex-direction: column;
46
- gap: 0;
47
- }
48
-
49
- & .wrapper-card-3 {
50
- display: flex;
51
- flex-wrap: wrap;
52
- gap: 0.25rem;
53
-
54
- & > div {
55
- & > div {
56
- width: 100% !important;
57
- }
58
- }
59
- }
60
-
61
- & .tag {
62
- height: 1.5rem;
63
- gap: 0.25rem;
64
- padding: 0.25rem 0.375rem;
65
- border-radius: 0.375rem;
66
- background: #f9fafb;
67
- border: 1px solid var(--gray-95012, #14161a1f);
68
- font-weight: 400;
69
- font-size: 0.75rem;
70
- line-height: 1rem;
71
- letter-spacing: 0.025rem;
72
- color: var(--gray-950, #14161a);
73
- white-space: nowrap;
74
- flex: 0 0 auto;
75
-
76
- & i {
77
- color: var(--yellow-500, #f59e0b);
78
- }
79
- }
80
-
81
- & .card-title {
82
- font-size: 0.875rem;
83
- font-weight: 600;
84
- ${xe(2)}
85
- }
86
-
87
- & .price-text {
88
- font-size: 1rem;
89
- font-weight: 600;
90
- ${I()}
91
- display: flex;
92
- align-items: end;
93
- gap: 0.5rem;
94
- color: var(--gray-950, #14161a);
95
-
96
- &.new-price {
97
- color: var(--danger-600, #e11d48);
98
- }
99
-
100
- & .full-price {
101
- text-decoration: line-through;
102
- font-size: 0.75rem;
103
- font-weight: 400;
104
- padding-bottom: 0.125rem;
105
- color: var(--gray-600, #676e79);
106
- ${I()}
107
- }
108
- }
109
-
110
- & .location-text {
111
- font-size: 0.75rem;
112
- font-weight: 400;
113
- color: var(--gray-600, #676e79);
114
- ${I()}
115
- }
116
-
117
- & .tags-wrapper {
118
- display: flex;
119
- gap: 0.5rem;
120
- }
121
-
122
- & .tags-popover__trigger {
123
- display: flex;
124
- gap: 0.25rem;
125
- }
126
-
127
- & .campaign-badges {
128
- position: absolute;
129
- top: 0.5rem;
130
- left: 0.75rem;
131
- display: flex;
132
- gap: 0.25rem;
133
- flex-wrap: wrap;
134
- justify-content: flex-start;
135
- z-index: 1;
136
- width: max-content;
137
- max-width: 7rem;
138
- }
139
-
140
- & .campaign-badge {
141
- width: fit-content;
142
- height: 1.5rem;
143
- border-radius: 0.25rem;
144
- display: flex;
145
- align-items: center;
146
- justify-content: center;
147
- color: white;
148
- font-size: 1rem;
149
- padding-inline: 0.15rem;
150
-
151
- i {
152
- ::before {
153
- margin-inline: 0;
154
- }
155
- }
156
- }
157
-
158
- & .campaign-badge-adddiscount {
159
- background-color: #f43f5e;
160
- }
161
-
162
- & .campaign-badge-freeshipping {
163
- background-color: #1abc86;
164
- }
165
-
166
- & .campaign-badge-freequantity {
167
- background-color: #2691d9;
168
- }
169
-
170
- & .campaign-badge-includegifts {
171
- background-color: #8b5cf6;
172
- }
173
-
174
- & .campaign-badge-urgent {
175
- background-color: #e11d48;
176
- width: fit-content;
177
- padding-inline: 0.5rem;
178
- }
179
-
180
- @media ${L("S")} {
181
- overflow: visible;
182
-
183
- & .wrapper-card-3 {
184
- flex-wrap: nowrap;
185
- justify-content: flex-start;
186
- overflow-x: scroll;
187
- width: 8.875rem !important;
188
-
189
- -webkit-overflow-scrolling: touch;
190
- ::-webkit-scrollbar {
191
- -webkit-appearance: none;
192
- }
193
- -ms-overflow-style: none;
194
- /* Internet Explorer 10+ */
195
- scrollbar-width: none;
196
- /* Firefox */
197
-
198
- &::-webkit-scrollbar {
199
- display: none;
200
- /* Safari and Chrome */
201
- }
202
-
203
- & > div {
204
- & > div {
205
- width: 8.875rem !important;
206
- }
207
- }
208
- }
209
-
210
- & .tags-popover__trigger {
211
- overflow-x: scroll;
212
- justify-content: flex-start;
213
- width: 100%;
214
-
215
- -webkit-overflow-scrolling: touch;
216
- ::-webkit-scrollbar {
217
- -webkit-appearance: none;
218
- }
219
- -ms-overflow-style: none;
220
- /* Internet Explorer 10+ */
221
- scrollbar-width: none;
222
- /* Firefox */
223
-
224
- &::-webkit-scrollbar {
225
- display: none;
226
- /* Safari and Chrome */
227
- }
228
- }
229
-
230
- & .price-text {
231
- font-size: 0.875rem;
232
- font-weight: 600;
233
-
234
- & .full-price {
235
- display: none;
236
- }
237
- }
238
- }
239
-
240
- &:hover .product-image-wrapper img {
241
- transform: scale(1.1);
242
- }
243
- `, Qe = S.div`
244
- position: relative;
245
- overflow: hidden;
246
- border-radius: 0.75rem;
247
- width: 100%;
248
- aspect-ratio: 1 / 1;
249
- border: 1px solid #0c15201f;
250
-
251
- & .bookmarking-btn {
252
- position: absolute;
253
- right: 0.5rem;
254
- top: 0.5rem;
255
- z-index: 1;
256
-
257
- display: none;
258
-
259
- align-items: center;
260
- justify-content: center;
261
-
262
- width: 2.25rem;
263
- height: 2.25rem;
264
- border-radius: ${(a) => Te(a.theme, "curved")};
265
- border: 1px solid var(--gray-95008);
266
- background-color: white;
267
- color: var(--gray-950);
268
- transition: transform 0.2s ease;
269
-
270
- &:hover {
271
- transform: scale(1.05);
272
- }
273
-
274
- i {
275
- color: #14161a;
276
- font-size: 1.1rem;
277
- line-height: 1;
278
- }
279
- }
280
-
281
- &:hover {
282
- & .bookmarking-btn {
283
- display: flex;
284
- }
285
- }
286
-
287
- & img {
288
- display: block;
289
- width: 100%;
290
- height: 100%;
291
- object-fit: cover;
292
- border-radius: 0.75rem;
293
- transition: var(--transition, all 0.3s ease);
294
- }
295
-
296
- @media ${L("S")} {
297
- & img {
298
- width: 8.875rem;
299
- height: 8.875rem;
300
- min-width: 8.875rem;
301
- min-height: 8.875rem;
302
- object-fit: cover;
303
- }
304
-
305
- & .bookmarking-btn {
306
- display: flex;
307
- bottom: 0.5rem;
308
- top: unset;
309
- }
310
- }
311
- `, Je = S.div`
312
- background: var(--white, #fff);
313
- z-index: 1;
314
-
315
- border: 1px solid var(--gray-200, #dddfe4);
316
- border-radius: 0.5rem;
317
- line-height: 1rem;
318
- position: absolute;
319
- padding: 0.5rem 0.75rem;
320
- top: 0.5rem;
321
- left: 25%;
322
- transform: translateX(-50%);
323
- min-width: 13rem;
324
-
325
- &::before,
326
- &::after {
327
- content: "";
328
- position: absolute;
329
- left: 50%;
330
- transform: translateX(-50%);
331
- border-style: solid;
332
- border-width: 0.625rem;
333
- }
334
-
335
- &::after {
336
- top: -1.1875rem;
337
- border-color: transparent transparent var(--white, #fff) transparent;
338
- }
339
-
340
- &::before {
341
- top: -1.25rem;
342
- border-color: transparent transparent var(--gray-200, #dddfe4) transparent;
343
- }
344
-
345
- & .tags-popover__content {
346
- display: flex;
347
- flex-wrap: wrap;
348
- flex-direction: column;
349
- gap: 0.375rem;
350
- font-size: 0.75rem;
351
- font-weight: 400;
352
-
353
- & .tags-popover__name {
354
- color: var(--gray-600, #676e79);
355
- }
356
-
357
- & .tags-popover__value {
358
- color: var(--gray-950, #14161a);
359
- }
360
- }
361
- `, Ze = S.div`
362
- display: flex;
363
- align-items: center;
364
- gap: 0.25rem;
365
- color: var(--gray-500);
366
- font-size: 0.75rem;
367
- font-weight: 500;
368
-
369
- & i {
370
- font-size: 1rem;
371
- color: var(--warning-500, #F59E0B);
372
- }
373
- `, er = ce(({ sponsoredText: a = "Sponsored" }, P) => /* @__PURE__ */ n(Ze, { ref: P, className: "sponsored-line", children: [
374
- /* @__PURE__ */ e("i", { className: "mng-lnc-paw2" }),
375
- /* @__PURE__ */ e("span", { children: a })
376
- ] })), rr = "Vehicles_Cars", or = "Vehicles_Motorcycles", nr = "Vehicles_Trucks", ir = "Vehicles_AgriculturalMachines_Tractors", tr = "Vehicles_ConstructionMachines", ar = "Vehicles_Bus", sr = "Vehicles_Campers", lr = "RealEstates_", l = {
377
- Mileage: {
378
- icon: "mng-lnc-road",
379
- measure: "km"
380
- },
381
- YearOfProduction: {
382
- icon: "mng-lnc-calendar",
383
- measure: ""
384
- },
385
- Fuel: {
386
- icon: "mng-lnc-gas-station",
387
- measure: ""
388
- },
389
- EnginePowerKW: {
390
- icon: "mng-lnc-engine",
391
- measure: "kW"
392
- },
393
- Transmission: {
394
- icon: "mng-lnc-transmission",
395
- measure: ""
396
- },
397
- Model: {
398
- icon: "mng-lnc-application",
399
- measure: ""
400
- },
401
- Brand: {
402
- icon: "mng-lnc-car--front",
403
- measure: ""
404
- },
405
- SurfaceArea: {
406
- icon: "mng-lnc-right-angle",
407
- measure: ""
408
- },
409
- Floor: {
410
- icon: "mng-lnc-elevator",
411
- measure: ""
412
- },
413
- FurnishedCondition: {
414
- icon: "mng-lnc-sofa-01",
415
- measure: ""
416
- },
417
- AdType: {
418
- icon: "mng-lnc-notes",
419
- measure: ""
420
- },
421
- NumberOfRooms: {
422
- icon: "mng-lnc-meeting-room",
423
- measure: ""
424
- },
425
- HeatingType: {
426
- icon: "mng-lnc-heat",
427
- measure: ""
428
- },
429
- AirConditioning: {
430
- icon: "mng-lnc-air-conditioner",
431
- measure: ""
432
- },
433
- Type: {
434
- icon: "mng-lnc-house-building",
435
- measure: ""
436
- },
437
- Parking: {
438
- icon: "mng-lnc-parking-area-circle",
439
- measure: ""
440
- },
441
- Internet: {
442
- icon: "mng-lnc-wifi-02",
443
- measure: ""
444
- },
445
- State: {
446
- icon: "mng-lnc-settings-1",
447
- measure: ""
448
- },
449
- NumberOfPremises: {
450
- icon: "mng-lnc-meeting-room",
451
- measure: ""
452
- },
453
- Pool: {
454
- icon: "mng-lnc-pool",
455
- measure: ""
456
- },
457
- Approach: {
458
- icon: "mng-lnc-driveway",
459
- measure: ""
460
- },
461
- NumberOfBeds: {
462
- icon: "mng-lnc-bed",
463
- measure: ""
464
- },
465
- Kitchen: {
466
- icon: "mng-lnc-fridge",
467
- measure: ""
468
- },
469
- BathroomToilet: {
470
- icon: "mng-lnc-bath",
471
- measure: ""
472
- },
473
- default: {
474
- icon: " mng-lnc-clock--filled",
475
- measure: ""
476
- }
477
- }, N = {
478
- ADDDISCOUNT: " mng-lnc-percentage",
479
- URGENT: " mng-lnc-flash",
480
- FREEQUANTITY: " mng-lnc-3d-software",
481
- INCLUDEGIFTS: " mng-lnc-gift",
482
- FREESHIPPING: " mng-lnc-delivery--parcel"
483
- }, kr = ce((a, P) => {
484
- const {
485
- uuid: m,
486
- sellerUuid: B,
487
- name: me,
488
- price: E = 0,
489
- sellingPrice: R,
490
- currency: k,
491
- isNegotiable: F,
492
- isFree: z,
493
- imageUrl: he,
494
- location: ge,
495
- sponsored: pe,
496
- imageComponent: x,
497
- freeText: ue = "Free",
498
- negotiableText: fe = "Negotiable",
499
- tags: t = [],
500
- categoryCode: V,
501
- categoryName: be,
502
- condition: T,
503
- quantity: W,
504
- trade: q,
505
- sponsoredText: ve,
506
- forCart: we,
507
- forOrder: Ce,
508
- contactSeller: ye,
509
- hasVariants: _e,
510
- hasQuantities: Ne,
511
- status: Re,
512
- onBookmark: D = () => {
513
- },
514
- actionComponent: w,
515
- bookmarked: A,
516
- bookmarkLists: ke,
517
- metadata: C,
518
- sellerName: X,
519
- nameSlug: G,
520
- onSelectCard: $e = () => {
521
- },
522
- activeSalesPackages: h,
523
- urgentText: Se = "Urgent",
524
- LinkComponent: Y,
525
- hasFreeShipping: Pe
526
- } = a, Ee = Y || "a", j = He(), Fe = () => {
527
- var c;
528
- if (!M(w)) return /* @__PURE__ */ e(U, {});
529
- const r = w, o = (c = w == null ? void 0 : w.props) == null ? void 0 : c.children, s = te(o, {
530
- key: `bookmark_pr__${A}`,
531
- bookmarked: A,
532
- productUuid: m,
533
- onAddToBookmark: () => D(!0, m),
534
- onRemoveFromBookmark: () => D(!1, m),
535
- bookmarkedUuidList: ke,
536
- sellerUuid: B,
537
- handleBookmarking: D,
538
- forCart: we,
539
- forOrder: Ce,
540
- contactSeller: ye,
541
- hasVariants: _e,
542
- status: Re,
543
- quantity: W,
544
- hasQuantities: Ne,
545
- productBasicInfo: {
546
- uuid: m,
547
- price: E,
548
- sellingPrice: R,
549
- categoryCode: V,
550
- categoryName: be,
551
- currency: k,
552
- isNegotiable: F,
553
- isFree: z
554
- }
555
- });
556
- return te(r, void 0, s);
557
- }, H = [
558
- rr,
559
- or,
560
- nr,
561
- ir,
562
- tr,
563
- ar,
564
- sr,
565
- lr
566
- ].some(
567
- (r) => V == null ? void 0 : V.includes(r)
568
- ), [ze, K] = ne(!1), Ve = () => {
569
- K(!0);
570
- }, Ge = () => {
571
- K(!1);
572
- }, d = ie(null), f = ie([]), [Ie, Q] = ne(t == null ? void 0 : t.length), Oe = () => {
573
- var c, y, $;
574
- if (!(d != null && d.current) || ((c = f == null ? void 0 : f.current) == null ? void 0 : c.length) === 0) return;
575
- if (j) {
576
- Q(t == null ? void 0 : t.length);
577
- return;
578
- }
579
- const r = (y = d == null ? void 0 : d.current) == null ? void 0 : y.offsetWidth;
580
- let o = 0, s = 0;
581
- for (let g = 0; g < (t == null ? void 0 : t.length); g++) {
582
- const b = (($ = f == null ? void 0 : f.current[g]) == null ? void 0 : $.offsetWidth) || 0, p = o + b + 4;
583
- if (p <= r)
584
- o += p, s++;
585
- else
586
- break;
587
- }
588
- Q(s);
589
- };
590
- Me(() => {
591
- const r = d == null ? void 0 : d.current;
592
- if (!r) return;
593
- const o = new ResizeObserver(() => {
594
- Oe();
595
- });
596
- return o.observe(r), () => {
597
- o.disconnect();
598
- };
599
- }, [t, j]);
600
- const Ue = () => {
601
- var r;
602
- return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = t == null ? void 0 : t.slice(0, Ie)) == null ? void 0 : r.map((o, s) => {
603
- var b, p, ee, re, oe;
604
- const c = ((b = l == null ? void 0 : l[o == null ? void 0 : o.code]) == null ? void 0 : b.icon) ?? ((p = l == null ? void 0 : l.default) == null ? void 0 : p.icon) ?? "", y = ((ee = o == null ? void 0 : o.measurementUnit) == null ? void 0 : ee.symbol) ?? ((re = l == null ? void 0 : l[o == null ? void 0 : o.code]) == null ? void 0 : re.measure) ?? "", g = [(o == null ? void 0 : o.value) ?? ((oe = o == null ? void 0 : o.multiOptions) == null ? void 0 : oe[0]) ?? "", y].filter(Boolean).join(" ");
605
- return /* @__PURE__ */ n(
606
- O,
607
- {
608
- ref: (je) => f.current[s] = je,
609
- className: "tag",
610
- children: [
611
- /* @__PURE__ */ e("i", { className: c }),
612
- g
613
- ]
614
- },
615
- `detailed-products-section-tag__${s + 1}`
616
- );
617
- }) });
618
- }, Be = () => /* @__PURE__ */ e("div", { className: "tags-popover__content", children: t == null ? void 0 : t.map((r, o) => {
619
- var g, b, p;
620
- const s = ((g = r == null ? void 0 : r.measurementUnit) == null ? void 0 : g.symbol) ?? ((b = l == null ? void 0 : l[r == null ? void 0 : r.code]) == null ? void 0 : b.measure) ?? "", y = [(r == null ? void 0 : r.value) ?? ((p = r == null ? void 0 : r.multiOptions) == null ? void 0 : p[0]) ?? "", s].filter(Boolean).join(" "), $ = r == null ? void 0 : r.name;
621
- return /* @__PURE__ */ n("div", { children: [
622
- /* @__PURE__ */ e("span", { className: "tags-popover__name", children: `${$}: ` }),
623
- /* @__PURE__ */ e("span", { className: "tags-popover__value", children: y })
624
- ] }, `detailed-products-section-tag-dropdown__${o + 1}`);
625
- }) }), We = () => /* @__PURE__ */ n(U, { children: [
626
- T && /* @__PURE__ */ e(O, { className: "tag", children: T }, "detailed-products-section-tag__condition"),
627
- W && /* @__PURE__ */ e(O, { className: "tag", children: W }, "detailed-products-section-tag__quantity"),
628
- q && /* @__PURE__ */ e(O, { className: "tag", children: q }, "detailed-products-section-tag__trade")
629
- ] }), J = E > 0 && k && F !== !0 && z !== !0 && E !== R, De = h == null ? void 0 : h.some(
630
- (r) => (r == null ? void 0 : r.salesPackageCode) === "FreeShipping"
631
- ), Z = Pe === !0 && !De;
632
- return (
633
- // <LandingPageProductCardSkeleton />
634
- /* @__PURE__ */ n(
635
- Ke,
636
- {
637
- ref: d,
638
- className: "product-card",
639
- "data-accessor": C == null ? void 0 : C.accessor,
640
- name: C == null ? void 0 : C.name,
641
- onClick: (r) => $e(r, d),
642
- as: Ee,
643
- ...Y ? {
644
- to: `/product/${le(G) ? `${G}-` : ""}${m}`
645
- } : {
646
- href: `/product/${le(G) ? `${G}-` : ""}${m}`
647
- },
648
- children: [
649
- /* @__PURE__ */ n(Qe, { className: "product-image-wrapper", children: [
650
- M(w) && /* @__PURE__ */ e(
651
- "div",
652
- {
653
- className: "prevent-el",
654
- onClick: (r) => {
655
- r == null || r.preventDefault(), r == null || r.stopPropagation();
656
- },
657
- children: /* @__PURE__ */ e(Fe, {})
658
- }
659
- ),
660
- M(x) ? x : /* @__PURE__ */ e(qe, { src: he })
661
- ] }),
662
- (Z || h && h.length > 0) && /* @__PURE__ */ n("div", { className: "campaign-badges", children: [
663
- Z && /* @__PURE__ */ e("div", { className: "campaign-badge campaign-badge-freeshipping", children: /* @__PURE__ */ e(de, { icon: N == null ? void 0 : N.FREESHIPPING, sizeInUnits: "1rem" }) }),
664
- h == null ? void 0 : h.map((r, o) => {
665
- var s, c;
666
- return /* @__PURE__ */ n(
667
- "div",
668
- {
669
- className: `campaign-badge campaign-badge-${(s = r == null ? void 0 : r.salesPackageCode) == null ? void 0 : s.toLowerCase()}`,
670
- children: [
671
- (r == null ? void 0 : r.salesPackageCode) !== "Urgent" && /* @__PURE__ */ e(
672
- de,
673
- {
674
- icon: N == null ? void 0 : N[(c = r == null ? void 0 : r.salesPackageCode) == null ? void 0 : c.toUpperCase()],
675
- sizeInUnits: "1rem"
676
- }
677
- ),
678
- (r == null ? void 0 : r.salesPackageCode) === "Urgent" && /* @__PURE__ */ e(U, { children: Se })
679
- ]
680
- },
681
- o
682
- );
683
- })
684
- ] }),
685
- /* @__PURE__ */ n("div", { className: "wrapper-card-1", children: [
686
- /* @__PURE__ */ e("div", { className: "seller", title: X, children: X }),
687
- /* @__PURE__ */ e("div", { className: "card-title", children: me })
688
- ] }),
689
- /* @__PURE__ */ n(
690
- "div",
691
- {
692
- className: "wrapper-card-3",
693
- onClick: (r) => {
694
- r == null || r.preventDefault(), r == null || r.stopPropagation();
695
- },
696
- children: [
697
- H && /* @__PURE__ */ e(
698
- "div",
699
- {
700
- ...j ? {} : {
701
- onMouseEnter: Ve,
702
- onMouseLeave: Ge
703
- },
704
- children: /* @__PURE__ */ n(Ae, { placement: "bottom", open: ze, children: [
705
- /* @__PURE__ */ e(Xe, { children: Ue() }),
706
- /* @__PURE__ */ e(Ye, { style: { all: "unset" }, children: /* @__PURE__ */ e(Je, { children: Be() }) })
707
- ] })
708
- }
709
- ),
710
- !H && We()
711
- ]
712
- }
713
- ),
714
- /* @__PURE__ */ n("div", { className: "wrapper-card-2", children: [
715
- /* @__PURE__ */ n("div", { className: `price-text ${J ? "new-price" : ""}`, children: [
716
- R > 0 && k && F !== !0 && z !== !0 && /* @__PURE__ */ e("div", { children: `${ae(R)} ${se(k)}` }),
717
- J && /* @__PURE__ */ e("div", { className: `${R > 0 ? "full-price" : ""}`, children: `${ae(E)} ${se(k)}` }),
718
- F && fe,
719
- z && ue
720
- ] }),
721
- /* @__PURE__ */ e("div", { className: "location-text", children: ge })
722
- ] }),
723
- pe === !0 && /* @__PURE__ */ e(er, { sponsoredText: ve })
724
- ]
725
- }
726
- )
727
- );
728
- }), dr = S(v)`
729
- @media ${L("S")} {
730
- & > div {
731
- &:nth-of-type(even) {
732
- display: none;
733
- }
734
- }
735
- }
736
- `, cr = ({ keyPrefix: a }) => /* @__PURE__ */ n(dr, { children: [
737
- /* @__PURE__ */ n(u, { gap: "0.5rem", children: [
738
- /* @__PURE__ */ e(
739
- _,
740
- {
741
- height: "100%",
742
- width: "100%",
743
- borderRadius: "0.75rem"
744
- }
745
- ),
746
- /* @__PURE__ */ e(u, { height: "1rem", children: /* @__PURE__ */ e(i, { height: "1rem", borderRadius: "0.75rem" }) }),
747
- /* @__PURE__ */ n(v, { gap: "0.5rem", children: [
748
- /* @__PURE__ */ e(i, { height: "1.5rem", borderRadius: "0.75rem" }),
749
- /* @__PURE__ */ e(i, { height: "1.5rem", borderRadius: "0.75rem" })
750
- ] }),
751
- /* @__PURE__ */ e(u, { height: "2rem", children: /* @__PURE__ */ e(i, { height: "2rem", borderRadius: "0.75rem" }) })
752
- ] }, `${a}-1`),
753
- /* @__PURE__ */ n(
754
- u,
755
- {
756
- gap: "0.5rem",
757
- noGradient: !0,
758
- children: [
759
- /* @__PURE__ */ e(
760
- _,
761
- {
762
- height: "100%",
763
- width: "100%",
764
- borderRadius: "0.75rem"
765
- }
766
- ),
767
- /* @__PURE__ */ e(i, { height: "1rem", borderRadius: "0.75rem" }),
768
- /* @__PURE__ */ n(v, { gap: "0.5rem", noGradient: !0, children: [
769
- /* @__PURE__ */ e(i, { height: "1.5rem", borderRadius: "0.75rem" }),
770
- /* @__PURE__ */ e(i, { height: "1.5rem", borderRadius: "0.75rem" })
771
- ] }),
772
- /* @__PURE__ */ e(i, { height: "2rem", borderRadius: "0.75rem" })
773
- ]
774
- },
775
- `${a}-2`
776
- ),
777
- /* @__PURE__ */ n(
778
- u,
779
- {
780
- gap: "0.5rem",
781
- noGradient: !0,
782
- children: [
783
- /* @__PURE__ */ e(
784
- _,
785
- {
786
- height: "100%",
787
- width: "100%",
788
- borderRadius: "0.75rem"
789
- }
790
- ),
791
- /* @__PURE__ */ e(i, { height: "1rem", borderRadius: "0.75rem" }),
792
- /* @__PURE__ */ n(v, { gap: "0.5rem", noGradient: !0, children: [
793
- /* @__PURE__ */ e(i, { height: "1.5rem", borderRadius: "0.75rem" }),
794
- /* @__PURE__ */ e(i, { height: "1.5rem", borderRadius: "0.75rem" })
795
- ] }),
796
- /* @__PURE__ */ e(i, { height: "2rem", borderRadius: "0.75rem" })
797
- ]
798
- },
799
- `${a}-3`
800
- ),
801
- /* @__PURE__ */ n(
802
- u,
803
- {
804
- gap: "0.5rem",
805
- noGradient: !0,
806
- children: [
807
- /* @__PURE__ */ e(
808
- _,
809
- {
810
- height: "100%",
811
- width: "100%",
812
- borderRadius: "0.75rem"
813
- }
814
- ),
815
- /* @__PURE__ */ e(i, { height: "1rem", borderRadius: "0.75rem" }),
816
- /* @__PURE__ */ n(v, { gap: "0.5rem", noGradient: !0, children: [
817
- /* @__PURE__ */ e(i, { height: "1.5rem", borderRadius: "0.75rem" }),
818
- /* @__PURE__ */ e(i, { height: "1.5rem", borderRadius: "0.75rem" })
819
- ] }),
820
- /* @__PURE__ */ e(i, { height: "2rem", borderRadius: "0.75rem" })
821
- ]
822
- },
823
- `${a}-4`
824
- ),
825
- /* @__PURE__ */ n(
826
- u,
827
- {
828
- gap: "0.5rem",
829
- noGradient: !0,
830
- children: [
831
- /* @__PURE__ */ e(
832
- _,
833
- {
834
- height: "100%",
835
- width: "100%",
836
- borderRadius: "0.75rem"
837
- }
838
- ),
839
- /* @__PURE__ */ e(i, { height: "1rem", borderRadius: "0.75rem" }),
840
- /* @__PURE__ */ n(v, { gap: "0.5rem", noGradient: !0, children: [
841
- /* @__PURE__ */ e(i, { height: "1.5rem", borderRadius: "0.75rem" }),
842
- /* @__PURE__ */ e(i, { height: "1.5rem", borderRadius: "0.75rem" })
843
- ] }),
844
- /* @__PURE__ */ e(i, { height: "2rem", borderRadius: "0.75rem" })
845
- ]
846
- },
847
- `${a}-5`
848
- ),
849
- /* @__PURE__ */ n(
850
- u,
851
- {
852
- gap: "0.5rem",
853
- noGradient: !0,
854
- children: [
855
- /* @__PURE__ */ e(
856
- _,
857
- {
858
- height: "100%",
859
- width: "100%",
860
- borderRadius: "0.75rem"
861
- }
862
- ),
863
- /* @__PURE__ */ e(i, { height: "1rem", borderRadius: "0.75rem" }),
864
- /* @__PURE__ */ n(v, { gap: "0.5rem", noGradient: !0, children: [
865
- /* @__PURE__ */ e(i, { height: "1.5rem", borderRadius: "0.75rem" }),
866
- /* @__PURE__ */ e(i, { height: "1.5rem", borderRadius: "0.75rem" })
867
- ] }),
868
- /* @__PURE__ */ e(i, { height: "2rem", borderRadius: "0.75rem" })
869
- ]
870
- },
871
- `${a}-6`
872
- )
873
- ] }), $r = ({
874
- keyPrefix: a,
875
- isLoading: P = !1,
876
- fallbackComponent: m = /* @__PURE__ */ e(U, {}),
877
- children: B
878
- }) => /* @__PURE__ */ e(Le, { fallbackComponent: m, children: P === !0 ? /* @__PURE__ */ e(cr, { keyPrefix: a }) : B });
879
- export {
880
- kr as D,
881
- $r as S
882
- };