@lanaco/lnc-react-ui 4.0.125 → 4.0.127

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 (242) 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 +1 -1
  14. package/dist/BannerSectionCarousel.js +2 -0
  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 +319 -0
  22. package/dist/BlogExploreSection.js +642 -0
  23. package/dist/BlogListSection.cjs +10 -7
  24. package/dist/BlogListSection.js +32 -29
  25. package/dist/BlogProductCardsSection.cjs +1 -1
  26. package/dist/BlogProductCardsSection.js +32 -26
  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 +2 -2
  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 +2 -2
  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/CheckBoxInput.cjs +1 -1
  52. package/dist/CheckBoxInput.js +1 -1
  53. package/dist/Chip.cjs +1 -1
  54. package/dist/Chip.js +1 -1
  55. package/dist/ColorInput.cjs +1 -1
  56. package/dist/ColorInput.js +1 -1
  57. package/dist/ConfirmationForm.cjs +1 -1
  58. package/dist/ConfirmationForm.js +1 -1
  59. package/dist/CustomLoanMapSection.cjs +1 -1
  60. package/dist/CustomLoanMapSection.js +1 -1
  61. package/dist/{CustomStyles-DpKzWczC.js → CustomStyles-Dd6IDcq_.js} +1 -1
  62. package/dist/{CustomStyles-D3JePSNK.cjs → CustomStyles-K9rgl5Vl.cjs} +1 -1
  63. package/dist/DateInput.cjs +1 -1
  64. package/dist/DateInput.js +1 -1
  65. package/dist/DecimalInput.cjs +1 -1
  66. package/dist/DecimalInput.js +1 -1
  67. package/dist/DecimalInputV2.cjs +1 -1
  68. package/dist/DecimalInputV2.js +1 -1
  69. package/dist/DetailedProductsSection.cjs +1 -1
  70. package/dist/DetailedProductsSection.js +4 -4
  71. package/dist/DetailsView.cjs +1 -1
  72. package/dist/DetailsView.js +1 -1
  73. package/dist/DoubleRangeSlider.cjs +1 -1
  74. package/dist/DoubleRangeSlider.js +1 -1
  75. package/dist/DragAndDropFile.cjs +1 -1
  76. package/dist/DragAndDropFile.js +1 -1
  77. package/dist/DragDropFiles.cjs +1 -1
  78. package/dist/DragDropFiles.js +1 -1
  79. package/dist/Drawer.cjs +1 -1
  80. package/dist/Drawer.js +1 -1
  81. package/dist/Dropdown.cjs +1 -1
  82. package/dist/Dropdown.js +2 -2
  83. package/dist/DropdownItem.cjs +1 -1
  84. package/dist/DropdownItem.js +1 -1
  85. package/dist/DropdownLookup.cjs +1 -1
  86. package/dist/DropdownLookup.js +1 -1
  87. package/dist/DropdownMenu.cjs +1 -1
  88. package/dist/DropdownMenu.js +1 -1
  89. package/dist/EditableTable.cjs +1 -1
  90. package/dist/EditableTable.js +1 -1
  91. package/dist/FaqSection.cjs +3 -175
  92. package/dist/FaqSection.js +121 -314
  93. package/dist/FeedbackSection.cjs +1 -1
  94. package/dist/FeedbackSection.js +1 -1
  95. package/dist/FieldOfInterestsMasonrySection.cjs +1 -1
  96. package/dist/FieldOfInterestsMasonrySection.js +1 -1
  97. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  98. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
  99. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  100. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  101. package/dist/FileInput.cjs +1 -1
  102. package/dist/FileInput.js +1 -1
  103. package/dist/FlexGridItem.cjs +1 -1
  104. package/dist/FlexGridItem.js +1 -1
  105. package/dist/FormField.cjs +1 -1
  106. package/dist/FormField.js +1 -1
  107. package/dist/FormView.cjs +1 -1
  108. package/dist/FormView.js +1 -1
  109. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  110. package/dist/GeneralWithTagsCardsSection.js +1 -1
  111. package/dist/GiftCardsSection.cjs +1 -1
  112. package/dist/GiftCardsSection.js +2 -2
  113. package/dist/Icon.cjs +1 -1
  114. package/dist/Icon.js +1 -1
  115. package/dist/IconButton.cjs +1 -1
  116. package/dist/IconButton.js +1 -1
  117. package/dist/Kanban.cjs +1 -1
  118. package/dist/Kanban.js +1 -1
  119. package/dist/KanbanActionsToolbar.cjs +1 -1
  120. package/dist/KanbanActionsToolbar.js +1 -1
  121. package/dist/KanbanView.cjs +1 -1
  122. package/dist/KanbanView.js +1 -1
  123. package/dist/Link.cjs +1 -1
  124. package/dist/Link.js +1 -1
  125. package/dist/LoanCalculatorSection.cjs +1 -1
  126. package/dist/LoanCalculatorSection.js +1 -1
  127. package/dist/LocationFinderSection.cjs +1 -1
  128. package/dist/LocationFinderSection.js +1 -1
  129. package/dist/LocationSearchSection.cjs +1 -1
  130. package/dist/LocationSearchSection.js +1 -1
  131. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  132. package/dist/MasonryGeneralCardsSection.js +1 -1
  133. package/dist/MenuItem.cjs +1 -1
  134. package/dist/MenuItem.js +1 -1
  135. package/dist/Modal.cjs +1 -1
  136. package/dist/Modal.js +1 -1
  137. package/dist/MultiSelectDropdown.cjs +1 -1
  138. package/dist/MultiSelectDropdown.js +1 -1
  139. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  140. package/dist/MultiSelectDropdownLookup.js +1 -1
  141. package/dist/NestedDropdownItem.cjs +1 -1
  142. package/dist/NestedDropdownItem.js +1 -1
  143. package/dist/NestedMenuItem.cjs +1 -1
  144. package/dist/NestedMenuItem.js +1 -1
  145. package/dist/NotificationContainer.cjs +1 -1
  146. package/dist/NotificationContainer.js +1 -1
  147. package/dist/NotificationMessage.cjs +1 -1
  148. package/dist/NotificationMessage.js +1 -1
  149. package/dist/NumberInput.cjs +1 -1
  150. package/dist/NumberInput.js +1 -1
  151. package/dist/PasswordInput.cjs +1 -1
  152. package/dist/PasswordInput.js +1 -1
  153. package/dist/PopoverContent.cjs +1 -1
  154. package/dist/PopoverContent.js +1 -1
  155. package/dist/ProductsWithBannerSection.cjs +1 -1
  156. package/dist/ProductsWithBannerSection.js +3 -3
  157. package/dist/ProgressBar.cjs +1 -1
  158. package/dist/ProgressBar.js +1 -1
  159. package/dist/QuattroCardsSection.cjs +1 -1
  160. package/dist/QuattroCardsSection.js +1 -1
  161. package/dist/QuizSection.cjs +1 -1
  162. package/dist/QuizSection.js +1 -1
  163. package/dist/RadioInput.cjs +1 -1
  164. package/dist/RadioInput.js +1 -1
  165. package/dist/RangeSlider.cjs +1 -1
  166. package/dist/RangeSlider.js +1 -1
  167. package/dist/ReviewsSection.cjs +1 -1
  168. package/dist/ReviewsSection.js +2 -2
  169. package/dist/SalesCampaignsSection.cjs +39 -22
  170. package/dist/SalesCampaignsSection.js +307 -248
  171. package/dist/Separator.cjs +1 -1
  172. package/dist/Separator.js +1 -1
  173. package/dist/ShopCardsSection.cjs +1 -1
  174. package/dist/ShopCardsSection.js +2 -2
  175. package/dist/Sidebar.cjs +1 -1
  176. package/dist/Sidebar.js +1 -1
  177. package/dist/SimpleCategoriesSection.cjs +1 -1
  178. package/dist/SimpleCategoriesSection.js +3 -3
  179. package/dist/SimpleProductsSection.cjs +1 -1
  180. package/dist/SimpleProductsSection.js +2 -2
  181. package/dist/Spinner.cjs +1 -1
  182. package/dist/Spinner.js +1 -1
  183. package/dist/StatsSection.cjs +1 -1
  184. package/dist/StatsSection.js +1 -1
  185. package/dist/Surface.cjs +1 -1
  186. package/dist/Surface.js +1 -1
  187. package/dist/SwipeableDrawer.cjs +1 -1
  188. package/dist/SwipeableDrawer.js +1 -1
  189. package/dist/TabItem.cjs +1 -1
  190. package/dist/TabItem.js +1 -1
  191. package/dist/Table.cjs +1 -1
  192. package/dist/Table.js +1 -1
  193. package/dist/TableView.cjs +1 -1
  194. package/dist/TableView.js +1 -1
  195. package/dist/TextAreaInput.cjs +1 -1
  196. package/dist/TextAreaInput.js +1 -1
  197. package/dist/TextInput.cjs +1 -1
  198. package/dist/TextInput.js +1 -1
  199. package/dist/ThemeProvider.cjs +1 -1
  200. package/dist/ThemeProvider.js +1 -1
  201. package/dist/TimeInput.cjs +1 -1
  202. package/dist/TimeInput.js +1 -1
  203. package/dist/Toggle.cjs +1 -1
  204. package/dist/Toggle.js +1 -1
  205. package/dist/TreeMenuSeparator.cjs +1 -1
  206. package/dist/TreeMenuSeparator.js +1 -1
  207. package/dist/UploadedFile.cjs +1 -1
  208. package/dist/UploadedFile.js +1 -1
  209. package/dist/UrgentSaleProductsSection.cjs +1 -1
  210. package/dist/UrgentSaleProductsSection.js +1 -1
  211. package/dist/{index-YGcWbzeb.js → index-3TFXgZHA.js} +1 -1
  212. package/dist/{index-BgRyIsRu.js → index-BRciSeV3.js} +1 -1
  213. package/dist/{index-B2pFbNKc.js → index-CU0KClNt.js} +2 -2
  214. package/dist/{index-Cg4t3q_p.cjs → index-CUu7XMJo.cjs} +1 -1
  215. package/dist/{index-DCFJmN23.cjs → index-D0xZLbyl.cjs} +1 -1
  216. package/dist/{index-C9GK00PM.cjs → index-DgGmKhrL.cjs} +1 -1
  217. package/dist/{index-BvSNRLNa.cjs → index-DiIeF_76.cjs} +1 -1
  218. package/dist/{index-BBMleFo5.js → index-DtyNsg2r.js} +1 -1
  219. package/dist/{index-CTJpJFtr.js → index-EE-IJbC3.js} +2 -2
  220. package/dist/{index-B_HNDmXL.cjs → index-zhTWvtwE.cjs} +1 -1
  221. package/dist/index.cjs +1 -1
  222. package/dist/index.js +37 -35
  223. package/dist/{skeleton-CoErfoMc.cjs → skeleton-BP2LF7xv.cjs} +1 -1
  224. package/dist/{skeleton-BXY2S7mC.cjs → skeleton-Bl1q9Yqe.cjs} +1 -1
  225. package/dist/{skeleton-DWZNwK33.js → skeleton-PMiYQLOs.js} +1 -1
  226. package/dist/{skeleton-C_gJZRTs.js → skeleton-fVxknFUi.js} +2 -2
  227. package/dist/{style-JqDQj4jh.cjs → style-C_BRvopE.cjs} +1 -1
  228. package/dist/{style-08foMKSd.js → style-XXDQBreL.js} +1 -1
  229. package/dist/{suspense-categories-card-simple-BbtBbuWb.js → suspense-categories-card-simple-Bln7_MpK.js} +1 -1
  230. package/dist/{suspense-categories-card-simple-CK7XDK4k.cjs → suspense-categories-card-simple-CWahURI0.cjs} +1 -1
  231. package/dist/{suspense-large-BM9s_kZP.js → suspense-large-DrD8xVZi.js} +1 -1
  232. package/dist/{suspense-large-CtcwWswP.cjs → suspense-large-PHdzP1Ln.cjs} +1 -1
  233. package/dist/{suspense-product-card-detailed-LcBMp1iw.cjs → suspense-product-card-detailed-ByW7-U8H.cjs} +1 -1
  234. package/dist/{suspense-product-card-detailed-PArA5O4M.js → suspense-product-card-detailed-Crkoym56.js} +2 -2
  235. package/dist/{suspense-product-card-simple-Z-FddSb-.js → suspense-product-card-simple-BT5gv-kY.js} +1 -1
  236. package/dist/{suspense-product-card-simple-CJwnghtt.cjs → suspense-product-card-simple-f0s0POCq.cjs} +1 -1
  237. package/dist/tag-Bov1gw34.cjs +173 -0
  238. package/dist/tag-CtleOqEC.js +204 -0
  239. package/dist/{utils-BbgAIA9N.js → utils-BPdU4_1q.js} +7 -7
  240. package/dist/{utils-CZynEOC_.cjs → utils-DmMdPm9O.cjs} +2 -2
  241. package/package.json +3 -2
  242. package/vite.config.js +4 -0
