@lanaco/lnc-react-ui 4.0.199 → 4.0.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +45 -56
  3. package/dist/AccordionDetails.cjs +3 -3
  4. package/dist/AccordionDetails.js +11 -25
  5. package/dist/AccordionSummary.cjs +4 -4
  6. package/dist/AccordionSummary.js +34 -44
  7. package/dist/ActionsToolbar.cjs +2 -3
  8. package/dist/ActionsToolbar.js +83 -135
  9. package/dist/Alert.cjs +10 -10
  10. package/dist/Alert.js +32 -64
  11. package/dist/Avatar.cjs +9 -9
  12. package/dist/Avatar.js +33 -72
  13. package/dist/Badge.cjs +6 -6
  14. package/dist/Badge.js +22 -47
  15. package/dist/BannerSectionCarousel.cjs +4 -4
  16. package/dist/BannerSectionCarousel.js +51 -542
  17. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  18. package/dist/BlogCardsSponsoredSection.js +1 -1
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +12 -14
  21. package/dist/BlogExploreSection.cjs +1 -1
  22. package/dist/BlogExploreSection.js +1 -1
  23. package/dist/BlogListSection.cjs +1 -1
  24. package/dist/BlogListSection.js +1 -1
  25. package/dist/BlogsSectionDetailed.cjs +1 -1
  26. package/dist/BlogsSectionDetailed.js +1 -1
  27. package/dist/BlogsSectionSimple.cjs +1 -1
  28. package/dist/BlogsSectionSimple.js +1 -1
  29. package/dist/BlogsSectionWithFilters.cjs +1 -1
  30. package/dist/BlogsSectionWithFilters.js +2 -2
  31. package/dist/Breadcrumbs.cjs +5 -5
  32. package/dist/Breadcrumbs.js +57 -87
  33. package/dist/Button.cjs +11 -11
  34. package/dist/Button.js +126 -173
  35. package/dist/ButtonGroup.cjs +8 -8
  36. package/dist/ButtonGroup.js +37 -49
  37. package/dist/CalorieCalculatorSection.cjs +8 -8
  38. package/dist/CalorieCalculatorSection.js +90 -97
  39. package/dist/CheckBoxInput.cjs +1 -1
  40. package/dist/CheckBoxInput.js +2 -5
  41. package/dist/Chip.cjs +14 -14
  42. package/dist/Chip.js +73 -111
  43. package/dist/ConfirmationForm.cjs +6 -6
  44. package/dist/ConfirmationForm.js +67 -109
  45. package/dist/ContactSection.cjs +1 -0
  46. package/dist/ContactSection.js +1 -0
  47. package/dist/Content.cjs +1 -1
  48. package/dist/Content.js +7 -15
  49. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  50. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  51. package/dist/DataView.cjs +1 -1
  52. package/dist/DataView.js +30 -50
  53. package/dist/DateInput.cjs +4 -4
  54. package/dist/DateInput.js +1347 -1383
  55. package/dist/DecimalInput.cjs +6 -6
  56. package/dist/DecimalInput.js +210 -263
  57. package/dist/DecimalInputV2.cjs +23 -23
  58. package/dist/DecimalInputV2.js +119 -176
  59. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  60. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  61. package/dist/DetailedProductsSection.cjs +1 -1
  62. package/dist/DetailedProductsSection.js +2 -2
  63. package/dist/DetailsView.cjs +9 -9
  64. package/dist/DetailsView.js +111 -162
  65. package/dist/DoubleRangeSlider.cjs +22 -22
  66. package/dist/DoubleRangeSlider.js +70 -95
  67. package/dist/DragAndDropFile.cjs +10 -10
  68. package/dist/DragAndDropFile.js +347 -402
  69. package/dist/DragDropFiles.cjs +4 -4
  70. package/dist/DragDropFiles.js +70 -124
  71. package/dist/Drawer.cjs +5 -5
  72. package/dist/Drawer.js +97 -135
  73. package/dist/Dropdown.cjs +1 -1
  74. package/dist/Dropdown.js +44 -213
  75. package/dist/DropdownItem.cjs +14 -14
  76. package/dist/DropdownItem.js +106 -142
  77. package/dist/DropdownLookup.cjs +1 -1
  78. package/dist/DropdownLookup.js +61 -242
  79. package/dist/DropdownMenu.cjs +4 -4
  80. package/dist/DropdownMenu.js +87 -149
  81. package/dist/EditableTable.cjs +10 -10
  82. package/dist/EditableTable.js +165 -331
  83. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  84. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  85. package/dist/FaqSection.cjs +3 -3
  86. package/dist/FaqSection.js +119 -153
  87. package/dist/FileInput.cjs +7 -7
  88. package/dist/FileInput.js +66 -94
  89. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  90. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  91. package/dist/FlexBox.cjs +6 -6
  92. package/dist/FlexBox.js +28 -63
  93. package/dist/FlexGrid.cjs +1 -1
  94. package/dist/FlexGrid.js +27 -67
  95. package/dist/FlexGridItem.cjs +6 -6
  96. package/dist/FlexGridItem.js +34 -62
  97. package/dist/Footer.cjs +1 -1
  98. package/dist/Footer.js +7 -15
  99. package/dist/FormField.cjs +7 -7
  100. package/dist/FormField.js +22 -47
  101. package/dist/FormView.cjs +6 -6
  102. package/dist/FormView.js +148 -195
  103. package/dist/GiftCardsSection.cjs +1 -1
  104. package/dist/GiftCardsSection.js +1 -1
  105. package/dist/Grid.cjs +2 -2
  106. package/dist/Grid.js +40 -65
  107. package/dist/GridItem.cjs +2 -2
  108. package/dist/GridItem.js +47 -80
  109. package/dist/Header.cjs +1 -1
  110. package/dist/Header.js +7 -15
  111. package/dist/HelpBannerSection.cjs +3 -3
  112. package/dist/HelpBannerSection.js +9 -15
  113. package/dist/Icon.cjs +4 -4
  114. package/dist/Icon.js +29 -55
  115. package/dist/IconButton.cjs +9 -9
  116. package/dist/IconButton.js +89 -127
  117. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  118. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  119. package/dist/Kanban.cjs +7 -7
  120. package/dist/Kanban.js +2033 -2098
  121. package/dist/KanbanActionsToolbar.cjs +4 -5
  122. package/dist/KanbanActionsToolbar.js +61 -96
  123. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  124. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  125. package/dist/KanbanCard.cjs +1 -1
  126. package/dist/KanbanCard.js +2 -3
  127. package/dist/KanbanFooter.cjs +3 -3
  128. package/dist/KanbanFooter.js +37 -55
  129. package/dist/KanbanHeader.cjs +4 -4
  130. package/dist/KanbanHeader.js +49 -81
  131. package/dist/KanbanView.cjs +2 -2
  132. package/dist/KanbanView.js +106 -173
  133. package/dist/Link.cjs +7 -7
  134. package/dist/Link.js +20 -37
  135. package/dist/LocationSearchSection.cjs +1 -1
  136. package/dist/LocationSearchSection.js +1 -1
  137. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  138. package/dist/MasonryGeneralCardsSection.js +1 -1
  139. package/dist/MenuItem.cjs +13 -13
  140. package/dist/MenuItem.js +101 -139
  141. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  142. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  143. package/dist/Modal.cjs +18 -19
  144. package/dist/Modal.js +131 -166
  145. package/dist/MultiSelectDropdown.cjs +1 -1
  146. package/dist/MultiSelectDropdown.js +25 -196
  147. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  148. package/dist/MultiSelectDropdownLookup.js +27 -209
  149. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  150. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  151. package/dist/NestedDropdownItem.cjs +3 -3
  152. package/dist/NestedDropdownItem.js +45 -67
  153. package/dist/NestedMenuItem.cjs +5 -5
  154. package/dist/NestedMenuItem.js +51 -78
  155. package/dist/NotificationContainer.cjs +10 -10
  156. package/dist/NotificationContainer.js +46 -79
  157. package/dist/NotificationMessage.cjs +2 -2
  158. package/dist/NotificationMessage.js +47 -64
  159. package/dist/NumberInput.cjs +23 -23
  160. package/dist/NumberInput.js +89 -149
  161. package/dist/PageLayout.cjs +2 -2
  162. package/dist/PageLayout.js +20 -28
  163. package/dist/Pagination.cjs +3 -3
  164. package/dist/Pagination.js +102 -185
  165. package/dist/PartnerBrandsSection.cjs +62 -0
  166. package/dist/PartnerBrandsSection.js +154 -0
  167. package/dist/PartnerStatsSection.cjs +100 -0
  168. package/dist/PartnerStatsSection.js +124 -0
  169. package/dist/PasswordInput.cjs +23 -23
  170. package/dist/PasswordInput.js +108 -137
  171. package/dist/Popover.cjs +1 -1
  172. package/dist/Popover.js +7 -32
  173. package/dist/PopoverContent.cjs +5 -5
  174. package/dist/PopoverContent.js +22 -28
  175. package/dist/PopoverTrigger.cjs +1 -1
  176. package/dist/PopoverTrigger.js +7 -12
  177. package/dist/ProductsWithBannerSection.cjs +1 -1
  178. package/dist/ProductsWithBannerSection.js +1 -1
  179. package/dist/ProgressBar.cjs +8 -8
  180. package/dist/ProgressBar.js +32 -59
  181. package/dist/RadioGroup.cjs +3 -3
  182. package/dist/RadioGroup.js +41 -72
  183. package/dist/RadioInput.cjs +28 -28
  184. package/dist/RadioInput.js +78 -123
  185. package/dist/RangeSlider.cjs +19 -19
  186. package/dist/RangeSlider.js +92 -119
  187. package/dist/ReviewsSection.cjs +13 -13
  188. package/dist/ReviewsSection.js +81 -101
  189. package/dist/SalesCampaignsSection.cjs +38 -28
  190. package/dist/SalesCampaignsSection.js +297 -325
  191. package/dist/SearchBar.cjs +10 -10
  192. package/dist/SearchBar.js +168 -188
  193. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  194. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  195. package/dist/SearchSection.cjs +1 -1
  196. package/dist/SearchSection.js +2 -3
  197. package/dist/Separator.cjs +3 -3
  198. package/dist/Separator.js +14 -19
  199. package/dist/Sidebar.cjs +4 -5
  200. package/dist/Sidebar.js +33 -56
  201. package/dist/SimpleCategoriesSection.cjs +2 -2
  202. package/dist/SimpleCategoriesSection.js +2 -2
  203. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  204. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  205. package/dist/Spinner.cjs +18 -18
  206. package/dist/Spinner.js +37 -54
  207. package/dist/StatsSection.cjs +6 -6
  208. package/dist/StatsSection.js +15 -25
  209. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  210. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  211. package/dist/Surface.cjs +4 -4
  212. package/dist/Surface.js +19 -34
  213. package/dist/SwipeableDrawer.cjs +8 -8
  214. package/dist/SwipeableDrawer.js +84 -136
  215. package/dist/TabItem.cjs +11 -11
  216. package/dist/TabItem.js +83 -118
  217. package/dist/Table.cjs +65 -65
  218. package/dist/Table.js +786 -1167
  219. package/dist/TableView.cjs +2 -2
  220. package/dist/TableView.js +113 -197
  221. package/dist/Tabs.cjs +4 -4
  222. package/dist/Tabs.js +41 -60
  223. package/dist/TextAreaInput.cjs +14 -14
  224. package/dist/TextAreaInput.js +131 -181
  225. package/dist/TextInput.cjs +23 -23
  226. package/dist/TextInput.js +78 -126
  227. package/dist/ThemeProvider.cjs +5 -5
  228. package/dist/ThemeProvider.js +35 -39
  229. package/dist/TimeInput.cjs +7 -7
  230. package/dist/TimeInput.js +46 -72
  231. package/dist/Toggle.cjs +20 -20
  232. package/dist/Toggle.js +78 -109
  233. package/dist/ToggleSection.cjs +5 -5
  234. package/dist/ToggleSection.js +48 -55
  235. package/dist/TreeMenu.cjs +5 -5
  236. package/dist/TreeMenu.js +43 -67
  237. package/dist/TreeMenuSeparator.cjs +3 -3
  238. package/dist/TreeMenuSeparator.js +12 -20
  239. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  240. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  241. package/dist/UploadedFile.cjs +11 -11
  242. package/dist/UploadedFile.js +73 -99
  243. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  244. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  245. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  246. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  247. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  248. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  249. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  250. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  251. package/dist/index-BdKi2ogu.js +39 -0
  252. package/dist/index-BppfjY8h.js +497 -0
  253. package/dist/index-CRk3vcd4.cjs +95 -0
  254. package/dist/index-CX2A-q39.cjs +4 -0
  255. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  256. package/dist/index-DeS-oqJB.cjs +1 -0
  257. package/dist/index.cjs +1 -1
  258. package/dist/index.js +25 -21
  259. package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
  260. package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
  261. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  262. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  263. package/package.json +4 -2
  264. package/vite.config.js +8 -0
  265. package/dist/KanbanCard-68kSAXL6.js +0 -175
  266. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  267. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  268. package/dist/index-Be-_NM9Q.cjs +0 -4
  269. package/dist/index-C0LcDEqa.js +0 -47
  270. package/dist/index-CSNxZFTX.cjs +0 -95
