@lanaco/lnc-react-ui 4.0.172 → 4.0.174

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 (233) 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/BannerSectionSimple.cjs +1 -1
  14. package/dist/BannerSectionSimple.js +1 -1
  15. package/dist/BannerSectionWithList.cjs +1 -1
  16. package/dist/BannerSectionWithList.js +1 -1
  17. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  18. package/dist/BlogCardsSponsoredSection.js +3 -3
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +1 -1
  21. package/dist/BlogExploreSection.cjs +1 -1
  22. package/dist/BlogExploreSection.js +2 -2
  23. package/dist/BlogListSection.cjs +1 -1
  24. package/dist/BlogListSection.js +3 -3
  25. package/dist/BlogProductCardsSection.cjs +1 -1
  26. package/dist/BlogProductCardsSection.js +1 -1
  27. package/dist/BlogShopCardsSection.cjs +1 -1
  28. package/dist/BlogShopCardsSection.js +1 -1
  29. package/dist/BlogSingleSection.cjs +1 -1
  30. package/dist/BlogSingleSection.js +1 -1
  31. package/dist/BlogsSectionDetailed.cjs +1 -1
  32. package/dist/BlogsSectionDetailed.js +3 -3
  33. package/dist/BlogsSectionLarge.cjs +1 -1
  34. package/dist/BlogsSectionLarge.js +1 -1
  35. package/dist/BlogsSectionSimple.cjs +1 -1
  36. package/dist/BlogsSectionSimple.js +3 -3
  37. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  38. package/dist/BlogsSectionSimpleCentered.js +2 -2
  39. package/dist/BlogsSectionWithFilters.cjs +1 -1
  40. package/dist/BlogsSectionWithFilters.js +4 -4
  41. package/dist/BrandHitsSection.cjs +1 -1
  42. package/dist/BrandHitsSection.js +1 -1
  43. package/dist/Breadcrumbs.cjs +1 -1
  44. package/dist/Breadcrumbs.js +1 -1
  45. package/dist/Button.cjs +1 -1
  46. package/dist/Button.js +1 -1
  47. package/dist/ButtonGroup.cjs +1 -1
  48. package/dist/ButtonGroup.js +1 -1
  49. package/dist/CalorieCalculatorSection.cjs +1 -1
  50. package/dist/CalorieCalculatorSection.js +1 -1
  51. package/dist/{CategorySimpleCard-laAY-RUT.js → CategorySimpleCard-BA0S7TaN.js} +1 -1
  52. package/dist/{CategorySimpleCard-Qe5QStrs.cjs → CategorySimpleCard-BNYjZQTH.cjs} +1 -1
  53. package/dist/CheckBoxInput.cjs +1 -1
  54. package/dist/CheckBoxInput.js +1 -1
  55. package/dist/Chip.cjs +1 -1
  56. package/dist/Chip.js +1 -1
  57. package/dist/ColorInput.cjs +1 -1
  58. package/dist/ColorInput.js +1 -1
  59. package/dist/ConfirmationForm.cjs +1 -1
  60. package/dist/ConfirmationForm.js +1 -1
  61. package/dist/CustomLoanMapSection.cjs +1 -1
  62. package/dist/CustomLoanMapSection.js +1 -1
  63. package/dist/{CustomStyles-ArAVZsIj.js → CustomStyles-6WboE3g5.js} +1 -1
  64. package/dist/{CustomStyles-Q6et9atl.cjs → CustomStyles-C86XQqBE.cjs} +1 -1
  65. package/dist/DateInput.cjs +1 -1
  66. package/dist/DateInput.js +1 -1
  67. package/dist/DecimalInput.cjs +1 -1
  68. package/dist/DecimalInput.js +1 -1
  69. package/dist/DecimalInputV2.cjs +1 -1
  70. package/dist/DecimalInputV2.js +1 -1
  71. package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
  72. package/dist/DetailedProductsInfinitiveSection.js +23 -22
  73. package/dist/DetailedProductsSection.cjs +1 -1
  74. package/dist/DetailedProductsSection.js +4 -4
  75. package/dist/DetailsView.cjs +1 -1
  76. package/dist/DetailsView.js +1 -1
  77. package/dist/DoubleRangeSlider.cjs +1 -1
  78. package/dist/DoubleRangeSlider.js +1 -1
  79. package/dist/DragAndDropFile.cjs +1 -1
  80. package/dist/DragAndDropFile.js +1 -1
  81. package/dist/DragDropFiles.cjs +1 -1
  82. package/dist/DragDropFiles.js +1 -1
  83. package/dist/Drawer.cjs +1 -1
  84. package/dist/Drawer.js +1 -1
  85. package/dist/Dropdown.cjs +1 -1
  86. package/dist/Dropdown.js +2 -2
  87. package/dist/DropdownItem.cjs +1 -1
  88. package/dist/DropdownItem.js +1 -1
  89. package/dist/DropdownLookup.cjs +1 -1
  90. package/dist/DropdownLookup.js +1 -1
  91. package/dist/DropdownMenu.cjs +1 -1
  92. package/dist/DropdownMenu.js +1 -1
  93. package/dist/EditableTable.cjs +1 -1
  94. package/dist/EditableTable.js +1 -1
  95. package/dist/FeedbackSection.cjs +1 -1
  96. package/dist/FeedbackSection.js +1 -1
  97. package/dist/FieldOfInterestsMasonrySection.cjs +1 -1
  98. package/dist/FieldOfInterestsMasonrySection.js +1 -1
  99. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  100. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
  101. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  102. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  103. package/dist/FileInput.cjs +1 -1
  104. package/dist/FileInput.js +1 -1
  105. package/dist/FlexGridItem.cjs +1 -1
  106. package/dist/FlexGridItem.js +1 -1
  107. package/dist/FormField.cjs +1 -1
  108. package/dist/FormField.js +1 -1
  109. package/dist/FormView.cjs +1 -1
  110. package/dist/FormView.js +1 -1
  111. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  112. package/dist/GeneralWithTagsCardsSection.js +1 -1
  113. package/dist/GiftCardsSection.cjs +1 -1
  114. package/dist/GiftCardsSection.js +2 -2
  115. package/dist/Icon.cjs +1 -1
  116. package/dist/Icon.js +1 -1
  117. package/dist/IconButton.cjs +1 -1
  118. package/dist/IconButton.js +1 -1
  119. package/dist/Kanban.cjs +1 -1
  120. package/dist/Kanban.js +1 -1
  121. package/dist/KanbanActionsToolbar.cjs +1 -1
  122. package/dist/KanbanActionsToolbar.js +1 -1
  123. package/dist/KanbanView.cjs +1 -1
  124. package/dist/KanbanView.js +1 -1
  125. package/dist/Link.cjs +1 -1
  126. package/dist/Link.js +1 -1
  127. package/dist/LoanCalculatorSection.cjs +1 -1
  128. package/dist/LoanCalculatorSection.js +1 -1
  129. package/dist/LocationFinderSection.cjs +1 -1
  130. package/dist/LocationFinderSection.js +1 -1
  131. package/dist/LocationSearchSection.cjs +1 -1
  132. package/dist/LocationSearchSection.js +1 -1
  133. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  134. package/dist/MasonryGeneralCardsSection.js +1 -1
  135. package/dist/MenuItem.cjs +1 -1
  136. package/dist/MenuItem.js +1 -1
  137. package/dist/Modal.cjs +1 -1
  138. package/dist/Modal.js +1 -1
  139. package/dist/MultiSelectDropdown.cjs +1 -1
  140. package/dist/MultiSelectDropdown.js +1 -1
  141. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  142. package/dist/MultiSelectDropdownLookup.js +1 -1
  143. package/dist/NestedDropdownItem.cjs +1 -1
  144. package/dist/NestedDropdownItem.js +1 -1
  145. package/dist/NestedMenuItem.cjs +1 -1
  146. package/dist/NestedMenuItem.js +1 -1
  147. package/dist/NotificationContainer.cjs +1 -1
  148. package/dist/NotificationContainer.js +1 -1
  149. package/dist/NotificationMessage.cjs +1 -1
  150. package/dist/NotificationMessage.js +1 -1
  151. package/dist/NumberInput.cjs +1 -1
  152. package/dist/NumberInput.js +1 -1
  153. package/dist/PasswordInput.cjs +1 -1
  154. package/dist/PasswordInput.js +1 -1
  155. package/dist/PopoverContent.cjs +1 -1
  156. package/dist/PopoverContent.js +1 -1
  157. package/dist/ProductsWithBannerSection.cjs +1 -1
  158. package/dist/ProductsWithBannerSection.js +3 -3
  159. package/dist/ProgressBar.cjs +1 -1
  160. package/dist/ProgressBar.js +1 -1
  161. package/dist/QuattroCardsSection.cjs +1 -1
  162. package/dist/QuattroCardsSection.js +1 -1
  163. package/dist/QuizSection.cjs +1 -1
  164. package/dist/QuizSection.js +1 -1
  165. package/dist/RadioInput.cjs +1 -1
  166. package/dist/RadioInput.js +1 -1
  167. package/dist/RangeSlider.cjs +1 -1
  168. package/dist/RangeSlider.js +1 -1
  169. package/dist/ReviewsSection.cjs +1 -1
  170. package/dist/ReviewsSection.js +2 -2
  171. package/dist/SalesCampaignsSection.cjs +25 -25
  172. package/dist/SalesCampaignsSection.js +317 -322
  173. package/dist/Separator.cjs +1 -1
  174. package/dist/Separator.js +1 -1
  175. package/dist/ShopCardsSection.cjs +1 -1
  176. package/dist/ShopCardsSection.js +2 -2
  177. package/dist/Sidebar.cjs +1 -1
  178. package/dist/Sidebar.js +1 -1
  179. package/dist/SimpleCategoriesSection.cjs +1 -1
  180. package/dist/SimpleCategoriesSection.js +3 -3
  181. package/dist/SimpleProductsSection.cjs +1 -1
  182. package/dist/SimpleProductsSection.js +1 -1
  183. package/dist/Spinner.cjs +1 -1
  184. package/dist/Spinner.js +1 -1
  185. package/dist/StatsSection.cjs +1 -1
  186. package/dist/StatsSection.js +1 -1
  187. package/dist/Surface.cjs +1 -1
  188. package/dist/Surface.js +1 -1
  189. package/dist/SwipeableDrawer.cjs +1 -1
  190. package/dist/SwipeableDrawer.js +1 -1
  191. package/dist/TabItem.cjs +1 -1
  192. package/dist/TabItem.js +1 -1
  193. package/dist/Table.cjs +1 -1
  194. package/dist/Table.js +67 -67
  195. package/dist/TableView.cjs +1 -1
  196. package/dist/TableView.js +1 -1
  197. package/dist/TextAreaInput.cjs +1 -1
  198. package/dist/TextAreaInput.js +1 -1
  199. package/dist/TextInput.cjs +1 -1
  200. package/dist/TextInput.js +1 -1
  201. package/dist/ThemeProvider.cjs +1 -1
  202. package/dist/ThemeProvider.js +1 -1
  203. package/dist/TimeInput.cjs +1 -1
  204. package/dist/TimeInput.js +1 -1
  205. package/dist/Toggle.cjs +1 -1
  206. package/dist/Toggle.js +1 -1
  207. package/dist/TreeMenuSeparator.cjs +1 -1
  208. package/dist/TreeMenuSeparator.js +1 -1
  209. package/dist/UploadedFile.cjs +1 -1
  210. package/dist/UploadedFile.js +1 -1
  211. package/dist/UrgentSaleProductsSection.cjs +1 -1
  212. package/dist/UrgentSaleProductsSection.js +1 -1
  213. package/dist/{index-D8KPbcUf.js → index-8quQ_PZS.js} +1 -1
  214. package/dist/{index-BPntOicE.js → index-B8I1mHMA.js} +2 -2
  215. package/dist/{index-CsEmnNEh.cjs → index-BD-qUr5R.cjs} +1 -1
  216. package/dist/{index-BMOLVn8O.js → index-BGiZlEQt.js} +1 -1
  217. package/dist/{index-DFdPWO4O.js → index-Bhfq_YpE.js} +2 -2
  218. package/dist/{index-CfT9e5O9.cjs → index-BnYqZk-h.cjs} +1 -1
  219. package/dist/{index-BvQx3xAm.cjs → index-CSNxZFTX.cjs} +1 -1
  220. package/dist/{index-BbltNcou.js → index-C_NnINik.js} +1 -1
  221. package/dist/{index-ELUMKl0N.cjs → index-D0JDnm9b.cjs} +1 -1
  222. package/dist/{index-D69SKc-n.cjs → index-D55MR8tU.cjs} +1 -1
  223. package/dist/{index-G6ucyCg3.js → index-DMnFESGw.js} +2 -2
  224. package/dist/{index-XYs5Cuh5.js → index-DWLKvVyZ.js} +2 -2
  225. package/dist/{index-C5r__0lD.cjs → index-DoKMLSVY.cjs} +1 -1
  226. package/dist/{index-BueKsXT8.cjs → index-uwl7BjRF.cjs} +1 -1
  227. package/dist/index.cjs +1 -1
  228. package/dist/index.js +1 -1
  229. package/dist/{style-D3pIrH3v.js → style-C7FUSHmS.js} +1 -1
  230. package/dist/{style-Db3VFbfP.cjs → style-CkcozOY6.cjs} +1 -1
  231. package/dist/{utils-DHfRApMf.js → utils-Dc5zIpaz.js} +138 -96
  232. package/dist/{utils-Dl9xPH4c.cjs → utils-RnrgDDZP.cjs} +10 -10
  233. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