@@ -1,4 +1,4 @@
1
- "use strict";const i=require("react/jsx-runtime"),h=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./index-BpbMKBf_.cjs"),o=require("./utils-CZynEOC_.cjs"),O=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=e=>e=="left"?"row-reverse":"row",q=m.styled.label`
1
+ "use strict";const i=require("react/jsx-runtime"),h=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./index-BpbMKBf_.cjs"),o=require("./utils-DmMdPm9O.cjs"),O=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=e=>e=="left"?"row-reverse":"row",q=m.styled.label`
2
2
  min-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
3
3
  max-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
4
4
  width: 100%;
@@ -2,7 +2,7 @@ import { jsxs as b, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as P, useState as j } from "react";
3
3
  import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { P as i } from "./index-CblbdqjE.js";
5
- import { d as f, c as N, e as T, b as t } from "./utils-BbgAIA9N.js";
5
+ import { d as f, c as N, e as T, b as t } from "./utils-BPdU4_1q.js";
6
6
  import { u as F } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
8
8
  min-height: ${(e) => f(e.theme, e.size)};
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),n=require("./index-BpbMKBf_.cjs"),o=require("react"),t=require("./utils-CZynEOC_.cjs"),U=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./useUpdateEffect-BtMgpgIV.cjs"),L=({theme:e,size:i})=>{var c=t.getSizeValueWithUnits(e,i);return`
1
+ "use strict";const r=require("react/jsx-runtime"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),n=require("./index-BpbMKBf_.cjs"),o=require("react"),t=require("./utils-DmMdPm9O.cjs"),U=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./useUpdateEffect-BtMgpgIV.cjs"),L=({theme:e,size:i})=>{var c=t.getSizeValueWithUnits(e,i);return`
2
2
  min-height: ${c};
