@lanaco/lnc-react-ui 4.0.199 → 4.0.201

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 (270) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +45 -56
  3. package/dist/AccordionDetails.cjs +3 -3
  4. package/dist/AccordionDetails.js +11 -25
  5. package/dist/AccordionSummary.cjs +4 -4
  6. package/dist/AccordionSummary.js +34 -44
  7. package/dist/ActionsToolbar.cjs +2 -3
  8. package/dist/ActionsToolbar.js +83 -135
  9. package/dist/Alert.cjs +10 -10
  10. package/dist/Alert.js +32 -64
  11. package/dist/Avatar.cjs +9 -9
  12. package/dist/Avatar.js +33 -72
  13. package/dist/Badge.cjs +6 -6
  14. package/dist/Badge.js +22 -47
  15. package/dist/BannerSectionCarousel.cjs +4 -4
  16. package/dist/BannerSectionCarousel.js +51 -542
  17. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  18. package/dist/BlogCardsSponsoredSection.js +1 -1
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +12 -14
  21. package/dist/BlogExploreSection.cjs +1 -1
  22. package/dist/BlogExploreSection.js +1 -1
  23. package/dist/BlogListSection.cjs +1 -1
  24. package/dist/BlogListSection.js +1 -1
  25. package/dist/BlogsSectionDetailed.cjs +1 -1
  26. package/dist/BlogsSectionDetailed.js +1 -1
  27. package/dist/BlogsSectionSimple.cjs +1 -1
  28. package/dist/BlogsSectionSimple.js +1 -1
  29. package/dist/BlogsSectionWithFilters.cjs +1 -1
  30. package/dist/BlogsSectionWithFilters.js +2 -2
  31. package/dist/Breadcrumbs.cjs +5 -5
  32. package/dist/Breadcrumbs.js +57 -87
  33. package/dist/Button.cjs +11 -11
  34. package/dist/Button.js +126 -173
  35. package/dist/ButtonGroup.cjs +8 -8
  36. package/dist/ButtonGroup.js +37 -49
  37. package/dist/CalorieCalculatorSection.cjs +8 -8
  38. package/dist/CalorieCalculatorSection.js +90 -97
  39. package/dist/CheckBoxInput.cjs +1 -1
  40. package/dist/CheckBoxInput.js +2 -5
  41. package/dist/Chip.cjs +14 -14
  42. package/dist/Chip.js +73 -111
  43. package/dist/ConfirmationForm.cjs +6 -6
  44. package/dist/ConfirmationForm.js +67 -109
  45. package/dist/ContactSection.cjs +1 -0
  46. package/dist/ContactSection.js +1 -0
  47. package/dist/Content.cjs +1 -1
  48. package/dist/Content.js +7 -15
  49. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  50. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  51. package/dist/DataView.cjs +1 -1
  52. package/dist/DataView.js +30 -50
  53. package/dist/DateInput.cjs +4 -4
  54. package/dist/DateInput.js +1347 -1383
  55. package/dist/DecimalInput.cjs +6 -6
  56. package/dist/DecimalInput.js +210 -263
  57. package/dist/DecimalInputV2.cjs +23 -23
  58. package/dist/DecimalInputV2.js +119 -176
  59. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  60. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  61. package/dist/DetailedProductsSection.cjs +1 -1
  62. package/dist/DetailedProductsSection.js +2 -2
  63. package/dist/DetailsView.cjs +9 -9
  64. package/dist/DetailsView.js +111 -162
  65. package/dist/DoubleRangeSlider.cjs +22 -22
  66. package/dist/DoubleRangeSlider.js +70 -95
  67. package/dist/DragAndDropFile.cjs +10 -10
  68. package/dist/DragAndDropFile.js +347 -402
  69. package/dist/DragDropFiles.cjs +4 -4
  70. package/dist/DragDropFiles.js +70 -124
  71. package/dist/Drawer.cjs +5 -5
  72. package/dist/Drawer.js +97 -135
  73. package/dist/Dropdown.cjs +1 -1
  74. package/dist/Dropdown.js +44 -213
  75. package/dist/DropdownItem.cjs +14 -14
  76. package/dist/DropdownItem.js +106 -142
  77. package/dist/DropdownLookup.cjs +1 -1
  78. package/dist/DropdownLookup.js +61 -242
  79. package/dist/DropdownMenu.cjs +4 -4
  80. package/dist/DropdownMenu.js +87 -149
  81. package/dist/EditableTable.cjs +10 -10
  82. package/dist/EditableTable.js +165 -331
  83. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  84. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  85. package/dist/FaqSection.cjs +3 -3
  86. package/dist/FaqSection.js +119 -153
  87. package/dist/FileInput.cjs +7 -7
  88. package/dist/FileInput.js +66 -94
  89. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  90. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  91. package/dist/FlexBox.cjs +6 -6
  92. package/dist/FlexBox.js +28 -63
  93. package/dist/FlexGrid.cjs +1 -1
  94. package/dist/FlexGrid.js +27 -67
  95. package/dist/FlexGridItem.cjs +6 -6
  96. package/dist/FlexGridItem.js +34 -62
  97. package/dist/Footer.cjs +1 -1
  98. package/dist/Footer.js +7 -15
  99. package/dist/FormField.cjs +7 -7
  100. package/dist/FormField.js +22 -47
  101. package/dist/FormView.cjs +6 -6
  102. package/dist/FormView.js +148 -195
  103. package/dist/GiftCardsSection.cjs +1 -1
  104. package/dist/GiftCardsSection.js +1 -1
  105. package/dist/Grid.cjs +2 -2
  106. package/dist/Grid.js +40 -65
  107. package/dist/GridItem.cjs +2 -2
  108. package/dist/GridItem.js +47 -80
  109. package/dist/Header.cjs +1 -1
  110. package/dist/Header.js +7 -15
  111. package/dist/HelpBannerSection.cjs +3 -3
  112. package/dist/HelpBannerSection.js +9 -15
  113. package/dist/Icon.cjs +4 -4
  114. package/dist/Icon.js +29 -55
  115. package/dist/IconButton.cjs +9 -9
  116. package/dist/IconButton.js +89 -127
  117. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  118. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  119. package/dist/Kanban.cjs +7 -7
  120. package/dist/Kanban.js +2033 -2098
  121. package/dist/KanbanActionsToolbar.cjs +4 -5
  122. package/dist/KanbanActionsToolbar.js +61 -96
  123. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  124. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  125. package/dist/KanbanCard.cjs +1 -1
  126. package/dist/KanbanCard.js +2 -3
  127. package/dist/KanbanFooter.cjs +3 -3
  128. package/dist/KanbanFooter.js +37 -55
  129. package/dist/KanbanHeader.cjs +4 -4
  130. package/dist/KanbanHeader.js +49 -81
  131. package/dist/KanbanView.cjs +2 -2
  132. package/dist/KanbanView.js +106 -173
  133. package/dist/Link.cjs +7 -7
  134. package/dist/Link.js +20 -37
  135. package/dist/LocationSearchSection.cjs +1 -1
  136. package/dist/LocationSearchSection.js +1 -1
  137. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  138. package/dist/MasonryGeneralCardsSection.js +1 -1
  139. package/dist/MenuItem.cjs +13 -13
  140. package/dist/MenuItem.js +101 -139
  141. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  142. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  143. package/dist/Modal.cjs +18 -19
  144. package/dist/Modal.js +131 -166
  145. package/dist/MultiSelectDropdown.cjs +1 -1
  146. package/dist/MultiSelectDropdown.js +25 -196
  147. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  148. package/dist/MultiSelectDropdownLookup.js +27 -209
  149. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  150. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  151. package/dist/NestedDropdownItem.cjs +3 -3
  152. package/dist/NestedDropdownItem.js +45 -67
  153. package/dist/NestedMenuItem.cjs +5 -5
  154. package/dist/NestedMenuItem.js +51 -78
  155. package/dist/NotificationContainer.cjs +10 -10
  156. package/dist/NotificationContainer.js +46 -79
  157. package/dist/NotificationMessage.cjs +2 -2
  158. package/dist/NotificationMessage.js +47 -64
  159. package/dist/NumberInput.cjs +23 -23
  160. package/dist/NumberInput.js +89 -149
  161. package/dist/PageLayout.cjs +2 -2
  162. package/dist/PageLayout.js +20 -28
  163. package/dist/Pagination.cjs +3 -3
  164. package/dist/Pagination.js +102 -185
  165. package/dist/PartnerBrandsSection.cjs +62 -0
  166. package/dist/PartnerBrandsSection.js +154 -0
  167. package/dist/PartnerStatsSection.cjs +100 -0
  168. package/dist/PartnerStatsSection.js +124 -0
  169. package/dist/PasswordInput.cjs +23 -23
  170. package/dist/PasswordInput.js +108 -137
  171. package/dist/Popover.cjs +1 -1
  172. package/dist/Popover.js +7 -32
  173. package/dist/PopoverContent.cjs +5 -5
  174. package/dist/PopoverContent.js +22 -28
  175. package/dist/PopoverTrigger.cjs +1 -1
  176. package/dist/PopoverTrigger.js +7 -12
  177. package/dist/ProductsWithBannerSection.cjs +1 -1
  178. package/dist/ProductsWithBannerSection.js +1 -1
  179. package/dist/ProgressBar.cjs +8 -8
  180. package/dist/ProgressBar.js +32 -59
  181. package/dist/RadioGroup.cjs +3 -3
  182. package/dist/RadioGroup.js +41 -72
  183. package/dist/RadioInput.cjs +28 -28
  184. package/dist/RadioInput.js +78 -123
  185. package/dist/RangeSlider.cjs +19 -19
  186. package/dist/RangeSlider.js +92 -119
  187. package/dist/ReviewsSection.cjs +13 -13
  188. package/dist/ReviewsSection.js +81 -101
  189. package/dist/SalesCampaignsSection.cjs +38 -28
  190. package/dist/SalesCampaignsSection.js +297 -325
  191. package/dist/SearchBar.cjs +10 -10
  192. package/dist/SearchBar.js +168 -188
  193. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  194. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  195. package/dist/SearchSection.cjs +1 -1
  196. package/dist/SearchSection.js +2 -3
  197. package/dist/Separator.cjs +3 -3
  198. package/dist/Separator.js +14 -19
  199. package/dist/Sidebar.cjs +4 -5
  200. package/dist/Sidebar.js +33 -56
  201. package/dist/SimpleCategoriesSection.cjs +2 -2
  202. package/dist/SimpleCategoriesSection.js +2 -2
  203. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  204. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  205. package/dist/Spinner.cjs +18 -18
  206. package/dist/Spinner.js +37 -54
  207. package/dist/StatsSection.cjs +6 -6
  208. package/dist/StatsSection.js +15 -25
  209. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  210. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  211. package/dist/Surface.cjs +4 -4
  212. package/dist/Surface.js +19 -34
  213. package/dist/SwipeableDrawer.cjs +8 -8
  214. package/dist/SwipeableDrawer.js +84 -136
  215. package/dist/TabItem.cjs +11 -11
  216. package/dist/TabItem.js +83 -118
  217. package/dist/Table.cjs +65 -65
  218. package/dist/Table.js +786 -1167
  219. package/dist/TableView.cjs +2 -2
  220. package/dist/TableView.js +113 -197
  221. package/dist/Tabs.cjs +4 -4
  222. package/dist/Tabs.js +41 -60
  223. package/dist/TextAreaInput.cjs +14 -14
  224. package/dist/TextAreaInput.js +131 -181
  225. package/dist/TextInput.cjs +23 -23
  226. package/dist/TextInput.js +78 -126
  227. package/dist/ThemeProvider.cjs +5 -5
  228. package/dist/ThemeProvider.js +35 -39
  229. package/dist/TimeInput.cjs +7 -7
  230. package/dist/TimeInput.js +46 -72
  231. package/dist/Toggle.cjs +20 -20
  232. package/dist/Toggle.js +78 -109
  233. package/dist/ToggleSection.cjs +5 -5
  234. package/dist/ToggleSection.js +48 -55
  235. package/dist/TreeMenu.cjs +5 -5
  236. package/dist/TreeMenu.js +43 -67
  237. package/dist/TreeMenuSeparator.cjs +3 -3
  238. package/dist/TreeMenuSeparator.js +12 -20
  239. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  240. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  241. package/dist/UploadedFile.cjs +11 -11
  242. package/dist/UploadedFile.js +73 -99
  243. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  244. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  245. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  246. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  247. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  248. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  249. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  250. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  251. package/dist/index-BdKi2ogu.js +39 -0
  252. package/dist/index-BppfjY8h.js +497 -0
  253. package/dist/index-CRk3vcd4.cjs +95 -0
  254. package/dist/index-CX2A-q39.cjs +4 -0
  255. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  256. package/dist/index-DeS-oqJB.cjs +1 -0
  257. package/dist/index.cjs +1 -1
  258. package/dist/index.js +25 -21
  259. package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
  260. package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
  261. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  262. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  263. package/package.json +4 -2
  264. package/vite.config.js +8 -0
  265. package/dist/KanbanCard-68kSAXL6.js +0 -175
  266. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  267. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  268. package/dist/index-Be-_NM9Q.cjs +0 -4
  269. package/dist/index-C0LcDEqa.js +0 -47
  270. package/dist/index-CSNxZFTX.cjs +0 -95
