@lanaco/lnc-react-ui 4.0.199 → 4.0.200

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 (247) 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/BlogCategoryCardsSection.cjs +1 -1
  16. package/dist/BlogCategoryCardsSection.js +12 -14
  17. package/dist/BlogExploreSection.cjs +1 -1
  18. package/dist/BlogExploreSection.js +1 -1
  19. package/dist/BlogsSectionWithFilters.cjs +1 -1
  20. package/dist/BlogsSectionWithFilters.js +1 -1
  21. package/dist/Breadcrumbs.cjs +5 -5
  22. package/dist/Breadcrumbs.js +57 -87
  23. package/dist/Button.cjs +11 -11
  24. package/dist/Button.js +126 -173
  25. package/dist/ButtonGroup.cjs +8 -8
  26. package/dist/ButtonGroup.js +37 -49
  27. package/dist/CalorieCalculatorSection.cjs +8 -8
  28. package/dist/CalorieCalculatorSection.js +90 -97
  29. package/dist/CheckBoxInput.cjs +1 -1
  30. package/dist/CheckBoxInput.js +2 -5
  31. package/dist/Chip.cjs +14 -14
  32. package/dist/Chip.js +73 -111
  33. package/dist/ConfirmationForm.cjs +6 -6
  34. package/dist/ConfirmationForm.js +67 -109
  35. package/dist/ContactSection.cjs +1 -0
  36. package/dist/ContactSection.js +1 -0
  37. package/dist/Content.cjs +1 -1
  38. package/dist/Content.js +7 -15
  39. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  40. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  41. package/dist/DataView.cjs +1 -1
  42. package/dist/DataView.js +30 -50
  43. package/dist/DateInput.cjs +4 -4
  44. package/dist/DateInput.js +1347 -1383
  45. package/dist/DecimalInput.cjs +6 -6
  46. package/dist/DecimalInput.js +210 -263
  47. package/dist/DecimalInputV2.cjs +23 -23
  48. package/dist/DecimalInputV2.js +119 -176
  49. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  50. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  51. package/dist/DetailedProductsSection.cjs +1 -1
  52. package/dist/DetailedProductsSection.js +1 -1
  53. package/dist/DetailsView.cjs +9 -9
  54. package/dist/DetailsView.js +111 -162
  55. package/dist/DoubleRangeSlider.cjs +22 -22
  56. package/dist/DoubleRangeSlider.js +70 -95
  57. package/dist/DragAndDropFile.cjs +10 -10
  58. package/dist/DragAndDropFile.js +347 -402
  59. package/dist/DragDropFiles.cjs +4 -4
  60. package/dist/DragDropFiles.js +70 -124
  61. package/dist/Drawer.cjs +5 -5
  62. package/dist/Drawer.js +97 -135
  63. package/dist/Dropdown.cjs +1 -1
  64. package/dist/Dropdown.js +44 -213
  65. package/dist/DropdownItem.cjs +14 -14
  66. package/dist/DropdownItem.js +106 -142
  67. package/dist/DropdownLookup.cjs +1 -1
  68. package/dist/DropdownLookup.js +61 -242
  69. package/dist/DropdownMenu.cjs +4 -4
  70. package/dist/DropdownMenu.js +87 -149
  71. package/dist/EditableTable.cjs +10 -10
  72. package/dist/EditableTable.js +165 -331
  73. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  74. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  75. package/dist/FaqSection.cjs +3 -3
  76. package/dist/FaqSection.js +119 -153
  77. package/dist/FileInput.cjs +7 -7
  78. package/dist/FileInput.js +66 -94
  79. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  80. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  81. package/dist/FlexBox.cjs +6 -6
  82. package/dist/FlexBox.js +28 -63
  83. package/dist/FlexGrid.cjs +1 -1
  84. package/dist/FlexGrid.js +27 -67
  85. package/dist/FlexGridItem.cjs +6 -6
  86. package/dist/FlexGridItem.js +34 -62
  87. package/dist/Footer.cjs +1 -1
  88. package/dist/Footer.js +7 -15
  89. package/dist/FormField.cjs +7 -7
  90. package/dist/FormField.js +22 -47
  91. package/dist/FormView.cjs +6 -6
  92. package/dist/FormView.js +148 -195
  93. package/dist/Grid.cjs +2 -2
  94. package/dist/Grid.js +40 -65
  95. package/dist/GridItem.cjs +2 -2
  96. package/dist/GridItem.js +47 -80
  97. package/dist/Header.cjs +1 -1
  98. package/dist/Header.js +7 -15
  99. package/dist/HelpBannerSection.cjs +3 -3
  100. package/dist/HelpBannerSection.js +9 -15
  101. package/dist/Icon.cjs +4 -4
  102. package/dist/Icon.js +29 -55
  103. package/dist/IconButton.cjs +9 -9
  104. package/dist/IconButton.js +89 -127
  105. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  106. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  107. package/dist/Kanban.cjs +7 -7
  108. package/dist/Kanban.js +2033 -2098
  109. package/dist/KanbanActionsToolbar.cjs +4 -5
  110. package/dist/KanbanActionsToolbar.js +61 -96
  111. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  112. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  113. package/dist/KanbanCard.cjs +1 -1
  114. package/dist/KanbanCard.js +2 -3
  115. package/dist/KanbanFooter.cjs +3 -3
  116. package/dist/KanbanFooter.js +37 -55
  117. package/dist/KanbanHeader.cjs +4 -4
  118. package/dist/KanbanHeader.js +49 -81
  119. package/dist/KanbanView.cjs +2 -2
  120. package/dist/KanbanView.js +106 -173
  121. package/dist/Link.cjs +7 -7
  122. package/dist/Link.js +20 -37
  123. package/dist/LocationSearchSection.cjs +1 -1
  124. package/dist/LocationSearchSection.js +1 -1
  125. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  126. package/dist/MasonryGeneralCardsSection.js +1 -1
  127. package/dist/MenuItem.cjs +13 -13
  128. package/dist/MenuItem.js +101 -139
  129. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  130. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  131. package/dist/Modal.cjs +18 -19
  132. package/dist/Modal.js +131 -166
  133. package/dist/MultiSelectDropdown.cjs +1 -1
  134. package/dist/MultiSelectDropdown.js +25 -196
  135. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  136. package/dist/MultiSelectDropdownLookup.js +27 -209
  137. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  138. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  139. package/dist/NestedDropdownItem.cjs +3 -3
  140. package/dist/NestedDropdownItem.js +45 -67
  141. package/dist/NestedMenuItem.cjs +5 -5
  142. package/dist/NestedMenuItem.js +51 -78
  143. package/dist/NotificationContainer.cjs +10 -10
  144. package/dist/NotificationContainer.js +46 -79
  145. package/dist/NotificationMessage.cjs +2 -2
  146. package/dist/NotificationMessage.js +47 -64
  147. package/dist/NumberInput.cjs +23 -23
  148. package/dist/NumberInput.js +89 -149
  149. package/dist/PageLayout.cjs +2 -2
  150. package/dist/PageLayout.js +20 -28
  151. package/dist/Pagination.cjs +3 -3
  152. package/dist/Pagination.js +102 -185
  153. package/dist/PasswordInput.cjs +23 -23
  154. package/dist/PasswordInput.js +108 -137
  155. package/dist/Popover.cjs +1 -1
  156. package/dist/Popover.js +7 -32
  157. package/dist/PopoverContent.cjs +5 -5
  158. package/dist/PopoverContent.js +22 -28
  159. package/dist/PopoverTrigger.cjs +1 -1
  160. package/dist/PopoverTrigger.js +7 -12
  161. package/dist/ProgressBar.cjs +8 -8
  162. package/dist/ProgressBar.js +32 -59
  163. package/dist/RadioGroup.cjs +3 -3
  164. package/dist/RadioGroup.js +41 -72
  165. package/dist/RadioInput.cjs +28 -28
  166. package/dist/RadioInput.js +78 -123
  167. package/dist/RangeSlider.cjs +19 -19
  168. package/dist/RangeSlider.js +92 -119
  169. package/dist/ReviewsSection.cjs +13 -13
  170. package/dist/ReviewsSection.js +81 -101
  171. package/dist/SalesCampaignsSection.cjs +19 -19
  172. package/dist/SalesCampaignsSection.js +283 -324
  173. package/dist/SearchBar.cjs +10 -10
  174. package/dist/SearchBar.js +168 -188
  175. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  176. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  177. package/dist/SearchSection.cjs +1 -1
  178. package/dist/SearchSection.js +2 -3
  179. package/dist/Separator.cjs +3 -3
  180. package/dist/Separator.js +14 -19
  181. package/dist/Sidebar.cjs +4 -5
  182. package/dist/Sidebar.js +33 -56
  183. package/dist/SimpleCategoriesSection.cjs +1 -1
  184. package/dist/SimpleCategoriesSection.js +1 -1
  185. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  186. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  187. package/dist/Spinner.cjs +18 -18
  188. package/dist/Spinner.js +37 -54
  189. package/dist/StatsSection.cjs +6 -6
  190. package/dist/StatsSection.js +15 -25
  191. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  192. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  193. package/dist/Surface.cjs +4 -4
  194. package/dist/Surface.js +19 -34
  195. package/dist/SwipeableDrawer.cjs +8 -8
  196. package/dist/SwipeableDrawer.js +84 -136
  197. package/dist/TabItem.cjs +11 -11
  198. package/dist/TabItem.js +83 -118
  199. package/dist/Table.cjs +65 -65
  200. package/dist/Table.js +786 -1167
  201. package/dist/TableView.cjs +2 -2
  202. package/dist/TableView.js +113 -197
  203. package/dist/Tabs.cjs +4 -4
  204. package/dist/Tabs.js +41 -60
  205. package/dist/TextAreaInput.cjs +14 -14
  206. package/dist/TextAreaInput.js +131 -181
  207. package/dist/TextInput.cjs +23 -23
  208. package/dist/TextInput.js +78 -126
  209. package/dist/ThemeProvider.cjs +5 -5
  210. package/dist/ThemeProvider.js +35 -39
  211. package/dist/TimeInput.cjs +7 -7
  212. package/dist/TimeInput.js +46 -72
  213. package/dist/Toggle.cjs +20 -20
  214. package/dist/Toggle.js +78 -109
  215. package/dist/ToggleSection.cjs +5 -5
  216. package/dist/ToggleSection.js +48 -55
  217. package/dist/TreeMenu.cjs +5 -5
  218. package/dist/TreeMenu.js +43 -67
  219. package/dist/TreeMenuSeparator.cjs +3 -3
  220. package/dist/TreeMenuSeparator.js +12 -20
  221. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  222. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  223. package/dist/UploadedFile.cjs +11 -11
  224. package/dist/UploadedFile.js +73 -99
  225. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  226. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  227. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  228. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  229. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  230. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  231. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  232. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  233. package/dist/index-BdKi2ogu.js +39 -0
  234. package/dist/index-CRk3vcd4.cjs +95 -0
  235. package/dist/index-CX2A-q39.cjs +4 -0
  236. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  237. package/dist/index.cjs +1 -1
  238. package/dist/index.js +2 -2
  239. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  240. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  241. package/package.json +1 -1
  242. package/dist/KanbanCard-68kSAXL6.js +0 -175
  243. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  244. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  245. package/dist/index-Be-_NM9Q.cjs +0 -4
  246. package/dist/index-C0LcDEqa.js +0 -47
  247. 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,4 +1,4 @@
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"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./utils-RnrgDDZP.cjs"),T=require("./consts-goSZX3xP.cjs"),me=require("./Icon.cjs"),ce=require("./ShopAvatar-CV3lj34D.cjs"),ye=require("./Badge.cjs"),ue=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),de=require("./IconButton.cjs"),pe=require("./useDetectMobile-zkbzoOGV.cjs"),_e=require("./index-CX2A-q39.cjs"),$e=require("./motion-B_VPZaJq.cjs"),a=require("./style-BAcV7F53.cjs"),ke=b.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  cursor: pointer;
@@ -8,12 +8,12 @@
8
8
  border-radius: 1.25rem;