3
3
  max-height: ${c};
4
4
  `},b={small:"0.875rem",medium:"1.125rem",large:"1.375rem"},W=y.styled.div`
@@ -2,7 +2,7 @@ import { jsxs as N, jsx as t, Fragment as W } from "react/jsx-runtime";
2
2
  import { s as x } from "./emotion-styled.browser.esm-BNN1dTl3.js";
3
3
  import { P as n } from "./index-CblbdqjE.js";
4
4
  import { forwardRef as X, useRef as q, useState as v, useCallback as A, useEffect as M } from "react";
5
- import { a as D, b as o, c as G, d as H } from "./utils-BbgAIA9N.js";
5
+ import { a as D, b as o, c as G, d as H } from "./utils-BPdU4_1q.js";
6
6
  import { u as J } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  import { u as K } from "./useUpdateEffect-CuYWz7EA.js";
8
8
  const Q = ({ theme: e, size: i }) => {
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),d=require("react"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),$=require("./useDetectMobile-zkbzoOGV.cjs"),g=require("./utils-CZynEOC_.cjs"),N=require("./ThemeProvider.cjs"),a=require("./index-BpbMKBf_.cjs"),P=require("./index-BvSNRLNa.cjs"),C=c.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),d=require("react"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),$=require("./useDetectMobile-zkbzoOGV.cjs"),g=require("./utils-DmMdPm9O.cjs"),N=require("./ThemeProvider.cjs"),a=require("./index-BpbMKBf_.cjs"),P=require("./index-DiIeF_76.cjs"),C=c.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  color: var(--darkest-950);
@@ -3,10 +3,10 @@ import { forwardRef as h, Suspense as C, memo as k, useMemo as x } from "react";
3
3
  import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as z } from "./consts-BuFChS64.js";
5
5
  import { u as P } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { t as R, p as M, o as I, b as j, g as E } from "./utils-BbgAIA9N.js";
6
+ import { t as R, p as M, o as I, b as j, g as E } from "./utils-BPdU4_1q.js";
7
7
  import { useTheme as T } from "./ThemeProvider.js";
8
8
  import { P as l } from "./index-CblbdqjE.js";
9
- import { P as A } from "./index-YGcWbzeb.js";
9
+ import { P as A } from "./index-3TFXgZHA.js";
10
10
  const W = d.div`
11
11
  display: flex;
12
12
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),u=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),_=require("./utils-CZynEOC_.cjs"),M=require("./consts-goSZX3xP.cjs"),te=require("./motion-B_VPZaJq.cjs"),o=require("./index-BpbMKBf_.cjs"),ne=require("./Icon.cjs"),ye=require("./Badge.cjs"),Z=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),J=require("./IconButton.cjs"),se=require("./useDetectMobile-zkbzoOGV.cjs"),we=m.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),c=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),_=require("./utils-DmMdPm9O.cjs"),M=require("./consts-goSZX3xP.cjs"),ae=require("./motion-B_VPZaJq.cjs"),s=require("./index-BpbMKBf_.cjs"),oe=require("./Icon.cjs"),we=require("./Badge.cjs"),G=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),ee=require("./IconButton.cjs"),ie=require("./useDetectMobile-zkbzoOGV.cjs"),be=u.styled.div`
2
2
  cursor: pointer;