@@ -1,38 +1,44 @@
1
- import { jsx as n, jsxs as s, Fragment as Oe } from "react/jsx-runtime";
2
- import { forwardRef as j, useRef as $e, useEffect as oe, Fragment as je, createElement as Re, useState as te, Suspense as Be, memo as We, useMemo as Fe } from "react";
3
- import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { a as ie, k as ae, l as Ge, z as Ve, A as Ae, B as He, C as ue } from "./utils-DtEfC-TX.js";
5
- import { M as U } from "./consts-BuFChS64.js";
6
- import _e from "./Icon.js";
1
+ import { jsx as n, jsxs as s, Fragment as Ee } from "react/jsx-runtime";
2
+ import { forwardRef as R, useRef as $e, useEffect as ae, Fragment as Ue, createElement as Me, useState as ne, Suspense as Re, memo as je, useMemo as Be } from "react";
3
+ import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { a as oe, k as te, l as Oe, z as We, A as Ge, B as Ve, C as he } from "./utils-DtEfC-TX.js";
5
+ import { M as T } from "./consts-BuFChS64.js";
6
+ import Se from "./Icon.js";
7
7
  import { D as fe } from "./ShopAvatar-4-fCYGEc.js";
8
- import Ze from "./Badge.js";
9
- import { P as o } from "./index-CblbdqjE.js";
10
- import { u as Ce } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
11
- import xe from "./IconButton.js";
8
+ import Fe from "./Badge.js";
9
+ import { u as _e } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
10
+ import ue from "./IconButton.js";
12
11
  import { u as ke } from "./useDetectMobile-Bkvj0VMa.js";
