@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
@@ -0,0 +1,753 @@
1
+ import { jsxs as t, jsx as r, Fragment as O } from "react/jsx-runtime";
2
+ import { forwardRef as se, useState as ee, useRef as re, useEffect as je, cloneElement as ne, Suspense as xe } from "react";
3
+ import { s as k } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
+ import { d as x } from "./breakpoints-BubDitvo.js";
5
+ import { t as F, n as Me, b as Re, m as j, p as oe, G as te, l as ie } from "./utils-BUdHa0nB.js";
6
+ import { P as Ge } from "./index-D6_3Q8lN.js";
7
+ import V from "./Badge.js";
8
+ import Le from "./Popover.js";
9
+ import Te from "./PopoverTrigger.js";
10
+ import Ae from "./PopoverContent.js";
11
+ import { u as qe } from "./useDetectMobile-B0Jog4jQ.js";
12
+ import ae from "./Icon.js";
13
+ import { S as Xe, e as Ye, d as He, a as I, c as Ke } from "./style-BFPpppS9.js";
14
+ const Qe = k.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
+ ${F()}
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
+ ${Me(2)}
85
+ }
86
+
87
+ & .price-text {
88
+ font-size: 1rem;
89
+ font-weight: 600;
90
+ ${F()}
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
+ ${F()}
107
+ }
108
+ }
109
+
110
+ & .location-text {
111
+ font-size: 0.75rem;
112
+ font-weight: 400;
113
+ color: var(--gray-600, #676e79);
114
+ ${F()}
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 ${x("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
+ `, Je = k.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: ${(c) => Re(c.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 ${x("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
+ `, Ze = k.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
+ `, er = k.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
+ `, rr = se(({ sponsoredText: c = "Sponsored" }, f) => /* @__PURE__ */ t(er, { ref: f, className: "sponsored-line", children: [
374
+ /* @__PURE__ */ r("i", { className: "mng-lnc-paw2" }),
375
+ /* @__PURE__ */ r("span", { children: c })
376
+ ] })), nr = "Vehicles_Cars", or = "Vehicles_Motorcycles", tr = "Vehicles_Trucks", ir = "Vehicles_AgriculturalMachines_Tractors", ar = "Vehicles_ConstructionMachines", sr = "Vehicles_Bus", lr = "Vehicles_Campers", cr = "RealEstates_", a = {
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
+ }, C = {
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
+ }, Pr = se((c, f) => {
484
+ const {
485
+ uuid: d,
486
+ sellerUuid: U,
487
+ name: le,
488
+ price: S = 0,
489
+ sellingPrice: y,
490
+ currency: _,
491
+ isNegotiable: P,
492
+ isFree: $,
493
+ imageUrl: ce,
494
+ location: de,
495
+ sponsored: me,
496
+ imageComponent: M,
497
+ freeText: pe = "Free",
498
+ negotiableText: ge = "Negotiable",
499
+ tags: o = [],
500
+ categoryCode: E,
501
+ categoryName: ue,
502
+ condition: R,
503
+ quantity: B,
504
+ trade: G,
505
+ sponsoredText: he,
506
+ forCart: fe,
507
+ forOrder: ve,
508
+ contactSeller: we,
509
+ hasVariants: be,
510
+ hasQuantities: Ce,
511
+ status: ye,
512
+ onBookmark: D = () => {
513
+ },
514
+ actionComponent: v,
515
+ bookmarked: L,
516
+ bookmarkLists: _e,
517
+ metadata: w,
518
+ sellerName: T,
519
+ nameSlug: z,
520
+ onSelectCard: Ne = () => {
521
+ },
522
+ activeSalesPackages: m,
523
+ urgentText: ke = "Urgent",
524
+ LinkComponent: A,
525
+ hasFreeShipping: Se
526
+ } = c, Pe = A || "a", W = qe(), $e = () => {
527
+ var l;
528
+ if (!j(v)) return /* @__PURE__ */ r(O, {});
529
+ const e = v, n = (l = v == null ? void 0 : v.props) == null ? void 0 : l.children, i = ne(n, {
530
+ key: `bookmark_pr__${L}`,
531
+ bookmarked: L,
532
+ productUuid: d,
533
+ onAddToBookmark: () => D(!0, d),
534
+ onRemoveFromBookmark: () => D(!1, d),
535
+ bookmarkedUuidList: _e,
536
+ sellerUuid: U,
537
+ handleBookmarking: D,
538
+ forCart: fe,
539
+ forOrder: ve,
540
+ contactSeller: we,
541
+ hasVariants: be,
542
+ status: ye,
543
+ quantity: B,
544
+ hasQuantities: Ce,
545
+ productBasicInfo: {
546
+ uuid: d,
547
+ price: S,
548
+ sellingPrice: y,
549
+ categoryCode: E,
550
+ categoryName: ue,
551
+ currency: _,
552
+ isNegotiable: P,
553
+ isFree: $
554
+ }
555
+ });
556
+ return ne(e, void 0, i);
557
+ }, q = [
558
+ nr,
559
+ or,
560
+ tr,
561
+ ir,
562
+ ar,
563
+ sr,
564
+ lr,
565
+ cr
566
+ ].some(
567
+ (e) => E == null ? void 0 : E.includes(e)
568
+ ), [Ee, X] = ee(!1), ze = () => {
569
+ X(!0);
570
+ }, Fe = () => {
571
+ X(!1);
572
+ }, s = re(null), u = re([]), [Ve, Y] = ee(o == null ? void 0 : o.length), Ie = () => {
573
+ var l, b, N;
574
+ if (!(s != null && s.current) || ((l = u == null ? void 0 : u.current) == null ? void 0 : l.length) === 0) return;
575
+ if (W) {
576
+ Y(o == null ? void 0 : o.length);
577
+ return;
578
+ }
579
+ const e = (b = s == null ? void 0 : s.current) == null ? void 0 : b.offsetWidth;
580
+ let n = 0, i = 0;
581
+ for (let p = 0; p < (o == null ? void 0 : o.length); p++) {
582
+ const h = ((N = u == null ? void 0 : u.current[p]) == null ? void 0 : N.offsetWidth) || 0, g = n + h + 4;
583
+ if (g <= e)
584
+ n += g, i++;
585
+ else
586
+ break;
587
+ }
588
+ Y(i);
589
+ };
590
+ je(() => {
591
+ const e = s == null ? void 0 : s.current;
592
+ if (!e) return;
593
+ const n = new ResizeObserver(() => {
594
+ Ie();
595
+ });
596
+ return n.observe(e), () => {
597
+ n.disconnect();
598
+ };
599
+ }, [o, W]);
600
+ const Oe = () => {
601
+ var e;
602
+ return /* @__PURE__ */ r("div", { className: "tags-popover__trigger", children: (e = o == null ? void 0 : o.slice(0, Ve)) == null ? void 0 : e.map((n, i) => {
603
+ var h, g, Q, J, Z;
604
+ const l = ((h = a == null ? void 0 : a[n == null ? void 0 : n.code]) == null ? void 0 : h.icon) ?? ((g = a == null ? void 0 : a.default) == null ? void 0 : g.icon) ?? "", b = ((Q = n == null ? void 0 : n.measurementUnit) == null ? void 0 : Q.symbol) ?? ((J = a == null ? void 0 : a[n == null ? void 0 : n.code]) == null ? void 0 : J.measure) ?? "", p = [(n == null ? void 0 : n.value) ?? ((Z = n == null ? void 0 : n.multiOptions) == null ? void 0 : Z[0]) ?? "", b].filter(Boolean).join(" ");
605
+ return /* @__PURE__ */ t(
606
+ V,
607
+ {
608
+ ref: (We) => u.current[i] = We,
609
+ className: "tag",
610
+ children: [
611
+ /* @__PURE__ */ r("i", { className: l }),
612
+ p
613
+ ]
614
+ },
615
+ `detailed-products-section-tag__${i + 1}`
616
+ );
617
+ }) });
618
+ }, Ue = () => /* @__PURE__ */ r("div", { className: "tags-popover__content", children: o == null ? void 0 : o.map((e, n) => {
619
+ var p, h, g;
620
+ const i = ((p = e == null ? void 0 : e.measurementUnit) == null ? void 0 : p.symbol) ?? ((h = a == null ? void 0 : a[e == null ? void 0 : e.code]) == null ? void 0 : h.measure) ?? "", b = [(e == null ? void 0 : e.value) ?? ((g = e == null ? void 0 : e.multiOptions) == null ? void 0 : g[0]) ?? "", i].filter(Boolean).join(" "), N = e == null ? void 0 : e.name;
621
+ return /* @__PURE__ */ t("div", { children: [
622
+ /* @__PURE__ */ r("span", { className: "tags-popover__name", children: `${N}: ` }),
623
+ /* @__PURE__ */ r("span", { className: "tags-popover__value", children: b })
624
+ ] }, `detailed-products-section-tag-dropdown__${n + 1}`);
625
+ }) }), Be = () => /* @__PURE__ */ t(O, { children: [
626
+ R && /* @__PURE__ */ r(V, { className: "tag", children: R }, "detailed-products-section-tag__condition"),
627
+ B && /* @__PURE__ */ r(V, { className: "tag", children: B }, "detailed-products-section-tag__quantity"),
628
+ G && /* @__PURE__ */ r(V, { className: "tag", children: G }, "detailed-products-section-tag__trade")
629
+ ] }), H = S > 0 && _ && P !== !0 && $ !== !0 && S !== y, De = m == null ? void 0 : m.some(
630
+ (e) => (e == null ? void 0 : e.salesPackageCode) === "FreeShipping"
631
+ ), K = Se === !0 && !De;
632
+ return (
633
+ // <LandingPageProductCardSkeleton />
634
+ /* @__PURE__ */ t(
635
+ Qe,
636
+ {
637
+ ref: s,
638
+ className: "product-card",
639
+ "data-accessor": w == null ? void 0 : w.accessor,
640
+ name: w == null ? void 0 : w.name,
641
+ onClick: (e) => Ne(e, s),
642
+ as: Pe,
643
+ ...A ? {
644
+ to: `/product/${ie(z) ? `${z}-` : ""}${d}`
645
+ } : {
646
+ href: `/product/${ie(z) ? `${z}-` : ""}${d}`
647
+ },
648
+ children: [
649
+ /* @__PURE__ */ t(Je, { className: "product-image-wrapper", children: [
650
+ j(v) && /* @__PURE__ */ r(
651
+ "div",
652
+ {
653
+ className: "prevent-el",
654
+ onClick: (e) => {
655
+ e == null || e.preventDefault(), e == null || e.stopPropagation();
656
+ },
657
+ children: /* @__PURE__ */ r($e, {})
658
+ }
659
+ ),
660
+ j(M) ? M : /* @__PURE__ */ r(Ge, { src: ce })
661
+ ] }),
662
+ (K || m && m.length > 0) && /* @__PURE__ */ t("div", { className: "campaign-badges", children: [
663
+ K && /* @__PURE__ */ r("div", { className: "campaign-badge campaign-badge-freeshipping", children: /* @__PURE__ */ r(ae, { icon: C == null ? void 0 : C.FREESHIPPING, sizeInUnits: "1rem" }) }),
664
+ m == null ? void 0 : m.map((e, n) => {
665
+ var i, l;
666
+ return /* @__PURE__ */ t(
667
+ "div",
668
+ {
669
+ className: `campaign-badge campaign-badge-${(i = e == null ? void 0 : e.salesPackageCode) == null ? void 0 : i.toLowerCase()}`,
670
+ children: [
671
+ (e == null ? void 0 : e.salesPackageCode) !== "Urgent" && /* @__PURE__ */ r(
672
+ ae,
673
+ {
674
+ icon: C == null ? void 0 : C[(l = e == null ? void 0 : e.salesPackageCode) == null ? void 0 : l.toUpperCase()],
675
+ sizeInUnits: "1rem"
676
+ }
677
+ ),
678
+ (e == null ? void 0 : e.salesPackageCode) === "Urgent" && /* @__PURE__ */ r(O, { children: ke })
679
+ ]
680
+ },
681
+ n
682
+ );
683
+ })
684
+ ] }),
685
+ /* @__PURE__ */ t("div", { className: "wrapper-card-1", children: [
686
+ /* @__PURE__ */ r("div", { className: "seller", title: T, children: T }),
687
+ /* @__PURE__ */ r("div", { className: "card-title", children: le })
688
+ ] }),
689
+ /* @__PURE__ */ t(
690
+ "div",
691
+ {
692
+ className: "wrapper-card-3",
693
+ onClick: (e) => {
694
+ e == null || e.preventDefault(), e == null || e.stopPropagation();
695
+ },
696
+ children: [
697
+ q && /* @__PURE__ */ r(
698
+ "div",
699
+ {
700
+ ...W ? {} : {
701
+ onMouseEnter: ze,
702
+ onMouseLeave: Fe
703
+ },
704
+ children: /* @__PURE__ */ t(Le, { placement: "bottom", open: Ee, children: [
705
+ /* @__PURE__ */ r(Te, { children: Oe() }),
706
+ /* @__PURE__ */ r(Ae, { style: { all: "unset" }, children: /* @__PURE__ */ r(Ze, { children: Ue() }) })
707
+ ] })
708
+ }
709
+ ),
710
+ !q && Be()
711
+ ]
712
+ }
713
+ ),
714
+ /* @__PURE__ */ t("div", { className: "wrapper-card-2", children: [
715
+ /* @__PURE__ */ t("div", { className: `price-text ${H ? "new-price" : ""}`, children: [
716
+ y > 0 && _ && P !== !0 && $ !== !0 && /* @__PURE__ */ r("div", { children: `${oe(y)} ${te(_)}` }),
717
+ H && /* @__PURE__ */ r("div", { className: `${y > 0 ? "full-price" : ""}`, children: `${oe(S)} ${te(_)}` }),
718
+ P && ge,
719
+ $ && pe
720
+ ] }),
721
+ /* @__PURE__ */ r("div", { className: "location-text", children: de })
722
+ ] }),
723
+ me === !0 && /* @__PURE__ */ r(rr, { sponsoredText: he })
724
+ ]
725
+ }
726
+ )
727
+ );
728
+ }), dr = k(Xe)`
729
+ @media ${x("S")} {
730
+ & > div {
731
+ &:nth-of-type(even) {
732
+ display: none;
733
+ }
734
+ }
735
+ }
736
+ `, mr = ({ keyPrefix: c }) => /* @__PURE__ */ r(dr, { children: [1, 2, 3, 4, 5].map((f) => /* @__PURE__ */ t(Ye, { gap: "0.5rem", children: [
737
+ /* @__PURE__ */ r(He, { size: "13.75rem" }),
738
+ /* @__PURE__ */ r(I, { width: "100%" }),
739
+ /* @__PURE__ */ t(Ke, { gap: "0.5rem", children: [
740
+ /* @__PURE__ */ r(I, { width: "100%", height: "1rem" }),
741
+ /* @__PURE__ */ r(I, { width: "100%", height: "1rem" })
742
+ ] }),
743
+ /* @__PURE__ */ r(I, { width: "100%", height: "2rem" })
744
+ ] }, `${c}-${f}`)) }), $r = ({
745
+ keyPrefix: c,
746
+ isLoading: f = !1,
747
+ fallbackComponent: d = /* @__PURE__ */ r(O, {}),
748
+ children: U
749
+ }) => /* @__PURE__ */ r(xe, { fallbackComponent: d, children: f === !0 ? /* @__PURE__ */ r(mr, { keyPrefix: c }) : U });
750
+ export {
751
+ Pr as D,
752
+ $r as S
753
+ };