@lanaco/lnc-react-ui 4.0.205 → 4.0.207

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 (321) hide show
  1. package/BREAKPOINTS.md +148 -0
  2. package/dist/Accordion.cjs +1 -1
  3. package/dist/Accordion.js +6 -6
  4. package/dist/AccordionSummary.cjs +1 -1
  5. package/dist/AccordionSummary.js +8 -8
  6. package/dist/ActionsToolbar.cjs +15 -4
  7. package/dist/ActionsToolbar.js +58 -46
  8. package/dist/AdBannerSection.cjs +4 -4
  9. package/dist/AdBannerSection.js +5 -5
  10. package/dist/Alert.cjs +1 -1
  11. package/dist/Alert.js +1 -1
  12. package/dist/Avatar.cjs +1 -1
  13. package/dist/Avatar.js +12 -12
  14. package/dist/Badge.cjs +1 -1
  15. package/dist/Badge.js +5 -5
  16. package/dist/BannerNextSection.cjs +2 -2
  17. package/dist/BannerNextSection.js +13 -13
  18. package/dist/BannerSectionBasic.cjs +4 -4
  19. package/dist/BannerSectionBasic.js +22 -22
  20. package/dist/BannerSectionCarousel.cjs +27 -6
  21. package/dist/BannerSectionCarousel.js +71 -50
  22. package/dist/BannerSectionGrid.cjs +3 -3
  23. package/dist/BannerSectionGrid.js +13 -13
  24. package/dist/BannerSectionSimple.cjs +15 -15
  25. package/dist/BannerSectionSimple.js +40 -40
  26. package/dist/BannerSectionWithList.cjs +7 -7
  27. package/dist/BannerSectionWithList.js +20 -20
  28. package/dist/BannerSectionWithListImage.cjs +6 -9
  29. package/dist/BannerSectionWithListImage.js +17 -20
  30. package/dist/BlogCardsSponsoredSection.cjs +7 -5
  31. package/dist/BlogCardsSponsoredSection.js +32 -30
  32. package/dist/BlogCategoryCardsSection.cjs +1 -1
  33. package/dist/BlogCategoryCardsSection.js +2 -2
  34. package/dist/BlogExploreSection.cjs +4 -4
  35. package/dist/BlogExploreSection.js +60 -60
  36. package/dist/BlogImagePathSection.cjs +3 -14
  37. package/dist/BlogImagePathSection.js +27 -39
  38. package/dist/BlogListSection.cjs +6 -6
  39. package/dist/BlogListSection.js +32 -32
  40. package/dist/BlogProductCardsSection.cjs +1 -1
  41. package/dist/BlogProductCardsSection.js +3 -3
  42. package/dist/BlogShopCardsSection.cjs +1 -1
  43. package/dist/BlogShopCardsSection.js +3 -3
  44. package/dist/BlogSingleSection.cjs +3 -3
  45. package/dist/BlogSingleSection.js +12 -12
  46. package/dist/BlogsSectionDetailed.cjs +14 -6
  47. package/dist/BlogsSectionDetailed.js +53 -45
  48. package/dist/BlogsSectionLarge.cjs +13 -5
  49. package/dist/BlogsSectionLarge.js +48 -40
  50. package/dist/BlogsSectionSimple.cjs +14 -9
  51. package/dist/BlogsSectionSimple.js +43 -38
  52. package/dist/BlogsSectionSimpleCentered.cjs +17 -8
  53. package/dist/BlogsSectionSimpleCentered.js +68 -59
  54. package/dist/BlogsSectionWithFilters.cjs +16 -11
  55. package/dist/BlogsSectionWithFilters.js +43 -38
  56. package/dist/BrandHitsSection.cjs +7 -7
  57. package/dist/BrandHitsSection.js +13 -13
  58. package/dist/Breadcrumbs.cjs +1 -1
  59. package/dist/Breadcrumbs.js +16 -16
  60. package/dist/Button.cjs +1 -1
  61. package/dist/Button.js +1 -1
  62. package/dist/ButtonGroup.cjs +1 -1
  63. package/dist/ButtonGroup.js +1 -1
  64. package/dist/CalorieCalculatorSection.cjs +15 -15
  65. package/dist/CalorieCalculatorSection.js +84 -84
  66. package/dist/{CategorySimpleCard-COGlTj06.cjs → CategorySimpleCard-CIBvknos.cjs} +3 -3
  67. package/dist/{CategorySimpleCard-Em84kZzQ.js → CategorySimpleCard-CkSwvJRw.js} +8 -8
  68. package/dist/CheckBoxInput.cjs +1 -1
  69. package/dist/CheckBoxInput.js +1 -1
  70. package/dist/Chip.cjs +1 -1
  71. package/dist/Chip.js +1 -1
  72. package/dist/ColorInput.cjs +1 -1
  73. package/dist/ColorInput.js +14 -14
  74. package/dist/ConfirmationForm.cjs +1 -1
  75. package/dist/ConfirmationForm.js +5 -5
  76. package/dist/ContactSection.cjs +4 -4
  77. package/dist/ContactSection.js +72 -72
  78. package/dist/CustomLoanMapSection.cjs +3 -3
  79. package/dist/CustomLoanMapSection.js +67 -67
  80. package/dist/{CustomStyles-C86XQqBE.cjs → CustomStyles-2TQQSwtU.cjs} +1 -1
  81. package/dist/{CustomStyles-DtWxboEM.js → CustomStyles-DR4WuDUN.js} +1 -1
  82. package/dist/{DailyMotion-CpZExcrg.cjs → DailyMotion-BPdBW5Yv.cjs} +1 -1
  83. package/dist/{DailyMotion-BBcJkMo_.js → DailyMotion-P9S-WhTX.js} +1 -1
  84. package/dist/DateInput.cjs +6 -6
  85. package/dist/DateInput.js +646 -645
  86. package/dist/DecimalInput.cjs +1 -1
  87. package/dist/DecimalInput.js +1 -1
  88. package/dist/DecimalInputV2.cjs +1 -1
  89. package/dist/DecimalInputV2.js +1 -1
  90. package/dist/DetailedProductsInfinitiveSection.cjs +10 -4
  91. package/dist/DetailedProductsInfinitiveSection.js +71 -65
  92. package/dist/DetailedProductsSection.cjs +7 -3
  93. package/dist/DetailedProductsSection.js +55 -51
  94. package/dist/DetailsView.cjs +1 -1
  95. package/dist/DetailsView.js +1 -1
  96. package/dist/DoubleRangeSlider.cjs +1 -1
  97. package/dist/DoubleRangeSlider.js +1 -1
  98. package/dist/DragAndDropFile.cjs +1 -1
  99. package/dist/DragAndDropFile.js +1 -1
  100. package/dist/DragDropFiles.cjs +1 -1
  101. package/dist/DragDropFiles.js +13 -13
  102. package/dist/Drawer.cjs +1 -1
  103. package/dist/Drawer.js +1 -1
  104. package/dist/Dropdown.cjs +1 -1
  105. package/dist/Dropdown.js +2 -2
  106. package/dist/DropdownItem.cjs +1 -1
  107. package/dist/DropdownItem.js +1 -1
  108. package/dist/DropdownLookup.cjs +1 -1
  109. package/dist/DropdownLookup.js +1 -1
  110. package/dist/DropdownMenu.cjs +1 -1
  111. package/dist/DropdownMenu.js +7 -7
  112. package/dist/EditableTable.cjs +1 -1
  113. package/dist/EditableTable.js +8 -8
  114. package/dist/{Facebook-DoKw-XxT.cjs → Facebook-C8L2KR4O.cjs} +1 -1
  115. package/dist/{Facebook-BSWPEXjA.js → Facebook-vhbBr0rd.js} +1 -1
  116. package/dist/FaqSection.cjs +3 -3
  117. package/dist/FaqSection.js +52 -52
  118. package/dist/FeedbackSection.cjs +3 -3
  119. package/dist/FeedbackSection.js +15 -15
  120. package/dist/FieldOfInterestsMasonrySection.cjs +18 -12
  121. package/dist/FieldOfInterestsMasonrySection.js +107 -117
  122. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +13 -7
  123. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +64 -58
  124. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +15 -9
  125. package/dist/FieldOfInterestsWithTagsCardsSection.js +42 -36
  126. package/dist/FileInput.cjs +1 -1
  127. package/dist/FileInput.js +1 -1
  128. package/dist/{FilePlayer-D9az_lc_.cjs → FilePlayer-BVFgHY_f.cjs} +1 -1
  129. package/dist/{FilePlayer-BtGpIWnK.js → FilePlayer-CXTLAokk.js} +1 -1
  130. package/dist/FlexGridItem.cjs +1 -1
  131. package/dist/FlexGridItem.js +1 -1
  132. package/dist/FormField.cjs +1 -1
  133. package/dist/FormField.js +1 -1
  134. package/dist/FormView.cjs +1 -1
  135. package/dist/FormView.js +1 -1
  136. package/dist/GeneralWithTagsCardsSection.cjs +14 -8
  137. package/dist/GeneralWithTagsCardsSection.js +31 -25
  138. package/dist/GiftCardsSection.cjs +15 -7
  139. package/dist/GiftCardsSection.js +44 -36
  140. package/dist/HelpBannerSection.cjs +3 -3
  141. package/dist/HelpBannerSection.js +4 -4
  142. package/dist/Icon.cjs +1 -1
  143. package/dist/Icon.js +4 -4
  144. package/dist/IconButton.cjs +1 -1
  145. package/dist/IconButton.js +1 -1
  146. package/dist/{Kaltura-CK6JHUZC.cjs → Kaltura-C2fRoaEg.cjs} +1 -1
  147. package/dist/{Kaltura-BDqlEQpd.js → Kaltura-CRGK2EP7.js} +1 -1
  148. package/dist/Kanban.cjs +1 -1
  149. package/dist/Kanban.js +1 -1
  150. package/dist/KanbanActionsToolbar.cjs +1 -1
  151. package/dist/KanbanActionsToolbar.js +5 -5
  152. package/dist/KanbanView.cjs +1 -1
  153. package/dist/KanbanView.js +9 -9
  154. package/dist/Link.cjs +1 -1
  155. package/dist/Link.js +1 -1
  156. package/dist/LoanCalculatorSection.cjs +3 -3
  157. package/dist/LoanCalculatorSection.js +17 -17
  158. package/dist/LocationFinderSection.cjs +1 -1
  159. package/dist/LocationFinderSection.js +1 -1
  160. package/dist/LocationSearchSection.cjs +13 -6
  161. package/dist/LocationSearchSection.js +34 -27
  162. package/dist/MasonryGeneralCardsSection.cjs +13 -9
  163. package/dist/MasonryGeneralCardsSection.js +34 -30
  164. package/dist/MenuItem.cjs +1 -1
  165. package/dist/MenuItem.js +14 -14
  166. package/dist/{Mixcloud-zAh6j7Ha.js → Mixcloud-Cn5M-EIT.js} +1 -1
  167. package/dist/{Mixcloud-C1Boh2Bm.cjs → Mixcloud-D09BQNOt.cjs} +1 -1
  168. package/dist/Modal.cjs +1 -1
  169. package/dist/Modal.js +1 -1
  170. package/dist/MultiSelectDropdown.cjs +1 -1
  171. package/dist/MultiSelectDropdown.js +1 -1
  172. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  173. package/dist/MultiSelectDropdownLookup.js +1 -1
  174. package/dist/{Mux-C6TwZeaq.cjs → Mux-C-xD7crc.cjs} +1 -1
  175. package/dist/{Mux-BGTG_Tvc.js → Mux-C6szci3w.js} +1 -1
  176. package/dist/NestedDropdownItem.cjs +1 -1
  177. package/dist/NestedDropdownItem.js +9 -9
  178. package/dist/NestedMenuItem.cjs +1 -1
  179. package/dist/NestedMenuItem.js +7 -7
  180. package/dist/NotificationContainer.cjs +1 -1
  181. package/dist/NotificationContainer.js +1 -1
  182. package/dist/NotificationMessage.cjs +1 -1
  183. package/dist/NotificationMessage.js +5 -5
  184. package/dist/NumberInput.cjs +1 -1
  185. package/dist/NumberInput.js +8 -8
  186. package/dist/OverlayGeneralCardsSection.cjs +19 -31
  187. package/dist/OverlayGeneralCardsSection.js +51 -63
  188. package/dist/PartnerBannerSection.cjs +2 -2
  189. package/dist/PartnerBannerSection.js +2 -2
  190. package/dist/PartnerBrandsSection.cjs +2 -2
  191. package/dist/PartnerBrandsSection.js +24 -17
  192. package/dist/PartnerCardsSection.cjs +3 -3
  193. package/dist/PartnerCardsSection.js +18 -18
  194. package/dist/PartnerStatsSection.cjs +2 -2
  195. package/dist/PartnerStatsSection.js +3 -3
  196. package/dist/PasswordInput.cjs +1 -1
  197. package/dist/PasswordInput.js +19 -19
  198. package/dist/PopoverContent.cjs +1 -1
  199. package/dist/PopoverContent.js +1 -1
  200. package/dist/ProductsWithBannerSection.cjs +20 -10
  201. package/dist/ProductsWithBannerSection.js +79 -69
  202. package/dist/ProgressBar.cjs +1 -1
  203. package/dist/ProgressBar.js +5 -5
  204. package/dist/QuattroCardsSection.cjs +8 -6
  205. package/dist/QuattroCardsSection.js +19 -17
  206. package/dist/QuizSection.cjs +9 -9
  207. package/dist/QuizSection.js +56 -56
  208. package/dist/RadioInput.cjs +1 -1
  209. package/dist/RadioInput.js +1 -1
  210. package/dist/RangeSlider.cjs +1 -1
  211. package/dist/RangeSlider.js +1 -1
  212. package/dist/ReviewsSection.cjs +24 -16
  213. package/dist/ReviewsSection.js +56 -48
  214. package/dist/SalesCampaignsSection.cjs +25 -21
  215. package/dist/SalesCampaignsSection.js +248 -241
  216. package/dist/{SearchSection-DAaMecR4.js → SearchSection-BEYnWPSr.js} +69 -69
  217. package/dist/{SearchSection-B94YN_6P.cjs → SearchSection-DUY61r3k.cjs} +6 -6
  218. package/dist/SearchSection.cjs +1 -1
  219. package/dist/SearchSection.js +1 -1
  220. package/dist/Separator.cjs +1 -1
  221. package/dist/Separator.js +3 -3
  222. package/dist/SeparatorSection.cjs +3 -3
  223. package/dist/SeparatorSection.js +4 -4
  224. package/dist/ShopCardsSection.cjs +11 -5
  225. package/dist/ShopCardsSection.js +40 -34
  226. package/dist/Sidebar.cjs +1 -1
  227. package/dist/Sidebar.js +1 -1
  228. package/dist/SimpleCategoriesSection.cjs +9 -5
  229. package/dist/SimpleCategoriesSection.js +61 -57
  230. package/dist/SimpleProductsSection.cjs +44 -11
  231. package/dist/SimpleProductsSection.js +100 -67
  232. package/dist/{SoundCloud-C6R6E6Zc.cjs → SoundCloud-BsL6Onq6.cjs} +1 -1
  233. package/dist/{SoundCloud-lO8wg_0s.js → SoundCloud-Cfaj1Ze1.js} +1 -1
  234. package/dist/Spinner.cjs +1 -1
  235. package/dist/Spinner.js +1 -1
  236. package/dist/StatsSection.cjs +3 -3
  237. package/dist/StatsSection.js +11 -11
  238. package/dist/{Streamable-Dwa5ZEK4.js → Streamable-CG8_-_w7.js} +1 -1
  239. package/dist/{Streamable-DZO95CiT.cjs → Streamable-DFtyk9Dt.cjs} +1 -1
  240. package/dist/Surface.cjs +1 -1
  241. package/dist/Surface.js +1 -1
  242. package/dist/SwipeableDrawer.cjs +1 -1
  243. package/dist/SwipeableDrawer.js +1 -1
  244. package/dist/TabItem.cjs +1 -1
  245. package/dist/TabItem.js +1 -1
  246. package/dist/Table.cjs +54 -49
  247. package/dist/Table.js +417 -401
  248. package/dist/TableView.cjs +10 -2
  249. package/dist/TableView.js +84 -75
  250. package/dist/TextAreaInput.cjs +1 -1
  251. package/dist/TextAreaInput.js +1 -1
  252. package/dist/TextInput.cjs +1 -1
  253. package/dist/TextInput.js +1 -1
  254. package/dist/ThemeProvider.cjs +4 -4
  255. package/dist/ThemeProvider.js +11 -10
  256. package/dist/TimeInput.cjs +1 -1
  257. package/dist/TimeInput.js +1 -1
  258. package/dist/Toggle.cjs +1 -1
  259. package/dist/Toggle.js +1 -1
  260. package/dist/ToggleSection.cjs +7 -7
  261. package/dist/ToggleSection.js +38 -38
  262. package/dist/TreeMenuSeparator.cjs +1 -1
  263. package/dist/TreeMenuSeparator.js +3 -3
  264. package/dist/{Twitch-B17oKtD0.cjs → Twitch-BIUEEDiE.cjs} +1 -1
  265. package/dist/{Twitch-C73-dwWo.js → Twitch-CbU_0Tx9.js} +1 -1
  266. package/dist/UploadedFile.cjs +1 -1
  267. package/dist/UploadedFile.js +7 -7
  268. package/dist/UrgentSaleProductsSection.cjs +10 -4
  269. package/dist/UrgentSaleProductsSection.js +67 -61
  270. package/dist/{Vidyard-s1MMcaRm.cjs → Vidyard-QkjVIros.cjs} +1 -1
  271. package/dist/{Vidyard-B6GdBHsM.js → Vidyard-S6Fl_F78.js} +1 -1
  272. package/dist/{Vimeo-kzHz4Gco.js → Vimeo-5bkeYCV4.js} +1 -1
  273. package/dist/{Vimeo-J1l_SU2E.cjs → Vimeo-B5jsifNT.cjs} +1 -1
  274. package/dist/{Wistia-CudQyDHM.cjs → Wistia-dpbMmx23.cjs} +1 -1
  275. package/dist/{Wistia-w4jnqd7y.js → Wistia-gOZBV0XZ.js} +1 -1
  276. package/dist/{YouTube-BAYKouHS.cjs → YouTube-BfZRCB6O.cjs} +1 -1
  277. package/dist/{YouTube-BKyipPZx.js → YouTube-XoIB4ATQ.js} +1 -1
  278. package/dist/breakpoints-CcVm-gVm.cjs +1 -0
  279. package/dist/breakpoints-ff0SIcV3.js +91 -0
  280. package/dist/{index-u_XFwsvc.js → index-9KyU46J0.js} +11 -9
  281. package/dist/{index-CSgGox95.cjs → index-B9c6y2J5.cjs} +3 -3
  282. package/dist/{index-CS4w87SW.cjs → index-BEgD9vNo.cjs} +9 -9
  283. package/dist/{index-BC2PHcI1.js → index-BWeXujWl.js} +10 -10
  284. package/dist/index-B_ilx3wM.cjs +16 -0
  285. package/dist/{index-B22BZVBG.js → index-BvMY2TbK.js} +1 -1
  286. package/dist/{index-CwMCk9wV.js → index-BzSWu-7v.js} +67 -67
  287. package/dist/{index-TIqKd2Dv.js → index-C-uOIDDa.js} +2 -2
  288. package/dist/{index-bihqNqQk.js → index-C4HycAPS.js} +6 -6
  289. package/dist/{index-BWE-RCPy.cjs → index-CBZ-jNah.cjs} +4 -4
  290. package/dist/{index-D_5jNP-o.cjs → index-CUaeb_TU.cjs} +5 -5
  291. package/dist/{index-DK8dqEUQ.js → index-CoQ9APCD.js} +11 -11
  292. package/dist/{index-BAJkosVg.cjs → index-CsTfXxpp.cjs} +2 -2
  293. package/dist/{index-D0JDnm9b.cjs → index-Dc0EEBRW.cjs} +4 -4
  294. package/dist/{index-uwl7BjRF.cjs → index-DsINTjQk.cjs} +1 -1
  295. package/dist/{index-Cm414y95.js → index-L_Va5-wK.js} +13 -13
  296. package/dist/{index-CBMsUFkS.js → index-hC-E71GE.js} +11 -11
  297. package/dist/{index-BFc3nxYZ.cjs → index-of6WydGq.cjs} +4 -2
  298. package/dist/{index-BASX-BjS.js → index-rYUwBlpp.js} +63 -63
  299. package/dist/{index-D0IYt1s3.cjs → index-uCWKRzoS.cjs} +2 -2
  300. package/dist/{index-CRk3vcd4.cjs → index-vQOR22Py.cjs} +4 -4
  301. package/dist/{index-D-86mDtn.js → index-yARaIaLj.js} +29 -29
  302. package/dist/index.cjs +1 -1
  303. package/dist/index.js +213 -194
  304. package/dist/{style-BTTXJFJN.cjs → style-AYc9hnFj.cjs} +14 -2
  305. package/dist/{style-neMbLWE6.js → style-BUyFad_y.js} +4 -4
  306. package/dist/{style-tw6KjI2J.js → style-Bq3rMbnN.js} +16 -4
  307. package/dist/{style-B4kAj6YU.cjs → style-DC05rdyx.cjs} +5 -5
  308. package/dist/{tag-Dm8CW4TM.js → tag-Bi8gg6hJ.js} +12 -12
  309. package/dist/{tag-UQjq2_Ba.cjs → tag-DSnhWWHE.cjs} +5 -5
  310. package/dist/{utils-DtEfC-TX.js → theme-Befg4g_L.js} +19 -378
  311. package/dist/theme-Q3WOGKWQ.cjs +1 -0
  312. package/dist/{useDetectMobile-Bkvj0VMa.js → useDetectMobile-CcVo3PNi.js} +1 -1
  313. package/dist/useDetectMobile-DYV6V1yw.cjs +1 -0
  314. package/dist/utils-B2fsQ6PS.js +334 -0
  315. package/dist/utils-CITgSxXe.cjs +51 -0
  316. package/package.json +1 -1
  317. package/dist/consts-BuFChS64.js +0 -7
  318. package/dist/consts-goSZX3xP.cjs +0 -1
  319. package/dist/index-D-3I_Ppj.cjs +0 -16
  320. package/dist/useDetectMobile-zkbzoOGV.cjs +0 -1
  321. package/dist/utils-RnrgDDZP.cjs +0 -51