- import { jsx as n, jsxs as c, Fragment as Pe } from "react/jsx-runtime";
2
- import { forwardRef as M, useRef as fe, useEffect as ee, Fragment as ze, createElement as Le, useState as K, Suspense as Me, memo as Ue, useMemo as Oe } from "react";
3
- import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { a as re, k as Q, l as Ee } from "./utils-DHfRApMf.js";
5
- import { M as z } from "./consts-BuFChS64.js";
6
- import { m as ue } from "./motion-Ckekul_K.js";
7
- import { P as a } from "./index-CblbdqjE.js";
8
- import xe from "./Icon.js";
9
- import { D as se } from "./ShopAvatar-4-fCYGEc.js";
10
- import je from "./Badge.js";
11
- import { u as we } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
12
- import le from "./IconButton.js";
13
- import { u as be } from "./useDetectMobile-Bkvj0VMa.js";
14
- import { I as Re } from "./index-C0LcDEqa.js";
15
- import { a as L, c as ce, S as de, b as y, d as me } from "./style-CXMUA6cI.js";
16
- const Be = S.div`
1
+ import { jsx as n, jsxs as l, Fragment as Oe } from "react/jsx-runtime";
2
+ import { forwardRef as M, useRef as we, useEffect as ae, Fragment as Me, createElement as je, useState as ne, Suspense as Re, memo as Be, useMemo as We } from "react";
3
+ import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { a as oe, k as te, l as Fe, z as Ge, A as Ve, B as Ae, C as ge } from "./utils-Dc5zIpaz.js";
5
+ import { M as E } from "./consts-BuFChS64.js";
6
+ import { m as ye } from "./motion-Ckekul_K.js";
7
+ import { P as t } from "./index-CblbdqjE.js";
8
+ import Se from "./Icon.js";
9
+ import { D as pe } from "./ShopAvatar-4-fCYGEc.js";
10
+ import He from "./Badge.js";
11
+ import { u as _e } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
12
+ import he from "./IconButton.js";
13
+ import { u as $e } from "./useDetectMobile-Bkvj0VMa.js";
14
+ import { I as Ze } from "./index-C0LcDEqa.js";
15
+ import { a as O, c as ue, S as fe, b as w, d as xe } from "./style-CXMUA6cI.js";
16
+ const qe = y.div`
17
17
  cursor: pointer;
