@lanaco/lnc-react-ui 4.0.226 → 4.0.228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +1 -1
  3. package/dist/AccordionSummary.cjs +1 -1
  4. package/dist/AccordionSummary.js +1 -1
  5. package/dist/ActionsToolbar.cjs +1 -1
  6. package/dist/ActionsToolbar.js +1 -1
  7. package/dist/Alert.cjs +1 -1
  8. package/dist/Alert.js +1 -1
  9. package/dist/Avatar.cjs +1 -1
  10. package/dist/Avatar.js +1 -1
  11. package/dist/Badge.cjs +1 -1
  12. package/dist/Badge.js +1 -1
  13. package/dist/BannerNextSection.cjs +1 -1
  14. package/dist/BannerNextSection.js +1 -1
  15. package/dist/BannerSectionCarousel.cjs +3 -3
  16. package/dist/BannerSectionCarousel.js +19 -12
  17. package/dist/BannerSectionSimple.cjs +1 -1
  18. package/dist/BannerSectionSimple.js +1 -1
  19. package/dist/BannerSectionWithList.cjs +1 -1
  20. package/dist/BannerSectionWithList.js +1 -1
  21. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  22. package/dist/BlogCardsSponsoredSection.js +4 -4
  23. package/dist/BlogCategoryCardsSection.cjs +1 -1
  24. package/dist/BlogCategoryCardsSection.js +1 -1
  25. package/dist/BlogExploreSection.cjs +1 -1
  26. package/dist/BlogExploreSection.js +2 -2
  27. package/dist/BlogListSection.cjs +7 -7
  28. package/dist/BlogListSection.js +157 -207
  29. package/dist/BlogProductCardsSection.cjs +1 -1
  30. package/dist/BlogProductCardsSection.js +1 -1
  31. package/dist/BlogShopCardsSection.cjs +1 -1
  32. package/dist/BlogShopCardsSection.js +1 -1
  33. package/dist/BlogSingleSection.cjs +2 -11
  34. package/dist/BlogSingleSection.js +20 -36
  35. package/dist/BlogsSectionDetailed.cjs +1 -1
  36. package/dist/BlogsSectionDetailed.js +4 -4
  37. package/dist/BlogsSectionLarge.cjs +8 -16
  38. package/dist/BlogsSectionLarge.js +41 -59
  39. package/dist/BlogsSectionSimple.cjs +1 -1
  40. package/dist/BlogsSectionSimple.js +4 -4
  41. package/dist/BlogsSectionSimpleCentered.cjs +12 -25
  42. package/dist/BlogsSectionSimpleCentered.js +64 -98
  43. package/dist/BlogsSectionWithFilters.cjs +10 -21
  44. package/dist/BlogsSectionWithFilters.js +106 -154
  45. package/dist/BrandHitsSection.cjs +7 -7
  46. package/dist/BrandHitsSection.js +41 -87
  47. package/dist/Breadcrumbs.cjs +1 -1
  48. package/dist/Breadcrumbs.js +1 -1
  49. package/dist/Button.cjs +1 -1
  50. package/dist/Button.js +1 -1
  51. package/dist/ButtonGroup.cjs +1 -1
  52. package/dist/ButtonGroup.js +1 -1
  53. package/dist/CalorieCalculatorSection.cjs +1 -1
  54. package/dist/CalorieCalculatorSection.js +1 -1
  55. package/dist/{CategorySimpleCard-TJRJ_2Sb.js → CategorySimpleCard-BE6F0PFT.js} +1 -1
  56. package/dist/{CategorySimpleCard-lIdzBNDa.cjs → CategorySimpleCard-Dr1FxIY9.cjs} +1 -1
  57. package/dist/CheckBoxInput.cjs +1 -1
  58. package/dist/CheckBoxInput.js +1 -1
  59. package/dist/Chip.cjs +1 -1
  60. package/dist/Chip.js +1 -1
  61. package/dist/ColorInput.cjs +1 -1
  62. package/dist/ColorInput.js +1 -1
  63. package/dist/ConfirmationForm.cjs +1 -1
  64. package/dist/ConfirmationForm.js +1 -1
  65. package/dist/CustomLoanMapSection.cjs +1 -1
  66. package/dist/CustomLoanMapSection.js +1 -1
  67. package/dist/{CustomStyles-B6uutenq.js → CustomStyles-YyM49BGx.js} +1 -1
  68. package/dist/{CustomStyles-dJQPJ4s4.cjs → CustomStyles-lzAjVMnI.cjs} +1 -1
  69. package/dist/DateInput.cjs +1 -1
  70. package/dist/DateInput.js +1 -1
  71. package/dist/DecimalInput.cjs +1 -1
  72. package/dist/DecimalInput.js +1 -1
  73. package/dist/DecimalInputV2.cjs +1 -1
  74. package/dist/DecimalInputV2.js +1 -1
  75. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  76. package/dist/DetailedProductsInfinitiveSection.js +4 -4
  77. package/dist/DetailedProductsSection.cjs +1 -1
  78. package/dist/DetailedProductsSection.js +5 -5
  79. package/dist/DetailsView.cjs +1 -1
  80. package/dist/DetailsView.js +1 -1
  81. package/dist/DoubleRangeSlider.cjs +1 -1
  82. package/dist/DoubleRangeSlider.js +1 -1
  83. package/dist/DragAndDropFile.cjs +1 -1
  84. package/dist/DragAndDropFile.js +1 -1
  85. package/dist/DragDropFiles.cjs +1 -1
  86. package/dist/DragDropFiles.js +1 -1
  87. package/dist/Drawer.cjs +1 -1
  88. package/dist/Drawer.js +1 -1
  89. package/dist/Dropdown.cjs +1 -1
  90. package/dist/Dropdown.js +2 -2
  91. package/dist/DropdownItem.cjs +1 -1
  92. package/dist/DropdownItem.js +1 -1
  93. package/dist/DropdownLookup.cjs +1 -1
  94. package/dist/DropdownLookup.js +1 -1
  95. package/dist/DropdownMenu.cjs +1 -1
  96. package/dist/DropdownMenu.js +1 -1
  97. package/dist/EditableTable.cjs +1 -1
  98. package/dist/EditableTable.js +1 -1
  99. package/dist/FeedbackSection.cjs +1 -1
  100. package/dist/FeedbackSection.js +1 -1
  101. package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
  102. package/dist/FieldOfInterestsMasonrySection.js +105 -159
  103. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
  104. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
  105. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  106. package/dist/FieldOfInterestsWithTagsCardsSection.js +2 -2
  107. package/dist/FileInput.cjs +1 -1
  108. package/dist/FileInput.js +1 -1
  109. package/dist/FlexGridItem.cjs +1 -1
  110. package/dist/FlexGridItem.js +1 -1
  111. package/dist/FormField.cjs +1 -1
  112. package/dist/FormField.js +1 -1
  113. package/dist/FormView.cjs +1 -1
  114. package/dist/FormView.js +1 -1
  115. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  116. package/dist/GeneralWithTagsCardsSection.js +2 -2
  117. package/dist/GiftCardsSection.cjs +10 -14
  118. package/dist/GiftCardsSection.js +77 -147
  119. package/dist/Icon.cjs +1 -1
  120. package/dist/Icon.js +1 -1
  121. package/dist/IconButton.cjs +1 -1
  122. package/dist/IconButton.js +1 -1
  123. package/dist/Kanban.cjs +1 -1
  124. package/dist/Kanban.js +1 -1
  125. package/dist/KanbanActionsToolbar.cjs +1 -1
  126. package/dist/KanbanActionsToolbar.js +1 -1
  127. package/dist/KanbanView.cjs +1 -1
  128. package/dist/KanbanView.js +1 -1
  129. package/dist/Link.cjs +1 -1
  130. package/dist/Link.js +1 -1
  131. package/dist/LoanCalculatorSection.cjs +1 -1
  132. package/dist/LoanCalculatorSection.js +1 -1
  133. package/dist/LocationFinderSection.cjs +1 -1
  134. package/dist/LocationFinderSection.js +1 -1
  135. package/dist/LocationSearchSection.cjs +1 -1
  136. package/dist/LocationSearchSection.js +1 -1
  137. package/dist/MasonryGeneralCardsSection.cjs +10 -10
  138. package/dist/MasonryGeneralCardsSection.js +45 -44
  139. package/dist/MenuItem.cjs +1 -1
  140. package/dist/MenuItem.js +1 -1
  141. package/dist/Modal.cjs +1 -1
  142. package/dist/Modal.js +1 -1
  143. package/dist/MultiSelectDropdown.cjs +1 -1
  144. package/dist/MultiSelectDropdown.js +1 -1
  145. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  146. package/dist/MultiSelectDropdownLookup.js +1 -1
  147. package/dist/NestedDropdownItem.cjs +1 -1
  148. package/dist/NestedDropdownItem.js +1 -1
  149. package/dist/NestedMenuItem.cjs +1 -1
  150. package/dist/NestedMenuItem.js +1 -1
  151. package/dist/NotificationContainer.cjs +1 -1
  152. package/dist/NotificationContainer.js +1 -1
  153. package/dist/NotificationMessage.cjs +1 -1
  154. package/dist/NotificationMessage.js +1 -1
  155. package/dist/NumberInput.cjs +1 -1
  156. package/dist/NumberInput.js +1 -1
  157. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  158. package/dist/OverlayGeneralCardsSection.js +1 -1
  159. package/dist/PartnerBrandsSection.cjs +1 -1
  160. package/dist/PartnerBrandsSection.js +1 -1
  161. package/dist/PartnerCardsSection.cjs +1 -1
  162. package/dist/PartnerCardsSection.js +1 -1
  163. package/dist/PartnerStatsSection.cjs +1 -1
  164. package/dist/PartnerStatsSection.js +1 -1
  165. package/dist/PasswordInput.cjs +1 -1
  166. package/dist/PasswordInput.js +1 -1
  167. package/dist/PopoverContent.cjs +1 -1
  168. package/dist/PopoverContent.js +1 -1
  169. package/dist/ProductsWithBannerSection.cjs +13 -13
  170. package/dist/ProductsWithBannerSection.js +87 -168
  171. package/dist/ProgressBar.cjs +1 -1
  172. package/dist/ProgressBar.js +1 -1
  173. package/dist/QuattroCardsSection.cjs +1 -1
  174. package/dist/QuattroCardsSection.js +2 -2
  175. package/dist/QuizSection.cjs +1 -1
  176. package/dist/QuizSection.js +1 -1
  177. package/dist/RadioInput.cjs +1 -1
  178. package/dist/RadioInput.js +1 -1
  179. package/dist/RangeSlider.cjs +1 -1
  180. package/dist/RangeSlider.js +1 -1
  181. package/dist/ReviewsSection.cjs +18 -22
  182. package/dist/ReviewsSection.js +101 -163
  183. package/dist/SalesCampaignsSection.cjs +25 -25
  184. package/dist/SalesCampaignsSection.js +267 -306
  185. package/dist/Separator.cjs +1 -1
  186. package/dist/Separator.js +1 -1
  187. package/dist/ShopCardsSection.cjs +6 -19
  188. package/dist/ShopCardsSection.js +56 -102
  189. package/dist/Sidebar.cjs +1 -1
  190. package/dist/Sidebar.js +1 -1
  191. package/dist/SimpleCategoriesSection.cjs +3 -3
  192. package/dist/SimpleCategoriesSection.js +65 -68
  193. package/dist/SimpleProductsSection.cjs +7 -7
  194. package/dist/SimpleProductsSection.js +65 -138
  195. package/dist/Spinner.cjs +1 -1
  196. package/dist/Spinner.js +1 -1
  197. package/dist/StatsSection.cjs +1 -1
  198. package/dist/StatsSection.js +1 -1
  199. package/dist/Surface.cjs +1 -1
  200. package/dist/Surface.js +1 -1
  201. package/dist/SwipeableDrawer.cjs +1 -1
  202. package/dist/SwipeableDrawer.js +1 -1
  203. package/dist/TabItem.cjs +1 -1
  204. package/dist/TabItem.js +1 -1
  205. package/dist/Table.cjs +1 -1
  206. package/dist/Table.js +1 -1
  207. package/dist/TableView.cjs +1 -1
  208. package/dist/TableView.js +1 -1
  209. package/dist/TextAreaInput.cjs +1 -1
  210. package/dist/TextAreaInput.js +1 -1
  211. package/dist/TextInput.cjs +1 -1
  212. package/dist/TextInput.js +1 -1
  213. package/dist/ThemeProvider.cjs +1 -1
  214. package/dist/ThemeProvider.js +1 -1
  215. package/dist/TimeInput.cjs +1 -1
  216. package/dist/TimeInput.js +1 -1
  217. package/dist/Toggle.cjs +1 -1
  218. package/dist/Toggle.js +1 -1
  219. package/dist/TreeMenuSeparator.cjs +1 -1
  220. package/dist/TreeMenuSeparator.js +1 -1
  221. package/dist/UploadedFile.cjs +1 -1
  222. package/dist/UploadedFile.js +1 -1
  223. package/dist/UrgentSaleProductsSection.cjs +1 -1
  224. package/dist/UrgentSaleProductsSection.js +1 -1
  225. package/dist/index-B7fBsitY.js +45 -0
  226. package/dist/{index-BkztbBWe.cjs → index-B96icAp4.cjs} +1 -1
  227. package/dist/index-BMAvJQBG.cjs +9 -0
  228. package/dist/index-BUdvfHpp.cjs +5 -0
  229. package/dist/{index-tdg_Vmed.cjs → index-BXkL0HmX.cjs} +1 -1
  230. package/dist/index-C6amCwRZ.js +25 -0
  231. package/dist/index-C8R9lsWG.cjs +1 -0
  232. package/dist/{index-Djo0ZcRE.js → index-CCwfh-7A.js} +1 -1
  233. package/dist/{index-jGcy-5M_.js → index-CNUuIL97.js} +2 -2
  234. package/dist/index-CeQvy566.cjs +11 -0
  235. package/dist/{index-DsINTjQk.cjs → index-ChHUGfjn.cjs} +1 -1
  236. package/dist/index-Cyt4EUZ6.js +20 -0
  237. package/dist/{index-DEypPQRI.js → index-D6_3Q8lN.js} +1 -1
  238. package/dist/{index-D4-_TrSn.cjs → index-DnbzopIv.cjs} +1 -1
  239. package/dist/{index-rhYVjszT.js → index-DtVJCOWc.js} +2 -2
  240. package/dist/index-DueyY06i.cjs +368 -0
  241. package/dist/{index-D4OKsSqi.cjs → index-HzW6OHFF.cjs} +1 -1
  242. package/dist/{index-3GKF_7BJ.cjs → index-RrqW9QBJ.cjs} +1 -1
  243. package/dist/index-VTkAaA-n.js +18 -0
  244. package/dist/{index-CM6vzQBx.js → index-eOeAkUSU.js} +1 -1
  245. package/dist/{index-Dx2hfxCG.js → index-gHaK62BZ.js} +2 -2
  246. package/dist/index-zIt6TVeg.js +753 -0
  247. package/dist/index.cjs +1 -1
  248. package/dist/index.js +2 -2
  249. package/dist/style-BFPpppS9.js +73 -0
  250. package/dist/{style-D54KOzZj.js → style-CP_urKvc.js} +1 -1
  251. package/dist/style-CQdEALKR.cjs +59 -0
  252. package/dist/{style-Boz6dk5s.cjs → style-cJUZrJoG.cjs} +1 -1
  253. package/dist/{utils-CITgSxXe.cjs → utils-BK6B_Y9X.cjs} +2 -2
  254. package/dist/{utils-MoGhNMmj.js → utils-BUdHa0nB.js} +16 -23
  255. package/package.json +1 -1
  256. package/dist/index-BGNavrtB.cjs +0 -368
  257. package/dist/index-BHcrzV2G.js +0 -54
  258. package/dist/index-Bj1KWOV4.cjs +0 -11
  259. package/dist/index-BsAddfgC.cjs +0 -1
  260. package/dist/index-Cn4bq6ZX.js +0 -84
  261. package/dist/index-CuRcxKQH.js +0 -42
  262. package/dist/index-DB1J-G6Z.js +0 -38
  263. package/dist/index-DkPva6Gr.cjs +0 -20
  264. package/dist/index-fzBXDy05.cjs +0 -16
  265. package/dist/index-gFZSZLba.js +0 -882
  266. package/dist/style-DvkivBNg.js +0 -74
  267. package/dist/style-Ito6YFqi.cjs +0 -64