@@ -1,13 +1,13 @@
1
- import { jsxs as a, jsx as r, Fragment as S } from "react/jsx-runtime";
2
- import { forwardRef as w, Suspense as C, memo as y, useMemo as N } from "react";
1
+ import { jsxs as a, jsx as r, Fragment as $ } from "react/jsx-runtime";
2
+ import { forwardRef as v, Suspense as C, memo as y, useMemo as N } from "react";
3
3
  import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as $ } from "./consts-BuFChS64.js";
5
- import { u as z } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { t as M, m as P, b as L, g as W } from "./utils-DtEfC-TX.js";
7
- import { useTheme as E } from "./ThemeProvider.js";
8
- import { P as I } from "./index-B22BZVBG.js";
9
- import { s as j, S as x, b as f, c as b, a as o } from "./style-BwQ4djFC.js";
10
- const G = d.div`
4
+ import { d as f } from "./breakpoints-ff0SIcV3.js";
5
+ import { u as z } from "./useDetectMobile-CcVo3PNi.js";
6
+ import { t as M, n as P, c as W, g as L } from "./utils-B2fsQ6PS.js";
7
+ import { useTheme as j } from "./ThemeProvider.js";
8
+ import { P as G } from "./index-BvMY2TbK.js";
9
+ import { s as E, S as F, b, c as w, a as o } from "./style-BwQ4djFC.js";
10
+ const I = d.div`
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  color: var(--darkest-950);
@@ -17,20 +17,28 @@ const G = d.div`
17
17
  font-weight: 600;
18
18
  font-size: 1.5rem;
19
19
  }
20
- `, F = d.div`
20
+ `, T = d.div`
21
21
  display: grid;
22
22
  grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
23
23
  gap: 1.25rem;
24
24
 
25
- @media (max-width: ${$ + "px"}) {
25
+ @media ${f("M")} {
26
+ grid-template-columns: repeat(2, 1fr);
27
+ }
28
+
29
+ @media ${f("S")} {
30
+ grid-template-columns: repeat(2, 1fr);
31
+ }
32
+
33
+ @media ${f("XS")} {
26
34
  grid-template-columns: repeat(1, 1fr);
27
35
  }
28
- `, T = d.a`
36
+ `, A = d.a`
29
37
  padding-top: 5rem;
30
38
  overflow: hidden;
31
39
  text-decoration: none;
32
40
  color: var(--gray-950);
33
- `, A = d.div`
41
+ `, V = d.div`
34
42
  position: relative;
35
43
  cursor: pointer;
36
44
  display: flex;
@@ -86,15 +94,15 @@ const G = d.div`
86
94
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
87
95
  0px 4px 6px -2px rgba(0, 0, 0, 0.05);
