@lanaco/lnc-react-ui 4.0.92 → 4.0.94

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 (236) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +1 -1
  3. package/dist/AccordionSummary.cjs +1 -1
  4. package/dist/AccordionSummary.js +1 -1
  5. package/dist/ActionsToolbar.cjs +1 -1
  6. package/dist/ActionsToolbar.js +1 -1
  7. package/dist/Alert.cjs +1 -1
  8. package/dist/Alert.js +1 -1
  9. package/dist/Avatar.cjs +1 -1
  10. package/dist/Avatar.js +1 -1
  11. package/dist/Badge.cjs +1 -1
  12. package/dist/Badge.js +1 -1
  13. package/dist/BannerSectionCarousel.cjs +16 -2
  14. package/dist/BannerSectionCarousel.js +16 -1
  15. package/dist/BannerSectionWithList.cjs +1 -1
  16. package/dist/BannerSectionWithList.js +1 -1
  17. package/dist/BlogCardsSponsoredSection.cjs +4 -3
  18. package/dist/BlogCardsSponsoredSection.js +4 -3
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +1 -1
  21. package/dist/BlogListSection.cjs +1 -1
  22. package/dist/BlogListSection.js +3 -3
  23. package/dist/BlogProductCardsSection.cjs +1 -1
  24. package/dist/BlogProductCardsSection.js +2 -2
  25. package/dist/BlogShopCardsSection.cjs +1 -1
  26. package/dist/BlogShopCardsSection.js +1 -1
  27. package/dist/BlogSingleSection.cjs +1 -1
  28. package/dist/BlogSingleSection.js +2 -2
  29. package/dist/BlogsSectionDetailed.cjs +2 -2
  30. package/dist/BlogsSectionDetailed.js +4 -3
  31. package/dist/BlogsSectionLarge.cjs +1 -1
  32. package/dist/BlogsSectionLarge.js +2 -2
  33. package/dist/BlogsSectionSimple.cjs +5 -5
  34. package/dist/BlogsSectionSimple.js +22 -21
  35. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  36. package/dist/BlogsSectionSimpleCentered.js +2 -2
  37. package/dist/BlogsSectionWithFilters.cjs +1 -1
  38. package/dist/BlogsSectionWithFilters.js +4 -4
  39. package/dist/BrandHitsSection.cjs +1 -1
  40. package/dist/BrandHitsSection.js +1 -1
  41. package/dist/Breadcrumbs.cjs +1 -1
  42. package/dist/Breadcrumbs.js +1 -1
  43. package/dist/Button.cjs +1 -1
  44. package/dist/Button.js +1 -1
  45. package/dist/ButtonGroup.cjs +1 -1
  46. package/dist/ButtonGroup.js +1 -1
  47. package/dist/CalorieCalculatorSection.cjs +1 -1
  48. package/dist/CalorieCalculatorSection.js +1 -1
  49. package/dist/CheckBoxInput.cjs +1 -1
  50. package/dist/CheckBoxInput.js +1 -1
  51. package/dist/Chip.cjs +1 -1
  52. package/dist/Chip.js +1 -1
  53. package/dist/ColorInput.cjs +1 -1
  54. package/dist/ColorInput.js +1 -1
  55. package/dist/ConfirmationForm.cjs +1 -1
  56. package/dist/ConfirmationForm.js +1 -1
  57. package/dist/CustomLoanMapSection.cjs +1 -1
  58. package/dist/CustomLoanMapSection.js +1 -1
  59. package/dist/{CustomStyles-DYULk9y7.js → CustomStyles-9CHBrzIM.js} +1 -1
  60. package/dist/{CustomStyles-Uqkz9jDo.cjs → CustomStyles-BoYYyJVV.cjs} +1 -1
  61. package/dist/DateInput.cjs +1 -1
  62. package/dist/DateInput.js +1 -1
  63. package/dist/DecimalInput.cjs +1 -1
  64. package/dist/DecimalInput.js +1 -1
  65. package/dist/DecimalInputV2.cjs +1 -1
  66. package/dist/DecimalInputV2.js +1 -1
  67. package/dist/DetailedProductsSection.cjs +1 -1
  68. package/dist/DetailedProductsSection.js +4 -4
  69. package/dist/DetailsView.cjs +1 -1
  70. package/dist/DetailsView.js +1 -1
  71. package/dist/DoubleRangeSlider.cjs +1 -1
  72. package/dist/DoubleRangeSlider.js +1 -1
  73. package/dist/DragAndDropFile.cjs +1 -1
  74. package/dist/DragAndDropFile.js +1 -1
  75. package/dist/DragDropFiles.cjs +1 -1
  76. package/dist/DragDropFiles.js +1 -1
  77. package/dist/Drawer.cjs +1 -1
  78. package/dist/Drawer.js +1 -1
  79. package/dist/Dropdown.cjs +1 -1
  80. package/dist/Dropdown.js +2 -2
  81. package/dist/DropdownItem.cjs +1 -1
  82. package/dist/DropdownItem.js +1 -1
  83. package/dist/DropdownLookup.cjs +1 -1
  84. package/dist/DropdownLookup.js +1 -1
  85. package/dist/DropdownMenu.cjs +1 -1
  86. package/dist/DropdownMenu.js +1 -1
  87. package/dist/EditableTable.cjs +1 -1
  88. package/dist/EditableTable.js +1 -1
  89. package/dist/FeedbackSection.cjs +1 -1
  90. package/dist/FeedbackSection.js +1 -1
  91. package/dist/FieldOfInterestsMasonrySection.cjs +32 -8
  92. package/dist/FieldOfInterestsMasonrySection.js +83 -59
  93. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  94. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
  95. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  96. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  97. package/dist/FileInput.cjs +1 -1
  98. package/dist/FileInput.js +1 -1
  99. package/dist/FlexGridItem.cjs +1 -1
  100. package/dist/FlexGridItem.js +1 -1
  101. package/dist/FormField.cjs +1 -1
  102. package/dist/FormField.js +1 -1
  103. package/dist/FormView.cjs +1 -1
  104. package/dist/FormView.js +1 -1
  105. package/dist/GeneralWithTagsCardsSection.cjs +3 -3
  106. package/dist/GeneralWithTagsCardsSection.js +3 -3
  107. package/dist/GiftCardsSection.cjs +4 -4
  108. package/dist/GiftCardsSection.js +30 -29
  109. package/dist/Icon.cjs +1 -1
  110. package/dist/Icon.js +1 -1
  111. package/dist/IconButton.cjs +1 -1
  112. package/dist/IconButton.js +1 -1
  113. package/dist/Kanban.cjs +1 -1
  114. package/dist/Kanban.js +1 -1
  115. package/dist/KanbanActionsToolbar.cjs +1 -1
  116. package/dist/KanbanActionsToolbar.js +1 -1
  117. package/dist/KanbanView.cjs +1 -1
  118. package/dist/KanbanView.js +1 -1
  119. package/dist/Link.cjs +1 -1
  120. package/dist/Link.js +1 -1
  121. package/dist/LoanCalculatorSection.cjs +1 -1
  122. package/dist/LoanCalculatorSection.js +1 -1
  123. package/dist/LocationFinderSection.cjs +1 -1
  124. package/dist/LocationFinderSection.js +1 -1
  125. package/dist/LocationSearchSection.cjs +1 -1
  126. package/dist/LocationSearchSection.js +1 -1
  127. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  128. package/dist/MasonryGeneralCardsSection.js +1 -1
  129. package/dist/MenuItem.cjs +1 -1
  130. package/dist/MenuItem.js +1 -1
  131. package/dist/Modal.cjs +1 -1
  132. package/dist/Modal.js +1 -1
  133. package/dist/MultiSelectDropdown.cjs +1 -1
  134. package/dist/MultiSelectDropdown.js +1 -1
  135. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  136. package/dist/MultiSelectDropdownLookup.js +1 -1
  137. package/dist/NestedDropdownItem.cjs +1 -1
  138. package/dist/NestedDropdownItem.js +1 -1
  139. package/dist/NestedMenuItem.cjs +1 -1
  140. package/dist/NestedMenuItem.js +1 -1
  141. package/dist/NotificationContainer.cjs +1 -1
  142. package/dist/NotificationContainer.js +1 -1
  143. package/dist/NotificationMessage.cjs +1 -1
  144. package/dist/NotificationMessage.js +1 -1
  145. package/dist/NumberInput.cjs +1 -1
  146. package/dist/NumberInput.js +1 -1
  147. package/dist/OverlayGeneralCardsSection.cjs +2 -2
  148. package/dist/OverlayGeneralCardsSection.js +3 -3
  149. package/dist/PasswordInput.cjs +1 -1
  150. package/dist/PasswordInput.js +1 -1
  151. package/dist/PopoverContent.cjs +1 -1
  152. package/dist/PopoverContent.js +1 -1
  153. package/dist/ProductsWithBannerSection.cjs +1 -1
  154. package/dist/ProductsWithBannerSection.js +3 -3
  155. package/dist/ProgressBar.cjs +1 -1
  156. package/dist/ProgressBar.js +1 -1
  157. package/dist/QuattroCardsSection.cjs +18 -18
  158. package/dist/QuattroCardsSection.js +35 -35
  159. package/dist/QuizSection.cjs +1 -1
  160. package/dist/QuizSection.js +1 -1
  161. package/dist/RadioInput.cjs +1 -1
  162. package/dist/RadioInput.js +1 -1
  163. package/dist/RangeSlider.cjs +1 -1
  164. package/dist/RangeSlider.js +1 -1
  165. package/dist/ReviewsSection.cjs +1 -1
  166. package/dist/ReviewsSection.js +2 -2
  167. package/dist/SalesCampaignsSection.cjs +43 -39
  168. package/dist/SalesCampaignsSection.js +391 -337
  169. package/dist/Separator.cjs +1 -1
  170. package/dist/Separator.js +1 -1
  171. package/dist/ShopCardsSection.cjs +3 -2
  172. package/dist/ShopCardsSection.js +3 -2
  173. package/dist/Sidebar.cjs +1 -1
  174. package/dist/Sidebar.js +1 -1
  175. package/dist/SimpleCategoriesSection.cjs +2 -2
  176. package/dist/SimpleCategoriesSection.js +19 -18
  177. package/dist/SimpleProductsSection.cjs +1 -1
  178. package/dist/SimpleProductsSection.js +2 -2
  179. package/dist/Spinner.cjs +1 -1
  180. package/dist/Spinner.js +1 -1
  181. package/dist/Surface.cjs +1 -1
  182. package/dist/Surface.js +1 -1
  183. package/dist/SwipeableDrawer.cjs +1 -1
  184. package/dist/SwipeableDrawer.js +1 -1
  185. package/dist/TabItem.cjs +1 -1
  186. package/dist/TabItem.js +1 -1
  187. package/dist/Table.cjs +1 -1
  188. package/dist/Table.js +67 -67
  189. package/dist/TableView.cjs +1 -1
  190. package/dist/TableView.js +1 -1
  191. package/dist/TextAreaInput.cjs +1 -1
  192. package/dist/TextAreaInput.js +1 -1
  193. package/dist/TextInput.cjs +1 -1
  194. package/dist/TextInput.js +1 -1
  195. package/dist/ThemeProvider.cjs +1 -1
  196. package/dist/ThemeProvider.js +1 -1
  197. package/dist/TimeInput.cjs +1 -1
  198. package/dist/TimeInput.js +1 -1
  199. package/dist/Toggle.cjs +1 -1
  200. package/dist/Toggle.js +1 -1
  201. package/dist/TreeMenuSeparator.cjs +1 -1
  202. package/dist/TreeMenuSeparator.js +1 -1
  203. package/dist/UploadedFile.cjs +1 -1
  204. package/dist/UploadedFile.js +1 -1
  205. package/dist/UrgentSaleProductsSection.cjs +1 -1
  206. package/dist/UrgentSaleProductsSection.js +1 -1
  207. package/dist/{index-Kx8irvHH.js → index-4fcFA8kU.js} +1 -1
  208. package/dist/{index-DpdPtPbo.js → index-BKeVVABC.js} +1 -1
  209. package/dist/{index-DZDz9qZP.cjs → index-C1a0CtEE.cjs} +1 -1
  210. package/dist/{index-66FyQgVV.cjs → index-Ce6e4efi.cjs} +1 -1
  211. package/dist/{index-D86vS9UF.js → index-DQyZFR-C.js} +1 -1
  212. package/dist/{index-DMysapsB.cjs → index-DkzN10w_.cjs} +1 -1
  213. package/dist/{index-DfHm_Mv1.js → index-DtlD7gBK.js} +4 -4
  214. package/dist/{index-D8lR_JKg.cjs → index-DyMv0g-E.cjs} +2 -2
  215. package/dist/{index-BRgZcjpI.cjs → index-XrPpEvxt.cjs} +1 -1
  216. package/dist/{index-Cru8Sd2q.js → index-yrKiIPH4.js} +2 -2
  217. package/dist/index.cjs +1 -1
  218. package/dist/index.js +1 -1
  219. package/dist/{skeleton-TrselJrj.js → skeleton-BSnQLxpv.js} +1 -1
  220. package/dist/{skeleton-DwZzdFei.cjs → skeleton-C2HxO51q.cjs} +1 -1
  221. package/dist/{skeleton-BrUEdt6Z.js → skeleton-DLOaT8ip.js} +2 -2
  222. package/dist/{skeleton-BcaMeKFQ.cjs → skeleton-DdxUz868.cjs} +1 -1
  223. package/dist/{style-B8wrlDzY.cjs → style-Ce-JyTaX.cjs} +5 -1
  224. package/dist/{style-C3-67TPD.js → style-DU0BlP5D.js} +5 -1
  225. package/dist/{suspense-categories-card-simple-BCn3U1cz.js → suspense-categories-card-simple-BKWKpuwr.js} +1 -1
  226. package/dist/{suspense-categories-card-simple-B2swGa6t.cjs → suspense-categories-card-simple-CkULM0Bi.cjs} +1 -1
  227. package/dist/{suspense-large-DgzTM-qh.js → suspense-large-C-YSgzDe.js} +1 -1
  228. package/dist/{suspense-large-DMhn-lIG.cjs → suspense-large-ZUb9b6MG.cjs} +1 -1
  229. package/dist/{suspense-product-card-detailed-CuExvgd_.cjs → suspense-product-card-detailed-EXZJLtNh.cjs} +2 -2
  230. package/dist/{suspense-product-card-detailed-D7hKisw1.js → suspense-product-card-detailed-Z0emIstD.js} +4 -4
  231. package/dist/{suspense-product-card-simple-zYdZVLRz.cjs → suspense-product-card-simple-CVbhvQWo.cjs} +1 -1
  232. package/dist/{suspense-product-card-simple-BIVIVybi.js → suspense-product-card-simple-DF6bMLDk.js} +1 -1
  233. package/dist/utils-BOtq2mcF.cjs +51 -0
  234. package/dist/{utils-BXCGNjIy.js → utils-WHYrEnYF.js} +65 -52
  235. package/package.json +1 -1
  236. package/dist/utils-BWzf4vLl.cjs +0 -51