18
18
  display: flex;
19
19
  gap: 1rem;
@@ -21,13 +21,13 @@ const Be = S.div`
21
21
  border-radius: 1.25rem;
22
22
  border: 1px solid var(--gray-200, #e4e9f0);
23
23
 
24
- @media (max-width: ${z + "px"}) {
24
+ @media (max-width: ${E + "px"}) {
25
25
  flex-direction: column;
26
26
  padding: 1rem;
27
27
  gap: 0;
28
28
  }
29
- `, We = S.div`
30
- border-radius: ${(r) => re(r.theme, "edged")};
29
+ `, Xe = y.div`
30
+ border-radius: ${(r) => oe(r.theme, "edged")};
31
31
  height: 13.75rem;
32
32
  width: 13.75rem;
33
33
  min-width: 13.75rem;
@@ -49,7 +49,7 @@ const Be = S.div`
49
49
  transform: scale(1.25);
50
50
  }
51
51
  }
52
- `, Fe = S.div`
52
+ `, Ye = y.div`
53
53
  flex: 1;
54
54
  display: flex;
55
55
  flex-direction: column;
@@ -132,7 +132,7 @@ const Be = S.div`
132
132
  color: var(--gray-600, #676e79);
133
133
  }
134
134
 
135
- @media (max-width: ${z + "px"}) {
135
+ @media (max-width: ${E + "px"}) {
136
136
  padding: 1rem 0 0 0;
137
137
 
138
138
  & .campaign-title-text {
@@ -157,13 +157,13 @@ const Be = S.div`
157
157
  gap: 0.25rem;
158
158
  }
159
159
  }
160
- `, ge = (r = !1, t = !1, o = !1) => `
160
+ `, be = (r = !1, a = !1, o = !1) => `
161
161
  display: flex;
162
- ${t ? "flex-wrap: wrap;" : ""}
163
- ${t ? "" : "flex-wrap: nowrap;"}
162
+ ${a ? "flex-wrap: wrap;" : ""}
163
+ ${a ? "" : "flex-wrap: nowrap;"}
164
164
  ${r ? "align-items: center;" : ""}
165
165
  ${o ? "justify-content: center;" : ""}
166
- `, Ge = S(ue.div)`
166
+ `, Je = y(ye.div)`
167
167
  text-decoration: none;
168
168
  ${(r) => r.hasPermission === !0 && "cursor: pointer"};
169
169
 
@@ -180,14 +180,14 @@ const Be = S.div`
180
180
  text-decoration: none;
181
181
  }
182
182
 
183
- ${ge(!0)}
183
+ ${be(!0)}
184
184
  gap: 0.5rem;
185
185
  padding: 0.5rem;
186
186
  color: var(--gray-950, #14161a);
187
187
  font-weight: 500;
188
188
  font-size: 1rem;
189
189
  line-height: 1.5rem;
190
- border-radius: ${(r) => re(r.theme, "slight")};
190
+ border-radius: ${(r) => oe(r.theme, "slight")};
191
191
  transition: all 0.25s ease;
192
192
  & .description {
193
193
  font-size: 0.85rem;
@@ -196,7 +196,7 @@ const Be = S.div`
196
196
  font-weight: 400;
197
197
  }