@@ -1,14 +1,13 @@
1
1
  import { jsxs as a, jsx as r, Fragment as S } from "react/jsx-runtime";
2
- import { forwardRef as v, Suspense as N, memo as z, useMemo as P } from "react";
3
- import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
2
+ import { forwardRef as w, Suspense as C, memo as y, useMemo as N } from "react";
3
+ import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as $ } from "./consts-BuFChS64.js";
5
- import { u as M } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { t as I, m as L, b as W, g as j } from "./utils-DtEfC-TX.js";
7
- import { useTheme as x } from "./ThemeProvider.js";
8
- import { P as d } from "./index-CblbdqjE.js";
9
- import { P as E } from "./index-B22BZVBG.js";
10
- import { s as T, S as G, b as f, c as w, a as o } from "./style-BwQ4djFC.js";
11
- const F = s.div`
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`
12
11
  display: flex;
13
12
  flex-direction: column;
14
13
  color: var(--darkest-950);
@@ -18,7 +17,7 @@ const F = s.div`
18
17
  font-weight: 600;
19
18
  font-size: 1.5rem;
20
19
  }
21
- `, O = s.div`
20
+ `, F = d.div`
22
21
  display: grid;
23
22
  grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
24
23
  gap: 1.25rem;
@@ -26,12 +25,12 @@ const F = s.div`
26
25
  @media (max-width: ${$ + "px"}) {
27
26
  grid-template-columns: repeat(1, 1fr);
28
27
  }