3
3
  display: flex;
4
4
  gap: 1rem;
@@ -13,11 +13,11 @@
13
13
  border: none;
14
14
  border-radius: 0;
15
15
  }
16
- `,be=m.styled.div`
16
+ `,ve=u.styled.div`
17
17
  border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,"edged")};
18
- height: 15rem;
19
- width: 15rem;
20
- min-width: 15rem;
18
+ height: 13.75rem;
19
+ width: 13.75rem;
20
+ min-width: 13.75rem;
21
21
  cursor: pointer;
22
22
 
23
23
  position: relative;
@@ -42,7 +42,7 @@
42
42
  max-width: 100dvh;
43
43
  height: 23.438rem;
44
44
  }
45
- `,ve=m.styled.div`
45
+ `,_e=u.styled.div`
46
46
  flex: 1;
47
47
  display: flex;
48
48
  flex-direction: column;
@@ -128,13 +128,13 @@
128
128
  gap: 0.25rem;
129
129
  }
130
130
  }
131
- `,K=(e=!1,n=!1,a=!1)=>`
131
+ `,re=(e=!1,n=!1,o=!1)=>`
132
132
  display: flex;
133
133
  ${n?"flex-wrap: wrap;":""}
134
134
  ${n?"":"flex-wrap: nowrap;"}
135
135
  ${e?"align-items: center;":""}
136
- ${a?"justify-content: center;":""}
137
- `,_e=m.styled(te.motion.div)`
136
+ ${o?"justify-content: center;":""}
137
+ `,Te=u.styled(ae.motion.div)`
138
138
  text-decoration: none;
139
139
  ${e=>e.hasPermission===!0&&"cursor: pointer"};
140
140
 
@@ -151,7 +151,7 @@
151
151
  text-decoration: none;
152
152
  }
153
153
 
154
- ${K(!0)}
154
+ ${re(!0)}
155
155
  gap: 0.5rem;
156
156
  padding: 0.5rem;
157
157
  color: var(--gray-950);
@@ -167,7 +167,7 @@
167
167
  font-weight: 400;
168
168
  }
169
169
  & .logo-wrapper {
170
- ${K(!0,!1,!0)}
170
+ ${re(!0,!1,!0)}
171
171
  flex-shrink: 0;
172
172
  border-radius: 999px;
173
173
 
@@ -205,13 +205,13 @@
205
205
  cursor: pointer;
206
206
  background-color: var(--gray-95080, #14161acc);
207
207
  }
208
- `,Te=m.styled.div`
208
+ `,je=u.styled.div`
209
209
  position: absolute;
210
210
  top: 0.5rem;
211
211
  ${e=>e.alignToLeft===!0?"left: 0.5rem;":"right: 0.5rem;"}
212
212
  display: flex;
213
213
  gap: 0.25rem;
214
- `,je=m.styled.div`
214
+ `,$e=u.styled.div`
215
215
  border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,e.borderRadius||"slight")};
216
216
  background-color: ${e=>e==null?void 0:e.color};
217
217
  color: white;
@@ -227,7 +227,7 @@
227
227
  & i {
228
228
  font-size: 0.813rem;
229
229
  }