9
9
  border: 1px solid var(--gray-200, #e4e9f0);
10
10
 
11
- @media (max-width: ${z.MOBILE_SIZE_PX+"px"}) {
11
+ @media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
12
12
  flex-direction: column;
13
13
  padding: 1rem;
14
14
  gap: 0;
15
15
  }
16
- `,Ne=S.styled.div`
16
+ `,Ie=b.styled.div`
17
17
  border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,"edged")};
18
18
  height: 13.75rem;
19
19
  width: 13.75rem;
@@ -36,7 +36,7 @@
36
36
  transform: scale(1.25);
37
37
  }
38
38
  }
39
- `,De=S.styled.div`
39
+ `,Ce=b.styled.div`
40
40
  flex: 1;
41
41
  display: flex;
42
42
  flex-direction: column;
@@ -119,7 +119,7 @@
119
119
  color: var(--gray-600, #676e79);
120
120
  }
121
121
 
122
- @media (max-width: ${z.MOBILE_SIZE_PX+"px"}) {
122
+ @media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
123
123
  padding: 1rem 0 0 0;
124
124
 
125
125
  & .campaign-title-text {
@@ -144,13 +144,13 @@
144
144
  gap: 0.25rem;
145
145
  }
146
146
  }
147
- `,ge=(n=!1,t=!1,a=!1)=>`
147
+ `,ge=(n=!1,t=!1,s=!1)=>`
148
148
  display: flex;