88
96
  }
89
- `, v = (t, n) => W(
97
+ `, R = (t, n) => L(
90
98
  t.theme,
91
99
  "StarRating",
92
100
  t.color,
93
101
  t.disabled === !0 ? "disabled" : "enabled",
94
102
  n
95
- ), B = d.div`
96
- font-size: ${(t) => v(t, "fontSize")};
97
- line-height: ${(t) => v(t, "lineHeight")};
103
+ ), q = d.div`
104
+ font-size: ${(t) => R(t, "fontSize")};
105
+ line-height: ${(t) => R(t, "lineHeight")};
98
106
  line-height: 1.5rem;
99
107
  width: fit-content;
100
108
  display: flex;
@@ -113,7 +121,7 @@ const G = d.div`
113
121
  line-height: 1.5rem;
114
122
  color: ${(t) => t.color};
115
123
  }
116
- `, V = d.span`
124
+ `, B = d.span`
117
125
  position: absolute;
118
126
  z-index: 1;
119
127
  display: block;
@@ -122,19 +130,19 @@ const G = d.div`
122
130
  overflow: hidden;
123
131
  width: ${(t) => t.width}%;
124
132
 
125
- color: ${(t) => L(
133
+ color: ${(t) => W(
126
134
  t.theme,
127
135
  "StarRating",
128
136
  t.color,
129
137
  t.disabled === !0 ? "disabled" : "enabled",
130
138
  "filledColor"
131
139
  )};
132
- `, _ = d.span`
140
+ `, D = d.span`
133
141
  padding: 0;
134
142
  display: block;
135
143
  z-index: 0;
136
144
  color: ${(t) => t.color};
137
- `, q = w((t, n) => {
145
+ `, H = v((t, n) => {
138
146
  const {
139
147
  rating: l = 0,
140
148
  reviewCount: i = null,
@@ -144,7 +152,7 @@ const G = d.div`
144
152
  style: p = {},
145
153
  color: c = "primary",
146
154
  size: u = "large"
147
- } = t, { theme: e } = E(), h = {
155
+ } = t, { theme: e } = j(), h = {
148
156
  theme: e,
149
157
  color: c,
150
158
  size: u,
@@ -152,7 +160,7 @@ const G = d.div`
152
160
  disabled: s
153
161
  }, k = l / 5 * 100;
154
162
  return /* @__PURE__ */ a(
155
- B,
163
+ q,
156
164
  {
157
165
  ref: n,
158
166
  tabIndex: m,
@@ -161,7 +169,7 @@ const G = d.div`
161
169
  children: [
162
170
  /* @__PURE__ */ a("div", { className: "rating", children: [
163
171
  /* @__PURE__ */ r(
164
- V,
172
+ B,
165
173
  {
166
174
  className: "filled-stars",
167
175
  ...h,
@@ -169,13 +177,13 @@ const G = d.div`
169
177
  children: "★★★★★"
170
178
  }
171
179
  ),
172
- /* @__PURE__ */ r(_, { ...h, children: "★★★★★" })
180
+ /* @__PURE__ */ r(D, { ...h, children: "★★★★★" })
173
181
  ] }),
174
182
  !isNaN(i) && Number.isFinite(i) && /* @__PURE__ */ r("div", { className: "review-count", children: `(${i.toLocaleString()})` })
175
183
  ]