@@ -1,13 +1,13 @@
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
- import { s as d } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
- import { d as f } from "./breakpoints-BubDitvo.js";
5
- import { u as z } from "./useDetectMobile-B0Jog4jQ.js";
6
- import { t as M, n as P, c as W, g as L } from "./utils-MoGhNMmj.js";
1
+ import { jsxs as p, jsx as r, Fragment as S } from "react/jsx-runtime";
2
+ import { forwardRef as w, Suspense as C, memo as k, useMemo as y } from "react";
3
+ import { s as n } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
+ import { d as u } from "./breakpoints-BubDitvo.js";
5
+ import { u as R } from "./useDetectMobile-B0Jog4jQ.js";
6
+ import { t as N, n as z, c as M, g as P } from "./utils-BUdHa0nB.js";
7
7
  import { useTheme as j } from "./ThemeProvider.js";
8
- import { P as G } from "./index-DEypPQRI.js";
9
- import { s as E, S as F, b, c as w, a as o } from "./style-DvkivBNg.js";
10
- const I = d.div`
8
+ import { P as L } from "./index-D6_3Q8lN.js";
9
+ import { S as W, e as A, d as E, a as f } from "./style-BFPpppS9.js";
10
+ const F = n.div`
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  color: var(--darkest-950);
@@ -17,28 +17,28 @@ const I = d.div`
17
17
  font-weight: 600;
18
18
  font-size: 1.5rem;
19
19
  }
20
- `, T = d.div`
20
+ `, I = n.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 ${f("M")} {
25
+ @media ${u("M")} {
26
26
  grid-template-columns: repeat(2, 1fr);
27
27
  }
28
28
 
29
- @media ${f("S")} {
29
+ @media ${u("S")} {
30
30
  grid-template-columns: repeat(2, 1fr);
31
31
  }
32
32
 
33
- @media ${f("XS")} {
33
+ @media ${u("XS")} {
34
34
  grid-template-columns: repeat(1, 1fr);
35
35
  }
36
- `, A = d.a`
36
+ `, T = n.a`
37
37
  padding-top: 5rem;
38
38
  overflow: hidden;
39
39
  text-decoration: none;
40
40
  color: var(--gray-950);
41
- `, V = d.div`
41
+ `, x = n.div`
42
42
  position: relative;
43
43
  cursor: pointer;
44
44
  display: flex;
@@ -70,11 +70,11 @@ const I = d.div`
70
70
  font-size: 1.375rem;
71
71
  font-weight: 600;
72
72
  color: var(--gray-950, #14161a);
73
- ${M()}
73
+ ${N()}
74
74
  }
75
75
 
76
76
  & .cont-text {
77
- ${P(2)}
77
+ ${z(2)}
78
78
  }
79
79
  }
80
80
 
@@ -94,15 +94,15 @@ const I = d.div`
94
94
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
95
95
  0px 4px 6px -2px rgba(0, 0, 0, 0.05);
96
96
  }
97
- `, R = (t, n) => L(
97
+ `, b = (t, o) => P(
98
98
  t.theme,
99
99
  "StarRating",
100
100
  t.color,
101
101
  t.disabled === !0 ? "disabled" : "enabled",
102
- n
103
- ), q = d.div`
104
- font-size: ${(t) => R(t, "fontSize")};
105
- line-height: ${(t) => R(t, "lineHeight")};
102
+ o
103
+ ), V = n.div`
104
+ font-size: ${(t) => b(t, "fontSize")};
105
+ line-height: ${(t) => b(t, "lineHeight")};
106
106
  line-height: 1.5rem;
107
107
  width: fit-content;
108
108
  display: flex;
@@ -121,7 +121,7 @@ const I = d.div`
121
121
  line-height: 1.5rem;
122
122
  color: ${(t) => t.color};
123
123
  }
124
- `, B = d.span`
124
+ `, q = n.span`
125
125
  position: absolute;
126
126
  z-index: 1;
127
127
  display: block;
@@ -130,212 +130,150 @@ const I = d.div`
130
130
  overflow: hidden;
131
131
  width: ${(t) => t.width}%;
132
132
 
133
- color: ${(t) => W(
133
+ color: ${(t) => M(
134
134
  t.theme,
135
135
  "StarRating",
136
136
  t.color,
137
137
  t.disabled === !0 ? "disabled" : "enabled",
138
138
  "filledColor"
139
139
  )};
140
- `, D = d.span`
140
+ `, D = n.span`
141
141
  padding: 0;
142
142
  display: block;
143
143
  z-index: 0;
144
144
  color: ${(t) => t.color};
145
- `, H = v((t, n) => {
145
+ `, G = w((t, o) => {
146
146
  const {
147
- rating: l = 0,
147
+ rating: a = 0,
148
148
  reviewCount: i = null,
149
- disabled: s = !1,
150
- tabIndex: m = 0,
151
- className: g = "",
152
- style: p = {},
153
- color: c = "primary",
154
- size: u = "large"
155
- } = t, { theme: e } = j(), h = {
149
+ disabled: l = !1,
150
+ tabIndex: s = 0,
151
+ className: h = "",
152
+ style: m = {},
153
+ color: d = "primary",
154
+ size: g = "large"
155
+ } = t, { theme: e } = j(), c = {
156
156
  theme: e,
157
- color: c,
158
- size: u,
159
- style: p,
160
- disabled: s
161
- }, k = l / 5 * 100;
162
- return /* @__PURE__ */ a(
163
- q,
157
+ color: d,
158
+ size: g,
159
+ style: m,
160
+ disabled: l
161
+ }, $ = a / 5 * 100;
162
+ return /* @__PURE__ */ p(
163
+ V,
164
164
  {
165
- ref: n,
166
- tabIndex: m,
167
- ...h,
168
- className: `star-rating ${g}`,
165
+ ref: o,
166
+ tabIndex: s,
167
+ ...c,
168
+ className: `star-rating ${h}`,
169
169
  children: [
170
- /* @__PURE__ */ a("div", { className: "rating", children: [
170
+ /* @__PURE__ */ p("div", { className: "rating", children: [
171
171
  /* @__PURE__ */ r(
172
- B,
172
+ q,
173
173
  {
174
174
  className: "filled-stars",
175
- ...h,
176
- width: k,
175
+ ...c,
176
+ width: $,
177
177
  children: "★★★★★"
178
178
  }
179
179
  ),
180
- /* @__PURE__ */ r(D, { ...h, children: "★★★★★" })
180
+ /* @__PURE__ */ r(D, { ...c, children: "★★★★★" })
181
181
  ] }),
182
182
  !isNaN(i) && Number.isFinite(i) && /* @__PURE__ */ r("div", { className: "review-count", children: `(${i.toLocaleString()})` })
183
183
  ]
184
184
  }
185
185
  );
186
- }), X = v((t, n) => {
186
+ }), H = w((t, o) => {
187
187
  const {
188
- image: l,
188
+ image: a,
189
189
  text: i,
190
- title: s,
191
- link: m,
192
- rating: g,
193
- onSelectCard: p = () => {
190
+ title: l,
191
+ link: s,
192
+ rating: h,
193
+ onSelectCard: m = () => {
194
194
  },
195
- LinkComponent: c
195
+ LinkComponent: d
196
196
  } = t;
197
197
  return /* @__PURE__ */ r(
198
- A,
198
+ T,
199
199
  {
200
- ref: n,
200
+ ref: o,
201
201
  className: "review-card",
202
- onClick: p,
203
- as: c || "a",
204
- ...c ? {
205
- to: `/${m}`
202
+ onClick: m,
203
+ as: d || "a",
204
+ ...d ? {
205
+ to: `/${s}`
206
206
  } : {
207
- href: `/${m}`
207
+ href: `/${s}`
208
208
  },
209
- children: /* @__PURE__ */ a(V, { children: [
210
- /* @__PURE__ */ r(G, { src: l }),
211
- /* @__PURE__ */ a("div", { className: "cont", children: [
212
- /* @__PURE__ */ r("span", { className: "cont-title", children: s }),
209
+ children: /* @__PURE__ */ p(x, { children: [
210
+ /* @__PURE__ */ r(L, { src: a }),
211
+ /* @__PURE__ */ p("div", { className: "cont", children: [
212
+ /* @__PURE__ */ r("span", { className: "cont-title", children: l }),
213
213
  /* @__PURE__ */ r("div", { className: "cont-text", children: i })
214
214
  ] }),
215
- /* @__PURE__ */ r(H, { color: "warning", rating: g })
215
+ /* @__PURE__ */ r(G, { color: "warning", rating: h })
216
216
  ] })
217
217
  }
218
218
  );
219
- }), x = d(F)`
220
- @media ${f("S")} {
219
+ }), X = n(W)`
220
+ @media ${u("S")} {
221
221
  flex-direction: column;
222
222
 
223
223
  & > div {
224
224
  flex-direction: column;
225
-
226
- & > div {
227
- ${E}
228
- }
229
225
  }
230
226
  }
231
- `, J = ({ keyPrefix: t }) => /* @__PURE__ */ a(x, { children: [
232
- /* @__PURE__ */ a(b, { children: [
233
- /* @__PURE__ */ r(
234
- w,
235
- {
236
- height: "6.25rem",
237
- width: "6.25rem",
238
- borderRadius: "0.75rem"
239
- }
240
- ),
241
- /* @__PURE__ */ r(o, { height: "2rem", borderRadius: "0.75rem" }),
242
- /* @__PURE__ */ r(o, { height: "1rem", borderRadius: "0.75rem" }),
243
- /* @__PURE__ */ r(o, { height: "1rem", borderRadius: "0.75rem" }),
244
- /* @__PURE__ */ r(
245
- o,
246
- {
247
- height: "1rem",
248
- borderRadius: "0.75rem",
249
- width: "6rem"
250
- }
251
- )
252
- ] }, `${t}-1`),
253
- /* @__PURE__ */ a(b, { noGradient: !0, children: [
254
- /* @__PURE__ */ r(
255
- w,
256
- {
257
- height: "6.25rem",
258
- width: "6.25rem",
259
- borderRadius: "0.75rem"
260
- }
261
- ),
262
- /* @__PURE__ */ r(o, { height: "2rem", borderRadius: "0.75rem" }),
263
- /* @__PURE__ */ r(o, { height: "1rem", borderRadius: "0.75rem" }),
264
- /* @__PURE__ */ r(o, { height: "1rem", borderRadius: "0.75rem" }),
265
- /* @__PURE__ */ r(
266
- o,
267
- {
268
- height: "1rem",
269
- borderRadius: "0.75rem",
270
- width: "6rem"
271
- }
272
- )
273
- ] }, `${t}-2`),
274
- /* @__PURE__ */ a(b, { noGradient: !0, children: [
275
- /* @__PURE__ */ r(
276
- w,
277
- {
278
- height: "6.25rem",
279
- width: "6.25rem",
280
- borderRadius: "0.75rem"
281
- }
282
- ),
283
- /* @__PURE__ */ r(o, { height: "2rem", borderRadius: "0.75rem" }),
284
- /* @__PURE__ */ r(o, { height: "1rem", borderRadius: "0.75rem" }),
285
- /* @__PURE__ */ r(o, { height: "1rem", borderRadius: "0.75rem" }),
286
- /* @__PURE__ */ r(
287
- o,
288
- {
289
- height: "1rem",
290
- borderRadius: "0.75rem",
291
- width: "6rem"
292
- }
293
- )
294
- ] }, `${t}-3`)
295
- ] }), K = ({
227
+ `, B = ({ keyPrefix: t }) => /* @__PURE__ */ r(X, { children: [1, 2, 3].map((o) => /* @__PURE__ */ p(A, { children: [
228
+ /* @__PURE__ */ r(E, { size: "6.25rem" }),
229
+ /* @__PURE__ */ r(f, { width: "100%", height: "2rem", borderRadius: "0.75rem" }),
230
+ /* @__PURE__ */ r(f, { width: "100%", height: "1rem", borderRadius: "0.75rem" }),
231
+ /* @__PURE__ */ r(f, { width: "100%", height: "1rem", borderRadius: "0.75rem" }),
232
+ /* @__PURE__ */ r(f, { height: "1rem", borderRadius: "0.75rem", width: "6rem" })
233
+ ] }, `${t}-${o}`)) }), J = ({
296
234
  keyPrefix: t,
297
- isLoading: n = !1,
298
- fallbackComponent: l = /* @__PURE__ */ r($, {}),
235
+ isLoading: o = !1,
236
+ fallbackComponent: a = /* @__PURE__ */ r(S, {}),
299
237
  children: i
300
- }) => /* @__PURE__ */ r(C, { fallbackComponent: l, children: n === !0 ? /* @__PURE__ */ r(J, { keyPrefix: t }) : i }), S = y(X), ie = v((t, n) => {
238
+ }) => /* @__PURE__ */ r(C, { fallbackComponent: a, children: o === !0 ? /* @__PURE__ */ r(B, { keyPrefix: t }) : i }), v = k(H), re = w((t, o) => {
301
239
  const {
302
- title: l = "Electronics reviews",
240
+ title: a = "Electronics reviews",
303
241
  items: i,
304
- limit: s = 3,
305
- onSelectCard: m = () => {
242
+ limit: l = 3,
243
+ onSelectCard: s = () => {
306
244
  },
307
- isLoading: g = !1,
308
- LinkComponent: p
309
- } = t, c = z(), u = N(() => /* @__PURE__ */ r($, { children: c === !0 ? i == null ? void 0 : i.map((e, h) => /* @__PURE__ */ r(
310
- S,
245
+ isLoading: h = !1,
246
+ LinkComponent: m
247
+ } = t, d = R(), g = y(() => /* @__PURE__ */ r(S, { children: d === !0 ? i == null ? void 0 : i.map((e, c) => /* @__PURE__ */ r(
248
+ v,
311
249
  {
312
250
  text: e == null ? void 0 : e.text,
313
251
  title: e == null ? void 0 : e.title,
314
252
  image: e == null ? void 0 : e.image,
315
253
  link: e == null ? void 0 : e.link,
316
254
  rating: e == null ? void 0 : e.ratingArithmeticMean,
317
- onSelectCard: () => m(e),
318
- LinkComponent: p
255
+ onSelectCard: () => s(e),
256
+ LinkComponent: m
319
257
  },
320
- h
321
- )) : i == null ? void 0 : i.slice(0, s).map((e, h) => /* @__PURE__ */ r(
322
- S,
258
+ c
259
+ )) : i == null ? void 0 : i.slice(0, l).map((e, c) => /* @__PURE__ */ r(
260
+ v,
323
261
  {
324
262
  text: e == null ? void 0 : e.text,
325
263
  title: e == null ? void 0 : e.title,
326
264
  image: e == null ? void 0 : e.image,
327
265
  link: e == null ? void 0 : e.link,
328
266
  rating: e == null ? void 0 : e.ratingArithmeticMean,
329
- onSelectCard: () => m(e),
330
- LinkComponent: p
267
+ onSelectCard: () => s(e),
268
+ LinkComponent: m
331
269
  },
332
- h
333
- )) }), [i, c, s]);
334
- return /* @__PURE__ */ a(I, { ref: n, children: [
335
- /* @__PURE__ */ r("div", { className: "container-title", children: l }),
336
- /* @__PURE__ */ r(K, { isLoading: g, keyPrefix: "reviews-skeleton", children: /* @__PURE__ */ r(T, { limit: s, children: u }) })
270
+ c
271
+ )) }), [i, d, l]);
272
+ return /* @__PURE__ */ p(F, { ref: o, children: [
273
+ /* @__PURE__ */ r("div", { className: "container-title", children: a }),
274
+ /* @__PURE__ */ r(J, { isLoading: h, keyPrefix: "reviews-skeleton", children: /* @__PURE__ */ r(I, { limit: l, children: g }) })
337
275
  ] });
338
276
  });
339
277
  export {
340
- ie as default
278
+ re as default
341
279
  };
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),i=require("react"),j=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),b=require("./utils-CITgSxXe.cjs"),N=require("./breakpoints-CcVm-gVm.cjs"),me=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"),pe=require("./useDetectMobile-DYV6V1yw.cjs"),_e=require("./index-DMbNpyIV.cjs"),ke=require("./motion-B_VPZaJq.cjs"),s=require("./style-Ito6YFqi.cjs"),Ce=j.styled.a`
1
+ "use strict";const r=require("react/jsx-runtime"),s=require("react"),S=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),w=require("./utils-BK6B_Y9X.cjs"),I=require("./breakpoints-CcVm-gVm.cjs"),ue=require("./Icon.cjs"),le=require("./ShopAvatar-CV3lj34D.cjs"),$e=require("./Badge.cjs"),me=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),ce=require("./IconButton.cjs"),fe=require("./useDetectMobile-DYV6V1yw.cjs"),_e=require("./index-DMbNpyIV.cjs"),ke=require("./motion-B_VPZaJq.cjs"),b=require("./style-CQdEALKR.cjs"),Ce=S.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  cursor: pointer;
@@ -28,7 +28,7 @@
28
28
  }
29
29
  }
30
30
 
31
- @media ${N.down("S")} {
31
+ @media ${I.down("S")} {
32
32
  width: 100%;
33
33
  gap: 0;
34
34
 
@@ -41,8 +41,8 @@
41
41
  }
42
42
  }
43
43
  }
44
- `,Ie=j.styled.div`
45
- border-radius: ${n=>b.getBorderRadiusValueWithUnits(n.theme,"edged")};
44
+ `,Ne=S.styled.div`
45
+ border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,"edged")};
46
46
  cursor: pointer;
47
47
 
48
48
  position: relative;
@@ -62,10 +62,10 @@
62
62
  }
63
63
  }
64
64
 
65
- @media ${N.down("S")} {
65
+ @media ${I.down("S")} {
66
66
  width: 14.5rem;
67
67
  }
68
- `,Ne=j.styled.div`
68
+ `,Ie=S.styled.div`
69
69
  flex: 1;
70
70
  display: flex;
71
71
  flex-direction: column;
@@ -148,7 +148,7 @@
148
148
  color: var(--gray-600, #676e79);
149
149
  }
150
150
 
151
- @media ${N.down("S")} {
151
+ @media ${I.down("S")} {
152
152
  padding: 1rem 0 0 0;
153
153
 
154
154
  & .campaign-title-text {
@@ -173,13 +173,13 @@
173
173
  gap: 0.25rem;
174
174
  }
175
175
  }
176
- `,ge=(n=!1,t=!1,a=!1)=>`
176
+ `,de=(n=!1,t=!1,a=!1)=>`
177
177
  display: flex;
178
178
  ${t?"flex-wrap: wrap;":""}
179
179
  ${t?"":"flex-wrap: nowrap;"}
180
180
  ${n?"align-items: center;":""}
181
181
  ${a?"justify-content: center;":""}
182
- `,De=j.styled.a`
182
+ `,De=S.styled.a`
183
183
  text-decoration: none;
184
184
  color: var(--gray-950);
185
185
  ${n=>n.hasPermission===!0&&"cursor: pointer"};
@@ -197,13 +197,13 @@
197
197
  text-decoration: none;
198
198
  }
199
199
 
200
- ${ge(!0)}
200
+ ${de(!0)}
201
201
  gap: 0.5rem;
202
202
  color: var(--gray-950, #14161a);
203
203
  font-weight: 500;
204
204
  font-size: 1rem;
205
205
  line-height: 1.5rem;
206
- border-radius: ${n=>b.getBorderRadiusValueWithUnits(n.theme,"slight")};
206
+ border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,"slight")};
207
207
  transition: all 0.25s ease;
208
208
  & .description {
209
209
  font-size: 0.85rem;
@@ -212,7 +212,7 @@
212
212
  font-weight: 400;
213
213
  }
214
214
  & .logo-wrapper {
215
- ${ge(!0,!1,!0)}
215
+ ${de(!0,!1,!0)}
216
216
  flex-shrink: 0;
217
217
  border-radius: 999px;
218
218
 
@@ -251,18 +251,18 @@
251
251
  background-color: var(--gray-95080, #14161acc);
252
252
  }
253
253
 
254
- @media ${N.down("S")} {
254
+ @media ${I.down("S")} {
255
255
  padding: 0;
256
256
  font-size: 0.875rem;
257
257
  }
258
- `,Pe=j.styled.div`
258
+ `,ze=S.styled.div`
259
259
  position: absolute;
260
260
  top: 0.5rem;
261
261
  ${n=>n.alignToLeft===!0?"left: 0.5rem;":"right: 0.5rem;"}
262
262
  display: flex;
263
263
  gap: 0.25rem;
264
- `,ze=j.styled.div`
265
- border-radius: ${n=>b.getBorderRadiusValueWithUnits(n.theme,n.borderRadius||"slight")};
264
+ `,Te=S.styled.div`
265
+ border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,n.borderRadius||"slight")};
266
266
  background-color: ${n=>n==null?void 0:n.color};
267
267
  color: white;
268
268
  height: 1.5rem;
@@ -277,7 +277,7 @@
277
277
  & i {
278
278
  font-size: 0.813rem;
279
279
  }
280
- `,Te=i.forwardRef(({src:n,...t},a)=>{const o=i.useRef();return i.useEffect(()=>{var u;const l=p=>{p.target.src=ce.DefaultShopImage,p.onerror=null};return(u=o==null?void 0:o.current)==null||u.addEventListener("error",l),()=>{var p;(p=o==null?void 0:o.current)==null||p.removeEventListener("error",l)}},[]),r.jsx(i.Fragment,{ref:a,children:b.isDefinedNotEmptyString(n)?r.jsx("img",{ref:o,src:n,...t}):r.jsx("img",{src:ce.DefaultShopImage,...t})})}),Le=n=>{const{uuid:t,hasPermission:a=!0,isUser:o,image:l,imageComponent:u,name:p,notifications:y=0,color:c="primary",size:f="large",style:d,disabled:k,onClick:m=()=>{},isActive:D,className:v,shopCategory:S,themeData:$,LinkComponent:C}=n,P=C||"a",x={theme:ue.useTheme(),color:c,size:f,style:d,disabled:k};return i.createElement(De,{onClick:h=>{h==null||h.preventDefault(),h.stopPropagation(),a===!0&&(m==null||m())},...x,key:p,className:`profile-item ${v}`,hasPermission:a,isActive:D,themeColor:($==null?void 0:$.code)||"transparent",as:P,...C?{to:`/${o?"user":"shop"}/${t}`}:{href:`/${o?"user":"shop"}/${t}`}},r.jsx("div",{className:"logo-wrapper",children:b.isDefined(u)?u:l}),r.jsxs("div",{children:[r.jsx("div",{className:"name",children:p}),!o&&r.jsx("div",{className:"description",children:S}),y>0&&r.jsx("div",{className:"notifications-number",children:r.jsx($e,{className:"badge",color:"danger",size:"small",children:y>99?"99+":y})})]}))},he=n=>{if(n!==void 0){const t=new Date(n),a=t.getFullYear(),o=t.getMonth()+1;return`${String(t.getDate()).padStart(2)}. ${o}. ${a}.`}},Re=i.forwardRef((n,t)=>{var le;const a=ue.useTheme(),{uuid:o,shopUuid:l,title:u="",coverPhoto:p,onSelect:y,startDate:c,endDate:f,salesPackages:d,shopName:k,shopCategory:m,shopImage:D,shopImageComponent:v,className:S,onSelectCard:$=()=>{},onSelectShop:C=()=>{},upcoming:P=!1,upcomingCampaignText:g,campaignSingleText:x,salesCampaignTypes:h=[],startsInPrefixTextPlural:B,startsinSuffixTextPlural:V,startsInPrefixTextSingular:G,startsinSuffixTextSingular:F,endsInPrefixTextPlural:A,endsinSuffixTextPlural:H,endsInPrefixTextSingular:U,endsinSuffixTextSingular:Y,endedText:Z,themeData:ne,numberOfListings:z,numberOfListingsTextSingular:J,numberOfListingsTextPlural:q,metadata:e,LinkComponent:W,sponsored:te,...K}=n,fe=W||"a",oe=i.useRef(),E=b.getDayNumberPrecise(c,f),Q=E!==-1&&(E==null?void 0:E.isEnded)===!0,X=E!==-1&&!Q,ee=b.calcDaysUntil(c),L=b.calcDaysRemaining(f),xe=L!==null&&L<=2&&L>0,ae=b.normalizeDate(f),se=ae?new Date(ae):null,be=new Date,re=se?se.getTime()-be.getTime():null,M=re!==null&&re>0&&re<24*60*60*1e3,ie=(w,R,I,_,T)=>I===1?`${w} ${I} ${_}`:`${R} ${I} ${T}`,we=()=>{if(!f)return null;const w=b.normalizeDate(f),R=w?new Date(w):null;if(!R)return null;const I=ve,_=R.getTime()-I.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]=i.useState(new Date);i.useEffect(()=>{if(!M)return;const w=setInterval(()=>{Se(new Date)},1e3);return()=>clearInterval(w)},[M]);const O=M?we():null;return r.jsxs(Ce,{ref:oe,theme:a,className:S,name:e==null?void 0:e.name,"data-accessor":e==null?void 0:e.accessor,onClick:w=>$(w,oe),as:fe,...W?{to:`/shop/${l}/campaign/${o}`}:{href:`/shop/${l}/campaign/${o}`},sponsored:te,...K,children:[r.jsxs(Ie,{theme:a,children:[r.jsx("img",{src:p}),r.jsx(Pe,{children:d==null?void 0:d.map((w,R)=>{var I,_;return r.jsx(ze,{color:(I=h==null?void 0:h.find(T=>T.value===w))==null?void 0:I.color,theme:a,children:r.jsx(me,{icon:(_=h==null?void 0:h.find(T=>T.value===w))==null?void 0:_.icon})},`package__${R}`)})})]}),r.jsxs(Ne,{theme:a,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=P?g:x)==null?void 0:le.toUpperCase()}),r.jsx("div",{className:"campaign-title-text",children:u}),f&&c&&r.jsxs("div",{className:"campaign-date",children:[he(c)," - ",he(f)]}),r.jsxs("div",{className:"timestamp-text",children:[z>0&&r.jsxs("span",{className:"listings-text",children:[z," ",z===1?J:q," ","∙"," "]}),r.jsx("span",{className:`duration-text ${xe?"urgent":""} ${X?"":"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")]}):X&&!Q&&L!==null&&L>0?ie(U,A,L,Y,H):Q?Z||"Završena":!X&&ee!==null&&ee>0?ie(G,B,ee,F,V):null})]})]})}),r.jsx(Le,{hasPermission:!0,image:r.jsx(Te,{src:D}),imageComponent:v,themeData:ne,isActive:!0,isUser:!1,name:k,shopCategory:m,uuid:l,onClick:()=>C(l)})]})]})}),Ee=j.styled.div`
280
+ `,Re=s.forwardRef(({src:n,...t},a)=>{const o=s.useRef();return s.useEffect(()=>{var m;const i=f=>{f.target.src=le.DefaultShopImage,f.onerror=null};return(m=o==null?void 0:o.current)==null||m.addEventListener("error",i),()=>{var f;(f=o==null?void 0:o.current)==null||f.removeEventListener("error",i)}},[]),r.jsx(s.Fragment,{ref:a,children:w.isDefinedNotEmptyString(n)?r.jsx("img",{ref:o,src:n,...t}):r.jsx("img",{src:le.DefaultShopImage,...t})})}),Pe=n=>{const{uuid:t,hasPermission:a=!0,isUser:o,image:i,imageComponent:m,name:f,notifications:j=0,color:l="primary",size:h="large",style:c,disabled:k,onClick:u=()=>{},isActive:D,className:v,shopCategory:y,themeData:$,LinkComponent:C}=n,z=C||"a",p={theme:me.useTheme(),color:l,size:h,style:c,disabled:k};return s.createElement(De,{onClick:g=>{g==null||g.preventDefault(),g.stopPropagation(),a===!0&&(u==null||u())},...p,key:f,className:`profile-item ${v}`,hasPermission:a,isActive:D,themeColor:($==null?void 0:$.code)||"transparent",as:z,...C?{to:`/${o?"user":"shop"}/${t}`}:{href:`/${o?"user":"shop"}/${t}`}},r.jsx("div",{className:"logo-wrapper",children:w.isDefined(m)?m:i}),r.jsxs("div",{children:[r.jsx("div",{className:"name",children:f}),!o&&r.jsx("div",{className:"description",children:y}),j>0&&r.jsx("div",{className:"notifications-number",children:r.jsx($e,{className:"badge",color:"danger",size:"small",children:j>99?"99+":j})})]}))},ge=n=>{if(n!==void 0){const t=new Date(n),a=t.getFullYear(),o=t.getMonth()+1;return`${String(t.getDate()).padStart(2)}. ${o}. ${a}.`}},Ee=s.forwardRef((n,t)=>{var ie;const a=me.useTheme(),{uuid:o,shopUuid:i,title:m="",coverPhoto:f,onSelect:j,startDate:l,endDate:h,salesPackages:c,shopName:k,shopCategory:u,shopImage:D,shopImageComponent:v,className:y,onSelectCard:$=()=>{},onSelectShop:C=()=>{},upcoming:z=!1,upcomingCampaignText:d,campaignSingleText:p,salesCampaignTypes:g=[],startsInPrefixTextPlural:W,startsinSuffixTextPlural:A,startsInPrefixTextSingular:F,startsinSuffixTextSingular:H,endsInPrefixTextPlural:X,endsinSuffixTextPlural:ee,endsInPrefixTextSingular:Y,endsinSuffixTextSingular:ne,endedText:Z,themeData:re,numberOfListings:T,numberOfListingsTextSingular:G,numberOfListingsTextPlural:q,metadata:e,LinkComponent:L,sponsored:te,...J}=n,he=L||"a",oe=s.useRef(),E=w.getDayNumberPrecise(l,h),M=E!==-1&&(E==null?void 0:E.isEnded)===!0,B=E!==-1&&!M,U=w.calcDaysUntil(l),ae=w.normalizeDate(h),se=ae?new Date(ae):null,pe=new Date,K=se?se.getTime()-pe.getTime():null,O=K!==null&&K>0&&K<24*60*60*1e3,xe=(x,P,N,_,R)=>N===1?`${x} ${N} ${_}`:`${P} ${N} ${R}`,be=()=>{if(!h)return null;const x=w.normalizeDate(h),P=x?new Date(x):null;if(!P)return null;const N=we,_=P.getTime()-N.getTime();if(_<=0)return null;const R=Math.floor(_/(1e3*60*60)),Se=Math.floor(_%(1e3*60*60)/(1e3*60)),je=Math.floor(_%(1e3*60)/1e3);return{hours:R,minutes:Se,seconds:je}},[we,ve]=s.useState(new Date);s.useEffect(()=>{if(!O)return;const x=setInterval(()=>{ve(new Date)},1e3);return()=>clearInterval(x)},[O]);const V=O?be():null,Q=!!(B&&!M&&O&&V),ye=Q||M||!B&&U!==null&&U>0;return r.jsxs(Ce,{ref:oe,theme:a,className:y,name:e==null?void 0:e.name,"data-accessor":e==null?void 0:e.accessor,onClick:x=>$(x,oe),as:he,...L?{to:`/shop/${i}/campaign/${o}`}:{href:`/shop/${i}/campaign/${o}`},sponsored:te,...J,children:[r.jsxs(Ne,{theme:a,children:[r.jsx("img",{src:f}),r.jsx(ze,{children:c==null?void 0:c.map((x,P)=>{var N,_;return r.jsx(Te,{color:(N=g==null?void 0:g.find(R=>R.value===x))==null?void 0:N.color,theme:a,children:r.jsx(ue,{icon:(_=g==null?void 0:g.find(R=>R.value===x))==null?void 0:_.icon})},`package__${P}`)})})]}),r.jsxs(Ie,{theme:a,children:[r.jsx("div",{className:"text-block-wrapper",children:r.jsxs("div",{className:"title-block-wrapper",children:[r.jsx("div",{className:"campaign-title",children:(ie=z?d:p)==null?void 0:ie.toUpperCase()}),r.jsx("div",{className:"campaign-title-text",children:m}),h&&l&&r.jsxs("div",{className:"campaign-date",children:[ge(l)," - ",ge(h)]}),r.jsxs("div",{className:"timestamp-text",children:[T>0&&r.jsxs("span",{className:"listings-text",children:[T," ",T===1?G:q,ye?" ∙ ":""]}),r.jsx("span",{className:`duration-text ${Q?"urgent":""} ${B?"":"starts-in"}`,children:Q?r.jsxs("div",{className:"countdown-timer",children:[Y," ",V.hours.toString().padStart(2,"0"),":",V.minutes.toString().padStart(2,"0"),":",V.seconds.toString().padStart(2,"0")]}):M?Z||"Završena":!B&&U!==null&&U>0?xe(F,W,U,H,A):null})]})]})}),r.jsx(Pe,{hasPermission:!0,image:r.jsx(Re,{src:D}),imageComponent:v,themeData:re,isActive:!0,isUser:!1,name:k,shopCategory:u,uuid:i,onClick:()=>C(i)})]})]})}),Ue=S.styled.div`
281
281
  margin: 0 auto;
282
282
  display: flex;
283
283
  flex-direction: column;
@@ -328,7 +328,7 @@
328
328
  }
329
329
  }
330
330
 
331
- @media ${N.down("S")} {
331
+ @media ${I.down("S")} {
332
332
  gap: 1.25rem;
333
333
 
334
334
  & .scrollable-section__header {
@@ -340,17 +340,17 @@
340
340
  }
341
341
  }
342
342
  }
343
- `,Ue=j.styled(ke.motion.div)`
343
+ `,qe=S.styled(ke.motion.div)`
344
344
  display: grid;
345
345
  grid-template-columns: repeat(${n=>n==null?void 0:n.numOfColumns}, 1fr);
346
346
  gap: 1.5rem;
347
347
  width: 100%;
348
348
 
349
- @media ${N.only("M")} {
349
+ @media ${I.only("M")} {
350
350
  grid-template-columns: repeat(${n=>(n==null?void 0:n.tabletNumOfColumns)??2}, 1fr);
351
351
  }
352
352
 
353
- @media ${N.down("S")} {
353
+ @media ${I.down("S")} {
354
354
  display: flex;
355
355
  flex-wrap: nowrap;
356
356
  overflow-x: scroll;
@@ -372,7 +372,7 @@
372
372
  /* Safari and Chrome */
373
373
  }
374
374
  }
375
- `,qe=i.forwardRef(({icon:n,title:t,numOfSlides:a=4,tabletNumOfSlides:o,showNavigation:l=!0,hasNextPage:u=!1,className:p="",handleFetchNextPage:y=()=>{},children:c},f)=>{const[d,k]=i.useState(0),[m,D]=i.useState(1),v=pe.useDetectMobile(),S=(c==null?void 0:c.length)??1;i.useEffect(()=>{const g=()=>{D(a)};return window.addEventListener("resize",g),g(),()=>window.removeEventListener("resize",g)},[]);const $=v?c:c==null?void 0:c.slice(d,d+m),C=g=>{var h;(h=g==null?void 0:g.target)==null||h.blur();const x=d+m;x<S&&k(x),x+m>=S&&u&&y()},P=g=>{var x;(x=g==null?void 0:g.target)==null||x.blur(),d-m>=0&&k(d-m)};return r.jsxs(Ee,{ref:f,className:p,children:[r.jsx("div",{className:"scrollable-section__header",children:r.jsxs("div",{className:"scrollable-section__title",children:[b.isDefinedNotEmptyString(n)&&r.jsx(me,{icon:n,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),b.isDefinedNotEmptyString(t)&&r.jsxs("div",{className:"title__text",children:[" ",t]})]})}),r.jsxs(Ue,{numOfColumns:a,tabletNumOfColumns:o,...!v&&{animate:{x:0,opacity:1},initial:{x:10,opacity:0}},className:"scrollable-section__content",children:[$,v&&u&&r.jsx(_e.InfiniteScrollEndElement,{onIsVisible:y})]},`scrollable-section__content-${d}`),l&&S>m&&!v&&r.jsxs("div",{className:"scrollable-section__navigation",children:[r.jsx(de,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:d===0,onClick:P}),r.jsx(de,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:d+m>=S,onClick:C})]})]})}),We=j.styled.div`
375
+ `,Le=s.forwardRef(({icon:n,title:t,numOfSlides:a=4,tabletNumOfSlides:o,showNavigation:i=!0,hasNextPage:m=!1,className:f="",handleFetchNextPage:j=()=>{},children:l},h)=>{const[c,k]=s.useState(0),[u,D]=s.useState(1),v=fe.useDetectMobile(),y=(l==null?void 0:l.length)??1;s.useEffect(()=>{const d=()=>{D(a)};return window.addEventListener("resize",d),d(),()=>window.removeEventListener("resize",d)},[]);const $=v?l:l==null?void 0:l.slice(c,c+u),C=d=>{var g;(g=d==null?void 0:d.target)==null||g.blur();const p=c+u;p<y&&k(p),p+u>=y&&m&&j()},z=d=>{var p;(p=d==null?void 0:d.target)==null||p.blur(),c-u>=0&&k(c-u)};return r.jsxs(Ue,{ref:h,className:f,children:[r.jsx("div",{className:"scrollable-section__header",children:r.jsxs("div",{className:"scrollable-section__title",children:[w.isDefinedNotEmptyString(n)&&r.jsx(ue,{icon:n,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),w.isDefinedNotEmptyString(t)&&r.jsxs("div",{className:"title__text",children:[" ",t]})]})}),r.jsxs(qe,{numOfColumns:a,tabletNumOfColumns:o,...!v&&{animate:{x:0,opacity:1},initial:{x:10,opacity:0}},className:"scrollable-section__content",children:[$,v&&m&&r.jsx(_e.InfiniteScrollEndElement,{onIsVisible:j})]},`scrollable-section__content-${c}`),i&&y>u&&!v&&r.jsxs("div",{className:"scrollable-section__navigation",children:[r.jsx(ce,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:c===0,onClick:z}),r.jsx(ce,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:c+u>=y,onClick:C})]})]})}),Me=S.styled.div`
376
376
  display: flex;
377
377
  flex: 1;
378
378
  width: 100%;
@@ -389,8 +389,8 @@
389
389
  border-radius: 1.25rem;
390
390
  object-fit: cover;
391
391
  }
392
- `,Me=i.forwardRef(({sectionName:n,imageUrl:t,maxHeight:a="16.25rem",className:o="",handleClick:l=()=>{}},u)=>r.jsx(We,{ref:u,maxHeight:a,onClick:l,className:`itemless-banner ${o}`,children:r.jsx("img",{src:t,alt:`itemless-banner__${n}`})})),Oe=j.styled(s.SkeletonRowWrapper)`
393
- @media ${N.down("S")} {
392
+ `,Be=s.forwardRef(({sectionName:n,imageUrl:t,maxHeight:a="16.25rem",className:o="",handleClick:i=()=>{}},m)=>r.jsx(Me,{ref:m,maxHeight:a,onClick:i,className:`itemless-banner ${o}`,children:r.jsx("img",{src:t,alt:`itemless-banner__${n}`})})),Oe=S.styled(b.SkeletonAnimationContainer)`
393
+ @media ${I.down("S")} {
394
394
  flex-direction: column;
395
395
 
396
396
  & .skeleton__image {
@@ -404,4 +404,4 @@
404
404
  }
405
405
  }
406
406
  }
407
- `,Be=({keyPrefix:n})=>r.jsxs(Oe,{children:[r.jsxs(s.SkeletonRowWrapper,{children:[r.jsx(s.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-1`),r.jsxs(s.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(s.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(s.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(s.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(s.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(s.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(s.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(s.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]}),r.jsxs(s.SkeletonRowWrapper,{noGradient:!0,children:[r.jsx(s.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-2`),r.jsxs(s.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(s.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(s.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(s.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(s.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(s.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(s.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(s.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]})]}),Ve=({keyPrefix:n,isLoading:t=!1,fallbackComponent:a=r.jsx(r.Fragment,{}),children:o})=>r.jsx(i.Suspense,{fallbackComponent:a,children:t===!0?r.jsx(Be,{keyPrefix:n}):o}),Ge=i.memo(Re),Fe=i.forwardRef(({sellerType:n="Shop",items:t=[],title:a,icon:o,isLoading:l,onSelectCard:u=()=>{},onSelectShop:p=()=>{},getImage:y=()=>{},campaignSingleText:c,upcomingCampaignText:f,salesCampaignTypes:d=[],startsInPrefixTextPlural:k,startsinSuffixTextPlural:m,startsInPrefixTextSingular:D,startsinSuffixTextSingular:v,endsInPrefixTextPlural:S,endsinSuffixTextPlural:$,endsInPrefixTextSingular:C,endsinSuffixTextSingular:P,endedText:g,numOfSlides:x=4,showNavigation:h=!0,numberOfListingsTextSingular:B,numberOfListingsTextPlural:V,itemlessImageUrl:G,itemlessMaxHeight:F,handleItemlessLink:A=()=>{},componentName:H,hasNextPage:U=!1,handleFetchNextPage:Y=()=>{},LinkComponent:Z},ne)=>{const z=pe.useDetectMobile(),J=i.useMemo(()=>{let q=t==null?void 0:t.map((e,W)=>r.jsx(Ge,{className:`campaign-item ${(t==null?void 0:t.length)===1?"horizontal-campaign-item":""}`,coverPhoto:y(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,K)=>u(e==null?void 0:e.campaignUuid,e==null?void 0:e.shopUuid,K),onSelectShop:()=>p(e==null?void 0:e.shopUuid),campaignSingleText:c,upcomingCampaignText:f,upcoming:e==null?void 0:e.upcoming,salesCampaignTypes:d,startsInPrefixTextPlural:k,startsinSuffixTextPlural:m,startsInPrefixTextSingular:D,startsinSuffixTextSingular:v,endsInPrefixTextPlural:S,endsinSuffixTextPlural:$,endsInPrefixTextSingular:C,endsinSuffixTextSingular:P,endedText:g,themeData:e==null?void 0:e.themeData,numberOfListings:e==null?void 0:e.numberOfListings,numberOfListingsTextSingular:B,numberOfListingsTextPlural:V,metadata:{name:H,accessor:e==null?void 0:e.accessor},LinkComponent:Z,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&&!z?[...q,r.jsx(Me,{imageUrl:G,className:"campaign-item",maxHeight:F,handleClick:A},"itemless-campaign-section-banner")]:q},[t]);return r.jsx(Ve,{isLoading:l,keyPrefix:"sales-campaign-skeleton",children:r.jsx(qe,{icon:o,title:a,numOfSlides:x,tabletNumOfSlides:2,showNavigation:h,hasNextPage:U,handleFetchNextPage:Y,className:(t==null?void 0:t.length)<4&&!z?"itemless":"",children:J},`sales-campaign-section__${z}`)})});module.exports=Fe;
407
+ `,Ve=({keyPrefix:n})=>r.jsx(Oe,{children:[1,2].map(t=>r.jsxs(b.SkeletonContainer,{children:[r.jsx(b.SkeletonSquare,{size:"13.75rem",className:"skeleton__image"}),r.jsxs(b.SkeletonColumnContainer,{children:[r.jsx(b.SkeletonRect,{width:"100%",height:"1rem"}),r.jsx(b.SkeletonRect,{width:"100%",height:"1.75rem"}),r.jsx(b.SkeletonRect,{width:"100%",height:"1.25rem"}),r.jsx(b.SkeletonRect,{width:"100%",height:"2rem"}),r.jsxs(b.SkeletonContainer,{alignItems:"center",children:[r.jsx(b.SkeletonCircle,{size:"2.5rem"}),r.jsx(b.SkeletonRect,{width:"5rem",height:"1.25rem"})]})]})]},`${n}-${t}`))}),We=({keyPrefix:n,isLoading:t=!1,fallbackComponent:a=r.jsx(r.Fragment,{}),children:o})=>r.jsx(s.Suspense,{fallbackComponent:a,children:t===!0?r.jsx(Ve,{keyPrefix:n}):o}),Ae=s.memo(Ee),Fe=s.forwardRef(({sellerType:n="Shop",items:t=[],title:a,icon:o,isLoading:i,onSelectCard:m=()=>{},onSelectShop:f=()=>{},getImage:j=()=>{},campaignSingleText:l,upcomingCampaignText:h,salesCampaignTypes:c=[],startsInPrefixTextPlural:k,startsinSuffixTextPlural:u,startsInPrefixTextSingular:D,startsinSuffixTextSingular:v,endsInPrefixTextPlural:y,endsinSuffixTextPlural:$,endsInPrefixTextSingular:C,endsinSuffixTextSingular:z,endedText:d,numOfSlides:p=4,showNavigation:g=!0,numberOfListingsTextSingular:W,numberOfListingsTextPlural:A,itemlessImageUrl:F,itemlessMaxHeight:H,handleItemlessLink:X=()=>{},componentName:ee,hasNextPage:Y=!1,handleFetchNextPage:ne=()=>{},LinkComponent:Z},re)=>{const T=fe.useDetectMobile(),G=s.useMemo(()=>{let q=t==null?void 0:t.map((e,L)=>r.jsx(Ae,{className:`campaign-item ${(t==null?void 0:t.length)===1?"horizontal-campaign-item":""}`,coverPhoto:j(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)=>m(e==null?void 0:e.campaignUuid,e==null?void 0:e.shopUuid,J),onSelectShop:()=>f(e==null?void 0:e.shopUuid),campaignSingleText:l,upcomingCampaignText:h,upcoming:e==null?void 0:e.upcoming,salesCampaignTypes:c,startsInPrefixTextPlural:k,startsinSuffixTextPlural:u,startsInPrefixTextSingular:D,startsinSuffixTextSingular:v,endsInPrefixTextPlural:y,endsinSuffixTextPlural:$,endsInPrefixTextSingular:C,endsinSuffixTextSingular:z,endedText:d,themeData:e==null?void 0:e.themeData,numberOfListings:e==null?void 0:e.numberOfListings,numberOfListingsTextSingular:W,numberOfListingsTextPlural:A,metadata:{name:ee,accessor:e==null?void 0:e.accessor},LinkComponent:Z,sponsored:e==null?void 0:e.sponsored},`campaign__item__${L}__${e==null?void 0:e.startDate}___${e==null?void 0:e.endDate}`));return(t==null?void 0:t.length)<4&&!T?[...q,r.jsx(Be,{imageUrl:F,className:"campaign-item",maxHeight:H,handleClick:X},"itemless-campaign-section-banner")]:q},[t]);return r.jsx(We,{isLoading:i,keyPrefix:"sales-campaign-skeleton",children:r.jsx(Le,{icon:o,title:a,numOfSlides:p,tabletNumOfSlides:2,showNavigation:g,hasNextPage:Y,handleFetchNextPage:ne,className:(t==null?void 0:t.length)<4&&!T?"itemless":"",children:G},`sales-campaign-section__${T}`)})});module.exports=Fe;