149
149
  ${t?"flex-wrap: wrap;":""}
150
150
  ${t?"":"flex-wrap: nowrap;"}
151
151
  ${n?"align-items: center;":""}
152
- ${a?"justify-content: center;":""}
153
- `,Le=S.styled.a`
152
+ ${s?"justify-content: center;":""}
153
+ `,Pe=b.styled.a`
154
154
  text-decoration: none;
155
155
  color: var(--gray-950);
156
156
  ${n=>n.hasPermission===!0&&"cursor: pointer"};
@@ -223,17 +223,17 @@
223
223
  background-color: var(--gray-95080, #14161acc);
224
224
  }
225
225
 
226
- @media (max-width: ${z.MOBILE_SIZE_PX+"px"}) {
226
+ @media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
227
227
  padding: 0;
228
228
  font-size: 0.875rem;
229
229
  }
230
- `,Ee=S.styled.div`
230
+ `,De=b.styled.div`
231
231
  position: absolute;
232
232
  top: 0.5rem;
233
233
  ${n=>n.alignToLeft===!0?"left: 0.5rem;":"right: 0.5rem;"}
234
234
  display: flex;
235
235
  gap: 0.25rem;
236
- `,ze=S.styled.div`
236
+ `,Ne=b.styled.div`
237
237
  border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,n.borderRadius||"slight")};