176
184
  }
177
185
  );
178
- }), D = w((t, n) => {
186
+ }), X = v((t, n) => {
179
187
  const {
180
188
  image: l,
181
189
  text: i,
@@ -187,7 +195,7 @@ const G = d.div`
187
195
  LinkComponent: c
188
196
  } = t;
189
197
  return /* @__PURE__ */ r(
190
- T,
198
+ A,
191
199
  {
192
200
  ref: n,
193
201
  className: "review-card",
@@ -198,32 +206,32 @@ const G = d.div`
198
206
  } : {
199
207
  href: `/${m}`
200
208
  },
201
- children: /* @__PURE__ */ a(A, { children: [
202
- /* @__PURE__ */ r(I, { src: l }),
209
+ children: /* @__PURE__ */ a(V, { children: [
210
+ /* @__PURE__ */ r(G, { src: l }),
203
211
  /* @__PURE__ */ a("div", { className: "cont", children: [
204
212
  /* @__PURE__ */ r("span", { className: "cont-title", children: s }),
205
213
  /* @__PURE__ */ r("div", { className: "cont-text", children: i })
206
214
  ] }),
207
- /* @__PURE__ */ r(q, { color: "warning", rating: g })
215
+ /* @__PURE__ */ r(H, { color: "warning", rating: g })
208
216
  ] })
209
217
  }
210
218
  );
211
- }), H = d(x)`
212
- @media (max-width: ${$ + "px"}) {
219
+ }), x = d(F)`
220
+ @media ${f("S")} {
213
221
  flex-direction: column;
214
222
 
215
223
  & > div {
216
224
  flex-direction: column;
217
225
 
218
226
  & > div {
219
- ${j}
227
+ ${E}
220
228
  }
221
229
  }
222
230
  }
223
- `, O = ({ keyPrefix: t }) => /* @__PURE__ */ a(H, { children: [
224
- /* @__PURE__ */ a(f, { children: [
231
+ `, J = ({ keyPrefix: t }) => /* @__PURE__ */ a(x, { children: [
232
+ /* @__PURE__ */ a(b, { children: [
225
233
  /* @__PURE__ */ r(
226
- b,
234
+ w,
227
235
  {
228
236
  height: "6.25rem",
229
237
  width: "6.25rem",
@@ -242,9 +250,9 @@ const G = d.div`
242
250
  }
243
251
  )
244
252
  ] }, `${t}-1`),
245
- /* @__PURE__ */ a(f, { noGradient: !0, children: [
253
+ /* @__PURE__ */ a(b, { noGradient: !0, children: [
246
254
  /* @__PURE__ */ r(
247
- b,
255
+ w,
248
256
  {
249
257
  height: "6.25rem",
250
258
  width: "6.25rem",
@@ -263,9 +271,9 @@ const G = d.div`
263
271
  }
264
272
  )
265
273
  ] }, `${t}-2`),
266
- /* @__PURE__ */ a(f, { noGradient: !0, children: [
274
+ /* @__PURE__ */ a(b, { noGradient: !0, children: [
267
275
  /* @__PURE__ */ r(
268
- b,
276
+ w,
269
277
  {
270
278
  height: "6.25rem",
271
279
  width: "6.25rem",
@@ -284,12 +292,12 @@ const G = d.div`
284
292
  }
285
293
  )
286
294
  ] }, `${t}-3`)
287
- ] }), X = ({
295
+ ] }), K = ({
288
296
  keyPrefix: t,
289
297
  isLoading: n = !1,
290
- fallbackComponent: l = /* @__PURE__ */ r(S, {}),
298
+ fallbackComponent: l = /* @__PURE__ */ r($, {}),
291
299
  children: i
292
- }) => /* @__PURE__ */ r(C, { fallbackComponent: l, children: n === !0 ? /* @__PURE__ */ r(O, { keyPrefix: t }) : i }), R = y(D), ie = w((t, n) => {
300
+ }) => /* @__PURE__ */ r(C, { fallbackComponent: l, children: n === !0 ? /* @__PURE__ */ r(J, { keyPrefix: t }) : i }), S = y(X), ie = v((t, n) => {
293
301
  const {
294
302
  title: l = "Electronics reviews",
295
303
  items: i,
@@ -298,8 +306,8 @@ const G = d.div`
298
306
  },
299
307
  isLoading: g = !1,
300
308
  LinkComponent: p
301
- } = t, c = z(), u = N(() => /* @__PURE__ */ r(S, { children: c === !0 ? i == null ? void 0 : i.map((e, h) => /* @__PURE__ */ r(
302
- R,
309
+ } = t, c = z(), u = N(() => /* @__PURE__ */ r($, { children: c === !0 ? i == null ? void 0 : i.map((e, h) => /* @__PURE__ */ r(
310
+ S,
303
311
  {
304
312
  text: e == null ? void 0 : e.text,
305
313
  title: e == null ? void 0 : e.title,
@@ -311,7 +319,7 @@ const G = d.div`
311
319
  },
312
320
  h
313
321
  )) : i == null ? void 0 : i.slice(0, s).map((e, h) => /* @__PURE__ */ r(
314
- R,
322
+ S,
315
323
  {
316
324
  text: e == null ? void 0 : e.text,
317
325
  title: e == null ? void 0 : e.title,
@@ -323,9 +331,9 @@ const G = d.div`
323
331
  },
324
332
  h
325
333
  )) }), [i, c, s]);
326
- return /* @__PURE__ */ a(G, { ref: n, children: [
334
+ return /* @__PURE__ */ a(I, { ref: n, children: [
327
335
  /* @__PURE__ */ r("div", { className: "container-title", children: l }),
328
- /* @__PURE__ */ r(X, { isLoading: g, keyPrefix: "reviews-skeleton", children: /* @__PURE__ */ r(F, { limit: s, children: u }) })
336
+ /* @__PURE__ */ r(K, { isLoading: g, keyPrefix: "reviews-skeleton", children: /* @__PURE__ */ r(T, { limit: s, children: u }) })
329
337
  ] });
330
338
  });
331
339
  export {
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),c=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./utils-RnrgDDZP.cjs"),L=require("./consts-goSZX3xP.cjs"),pe=require("./Icon.cjs"),ce=require("./ShopAvatar-CV3lj34D.cjs"),_e=require("./Badge.cjs"),ue=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),de=require("./IconButton.cjs"),me=require("./useDetectMobile-zkbzoOGV.cjs"),$e=require("./index-CX2A-q39.cjs"),ke=require("./motion-B_VPZaJq.cjs"),a=require("./style-BAcV7F53.cjs"),Ie=S.styled.a`
1
+ "use strict";const r=require("react/jsx-runtime"),l=require("react"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./utils-CITgSxXe.cjs"),N=require("./breakpoints-CcVm-gVm.cjs"),ue=require("./Icon.cjs"),ce=require("./ShopAvatar-CV3lj34D.cjs"),$e=require("./Badge.cjs"),me=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),de=require("./IconButton.cjs"),pe=require("./useDetectMobile-DYV6V1yw.cjs"),ke=require("./index-CX2A-q39.cjs"),_e=require("./motion-B_VPZaJq.cjs"),a=require("./style-BAcV7F53.cjs"),Ce=y.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  cursor: pointer;
@@ -19,12 +19,12 @@
19
19
  background: #ffffff;
20
20
  `}
21
21
 
22
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
22
+ @media ${N.down("S")} {
23
23
  width: 100%;
24
24
  gap: 0;
25
25
  }
26
- `,Ce=S.styled.div`
27
- border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,"edged")};
26
+ `,Ie=y.styled.div`
27
+ border-radius: ${n=>f.getBorderRadiusValueWithUnits(n.theme,"edged")};
28
28
  cursor: pointer;
29
29
 
30
30
  position: relative;
@@ -44,10 +44,10 @@
44
44
  }
45
45
  }
46
46
 
47
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
47
+ @media ${N.down("S")} {
48
48
  width: 14.5rem;
49
49
  }
50
- `,Pe=S.styled.div`
50
+ `,De=y.styled.div`
51
51
  flex: 1;
52
52
  display: flex;
53
53
  flex-direction: column;
@@ -130,7 +130,7 @@
130
130
  color: var(--gray-600, #676e79);
131
131
  }
132
132
 
133
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
133
+ @media ${N.down("S")} {
134
134
  padding: 1rem 0 0 0;
135
135
 
136
136
  & .campaign-title-text {
@@ -161,7 +161,7 @@
161
161
  ${t?"":"flex-wrap: nowrap;"}
162
162
  ${n?"align-items: center;":""}
163
163
  ${s?"justify-content: center;":""}
164
- `,De=S.styled.a`
164
+ `,Ne=y.styled.a`
165
165
  text-decoration: none;
166
166
  color: var(--gray-950);
167
167
  ${n=>n.hasPermission===!0&&"cursor: pointer"};
@@ -185,7 +185,7 @@
185
185
  font-weight: 500;
186
186
  font-size: 1rem;
187
187
  line-height: 1.5rem;
188
- border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,"slight")};
188
+ border-radius: ${n=>f.getBorderRadiusValueWithUnits(n.theme,"slight")};
189
189
  transition: all 0.25s ease;
190
190
  & .description {
191
191
  font-size: 0.85rem;
@@ -233,18 +233,18 @@
233
233
  background-color: var(--gray-95080, #14161acc);
234
234
  }
235
235
 
236
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
236
+ @media ${N.down("S")} {
237
237
  padding: 0;
238
238
  font-size: 0.875rem;
239
239
  }
240
- `,Le=S.styled.div`
240
+ `,Pe=y.styled.div`
241
241
  position: absolute;
242
242
  top: 0.5rem;
243
243
  ${n=>n.alignToLeft===!0?"left: 0.5rem;":"right: 0.5rem;"}
244
244
  display: flex;
245
245
  gap: 0.25rem;
246
- `,Ne=S.styled.div`
247
- border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,n.borderRadius||"slight")};
246
+ `,Te=y.styled.div`
247
+ border-radius: ${n=>f.getBorderRadiusValueWithUnits(n.theme,n.borderRadius||"slight")};
248
248
  background-color: ${n=>n==null?void 0:n.color};
249
249
  color: white;
250
250
  height: 1.5rem;
@@ -259,7 +259,7 @@
259
259
  & i {
260
260
  font-size: 0.813rem;
261
261
  }
262
- `,Ee=c.forwardRef(({src:n,...t},s)=>{const o=c.useRef();return c.useEffect(()=>{var p;const d=i=>{i.target.src=ce.DefaultShopImage,i.onerror=null};return(p=o==null?void 0:o.current)==null||p.addEventListener("error",d),()=>{var i;(i=o==null?void 0:o.current)==null||i.removeEventListener("error",d)}},[]),r.jsx(c.Fragment,{ref:s,children:w.isDefinedNotEmptyString(n)?r.jsx("img",{ref:o,src:n,...t}):r.jsx("img",{src:ce.DefaultShopImage,...t})})}),Te=n=>{const{uuid:t,hasPermission:s=!0,isUser:o,image:d,imageComponent:p,name:i,notifications:_=0,color:g="primary",size:u="large",style:h,disabled:k,onClick:f=()=>{},isActive:v,className:I,shopCategory:C,themeData:j,LinkComponent:l}=n,x=l||"a",z={theme:ue.useTheme(),color:g,size:u,style:h,disabled:k};return c.createElement(De,{onClick:m=>{m==null||m.preventDefault(),m.stopPropagation(),s===!0&&(f==null||f())},...z,key:i,className:`profile-item ${I}`,hasPermission:s,isActive:v,themeColor:(j==null?void 0:j.code)||"transparent",as:x,...l?{to:`/${o?"user":"shop"}/${t}`}:{href:`/${o?"user":"shop"}/${t}`}},r.jsx("div",{className:"logo-wrapper",children:w.isDefined(p)?p:d}),r.jsxs("div",{children:[r.jsx("div",{className:"name",children:i}),!o&&r.jsx("div",{className:"description",children:C}),_>0&&r.jsx("div",{className:"notifications-number",children:r.jsx(_e,{className:"badge",color:"danger",size:"small",children:_>99?"99+":_})})]}))},he=n=>{if(n!==void 0){const t=new Date(n),s=t.getFullYear(),o=t.getMonth()+1;return`${String(t.getDate()).padStart(2)}. ${o}. ${s}.`}},ze=c.forwardRef((n,t)=>{var le;const s=ue.useTheme(),{uuid:o,shopUuid:d,title:p="",coverPhoto:i,onSelect:_,startDate:g,endDate:u,salesPackages:h,shopName:k,shopCategory:f,shopImage:v,shopImageComponent:I,className:C,onSelectCard:j=()=>{},onSelectShop:l=()=>{},upcoming:x=!1,upcomingCampaignText:P,campaignSingleText:z,salesCampaignTypes:m=[],startsInPrefixTextPlural:W,startsinSuffixTextPlural:Z,startsInPrefixTextSingular:V,startsinSuffixTextSingular:re,endsInPrefixTextPlural:X,endsinSuffixTextPlural:G,endsInPrefixTextSingular:M,endsinSuffixTextSingular:F,endedText:A,themeData:ne,numberOfListings:N,numberOfListingsTextSingular:H,numberOfListingsTextPlural:U,metadata:e,LinkComponent:q,sponsored:te,...Y}=n,fe=q||"a",oe=c.useRef(),R=w.getDayNumberPrecise(g,u),J=R!==-1&&(R==null?void 0:R.isEnded)===!0,K=R!==-1&&!J,Q=w.calcDaysUntil(g),E=w.calcDaysRemaining(u),xe=E!==null&&E<=2&&E>0,se=w.normalizeDate(u),ae=se?new Date(se):null,we=new Date,ee=ae?ae.getTime()-we.getTime():null,B=ee!==null&&ee>0&&ee<24*60*60*1e3,ie=(b,T,$,y,D)=>$===1?`${b} ${$} ${y}`:`${T} ${$} ${D}`,be=()=>{if(!u)return null;const b=w.normalizeDate(u),T=b?new Date(b):null;if(!T)return null;const $=ve,y=T.getTime()-$.getTime();if(y<=0)return null;const D=Math.floor(y/(1e3*60*60)),je=Math.floor(y%(1e3*60*60)/(1e3*60)),ye=Math.floor(y%(1e3*60)/1e3);return{hours:D,minutes:je,seconds:ye}},[ve,Se]=c.useState(new Date);c.useEffect(()=>{if(!B)return;const b=setInterval(()=>{Se(new Date)},1e3);return()=>clearInterval(b)},[B]);const O=B?be():null;return r.jsxs(Ie,{ref:oe,theme:s,className:C,name:e==null?void 0:e.name,"data-accessor":e==null?void 0:e.accessor,onClick:b=>j(b,oe),as:fe,...q?{to:`/shop/${d}/campaign/${o}`}:{href:`/shop/${d}/campaign/${o}`},sponsored:te,...Y,children:[r.jsxs(Ce,{theme:s,children:[r.jsx("img",{src:i}),r.jsx(Le,{children:h==null?void 0:h.map((b,T)=>{var $,y;return r.jsx(Ne,{color:($=m==null?void 0:m.find(D=>D.value===b))==null?void 0:$.color,theme:s,children:r.jsx(pe,{icon:(y=m==null?void 0:m.find(D=>D.value===b))==null?void 0:y.icon})},`package__${T}`)})})]}),r.jsxs(Pe,{theme:s,children:[r.jsx("div",{className:"text-block-wrapper",children:r.jsxs("div",{className:"title-block-wrapper",children:[r.jsx("div",{className:"campaign-title",children:(le=x?P:z)==null?void 0:le.toUpperCase()}),r.jsx("div",{className:"campaign-title-text",children:p}),u&&g&&r.jsxs("div",{className:"campaign-date",children:[he(g)," - ",he(u)]}),r.jsxs("div",{className:"timestamp-text",children:[N>0&&r.jsxs("span",{className:"listings-text",children:[N," ",N===1?H:U," ","∙"," "]}),r.jsx("span",{className:`duration-text ${xe?"urgent":""} ${K?"":"starts-in"}`,children:B&&O?r.jsxs("div",{className:"countdown-timer",children:[M," ",O.hours.toString().padStart(2,"0"),":",O.minutes.toString().padStart(2,"0"),":",O.seconds.toString().padStart(2,"0")]}):K&&!J&&E!==null&&E>0?ie(M,X,E,F,G):J?A||"Završena":!K&&Q!==null&&Q>0?ie(V,W,Q,re,Z):null})]})]})}),r.jsx(Te,{hasPermission:!0,image:r.jsx(Ee,{src:v}),imageComponent:I,themeData:ne,isActive:!0,isUser:!1,name:k,shopCategory:f,uuid:d,onClick:()=>l(d)})]})]})}),Re=S.styled.div`
262
+ `,Le=l.forwardRef(({src:n,...t},s)=>{const o=l.useRef();return l.useEffect(()=>{var h;const d=g=>{g.target.src=ce.DefaultShopImage,g.onerror=null};return(h=o==null?void 0:o.current)==null||h.addEventListener("error",d),()=>{var g;(g=o==null?void 0:o.current)==null||g.removeEventListener("error",d)}},[]),r.jsx(l.Fragment,{ref:s,children:f.isDefinedNotEmptyString(n)?r.jsx("img",{ref:o,src:n,...t}):r.jsx("img",{src:ce.DefaultShopImage,...t})})}),ze=n=>{const{uuid:t,hasPermission:s=!0,isUser:o,image:d,imageComponent:h,name:g,notifications:u=0,color:w="primary",size:i="large",style:v,disabled:m,onClick:$=()=>{},isActive:S,className:j,shopCategory:P,themeData:k,LinkComponent:C}=n,c=C||"a",I={theme:me.useTheme(),color:w,size:i,style:v,disabled:m};return l.createElement(Ne,{onClick:p=>{p==null||p.preventDefault(),p.stopPropagation(),s===!0&&($==null||$())},...I,key:g,className:`profile-item ${j}`,hasPermission:s,isActive:S,themeColor:(k==null?void 0:k.code)||"transparent",as:c,...C?{to:`/${o?"user":"shop"}/${t}`}:{href:`/${o?"user":"shop"}/${t}`}},r.jsx("div",{className:"logo-wrapper",children:f.isDefined(h)?h:d}),r.jsxs("div",{children:[r.jsx("div",{className:"name",children:g}),!o&&r.jsx("div",{className:"description",children:P}),u>0&&r.jsx("div",{className:"notifications-number",children:r.jsx($e,{className:"badge",color:"danger",size:"small",children:u>99?"99+":u})})]}))},he=n=>{if(n!==void 0){const t=new Date(n),s=t.getFullYear(),o=t.getMonth()+1;return`${String(t.getDate()).padStart(2)}. ${o}. ${s}.`}},Re=l.forwardRef((n,t)=>{var le;const s=me.useTheme(),{uuid:o,shopUuid:d,title:h="",coverPhoto:g,onSelect:u,startDate:w,endDate:i,salesPackages:v,shopName:m,shopCategory:$,shopImage:S,shopImageComponent:j,className:P,onSelectCard:k=()=>{},onSelectShop:C=()=>{},upcoming:c=!1,upcomingCampaignText:x,campaignSingleText:I,salesCampaignTypes:p=[],startsInPrefixTextPlural:B,startsinSuffixTextPlural:V,startsInPrefixTextSingular:G,startsinSuffixTextSingular:re,endsInPrefixTextPlural:F,endsinSuffixTextPlural:A,endsInPrefixTextSingular:U,endsinSuffixTextSingular:H,endedText:Y,themeData:ne,numberOfListings:L,numberOfListingsTextSingular:Z,numberOfListingsTextPlural:q,metadata:e,LinkComponent:W,sponsored:te,...J}=n,fe=W||"a",oe=l.useRef(),E=f.getDayNumberPrecise(w,i),K=E!==-1&&(E==null?void 0:E.isEnded)===!0,Q=E!==-1&&!K,X=f.calcDaysUntil(w),z=f.calcDaysRemaining(i),xe=z!==null&&z<=2&&z>0,se=f.normalizeDate(i),ae=se?new Date(se):null,be=new Date,ee=ae?ae.getTime()-be.getTime():null,M=ee!==null&&ee>0&&ee<24*60*60*1e3,ie=(b,R,D,_,T)=>D===1?`${b} ${D} ${_}`:`${R} ${D} ${T}`,we=()=>{if(!i)return null;const b=f.normalizeDate(i),R=b?new Date(b):null;if(!R)return null;const D=ve,_=R.getTime()-D.getTime();if(_<=0)return null;const T=Math.floor(_/(1e3*60*60)),je=Math.floor(_%(1e3*60*60)/(1e3*60)),ye=Math.floor(_%(1e3*60)/1e3);return{hours:T,minutes:je,seconds:ye}},[ve,Se]=l.useState(new Date);l.useEffect(()=>{if(!M)return;const b=setInterval(()=>{Se(new Date)},1e3);return()=>clearInterval(b)},[M]);const O=M?we():null;return r.jsxs(Ce,{ref:oe,theme:s,className:P,name:e==null?void 0:e.name,"data-accessor":e==null?void 0:e.accessor,onClick:b=>k(b,oe),as:fe,...W?{to:`/shop/${d}/campaign/${o}`}:{href:`/shop/${d}/campaign/${o}`},sponsored:te,...J,children:[r.jsxs(Ie,{theme:s,children:[r.jsx("img",{src:g}),r.jsx(Pe,{children:v==null?void 0:v.map((b,R)=>{var D,_;return r.jsx(Te,{color:(D=p==null?void 0:p.find(T=>T.value===b))==null?void 0:D.color,theme:s,children:r.jsx(ue,{icon:(_=p==null?void 0:p.find(T=>T.value===b))==null?void 0:_.icon})},`package__${R}`)})})]}),r.jsxs(De,{theme:s,children:[r.jsx("div",{className:"text-block-wrapper",children:r.jsxs("div",{className:"title-block-wrapper",children:[r.jsx("div",{className:"campaign-title",children:(le=c?x:I)==null?void 0:le.toUpperCase()}),r.jsx("div",{className:"campaign-title-text",children:h}),i&&w&&r.jsxs("div",{className:"campaign-date",children:[he(w)," - ",he(i)]}),r.jsxs("div",{className:"timestamp-text",children:[L>0&&r.jsxs("span",{className:"listings-text",children:[L," ",L===1?Z:q," ","∙"," "]}),r.jsx("span",{className:`duration-text ${xe?"urgent":""} ${Q?"":"starts-in"}`,children:M&&O?r.jsxs("div",{className:"countdown-timer",children:[U," ",O.hours.toString().padStart(2,"0"),":",O.minutes.toString().padStart(2,"0"),":",O.seconds.toString().padStart(2,"0")]}):Q&&!K&&z!==null&&z>0?ie(U,F,z,H,A):K?Y||"Završena":!Q&&X!==null&&X>0?ie(G,B,X,re,V):null})]})]})}),r.jsx(ze,{hasPermission:!0,image:r.jsx(Le,{src:S}),imageComponent:j,themeData:ne,isActive:!0,isUser:!1,name:m,shopCategory:$,uuid:d,onClick:()=>C(d)})]})]})}),Ee=y.styled.div`
263
263
  margin: 0 auto;
264
264
  display: flex;
265
265
  flex-direction: column;
@@ -298,7 +298,7 @@
298
298
  right: 0;
299
299
  }
300
300
 
301
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
301
+ @media ${N.down("S")} {
302
302
  gap: 1.25rem;
303
303
 
304
304
  & .scrollable-section__header {
@@ -310,13 +310,17 @@
310
310
  }
311
311
  }
312
312
  }
313
- `,Me=S.styled(ke.motion.div)`
313
+ `,Ue=y.styled(_e.motion.div)`
314
314
  display: grid;
315
315
  grid-template-columns: repeat(${n=>n==null?void 0:n.numOfColumns}, 1fr);
316
316
  gap: 1.5rem;
317
317
  width: 100%;
318
318
 
319
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
319
+ @media ${N.only("M")} {
320
+ grid-template-columns: repeat(${n=>(n==null?void 0:n.tabletNumOfColumns)??2}, 1fr);
321
+ }
322
+
323
+ @media ${N.down("S")} {
320
324
  display: flex;
321
325
  flex-wrap: nowrap;
322
326
  overflow-x: scroll;
@@ -338,7 +342,7 @@
338
342
  /* Safari and Chrome */
339
343
  }
340
344
  }
341
- `,Ue=c.forwardRef(({icon:n,title:t,numOfSlides:s=4,showNavigation:o=!0,hasNextPage:d=!1,handleFetchNextPage:p=()=>{},children:i},_)=>{const[g,u]=c.useState(0),[h,k]=c.useState(1),f=me.useDetectMobile(),v=(i==null?void 0:i.length)??1;c.useEffect(()=>{const l=()=>{k(s)};return window.addEventListener("resize",l),l(),()=>window.removeEventListener("resize",l)},[]);const I=f?i:i==null?void 0:i.slice(g,g+h),C=l=>{var P;(P=l==null?void 0:l.target)==null||P.blur();const x=g+h;x<v&&u(x),x+h>=v&&d&&p()},j=l=>{var x;(x=l==null?void 0:l.target)==null||x.blur(),g-h>=0&&u(g-h)};return r.jsxs(Re,{ref:_,children:[r.jsx("div",{className:"scrollable-section__header",children:r.jsxs("div",{className:"scrollable-section__title",children:[w.isDefinedNotEmptyString(n)&&r.jsx(pe,{icon:n,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),w.isDefinedNotEmptyString(t)&&r.jsxs("div",{className:"title__text",children:[" ",t]})]})}),r.jsxs(Me,{numOfColumns:s,...!f&&{animate:{x:0,opacity:1},initial:{x:10,opacity:0}},children:[I,f&&d&&r.jsx($e.InfiniteScrollEndElement,{onIsVisible:p})]},`scrollable-section__content-${g}`),o&&v>h&&!f&&r.jsxs("div",{className:"scrollable-section__navigation",children:[r.jsx(de,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:g===0,onClick:j}),r.jsx(de,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:g+h>=v,onClick:C})]})]})}),qe=S.styled.div`
345
+ `,qe=l.forwardRef(({icon:n,title:t,numOfSlides:s=4,tabletNumOfSlides:o,showNavigation:d=!0,hasNextPage:h=!1,handleFetchNextPage:g=()=>{},children:u},w)=>{const[i,v]=l.useState(0),[m,$]=l.useState(1),S=pe.useDetectMobile(),j=(u==null?void 0:u.length)??1;l.useEffect(()=>{const c=()=>{$(s)};return window.addEventListener("resize",c),c(),()=>window.removeEventListener("resize",c)},[]);const P=S?u:u==null?void 0:u.slice(i,i+m),k=c=>{var I;(I=c==null?void 0:c.target)==null||I.blur();const x=i+m;x<j&&v(x),x+m>=j&&h&&g()},C=c=>{var x;(x=c==null?void 0:c.target)==null||x.blur(),i-m>=0&&v(i-m)};return r.jsxs(Ee,{ref:w,children:[r.jsx("div",{className:"scrollable-section__header",children:r.jsxs("div",{className:"scrollable-section__title",children:[f.isDefinedNotEmptyString(n)&&r.jsx(ue,{icon:n,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),f.isDefinedNotEmptyString(t)&&r.jsxs("div",{className:"title__text",children:[" ",t]})]})}),r.jsxs(Ue,{numOfColumns:s,tabletNumOfColumns:o,...!S&&{animate:{x:0,opacity:1},initial:{x:10,opacity:0}},children:[P,S&&h&&r.jsx(ke.InfiniteScrollEndElement,{onIsVisible:g})]},`scrollable-section__content-${i}`),d&&j>m&&!S&&r.jsxs("div",{className:"scrollable-section__navigation",children:[r.jsx(de,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:i===0,onClick:C}),r.jsx(de,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:i+m>=j,onClick:k})]})]})}),We=y.styled.div`
342
346
  display: flex;
343
347
  flex: 1;
344
348
  width: 100%;
@@ -355,8 +359,8 @@
355
359
  border-radius: 1.25rem;
356
360
  object-fit: cover;
357
361
  }
358
- `,Be=c.forwardRef(({sectionName:n,imageUrl:t,maxHeight:s="16.25rem",className:o="",handleClick:d=()=>{}},p)=>r.jsx(qe,{ref:p,maxHeight:s,onClick:d,className:`itemless-banner ${o}`,children:r.jsx("img",{src:t,alt:`itemless-banner__${n}`})})),Oe=S.styled(a.SkeletonRowWrapper)`
359
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
362
+ `,Me=l.forwardRef(({sectionName:n,imageUrl:t,maxHeight:s="16.25rem",className:o="",handleClick:d=()=>{}},h)=>r.jsx(We,{ref:h,maxHeight:s,onClick:d,className:`itemless-banner ${o}`,children:r.jsx("img",{src:t,alt:`itemless-banner__${n}`})})),Oe=y.styled(a.SkeletonRowWrapper)`
363
+ @media ${N.down("S")} {
360
364
  flex-direction: column;
361
365
 
362
366
  & .skeleton__image {
@@ -370,4 +374,4 @@
370
374
  }
371
375
  }
372
376
  }
373
- `,We=({keyPrefix:n})=>r.jsxs(Oe,{children:[r.jsxs(a.SkeletonRowWrapper,{children:[r.jsx(a.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-1`),r.jsxs(a.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(a.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(a.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(a.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(a.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]}),r.jsxs(a.SkeletonRowWrapper,{noGradient:!0,children:[r.jsx(a.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-2`),r.jsxs(a.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(a.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(a.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(a.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(a.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]})]}),Ze=({keyPrefix:n,isLoading:t=!1,fallbackComponent:s=r.jsx(r.Fragment,{}),children:o})=>r.jsx(c.Suspense,{fallbackComponent:s,children:t===!0?r.jsx(We,{keyPrefix:n}):o}),Ve=c.memo(ze),Xe=c.forwardRef(({sellerType:n="Shop",items:t=[],title:s,icon:o,isLoading:d,onSelectCard:p=()=>{},onSelectShop:i=()=>{},getImage:_=()=>{},campaignSingleText:g,upcomingCampaignText:u,salesCampaignTypes:h=[],startsInPrefixTextPlural:k,startsinSuffixTextPlural:f,startsInPrefixTextSingular:v,startsinSuffixTextSingular:I,endsInPrefixTextPlural:C,endsinSuffixTextPlural:j,endsInPrefixTextSingular:l,endsinSuffixTextSingular:x,endedText:P,numOfSlides:z=4,showNavigation:m=!0,numberOfListingsTextSingular:W,numberOfListingsTextPlural:Z,itemlessImageUrl:V,itemlessLink:re,handleItemlessLink:X=()=>{},componentName:G,hasNextPage:M=!1,handleFetchNextPage:F=()=>{},LinkComponent:A},ne)=>{const N=me.useDetectMobile(),H=c.useMemo(()=>{let U=t==null?void 0:t.map((e,q)=>r.jsx(Ve,{className:"campaign-item",coverPhoto:_(e==null?void 0:e.coverPhoto,(e==null?void 0:e.uuid)||(e==null?void 0:e.campaignUuid)),description:e==null?void 0:e.description,endDate:e==null?void 0:e.endDate,salesPackages:e==null?void 0:e.salesPackages,sellerType:n,shopImage:e==null?void 0:e.profileImage,shopImageComponent:e==null?void 0:e.profileImageComponent,shopName:e==null?void 0:e.shopName,shopUuid:e==null?void 0:e.shopUuid,shopCategory:e==null?void 0:e.shopCategory,startDate:e==null?void 0:e.startDate,title:e==null?void 0:e.name,uuid:e==null?void 0:e.campaignUuid,onSelectCard:(te,Y)=>p(e==null?void 0:e.campaignUuid,e==null?void 0:e.shopUuid,Y),onSelectShop:()=>i(e==null?void 0:e.shopUuid),campaignSingleText:g,upcomingCampaignText:u,upcoming:e==null?void 0:e.upcoming,salesCampaignTypes:h,startsInPrefixTextPlural:k,startsinSuffixTextPlural:f,startsInPrefixTextSingular:v,startsinSuffixTextSingular:I,endsInPrefixTextPlural:C,endsinSuffixTextPlural:j,endsInPrefixTextSingular:l,endsinSuffixTextSingular:x,endedText:P,themeData:e==null?void 0:e.themeData,numberOfListings:e==null?void 0:e.numberOfListings,numberOfListingsTextSingular:W,numberOfListingsTextPlural:Z,metadata:{name:G,accessor:e==null?void 0:e.accessor},LinkComponent:A,sponsored:e==null?void 0:e.sponsored},`campaign__item__${q}__${e==null?void 0:e.startDate}___${e==null?void 0:e.endDate}`));return(t==null?void 0:t.length)<4&&!N?[...U,r.jsx(Be,{imageUrl:V,className:"campaign-item",handleClick:X},"itemless-campaign-section-banner")]:U},[t]);return r.jsx(Ze,{isLoading:d,keyPrefix:"sales-campaign-skeleton",children:r.jsx(Ue,{icon:o,title:s,numOfSlides:z,showNavigation:m,hasNextPage:M,handleFetchNextPage:F,children:H},`sales-campaign-section__${N}`)})});module.exports=Xe;
377
+ `,Be=({keyPrefix:n})=>r.jsxs(Oe,{children:[r.jsxs(a.SkeletonRowWrapper,{children:[r.jsx(a.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-1`),r.jsxs(a.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(a.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(a.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(a.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(a.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]}),r.jsxs(a.SkeletonRowWrapper,{noGradient:!0,children:[r.jsx(a.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-2`),r.jsxs(a.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(a.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(a.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(a.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(a.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]})]}),Ve=({keyPrefix:n,isLoading:t=!1,fallbackComponent:s=r.jsx(r.Fragment,{}),children:o})=>r.jsx(l.Suspense,{fallbackComponent:s,children:t===!0?r.jsx(Be,{keyPrefix:n}):o}),Ge=l.memo(Re),Fe=l.forwardRef(({sellerType:n="Shop",items:t=[],title:s,icon:o,isLoading:d,onSelectCard:h=()=>{},onSelectShop:g=()=>{},getImage:u=()=>{},campaignSingleText:w,upcomingCampaignText:i,salesCampaignTypes:v=[],startsInPrefixTextPlural:m,startsinSuffixTextPlural:$,startsInPrefixTextSingular:S,startsinSuffixTextSingular:j,endsInPrefixTextPlural:P,endsinSuffixTextPlural:k,endsInPrefixTextSingular:C,endsinSuffixTextSingular:c,endedText:x,numOfSlides:I=4,showNavigation:p=!0,numberOfListingsTextSingular:B,numberOfListingsTextPlural:V,itemlessImageUrl:G,itemlessLink:re,handleItemlessLink:F=()=>{},componentName:A,hasNextPage:U=!1,handleFetchNextPage:H=()=>{},LinkComponent:Y},ne)=>{const L=pe.useDetectMobile(),Z=l.useMemo(()=>{let q=t==null?void 0:t.map((e,W)=>r.jsx(Ge,{className:"campaign-item",coverPhoto:u(e==null?void 0:e.coverPhoto,(e==null?void 0:e.uuid)||(e==null?void 0:e.campaignUuid)),description:e==null?void 0:e.description,endDate:e==null?void 0:e.endDate,salesPackages:e==null?void 0:e.salesPackages,sellerType:n,shopImage:e==null?void 0:e.profileImage,shopImageComponent:e==null?void 0:e.profileImageComponent,shopName:e==null?void 0:e.shopName,shopUuid:e==null?void 0:e.shopUuid,shopCategory:e==null?void 0:e.shopCategory,startDate:e==null?void 0:e.startDate,title:e==null?void 0:e.name,uuid:e==null?void 0:e.campaignUuid,onSelectCard:(te,J)=>h(e==null?void 0:e.campaignUuid,e==null?void 0:e.shopUuid,J),onSelectShop:()=>g(e==null?void 0:e.shopUuid),campaignSingleText:w,upcomingCampaignText:i,upcoming:e==null?void 0:e.upcoming,salesCampaignTypes:v,startsInPrefixTextPlural:m,startsinSuffixTextPlural:$,startsInPrefixTextSingular:S,startsinSuffixTextSingular:j,endsInPrefixTextPlural:P,endsinSuffixTextPlural:k,endsInPrefixTextSingular:C,endsinSuffixTextSingular:c,endedText:x,themeData:e==null?void 0:e.themeData,numberOfListings:e==null?void 0:e.numberOfListings,numberOfListingsTextSingular:B,numberOfListingsTextPlural:V,metadata:{name:A,accessor:e==null?void 0:e.accessor},LinkComponent:Y,sponsored:e==null?void 0:e.sponsored},`campaign__item__${W}__${e==null?void 0:e.startDate}___${e==null?void 0:e.endDate}`));return(t==null?void 0:t.length)<4&&!L?[...q,r.jsx(Me,{imageUrl:G,className:"campaign-item",handleClick:F},"itemless-campaign-section-banner")]:q},[t]);return r.jsx(Ve,{isLoading:d,keyPrefix:"sales-campaign-skeleton",children:r.jsx(qe,{icon:o,title:s,numOfSlides:I,tabletNumOfSlides:2,showNavigation:p,hasNextPage:U,handleFetchNextPage:H,children:Z},`sales-campaign-section__${L}`)})});module.exports=Fe;