29
- `, A = s.a`
28
+ `, T = d.a`
30
29
  padding-top: 5rem;
31
30
  overflow: hidden;
32
31
  text-decoration: none;
33
32
  color: var(--gray-950);
34
- `, B = s.div`
33
+ `, A = d.div`
35
34
  position: relative;
36
35
  cursor: pointer;
37
36
  display: flex;
@@ -63,11 +62,11 @@ const F = s.div`
63
62
  font-size: 1.375rem;
64
63
  font-weight: 600;
65
64
  color: var(--gray-950, #14161a);
66
- ${I()}
65
+ ${M()}
67
66
  }
68
67
 
69
68
  & .cont-text {
70
- ${L(2)}
69
+ ${P(2)}
71
70
  }
72
71
  }
73
72
 
@@ -87,15 +86,15 @@ const F = s.div`
87
86
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
88
87
  0px 4px 6px -2px rgba(0, 0, 0, 0.05);
89
88
  }
90
- `, R = (t, n) => j(
89
+ `, v = (t, n) => W(
91
90
  t.theme,
92
91
  "StarRating",
93
92
  t.color,
94
93
  t.disabled === !0 ? "disabled" : "enabled",
95
94
  n
96
- ), V = s.div`
97
- font-size: ${(t) => R(t, "fontSize")};
98
- line-height: ${(t) => R(t, "lineHeight")};
95
+ ), B = d.div`
96
+ font-size: ${(t) => v(t, "fontSize")};
97
+ line-height: ${(t) => v(t, "lineHeight")};
99
98
  line-height: 1.5rem;
100
99
  width: fit-content;
101
100
  display: flex;
@@ -114,7 +113,7 @@ const F = s.div`
114
113
  line-height: 1.5rem;
115
114
  color: ${(t) => t.color};
116
115
  }
117
- `, _ = s.span`
116
+ `, V = d.span`
118
117
  position: absolute;
119
118
  z-index: 1;
120
119
  display: block;
@@ -123,112 +122,93 @@ const F = s.div`
123
122
  overflow: hidden;
124
123
  width: ${(t) => t.width}%;
125
124
 