@@ -1,18 +1,40 @@
1
1
  import { jsx as t, jsxs as w, Fragment as G } from "react/jsx-runtime";
2
- import { createElement as ae, useState as E, useEffect as j, forwardRef as V, useRef as Q, useImperativeHandle as ne, Suspense as se, memo as le, useMemo as ce } from "react";
3
- import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { a as _, l as X, o as ee } from "./utils-BXCGNjIy.js";
5
- import { M as A } from "./consts-BuFChS64.js";
6
- import { m as de } from "./motion-Ckekul_K.js";
2
+ import { useState as B, useEffect as U, useMemo as te, createElement as ce, forwardRef as V, useRef as Y, useImperativeHandle as de, Suspense as he, memo as ge } from "react";
3
+ import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { z as fe, A as ue, B as pe, a as O, l as J, o as oe } from "./utils-WHYrEnYF.js";
5
+ import { M as E } from "./consts-BuFChS64.js";
6
+ import { m as me } from "./motion-Ckekul_K.js";
7
7
  import { P as i } from "./index-S5Cd7WrG.js";
8
- import ge from "./Icon.js";
9
- import he from "./Badge.js";
10
- import { u as M } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
11
- import { u as re } from "./useDetectMobile-Bkvj0VMa.js";
12
- import fe from "./FlexBox.js";
13
- import { I as Y } from "./index-Dhf4jQmS.js";
14
- import L from "./IconButton.js";
15
- const me = m.div`
8
+ import we from "./Icon.js";
9
+ import be from "./Badge.js";
10
+ import { u as Z } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
11
+ import { u as ie } from "./useDetectMobile-Bkvj0VMa.js";
12
+ import ve from "./FlexBox.js";
13
+ import { I as K } from "./index-Dhf4jQmS.js";
14
+ import j from "./IconButton.js";
15
+ var xe = function(e) {
16
+ return e === void 0 && (e = { laptopL: 1440, laptop: 1024, tablet: 768 }), function() {
17
+ var o = B(fe ? window.innerWidth : 0), a = o[0], s = o[1];
18
+ U(function() {
19
+ var n = function() {
20
+ s(window.innerWidth);
21
+ };
22
+ return n(), ue(window, "resize", n), function() {
23
+ pe(window, "resize", n);
24
+ };
25
+ });
26
+ var u = te(function() {
27
+ return Object.entries(e).sort(function(n, h) {
28
+ return n[1] >= h[1] ? 1 : -1;
29
+ });
30
+ }, [e]), l = u.reduce(function(n, h) {
31
+ var v = h[0], p = h[1];
32
+ return a >= p ? v : n;
33
+ }, u[0][0]);
34
+ return l;
35
+ };
36
+ };
37
+ const ye = b.div`
16
38
  cursor: pointer;