13
- import { I as qe } from "./index-C0LcDEqa.js";
14
- import { m as Xe } from "./motion-Ckekul_K.js";
15
- import { S as O, c as be, b as ve, a as w, d as we } from "./style-BwQ4djFC.js";
16
- const Ye = y.a`
12
+ import { I as Ae } from "./index-BdKi2ogu.js";
13
+ import { m as Ze } from "./motion-Ckekul_K.js";
14
+ import { S as M, c as xe, b as be, a as v, d as ve } from "./style-BwQ4djFC.js";
15
+ const qe = w.a`
17
16
  text-decoration: none;
18
17
  color: var(--gray-950);
19
18
  cursor: pointer;
20
19
  display: flex;
20
+ flex-direction: column;
21
21
  gap: 1rem;
22
- padding: 1.25rem;
22
+ padding: 1rem;
23
23
  border-radius: 1.25rem;
24
- border: 1px solid var(--gray-200, #e4e9f0);
25
-
26
- @media (max-width: ${U + "px"}) {
27
- flex-direction: column;
28
- padding: 1rem;
24
+ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
25
+
26
+ ${(r) => r != null && r.sponsored ? `
27
+ border: 1px solid transparent;
28
+ background:
29
+ linear-gradient(#ffffff, #ffffff) padding-box,
30
+ linear-gradient(to bottom, #fcd34d, #fef3c7) border-box;
31
+ ` : `
32
+ border: 1px solid var(--gray-200, #e4e9f0);
33
+ background: #ffffff;
34
+ `}
35
+
36
+ @media (max-width: ${T + "px"}) {
37
+ width: 100%;
29
38
  gap: 0;
30
39
  }
31
- `, Je = y.div`
32
- border-radius: ${(r) => ie(r.theme, "edged")};
33
- height: 13.75rem;
34
- width: 13.75rem;
35
- min-width: 13.75rem;
40
+ `, He = w.div`
41
+ border-radius: ${(r) => oe(r.theme, "edged")};
36
42
  cursor: pointer;
37
43
 
38
44
  position: relative;
@@ -51,7 +57,11 @@ const Ye = y.a`
51
57
  transform: scale(1.25);
52
58
  }
53
59
  }
54
- `, Ke = y.div`
60
+
61
+ @media (max-width: ${T + "px"}) {
62
+ width: 14.5rem;
63
+ }
64
+ `, Xe = w.div`
55
65
  flex: 1;
56
66
  display: flex;
57
67
  flex-direction: column;
@@ -134,7 +144,7 @@ const Ye = y.a`
134
144
  color: var(--gray-600, #676e79);
135
145
  }
136
146
 
137
- @media (max-width: ${U + "px"}) {
147
+ @media (max-width: ${T + "px"}) {
138
148
  padding: 1rem 0 0 0;
139
149
 
140
150
  & .campaign-title-text {
@@ -159,13 +169,13 @@ const Ye = y.a`
159
169
  gap: 0.25rem;
160
170
  }
161
171
  }
162
- `, ye = (r = !1, t = !1, i = !1) => `
172
+ `, we = (r = !1, t = !1, o = !1) => `
163
173
  display: flex;
164
174
  ${t ? "flex-wrap: wrap;" : ""}
165
175
  ${t ? "" : "flex-wrap: nowrap;"}
166
176
  ${r ? "align-items: center;" : ""}
167
- ${i ? "justify-content: center;" : ""}
168
- `, Qe = y.a`
177
+ ${o ? "justify-content: center;" : ""}
178
+ `, Ye = w.a`
169
179
  text-decoration: none;
170
180
  color: var(--gray-950);
171
181
  ${(r) => r.hasPermission === !0 && "cursor: pointer"};
@@ -183,14 +193,13 @@ const Ye = y.a`
183
193
  text-decoration: none;
184
194
  }
185
195
 
186
- ${ye(!0)}
196
+ ${we(!0)}
187
197
  gap: 0.5rem;
188
- padding: 0.5rem;
189
198
  color: var(--gray-950, #14161a);
190
199
  font-weight: 500;
191
200
  font-size: 1rem;
192
201
  line-height: 1.5rem;
193
- border-radius: ${(r) => ie(r.theme, "slight")};
202
+ border-radius: ${(r) => oe(r.theme, "slight")};
194
203
  transition: all 0.25s ease;
195
204
  & .description {
196
205
  font-size: 0.85rem;
@@ -199,7 +208,7 @@ const Ye = y.a`
199
208
  font-weight: 400;
200
209
  }
201
210
  & .logo-wrapper {
202
- ${ye(!0, !1, !0)}
211
+ ${we(!0, !1, !0)}
203
212
  flex-shrink: 0;
204
213
  border-radius: 999px;
205
214
 
@@ -238,18 +247,18 @@ const Ye = y.a`
238
247
  background-color: var(--gray-95080, #14161acc);
239
248
  }
240
249
 
241
- @media (max-width: ${U + "px"}) {
250
+ @media (max-width: ${T + "px"}) {
242
251
  padding: 0;
243
252
  font-size: 0.875rem;
244
253
  }
245
- `, er = y.div`
254
+ `, Je = w.div`
246
255
  position: absolute;
247
256
  top: 0.5rem;
248
257
  ${(r) => r.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
249
258
  display: flex;
250
259
  gap: 0.25rem;
251
- `, rr = y.div`
252
- border-radius: ${(r) => ie(r.theme, r.borderRadius || "slight")};
260
+ `, Ke = w.div`
261
+ border-radius: ${(r) => oe(r.theme, r.borderRadius || "slight")};
253
262
  background-color: ${(r) => r == null ? void 0 : r.color};
254
263
  color: white;
255
264
  height: 1.5rem;
@@ -264,182 +273,161 @@ const Ye = y.a`
264
273
  & i {
265
274
  font-size: 0.813rem;
266
275
  }
267
- `, nr = j(({ src: r, ...t }, i) => {
276
+ `, Qe = R(({ src: r, ...t }, o) => {
268
277
  const a = $e();
269
- return oe(() => {
270
- var p;
271
- const d = (l) => {
272
- l.target.src = fe, l.onerror = null;
278
+ return ae(() => {
279
+ var m;
280
+ const c = (i) => {
281
+ i.target.src = fe, i.onerror = null;
273
282
  };
274
- return (p = a == null ? void 0 : a.current) == null || p.addEventListener("error", d), () => {
275
- var l;
276
- (l = a == null ? void 0 : a.current) == null || l.removeEventListener("error", d);
283
+ return (m = a == null ? void 0 : a.current) == null || m.addEventListener("error", c), () => {
284
+ var i;
285
+ (i = a == null ? void 0 : a.current) == null || i.removeEventListener("error", c);
277
286
  };
278
- }, []), /* @__PURE__ */ n(je, { ref: i, children: ae(r) ? /* @__PURE__ */ n("img", { ref: a, src: r, ...t }) : /* @__PURE__ */ n("img", { src: fe, ...t }) });
279
- }), Ie = (r) => {
287
+ }, []), /* @__PURE__ */ n(Ue, { ref: o, children: te(r) ? /* @__PURE__ */ n("img", { ref: a, src: r, ...t }) : /* @__PURE__ */ n("img", { src: fe, ...t }) });
288
+ }), er = (r) => {
280
289
  const {
281
290
  uuid: t,
282
- hasPermission: i = !0,
291
+ hasPermission: o = !0,
283
292
  isUser: a,
284
- image: d,
285
- imageComponent: p,
286
- name: l,
287
- notifications: _ = 0,
288
- color: m = "primary",
289
- size: h = "large",
293
+ image: c,
294
+ imageComponent: m,
295
+ name: i,
296
+ notifications: S = 0,
297
+ color: d = "primary",
298
+ size: p = "large",
290
299
  style: g,
291
300
  disabled: k,
292
301
  onClick: f = () => {
293
302
  },
294
- isActive: v,
295
- className: I,
296
- shopCategory: N,
303
+ isActive: b,
304
+ className: C,
305
+ shopCategory: I,
297
306
  // new
298
- themeData: S,
299
- LinkComponent: c
300
- } = r, x = c || "a", E = {
301
- theme: Ce(),
302
- color: m,
303
- size: h,
307
+ themeData: y,
308
+ LinkComponent: l
309
+ } = r, u = l || "a", E = {
310
+ theme: _e(),
311
+ color: d,
312
+ size: p,
304
313
  style: g,
305
314
  disabled: k
306
315
  };
307
- return /* @__PURE__ */ Re(
308
- Qe,
316
+ return /* @__PURE__ */ Me(
317
+ Ye,
309
318
  {
310
- onClick: (u) => {
311
- u == null || u.preventDefault(), u.stopPropagation(), i === !0 && (f == null || f());
319
+ onClick: (h) => {
320
+ h == null || h.preventDefault(), h.stopPropagation(), o === !0 && (f == null || f());
312
321
  },
313
322
  ...E,
314
- key: l,
315
- className: `profile-item ${I}`,
316
- hasPermission: i,
317
- isActive: v,
318
- themeColor: (S == null ? void 0 : S.code) || "transparent",
319
- as: x,
320
- ...c ? { to: `/${a ? "user" : "shop"}/${t}` } : { href: `/${a ? "user" : "shop"}/${t}` }
323
+ key: i,
324
+ className: `profile-item ${C}`,
325
+ hasPermission: o,
326
+ isActive: b,
327
+ themeColor: (y == null ? void 0 : y.code) || "transparent",
328
+ as: u,
329
+ ...l ? { to: `/${a ? "user" : "shop"}/${t}` } : { href: `/${a ? "user" : "shop"}/${t}` }
321
330
  },
322
- /* @__PURE__ */ n("div", { className: "logo-wrapper", children: Ge(p) ? p : d }),
331
+ /* @__PURE__ */ n("div", { className: "logo-wrapper", children: Oe(m) ? m : c }),
323
332
  /* @__PURE__ */ s("div", { children: [
324
- /* @__PURE__ */ n("div", { className: "name", children: l }),
325
- !a && /* @__PURE__ */ n("div", { className: "description", children: N }),
326
- _ > 0 && /* @__PURE__ */ n("div", { className: "notifications-number", children: /* @__PURE__ */ n(Ze, { className: "badge", color: "danger", size: "small", children: _ > 99 ? "99+" : _ }) })
333
+ /* @__PURE__ */ n("div", { className: "name", children: i }),
334
+ !a && /* @__PURE__ */ n("div", { className: "description", children: I }),
335
+ S > 0 && /* @__PURE__ */ n("div", { className: "notifications-number", children: /* @__PURE__ */ n(Fe, { className: "badge", color: "danger", size: "small", children: S > 99 ? "99+" : S }) })
327
336
  ] })
328
337
  );
329
- };
330
- Ie.propTypes = {
331
- id: o.any,
332
- isUserProfile: o.bool,
333
- themeColor: o.string,
334
- image: o.any,
335
- name: o.string,
336
- notifications: o.number,
337
- style: o.object,
338
- className: o.string,
339
- color: o.oneOf([
340
- "primary",
341
- "secondary",
342
- "success",
343
- "warning",
344
- "danger",
345
- "information",
346
- "neutral"
347
- ]),
348
- size: o.oneOf(["large"]),
349
- onSelect: o.func,
350
- hasPermission: o.bool
351
- };
352
- const Se = (r) => {
338
+ }, ye = (r) => {
353
339
  if (r !== void 0) {
354
- const t = new Date(r), i = t.getFullYear(), a = t.getMonth() + 1;
355
- return `${String(t.getDate()).padStart(2)}. ${a}. ${i}.`;
340
+ const t = new Date(r), o = t.getFullYear(), a = t.getMonth() + 1;
341
+ return `${String(t.getDate()).padStart(2)}. ${a}. ${o}.`;
356
342
  }
357
- }, tr = j((r, t) => {
358
- var he;
359
- const i = Ce(), {
343
+ }, rr = R((r, t) => {
344
+ var pe;
345
+ const o = _e(), {
360
346
  uuid: a,
361
- shopUuid: d,
362
- title: p = "",
347
+ shopUuid: c,
348
+ title: m = "",
363
349
  // description,
364
350
  // badges,
365
- coverPhoto: l,
366
- onSelect: _,
351
+ coverPhoto: i,
352
+ onSelect: S,
367
353
  // status,
368
- startDate: m,
369
- endDate: h,
354
+ startDate: d,
355
+ endDate: p,
370
356
  salesPackages: g,
371
357
  shopName: k,
372
358
  shopCategory: f,
373
- shopImage: v,
374
- shopImageComponent: I,
375
- className: N,
376
- onSelectCard: S = () => {
359
+ shopImage: b,
360
+ shopImageComponent: C,
361
+ className: I,
362
+ onSelectCard: y = () => {
377
363
  },
378
- onSelectShop: c = () => {
364
+ onSelectShop: l = () => {
379
365
  },
380
- upcoming: x = !1,
366
+ upcoming: u = !1,
381
367
  upcomingCampaignText: D,
382
368
  campaignSingleText: E,
383
- salesCampaignTypes: u = [],
369
+ salesCampaignTypes: h = [],
384
370
  startsInPrefixTextPlural: V,
385
- startsinSuffixTextPlural: A,
386
- startsInPrefixTextSingular: H,
371
+ startsinSuffixTextPlural: F,
372
+ startsInPrefixTextSingular: A,
387
373
  startsinSuffixTextSingular: se,
388
374
  endsInPrefixTextPlural: Z,
389
375
  endsinSuffixTextPlural: q,
390
- endsInPrefixTextSingular: R,
391
- endsinSuffixTextSingular: X,
392
- endedText: Y,
393
- themeData: le,
394
- numberOfListings: P,
395
- numberOfListingsTextSingular: J,
376
+ endsInPrefixTextSingular: j,
377
+ endsinSuffixTextSingular: H,
378
+ endedText: X,
379
+ themeData: ie,
380
+ numberOfListings: z,
381
+ numberOfListingsTextSingular: Y,
396
382
  numberOfListingsTextPlural: B,
397
383
  metadata: e,
398
- LinkComponent: W,
399
- ...ce
400
- } = r, K = W || "a", de = $e(), M = Ve(m, h), Q = M !== -1 && (M == null ? void 0 : M.isEnded) === !0, ee = M !== -1 && !Q, re = Ae(m), z = He(h), Te = z !== null && z <= 2 && z > 0, me = ue(h), ge = me ? new Date(me) : null, Pe = /* @__PURE__ */ new Date(), ne = ge ? ge.getTime() - Pe.getTime() : null, F = ne !== null && ne > 0 && ne < 24 * 60 * 60 * 1e3, pe = (b, L, C, $, T) => C === 1 ? `${b} ${C} ${$}` : `${L} ${C} ${T}`, ze = () => {
401
- if (!h) return null;
402
- const b = ue(h), L = b ? new Date(b) : null;
384
+ LinkComponent: O,
385
+ sponsored: le,
386
+ ...J
387
+ } = r, Ce = O || "a", ce = $e(), U = We(d, p), K = U !== -1 && (U == null ? void 0 : U.isEnded) === !0, Q = U !== -1 && !K, ee = Ge(d), P = Ve(p), Ie = P !== null && P <= 2 && P > 0, de = he(p), ge = de ? new Date(de) : null, De = /* @__PURE__ */ new Date(), re = ge ? ge.getTime() - De.getTime() : null, W = re !== null && re > 0 && re < 24 * 60 * 60 * 1e3, me = (x, L, _, $, N) => _ === 1 ? `${x} ${_} ${$}` : `${L} ${_} ${N}`, Ne = () => {
388
+ if (!p) return null;
389
+ const x = he(p), L = x ? new Date(x) : null;
403
390
  if (!L) return null;
404
- const C = Le, $ = L.getTime() - C.getTime();
391
+ const _ = Te, $ = L.getTime() - _.getTime();
405
392
  if ($ <= 0) return null;
406
- const T = Math.floor($ / (1e3 * 60 * 60)), Ee = Math.floor($ % (1e3 * 60 * 60) / (1e3 * 60)), Me = Math.floor($ % (1e3 * 60) / 1e3);
407
- return { hours: T, minutes: Ee, seconds: Me };
408
- }, [Le, Ue] = te(/* @__PURE__ */ new Date());
409
- oe(() => {
410
- if (!F) return;
411
- const b = setInterval(() => {
412
- Ue(/* @__PURE__ */ new Date());
393
+ const N = Math.floor($ / (1e3 * 60 * 60)), Pe = Math.floor($ % (1e3 * 60 * 60) / (1e3 * 60)), Le = Math.floor($ % (1e3 * 60) / 1e3);
394
+ return { hours: N, minutes: Pe, seconds: Le };
395
+ }, [Te, ze] = ne(/* @__PURE__ */ new Date());
396
+ ae(() => {
397
+ if (!W) return;
398
+ const x = setInterval(() => {
399
+ ze(/* @__PURE__ */ new Date());
413
400
  }, 1e3);
414
- return () => clearInterval(b);
415
- }, [F]);
416
- const G = F ? ze() : null;
401
+ return () => clearInterval(x);
402
+ }, [W]);
403
+ const G = W ? Ne() : null;
417
404
  return /* @__PURE__ */ s(
418
- Ye,
405
+ qe,
419
406
  {
420
- ref: de,
421
- theme: i,
422
- className: N,
407
+ ref: ce,
408
+ theme: o,
409
+ className: I,
423
410
  name: e == null ? void 0 : e.name,
424
411
  "data-accessor": e == null ? void 0 : e.accessor,
425
- onClick: (b) => S(b, de),
426
- as: K,
427
- ...W ? { to: `/shop/${d}/campaign/${a}` } : { href: `/shop/${d}/campaign/${a}` },
428
- ...ce,
412
+ onClick: (x) => y(x, ce),
413
+ as: Ce,
414
+ ...O ? { to: `/shop/${c}/campaign/${a}` } : { href: `/shop/${c}/campaign/${a}` },
415
+ sponsored: le,
416
+ ...J,
429
417
  children: [
430
- /* @__PURE__ */ s(Je, { theme: i, children: [
431
- /* @__PURE__ */ n("img", { src: l }),
432
- /* @__PURE__ */ n(er, { children: g == null ? void 0 : g.map((b, L) => {
433
- var C, $;
418
+ /* @__PURE__ */ s(He, { theme: o, children: [
419
+ /* @__PURE__ */ n("img", { src: i }),
420
+ /* @__PURE__ */ n(Je, { children: g == null ? void 0 : g.map((x, L) => {
421
+ var _, $;
434
422
  return /* @__PURE__ */ n(
435
- rr,
423
+ Ke,
436
424
  {
437
- color: (C = u == null ? void 0 : u.find((T) => T.value === b)) == null ? void 0 : C.color,
438
- theme: i,
425
+ color: (_ = h == null ? void 0 : h.find((N) => N.value === x)) == null ? void 0 : _.color,
426
+ theme: o,
439
427
  children: /* @__PURE__ */ n(
440
- _e,
428
+ Se,
441
429
  {
442
- icon: ($ = u == null ? void 0 : u.find((T) => T.value === b)) == null ? void 0 : $.icon
430
+ icon: ($ = h == null ? void 0 : h.find((N) => N.value === x)) == null ? void 0 : $.icon
443
431
  }
444
432
  )
445
433
  },
@@ -447,20 +435,20 @@ const Se = (r) => {
447
435
  );
448
436
  }) })
449
437
  ] }),
450
- /* @__PURE__ */ s(Ke, { theme: i, children: [
438
+ /* @__PURE__ */ s(Xe, { theme: o, children: [
451
439
  /* @__PURE__ */ n("div", { className: "text-block-wrapper", children: /* @__PURE__ */ s("div", { className: "title-block-wrapper", children: [
452
- /* @__PURE__ */ n("div", { className: "campaign-title", children: (he = x ? D : E) == null ? void 0 : he.toUpperCase() }),
453
- /* @__PURE__ */ n("div", { className: "campaign-title-text", children: p }),
454
- h && m && /* @__PURE__ */ s("div", { className: "campaign-date", children: [
455
- Se(m),
440
+ /* @__PURE__ */ n("div", { className: "campaign-title", children: (pe = u ? D : E) == null ? void 0 : pe.toUpperCase() }),
441
+ /* @__PURE__ */ n("div", { className: "campaign-title-text", children: m }),
442
+ p && d && /* @__PURE__ */ s("div", { className: "campaign-date", children: [
443
+ ye(d),
456
444
  " - ",
457
- Se(h)
445
+ ye(p)
458
446
  ] }),
459
447
  /* @__PURE__ */ s("div", { className: "timestamp-text", children: [
460
- P > 0 && /* @__PURE__ */ s("span", { className: "listings-text", children: [
461
- P,
448
+ z > 0 && /* @__PURE__ */ s("span", { className: "listings-text", children: [
449
+ z,
462
450
  " ",
463
- P === 1 ? J : B,
451
+ z === 1 ? Y : B,
464
452
  " ",
465
453
  "∙",
466
454
  " "
@@ -468,52 +456,52 @@ const Se = (r) => {
468
456
  /* @__PURE__ */ n(
469
457
  "span",
470
458
  {
471
- className: `duration-text ${Te ? "urgent" : ""} ${ee ? "" : "starts-in"}`,
472
- children: F && G ? /* @__PURE__ */ s("div", { className: "countdown-timer", children: [
473
- R,
459
+ className: `duration-text ${Ie ? "urgent" : ""} ${Q ? "" : "starts-in"}`,
460
+ children: W && G ? /* @__PURE__ */ s("div", { className: "countdown-timer", children: [
461
+ j,
474
462
  " ",
475
463
  G.hours.toString().padStart(2, "0"),
476
464
  ":",
477
465
  G.minutes.toString().padStart(2, "0"),
478
466
  ":",
479
467
  G.seconds.toString().padStart(2, "0")
480
- ] }) : ee && !Q && z !== null && z > 0 ? pe(
481
- R,
468
+ ] }) : Q && !K && P !== null && P > 0 ? me(
469
+ j,
482
470
  Z,
483
- z,
484
- X,
485
- q
486
- ) : Q ? Y || "Završena" : !ee && re !== null && re > 0 ? pe(
471
+ P,
487
472
  H,
473
+ q
474
+ ) : K ? X || "Završena" : !Q && ee !== null && ee > 0 ? me(
475
+ A,
488
476
  V,
489
- re,
477
+ ee,
490
478
  se,
491
- A
479
+ F
492
480
  ) : null
493
481
  }
494
482
  )
495
483
  ] })
496
484
  ] }) }),
497
485
  /* @__PURE__ */ n(
498
- Ie,
486
+ er,
499
487
  {
500
488
  hasPermission: !0,
501
- image: /* @__PURE__ */ n(nr, { src: v }),
502
- imageComponent: I,
503
- themeData: le,
489
+ image: /* @__PURE__ */ n(Qe, { src: b }),
490
+ imageComponent: C,
491
+ themeData: ie,
504
492
  isActive: !0,
505
493
  isUser: !1,
506
494
  name: k,
507
495
  shopCategory: f,
508
- uuid: d,
509
- onClick: () => c(d)
496
+ uuid: c,
497
+ onClick: () => l(c)
510
498
  }
511
499
  )
512
500
  ] })
513
501
  ]
514
502
  }
515
503
  );
516
- }), ar = y.div`
504
+ }), nr = w.div`
517
505
  margin: 0 auto;
518
506
  display: flex;
519
507
  flex-direction: column;
@@ -552,7 +540,7 @@ const Se = (r) => {
552
540
  right: 0;
553
541
  }
554
542
 
555
- @media (max-width: ${U + "px"}) {
543
+ @media (max-width: ${T + "px"}) {
556
544
  gap: 1.25rem;
557
545
 
558
546
  & .scrollable-section__header {
@@ -564,13 +552,13 @@ const Se = (r) => {
564
552
  }
565
553
  }
566
554
  }
567
- `, or = y(Xe.div)`
555
+ `, tr = w(Ze.div)`
568
556
  display: grid;
569
557
  grid-template-columns: repeat(${(r) => r == null ? void 0 : r.numOfColumns}, 1fr);
570
558
  gap: 1.5rem;
571
559
  width: 100%;
572
560
 
573
- @media (max-width: ${U + "px"}) {
561
+ @media (max-width: ${T + "px"}) {
574
562
  display: flex;
575
563
  flex-wrap: nowrap;
576
564
  overflow-x: scroll;
@@ -592,37 +580,37 @@ const Se = (r) => {
592
580
  /* Safari and Chrome */
593
581
  }
594
582
  }
595
- `, Ne = j(
583
+ `, ar = R(
596
584
  ({
597
585
  icon: r,
598
586
  title: t,
599
- numOfSlides: i = 2,
587
+ numOfSlides: o = 4,
600
588
  showNavigation: a = !0,
601
- hasNextPage: d = !1,
602
- handleFetchNextPage: p = () => {
589
+ hasNextPage: c = !1,
590
+ handleFetchNextPage: m = () => {
603
591
  },
604
- children: l
605
- }, _) => {
606
- const [m, h] = te(0), [g, k] = te(1), f = ke(), v = (l == null ? void 0 : l.length) ?? 1;
607
- oe(() => {
608
- const c = () => {
609
- k(i);
592
+ children: i
593
+ }, S) => {
594
+ const [d, p] = ne(0), [g, k] = ne(1), f = ke(), b = (i == null ? void 0 : i.length) ?? 1;
595
+ ae(() => {
596
+ const l = () => {
597
+ k(o);
610
598
  };
611
- return window.addEventListener("resize", c), c(), () => window.removeEventListener("resize", c);
599
+ return window.addEventListener("resize", l), l(), () => window.removeEventListener("resize", l);
612
600
  }, []);
613
- const I = f ? l : l == null ? void 0 : l.slice(m, m + g), N = (c) => {
601
+ const C = f ? i : i == null ? void 0 : i.slice(d, d + g), I = (l) => {
614
602
  var D;
615
- (D = c == null ? void 0 : c.target) == null || D.blur();
616
- const x = m + g;
617
- x < v && h(x), x + g >= v && d && p();
618
- }, S = (c) => {
619
- var x;
620
- (x = c == null ? void 0 : c.target) == null || x.blur(), m - g >= 0 && h(m - g);
603
+ (D = l == null ? void 0 : l.target) == null || D.blur();
604
+ const u = d + g;
605
+ u < b && p(u), u + g >= b && c && m();
606
+ }, y = (l) => {
607
+ var u;
608
+ (u = l == null ? void 0 : l.target) == null || u.blur(), d - g >= 0 && p(d - g);
621
609
  };
622
- return /* @__PURE__ */ s(ar, { ref: _, children: [
610
+ return /* @__PURE__ */ s(nr, { ref: S, children: [
623
611
  /* @__PURE__ */ n("div", { className: "scrollable-section__header", children: /* @__PURE__ */ s("div", { className: "scrollable-section__title", children: [
624
- ae(r) && /* @__PURE__ */ n(
625
- _e,
612
+ te(r) && /* @__PURE__ */ n(
613
+ Se,
626
614
  {
627
615
  icon: r,
628
616
  color: "primary",
@@ -630,15 +618,15 @@ const Se = (r) => {
630
618
  className: "title__icon"
631
619
  }
632
620
  ),
633
- ae(t) && /* @__PURE__ */ s("div", { className: "title__text", children: [
621
+ te(t) && /* @__PURE__ */ s("div", { className: "title__text", children: [
634
622
  " ",
635
623
  t
636
624
  ] })
637
625
  ] }) }),
638
626
  /* @__PURE__ */ s(
639
- or,
627
+ tr,
640
628
  {
641
- numOfColumns: i,
629
+ numOfColumns: o,
642
630
  ...!f && {
643
631
  animate: {
644
632
  x: 0,
@@ -650,50 +638,41 @@ const Se = (r) => {
650
638
  }
651
639
  },
652
640
  children: [
653
- I,
654
- f && d && /* @__PURE__ */ n(qe, { onIsVisible: p })
641
+ C,
642
+ f && c && /* @__PURE__ */ n(Ae, { onIsVisible: m })
655
643
  ]
656
644
  },
657
- `scrollable-section__content-${m}`
645
+ `scrollable-section__content-${d}`
658
646
  ),
659
- a && v > g && !f && /* @__PURE__ */ s("div", { className: "scrollable-section__navigation", children: [
647
+ a && b > g && !f && /* @__PURE__ */ s("div", { className: "scrollable-section__navigation", children: [
660
648
  /* @__PURE__ */ n(
661
- xe,
649
+ ue,
662
650
  {
663
651
  icon: "angle-left",
664
652
  borderRadius: "curved",
665
653
  btnType: "tinted",
666
654
  color: "neutral",
667
655
  className: "navigation__arrow",
668
- disabled: m === 0,
669
- onClick: S
656
+ disabled: d === 0,
657
+ onClick: y
670
658
  }
671
659
  ),
672
660
  /* @__PURE__ */ n(
673
- xe,
661
+ ue,
674
662
  {
675
663
  icon: "angle-right",
676
664
  borderRadius: "curved",
677
665
  btnType: "tinted",
678
666
  color: "neutral",
679
667
  className: "navigation__arrow",
680
- disabled: m + g >= v,
681
- onClick: N
668
+ disabled: d + g >= b,
669
+ onClick: I
682
670
  }
683
671
  )
684
672
  ] })
685
673
  ] });
686
674
  }
687
- );
688
- Ne.propTypes = {
689
- icon: o.string,
690
- title: o.string,
691
- numOfSlides: o.number,
692
- numOfSlidesForMobile: o.number,
693
- handleFetchNextPage: o.func,
694
- showNavigation: o.bool
695
- };
696
- const ir = y.div`
675
+ ), or = w.div`
697
676
  display: flex;
698
677
  flex: 1;
699
678
  width: 100%;
@@ -710,34 +689,26 @@ const ir = y.div`
710
689
  border-radius: 1.25rem;
711
690
  object-fit: cover;
712
691
  }
713
- `, De = j(
692
+ `, sr = R(
714
693
  ({
715
694
  sectionName: r,
716
695
  imageUrl: t,
717
- maxHeight: i = "16.25rem",
696
+ maxHeight: o = "16.25rem",
718
697
  className: a = "",
719
- handleClick: d = () => {
698
+ handleClick: c = () => {
720
699
  }
721
- }, p) => /* @__PURE__ */ n(
722
- ir,
700
+ }, m) => /* @__PURE__ */ n(
701
+ or,
723
702
  {
724
- ref: p,
725
- maxHeight: i,
726
- onClick: d,
703
+ ref: m,
704
+ maxHeight: o,
705
+ onClick: c,
727
706
  className: `itemless-banner ${a}`,
728
707
  children: /* @__PURE__ */ n("img", { src: t, alt: `itemless-banner__${r}` })
729
708
  }
730
709
  )
731
- );
732
- De.propTypes = {
733
- sectionName: o.string,
734
- imageUrl: o.string,
735
- maxHeight: o.string,
736
- className: o.string,
737
- handleClick: o.func
738
- };
739
- const sr = y(O)`
740
- @media (max-width: ${U + "px"}) {
710
+ ), ir = w(M)`
711
+ @media (max-width: ${T + "px"}) {
741
712
  flex-direction: column;
742
713
 
743
714
  & .skeleton__image {
@@ -751,10 +722,10 @@ const sr = y(O)`
751
722
  }
752
723
  }
753
724
  }
754
- `, lr = ({ keyPrefix: r }) => /* @__PURE__ */ s(sr, { children: [
755
- /* @__PURE__ */ s(O, { children: [
725
+ `, lr = ({ keyPrefix: r }) => /* @__PURE__ */ s(ir, { children: [
726
+ /* @__PURE__ */ s(M, { children: [
756
727
  /* @__PURE__ */ n(
757
- be,
728
+ xe,
758
729
  {
759
730
  width: "13.75rem",
760
731
  height: "13.75rem",
@@ -762,20 +733,20 @@ const sr = y(O)`
762
733
  },
763
734
  `${r}-1`
764
735
  ),
765
- /* @__PURE__ */ s(ve, { noGradient: !0, children: [
766
- /* @__PURE__ */ n(w, { height: "1rem" }),
767
- /* @__PURE__ */ n(w, { height: "1.75rem" }),
768
- /* @__PURE__ */ n(w, { height: "1.25rem" }),
769
- /* @__PURE__ */ n(w, { height: "2rem" }),
770
- /* @__PURE__ */ s(O, { alignItems: "center", noGradient: !0, children: [
771
- /* @__PURE__ */ n(we, { width: "2.5rem", height: "2.5rem" }),
772
- /* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
736
+ /* @__PURE__ */ s(be, { noGradient: !0, children: [
737
+ /* @__PURE__ */ n(v, { height: "1rem" }),
738
+ /* @__PURE__ */ n(v, { height: "1.75rem" }),
739
+ /* @__PURE__ */ n(v, { height: "1.25rem" }),
740
+ /* @__PURE__ */ n(v, { height: "2rem" }),
741
+ /* @__PURE__ */ s(M, { alignItems: "center", noGradient: !0, children: [
742
+ /* @__PURE__ */ n(ve, { width: "2.5rem", height: "2.5rem" }),
743
+ /* @__PURE__ */ n(v, { width: "5rem", height: "1.25rem" })
773
744
  ] })
774
745
  ] })
775
746
  ] }),
776
- /* @__PURE__ */ s(O, { noGradient: !0, children: [
747
+ /* @__PURE__ */ s(M, { noGradient: !0, children: [
777
748
  /* @__PURE__ */ n(
778
- be,
749
+ xe,
779
750
  {
780
751
  width: "13.75rem",
781
752
  height: "13.75rem",
@@ -783,67 +754,67 @@ const sr = y(O)`
783
754
  },
784
755
  `${r}-2`
785
756
  ),
786
- /* @__PURE__ */ s(ve, { noGradient: !0, children: [
787
- /* @__PURE__ */ n(w, { height: "1rem" }),
788
- /* @__PURE__ */ n(w, { height: "1.75rem" }),
789
- /* @__PURE__ */ n(w, { height: "1.25rem" }),
790
- /* @__PURE__ */ n(w, { height: "2rem" }),
791
- /* @__PURE__ */ s(O, { alignItems: "center", noGradient: !0, children: [
792
- /* @__PURE__ */ n(we, { width: "2.5rem", height: "2.5rem" }),
793
- /* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
757
+ /* @__PURE__ */ s(be, { noGradient: !0, children: [
758
+ /* @__PURE__ */ n(v, { height: "1rem" }),
759
+ /* @__PURE__ */ n(v, { height: "1.75rem" }),
760
+ /* @__PURE__ */ n(v, { height: "1.25rem" }),
761
+ /* @__PURE__ */ n(v, { height: "2rem" }),
762
+ /* @__PURE__ */ s(M, { alignItems: "center", noGradient: !0, children: [
763
+ /* @__PURE__ */ n(ve, { width: "2.5rem", height: "2.5rem" }),
764
+ /* @__PURE__ */ n(v, { width: "5rem", height: "1.25rem" })
794
765
  ] })
795
766
  ] })
796
767
  ] })
797
768
  ] }), cr = ({
798
769
  keyPrefix: r,
799
770
  isLoading: t = !1,
800
- fallbackComponent: i = /* @__PURE__ */ n(Oe, {}),
771
+ fallbackComponent: o = /* @__PURE__ */ n(Ee, {}),
801
772
  children: a
802
- }) => /* @__PURE__ */ n(Be, { fallbackComponent: i, children: t === !0 ? /* @__PURE__ */ n(lr, { keyPrefix: r }) : a }), dr = We(tr), kr = j(
773
+ }) => /* @__PURE__ */ n(Re, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ n(lr, { keyPrefix: r }) : a }), dr = je(rr), kr = R(
803
774
  ({
804
775
  sellerType: r = "Shop",
805
776
  items: t = [],
806
- title: i,
777
+ title: o,
807
778
  icon: a,
808
- isLoading: d,
809
- onSelectCard: p = () => {
779
+ isLoading: c,
780
+ onSelectCard: m = () => {
810
781
  },
811
- onSelectShop: l = () => {
782
+ onSelectShop: i = () => {
812
783
  },
813
- getImage: _ = () => {
784
+ getImage: S = () => {
814
785
  },
815
- campaignSingleText: m,
816
- upcomingCampaignText: h,
786
+ campaignSingleText: d,
787
+ upcomingCampaignText: p,
817
788
  salesCampaignTypes: g = [],
818
789
  startsInPrefixTextPlural: k,
819
790
  startsinSuffixTextPlural: f,
820
- startsInPrefixTextSingular: v,
821
- startsinSuffixTextSingular: I,
822
- endsInPrefixTextPlural: N,
823
- endsinSuffixTextPlural: S,
824
- endsInPrefixTextSingular: c,
825
- endsinSuffixTextSingular: x,
791
+ startsInPrefixTextSingular: b,
792
+ startsinSuffixTextSingular: C,
793
+ endsInPrefixTextPlural: I,
794
+ endsinSuffixTextPlural: y,
795
+ endsInPrefixTextSingular: l,
796
+ endsinSuffixTextSingular: u,
826
797
  endedText: D,
827
- numOfSlides: E = 2,
828
- showNavigation: u = !0,
798
+ numOfSlides: E = 4,
799
+ showNavigation: h = !0,
829
800
  numberOfListingsTextSingular: V,
830
- numberOfListingsTextPlural: A,
831
- itemlessImageUrl: H,
801
+ numberOfListingsTextPlural: F,
802
+ itemlessImageUrl: A,
832
803
  itemlessLink: se,
833
804
  handleItemlessLink: Z = () => {
834
805
  },
835
806
  componentName: q,
836
- hasNextPage: R = !1,
837
- handleFetchNextPage: X = () => {
807
+ hasNextPage: j = !1,
808
+ handleFetchNextPage: H = () => {
838
809
  },
839
- LinkComponent: Y
840
- }, le) => {
841
- const P = ke(), J = Fe(() => {
842
- let B = t == null ? void 0 : t.map((e, W) => /* @__PURE__ */ n(
810
+ LinkComponent: X
811
+ }, ie) => {
812
+ const z = ke(), Y = Be(() => {
813
+ let B = t == null ? void 0 : t.map((e, O) => /* @__PURE__ */ n(
843
814
  dr,
844
815
  {
845
816
  className: "campaign-item",
846
- coverPhoto: _(
817
+ coverPhoto: S(
847
818
  e == null ? void 0 : e.coverPhoto,
848
819
  (e == null ? void 0 : e.uuid) || (e == null ? void 0 : e.campaignUuid)
849
820
  ),
@@ -859,36 +830,37 @@ const sr = y(O)`
859
830
  startDate: e == null ? void 0 : e.startDate,
860
831
  title: e == null ? void 0 : e.name,
861
832
  uuid: e == null ? void 0 : e.campaignUuid,
862
- onSelectCard: (ce, K) => p(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, K),
863
- onSelectShop: () => l(e == null ? void 0 : e.shopUuid),
864
- campaignSingleText: m,
865
- upcomingCampaignText: h,
833
+ onSelectCard: (le, J) => m(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, J),
834
+ onSelectShop: () => i(e == null ? void 0 : e.shopUuid),
835
+ campaignSingleText: d,
836
+ upcomingCampaignText: p,
866
837
  upcoming: e == null ? void 0 : e.upcoming,
867
838
  salesCampaignTypes: g,
868
839
  startsInPrefixTextPlural: k,
869
840
  startsinSuffixTextPlural: f,
870
- startsInPrefixTextSingular: v,
871
- startsinSuffixTextSingular: I,
872
- endsInPrefixTextPlural: N,
873
- endsinSuffixTextPlural: S,
874
- endsInPrefixTextSingular: c,
875
- endsinSuffixTextSingular: x,
841
+ startsInPrefixTextSingular: b,
842
+ startsinSuffixTextSingular: C,
843
+ endsInPrefixTextPlural: I,
844
+ endsinSuffixTextPlural: y,
845
+ endsInPrefixTextSingular: l,
846
+ endsinSuffixTextSingular: u,
876
847
  endedText: D,
877
848
  themeData: e == null ? void 0 : e.themeData,
878
849
  numberOfListings: e == null ? void 0 : e.numberOfListings,
879
850
  numberOfListingsTextSingular: V,
880
- numberOfListingsTextPlural: A,
851
+ numberOfListingsTextPlural: F,
881
852
  metadata: { name: q, accessor: e == null ? void 0 : e.accessor },
882
- LinkComponent: Y
853
+ LinkComponent: X,
854
+ sponsored: e == null ? void 0 : e.sponsored
883
855
  },
884
- `campaign__item__${W}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
856
+ `campaign__item__${O}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
885
857
  ));
886
- return (t == null ? void 0 : t.length) < 2 && !P ? [
858
+ return (t == null ? void 0 : t.length) < 4 && !z ? [
887
859
  ...B,
888
860
  /* @__PURE__ */ n(
889
- De,
861
+ sr,
890
862
  {
891
- imageUrl: H,
863
+ imageUrl: A,
892
864
  className: "campaign-item",
893
865
  handleClick: Z
894
866
  },
@@ -899,20 +871,20 @@ const sr = y(O)`
899
871
  return /* @__PURE__ */ n(
900
872
  cr,
901
873
  {
902
- isLoading: d,
874
+ isLoading: c,
903
875
  keyPrefix: "sales-campaign-skeleton",
904
876
  children: /* @__PURE__ */ n(
905
- Ne,
877
+ ar,
906
878
  {
907
879
  icon: a,
908
- title: i,
880
+ title: o,
909
881
  numOfSlides: E,
910
- showNavigation: u,
911
- hasNextPage: R,
912
- handleFetchNextPage: X,
913
- children: J
882
+ showNavigation: h,
883
+ hasNextPage: j,
884
+ handleFetchNextPage: H,
885
+ children: Y
914
886
  },
915
- `sales-campaign-section__${P}`
887
+ `sales-campaign-section__${z}`
916
888
  )
917
889
  }
918
890
  );