126
- color: ${(t) => W(
125
+ color: ${(t) => L(
127
126
  t.theme,
128
127
  "StarRating",
129
128
  t.color,
130
129
  t.disabled === !0 ? "disabled" : "enabled",
131
130
  "filledColor"
132
131
  )};
133
- `, q = s.span`
132
+ `, _ = d.span`
134
133
  padding: 0;
135
134
  display: block;
136
135
  z-index: 0;
137
136
  color: ${(t) => t.color};
138
- `, C = v((t, n) => {
137
+ `, q = w((t, n) => {
139
138
  const {
140
139
  rating: l = 0,
141
140
  reviewCount: i = null,
142
- disabled: m = !1,
143
- tabIndex: c = 0,
144
- className: u = "",
145
- style: g = {},
146
- color: h = "primary",
147
- size: b = "large"
148
- } = t, { theme: e } = x(), p = {
141
+ disabled: s = !1,
142
+ tabIndex: m = 0,
143
+ className: g = "",
144
+ style: p = {},
145
+ color: c = "primary",
146
+ size: u = "large"
147
+ } = t, { theme: e } = E(), h = {
149
148
  theme: e,
150
- color: h,
151
- size: b,
152
- style: g,
153
- disabled: m
149
+ color: c,
150
+ size: u,
151
+ style: p,
152
+ disabled: s
154
153
  }, k = l / 5 * 100;
155
154
  return /* @__PURE__ */ a(
156
- V,
155
+ B,
157
156
  {
158
157
  ref: n,
159
- tabIndex: c,
160
- ...p,
161
- className: `star-rating ${u}`,
158
+ tabIndex: m,
159
+ ...h,
160
+ className: `star-rating ${g}`,
162
161
  children: [
163
162
  /* @__PURE__ */ a("div", { className: "rating", children: [
164
163
  /* @__PURE__ */ r(
165
- _,
164
+ V,
166
165
  {
167
166
  className: "filled-stars",
168
- ...p,
167
+ ...h,
169
168
  width: k,
170
169
  children: "★★★★★"
171
170
  }
172
171
  ),
173
- /* @__PURE__ */ r(q, { ...p, children: "★★★★★" })
172
+ /* @__PURE__ */ r(_, { ...h, children: "★★★★★" })
174
173
  ] }),
175
174
  !isNaN(i) && Number.isFinite(i) && /* @__PURE__ */ r("div", { className: "review-count", children: `(${i.toLocaleString()})` })
176
175
  ]
177
176
  }
178
177
  );
179
- });
180
- C.propTypes = {
181
- rating: d.number,
182
- reviewCount: d.any,
183
- disabled: d.bool,
184
- tabIndex: d.number,
185
- style: d.object,
186
- className: d.string,
187
- color: d.oneOf([
188
- "primary",
189
- "secondary",
190
- "success",
191
- "warning",
192
- "danger",
193
- "information",
194
- "neutral"
195
- ]),
196
- size: d.oneOf(["small", "medium", "large"])
197
- };
198
- const D = v((t, n) => {
178
+ }), D = w((t, n) => {
199
179
  const {
200
180
  image: l,
201
181
  text: i,
202
- title: m,
203
- link: c,
204
- rating: u,
205
- onSelectCard: g = () => {
182
+ title: s,
183
+ link: m,
184
+ rating: g,
185
+ onSelectCard: p = () => {
206
186
  },
207
- LinkComponent: h
187
+ LinkComponent: c
208
188
  } = t;
209
189
  return /* @__PURE__ */ r(
210
- A,
190
+ T,
211
191
  {
212
192
  ref: n,
213
193
  className: "review-card",
214
- onClick: g,
215
- as: h || "a",
216
- ...h ? {
217
- to: `/${c}`
194
+ onClick: p,
195
+ as: c || "a",
196
+ ...c ? {
197
+ to: `/${m}`
218
198
  } : {
219
- href: `/${c}`
199
+ href: `/${m}`
220
200
  },
221
- children: /* @__PURE__ */ a(B, { children: [
222
- /* @__PURE__ */ r(E, { src: l }),
201
+ children: /* @__PURE__ */ a(A, { children: [
202
+ /* @__PURE__ */ r(I, { src: l }),
223
203
  /* @__PURE__ */ a("div", { className: "cont", children: [
224
- /* @__PURE__ */ r("span", { className: "cont-title", children: m }),
204
+ /* @__PURE__ */ r("span", { className: "cont-title", children: s }),
225
205
  /* @__PURE__ */ r("div", { className: "cont-text", children: i })
226
206
  ] }),
227
- /* @__PURE__ */ r(C, { color: "warning", rating: u })
207
+ /* @__PURE__ */ r(q, { color: "warning", rating: g })
228
208
  ] })
229
209
  }
230
210
  );
231
- }), H = s(G)`
211
+ }), H = d(x)`
232
212
  @media (max-width: ${$ + "px"}) {
233
213
  flex-direction: column;
234
214
 
@@ -236,14 +216,14 @@ const D = v((t, n) => {
236
216
  flex-direction: column;
237
217
 
238
218
  & > div {
239
- ${T}
219
+ ${j}
240
220
  }
241
221
  }
242
222
  }
243
- `, X = ({ keyPrefix: t }) => /* @__PURE__ */ a(H, { children: [
223
+ `, O = ({ keyPrefix: t }) => /* @__PURE__ */ a(H, { children: [
244
224
  /* @__PURE__ */ a(f, { children: [
245
225
  /* @__PURE__ */ r(
246
- w,
226
+ b,
247
227
  {
248
228
  height: "6.25rem",
249
229
  width: "6.25rem",
@@ -264,7 +244,7 @@ const D = v((t, n) => {
264
244
  ] }, `${t}-1`),
265
245
  /* @__PURE__ */ a(f, { noGradient: !0, children: [
266
246
  /* @__PURE__ */ r(
267
- w,
247
+ b,
268
248
  {
269
249
  height: "6.25rem",
270
250
  width: "6.25rem",
@@ -285,7 +265,7 @@ const D = v((t, n) => {
285
265
  ] }, `${t}-2`),
286
266
  /* @__PURE__ */ a(f, { noGradient: !0, children: [
287
267
  /* @__PURE__ */ r(
288
- w,
268
+ b,
289
269
  {
290
270
  height: "6.25rem",
291
271
  width: "6.25rem",
@@ -304,50 +284,50 @@ const D = v((t, n) => {
304
284
  }
305
285
  )
306
286
  ] }, `${t}-3`)
307
- ] }), Z = ({
287
+ ] }), X = ({
308
288
  keyPrefix: t,
309
289
  isLoading: n = !1,
310
290
  fallbackComponent: l = /* @__PURE__ */ r(S, {}),
311
291
  children: i
312
- }) => /* @__PURE__ */ r(N, { fallbackComponent: l, children: n === !0 ? /* @__PURE__ */ r(X, { keyPrefix: t }) : i }), y = z(D), ne = v((t, n) => {
292
+ }) => /* @__PURE__ */ r(C, { fallbackComponent: l, children: n === !0 ? /* @__PURE__ */ r(O, { keyPrefix: t }) : i }), R = y(D), ie = w((t, n) => {
313
293
  const {
314
294
  title: l = "Electronics reviews",
315
295
  items: i,
316
- limit: m = 3,
317
- onSelectCard: c = () => {
296
+ limit: s = 3,
297
+ onSelectCard: m = () => {
318
298
  },
319
- isLoading: u = !1,
320
- LinkComponent: g
321
- } = t, h = M(), b = P(() => /* @__PURE__ */ r(S, { children: h === !0 ? i == null ? void 0 : i.map((e, p) => /* @__PURE__ */ r(
322
- y,
299
+ isLoading: g = !1,
300
+ 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,
323
303
  {
324
304
  text: e == null ? void 0 : e.text,
325
305
  title: e == null ? void 0 : e.title,
326
306
  image: e == null ? void 0 : e.image,
327
307
  link: e == null ? void 0 : e.link,
328
308
  rating: e == null ? void 0 : e.ratingArithmeticMean,
329
- onSelectCard: () => c(e),
330
- LinkComponent: g
309
+ onSelectCard: () => m(e),
310
+ LinkComponent: p
331
311
  },
332
- p
333
- )) : i == null ? void 0 : i.slice(0, m).map((e, p) => /* @__PURE__ */ r(
334
- y,
312
+ h
313
+ )) : i == null ? void 0 : i.slice(0, s).map((e, h) => /* @__PURE__ */ r(
314
+ R,
335
315
  {
336
316
  text: e == null ? void 0 : e.text,
337
317
  title: e == null ? void 0 : e.title,
338
318
  image: e == null ? void 0 : e.image,
339
319
  link: e == null ? void 0 : e.link,
340
320
  rating: e == null ? void 0 : e.ratingArithmeticMean,
341
- onSelectCard: () => c(e),
342
- LinkComponent: g
321
+ onSelectCard: () => m(e),
322
+ LinkComponent: p
343
323
  },
344
- p
345
- )) }), [i, h, m]);
346
- return /* @__PURE__ */ a(F, { ref: n, children: [
324
+ h
325
+ )) }), [i, c, s]);
326
+ return /* @__PURE__ */ a(G, { ref: n, children: [
347
327
  /* @__PURE__ */ r("div", { className: "container-title", children: l }),
348
- /* @__PURE__ */ r(Z, { isLoading: u, keyPrefix: "reviews-skeleton", children: /* @__PURE__ */ r(O, { limit: m, children: b }) })
328
+ /* @__PURE__ */ r(X, { isLoading: g, keyPrefix: "reviews-skeleton", children: /* @__PURE__ */ r(F, { limit: s, children: u }) })
349
329
  ] });
350
330
  });
351
331
  export {
352
- ne as default
332
+ ie as default
353
333
  };
@@ -1,23 +1,30 @@
1
- "use strict";const r=require("react/jsx-runtime"),d=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./utils-RnrgDDZP.cjs"),z=require("./consts-goSZX3xP.cjs"),me=require("./Icon.cjs"),de=require("./ShopAvatar-CV3lj34D.cjs"),$e=require("./Badge.cjs"),o=require("./index-BpbMKBf_.cjs"),ue=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),pe=require("./IconButton.cjs"),fe=require("./useDetectMobile-zkbzoOGV.cjs"),Te=require("./index-Be-_NM9Q.cjs"),Ie=require("./motion-B_VPZaJq.cjs"),i=require("./style-BAcV7F53.cjs"),Ce=S.styled.a`
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`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  cursor: pointer;
5
5
  display: flex;
6
+ flex-direction: column;
6
7
  gap: 1rem;
7
- padding: 1.25rem;
8
+ padding: 1rem;
8
9
  border-radius: 1.25rem;
9
- border: 1px solid var(--gray-200, #e4e9f0);
10
-
11
- @media (max-width: ${z.MOBILE_SIZE_PX+"px"}) {
12
- flex-direction: column;
13
- padding: 1rem;
10
+ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
11
+
12
+ ${n=>n!=null&&n.sponsored?`
13
+ border: 1px solid transparent;
14
+ background:
15
+ linear-gradient(#ffffff, #ffffff) padding-box,
16
+ linear-gradient(to bottom, #fcd34d, #fef3c7) border-box;
17
+ `:`
18
+ border: 1px solid var(--gray-200, #e4e9f0);
19
+ background: #ffffff;
20
+ `}
21
+
22
+ @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
23
+ width: 100%;
14
24
  gap: 0;
15
25
  }
16
- `,Ne=S.styled.div`
26
+ `,Ce=S.styled.div`
17
27
  border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,"edged")};
18
- height: 13.75rem;
19
- width: 13.75rem;
20
- min-width: 13.75rem;
21
28
  cursor: pointer;
22
29
 
23
30
  position: relative;
@@ -36,7 +43,11 @@
36
43
  transform: scale(1.25);
37
44
  }
38
45
  }
39
- `,De=S.styled.div`
46
+
47
+ @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
48
+ width: 14.5rem;
49
+ }
50
+ `,Pe=S.styled.div`
40
51
  flex: 1;
41
52
  display: flex;
42
53
  flex-direction: column;
@@ -119,7 +130,7 @@
119
130
  color: var(--gray-600, #676e79);
120
131
  }
121
132
 
122
- @media (max-width: ${z.MOBILE_SIZE_PX+"px"}) {
133
+ @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
123
134
  padding: 1rem 0 0 0;
124
135
 
125
136
  & .campaign-title-text {
@@ -144,13 +155,13 @@
144
155
  gap: 0.25rem;
145
156
  }
146
157
  }
147
- `,ge=(n=!1,t=!1,a=!1)=>`
158
+ `,ge=(n=!1,t=!1,s=!1)=>`
148
159
  display: flex;
149
160
  ${t?"flex-wrap: wrap;":""}
150
161
  ${t?"":"flex-wrap: nowrap;"}
151
162
  ${n?"align-items: center;":""}
152
- ${a?"justify-content: center;":""}
153
- `,Le=S.styled.a`
163
+ ${s?"justify-content: center;":""}
164
+ `,De=S.styled.a`
154
165
  text-decoration: none;
155
166
  color: var(--gray-950);
156
167
  ${n=>n.hasPermission===!0&&"cursor: pointer"};
@@ -170,7 +181,6 @@
170
181
 
171
182
  ${ge(!0)}
172
183
  gap: 0.5rem;
173
- padding: 0.5rem;
174
184
  color: var(--gray-950, #14161a);
175
185
  font-weight: 500;
176
186
  font-size: 1rem;
@@ -223,17 +233,17 @@
223
233
  background-color: var(--gray-95080, #14161acc);
224
234
  }
225
235
 
226
- @media (max-width: ${z.MOBILE_SIZE_PX+"px"}) {
236
+ @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
227
237
  padding: 0;
228
238
  font-size: 0.875rem;
229
239
  }
230
- `,Ee=S.styled.div`
240
+ `,Le=S.styled.div`
231
241
  position: absolute;
232
242
  top: 0.5rem;
233
243
  ${n=>n.alignToLeft===!0?"left: 0.5rem;":"right: 0.5rem;"}
234
244
  display: flex;
235
245
  gap: 0.25rem;
236
- `,ze=S.styled.div`
246
+ `,Ne=S.styled.div`
237
247
  border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,n.borderRadius||"slight")};
238
248
  background-color: ${n=>n==null?void 0:n.color};
239
249
  color: white;
@@ -249,7 +259,7 @@
249
259
  & i {
250
260
  font-size: 0.813rem;
251
261
  }
252
- `,Re=d.forwardRef(({src:n,...t},a)=>{const s=d.useRef();return d.useEffect(()=>{var m;const p=l=>{l.target.src=de.DefaultShopImage,l.onerror=null};return(m=s==null?void 0:s.current)==null||m.addEventListener("error",p),()=>{var l;(l=s==null?void 0:s.current)==null||l.removeEventListener("error",p)}},[]),r.jsx(d.Fragment,{ref:a,children:w.isDefinedNotEmptyString(n)?r.jsx("img",{ref:s,src:n,...t}):r.jsx("img",{src:de.DefaultShopImage,...t})})}),xe=n=>{const{uuid:t,hasPermission:a=!0,isUser:s,image:p,imageComponent:m,name:l,notifications:_=0,color:g="primary",size:u="large",style:h,disabled:$,onClick:x=()=>{},isActive:v,className:T,shopCategory:I,themeData:j,LinkComponent:c}=n,y=c||"a",R={theme:ue.useTheme(),color:g,size:u,style:h,disabled:$};return d.createElement(Le,{onClick:f=>{f==null||f.preventDefault(),f.stopPropagation(),a===!0&&(x==null||x())},...R,key:l,className:`profile-item ${T}`,hasPermission:a,isActive:v,themeColor:(j==null?void 0:j.code)||"transparent",as:y,...c?{to:`/${s?"user":"shop"}/${t}`}:{href:`/${s?"user":"shop"}/${t}`}},r.jsx("div",{className:"logo-wrapper",children:w.isDefined(m)?m:p}),r.jsxs("div",{children:[r.jsx("div",{className:"name",children:l}),!s&&r.jsx("div",{className:"description",children:I}),_>0&&r.jsx("div",{className:"notifications-number",children:r.jsx($e,{className:"badge",color:"danger",size:"small",children:_>99?"99+":_})})]}))};xe.propTypes={id:o.PropTypes.any,isUserProfile:o.PropTypes.bool,themeColor:o.PropTypes.string,image:o.PropTypes.any,name:o.PropTypes.string,notifications:o.PropTypes.number,style:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:o.PropTypes.oneOf(["large"]),onSelect:o.PropTypes.func,hasPermission:o.PropTypes.bool};const he=n=>{if(n!==void 0){const t=new Date(n),a=t.getFullYear(),s=t.getMonth()+1;return`${String(t.getDate()).padStart(2)}. ${s}. ${a}.`}},Me=d.forwardRef((n,t)=>{var ce;const a=ue.useTheme(),{uuid:s,shopUuid:p,title:m="",coverPhoto:l,onSelect:_,startDate:g,endDate:u,salesPackages:h,shopName:$,shopCategory:x,shopImage:v,shopImageComponent:T,className:I,onSelectCard:j=()=>{},onSelectShop:c=()=>{},upcoming:y=!1,upcomingCampaignText:C,campaignSingleText:R,salesCampaignTypes:f=[],startsInPrefixTextPlural:V,startsinSuffixTextPlural:Z,startsInPrefixTextSingular:F,startsinSuffixTextSingular:ne,endsInPrefixTextPlural:X,endsinSuffixTextPlural:G,endsInPrefixTextSingular:U,endsinSuffixTextSingular:A,endedText:H,themeData:te,numberOfListings:D,numberOfListingsTextSingular:Y,numberOfListingsTextPlural:q,metadata:e,LinkComponent:O,...se}=n,J=O||"a",oe=d.useRef(),M=w.getDayNumberPrecise(g,u),K=M!==-1&&(M==null?void 0:M.isEnded)===!0,Q=M!==-1&&!K,ee=w.calcDaysUntil(g),L=w.calcDaysRemaining(u),be=L!==null&&L<=2&&L>0,ae=w.normalizeDate(u),ie=ae?new Date(ae):null,ve=new Date,re=ie?ie.getTime()-ve.getTime():null,B=re!==null&&re>0&&re<24*60*60*1e3,le=(b,E,k,P,N)=>k===1?`${b} ${k} ${P}`:`${E} ${k} ${N}`,Se=()=>{if(!u)return null;const b=w.normalizeDate(u),E=b?new Date(b):null;if(!E)return null;const k=je,P=E.getTime()-k.getTime();if(P<=0)return null;const N=Math.floor(P/(1e3*60*60)),_e=Math.floor(P%(1e3*60*60)/(1e3*60)),ke=Math.floor(P%(1e3*60)/1e3);return{hours:N,minutes:_e,seconds:ke}},[je,Pe]=d.useState(new Date);d.useEffect(()=>{if(!B)return;const b=setInterval(()=>{Pe(new Date)},1e3);return()=>clearInterval(b)},[B]);const W=B?Se():null;return r.jsxs(Ce,{ref:oe,theme:a,className:I,name:e==null?void 0:e.name,"data-accessor":e==null?void 0:e.accessor,onClick:b=>j(b,oe),as:J,...O?{to:`/shop/${p}/campaign/${s}`}:{href:`/shop/${p}/campaign/${s}`},...se,children:[r.jsxs(Ne,{theme:a,children:[r.jsx("img",{src:l}),r.jsx(Ee,{children:h==null?void 0:h.map((b,E)=>{var k,P;return r.jsx(ze,{color:(k=f==null?void 0:f.find(N=>N.value===b))==null?void 0:k.color,theme:a,children:r.jsx(me,{icon:(P=f==null?void 0:f.find(N=>N.value===b))==null?void 0:P.icon})},`package__${E}`)})})]}),r.jsxs(De,{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:(ce=y?C:R)==null?void 0:ce.toUpperCase()}),r.jsx("div",{className:"campaign-title-text",children:m}),u&&g&&r.jsxs("div",{className:"campaign-date",children:[he(g)," - ",he(u)]}),r.jsxs("div",{className:"timestamp-text",children:[D>0&&r.jsxs("span",{className:"listings-text",children:[D," ",D===1?Y:q," ","∙"," "]}),r.jsx("span",{className:`duration-text ${be?"urgent":""} ${Q?"":"starts-in"}`,children:B&&W?r.jsxs("div",{className:"countdown-timer",children:[U," ",W.hours.toString().padStart(2,"0"),":",W.minutes.toString().padStart(2,"0"),":",W.seconds.toString().padStart(2,"0")]}):Q&&!K&&L!==null&&L>0?le(U,X,L,A,G):K?H||"Završena":!Q&&ee!==null&&ee>0?le(F,V,ee,ne,Z):null})]})]})}),r.jsx(xe,{hasPermission:!0,image:r.jsx(Re,{src:v}),imageComponent:T,themeData:te,isActive:!0,isUser:!1,name:$,shopCategory:x,uuid:p,onClick:()=>c(p)})]})]})}),Ue=S.styled.div`
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`
253
263
  margin: 0 auto;
254
264
  display: flex;
255
265
  flex-direction: column;
@@ -288,7 +298,7 @@
288
298
  right: 0;
289
299
  }
290
300
 
291
- @media (max-width: ${z.MOBILE_SIZE_PX+"px"}) {
301
+ @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
292
302
  gap: 1.25rem;
293
303
 
294
304
  & .scrollable-section__header {
@@ -300,13 +310,13 @@
300
310
  }
301
311
  }
302
312
  }
303
- `,qe=S.styled(Ie.motion.div)`
313
+ `,Me=S.styled(ke.motion.div)`
304
314
  display: grid;
305
315
  grid-template-columns: repeat(${n=>n==null?void 0:n.numOfColumns}, 1fr);
306
316
  gap: 1.5rem;
307
317
  width: 100%;
308
318
 
309
- @media (max-width: ${z.MOBILE_SIZE_PX+"px"}) {
319
+ @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
310
320
  display: flex;
311
321
  flex-wrap: nowrap;
312
322
  overflow-x: scroll;
@@ -328,7 +338,7 @@
328
338
  /* Safari and Chrome */
329
339
  }
330
340
  }
331
- `,ye=d.forwardRef(({icon:n,title:t,numOfSlides:a=2,showNavigation:s=!0,hasNextPage:p=!1,handleFetchNextPage:m=()=>{},children:l},_)=>{const[g,u]=d.useState(0),[h,$]=d.useState(1),x=fe.useDetectMobile(),v=(l==null?void 0:l.length)??1;d.useEffect(()=>{const c=()=>{$(a)};return window.addEventListener("resize",c),c(),()=>window.removeEventListener("resize",c)},[]);const T=x?l:l==null?void 0:l.slice(g,g+h),I=c=>{var C;(C=c==null?void 0:c.target)==null||C.blur();const y=g+h;y<v&&u(y),y+h>=v&&p&&m()},j=c=>{var y;(y=c==null?void 0:c.target)==null||y.blur(),g-h>=0&&u(g-h)};return r.jsxs(Ue,{ref:_,children:[r.jsx("div",{className:"scrollable-section__header",children:r.jsxs("div",{className:"scrollable-section__title",children:[w.isDefinedNotEmptyString(n)&&r.jsx(me,{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,...!x&&{animate:{x:0,opacity:1},initial:{x:10,opacity:0}},children:[T,x&&p&&r.jsx(Te.InfiniteScrollEndElement,{onIsVisible:m})]},`scrollable-section__content-${g}`),s&&v>h&&!x&&r.jsxs("div",{className:"scrollable-section__navigation",children:[r.jsx(pe,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:g===0,onClick:j}),r.jsx(pe,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:g+h>=v,onClick:I})]})]})});ye.propTypes={icon:o.PropTypes.string,title:o.PropTypes.string,numOfSlides:o.PropTypes.number,numOfSlidesForMobile:o.PropTypes.number,handleFetchNextPage:o.PropTypes.func,showNavigation:o.PropTypes.bool};const Oe=S.styled.div`
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`
332
342
  display: flex;
333
343
  flex: 1;
334
344
  width: 100%;
@@ -345,8 +355,8 @@
345
355
  border-radius: 1.25rem;
346
356
  object-fit: cover;
347
357
  }
348
- `,we=d.forwardRef(({sectionName:n,imageUrl:t,maxHeight:a="16.25rem",className:s="",handleClick:p=()=>{}},m)=>r.jsx(Oe,{ref:m,maxHeight:a,onClick:p,className:`itemless-banner ${s}`,children:r.jsx("img",{src:t,alt:`itemless-banner__${n}`})}));we.propTypes={sectionName:o.PropTypes.string,imageUrl:o.PropTypes.string,maxHeight:o.PropTypes.string,className:o.PropTypes.string,handleClick:o.PropTypes.func};const Be=S.styled(i.SkeletonRowWrapper)`
349
- @media (max-width: ${z.MOBILE_SIZE_PX+"px"}) {
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"}) {
350
360
  flex-direction: column;
351
361
 
352
362
  & .skeleton__image {
@@ -360,4 +370,4 @@
360
370
  }
361
371
  }
362
372
  }
363
- `,We=({keyPrefix:n})=>r.jsxs(Be,{children:[r.jsxs(i.SkeletonRowWrapper,{children:[r.jsx(i.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-1`),r.jsxs(i.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(i.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(i.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(i.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]}),r.jsxs(i.SkeletonRowWrapper,{noGradient:!0,children:[r.jsx(i.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-2`),r.jsxs(i.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(i.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(i.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(i.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]})]}),Ve=({keyPrefix:n,isLoading:t=!1,fallbackComponent:a=r.jsx(r.Fragment,{}),children:s})=>r.jsx(d.Suspense,{fallbackComponent:a,children:t===!0?r.jsx(We,{keyPrefix:n}):s}),Ze=d.memo(Me),Fe=d.forwardRef(({sellerType:n="Shop",items:t=[],title:a,icon:s,isLoading:p,onSelectCard:m=()=>{},onSelectShop:l=()=>{},getImage:_=()=>{},campaignSingleText:g,upcomingCampaignText:u,salesCampaignTypes:h=[],startsInPrefixTextPlural:$,startsinSuffixTextPlural:x,startsInPrefixTextSingular:v,startsinSuffixTextSingular:T,endsInPrefixTextPlural:I,endsinSuffixTextPlural:j,endsInPrefixTextSingular:c,endsinSuffixTextSingular:y,endedText:C,numOfSlides:R=2,showNavigation:f=!0,numberOfListingsTextSingular:V,numberOfListingsTextPlural:Z,itemlessImageUrl:F,itemlessLink:ne,handleItemlessLink:X=()=>{},componentName:G,hasNextPage:U=!1,handleFetchNextPage:A=()=>{},LinkComponent:H},te)=>{const D=fe.useDetectMobile(),Y=d.useMemo(()=>{let q=t==null?void 0:t.map((e,O)=>r.jsx(Ze,{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:(se,J)=>m(e==null?void 0:e.campaignUuid,e==null?void 0:e.shopUuid,J),onSelectShop:()=>l(e==null?void 0:e.shopUuid),campaignSingleText:g,upcomingCampaignText:u,upcoming:e==null?void 0:e.upcoming,salesCampaignTypes:h,startsInPrefixTextPlural:$,startsinSuffixTextPlural:x,startsInPrefixTextSingular:v,startsinSuffixTextSingular:T,endsInPrefixTextPlural:I,endsinSuffixTextPlural:j,endsInPrefixTextSingular:c,endsinSuffixTextSingular:y,endedText:C,themeData:e==null?void 0:e.themeData,numberOfListings:e==null?void 0:e.numberOfListings,numberOfListingsTextSingular:V,numberOfListingsTextPlural:Z,metadata:{name:G,accessor:e==null?void 0:e.accessor},LinkComponent:H},`campaign__item__${O}__${e==null?void 0:e.startDate}___${e==null?void 0:e.endDate}`));return(t==null?void 0:t.length)<2&&!D?[...q,r.jsx(we,{imageUrl:F,className:"campaign-item",handleClick:X},"itemless-campaign-section-banner")]:q},[t]);return r.jsx(Ve,{isLoading:p,keyPrefix:"sales-campaign-skeleton",children:r.jsx(ye,{icon:s,title:a,numOfSlides:R,showNavigation:f,hasNextPage:U,handleFetchNextPage:A,children:Y},`sales-campaign-section__${D}`)})});module.exports=Fe;
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;