238
238
  background-color: ${n=>n==null?void 0:n.color};
239
239
  color: white;
@@ -249,7 +249,7 @@
249
249
  & i {
250
250
  font-size: 0.813rem;
251
251
  }
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`
252
+ `,Le=c.forwardRef(({src:n,...t},s)=>{const o=c.useRef();return c.useEffect(()=>{var m;const d=i=>{i.target.src=ce.DefaultShopImage,i.onerror=null};return(m=o==null?void 0:o.current)==null||m.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})})}),Ee=n=>{const{uuid:t,hasPermission:s=!0,isUser:o,image:d,imageComponent:m,name:i,notifications:_=0,color:g="primary",size:u="large",style:h,disabled:k,onClick:f=()=>{},isActive:S,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(Pe,{onClick:p=>{p==null||p.preventDefault(),p.stopPropagation(),s===!0&&(f==null||f())},...z,key:i,className:`profile-item ${I}`,hasPermission:s,isActive:S,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(m)?m: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(ye,{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}.`}},Te=c.forwardRef((n,t)=>{var le;const s=ue.useTheme(),{uuid:o,shopUuid:d,title:m="",coverPhoto:i,onSelect:_,startDate:g,endDate:u,salesPackages:h,shopName:k,shopCategory:f,shopImage:S,shopImageComponent:I,className:C,onSelectCard:j=()=>{},onSelectShop:l=()=>{},upcoming:x=!1,upcomingCampaignText:P,campaignSingleText:z,salesCampaignTypes:p=[],startsInPrefixTextPlural:O,startsinSuffixTextPlural:V,startsInPrefixTextSingular:Z,startsinSuffixTextSingular:re,endsInPrefixTextPlural:X,endsinSuffixTextPlural:G,endsInPrefixTextSingular:M,endsinSuffixTextSingular:F,endedText:A,themeData:ne,numberOfListings:N,numberOfListingsTextSingular:H,numberOfListingsTextPlural:U,metadata:e,LinkComponent:q,...te}=n,Y=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),L=w.calcDaysRemaining(u),fe=L!==null&&L<=2&&L>0,se=w.normalizeDate(u),ae=se?new Date(se):null,xe=new Date,ee=ae?ae.getTime()-xe.getTime():null,B=ee!==null&&ee>0&&ee<24*60*60*1e3,ie=(v,E,$,y,D)=>$===1?`${v} ${$} ${y}`:`${E} ${$} ${D}`,we=()=>{if(!u)return null;const v=w.normalizeDate(u),E=v?new Date(v):null;if(!E)return null;const $=ve,y=E.getTime()-$.getTime();if(y<=0)return null;const D=Math.floor(y/(1e3*60*60)),be=Math.floor(y%(1e3*60*60)/(1e3*60)),je=Math.floor(y%(1e3*60)/1e3);return{hours:D,minutes:be,seconds:je}},[ve,Se]=c.useState(new Date);c.useEffect(()=>{if(!B)return;const v=setInterval(()=>{Se(new Date)},1e3);return()=>clearInterval(v)},[B]);const W=B?we():null;return r.jsxs(ke,{ref:oe,theme:s,className:C,name:e==null?void 0:e.name,"data-accessor":e==null?void 0:e.accessor,onClick:v=>j(v,oe),as:Y,...q?{to:`/shop/${d}/campaign/${o}`}:{href:`/shop/${d}/campaign/${o}`},...te,children:[r.jsxs(Ie,{theme:s,children:[r.jsx("img",{src:i}),r.jsx(De,{children:h==null?void 0:h.map((v,E)=>{var $,y;return r.jsx(Ne,{color:($=p==null?void 0:p.find(D=>D.value===v))==null?void 0:$.color,theme:s,children:r.jsx(me,{icon:(y=p==null?void 0:p.find(D=>D.value===v))==null?void 0:y.icon})},`package__${E}`)})})]}),r.jsxs(Ce,{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:m}),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 ${fe?"urgent":""} ${K?"":"starts-in"}`,children:B&&W?r.jsxs("div",{className:"countdown-timer",children:[M," ",W.hours.toString().padStart(2,"0"),":",W.minutes.toString().padStart(2,"0"),":",W.seconds.toString().padStart(2,"0")]}):K&&!J&&L!==null&&L>0?ie(M,X,L,F,G):J?A||"Završena":!K&&Q!==null&&Q>0?ie(Z,O,Q,re,V):null})]})]})}),r.jsx(Ee,{hasPermission:!0,image:r.jsx(Le,{src:S}),imageComponent:I,themeData:ne,isActive:!0,isUser:!1,name:k,shopCategory:f,uuid:d,onClick:()=>l(d)})]})]})}),ze=b.styled.div`
253
253
  margin: 0 auto;
254
254
  display: flex;
255
255
  flex-direction: column;
@@ -288,7 +288,7 @@
288
288
  right: 0;
289
289
  }
290
290
 
291
- @media (max-width: ${z.MOBILE_SIZE_PX+"px"}) {
291
+ @media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
292
292
  gap: 1.25rem;
293
293
 
294
294
  & .scrollable-section__header {
@@ -300,13 +300,13 @@
300
300
  }
301
301
  }
302
302
  }
303
- `,qe=S.styled(Ie.motion.div)`
303
+ `,Re=b.styled($e.motion.div)`
304
304
  display: grid;
305
305
  grid-template-columns: repeat(${n=>n==null?void 0:n.numOfColumns}, 1fr);
306
306
  gap: 1.5rem;
307
307
  width: 100%;
308
308
 
309
- @media (max-width: ${z.MOBILE_SIZE_PX+"px"}) {
309
+ @media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
310
310
  display: flex;
311
311
  flex-wrap: nowrap;
312
312
  overflow-x: scroll;
@@ -328,7 +328,7 @@
328
328
  /* Safari and Chrome */
329
329
  }
330
330
  }
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`
331
+ `,Me=c.forwardRef(({icon:n,title:t,numOfSlides:s=2,showNavigation:o=!0,hasNextPage:d=!1,handleFetchNextPage:m=()=>{},children:i},_)=>{const[g,u]=c.useState(0),[h,k]=c.useState(1),f=pe.useDetectMobile(),S=(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<S&&u(x),x+h>=S&&d&&m()},j=l=>{var x;(x=l==null?void 0:l.target)==null||x.blur(),g-h>=0&&u(g-h)};return r.jsxs(ze,{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(Re,{numOfColumns:s,...!f&&{animate:{x:0,opacity:1},initial:{x:10,opacity:0}},children:[I,f&&d&&r.jsx(_e.InfiniteScrollEndElement,{onIsVisible:m})]},`scrollable-section__content-${g}`),o&&S>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>=S,onClick:C})]})]})}),Ue=b.styled.div`
332
332
  display: flex;