198
198
  & .logo-wrapper {
199
- ${ge(!0, !1, !0)}
199
+ ${be(!0, !1, !0)}
200
200
  flex-shrink: 0;
201
201
  border-radius: 999px;
202
202
 
@@ -235,18 +235,18 @@ const Be = S.div`
235
235
  background-color: var(--gray-95080, #14161acc);
236
236
  }
237
237
 
238
- @media (max-width: ${z + "px"}) {
238
+ @media (max-width: ${E + "px"}) {
239
239
  padding: 0;
240
240
  font-size: 0.875rem;
241
241
  }
242
- `, Ve = S.div`
242
+ `, Ke = y.div`
243
243
  position: absolute;
244
244
  top: 0.5rem;
245
245
  ${(r) => r.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
246
246
  display: flex;
247
247
  gap: 0.25rem;
248
- `, Ae = S.div`
249
- border-radius: ${(r) => re(r.theme, r.borderRadius || "slight")};
248
+ `, Qe = y.div`
249
+ border-radius: ${(r) => oe(r.theme, r.borderRadius || "slight")};
250
250
  background-color: ${(r) => r == null ? void 0 : r.color};
251
251
  color: white;
252
252
  height: 1.5rem;
@@ -261,76 +261,76 @@ const Be = S.div`
261
261
  & i {
262
262
  font-size: 0.813rem;
263
263
  }
264
- `, He = M(({ src: r, ...t }, o) => {
265
- const i = fe();
266
- return ee(() => {
264
+ `, er = M(({ src: r, ...a }, o) => {
265
+ const s = we();
266
+ return ae(() => {
267
267
  var g;
268
- const m = (s) => {
269
- s.target.src = se, s.onerror = null;
268
+ const m = (i) => {
269
+ i.target.src = pe, i.onerror = null;
270
270
  };
271
- return (g = i == null ? void 0 : i.current) == null || g.addEventListener("error", m), () => {
272
- var s;
273
- (s = i == null ? void 0 : i.current) == null || s.removeEventListener("error", m);
271
+ return (g = s == null ? void 0 : s.current) == null || g.addEventListener("error", m), () => {
272
+ var i;
273
+ (i = s == null ? void 0 : s.current) == null || i.removeEventListener("error", m);
274
274
  };
275
- }, []), /* @__PURE__ */ n(ze, { ref: o, children: Q(r) ? /* @__PURE__ */ n("img", { ref: i, src: r, ...t }) : /* @__PURE__ */ n("img", { src: se, ...t }) });
276
- }), ve = (r) => {
275
+ }, []), /* @__PURE__ */ n(Me, { ref: o, children: te(r) ? /* @__PURE__ */ n("img", { ref: s, src: r, ...a }) : /* @__PURE__ */ n("img", { src: pe, ...a }) });
276
+ }), ke = (r) => {
277
277
  const {
278
- uuid: t,
278
+ uuid: a,
279
279
  hasPermission: o = !0,
280
- isUser: i,
280
+ isUser: s,
281
281
  image: m,
282
282
  imageComponent: g,
283
- name: s,
284
- notifications: p = 0,
285
- color: l = "primary",
286
- size: w = "large",
287
- style: h,
283
+ name: i,
284
+ notifications: h = 0,
285
+ color: c = "primary",
286
+ size: b = "large",
287
+ style: p,
288
288
  disabled: I,
289
- onClick: f = () => {
289
+ onClick: u = () => {
290
290
  },
291
- isActive: b,
292
- className: C,
293
- shopCategory: N,
291
+ isActive: v,
292
+ className: N,
293
+ shopCategory: T,
294
294
  // new
295
- themeData: _
296
- } = r, u = {
297
- theme: we(),
298
- color: l,
299
- size: w,
300
- style: h,
295
+ themeData: S
296
+ } = r, f = {
297
+ theme: _e(),
298
+ color: c,
299
+ size: b,
300
+ style: p,
301
301
  disabled: I
302
302
  };
303
- return /* @__PURE__ */ Le(
304
- Ge,
303
+ return /* @__PURE__ */ je(
304
+ Je,
305
305
  {
306
306
  onClick: ($) => {
307
- $.stopPropagation(), o === !0 && (f == null || f());
307
+ $.stopPropagation(), o === !0 && (u == null || u());
308
308
  },
309
- ...u,
310
- key: s,
311
- className: `profile-item ${C}`,
309
+ ...f,
310
+ key: i,
311
+ className: `profile-item ${N}`,
312
312
  hasPermission: o,
313
- isActive: b,
314
- themeColor: (_ == null ? void 0 : _.code) || "transparent"
313
+ isActive: v,
314
+ themeColor: (S == null ? void 0 : S.code) || "transparent"
315
315
  },
316
- /* @__PURE__ */ n("div", { className: "logo-wrapper", children: Ee(g) ? g : m }),
317
- /* @__PURE__ */ c("div", { children: [
318
- /* @__PURE__ */ n("div", { className: "name", children: s }),
319
- !i && /* @__PURE__ */ n("div", { className: "description", children: N }),
320
- p > 0 && /* @__PURE__ */ n("div", { className: "notifications-number", children: /* @__PURE__ */ n(je, { className: "badge", color: "danger", size: "small", children: p > 99 ? "99+" : p }) })
316
+ /* @__PURE__ */ n("div", { className: "logo-wrapper", children: Fe(g) ? g : m }),
317
+ /* @__PURE__ */ l("div", { children: [
318
+ /* @__PURE__ */ n("div", { className: "name", children: i }),
319
+ !s && /* @__PURE__ */ n("div", { className: "description", children: T }),
320
+ h > 0 && /* @__PURE__ */ n("div", { className: "notifications-number", children: /* @__PURE__ */ n(He, { className: "badge", color: "danger", size: "small", children: h > 99 ? "99+" : h }) })
321
321
  ] })
322
322
  );
323
323
  };
324
- ve.propTypes = {
325
- id: a.any,
326
- isUserProfile: a.bool,
327
- themeColor: a.string,
328
- image: a.any,
329
- name: a.string,
330
- notifications: a.number,
331
- style: a.object,
332
- className: a.string,
333
- color: a.oneOf([
324
+ ke.propTypes = {
325
+ id: t.any,
326
+ isUserProfile: t.bool,
327
+ themeColor: t.string,
328
+ image: t.any,
329
+ name: t.string,
330
+ notifications: t.number,
331
+ style: t.object,
332
+ className: t.string,
333
+ color: t.oneOf([
334
334
  "primary",
335
335
  "secondary",
336
336
  "success",
@@ -339,126 +339,119 @@ ve.propTypes = {
339
339
  "information",
340
340
  "neutral"
341
341
  ]),
342
- size: a.oneOf(["large"]),
343
- onSelect: a.func,
344
- hasPermission: a.bool
342
+ size: t.oneOf(["large"]),
343
+ onSelect: t.func,
344
+ hasPermission: t.bool
345
345
  };
346
- const pe = (r, t) => {
347
- if (!r || !t) return null;
348
- const o = r.getTime() - t.getTime(), i = 24 * 60 * 60 * 1e3;
349
- return Math.floor(o / i);
350
- }, he = (r) => {
346
+ const ve = (r) => {
351
347
  if (r !== void 0) {
352
- const t = new Date(r), o = t.getFullYear(), i = t.getMonth() + 1;
353
- return `${String(t.getDate()).padStart(2)}. ${i}. ${o}.`;
348
+ const a = new Date(r), o = a.getFullYear(), s = a.getMonth() + 1;
349
+ return `${String(a.getDate()).padStart(2)}. ${s}. ${o}.`;
354
350
  }
355
- }, ye = M((r, t) => {
356
- var ie;
357
- const o = we(), {
351
+ }, Ce = M((r, a) => {
352
+ var me;
353
+ const o = _e(), {
358
354
  // uuid,
359
- shopUuid: i,
355
+ shopUuid: s,
360
356
  title: m = "",
361
357
  // description,
362
358
  // badges,
363
359
  coverPhoto: g,
364
- onSelect: s,
360
+ onSelect: i,
365
361
  // status,
366
- startDate: p,
367
- endDate: l,
368
- salesPackages: w,
369
- shopName: h,
362
+ startDate: h,
363
+ endDate: c,
364
+ salesPackages: b,
365
+ shopName: p,
370
366
  shopCategory: I,
371
- shopImage: f,
372
- shopImageComponent: b,
373
- className: C,
374
- onSelectCard: N = () => {
367
+ shopImage: u,
368
+ shopImageComponent: v,
369
+ className: N,
370
+ onSelectCard: T = () => {
375
371
  },
376
- onSelectShop: _ = () => {
372
+ onSelectShop: S = () => {
377
373
  },
378
374
  upcoming: d = !1,
379
- upcomingCampaignText: u,
375
+ upcomingCampaignText: f,
380
376
  campaignSingleText: $,
381
377
  salesCampaignTypes: k = [],
382
378
  startsInPrefixTextPlural: F,
383
379
  startsinSuffixTextPlural: G,
384
380
  startsInPrefixTextSingular: V,
385
- startsinSuffixTextSingular: ne,
386
- endsInPrefixTextPlural: A,
381
+ startsinSuffixTextSingular: A,
382
+ endsInPrefixTextPlural: ie,
387
383
  endsinSuffixTextPlural: H,
388
- endsInPrefixTextSingular: U,
389
- endsinSuffixTextSingular: q,
390
- themeData: te,
391
- numberOfListings: T,
384
+ endsInPrefixTextSingular: j,
385
+ endsinSuffixTextSingular: Z,
386
+ endedText: q,
387
+ themeData: se,
388
+ numberOfListings: z,
392
389
  numberOfListingsTextSingular: X,
393
- numberOfListingsTextPlural: O,
390
+ numberOfListingsTextPlural: R,
394
391
  metadata: e,
395
392
  ...Y
396
- } = r, Z = fe(), E = p ? new Date(p) <= /* @__PURE__ */ new Date() : !1, $e = pe(
397
- p ? new Date(p) : null,
398
- /* @__PURE__ */ new Date()
399
- ), j = pe(
400
- l ? new Date(l) : null,
401
- /* @__PURE__ */ new Date()
402
- ), ke = j !== null && j <= 2 && j > 0, ae = l ? new Date(l).getTime() : null, Ie = Date.now(), J = ae !== null ? ae - Ie : null, R = J !== null && J > 0 && J < 24 * 60 * 60 * 1e3, oe = (v, W, x, P, D) => x === 1 ? `${v} ${x} ${P}` : `${W} ${x} ${D}`, Ce = () => {
403
- if (!l) return null;
404
- const v = Ne, x = new Date(l).getTime() - v.getTime();
405
- if (x <= 0) return null;
406
- const P = Math.floor(x / (1e3 * 60 * 60)), D = Math.floor(x % (1e3 * 60 * 60) / (1e3 * 60)), Te = Math.floor(x % (1e3 * 60) / 1e3);
407
- return { hours: P, minutes: D, seconds: Te };
408
- }, [Ne, De] = K(/* @__PURE__ */ new Date());
409
- ee(() => {
410
- if (!R) return;
411
- const v = setInterval(() => {
412
- De(/* @__PURE__ */ new Date());
393
+ } = r, J = we(), D = Ge(h, c), K = D !== -1 && (D == null ? void 0 : D.isEnded) === !0, Q = D !== -1 && !K, ee = Ve(h), L = Ae(c), Te = L !== null && L <= 2 && L > 0, le = ge(c), ce = le ? new Date(le) : null, De = /* @__PURE__ */ new Date(), re = ce ? ce.getTime() - De.getTime() : null, B = re !== null && re > 0 && re < 24 * 60 * 60 * 1e3, de = (x, U, C, _, P) => C === 1 ? `${x} ${C} ${_}` : `${U} ${C} ${P}`, Pe = () => {
394
+ if (!c) return null;
395
+ const x = ge(c), U = x ? new Date(x) : null;
396
+ if (!U) return null;
397
+ const C = ze, _ = U.getTime() - C.getTime();
398
+ if (_ <= 0) return null;
399
+ const P = Math.floor(_ / (1e3 * 60 * 60)), Ue = Math.floor(_ % (1e3 * 60 * 60) / (1e3 * 60)), Ee = Math.floor(_ % (1e3 * 60) / 1e3);
400
+ return { hours: P, minutes: Ue, seconds: Ee };
401
+ }, [ze, Le] = ne(/* @__PURE__ */ new Date());
402
+ ae(() => {
403
+ if (!B) return;
404
+ const x = setInterval(() => {
405
+ Le(/* @__PURE__ */ new Date());
413
406
  }, 1e3);
414
- return () => clearInterval(v);
415
- }, [R]);
416
- const B = R ? Ce() : null;
417
- return /* @__PURE__ */ c(
418
- Be,
407
+ return () => clearInterval(x);
408
+ }, [B]);
409
+ const W = B ? Pe() : null;
410
+ return /* @__PURE__ */ l(
411
+ qe,
419
412
  {
420
- ref: Z,
413
+ ref: J,
421
414
  theme: o,
422
- className: C,
415
+ className: N,
423
416
  name: e == null ? void 0 : e.name,
424
417
  "data-accessor": e == null ? void 0 : e.accessor,
425
- onClick: (v) => N(v, Z),
418
+ onClick: (x) => T(x, J),
426
419
  ...Y,
427
420
  children: [
428
- /* @__PURE__ */ c(We, { theme: o, onClick: () => s == null ? void 0 : s(), children: [
421
+ /* @__PURE__ */ l(Xe, { theme: o, onClick: () => i == null ? void 0 : i(), children: [
429
422
  /* @__PURE__ */ n("img", { src: g }),
430
- /* @__PURE__ */ n(Ve, { children: w == null ? void 0 : w.map((v, W) => {
431
- var x, P;
423
+ /* @__PURE__ */ n(Ke, { children: b == null ? void 0 : b.map((x, U) => {
424
+ var C, _;
432
425
  return /* @__PURE__ */ n(
433
- Ae,
426
+ Qe,
434
427
  {
435
- color: (x = k == null ? void 0 : k.find((D) => D.value === v)) == null ? void 0 : x.color,
428
+ color: (C = k == null ? void 0 : k.find((P) => P.value === x)) == null ? void 0 : C.color,
436
429
  theme: o,
437
430
  children: /* @__PURE__ */ n(
438
- xe,
431
+ Se,
439
432
  {
440
- icon: (P = k == null ? void 0 : k.find((D) => D.value === v)) == null ? void 0 : P.icon
433
+ icon: (_ = k == null ? void 0 : k.find((P) => P.value === x)) == null ? void 0 : _.icon
441
434
  }
442
435
  )
443
436
  },
444
- `package__${W}`
437
+ `package__${U}`
445
438
  );
446
439
  }) })
447
440
  ] }),
448
- /* @__PURE__ */ c(Fe, { theme: o, children: [
449
- /* @__PURE__ */ n("div", { className: "text-block-wrapper", children: /* @__PURE__ */ c("div", { className: "title-block-wrapper", children: [
450
- /* @__PURE__ */ n("div", { className: "campaign-title", children: (ie = d ? u : $) == null ? void 0 : ie.toUpperCase() }),
441
+ /* @__PURE__ */ l(Ye, { theme: o, children: [
442
+ /* @__PURE__ */ n("div", { className: "text-block-wrapper", children: /* @__PURE__ */ l("div", { className: "title-block-wrapper", children: [
443
+ /* @__PURE__ */ n("div", { className: "campaign-title", children: (me = d ? f : $) == null ? void 0 : me.toUpperCase() }),
451
444
  /* @__PURE__ */ n("div", { className: "campaign-title-text", children: m }),
452
- l && p && /* @__PURE__ */ c("div", { className: "campaign-date", children: [
453
- he(p),
445
+ c && h && /* @__PURE__ */ l("div", { className: "campaign-date", children: [
446
+ ve(h),
454
447
  " - ",
455
- he(l)
448
+ ve(c)
456
449
  ] }),
457
- /* @__PURE__ */ c("div", { className: "timestamp-text", children: [
458
- T > 0 && /* @__PURE__ */ c("span", { className: "listings-text", children: [
459
- T,
450
+ /* @__PURE__ */ l("div", { className: "timestamp-text", children: [
451
+ z > 0 && /* @__PURE__ */ l("span", { className: "listings-text", children: [
452
+ z,
460
453
  " ",
461
- T === 1 ? X : O,
454
+ z === 1 ? X : R,
462
455
  " ",
463
456
  "∙",
464
457
  " "
@@ -466,44 +459,44 @@ const pe = (r, t) => {
466
459
  /* @__PURE__ */ n(
467
460
  "span",
468
461
  {
469
- className: `duration-text ${ke ? "urgent" : ""} ${E ? "" : "starts-in"}`,
470
- children: R && B ? /* @__PURE__ */ c("div", { className: "countdown-timer", children: [
471
- U,
462
+ className: `duration-text ${Te ? "urgent" : ""} ${Q ? "" : "starts-in"}`,
463
+ children: B && W ? /* @__PURE__ */ l("div", { className: "countdown-timer", children: [
464
+ j,
472
465
  " ",
473
- B.hours.toString().padStart(2, "0"),
466
+ W.hours.toString().padStart(2, "0"),
474
467
  ":",
475
- B.minutes.toString().padStart(2, "0"),
468
+ W.minutes.toString().padStart(2, "0"),
476
469
  ":",
477
- B.seconds.toString().padStart(2, "0")
478
- ] }) : E ? oe(
479
- U,
480
- A,
470
+ W.seconds.toString().padStart(2, "0")
471
+ ] }) : Q && !K && L !== null && L > 0 ? de(
481
472
  j,
482
- q,
473
+ ie,
474
+ L,
475
+ Z,
483
476
  H
484
- ) : oe(
477
+ ) : K ? q || "Završena" : !Q && ee !== null && ee > 0 ? de(
485
478
  V,
486
479
  F,
487
- $e,
488
- ne,
480
+ ee,
481
+ A,
489
482
  G
490
- )
483
+ ) : null
491
484
  }
492
485
  )
493
486
  ] })
494
487
  ] }) }),
495
488
  /* @__PURE__ */ n(
496
- ve,
489
+ ke,
497
490
  {
498
491
  hasPermission: !0,
499
- image: /* @__PURE__ */ n(He, { src: f }),
500
- imageComponent: b,
501
- themeData: te,
492
+ image: /* @__PURE__ */ n(er, { src: u }),
493
+ imageComponent: v,
494
+ themeData: se,
502
495
  isActive: !0,
503
496
  isUser: !1,
504
- name: h,
497
+ name: p,
505
498
  shopCategory: I,
506
- onClick: () => _(i)
499
+ onClick: () => S(s)
507
500
  }
508
501
  )
509
502
  ] })
@@ -511,13 +504,13 @@ const pe = (r, t) => {
511
504
  }
512
505
  );
513
506
  });
514
- ye.propTypes = {
515
- title: a.oneOfType([a.string, a.element]),
516
- numberOfListings: a.number,
517
- dropdown: a.any,
518
- color: a.string
507
+ Ce.propTypes = {
508
+ title: t.oneOfType([t.string, t.element]),
509
+ numberOfListings: t.number,
510
+ dropdown: t.any,
511
+ color: t.string
519
512
  };
520
- const qe = S.div`
513
+ const rr = y.div`
521
514
  margin: 0 auto;
522
515
  display: flex;
523
516
  flex-direction: column;
@@ -556,7 +549,7 @@ const qe = S.div`
556
549
  right: 0;
557
550
  }
558
551
 
559
- @media (max-width: ${z + "px"}) {
552
+ @media (max-width: ${E + "px"}) {
560
553
  gap: 1.25rem;
561
554
 
562
555
  & .scrollable-section__header {
@@ -568,13 +561,13 @@ const qe = S.div`
568
561
  }
569
562
  }
570
563
  }
571
- `, Xe = S(ue.div)`
564
+ `, nr = y(ye.div)`
572
565
  display: grid;
573
566
  grid-template-columns: repeat(${(r) => r == null ? void 0 : r.numOfColumns}, 1fr);
574
567
  gap: 1.5rem;
575
568
  width: 100%;
576
569
 
577
- @media (max-width: ${z + "px"}) {
570
+ @media (max-width: ${E + "px"}) {
578
571
  display: flex;
579
572
  flex-wrap: nowrap;
580
573
  overflow-x: scroll;
@@ -596,37 +589,37 @@ const qe = S.div`
596
589
  /* Safari and Chrome */
597
590
  }
598
591
  }
599
- `, Se = M(
592
+ `, Ie = M(
600
593
  ({
601
594
  icon: r,
602
- title: t,
595
+ title: a,
603
596
  numOfSlides: o = 2,
604
- showNavigation: i = !0,
597
+ showNavigation: s = !0,
605
598
  hasNextPage: m = !1,
606
599
  handleFetchNextPage: g = () => {
607
600
  },
608
- children: s
609
- }, p) => {
610
- const [l, w] = K(0), [h, I] = K(1), f = be(), b = (s == null ? void 0 : s.length) ?? 1;
611
- ee(() => {
601
+ children: i
602
+ }, h) => {
603
+ const [c, b] = ne(0), [p, I] = ne(1), u = $e(), v = (i == null ? void 0 : i.length) ?? 1;
604
+ ae(() => {
612
605
  const d = () => {
613
606
  I(o);
614
607
  };
615
608
  return window.addEventListener("resize", d), d(), () => window.removeEventListener("resize", d);
616
609
  }, []);
617
- const C = f ? s : s == null ? void 0 : s.slice(l, l + h), N = (d) => {
610
+ const N = u ? i : i == null ? void 0 : i.slice(c, c + p), T = (d) => {
618
611
  var $;
619
612
  ($ = d == null ? void 0 : d.target) == null || $.blur();
620
- const u = l + h;
621
- u < b && w(u), u + h >= b && m && g();
622
- }, _ = (d) => {
623
- var u;
624
- (u = d == null ? void 0 : d.target) == null || u.blur(), l - h >= 0 && w(l - h);
613
+ const f = c + p;
614
+ f < v && b(f), f + p >= v && m && g();
615
+ }, S = (d) => {
616
+ var f;
617
+ (f = d == null ? void 0 : d.target) == null || f.blur(), c - p >= 0 && b(c - p);
625
618
  };
626
- return /* @__PURE__ */ c(qe, { ref: p, children: [
627
- /* @__PURE__ */ n("div", { className: "scrollable-section__header", children: /* @__PURE__ */ c("div", { className: "scrollable-section__title", children: [
628
- Q(r) && /* @__PURE__ */ n(
629
- xe,
619
+ return /* @__PURE__ */ l(rr, { ref: h, children: [
620
+ /* @__PURE__ */ n("div", { className: "scrollable-section__header", children: /* @__PURE__ */ l("div", { className: "scrollable-section__title", children: [
621
+ te(r) && /* @__PURE__ */ n(
622
+ Se,
630
623
  {
631
624
  icon: r,
632
625
  color: "primary",
@@ -634,16 +627,16 @@ const qe = S.div`
634
627
  className: "title__icon"
635
628
  }
636
629
  ),
637
- Q(t) && /* @__PURE__ */ c("div", { className: "title__text", children: [
630
+ te(a) && /* @__PURE__ */ l("div", { className: "title__text", children: [
638
631
  " ",
639
- t
632
+ a
640
633
  ] })
641
634
  ] }) }),
642
- /* @__PURE__ */ c(
643
- Xe,
635
+ /* @__PURE__ */ l(
636
+ nr,
644
637
  {
645
638
  numOfColumns: o,
646
- ...!f && {
639
+ ...!u && {
647
640
  animate: {
648
641
  x: 0,
649
642
  opacity: 1
@@ -654,50 +647,50 @@ const qe = S.div`
654
647
  }
655
648
  },
656
649
  children: [
657
- C,
658
- f && m && /* @__PURE__ */ n(Re, { onIsVisible: g })
650
+ N,
651
+ u && m && /* @__PURE__ */ n(Ze, { onIsVisible: g })
659
652
  ]
660
653
  },
661
- `scrollable-section__content-${l}`
654
+ `scrollable-section__content-${c}`
662
655
  ),
663
- i && b > h && !f && /* @__PURE__ */ c("div", { className: "scrollable-section__navigation", children: [
656
+ s && v > p && !u && /* @__PURE__ */ l("div", { className: "scrollable-section__navigation", children: [
664
657
  /* @__PURE__ */ n(
665
- le,
658
+ he,
666
659
  {
667
660
  icon: "angle-left",
668
661
  borderRadius: "curved",
669
662
  btnType: "tinted",
670
663
  color: "neutral",
671
664
  className: "navigation__arrow",
672
- disabled: l === 0,
673
- onClick: _
665
+ disabled: c === 0,
666
+ onClick: S
674
667
  }
675
668
  ),
676
669
  /* @__PURE__ */ n(
677
- le,
670
+ he,
678
671
  {
679
672
  icon: "angle-right",
680
673
  borderRadius: "curved",
681
674
  btnType: "tinted",
682
675
  color: "neutral",
683
676
  className: "navigation__arrow",
684
- disabled: l + h >= b,
685
- onClick: N
677
+ disabled: c + p >= v,
678
+ onClick: T
686
679
  }
687
680
  )
688
681
  ] })
689
682
  ] });
690
683
  }
691
684
  );
692
- Se.propTypes = {
693
- icon: a.string,
694
- title: a.string,
695
- numOfSlides: a.number,
696
- numOfSlidesForMobile: a.number,
697
- handleFetchNextPage: a.func,
698
- showNavigation: a.bool
685
+ Ie.propTypes = {
686
+ icon: t.string,
687
+ title: t.string,
688
+ numOfSlides: t.number,
689
+ numOfSlidesForMobile: t.number,
690
+ handleFetchNextPage: t.func,
691
+ showNavigation: t.bool
699
692
  };
700
- const Ye = S.div`
693
+ const tr = y.div`
701
694
  display: flex;
702
695
  flex: 1;
703
696
  width: 100%;
@@ -714,34 +707,34 @@ const Ye = S.div`
714
707
  border-radius: 1.25rem;
715
708
  object-fit: cover;
716
709
  }
717
- `, _e = M(
710
+ `, Ne = M(
718
711
  ({
719
712
  sectionName: r,
720
- imageUrl: t,
713
+ imageUrl: a,
721
714
  maxHeight: o = "16.25rem",
722
- className: i = "",
715
+ className: s = "",
723
716
  handleClick: m = () => {
724
717
  }
725
718
  }, g) => /* @__PURE__ */ n(
726
- Ye,
719
+ tr,
727
720
  {
728
721
  ref: g,
729
722
  maxHeight: o,
730
723
  onClick: m,
731
- className: `itemless-banner ${i}`,
732
- children: /* @__PURE__ */ n("img", { src: t, alt: `itemless-banner__${r}` })
724
+ className: `itemless-banner ${s}`,
725
+ children: /* @__PURE__ */ n("img", { src: a, alt: `itemless-banner__${r}` })
733
726
  }
734
727
  )
735
728
  );
736
- _e.propTypes = {
737
- sectionName: a.string,
738
- imageUrl: a.string,
739
- maxHeight: a.string,
740
- className: a.string,
741
- handleClick: a.func
729
+ Ne.propTypes = {
730
+ sectionName: t.string,
731
+ imageUrl: t.string,
732
+ maxHeight: t.string,
733
+ className: t.string,
734
+ handleClick: t.func
742
735
  };
743
- const Ze = S(L)`
744
- @media (max-width: ${z + "px"}) {
736
+ const ar = y(O)`
737
+ @media (max-width: ${E + "px"}) {
745
738
  flex-direction: column;
746
739
 
747
740
  & .skeleton__image {
@@ -755,10 +748,10 @@ const Ze = S(L)`
755
748
  }
756
749
  }
757
750
  }
758
- `, Je = ({ keyPrefix: r }) => /* @__PURE__ */ c(Ze, { children: [
759
- /* @__PURE__ */ c(L, { children: [
751
+ `, or = ({ keyPrefix: r }) => /* @__PURE__ */ l(ar, { children: [
752
+ /* @__PURE__ */ l(O, { children: [
760
753
  /* @__PURE__ */ n(
761
- ce,
754
+ ue,
762
755
  {
763
756
  width: "13.75rem",
764
757
  height: "13.75rem",
@@ -766,20 +759,20 @@ const Ze = S(L)`
766
759
  },
767
760
  `${r}-1`
768
761
  ),
769
- /* @__PURE__ */ c(de, { noGradient: !0, children: [
770
- /* @__PURE__ */ n(y, { height: "1rem" }),
771
- /* @__PURE__ */ n(y, { height: "1.75rem" }),
772
- /* @__PURE__ */ n(y, { height: "1.25rem" }),
773
- /* @__PURE__ */ n(y, { height: "2rem" }),
774
- /* @__PURE__ */ c(L, { alignItems: "center", noGradient: !0, children: [
775
- /* @__PURE__ */ n(me, { width: "2.5rem", height: "2.5rem" }),
776
- /* @__PURE__ */ n(y, { width: "5rem", height: "1.25rem" })
762
+ /* @__PURE__ */ l(fe, { noGradient: !0, children: [
763
+ /* @__PURE__ */ n(w, { height: "1rem" }),
764
+ /* @__PURE__ */ n(w, { height: "1.75rem" }),
765
+ /* @__PURE__ */ n(w, { height: "1.25rem" }),
766
+ /* @__PURE__ */ n(w, { height: "2rem" }),
767
+ /* @__PURE__ */ l(O, { alignItems: "center", noGradient: !0, children: [
768
+ /* @__PURE__ */ n(xe, { width: "2.5rem", height: "2.5rem" }),
769
+ /* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
777
770
  ] })
778
771
  ] })
779
772
  ] }),
780
- /* @__PURE__ */ c(L, { noGradient: !0, children: [
773
+ /* @__PURE__ */ l(O, { noGradient: !0, children: [
781
774
  /* @__PURE__ */ n(
782
- ce,
775
+ ue,
783
776
  {
784
777
  width: "13.75rem",
785
778
  height: "13.75rem",
@@ -787,65 +780,66 @@ const Ze = S(L)`
787
780
  },
788
781
  `${r}-2`
789
782
  ),
790
- /* @__PURE__ */ c(de, { noGradient: !0, children: [
791
- /* @__PURE__ */ n(y, { height: "1rem" }),
792
- /* @__PURE__ */ n(y, { height: "1.75rem" }),
793
- /* @__PURE__ */ n(y, { height: "1.25rem" }),
794
- /* @__PURE__ */ n(y, { height: "2rem" }),
795
- /* @__PURE__ */ c(L, { alignItems: "center", noGradient: !0, children: [
796
- /* @__PURE__ */ n(me, { width: "2.5rem", height: "2.5rem" }),
797
- /* @__PURE__ */ n(y, { width: "5rem", height: "1.25rem" })
783
+ /* @__PURE__ */ l(fe, { noGradient: !0, children: [
784
+ /* @__PURE__ */ n(w, { height: "1rem" }),
785
+ /* @__PURE__ */ n(w, { height: "1.75rem" }),
786
+ /* @__PURE__ */ n(w, { height: "1.25rem" }),
787
+ /* @__PURE__ */ n(w, { height: "2rem" }),
788
+ /* @__PURE__ */ l(O, { alignItems: "center", noGradient: !0, children: [
789
+ /* @__PURE__ */ n(xe, { width: "2.5rem", height: "2.5rem" }),
790
+ /* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
798
791
  ] })
799
792
  ] })
800
793
  ] })
801
- ] }), Ke = ({
794
+ ] }), ir = ({
802
795
  keyPrefix: r,
803
- isLoading: t = !1,
804
- fallbackComponent: o = /* @__PURE__ */ n(Pe, {}),
805
- children: i
806
- }) => /* @__PURE__ */ n(Me, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ n(Je, { keyPrefix: r }) : i }), Qe = Ue(ye), fr = M(
796
+ isLoading: a = !1,
797
+ fallbackComponent: o = /* @__PURE__ */ n(Oe, {}),
798
+ children: s
799
+ }) => /* @__PURE__ */ n(Re, { fallbackComponent: o, children: a === !0 ? /* @__PURE__ */ n(or, { keyPrefix: r }) : s }), sr = Be(Ce), _r = M(
807
800
  ({
808
801
  sellerType: r = "Shop",
809
- items: t = [],
802
+ items: a = [],
810
803
  title: o,
811
- icon: i,
804
+ icon: s,
812
805
  isLoading: m,
813
806
  onSelectCard: g = () => {
814
807
  },
815
- onSelectShop: s = () => {
808
+ onSelectShop: i = () => {
816
809
  },
817
- getImage: p = () => {
810
+ getImage: h = () => {
818
811
  },
819
- campaignSingleText: l,
820
- upcomingCampaignText: w,
821
- salesCampaignTypes: h = [],
812
+ campaignSingleText: c,
813
+ upcomingCampaignText: b,
814
+ salesCampaignTypes: p = [],
822
815
  startsInPrefixTextPlural: I,
823
- startsinSuffixTextPlural: f,
824
- startsInPrefixTextSingular: b,
825
- startsinSuffixTextSingular: C,
826
- endsInPrefixTextPlural: N,
827
- endsinSuffixTextPlural: _,
816
+ startsinSuffixTextPlural: u,
817
+ startsInPrefixTextSingular: v,
818
+ startsinSuffixTextSingular: N,
819
+ endsInPrefixTextPlural: T,
820
+ endsinSuffixTextPlural: S,
828
821
  endsInPrefixTextSingular: d,
829
- endsinSuffixTextSingular: u,
830
- numOfSlides: $ = 2,
831
- showNavigation: k = !0,
832
- numberOfListingsTextSingular: F,
833
- numberOfListingsTextPlural: G,
834
- itemlessImageUrl: V,
835
- itemlessLink: ne,
836
- handleItemlessLink: A = () => {
822
+ endsinSuffixTextSingular: f,
823
+ endedText: $,
824
+ numOfSlides: k = 2,
825
+ showNavigation: F = !0,
826
+ numberOfListingsTextSingular: G,
827
+ numberOfListingsTextPlural: V,
828
+ itemlessImageUrl: A,
829
+ itemlessLink: ie,
830
+ handleItemlessLink: H = () => {
837
831
  },
838
- componentName: H,
839
- hasNextPage: U = !1,
832
+ componentName: j,
833
+ hasNextPage: Z = !1,
840
834
  handleFetchNextPage: q = () => {
841
835
  }
842
- }, te) => {
843
- const T = be(), X = Oe(() => {
844
- let O = t == null ? void 0 : t.map((e, Y) => /* @__PURE__ */ n(
845
- Qe,
836
+ }, se) => {
837
+ const z = $e(), X = We(() => {
838
+ let R = a == null ? void 0 : a.map((e, Y) => /* @__PURE__ */ n(
839
+ sr,
846
840
  {
847
841
  className: "campaign-item",
848
- coverPhoto: p(
842
+ coverPhoto: h(
849
843
  e == null ? void 0 : e.coverPhoto,
850
844
  (e == null ? void 0 : e.uuid) || (e == null ? void 0 : e.campaignUuid)
851
845
  ),
@@ -861,63 +855,64 @@ const Ze = S(L)`
861
855
  startDate: e == null ? void 0 : e.startDate,
862
856
  title: e == null ? void 0 : e.name,
863
857
  uuid: e == null ? void 0 : e.campaignUuid,
864
- onSelectCard: (Z, E) => g(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, E),
865
- onSelectShop: () => s(e == null ? void 0 : e.shopUuid),
866
- campaignSingleText: l,
867
- upcomingCampaignText: w,
858
+ onSelectCard: (J, D) => g(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, D),
859
+ onSelectShop: () => i(e == null ? void 0 : e.shopUuid),
860
+ campaignSingleText: c,
861
+ upcomingCampaignText: b,
868
862
  upcoming: e == null ? void 0 : e.upcoming,
869
- salesCampaignTypes: h,
863
+ salesCampaignTypes: p,
870
864
  startsInPrefixTextPlural: I,
871
- startsinSuffixTextPlural: f,
872
- startsInPrefixTextSingular: b,
873
- startsinSuffixTextSingular: C,
874
- endsInPrefixTextPlural: N,
875
- endsinSuffixTextPlural: _,
865
+ startsinSuffixTextPlural: u,
866
+ startsInPrefixTextSingular: v,
867
+ startsinSuffixTextSingular: N,
868
+ endsInPrefixTextPlural: T,
869
+ endsinSuffixTextPlural: S,
876
870
  endsInPrefixTextSingular: d,
877
- endsinSuffixTextSingular: u,
871
+ endsinSuffixTextSingular: f,
872
+ endedText: $,
878
873
  themeData: e == null ? void 0 : e.themeData,
879
874
  numberOfListings: e == null ? void 0 : e.numberOfListings,
880
- numberOfListingsTextSingular: F,
881
- numberOfListingsTextPlural: G,
882
- metadata: { name: H, accessor: e == null ? void 0 : e.accessor }
875
+ numberOfListingsTextSingular: G,
876
+ numberOfListingsTextPlural: V,
877
+ metadata: { name: j, accessor: e == null ? void 0 : e.accessor }
883
878
  },
884
879
  `campaign__item__${Y}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
885
880
  ));
886
- return (t == null ? void 0 : t.length) < 2 && !T ? [
887
- ...O,
881
+ return (a == null ? void 0 : a.length) < 2 && !z ? [
882
+ ...R,
888
883
  /* @__PURE__ */ n(
889
- _e,
884
+ Ne,
890
885
  {
891
- imageUrl: V,
886
+ imageUrl: A,
892
887
  className: "campaign-item",
893
- handleClick: A
888
+ handleClick: H
894
889
  },
895
890
  "itemless-campaign-section-banner"
896
891
  )
897
- ] : O;
898
- }, [t]);
892
+ ] : R;
893
+ }, [a]);
899
894
  return /* @__PURE__ */ n(
900
- Ke,
895
+ ir,
901
896
  {
902
897
  isLoading: m,
903
898
  keyPrefix: "sales-campaign-skeleton",
904
899
  children: /* @__PURE__ */ n(
905
- Se,
900
+ Ie,
906
901
  {
907
- icon: i,
902
+ icon: s,
908
903
  title: o,
909
- numOfSlides: $,
910
- showNavigation: k,
911
- hasNextPage: U,
904
+ numOfSlides: k,
905
+ showNavigation: F,
906
+ hasNextPage: Z,
912
907
  handleFetchNextPage: q,
913
908
  children: X
914
909
  },
915
- `sales-campaign-section__${T}`
910
+ `sales-campaign-section__${z}`
916
911
  )
917
912
  }
918
913
  );
919
914
  }
920
915
  );
921
916
  export {
922
- fr as default
917
+ _r as default
923
918
  };