230
- `,ae=e=>{const{uuid:n,hasPermission:a=!0,isUser:l,image:w,name:h,notifications:p=0,color:i="primary",size:c="large",style:d,disabled:P,onClick:b=()=>{},isActive:T,className:j,shopCategory:$,themeData:f}=e,v={theme:Z.useTheme(),color:i,size:c,style:d,disabled:P};return u.createElement(_e,{onClick:I=>{I.stopPropagation(),a===!0&&(b==null||b())},...v,key:h,className:`profile-item ${j}`,hasPermission:a,isActive:T,themeColor:(f==null?void 0:f.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:w}),t.jsxs("div",{children:[t.jsx("div",{className:"name",children:h}),!l&&t.jsx("div",{className:"description",children:$}),p>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(ye,{className:"badge",color:"danger",size:"small",children:p>99?"99+":p})})]}))};ae.propTypes={id:o.PropTypes.any,isUserProfile:o.PropTypes.bool,themeColor:o.PropTypes.string,image:o.PropTypes.any,name:o.PropTypes.string,notifications:o.PropTypes.number,style:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:o.PropTypes.oneOf(["large"]),onSelect:o.PropTypes.func,hasPermission:o.PropTypes.bool};const Q=(e,n)=>{if(!e||!n)return null;const a=e.getTime()-n.getTime(),l=24*60*60*1e3;return a>=0?Math.ceil(a/l):Math.floor(a/l)},ee=e=>{if(e!==void 0){const n=new Date(e),a=n.getFullYear(),l=n.getMonth()+1;return`${String(n.getDate()).padStart(2)}. ${l}. ${a}.`}},oe=u.forwardRef((e,n)=>{var H;const a=Z.useTheme(),{shopUuid:l,title:w="",coverPhoto:h,onSelect:p,startDate:i,endDate:c,salesPackages:d,shopName:P,shopCategory:b,shopImage:T,className:j,onSelectCard:$=()=>{},onSelectShop:f=()=>{},upcoming:C=!1,upcomingCampaignText:v,campaignSingleText:I,salesCampaignTypes:x=[],startsInPrefixTextPlural:N,startsinSuffixTextPlural:E,startsInPrefixTextSingular:R,startsinSuffixTextSingular:z,endsInPrefixTextPlural:s,endsinSuffixTextPlural:g,endsInPrefixTextSingular:O,endsinSuffixTextSingular:r,themeData:V,numberOfListings:X,numberOfListingsTextSingular:le,numberOfListingsTextPlural:ce,...de}=e,A=i?new Date(i)<=new Date:!1,ge=Q(i?new Date(i):null,new Date),L=Q(c?new Date(c):null,new Date),ue=L!==null&&L<=2&&L>0,G=c?new Date(c).getTime():null,me=Date.now(),F=G!==null?G-me:null,U=F!==null&&F>0&&F<24*60*60*1e3,Y=(S,q,y,k,D)=>y===1?`${S} ${y} ${k}`:`${q} ${y} ${D}`,he=()=>{if(!c)return null;const S=pe,y=new Date(c).getTime()-S.getTime();if(y<=0)return null;const k=Math.floor(y/(1e3*60*60)),D=Math.floor(y%(1e3*60*60)/(1e3*60)),xe=Math.floor(y%(1e3*60)/1e3);return{hours:k,minutes:D,seconds:xe}},[pe,fe]=u.useState(new Date);u.useEffect(()=>{if(!U)return;const S=setInterval(()=>{fe(new Date)},1e3);return()=>clearInterval(S)},[U]);const B=U?he():null;return t.jsxs(we,{ref:n,theme:a,className:j,onClick:$,...de,children:[t.jsxs(be,{theme:a,onClick:()=>p==null?void 0:p(),children:[t.jsx("img",{src:h}),t.jsx(Te,{children:d==null?void 0:d.map((S,q)=>{var y,k;return t.jsx(je,{color:(y=x==null?void 0:x.find(D=>D.value===S))==null?void 0:y.color,theme:a,children:t.jsx(ne,{icon:(k=x==null?void 0:x.find(D=>D.value===S))==null?void 0:k.icon})},`package__${q}`)})})]}),t.jsxs(ve,{theme:a,children:[t.jsx("div",{className:"text-block-wrapper",children:t.jsxs("div",{className:"title-block-wrapper",children:[t.jsx("div",{className:"campaign-title",children:(H=C?v:I)==null?void 0:H.toUpperCase()}),t.jsx("div",{className:"campaign-title-text",children:w}),c&&i&&t.jsxs("div",{children:[ee(i)," - ",ee(c)]}),t.jsxs("div",{className:"timestamp-text",children:[X>0&&t.jsxs("span",{className:"listings-text",children:[X," ",X===1?le:ce," ","∙"," "]}),t.jsx("span",{className:`duration-text ${ue?"urgent":""} ${A?"":"starts-in"}`,children:U&&B?t.jsxs("div",{className:"countdown-timer",children:[O," ",B.hours.toString().padStart(2,"0"),":",B.minutes.toString().padStart(2,"0"),":",B.seconds.toString().padStart(2,"0")]}):A?Y(O,s,L,r,g):Y(R,N,ge,z,E)})]})]})}),t.jsx(ae,{hasPermission:!0,image:t.jsx("img",{src:T,className:`${T?"":"no-image"}`}),themeData:V,isActive:!0,isUser:!1,name:P,shopCategory:b,onClick:()=>f(l)})]})]})});oe.propTypes={title:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),numberOfListings:o.PropTypes.number,dropdown:o.PropTypes.any,color:o.PropTypes.string};m.styled.div`
230
+ `,le=e=>{const{uuid:n,hasPermission:o=!0,isUser:l,image:p,name:h,notifications:f=0,color:i="primary",size:d="large",style:g,disabled:S,onClick:b=()=>{},isActive:T,className:j,shopCategory:$,themeData:x}=e,v={theme:G.useTheme(),color:i,size:d,style:g,disabled:S};return c.createElement(Te,{onClick:I=>{I.stopPropagation(),o===!0&&(b==null||b())},...v,key:h,className:`profile-item ${j}`,hasPermission:o,isActive:T,themeColor:(x==null?void 0:x.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:p}),t.jsxs("div",{children:[t.jsx("div",{className:"name",children:h}),!l&&t.jsx("div",{className:"description",children:$}),f>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(we,{className:"badge",color:"danger",size:"small",children:f>99?"99+":f})})]}))};le.propTypes={id:s.PropTypes.any,isUserProfile:s.PropTypes.bool,themeColor:s.PropTypes.string,image:s.PropTypes.any,name:s.PropTypes.string,notifications:s.PropTypes.number,style:s.PropTypes.object,className:s.PropTypes.string,color:s.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:s.PropTypes.oneOf(["large"]),onSelect:s.PropTypes.func,hasPermission:s.PropTypes.bool};const te=(e,n)=>{if(!e||!n)return null;const o=e.getTime()-n.getTime(),l=24*60*60*1e3;return o>=0?Math.ceil(o/l):Math.floor(o/l)},ne=e=>{if(e!==void 0){const n=new Date(e),o=n.getFullYear(),l=n.getMonth()+1;return`${String(n.getDate()).padStart(2)}. ${l}. ${o}.`}},ce=c.forwardRef((e,n)=>{var Q;const o=G.useTheme(),{shopUuid:l,title:p="",coverPhoto:h,onSelect:f,startDate:i,endDate:d,salesPackages:g,shopName:S,shopCategory:b,shopImage:T,className:j,onSelectCard:$=()=>{},onSelectShop:x=()=>{},upcoming:C=!1,upcomingCampaignText:v,campaignSingleText:I,salesCampaignTypes:y=[],startsInPrefixTextPlural:k,startsinSuffixTextPlural:E,startsInPrefixTextSingular:R,startsinSuffixTextSingular:z,endsInPrefixTextPlural:a,endsinSuffixTextPlural:m,endsInPrefixTextSingular:O,endsinSuffixTextSingular:H,themeData:U,numberOfListings:L,numberOfListingsTextSingular:B,numberOfListingsTextPlural:r,...Z}=e,Y=i?new Date(i)<=new Date:!1,ue=te(i?new Date(i):null,new Date),q=te(d?new Date(d):null,new Date),me=q!==null&&q<=2&&q>0,J=d?new Date(d).getTime():null,he=Date.now(),A=J!==null?J-he:null,W=A!==null&&A>0&&A<24*60*60*1e3,K=(P,X,w,D,N)=>w===1?`${P} ${w} ${D}`:`${X} ${w} ${N}`,pe=()=>{if(!d)return null;const P=fe,w=new Date(d).getTime()-P.getTime();if(w<=0)return null;const D=Math.floor(w/(1e3*60*60)),N=Math.floor(w%(1e3*60*60)/(1e3*60)),ye=Math.floor(w%(1e3*60)/1e3);return{hours:D,minutes:N,seconds:ye}},[fe,xe]=c.useState(new Date);c.useEffect(()=>{if(!W)return;const P=setInterval(()=>{xe(new Date)},1e3);return()=>clearInterval(P)},[W]);const V=W?pe():null;return t.jsxs(be,{ref:n,theme:o,className:j,onClick:$,...Z,children:[t.jsxs(ve,{theme:o,onClick:()=>f==null?void 0:f(),children:[t.jsx("img",{src:h}),t.jsx(je,{children:g==null?void 0:g.map((P,X)=>{var w,D;return t.jsx($e,{color:(w=y==null?void 0:y.find(N=>N.value===P))==null?void 0:w.color,theme:o,children:t.jsx(oe,{icon:(D=y==null?void 0:y.find(N=>N.value===P))==null?void 0:D.icon})},`package__${X}`)})})]}),t.jsxs(_e,{theme:o,children:[t.jsx("div",{className:"text-block-wrapper",children:t.jsxs("div",{className:"title-block-wrapper",children:[t.jsx("div",{className:"campaign-title",children:(Q=C?v:I)==null?void 0:Q.toUpperCase()}),t.jsx("div",{className:"campaign-title-text",children:p}),d&&i&&t.jsxs("div",{children:[ne(i)," - ",ne(d)]}),t.jsxs("div",{className:"timestamp-text",children:[L>0&&t.jsxs("span",{className:"listings-text",children:[L," ",L===1?B:r," ","∙"," "]}),t.jsx("span",{className:`duration-text ${me?"urgent":""} ${Y?"":"starts-in"}`,children:W&&V?t.jsxs("div",{className:"countdown-timer",children:[O," ",V.hours.toString().padStart(2,"0"),":",V.minutes.toString().padStart(2,"0"),":",V.seconds.toString().padStart(2,"0")]}):Y?K(O,a,q,H,m):K(R,k,ue,z,E)})]})]})}),t.jsx(le,{hasPermission:!0,image:t.jsx("img",{src:T,className:`${T?"":"no-image"}`}),themeData:U,isActive:!0,isUser:!1,name:S,shopCategory:b,onClick:()=>x(l)})]})]})});ce.propTypes={title:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.element]),numberOfListings:s.PropTypes.number,dropdown:s.PropTypes.any,color:s.PropTypes.string};u.styled.div`
231
231
  display: flex;