17
39
  display: flex;
18
40
  gap: 1rem;
@@ -20,15 +42,15 @@ const me = m.div`
20
42
  border-radius: 20px;
21
43
  border: 1px solid var(--gray-95008, #14161a14);
22
44
 
23
- @media (max-width: ${A + "px"}) {
45
+ @media (max-width: ${E + "px"}) {
24
46
  flex-direction: column;
25
47
  padding: 0;
26
48
  gap: 0;
27
49
  border: none;
28
50
  border-radius: 0;
29
51
  }
30
- `, pe = m.div`
31
- border-radius: ${(e) => _(e.theme, "edged")};
52
+ `, $e = b.div`
53
+ border-radius: ${(e) => O(e.theme, "edged")};
32
54
  height: 15rem;
33
55
  width: 15rem;
34
56
  min-width: 15rem;
@@ -51,12 +73,12 @@ const me = m.div`
51
73
  }
52
74
  }
53
75
 
54
- @media (max-width: ${A + "px"}) {
76
+ @media (max-width: ${E + "px"}) {
55
77
  width: 100%;
56
78
  max-width: 100dvh;
57
79
  height: 23.438rem;
58
80
  }
59
- `, ue = m.div`
81
+ `, De = b.div`
60
82
  flex: 1;
61
83
  display: flex;
62
84
  flex-direction: column;
@@ -105,7 +127,7 @@ const me = m.div`
105
127
  background-color: transparent;
106
128
  }
107
129
 
108
- @media (max-width: ${A + "px"}) {
130
+ @media (max-width: ${E + "px"}) {
109
131
  padding: 1.25rem;
110
132
 
111
133
  & .campaign-title {
@@ -119,7 +141,7 @@ const me = m.div`
119
141
  gap: 0.25rem;
120
142
  }
121
143
  }
122
- `, we = {
144
+ `, ke = {
123
145
  "#ADE3EB": "#76D0DB",
124
146
  "#DDD6FE": "#C4B5FD",
125
147
  "#FDE68A": "#FCD34D",
@@ -131,13 +153,13 @@ const me = m.div`
131
153
  "#E7E5E4": "#D6D3D1",
132
154
  "#FED7AA": "#FDBA74",
133
155
  default: "#C4C8CF"
134
- }, q = (e = !1, o = !1, l = !1) => `
156
+ }, Q = (e = !1, o = !1, a = !1) => `
135
157
  display: flex;
136
158
  ${o ? "flex-wrap: wrap;" : ""}
137
159
  ${o ? "" : "flex-wrap: nowrap;"}
138
160
  ${e ? "align-items: center;" : ""}
139
- ${l ? "justify-content: center;" : ""}
140
- `, be = m(de.div)`
161
+ ${a ? "justify-content: center;" : ""}
162
+ `, Se = b(me.div)`
141
163
  text-decoration: none;
142
164
  ${(e) => e.hasPermission === !0 && "cursor: pointer"};
143
165
 
@@ -154,22 +176,22 @@ const me = m.div`
154
176
  text-decoration: none;
155
177
  }
156
178
 
157
- ${q(!0)}
179
+ ${Q(!0)}
158
180
  gap: 0.5rem;
159
181
  padding: 0.5rem;
160
182
  color: ${(e) => e.isActive === !1 ? "var(--gray-900)" : "var(--primary-600)"};
161
183
  font-weight: 500;
162
184
  font-size: 0.875rem;
163
185
  line-height: 1.25rem;
164
- border-radius: ${(e) => _(e.theme, "slight")};
186
+ border-radius: ${(e) => O(e.theme, "slight")};
165
187
  transition: all 0.25s ease;
166
188
 
