@lanaco/lnc-react-ui 4.0.170 → 4.0.171

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