333
333
  flex: 1;
334
334
  width: 100%;
@@ -345,8 +345,8 @@
345
345
  border-radius: 1.25rem;
346
346
  object-fit: cover;
347
347
  }
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"}) {
348
+ `,qe=c.forwardRef(({sectionName:n,imageUrl:t,maxHeight:s="16.25rem",className:o="",handleClick:d=()=>{}},m)=>r.jsx(Ue,{ref:m,maxHeight:s,onClick:d,className:`itemless-banner ${o}`,children:r.jsx("img",{src:t,alt:`itemless-banner__${n}`})})),Be=b.styled(a.SkeletonRowWrapper)`
349
+ @media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
350
350
  flex-direction: column;
351
351
 
352
352
  & .skeleton__image {
@@ -360,4 +360,4 @@
360
360
  }
361
361
  }
362
362
  }
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;
363
+ `,We=({keyPrefix:n})=>r.jsxs(Be,{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"})]})]})]})]}),Oe=({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(Te),Ze=c.forwardRef(({sellerType:n="Shop",items:t=[],title:s,icon:o,isLoading:d,onSelectCard:m=()=>{},onSelectShop:i=()=>{},getImage:_=()=>{},campaignSingleText:g,upcomingCampaignText:u,salesCampaignTypes:h=[],startsInPrefixTextPlural:k,startsinSuffixTextPlural:f,startsInPrefixTextSingular:S,startsinSuffixTextSingular:I,endsInPrefixTextPlural:C,endsinSuffixTextPlural:j,endsInPrefixTextSingular:l,endsinSuffixTextSingular:x,endedText:P,numOfSlides:z=2,showNavigation:p=!0,numberOfListingsTextSingular:O,numberOfListingsTextPlural:V,itemlessImageUrl:Z,itemlessLink:re,handleItemlessLink:X=()=>{},componentName:G,hasNextPage:M=!1,handleFetchNextPage:F=()=>{},LinkComponent:A},ne)=>{const N=pe.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)=>m(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:S,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:O,numberOfListingsTextPlural:V,metadata:{name:G,accessor:e==null?void 0:e.accessor},LinkComponent:A},`campaign__item__${q}__${e==null?void 0:e.startDate}___${e==null?void 0:e.endDate}`));return(t==null?void 0:t.length)<2&&!N?[...U,r.jsx(qe,{imageUrl:Z,className:"campaign-item",handleClick:X},"itemless-campaign-section-banner")]:U},[t]);return r.jsx(Oe,{isLoading:d,keyPrefix:"sales-campaign-skeleton",children:r.jsx(Me,{icon:o,title:s,numOfSlides:z,showNavigation:p,hasNextPage:M,handleFetchNextPage:F,children:H},`sales-campaign-section__${N}`)})});module.exports=Ze;