232
232
  flex-direction: column;
233
233
  gap: 1.5rem;
@@ -265,18 +265,18 @@
265
265
  margin-right: 0;
266
266
  }
267
267
  }
268
- `;const W=m.styled.div`
268
+ `;const F=u.styled.div`
269
269
  width: ${e=>e.width||"100%"};
270
270
  height: ${e=>(e.heightCoeff||1)*1.125}rem;
271
271
  background-color: var(--gray-200, #dddfe4);
272
272
 
273
273
  ${_.linearGradientAnimation("-90deg")}
274
- `,$e=m.styled.div`
274
+ `,Pe=u.styled.div`
275
275
  display: flex;
276
276
  flex-direction: ${e=>e!=null&&e.row?"row":"column"};
277
277
  gap: ${e=>(e==null?void 0:e.gap)??"0.5rem"};
278
278
  width: ${e=>(e==null?void 0:e.width)??"100%"};
279
- `,re=m.styled.div`
279
+ `,se=u.styled.div`
280
280
  border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,(e==null?void 0:e.borderRadius)??"regular")};
281
281
  background: var(--gray-200, #dddfe4);
282
282
  position: relative;
@@ -287,7 +287,7 @@
287
287
  flex-shrink: 0;
288
288
 
289
289
  ${_.linearGradientAnimation()}
290
- `,Se=m.styled.div`
290
+ `,Se=u.styled.div`
291
291
  background: var(--white, #fff);
292
292
  border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,"edged")};
293
293
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
@@ -323,10 +323,10 @@
323
323
  margin-top: 1rem;
324
324
  }
325
325
  }
326
- `,Pe=m.styled.div`
326
+ `,Ce=u.styled.div`
327
327
  display: flex;
328
328
  gap: 1.5rem;
329
- `,Ce=u.forwardRef(({},e)=>{const n=Z.useTheme();return t.jsxs(Se,{ref:e,theme:n,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(re,{theme:n,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs($e,{theme:n,children:[t.jsx(W,{heightCoeff:.75,theme:n,width:"35%"}),t.jsx(W,{heightCoeff:1.25,theme:n}),t.jsx(W,{heightCoeff:3,theme:n})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(re,{theme:n,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(W,{theme:n,width:"75%"})]})]})]})}),Ie=({itemsCount:e=5,keyPrefix:n})=>t.jsx(Pe,{children:Array.from({length:e},(a,l)=>t.jsx(Ce,{},`${n}-skeleton-campaign-card-${l}`))}),De=({children:e,fallbackComponent:n=t.jsx(t.Fragment,{}),isLoading:a=!1,itemsCount:l=5,keyPrefix:w})=>t.jsx(u.Suspense,{fallback:n,children:a===!0?t.jsx(Ie,{itemsCount:l,keyPrefix:w}):e}),Ne=m.styled.div`
329
+ `,Ie=c.forwardRef(({},e)=>{const n=G.useTheme();return t.jsxs(Se,{ref:e,theme:n,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(se,{theme:n,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(Pe,{theme:n,children:[t.jsx(F,{heightCoeff:.75,theme:n,width:"35%"}),t.jsx(F,{heightCoeff:1.25,theme:n}),t.jsx(F,{heightCoeff:3,theme:n})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(se,{theme:n,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(F,{theme:n,width:"75%"})]})]})]})}),Ne=({itemsCount:e=5,keyPrefix:n})=>t.jsx(Ce,{children:Array.from({length:e},(o,l)=>t.jsx(Ie,{},`${n}-skeleton-campaign-card-${l}`))}),ke=({children:e,fallbackComponent:n=t.jsx(t.Fragment,{}),isLoading:o=!1,itemsCount:l=5,keyPrefix:p})=>t.jsx(c.Suspense,{fallback:n,children:o===!0?t.jsx(Ne,{itemsCount:l,keyPrefix:p}):e}),De=u.styled.div`
330
330
  margin: 0 auto;