167
189
  & .logo-wrapper {
168
- ${q(!0, !1, !0)}
190
+ ${Q(!0, !1, !0)}
169
191
  flex-shrink: 0;
170
192
  border-radius: 999px;
171
193
  border: 3px solid
172
- ${(e) => e.isActive === !1 ? "var(--gray-300, #c4c8cf)" : we[e.themeColor] ?? "var(--gray-300, #c4c8cf)"};
194
+ ${(e) => e.isActive === !1 ? "var(--gray-300, #c4c8cf)" : ke[e.themeColor] ?? "var(--gray-300, #c4c8cf)"};
173
195
 
174
196
  & img,
175
197
  .img-placeholder {
@@ -211,15 +233,15 @@ const me = m.div`
211
233
  background-color: var(--gray-95080, #14161acc);
212
234
  color: var(--gray-600, #676e79);
213
235
  }
214
- `, xe = m.div`
236
+ `, Ce = b.div`
215
237
  position: absolute;
216
238
  top: 0.5rem;
217
239
  ${(e) => e.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
218
240
  display: flex;
219
241
  gap: 0.25rem;
220
- `, ve = (e) => `var(--${e}-700)`, ye = m.div`
221
- border-radius: ${(e) => _(e.theme, e.borderRadius || "slight")};
222
- background-color: ${(e) => ve(e == null ? void 0 : e.color)};
242
+ `, Ne = (e) => `var(--${e}-700)`, Te = b.div`
243
+ border-radius: ${(e) => O(e.theme, e.borderRadius || "slight")};
244
+ background-color: ${(e) => Ne(e == null ? void 0 : e.color)};
223
245
  color: white;
224
246
  height: 1.5rem;
225
247
  min-width: 1.5rem;
@@ -233,61 +255,61 @@ const me = m.div`
233
255
  & i {
234
256
  font-size: 0.813rem;
235
257
  }
236
- `, te = (e) => {
258
+ `, ne = (e) => {
237
259
  const {
238
260
  uuid: o,
239
- hasPermission: l = !0,
240
- isUser: a,
241
- image: b,
242
- name: n,
243
- notifications: d = 0,
244
- color: p = "primary",
245
- size: x = "large",
246
- style: D,
247
- disabled: s,
248
- onSelect: c = () => {
261
+ hasPermission: a = !0,
262
+ isUser: s,
263
+ image: u,
264
+ name: l,
265
+ notifications: n = 0,
266
+ color: h = "primary",
267
+ size: v = "large",
268
+ style: p,
269
+ disabled: y,
270
+ onClick: c = () => {
249
271
  },
250
272
  isActive: $,
251
- className: v,
273
+ className: m,
252
274
  // new
253
- themeData: u
254
- } = e, S = {
255
- theme: M(),
256
- color: p,
257
- size: x,
258
- style: D,
259
- disabled: s
275
+ themeData: x
276
+ } = e, D = {
277
+ theme: Z(),
278
+ color: h,
279
+ size: v,
280
+ style: p,
281
+ disabled: y
260
282
  };
261
- return /* @__PURE__ */ ae(
262
- be,
283
+ return /* @__PURE__ */ ce(
284
+ Se,
263
285
  {
264
- onClick: (N) => {
265
- N.stopPropagation(), l === !0 && (c == null || c());
286
+ onClick: (k) => {
287
+ k.stopPropagation(), a === !0 && (c == null || c());
266
288
  },
267
- ...S,
268
- key: n,
289
+ ...D,
290
+ key: l,
269
291
  animate: {
270
292
  y: 0,
271
293
  opacity: 1
272
294
  },
273
- className: `profile-item ${v}`,
295
+ className: `profile-item ${m}`,
274
296
  exit: {
275
297
  opacity: 0
276
298
  },
277
- hasPermission: l,
299
+ hasPermission: a,
278
300
  initial: {
279
301
  y: -10,
280
302
  opacity: 0
281
303
  },
282
304
  isActive: $,
283
- themeColor: (u == null ? void 0 : u.code) || "transparent"
305
+ themeColor: (x == null ? void 0 : x.code) || "transparent"
284
306
  },
285
- /* @__PURE__ */ t("div", { className: "logo-wrapper", children: b }),
286
- /* @__PURE__ */ t("div", { className: "name", children: n }),
287
- d > 0 && /* @__PURE__ */ t("div", { className: "notifications-number", children: /* @__PURE__ */ t(he, { className: "badge", color: "danger", size: "small", children: d > 99 ? "99+" : d }) })
307
+ /* @__PURE__ */ t("div", { className: "logo-wrapper", children: u }),
308
+ /* @__PURE__ */ t("div", { className: "name", children: l }),
309
+ n > 0 && /* @__PURE__ */ t("div", { className: "notifications-number", children: /* @__PURE__ */ t(be, { className: "badge", color: "danger", size: "small", children: n > 99 ? "99+" : n }) })
288
310
  );
289
311
  };
290
- te.propTypes = {
312
+ ne.propTypes = {
291
313
  id: i.any,
292
314
  isUserProfile: i.bool,
293
315
  themeColor: i.string,
@@ -309,86 +331,87 @@ te.propTypes = {
309
331
  onSelect: i.func,
310
332
  hasPermission: i.bool
311
333
  };
312
- const J = (e, o) => {
334
+ const ee = (e, o) => {
313
335
  if (!e || !o) return null;
314
- let l = Math.floor((e == null ? void 0 : e.getTime()) - (o == null ? void 0 : o.getTime())), a = 1e3 * 60 * 60 * 24;
315
- return Math.ceil(l / a);
316
- }, oe = (e) => {
317
- const o = M(), {
318
- uuid: l,
319
- shopUuid: a,
320
- title: b = "",
336
+ let a = Math.floor((e == null ? void 0 : e.getTime()) - (o == null ? void 0 : o.getTime())), s = 1e3 * 60 * 60 * 24;
337
+ return Math.ceil(a / s);
338
+ }, ae = V((e, o) => {
339
+ const a = Z(), {
340
+ uuid: s,
341
+ shopUuid: u,
342
+ title: l = "",
321
343
  description: n,
322
- badges: d,
323
- coverPhoto: p,
324
- onSelect: x,
325
- status: D,
326
- startDate: s,
327
- endDate: c,
328
- salesPackages: $,
329
- shopName: v,
330
- shopImage: u,
331
- className: g,
332
- onSelectCard: S = () => {
344
+ badges: h,
345
+ coverPhoto: v,
346
+ onSelect: p,
347
+ status: y,
348
+ startDate: c,
349
+ endDate: $,
350
+ salesPackages: m,
351
+ shopName: x,
352
+ shopImage: g,
353
+ className: D,
354
+ onSelectCard: k = () => {
333
355
  },
334
- onSelectShop: N = () => {
356
+ onSelectShop: I = () => {
335
357
  },
336
- campaignSingleText: r,
337
- salesCampaignTypes: h = [],
338
- startsInPrefixTextPlural: P,
339
- startsinSuffixTextPlural: I,
340
- startsInPrefixTextSingular: z,
341
- startsinSuffixTextSingular: H,
342
- themeData: B,
343
- ...f
344
- } = e, k = s ? new Date(s) <= /* @__PURE__ */ new Date() : !1;
345
- J(
346
- c ? new Date(c) : null,
347
- s ? new Date(s) : null
358
+ campaignSingleText: P,
359
+ salesCampaignTypes: S = [],
360
+ startsInPrefixTextPlural: d,
361
+ startsinSuffixTextPlural: T,
362
+ startsInPrefixTextSingular: C,
363
+ startsinSuffixTextSingular: r,
364
+ themeData: _,
365
+ ...X
366
+ } = e, M = c ? new Date(c) <= /* @__PURE__ */ new Date() : !1;
367
+ ee(
368
+ $ ? new Date($) : null,
369
+ c ? new Date(c) : null
348
370
  );
349
- const C = J(
350
- s ? new Date(s) : null,
371
+ const f = ee(
372
+ c ? new Date(c) : null,
351
373
  /* @__PURE__ */ new Date()
352
374
  );
353
375
  return /* @__PURE__ */ w(
354
- me,
376
+ ye,
355
377
  {
356
- theme: o,
357
- className: g,
358
- onClick: S,
359
- ...f,
378
+ ref: o,
379
+ theme: a,
380
+ className: D,
381
+ onClick: k,
382
+ ...X,
360
383
  children: [
361
- /* @__PURE__ */ w(pe, { theme: o, onClick: () => x == null ? void 0 : x(), children: [
362
- /* @__PURE__ */ t("img", { src: p }),
363
- /* @__PURE__ */ t(xe, { children: $ == null ? void 0 : $.map((T, R) => {
364
- var W, U;
384
+ /* @__PURE__ */ w($e, { theme: a, onClick: () => p == null ? void 0 : p(), children: [
385
+ /* @__PURE__ */ t("img", { src: v }),
386
+ /* @__PURE__ */ t(Ce, { children: m == null ? void 0 : m.map((N, z) => {
387
+ var F, R;
365
388
  return /* @__PURE__ */ t(
366
- ye,
389
+ Te,
367
390
  {
368
- color: (W = h == null ? void 0 : h.find((y) => y.value === T)) == null ? void 0 : W.color,
369
- theme: o,
391
+ color: (F = S == null ? void 0 : S.find((L) => L.value === N)) == null ? void 0 : F.color,
392
+ theme: a,
370
393
  children: /* @__PURE__ */ t(
371
- ge,
394
+ we,
372
395
  {
373
- icon: (U = h == null ? void 0 : h.find((y) => y.value === T)) == null ? void 0 : U.icon
396
+ icon: (R = S == null ? void 0 : S.find((L) => L.value === N)) == null ? void 0 : R.icon
374
397
  }
375
398
  )
376
399
  },
377
- `package__${R}`
400
+ `package__${z}`
378
401
  );
379
402
  }) })
380
403
  ] }),
381
- /* @__PURE__ */ w(ue, { theme: o, children: [
404
+ /* @__PURE__ */ w(De, { theme: a, children: [
382
405
  /* @__PURE__ */ w("div", { className: "text-block-wrapper", children: [
383
406
  /* @__PURE__ */ w("div", { className: "title-block-wrapper", children: [
384
- /* @__PURE__ */ t("div", { className: "campaign-title", children: r }),
385
- /* @__PURE__ */ t("div", { className: "campaign-title-text", children: b }),
386
- /* @__PURE__ */ t("div", { className: "timestamp-text", children: k ? "" : C === 1 ? `${z} ${C} ${H}` : `${P} ${C} ${I}` })
407
+ /* @__PURE__ */ t("div", { className: "campaign-title", children: P }),
408
+ /* @__PURE__ */ t("div", { className: "campaign-title-text", children: l }),
409
+ /* @__PURE__ */ t("div", { className: "timestamp-text", children: M ? "" : f === 1 ? `${C} ${f} ${r}` : `${d} ${f} ${T}` })
387
410
  ] }),
388
411
  /* @__PURE__ */ t("div", { children: n })
389
412
  ] }),
390
413
  /* @__PURE__ */ t(
391
- te,
414
+ ne,
392
415
  {
393
416
  hasPermission: !0,
394
417
  image: (
@@ -401,30 +424,30 @@ const J = (e, o) => {
401
424
  /* @__PURE__ */ t(
402
425
  "img",
403
426
  {
404
- src: u,
405
- className: `${u ? "" : "no-image"}`
427
+ src: g,
428
+ className: `${g ? "" : "no-image"}`
406
429
  }
407
430
  )
408
431
  ),
409
- themeData: B,
432
+ themeData: _,
410
433
  isActive: !0,
411
434
  isUser: !1,
412
- name: v,
413
- onClick: () => N(a)
435
+ name: x,
436
+ onClick: () => I(u)
414
437
  }
415
438
  )
416
439
  ] })
417
440
  ]
418
441
  }
419
442
  );
420
- };
421
- oe.propTypes = {
443
+ });
444
+ ae.propTypes = {
422
445
  title: i.oneOfType([i.string, i.element]),
423
446
  numberOfListings: i.number,
424
447
  dropdown: i.any,
425
448
  color: i.string
426
449
  };
427
- const $e = m.div`
450
+ const Ae = b.div`
428
451
  display: flex;
429
452
  flex-direction: column;
430
453
  gap: 1.5rem;
@@ -435,7 +458,7 @@ const $e = m.div`
435
458
  position: absolute;
436
459
  top: 50%;
437
460
  left: 1.5rem;
438
- z-index: ${(e) => X(e.arrowsZIndex) ? e.arrowsZIndex : 20};
461
+ z-index: ${(e) => J(e.arrowsZIndex) ? e.arrowsZIndex : 20};
439
462
  }
440
463
 
441
464
  & .hover-right-arrow {
@@ -443,7 +466,7 @@ const $e = m.div`
443
466
  position: absolute;
444
467
  top: 50%;
445
468
  right: 1.5rem;
446
- z-index: ${(e) => X(e.arrowsZIndex) ? e.arrowsZIndex : 20};
469
+ z-index: ${(e) => J(e.arrowsZIndex) ? e.arrowsZIndex : 20};
447
470
  }
448
471
 
449
472
  & .clip-loader-wrapper {
@@ -451,14 +474,14 @@ const $e = m.div`
451
474
  padding: 0 1rem;
452
475
  }
453
476
 
454
- @media (max-width: ${A + "px"}) {
477
+ @media (max-width: ${E + "px"}) {
455
478
  gap: 1.25rem;
456
479
  & .hover-left-arrow,
457
480
  .hover-right-arrow {
458
481
  display: flex;
459
482
  }
460
483
  }
461
- `, De = m.div`
484
+ `, _e = b.div`
462
485
  display: flex;
463
486
  align-items: center;
464
487
 
@@ -473,13 +496,13 @@ const $e = m.div`
473
496
  gap: 0.375rem;
474
497
  }
475
498
 
476
- @media (max-width: ${A + "px"}) {
499
+ @media (max-width: ${E + "px"}) {
477
500
  padding: 0 1rem;
478
501
  & .btns-group {
479
502
  display: none;
480
503
  }
481
504
  }
482
- `, ke = m.div`
505
+ `, Fe = b.div`
483
506
  position: relative;
484
507
  padding: ${(e) => e.padding};
485
508
 
@@ -547,7 +570,7 @@ const $e = m.div`
547
570
  visibility: ${(e) => e.hasOverflow ? "visible" : "hidden"};
548
571
  }
549
572
 
550
- @media (max-width: ${A + "px"}) {
573
+ @media (max-width: ${E + "px"}) {
551
574
  & .scroll-arrow-left,
552
575
  & .scroll-arrow-right {
553
576
  display: none;
@@ -557,196 +580,203 @@ const $e = m.div`
557
580
  right: 0;
558
581
  }
559
582
  }
560
- `, Ce = (e, o) => {
561
- const [l, a] = E({
583
+ `, Be = (e, o) => {
584
+ const [a, s] = B({
562
585
  trigger: null,
563
586
  direction: null
564
- }), b = (n) => n.touches || n.originalEvent.touches;
565
- return j(() => {
566
- const n = typeof e == "string" || e instanceof String ? document.getElementById(e) : e.current;
567
- let d = null, p = null;
568
- if (n) {
569
- const x = (s) => {
570
- const c = b(s)[0];
571
- d = c.clientX, p = c.clientY;
572
- }, D = (s) => {
573
- if (!d || !p)
587
+ }), u = (l) => l.touches || l.originalEvent.touches;
588
+ return U(() => {
589
+ const l = typeof e == "string" || e instanceof String ? document.getElementById(e) : e.current;
590
+ let n = null, h = null;
591
+ if (l) {
592
+ const v = (y) => {
593
+ const c = u(y)[0];
594
+ n = c.clientX, h = c.clientY;
595
+ }, p = (y) => {
596
+ if (!n || !h)
574
597
  return;
575
- const c = s.touches[0].clientX, $ = s.touches[0].clientY, v = d - c, u = p - $;
576
- Math.abs(v) > Math.abs(u) ? v > 0 ? a((g) => ({
598
+ const c = y.touches[0].clientX, $ = y.touches[0].clientY, m = n - c, x = h - $;
599
+ Math.abs(m) > Math.abs(x) ? m > 0 ? s((g) => ({
577
600
  trigger: !g.trigger,
578
- direction: F.LEFT
579
- })) : a((g) => ({
601
+ direction: W.LEFT
602
+ })) : s((g) => ({
580
603
  trigger: !g.trigger,
581
- direction: F.RIGHT
582
- })) : u > 0 ? a((g) => ({
604
+ direction: W.RIGHT
605
+ })) : x > 0 ? s((g) => ({
583
606
  trigger: !g.trigger,
584
- direction: F.UP
585
- })) : a((g) => ({
607
+ direction: W.UP
608
+ })) : s((g) => ({
586
609
  trigger: !g.trigger,
587
- direction: F.DOWN
588
- })), d = null, p = null;
610
+ direction: W.DOWN
611
+ })), n = null, h = null;
589
612
  };
590
- return n.addEventListener("touchstart", x), n.addEventListener("touchmove", D), () => {
591
- n.removeEventListener("touchstart", x), n.addEventListener("touchmove", D);
613
+ return l.addEventListener("touchstart", v), l.addEventListener("touchmove", p), () => {
614
+ l.removeEventListener("touchstart", v), l.addEventListener("touchmove", p);
592
615
  };
593
616
  }
594
- }, []), l;
595
- }, F = {
617
+ }, []), a;
618
+ }, W = {
596
619
  UP: "up",
597
620
  DOWN: "down",
598
621
  RIGHT: "right",
599
622
  LEFT: "left"
600
- }, ie = V(
623
+ }, se = V(
601
624
  ({
602
625
  title: e,
603
626
  columnGap: o = "2rem",
604
- rowGap: l = "1.25rem",
605
- scrollBySize: a = 300,
606
- wrapForMobile: b = !1,
607
- wrap: n = !1,
608
- children: d,
609
- methodsRef: p,
610
- arrowsVisibleOnHover: x = !0,
611
- rightAlignArrows: D = !1,
612
- padding: s = "0",
627
+ rowGap: a = "1.25rem",
628
+ scrollBySize: s = 300,
629
+ wrapForMobile: u = !1,
630
+ wrap: l = !1,
631
+ children: n,
632
+ methodsRef: h,
633
+ arrowsVisibleOnHover: v = !0,
634
+ rightAlignArrows: p = !1,
635
+ padding: y = "0",
613
636
  showTimesBtn: c,
614
637
  noArrows: $,
615
- onShowEnd: v,
616
- arrowsZIndex: u,
617
- ...g
618
- }, S) => {
619
- const N = re(), r = M(), [h, P] = E(!1), [I, z] = E(!1), [H, B] = E(!0), f = Q(), k = Ce(f);
620
- j(() => {
621
- (k == null ? void 0 : k.direction) === F.RIGHT && I !== !0 ? T() : (k == null ? void 0 : k.direction) === F.LEFT && h !== !0 && C();
622
- }, [k]);
623
- const C = () => {
624
- var y;
625
- (y = f.current) == null || y.scrollBy(a, 0);
626
- }, T = () => {
627
- var y;
628
- (y = f.current) == null || y.scrollBy(-a, 0);
629
- }, [R, W] = E(!1);
630
- j(() => {
631
- var y, Z;
632
- W(
633
- ((y = f == null ? void 0 : f.current) == null ? void 0 : y.scrollWidth) > ((Z = f == null ? void 0 : f.current) == null ? void 0 : Z.clientWidth)
638
+ onShowEnd: m,
639
+ arrowsZIndex: x,
640
+ showArrows: g,
641
+ elementsCount: D,
642
+ minElementsCount: k = 2,
643
+ ...I
644
+ }, P) => {
645
+ const S = ie(), d = Z(), [T, C] = B(
646
+ D < k
647
+ ), [r, _] = B(!1), [X, M] = B(!0), f = Y(), N = Be(f);
648
+ U(() => {
649
+ (N == null ? void 0 : N.direction) === W.RIGHT && r !== !0 ? F() : (N == null ? void 0 : N.direction) === W.LEFT && T !== !0 && z();
650
+ }, [N]);
651
+ const z = () => {
652
+ var A;
653
+ (A = f.current) == null || A.scrollBy(s, 0);
654
+ }, F = () => {
655
+ var A;
656
+ (A = f.current) == null || A.scrollBy(-s, 0);
657
+ }, [R, L] = B(!1);
658
+ U(() => {
659
+ var A, q;
660
+ L(
661
+ ((A = f == null ? void 0 : f.current) == null ? void 0 : A.scrollWidth) > ((q = f == null ? void 0 : f.current) == null ? void 0 : q.clientWidth)
634
662
  );
635
- }, [d]), ne(p, () => ({
663
+ }, [n]), de(h, () => ({
636
664
  scrollToEnd() {
637
- U();
665
+ le();
638
666
  },
639
667
  scrollLeft() {
640
- T();
668
+ F();
641
669
  },
642
670
  scrollRight() {
643
- C();
671
+ z();
644
672
  }
645
673
  }));
646
- const U = () => {
674
+ const le = () => {
647
675
  f.current.scrollLeft = f.current.scrollWidth;
648
676
  };
649
- return /* @__PURE__ */ w($e, { arrowsZIndex: u, children: [
650
- /* @__PURE__ */ w(De, { children: [
677
+ return /* @__PURE__ */ w(Ae, { arrowsZIndex: x, children: [
678
+ /* @__PURE__ */ w(_e, { children: [
651
679
  /* @__PURE__ */ t("div", { children: e }),
652
- /* @__PURE__ */ w("div", { className: "btns-group", children: [
680
+ g && /* @__PURE__ */ w("div", { className: "btns-group", children: [
653
681
  /* @__PURE__ */ t(
654
- L,
682
+ j,
655
683
  {
656
684
  borderRadius: "curved",
657
685
  btnType: "tinted",
658
686
  className: "scroll-arrow-left",
659
687
  color: "neutral",
660
- disabled: I,
688
+ disabled: r,
661
689
  icon: "angle-left",
662
- onClick: T
690
+ onClick: F
663
691
  }
664
692
  ),
665
693
  /* @__PURE__ */ t(
666
- L,
694
+ j,
667
695
  {
668
696
  borderRadius: "curved",
669
697
  btnType: "tinted",
670
698
  className: "scroll-arrow-right",
671
699
  color: "neutral",
672
- disabled: h,
700
+ disabled: T,
673
701
  icon: "angle-right",
674
- onClick: C
702
+ onClick: z
675
703
  }
676
704
  )
677
705
  ] })
678
706
  ] }),
707
+ g && /* @__PURE__ */ w(G, { children: [
708
+ /* @__PURE__ */ t(
709
+ j,
710
+ {
711
+ borderRadius: "curved",
712
+ btnType: "tinted",
713
+ className: "hover-left-arrow scroll-arrow-left",
714
+ color: "neutral",
715
+ disabled: r,
716
+ icon: "angle-left",
717
+ onClick: F
718
+ }
719
+ ),
720
+ /* @__PURE__ */ t(
721
+ j,
722
+ {
723
+ borderRadius: "curved",
724
+ btnType: "tinted",
725
+ className: "hover-right-arrow scroll-arrow-right",
726
+ color: "neutral",
727
+ disabled: T,
728
+ icon: "angle-right",
729
+ onClick: z
730
+ }
731
+ )
732
+ ] }),
679
733
  /* @__PURE__ */ t(
680
- L,
681
- {
682
- borderRadius: "curved",
683
- btnType: "tinted",
684
- className: "hover-left-arrow scroll-arrow-left",
685
- color: "neutral",
686
- disabled: I,
687
- icon: "angle-left",
688
- onClick: T
689
- }
690
- ),
691
- /* @__PURE__ */ t(
692
- L,
693
- {
694
- borderRadius: "curved",
695
- btnType: "tinted",
696
- className: "hover-right-arrow scroll-arrow-right",
697
- color: "neutral",
698
- disabled: h,
699
- icon: "angle-right",
700
- onClick: C
701
- }
702
- ),
703
- /* @__PURE__ */ t(
704
- ke,
734
+ Fe,
705
735
  {
706
- ref: S,
707
- arrowsVisibleOnHover: x,
736
+ ref: P,
737
+ arrowsVisibleOnHover: v,
708
738
  hasOverflow: R,
709
739
  noArrows: $,
710
- padding: s,
711
- rightAlignArrows: D,
740
+ padding: y,
741
+ rightAlignArrows: p,
712
742
  showTimesBtn: c,
713
- theme: r,
714
- ...g,
743
+ theme: d,
744
+ ...I,
715
745
  children: /* @__PURE__ */ w(
716
- fe,
746
+ ve,
717
747
  {
718
748
  ref: f,
719
749
  className: "scrollable-container",
720
750
  columnGap: o,
721
- rowGap: l,
722
- wrap: n || b && N ? "Wrap" : "NoWrap",
751
+ rowGap: a,
752
+ wrap: l || u && S ? "Wrap" : "NoWrap",
723
753
  children: [
724
754
  /* @__PURE__ */ t(
725
- Y,
755
+ K,
726
756
  {
727
757
  isHorizontal: !0,
728
758
  onIsNotVisible: () => {
729
- I === !0 && z(!1);
759
+ r === !0 && _(!1);
730
760
  },
731
761
  onIsVisible: () => {
732
- I === !1 && z(!0);
762
+ r === !1 && _(!0);
733
763
  }
734
764
  }
735
765
  ),
736
- d,
766
+ n,
737
767
  /* @__PURE__ */ t(
738
- Y,
768
+ K,
739
769
  {
740
770
  isHorizontal: !0,
741
771
  onIsNotVisible: () => {
742
- h === !0 && P(!1), B(!0);
772
+ T === !0 && C(!1), M(!0);
743
773
  },
744
774
  onIsVisible: () => {
745
- h === !1 && P(!0), B(!1), v == null || v();
775
+ T === !1 && C(!0), M(!1), m == null || m();
746
776
  }
747
777
  }
748
778
  ),
749
- H && R && /* @__PURE__ */ t("div", { className: "gradient" })
779
+ X && R && /* @__PURE__ */ t("div", { className: "gradient" })
750
780
  ]
751
781
  }
752
782
  )
@@ -755,7 +785,7 @@ const $e = m.div`
755
785
  ] });
756
786
  }
757
787
  );
758
- ie.propTypes = {
788
+ se.propTypes = {
759
789
  title: i.string,
760
790
  rowGap: i.string,
761
791
  columnGap: i.string,
@@ -767,7 +797,7 @@ ie.propTypes = {
767
797
  rightAlignArrows: i.bool,
768
798
  padding: i.string
769
799
  };
770
- const Se = m.div`
800
+ const Ee = b.div`
771
801
  display: flex;
772
802
  flex-direction: column;
773
803
  gap: 1.5rem;
@@ -785,35 +815,39 @@ const Se = m.div`
785
815
  }
786
816
 
787
817
  & .gradient {
788
- background: transparent;
818
+ background: transparent !important;
789
819
  }
790
820
 
791
821
  & .campaign-item {
792
822
  min-width: calc(50% - 0.87rem);
793
823
  width: calc(50% - 0.87rem);
794
- margin-right: 1.25rem;
824
+ margin-right: 1rem;
825
+
826
+ &:nth-child(${(e) => e == null ? void 0 : e.lastItemIdx}) {
827
+ margin-right: 0;
828
+ }
795
829
  }
796
830
 
797
- @media (max-width: ${A + "px"}) {
831
+ @media (max-width: ${E + "px"}) {
798
832
  & .campaign-item {
799
833
  min-width: 100%;
800
834
  width: 100%;
801
835
  margin-right: 0;
802
836
  }
803
837
  }
804
- `, O = m.div`
838
+ `, H = b.div`
805
839
  width: ${(e) => e.width || "100%"};
806
840
  height: ${(e) => (e.heightCoeff || 1) * 1.125}rem;
807
841
  background-color: var(--gray-200, #dddfe4);
808
842
 
809
- ${ee("-90deg")}
810
- `, Ne = m.div`
843
+ ${oe("-90deg")}
844
+ `, Ie = b.div`
811
845
  display: flex;
812
846
  flex-direction: ${(e) => e != null && e.row ? "row" : "column"};
813
847
  gap: ${(e) => (e == null ? void 0 : e.gap) ?? "0.5rem"};
814
848
  width: ${(e) => (e == null ? void 0 : e.width) ?? "100%"};
815
- `, K = m.div`
816
- border-radius: ${(e) => _(e.theme, (e == null ? void 0 : e.borderRadius) ?? "regular")};
849
+ `, re = b.div`
850
+ border-radius: ${(e) => O(e.theme, (e == null ? void 0 : e.borderRadius) ?? "regular")};
817
851
  background: var(--gray-200, #dddfe4);
818
852
  position: relative;
819
853
  max-height: ${(e) => (e == null ? void 0 : e.height) ?? "5rem"};
@@ -822,10 +856,10 @@ const Se = m.div`
822
856
  width: ${(e) => (e == null ? void 0 : e.width) ?? "5rem"};
823
857
  flex-shrink: 0;
824
858
 
825
- ${ee()}
826
- `, Ie = m.div`
859
+ ${oe()}
860
+ `, Pe = b.div`
827
861
  background: var(--white, #fff);
828
- border-radius: ${(e) => _(e.theme, "edged")};
862
+ border-radius: ${(e) => O(e.theme, "edged")};
829
863
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
830
864
  border: 1px solid var(--gray-95012, #14161a1f);
831
865
 
@@ -851,11 +885,11 @@ const Se = m.div`
851
885
  align-items: center;
852
886
  gap: 0.5rem;
853
887
  }
854
- `, Te = V(({}, e) => {
855
- const o = M();
856
- return /* @__PURE__ */ w(Ie, { ref: e, theme: o, children: [
888
+ `, ze = V(({}, e) => {
889
+ const o = Z();
890
+ return /* @__PURE__ */ w(Pe, { ref: e, theme: o, children: [
857
891
  /* @__PURE__ */ t("div", { className: "campaign__left-section", children: /* @__PURE__ */ t(
858
- K,
892
+ re,
859
893
  {
860
894
  theme: o,
861
895
  width: "15rem",
@@ -864,14 +898,14 @@ const Se = m.div`
864
898
  }
865
899
  ) }),
866
900
  /* @__PURE__ */ w("div", { className: "campaign__right-section", children: [
867
- /* @__PURE__ */ w(Ne, { theme: o, children: [
868
- /* @__PURE__ */ t(O, { heightCoeff: 0.75, theme: o, width: "35%" }),
869
- /* @__PURE__ */ t(O, { heightCoeff: 1.25, theme: o }),
870
- /* @__PURE__ */ t(O, { heightCoeff: 3, theme: o })
901
+ /* @__PURE__ */ w(Ie, { theme: o, children: [
902
+ /* @__PURE__ */ t(H, { heightCoeff: 0.75, theme: o, width: "35%" }),
903
+ /* @__PURE__ */ t(H, { heightCoeff: 1.25, theme: o }),
904
+ /* @__PURE__ */ t(H, { heightCoeff: 3, theme: o })
871
905
  ] }),
872
906
  /* @__PURE__ */ w("div", { className: "campaign__user", children: [
873
907
  /* @__PURE__ */ t(
874
- K,
908
+ re,
875
909
  {
876
910
  theme: o,
877
911
  width: "2.5rem",
@@ -879,100 +913,120 @@ const Se = m.div`
879
913
  borderRadius: "curved"
880
914
  }
881
915
  ),
882
- /* @__PURE__ */ t(O, { theme: o, width: "75%" })
916
+ /* @__PURE__ */ t(H, { theme: o, width: "75%" })
883
917
  ] })
884
918
  ] })
885
919
  ] });
886
- }), Ae = ({ itemsCount: e = 5, keyPrefix: o }) => /* @__PURE__ */ t(G, { children: Array.from({ length: e }, (l, a) => /* @__PURE__ */ t(
887
- Te,
920
+ }), We = ({ itemsCount: e = 5, keyPrefix: o }) => /* @__PURE__ */ t(G, { children: Array.from({ length: e }, (a, s) => /* @__PURE__ */ t(
921
+ ze,
888
922
  {},
889
- `${o}-skeleton-campaign-card-${a}`
890
- )) }), Fe = ({
923
+ `${o}-skeleton-campaign-card-${s}`
924
+ )) }), Re = ({
891
925
  children: e,
892
926
  fallbackComponent: o = /* @__PURE__ */ t(G, {}),
893
- isLoading: l = !1,
894
- itemsCount: a = 5,
895
- keyPrefix: b
896
- }) => /* @__PURE__ */ t(se, { fallback: o, children: l === !0 ? /* @__PURE__ */ t(Ae, { itemsCount: a, keyPrefix: b }) : e }), Ee = le(oe), Ze = V(
927
+ isLoading: a = !1,
928
+ itemsCount: s = 5,
929
+ keyPrefix: u
930
+ }) => /* @__PURE__ */ t(he, { fallback: o, children: a === !0 ? /* @__PURE__ */ t(We, { itemsCount: s, keyPrefix: u }) : e }), Le = xe(), Ue = ge(ae), rr = V(
897
931
  ({
898
932
  sellerType: e = "Shop",
899
933
  items: o = [],
900
- title: l,
901
- isLoading: a,
902
- onSelectCard: b = () => {
934
+ title: a,
935
+ isLoading: s,
936
+ onSelectCard: u = () => {
903
937
  },
904
- onSelectShop: n = () => {
938
+ onSelectShop: l = () => {
905
939
  },
906
- getImage: d = () => {
940
+ getImage: n = () => {
907
941
  },
908
942
  // new
909
- customScrollSize: p,
910
- campaignSingleText: x,
911
- salesCampaignTypes: D = [],
912
- startsInPrefixTextPlural: s,
943
+ customScrollSize: h,
944
+ campaignSingleText: v,
945
+ salesCampaignTypes: p = [],
946
+ startsInPrefixTextPlural: y,
913
947
  startsinSuffixTextPlural: c,
914
948
  startsInPrefixTextSingular: $,
915
- startsinSuffixTextSingular: v
916
- }, u) => {
917
- const g = Q(), S = re(), N = ce(() => o == null ? void 0 : o.map((r, h) => /* @__PURE__ */ t(
949
+ startsinSuffixTextSingular: m
950
+ }, x) => {
951
+ const g = Y(), D = Y(), k = Le(), I = ie(), [P, S] = B(0), d = te(() => {
952
+ var C;
953
+ return (C = o == null ? void 0 : o.slice(0, 6)) == null ? void 0 : C.map((r, _) => /* @__PURE__ */ t(
954
+ Ue,
955
+ {
956
+ className: "campaign-item",
957
+ ref: _ === 0 ? D : null,
958
+ coverPhoto: n(
959
+ r == null ? void 0 : r.coverPhoto,
960
+ (r == null ? void 0 : r.uuid) || (r == null ? void 0 : r.campaignUuid)
961
+ ),
962
+ description: r == null ? void 0 : r.description,
963
+ endDate: r == null ? void 0 : r.endDate,
964
+ salesPackages: r == null ? void 0 : r.salesPackages,
965
+ sellerType: e,
966
+ shopImage: r == null ? void 0 : r.profileImage,
967
+ shopName: r == null ? void 0 : r.shopName,
968
+ shopUuid: r == null ? void 0 : r.shopUuid,
969
+ startDate: r == null ? void 0 : r.startDate,
970
+ title: r == null ? void 0 : r.name,
971
+ uuid: r == null ? void 0 : r.campaignUuid,
972
+ onSelectCard: () => u(r == null ? void 0 : r.campaignUuid, r == null ? void 0 : r.shopUuid),
973
+ onSelectShop: () => l(r == null ? void 0 : r.shopUuid),
974
+ campaignSingleText: v,
975
+ salesCampaignTypes: p,
976
+ startsInPrefixTextPlural: y,
977
+ startsinSuffixTextPlural: c,
978
+ startsInPrefixTextSingular: $,
979
+ startsinSuffixTextSingular: m,
980
+ themeData: r == null ? void 0 : r.themeData
981
+ },
982
+ `campaign__item__${_}__${r == null ? void 0 : r.startDate}___${r == null ? void 0 : r.endDate}__${k}`
983
+ ));
984
+ }, [k, o]);
985
+ U(() => {
986
+ var C;
987
+ S(h ?? ((C = D == null ? void 0 : D.current) == null ? void 0 : C.offsetWidth));
988
+ }, [d, k]);
989
+ const T = I ? (d == null ? void 0 : d.length) > 1 : (d == null ? void 0 : d.length) > 2;
990
+ return /* @__PURE__ */ t(G, { children: (d == null ? void 0 : d.length) > 0 && /* @__PURE__ */ t(
918
991
  Ee,
919
992
  {
920
- className: "campaign-item",
921
- coverPhoto: d(
922
- r == null ? void 0 : r.coverPhoto,
923
- (r == null ? void 0 : r.uuid) || (r == null ? void 0 : r.campaignUuid)
924
- ),
925
- description: r == null ? void 0 : r.description,
926
- endDate: r == null ? void 0 : r.endDate,
927
- salesPackages: r == null ? void 0 : r.salesPackages,
928
- sellerType: e,
929
- shopImage: r == null ? void 0 : r.profileImage,
930
- shopName: r == null ? void 0 : r.shopName,
931
- shopUuid: r == null ? void 0 : r.shopUuid,
932
- startDate: r == null ? void 0 : r.startDate,
933
- title: r == null ? void 0 : r.name,
934
- uuid: r == null ? void 0 : r.campaignUuid,
935
- onSelectCard: () => b(r == null ? void 0 : r.campaignUuid, r == null ? void 0 : r.shopUuid),
936
- onSelectShop: () => n(r == null ? void 0 : r.shopUuid),
937
- campaignSingleText: x,
938
- salesCampaignTypes: D,
939
- startsInPrefixTextPlural: s,
940
- startsinSuffixTextPlural: c,
941
- startsInPrefixTextSingular: $,
942
- startsinSuffixTextSingular: v,
943
- themeData: r == null ? void 0 : r.themeData
944
- },
945
- `campaign__item__${h}__${r == null ? void 0 : r.startDate}___${r == null ? void 0 : r.endDate}`
946
- )), [o]);
947
- return /* @__PURE__ */ t(G, { children: (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t(Se, { ref: u, className: "row-section-scroll", children: /* @__PURE__ */ t(
948
- ie,
949
- {
950
- arrowsVisibleOnHover: !1,
951
- columnGap: "0",
952
- methodsRef: g,
953
- mobileHoverScrollButtons: !0,
954
- noArrows: !0,
955
- padding: "0.25rem 0",
956
- rightAlignArrows: !0,
957
- scrollBySize: S ? window.innerWidth : p > 0 ? p : window.innerWidth,
958
- showTimesBtn: !1,
959
- title: l,
960
- onShowEnd: () => {
961
- },
962
- arrowsZIndex: 11,
993
+ ref: x,
994
+ className: "row-section-scroll",
995
+ lastItemIdx: (d == null ? void 0 : d.length) + 1,
963
996
  children: /* @__PURE__ */ t(
964
- Fe,
997
+ se,
965
998
  {
966
- isLoading: a,
967
- itemsCount: 2,
968
- keyPrefix: "sales-camp",
969
- children: N
970
- }
999
+ arrowsVisibleOnHover: !1,
1000
+ columnGap: "0",
1001
+ methodsRef: g,
1002
+ mobileHoverScrollButtons: !0,
1003
+ noArrows: !0,
1004
+ padding: "0.25rem 0",
1005
+ rightAlignArrows: !0,
1006
+ elementsCount: o == null ? void 0 : o.length,
1007
+ scrollBySize: I ? P : P * 2 + 24,
1008
+ showTimesBtn: !1,
1009
+ title: a,
1010
+ onShowEnd: () => {
1011
+ },
1012
+ arrowsZIndex: 11,
1013
+ showArrows: T,
1014
+ children: /* @__PURE__ */ t(
1015
+ Re,
1016
+ {
1017
+ isLoading: s,
1018
+ itemsCount: 2,
1019
+ keyPrefix: "sales-camp",
1020
+ children: d
1021
+ }
1022
+ )
1023
+ },
1024
+ `scroll-${k}`
971
1025
  )
972
1026
  }
973
- ) }) });
1027
+ ) });
974
1028
  }
975
1029
  );
976
1030
  export {
977
- Ze as default
1031
+ rr as default
978
1032
  };