331
331
  display: flex;
332
332
  flex-direction: column;
@@ -367,7 +367,7 @@
367
367
  top: 0;
368
368
  right: 0;
369
369
  }
370
- `,ke=m.styled(te.motion.div)`
370
+ `,Me=u.styled(ae.motion.div)`
371
371
  display: grid;
372
372
  grid-template-columns: repeat(${e=>e==null?void 0:e.numOfColumns}, 1fr);
373
373
  gap: 1.5rem;
@@ -375,4 +375,21 @@
375
375
  @media (max-width: ${M.MOBILE_SIZE_PX+"px"}) {
376
376
  grid-template-columns: repeat(${e=>e==null?void 0:e.numOfColumnsForMobile}, 1fr);
377
377
  }
378
- `,ie=u.forwardRef(({icon:e,title:n,numOfSlides:a=2,numOfSlidesForMobile:l=1,showNavigation:w=!0,children:h},p)=>{const[i,c]=u.useState(0),[d,P]=u.useState(1),[b,T]=u.useState(null),[j,$]=u.useState(null),f=se.useDetectMobile(),C=50,v=(h==null?void 0:h.length)??1;u.useEffect(()=>{const s=()=>{P(f?l:a)};return window.addEventListener("resize",s),s(),()=>window.removeEventListener("resize",s)},[]);const I=h==null?void 0:h.slice(i,i+d),x=s=>{var g;(g=s==null?void 0:s.target)==null||g.blur(),i+d<v&&c(i+d)},N=s=>{var g;(g=s==null?void 0:s.target)==null||g.blur(),i-d>=0&&c(i-d)},E=s=>{var g;$(null),T((g=s==null?void 0:s.targetTouches["0"])==null?void 0:g.clientX)},R=s=>{var g;$((g=s==null?void 0:s.targetTouches["0"])==null?void 0:g.clientX)},z=()=>{if(!b||!j)return;const s=b-j;s>C&&x(),s<-C&&N()};return t.jsxs(Ne,{ref:p,...f?{onTouchStart:E,onTouchMove:R,onTouchEnd:z}:{},children:[t.jsx("div",{className:"scrollable-section__header",children:t.jsxs("div",{className:"scrollable-section__title",children:[_.isDefinedNotEmptyString(e)&&t.jsx(ne,{icon:e,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),_.isDefinedNotEmptyString(n)&&t.jsx("div",{className:"title__text",children:n})]})}),t.jsx(ke,{numOfColumns:a,numOfColumnsForMobile:l,animate:{x:0,opacity:1},initial:{x:10,opacity:0},children:I},`scrollable-section__content-${i}`),w&&v>d&&!f&&t.jsxs("div",{className:"scrollable-section__navigation",children:[t.jsx(J,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:i===0,onClick:N}),t.jsx(J,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:i+d>=v,onClick:x})]})]})});ie.propTypes={icon:o.PropTypes.string,title:o.PropTypes.string,numOfSlides:o.PropTypes.number,numOfSlidesForMobile:o.PropTypes.number,showNavigation:o.PropTypes.bool};const Me=u.memo(oe),Ee=u.forwardRef(({sellerType:e="Shop",items:n=[],title:a,icon:l,isLoading:w,onSelectCard:h=()=>{},onSelectShop:p=()=>{},getImage:i=()=>{},campaignSingleText:c,upcomingCampaignText:d,salesCampaignTypes:P=[],startsInPrefixTextPlural:b,startsinSuffixTextPlural:T,startsInPrefixTextSingular:j,startsinSuffixTextSingular:$,endsInPrefixTextPlural:f,endsinSuffixTextPlural:C,endsInPrefixTextSingular:v,endsinSuffixTextSingular:I,numOfSlides:x=2,numOfSlidesForMobile:N=1,showNavigation:E=!0,numberOfListingsTextSingular:R,numberOfListingsTextPlural:z},s)=>{const g=se.useDetectMobile(),O=u.useMemo(()=>n==null?void 0:n.map((r,V)=>t.jsx(Me,{className:"campaign-item",coverPhoto:i(r==null?void 0:r.coverPhoto,(r==null?void 0:r.uuid)||(r==null?void 0:r.campaignUuid)),description:r==null?void 0:r.description,endDate:r==null?void 0:r.endDate,salesPackages:r==null?void 0:r.salesPackages,sellerType:e,shopImage:r==null?void 0:r.profileImage,shopName:r==null?void 0:r.shopName,shopUuid:r==null?void 0:r.shopUuid,shopCategory:r==null?void 0:r.shopCategory,startDate:r==null?void 0:r.startDate,title:r==null?void 0:r.name,uuid:r==null?void 0:r.campaignUuid,onSelectCard:()=>h(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>p(r==null?void 0:r.shopUuid),campaignSingleText:c,upcomingCampaignText:d,upcoming:r==null?void 0:r.upcoming,salesCampaignTypes:P,startsInPrefixTextPlural:b,startsinSuffixTextPlural:T,startsInPrefixTextSingular:j,startsinSuffixTextSingular:$,endsInPrefixTextPlural:f,endsinSuffixTextPlural:C,endsInPrefixTextSingular:v,endsinSuffixTextSingular:I,themeData:r==null?void 0:r.themeData,numberOfListings:r==null?void 0:r.numberOfListings,numberOfListingsTextSingular:R,numberOfListingsTextPlural:z},`campaign__item__${V}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}`)),[n]);return t.jsx(De,{isLoading:w,itemsCount:g?1:2,keyPrefix:"sales-camp",children:t.jsx(ie,{icon:l,title:a,numOfSlides:x,numOfSlidesForMobile:N,showNavigation:E,children:O})})});module.exports=Ee;
378
+ `,de=c.forwardRef(({icon:e,title:n,numOfSlides:o=2,numOfSlidesForMobile:l=1,showNavigation:p=!0,children:h},f)=>{const[i,d]=c.useState(0),[g,S]=c.useState(1),[b,T]=c.useState(null),[j,$]=c.useState(null),x=ie.useDetectMobile(),C=50,v=(h==null?void 0:h.length)??1;c.useEffect(()=>{const a=()=>{S(x?l:o)};return window.addEventListener("resize",a),a(),()=>window.removeEventListener("resize",a)},[]);const I=h==null?void 0:h.slice(i,i+g),y=a=>{var m;(m=a==null?void 0:a.target)==null||m.blur(),i+g<v&&d(i+g)},k=a=>{var m;(m=a==null?void 0:a.target)==null||m.blur(),i-g>=0&&d(i-g)},E=a=>{var m;$(null),T((m=a==null?void 0:a.targetTouches["0"])==null?void 0:m.clientX)},R=a=>{var m;$((m=a==null?void 0:a.targetTouches["0"])==null?void 0:m.clientX)},z=()=>{if(!b||!j)return;const a=b-j;a>C&&y(),a<-C&&k()};return t.jsxs(De,{ref:f,...x?{onTouchStart:E,onTouchMove:R,onTouchEnd:z}:{},children:[t.jsx("div",{className:"scrollable-section__header",children:t.jsxs("div",{className:"scrollable-section__title",children:[_.isDefinedNotEmptyString(e)&&t.jsx(oe,{icon:e,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),_.isDefinedNotEmptyString(n)&&t.jsx("div",{className:"title__text",children:n})]})}),t.jsx(Me,{numOfColumns:o,numOfColumnsForMobile:l,animate:{x:0,opacity:1},initial:{x:10,opacity:0},children:I},`scrollable-section__content-${i}`),p&&v>g&&!x&&t.jsxs("div",{className:"scrollable-section__navigation",children:[t.jsx(ee,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:i===0,onClick:k}),t.jsx(ee,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:i+g>=v,onClick:y})]})]})});de.propTypes={icon:s.PropTypes.string,title:s.PropTypes.string,numOfSlides:s.PropTypes.number,numOfSlidesForMobile:s.PropTypes.number,showNavigation:s.PropTypes.bool};const Ee=u.styled.div`
379
+ display: flex;
380
+ flex: 1;
381
+ width: 100%;
382
+ max-height: ${e=>e==null?void 0:e.maxHeight};
383
+ border-radius: 1.25rem;
384
+
385
+ &:hover {
386
+ cursor: pointer;
387
+ }
388
+
389
+ & img {
390
+ width: 100%;
391
+ height: 100%;
392
+ border-radius: 1.25rem;
393
+ object-fit: cover;
394
+ }
395
+ `,ge=c.forwardRef(({sectionName:e,imageUrl:n,maxHeight:o="16.25rem",className:l="",handleClick:p=()=>{}})=>t.jsx(Ee,{maxHeight:o,onClick:p,className:`itemless-banner ${l}`,children:t.jsx("img",{src:n,alt:`itemless-banner__${e}`})}));ge.propTypes={sectionName:s.PropTypes.string,imageUrl:s.PropTypes.string,maxHeight:s.PropTypes.string,className:s.PropTypes.string,handleClick:s.PropTypes.func};const Re=c.memo(ce),ze=c.forwardRef(({sellerType:e="Shop",items:n=[],title:o,icon:l,isLoading:p,onSelectCard:h=()=>{},onSelectShop:f=()=>{},getImage:i=()=>{},campaignSingleText:d,upcomingCampaignText:g,salesCampaignTypes:S=[],startsInPrefixTextPlural:b,startsinSuffixTextPlural:T,startsInPrefixTextSingular:j,startsinSuffixTextSingular:$,endsInPrefixTextPlural:x,endsinSuffixTextPlural:C,endsInPrefixTextSingular:v,endsinSuffixTextSingular:I,numOfSlides:y=2,numOfSlidesForMobile:k=1,showNavigation:E=!0,numberOfListingsTextSingular:R,numberOfListingsTextPlural:z,itemlessImageUrl:a,itemlessLink:m,handleItemlessLink:O=()=>{}},H)=>{const U=ie.useDetectMobile(),L=c.useMemo(()=>{let B=n==null?void 0:n.map((r,Z)=>t.jsx(Re,{className:"campaign-item",coverPhoto:i(r==null?void 0:r.coverPhoto,(r==null?void 0:r.uuid)||(r==null?void 0:r.campaignUuid)),description:r==null?void 0:r.description,endDate:r==null?void 0:r.endDate,salesPackages:r==null?void 0:r.salesPackages,sellerType:e,shopImage:r==null?void 0:r.profileImage,shopName:r==null?void 0:r.shopName,shopUuid:r==null?void 0:r.shopUuid,shopCategory:r==null?void 0:r.shopCategory,startDate:r==null?void 0:r.startDate,title:r==null?void 0:r.name,uuid:r==null?void 0:r.campaignUuid,onSelectCard:()=>h(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>f(r==null?void 0:r.shopUuid),campaignSingleText:d,upcomingCampaignText:g,upcoming:r==null?void 0:r.upcoming,salesCampaignTypes:S,startsInPrefixTextPlural:b,startsinSuffixTextPlural:T,startsInPrefixTextSingular:j,startsinSuffixTextSingular:$,endsInPrefixTextPlural:x,endsinSuffixTextPlural:C,endsInPrefixTextSingular:v,endsinSuffixTextSingular:I,themeData:r==null?void 0:r.themeData,numberOfListings:r==null?void 0:r.numberOfListings,numberOfListingsTextSingular:R,numberOfListingsTextPlural:z},`campaign__item__${Z}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}`));return(n==null?void 0:n.length)<2&&!U?[...B,t.jsx(ge,{imageUrl:a,className:"campaign-item",handleClick:O})]:B},[n]);return t.jsx(ke,{isLoading:p,itemsCount:U?1:2,keyPrefix:"sales-camp",children:t.jsx(de,{icon:l,title:o,numOfSlides:y,numOfSlidesForMobile:k,showNavigation:E,children:L})})});module.exports=ze;