@lanaco/lnc-react-ui 4.0.85 → 4.0.87

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 (253) 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/BannerSectionBasic.cjs +1 -1
  14. package/dist/BannerSectionBasic.js +1 -1
  15. package/dist/BannerSectionCarousel.cjs +1 -1
  16. package/dist/BannerSectionCarousel.js +3 -3
  17. package/dist/BannerSectionGrid.cjs +1 -1
  18. package/dist/BannerSectionGrid.js +3 -3
  19. package/dist/BannerSectionSimple.cjs +1 -1
  20. package/dist/BannerSectionSimple.js +2 -2
  21. package/dist/BannerSectionWithList.cjs +1 -1
  22. package/dist/BannerSectionWithList.js +2 -2
  23. package/dist/BannerSectionWithListImage.cjs +2 -2
  24. package/dist/BannerSectionWithListImage.js +10 -10
  25. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  26. package/dist/BlogCardsSponsoredSection.js +4 -4
  27. package/dist/BlogCategoryCardsSection.cjs +1 -1
  28. package/dist/BlogCategoryCardsSection.js +2 -2
  29. package/dist/BlogListSection.cjs +1 -1
  30. package/dist/BlogListSection.js +3 -3
  31. package/dist/BlogProductCardsSection.cjs +1 -1
  32. package/dist/BlogProductCardsSection.js +4 -4
  33. package/dist/BlogShopCardsSection.cjs +1 -1
  34. package/dist/BlogShopCardsSection.js +3 -3
  35. package/dist/BlogSingleSection.cjs +1 -1
  36. package/dist/BlogSingleSection.js +2 -2
  37. package/dist/BlogsSectionDetailed.cjs +1 -1
  38. package/dist/BlogsSectionDetailed.js +5 -5
  39. package/dist/BlogsSectionLarge.cjs +1 -1
  40. package/dist/BlogsSectionLarge.js +4 -4
  41. package/dist/BlogsSectionSimple.cjs +6 -6
  42. package/dist/BlogsSectionSimple.js +46 -43
  43. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  44. package/dist/BlogsSectionSimpleCentered.js +4 -4
  45. package/dist/BlogsSectionWithFilters.cjs +6 -2
  46. package/dist/BlogsSectionWithFilters.js +40 -34
  47. package/dist/BrandHitsSection.cjs +1 -1
  48. package/dist/BrandHitsSection.js +2 -2
  49. package/dist/Breadcrumbs.cjs +1 -1
  50. package/dist/Breadcrumbs.js +1 -1
  51. package/dist/Button.cjs +1 -1
  52. package/dist/Button.js +1 -1
  53. package/dist/ButtonGroup.cjs +1 -1
  54. package/dist/ButtonGroup.js +1 -1
  55. package/dist/CalorieCalculatorSection.cjs +1 -1
  56. package/dist/CalorieCalculatorSection.js +2 -2
  57. package/dist/CheckBoxInput.cjs +1 -1
  58. package/dist/CheckBoxInput.js +1 -1
  59. package/dist/Chip.cjs +1 -1
  60. package/dist/Chip.js +1 -1
  61. package/dist/ColorInput.cjs +1 -1
  62. package/dist/ColorInput.js +1 -1
  63. package/dist/ConfirmationForm.cjs +1 -1
  64. package/dist/ConfirmationForm.js +1 -1
  65. package/dist/CustomLoanMapSection.cjs +3 -3
  66. package/dist/CustomLoanMapSection.js +96 -36
  67. package/dist/{CustomStyles-BEn7PPUw.js → CustomStyles-DSaRbYZg.js} +1 -1
  68. package/dist/{CustomStyles-CraIxsuq.cjs → CustomStyles-DzChCA5c.cjs} +1 -1
  69. package/dist/DateInput.cjs +1 -1
  70. package/dist/DateInput.js +1 -1
  71. package/dist/DecimalInput.cjs +1 -1
  72. package/dist/DecimalInput.js +1 -1
  73. package/dist/DecimalInputV2.cjs +1 -1
  74. package/dist/DecimalInputV2.js +1 -1
  75. package/dist/DetailedProductsSection.cjs +6 -2
  76. package/dist/DetailedProductsSection.js +30 -23
  77. package/dist/DetailsView.cjs +1 -1
  78. package/dist/DetailsView.js +1 -1
  79. package/dist/DoubleRangeSlider.cjs +1 -1
  80. package/dist/DoubleRangeSlider.js +1 -1
  81. package/dist/DragAndDropFile.cjs +1 -1
  82. package/dist/DragAndDropFile.js +1 -1
  83. package/dist/DragDropFiles.cjs +1 -1
  84. package/dist/DragDropFiles.js +1 -1
  85. package/dist/Drawer.cjs +1 -1
  86. package/dist/Drawer.js +1 -1
  87. package/dist/Dropdown.cjs +1 -1
  88. package/dist/Dropdown.js +2 -2
  89. package/dist/DropdownItem.cjs +1 -1
  90. package/dist/DropdownItem.js +1 -1
  91. package/dist/DropdownLookup.cjs +1 -1
  92. package/dist/DropdownLookup.js +1 -1
  93. package/dist/DropdownMenu.cjs +1 -1
  94. package/dist/DropdownMenu.js +1 -1
  95. package/dist/EditableTable.cjs +1 -1
  96. package/dist/EditableTable.js +1 -1
  97. package/dist/FieldOfInterestsMasonrySection.cjs +1 -1
  98. package/dist/FieldOfInterestsMasonrySection.js +2 -2
  99. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  100. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +3 -3
  101. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +11 -11
  102. package/dist/FieldOfInterestsWithTagsCardsSection.js +55 -53
  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 +3 -5
  112. package/dist/GeneralWithTagsCardsSection.js +8 -10
  113. package/dist/GiftCardsSection.cjs +1 -1
  114. package/dist/GiftCardsSection.js +4 -4
  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 +106 -4
  128. package/dist/LoanCalculatorSection.js +505 -350
  129. package/dist/LocationFinderSection.cjs +1 -1
  130. package/dist/LocationFinderSection.js +1 -1
  131. package/dist/LocationSearchSection.cjs +6 -6
  132. package/dist/LocationSearchSection.js +21 -16
  133. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  134. package/dist/MasonryGeneralCardsSection.js +2 -2
  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/OverlayGeneralCardsSection.cjs +1 -1
  154. package/dist/OverlayGeneralCardsSection.js +3 -3
  155. package/dist/PasswordInput.cjs +1 -1
  156. package/dist/PasswordInput.js +1 -1
  157. package/dist/PopoverContent.cjs +1 -1
  158. package/dist/PopoverContent.js +1 -1
  159. package/dist/ProductsWithBannerSection.cjs +1 -1
  160. package/dist/ProductsWithBannerSection.js +5 -5
  161. package/dist/ProgressBar.cjs +1 -1
  162. package/dist/ProgressBar.js +1 -1
  163. package/dist/QuizSection.cjs +1 -1
  164. package/dist/QuizSection.js +2 -2
  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 +4 -4
  171. package/dist/SalesCampaignsSection.cjs +35 -31
  172. package/dist/SalesCampaignsSection.js +184 -178
  173. package/dist/Separator.cjs +1 -1
  174. package/dist/Separator.js +1 -1
  175. package/dist/SeparatorSection.cjs +1 -1
  176. package/dist/SeparatorSection.js +1 -1
  177. package/dist/ShopCardsSection.cjs +1 -1
  178. package/dist/ShopCardsSection.js +3 -3
  179. package/dist/Sidebar.cjs +1 -1
  180. package/dist/Sidebar.js +1 -1
  181. package/dist/SimpleCategoriesSection.cjs +1 -1
  182. package/dist/SimpleCategoriesSection.js +5 -5
  183. package/dist/SimpleProductsSection.cjs +1 -1
  184. package/dist/SimpleProductsSection.js +5 -5
  185. package/dist/Spinner.cjs +1 -1
  186. package/dist/Spinner.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 +1 -1
  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 +12 -6
  212. package/dist/UrgentSaleProductsSection.js +33 -27
  213. package/dist/consts-BuFChS64.js +7 -0
  214. package/dist/consts-goSZX3xP.cjs +1 -0
  215. package/dist/{index-BAcDCJ__.cjs → index-B9HSHvhH.cjs} +4 -3
  216. package/dist/{index-0gMMorgT.js → index-BBPnKoi6.js} +13 -12
  217. package/dist/{index-CrQCfnN4.cjs → index-BVaZWq6y.cjs} +1 -1
  218. package/dist/{index-BxlCwYfi.cjs → index-BaLBHyTh.cjs} +1 -1
  219. package/dist/{index-CAUvgabx.js → index-Ca38iPjf.js} +1 -1
  220. package/dist/{index-qJdP9Qj_.cjs → index-Ccw8sLnK.cjs} +1 -1
  221. package/dist/{index-CpuLfTNK.js → index-CsrdUl1x.js} +1 -1
  222. package/dist/{index-NPoFvaOb.cjs → index-Cx4KvZ9L.cjs} +1 -1
  223. package/dist/{index-Dh4_OKr4.cjs → index-DG7qQq8L.cjs} +1 -1
  224. package/dist/{index-B-rMBqRZ.js → index-Db8wvLXS.js} +3 -3
  225. package/dist/{index-CsE-jpuG.js → index-Yh18uk_f.js} +3 -3
  226. package/dist/{index-BH4xYvWX.js → index-iSD5jNBk.js} +3 -3
  227. package/dist/index.cjs +1 -1
  228. package/dist/index.js +1 -1
  229. package/dist/{skeleton-h_BqlhwR.cjs → skeleton-BBSBZ4JV.cjs} +7 -3
  230. package/dist/{skeleton-UZpd11NH.cjs → skeleton-C_Jypl8r.cjs} +1 -1
  231. package/dist/{skeleton-BAFYFLzF.js → skeleton-DALCB1S7.js} +9 -5
  232. package/dist/{skeleton-Cwiuzfm-.js → skeleton-wfDIalr3.js} +2 -2
  233. package/dist/{style-OPSfrtFm.cjs → style-BTTXJFJN.cjs} +1 -1
  234. package/dist/{style-CsMpu4iC.js → style-sLF37aOA.js} +1 -1
  235. package/dist/{style-DOKM5cZi.js → style-tw6KjI2J.js} +1 -1
  236. package/dist/{style-C571ywKV.cjs → style-xvwWn3Zv.cjs} +1 -1
  237. package/dist/{suspense-categories-card-simple-CHf0Facw.cjs → suspense-categories-card-simple-5JZtz7wj.cjs} +1 -1
  238. package/dist/{suspense-categories-card-simple-Dur5FfBL.js → suspense-categories-card-simple-BTFqzXyn.js} +2 -2
  239. package/dist/{suspense-large-BuLLKfkY.cjs → suspense-large-BtfvnzWh.cjs} +1 -1
  240. package/dist/{suspense-large-CzEWIMbY.js → suspense-large-DFlSJhGG.js} +1 -1
  241. package/dist/{suspense-product-card-detailed-BeCtuxgb.js → suspense-product-card-detailed-CwdbxJrY.js} +3 -3
  242. package/dist/{suspense-product-card-detailed-DMGdY--Y.cjs → suspense-product-card-detailed-DBNlkFiP.cjs} +1 -1
  243. package/dist/{suspense-product-card-simple-Rm_eNQQM.js → suspense-product-card-simple--ExcEpD-.js} +1 -1
  244. package/dist/{suspense-product-card-simple-D0rKjnJ9.cjs → suspense-product-card-simple-0x5sc47a.cjs} +1 -1
  245. package/dist/{useDetectMobile-BC6EGaBc.js → useDetectMobile-Bkvj0VMa.js} +1 -1
  246. package/dist/{useDetectMobile-D6d5LpdL.cjs → useDetectMobile-zkbzoOGV.cjs} +1 -1
  247. package/dist/{utils-ChqiSgoC.js → utils-BE-UlkKf.js} +1 -1
  248. package/dist/{utils-Cz7P2Zok.cjs → utils-DhRHf5Ed.cjs} +1 -1
  249. package/package.json +1 -1
  250. package/dist/consts-C1uHV4xc.js +0 -6
  251. package/dist/consts-CtNoHdBj.cjs +0 -1
  252. package/dist/index-BmmUDFl9.js +0 -164
  253. package/dist/index-CLi5dmE8.cjs +0 -103
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),n=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./utils-Cz7P2Zok.cjs"),I=require("./consts-CtNoHdBj.cjs"),K=require("./motion-B_VPZaJq.cjs"),i=require("./index-BPVoEhTF.cjs"),Q=require("./Icon.cjs"),ee=require("./Badge.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),G=require("./useDetectMobile-D6d5LpdL.cjs"),re=require("./FlexBox.cjs"),q=require("./index-CHDRU86t.cjs"),z=require("./IconButton.cjs"),te=u.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),n=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./utils-DhRHf5Ed.cjs"),E=require("./consts-goSZX3xP.cjs"),K=require("./motion-B_VPZaJq.cjs"),i=require("./index-BPVoEhTF.cjs"),Q=require("./Icon.cjs"),ee=require("./Badge.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),G=require("./useDetectMobile-zkbzoOGV.cjs"),re=require("./FlexBox.cjs"),q=require("./index-CHDRU86t.cjs"),z=require("./IconButton.cjs"),te=f.styled.div`
2
2
  cursor: pointer;
3
3
  display: flex;
4
4
  gap: 1rem;
@@ -6,15 +6,15 @@
6
6
  border-radius: 20px;
7
7
  border: 1px solid var(--gray-95008, #14161a14);
8
8
 
9
- @media (max-width: ${I.MOBILE_SIZE_PX+"px"}) {
9
+ @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
10
10
  flex-direction: column;
11
11
  padding: 0;
12
12
  gap: 0;
13
13
  border: none;
14
14
  border-radius: 0;
15
15
  }
16
- `,oe=u.styled.div`
17
- border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,"edged")};
16
+ `,oe=f.styled.div`
17
+ border-radius: ${e=>T.getBorderRadiusValueWithUnits(e.theme,"edged")};
18
18
  height: 15rem;
19
19
  width: 15rem;
20
20
  min-width: 15rem;
@@ -37,12 +37,12 @@
37
37
  }
38
38
  }
39
39
 
40
- @media (max-width: ${I.MOBILE_SIZE_PX+"px"}) {
40
+ @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
41
41
  width: 100%;
42
42
  max-width: 100dvh;
43
43
  height: 23.438rem;
44
44
  }
45
- `,ie=u.styled.div`
45
+ `,ie=f.styled.div`
46
46
  flex: 1;
47
47
  display: flex;
48
48
  flex-direction: column;
@@ -91,7 +91,7 @@
91
91
  background-color: transparent;
92
92
  }
93
93
 
94
- @media (max-width: ${I.MOBILE_SIZE_PX+"px"}) {
94
+ @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
95
95
  padding: 1.25rem;
96
96
 
97
97
  & .campaign-title {
@@ -111,7 +111,7 @@
111
111
  ${o?"":"flex-wrap: nowrap;"}
112
112
  ${e?"align-items: center;":""}
113
113
  ${c?"justify-content: center;":""}
114
- `,ne=u.styled(K.motion.div)`
114
+ `,ne=f.styled(K.motion.div)`
115
115
  text-decoration: none;
116
116
  ${e=>e.hasPermission===!0&&"cursor: pointer"};
117
117
 
@@ -135,7 +135,7 @@
135
135
  font-weight: 500;
136
136
  font-size: 0.875rem;
137
137
  line-height: 1.25rem;
138
- border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,"slight")};
138
+ border-radius: ${e=>T.getBorderRadiusValueWithUnits(e.theme,"slight")};
139
139
  transition: all 0.25s ease;
140
140
 
141
141
  & .logo-wrapper {
@@ -185,14 +185,14 @@
185
185
  background-color: var(--gray-95080, #14161acc);
186
186
  color: var(--gray-600, #676e79);
187
187
  }
188
- `,ae=u.styled.div`
188
+ `,ae=f.styled.div`
189
189
  position: absolute;
190
190
  top: 0.5rem;
191
191
  ${e=>e.alignToLeft===!0?"left: 0.5rem;":"right: 0.5rem;"}
192
192
  display: flex;
193
193
  gap: 0.25rem;
194
- `,le=e=>`var(--${e}-700)`,ce=u.styled.div`
195
- border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,e.borderRadius||"slight")};
194
+ `,le=e=>`var(--${e}-700)`,ce=f.styled.div`
195
+ border-radius: ${e=>T.getBorderRadiusValueWithUnits(e.theme,e.borderRadius||"slight")};
196
196
  background-color: ${e=>le(e==null?void 0:e.color)};
197
197
  color: white;
198
198
  height: 1.5rem;
@@ -207,7 +207,7 @@
207
207
  & i {
208
208
  font-size: 0.813rem;
209
209
  }
210
- `,X=e=>{const{uuid:o,hasPermission:c=!0,isUser:s,image:x,name:a,notifications:g=0,color:f="primary",size:w="large",style:$,disabled:l,onSelect:d=()=>{},isActive:y,className:b,themeData:m}=e,P={theme:M.useTheme(),color:f,size:w,style:$,disabled:l};return n.createElement(ne,{onClick:S=>{S.stopPropagation(),c===!0&&(d==null||d())},...P,key:a,animate:{y:0,opacity:1},className:`profile-item ${b}`,exit:{opacity:0},hasPermission:c,initial:{y:-10,opacity:0},isActive:y,themeColor:(m==null?void 0:m.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:x}),t.jsx("div",{className:"name",children:a}),g>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(ee,{className:"badge",color:"danger",size:"small",children:g>99?"99+":g})}))};X.propTypes={id:i.PropTypes.any,isUserProfile:i.PropTypes.bool,themeColor:i.PropTypes.string,image:i.PropTypes.any,name:i.PropTypes.string,notifications:i.PropTypes.number,style:i.PropTypes.object,className:i.PropTypes.string,color:i.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:i.PropTypes.oneOf(["large"]),onSelect:i.PropTypes.func,hasPermission:i.PropTypes.bool};const H=(e,o)=>{if(!e||!o)return null;let c=Math.floor((e==null?void 0:e.getTime())-(o==null?void 0:o.getTime())),s=1e3*60*60*24;return Math.ceil(c/s)},Y=e=>{const o=M.useTheme(),{uuid:c,shopUuid:s,title:x="",description:a,badges:g,coverPhoto:f,onSelect:w,status:$,startDate:l,endDate:d,salesPackages:y,shopName:b,shopImage:m,onSelectCard:h=()=>{},onSelectShop:P=()=>{},campaignSingleText:S,salesCampaignTypes:r=[],startsInPrefixTextPlural:j,startsinSuffixTextPlural:F,startsInPrefixTextSingular:k,startsinSuffixTextSingular:A,themeData:O,...R}=e,p=l?new Date(l)<=new Date:!1;H(d?new Date(d):null,l?new Date(l):null);const v=H(l?new Date(l):null,new Date);return t.jsxs(te,{theme:o,onClick:h,...R,children:[t.jsxs(oe,{theme:o,onClick:()=>w==null?void 0:w(),children:[t.jsx("img",{src:f}),t.jsx(ae,{children:y==null?void 0:y.map((C,E)=>{var N,W;return t.jsx(ce,{color:(N=r==null?void 0:r.find(B=>B.value===C))==null?void 0:N.color,theme:o,children:t.jsx(Q,{icon:(W=r==null?void 0:r.find(B=>B.value===C))==null?void 0:W.icon})},`package__${E}`)})})]}),t.jsxs(ie,{theme:o,children:[t.jsxs("div",{className:"text-block-wrapper",children:[t.jsxs("div",{className:"title-block-wrapper",children:[t.jsx("div",{className:"campaign-title",children:S}),t.jsx("div",{className:"campaign-title-text",children:x}),t.jsx("div",{className:"timestamp-text",children:p?"":v===1?`${k} ${v} ${A}`:`${j} ${v} ${F}`})]}),t.jsx("div",{children:a})]}),t.jsx(X,{hasPermission:!0,image:t.jsx("img",{src:m,className:`${m?"":"no-image"}`}),themeData:O,isActive:!0,isUser:!1,name:b,onClick:()=>P(s)})]})]})};Y.propTypes={title:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.element]),numberOfListings:i.PropTypes.number,dropdown:i.PropTypes.any,color:i.PropTypes.string};const de=u.styled.div`
210
+ `,X=e=>{const{uuid:o,hasPermission:c=!0,isUser:s,image:w,name:a,notifications:g=0,color:m="primary",size:b="large",style:j,disabled:l,onSelect:d=()=>{},isActive:$,className:y,themeData:x}=e,S={theme:M.useTheme(),color:m,size:b,style:j,disabled:l};return n.createElement(ne,{onClick:k=>{k.stopPropagation(),c===!0&&(d==null||d())},...S,key:a,animate:{y:0,opacity:1},className:`profile-item ${y}`,exit:{opacity:0},hasPermission:c,initial:{y:-10,opacity:0},isActive:$,themeColor:(x==null?void 0:x.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:w}),t.jsx("div",{className:"name",children:a}),g>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(ee,{className:"badge",color:"danger",size:"small",children:g>99?"99+":g})}))};X.propTypes={id:i.PropTypes.any,isUserProfile:i.PropTypes.bool,themeColor:i.PropTypes.string,image:i.PropTypes.any,name:i.PropTypes.string,notifications:i.PropTypes.number,style:i.PropTypes.object,className:i.PropTypes.string,color:i.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:i.PropTypes.oneOf(["large"]),onSelect:i.PropTypes.func,hasPermission:i.PropTypes.bool};const H=(e,o)=>{if(!e||!o)return null;let c=Math.floor((e==null?void 0:e.getTime())-(o==null?void 0:o.getTime())),s=1e3*60*60*24;return Math.ceil(c/s)},Y=e=>{const o=M.useTheme(),{uuid:c,shopUuid:s,title:w="",description:a,badges:g,coverPhoto:m,onSelect:b,status:j,startDate:l,endDate:d,salesPackages:$,shopName:y,shopImage:x,className:h,onSelectCard:S=()=>{},onSelectShop:k=()=>{},campaignSingleText:r,salesCampaignTypes:p=[],startsInPrefixTextPlural:N,startsinSuffixTextPlural:C,startsInPrefixTextSingular:B,startsinSuffixTextSingular:O,themeData:F,...u}=e,D=l?new Date(l)<=new Date:!1;H(d?new Date(d):null,l?new Date(l):null);const P=H(l?new Date(l):null,new Date);return t.jsxs(te,{theme:o,className:h,onClick:S,...u,children:[t.jsxs(oe,{theme:o,onClick:()=>b==null?void 0:b(),children:[t.jsx("img",{src:m}),t.jsx(ae,{children:$==null?void 0:$.map((I,A)=>{var R,W;return t.jsx(ce,{color:(R=p==null?void 0:p.find(v=>v.value===I))==null?void 0:R.color,theme:o,children:t.jsx(Q,{icon:(W=p==null?void 0:p.find(v=>v.value===I))==null?void 0:W.icon})},`package__${A}`)})})]}),t.jsxs(ie,{theme:o,children:[t.jsxs("div",{className:"text-block-wrapper",children:[t.jsxs("div",{className:"title-block-wrapper",children:[t.jsx("div",{className:"campaign-title",children:r}),t.jsx("div",{className:"campaign-title-text",children:w}),t.jsx("div",{className:"timestamp-text",children:D?"":P===1?`${B} ${P} ${O}`:`${N} ${P} ${C}`})]}),t.jsx("div",{children:a})]}),t.jsx(X,{hasPermission:!0,image:t.jsx("img",{src:x,className:`${x?"":"no-image"}`}),themeData:F,isActive:!0,isUser:!1,name:y,onClick:()=>k(s)})]})]})};Y.propTypes={title:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.element]),numberOfListings:i.PropTypes.number,dropdown:i.PropTypes.any,color:i.PropTypes.string};const de=f.styled.div`
211
211
  display: flex;
212
212
  flex-direction: column;
213
213
  gap: 1.5rem;
@@ -218,7 +218,7 @@
218
218
  position: absolute;
219
219
  top: 50%;
220
220
  left: 1.5rem;
221
- z-index: ${e=>D.isDefined(e.arrowsZIndex)?e.arrowsZIndex:20};
221
+ z-index: ${e=>T.isDefined(e.arrowsZIndex)?e.arrowsZIndex:20};
222
222
  }
223
223
 
224
224
  & .hover-right-arrow {
@@ -226,7 +226,7 @@
226
226
  position: absolute;
227
227
  top: 50%;
228
228
  right: 1.5rem;
229
- z-index: ${e=>D.isDefined(e.arrowsZIndex)?e.arrowsZIndex:20};
229
+ z-index: ${e=>T.isDefined(e.arrowsZIndex)?e.arrowsZIndex:20};
230
230
  }
231
231
 
232
232
  & .clip-loader-wrapper {
@@ -234,14 +234,14 @@
234
234
  padding: 0 1rem;
235
235
  }
236
236
 
237
- @media (max-width: ${I.MOBILE_SIZE_PX+"px"}) {
237
+ @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
238
238
  gap: 1.25rem;
239
239
  & .hover-left-arrow,
240
240
  .hover-right-arrow {
241
241
  display: flex;
242
242
  }
243
243
  }
244
- `,ge=u.styled.div`
244
+ `,ge=f.styled.div`
245
245
  display: flex;
246
246
  align-items: center;
247
247
 
@@ -256,13 +256,13 @@
256
256
  gap: 0.375rem;
257
257
  }
258
258
 
259
- @media (max-width: ${I.MOBILE_SIZE_PX+"px"}) {
259
+ @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
260
260
  padding: 0 1rem;
261
261
  & .btns-group {
262
262
  display: none;
263
263
  }
264
264
  }
265
- `,he=u.styled.div`
265
+ `,he=f.styled.div`
266
266
  position: relative;
267
267
  padding: ${e=>e.padding};
268
268
 
@@ -330,7 +330,7 @@
330
330
  visibility: ${e=>e.hasOverflow?"visible":"hidden"};
331
331
  }
332
332
 
333
- @media (max-width: ${I.MOBILE_SIZE_PX+"px"}) {
333
+ @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
334
334
  & .scroll-arrow-left,
335
335
  & .scroll-arrow-right {
336
336
  display: none;
@@ -340,7 +340,7 @@
340
340
  right: 0;
341
341
  }
342
342
  }
343
- `,pe=(e,o)=>{const[c,s]=n.useState({trigger:null,direction:null}),x=a=>a.touches||a.originalEvent.touches;return n.useEffect(()=>{const a=typeof e=="string"||e instanceof String?document.getElementById(e):e.current;let g=null,f=null;if(a){const w=l=>{const d=x(l)[0];g=d.clientX,f=d.clientY},$=l=>{if(!g||!f)return;const d=l.touches[0].clientX,y=l.touches[0].clientY,b=g-d,m=f-y;Math.abs(b)>Math.abs(m)?b>0?s(h=>({trigger:!h.trigger,direction:_.LEFT})):s(h=>({trigger:!h.trigger,direction:_.RIGHT})):m>0?s(h=>({trigger:!h.trigger,direction:_.UP})):s(h=>({trigger:!h.trigger,direction:_.DOWN})),g=null,f=null};return a.addEventListener("touchstart",w),a.addEventListener("touchmove",$),()=>{a.removeEventListener("touchstart",w),a.addEventListener("touchmove",$)}}},[]),c},_={UP:"up",DOWN:"down",RIGHT:"right",LEFT:"left"},J=n.forwardRef(({title:e,columnGap:o="2rem",rowGap:c="1.25rem",scrollBySize:s=300,wrapForMobile:x=!1,wrap:a=!1,children:g,methodsRef:f,arrowsVisibleOnHover:w=!0,rightAlignArrows:$=!1,padding:l="0",showTimesBtn:d,noArrows:y,onShowEnd:b,arrowsZIndex:m,...h},P)=>{const S=G.useDetectMobile(),r=M.useTheme(),[j,F]=n.useState(!1),[k,A]=n.useState(!1),[O,R]=n.useState(!0),p=n.useRef(),v=pe(p);n.useEffect(()=>{(v==null?void 0:v.direction)===_.RIGHT&&k!==!0?E():(v==null?void 0:v.direction)===_.LEFT&&j!==!0&&C()},[v]);const C=()=>{var T;(T=p.current)==null||T.scrollBy(s,0)},E=()=>{var T;(T=p.current)==null||T.scrollBy(-s,0)},[N,W]=n.useState(!1);n.useEffect(()=>{var T,U;W(((T=p==null?void 0:p.current)==null?void 0:T.scrollWidth)>((U=p==null?void 0:p.current)==null?void 0:U.clientWidth))},[g]),n.useImperativeHandle(f,()=>({scrollToEnd(){B()},scrollLeft(){E()},scrollRight(){C()}}));const B=()=>{p.current.scrollLeft=p.current.scrollWidth};return t.jsxs(de,{arrowsZIndex:m,children:[t.jsxs(ge,{children:[t.jsx("div",{children:e}),t.jsxs("div",{className:"btns-group",children:[t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-left",color:"neutral",disabled:k,icon:"angle-left",onClick:E}),t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-right",color:"neutral",disabled:j,icon:"angle-right",onClick:C})]})]}),t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"hover-left-arrow scroll-arrow-left",color:"neutral",disabled:k,icon:"angle-left",onClick:E}),t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"hover-right-arrow scroll-arrow-right",color:"neutral",disabled:j,icon:"angle-right",onClick:C}),t.jsx(he,{ref:P,arrowsVisibleOnHover:w,hasOverflow:N,noArrows:y,padding:l,rightAlignArrows:$,showTimesBtn:d,theme:r,...h,children:t.jsxs(re,{ref:p,className:"scrollable-container",columnGap:o,rowGap:c,wrap:a||x&&S?"Wrap":"NoWrap",children:[t.jsx(q.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{k===!0&&A(!1)},onIsVisible:()=>{k===!1&&A(!0)}}),g,t.jsx(q.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{j===!0&&F(!1),R(!0)},onIsVisible:()=>{j===!1&&F(!0),R(!1),b==null||b()}}),O&&N&&t.jsx("div",{className:"gradient"})]})})]})});J.propTypes={title:i.PropTypes.string,rowGap:i.PropTypes.string,columnGap:i.PropTypes.string,scrollBySize:i.PropTypes.number,wrapForMobile:i.PropTypes.bool,wrap:i.PropTypes.bool,methodsRef:i.PropTypes.any,arrowsVisibleOnHover:i.PropTypes.bool,rightAlignArrows:i.PropTypes.bool,padding:i.PropTypes.string};const ue=u.styled.div`
343
+ `,pe=(e,o)=>{const[c,s]=n.useState({trigger:null,direction:null}),w=a=>a.touches||a.originalEvent.touches;return n.useEffect(()=>{const a=typeof e=="string"||e instanceof String?document.getElementById(e):e.current;let g=null,m=null;if(a){const b=l=>{const d=w(l)[0];g=d.clientX,m=d.clientY},j=l=>{if(!g||!m)return;const d=l.touches[0].clientX,$=l.touches[0].clientY,y=g-d,x=m-$;Math.abs(y)>Math.abs(x)?y>0?s(h=>({trigger:!h.trigger,direction:_.LEFT})):s(h=>({trigger:!h.trigger,direction:_.RIGHT})):x>0?s(h=>({trigger:!h.trigger,direction:_.UP})):s(h=>({trigger:!h.trigger,direction:_.DOWN})),g=null,m=null};return a.addEventListener("touchstart",b),a.addEventListener("touchmove",j),()=>{a.removeEventListener("touchstart",b),a.addEventListener("touchmove",j)}}},[]),c},_={UP:"up",DOWN:"down",RIGHT:"right",LEFT:"left"},J=n.forwardRef(({title:e,columnGap:o="2rem",rowGap:c="1.25rem",scrollBySize:s=300,wrapForMobile:w=!1,wrap:a=!1,children:g,methodsRef:m,arrowsVisibleOnHover:b=!0,rightAlignArrows:j=!1,padding:l="0",showTimesBtn:d,noArrows:$,onShowEnd:y,arrowsZIndex:x,...h},S)=>{const k=G.useDetectMobile(),r=M.useTheme(),[p,N]=n.useState(!1),[C,B]=n.useState(!1),[O,F]=n.useState(!0),u=n.useRef(),D=pe(u);n.useEffect(()=>{(D==null?void 0:D.direction)===_.RIGHT&&C!==!0?I():(D==null?void 0:D.direction)===_.LEFT&&p!==!0&&P()},[D]);const P=()=>{var v;(v=u.current)==null||v.scrollBy(s,0)},I=()=>{var v;(v=u.current)==null||v.scrollBy(-s,0)},[A,R]=n.useState(!1);n.useEffect(()=>{var v,U;R(((v=u==null?void 0:u.current)==null?void 0:v.scrollWidth)>((U=u==null?void 0:u.current)==null?void 0:U.clientWidth))},[g]),n.useImperativeHandle(m,()=>({scrollToEnd(){W()},scrollLeft(){I()},scrollRight(){P()}}));const W=()=>{u.current.scrollLeft=u.current.scrollWidth};return t.jsxs(de,{arrowsZIndex:x,children:[t.jsxs(ge,{children:[t.jsx("div",{children:e}),t.jsxs("div",{className:"btns-group",children:[t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-left",color:"neutral",disabled:C,icon:"angle-left",onClick:I}),t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-right",color:"neutral",disabled:p,icon:"angle-right",onClick:P})]})]}),t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"hover-left-arrow scroll-arrow-left",color:"neutral",disabled:C,icon:"angle-left",onClick:I}),t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"hover-right-arrow scroll-arrow-right",color:"neutral",disabled:p,icon:"angle-right",onClick:P}),t.jsx(he,{ref:S,arrowsVisibleOnHover:b,hasOverflow:A,noArrows:$,padding:l,rightAlignArrows:j,showTimesBtn:d,theme:r,...h,children:t.jsxs(re,{ref:u,className:"scrollable-container",columnGap:o,rowGap:c,wrap:a||w&&k?"Wrap":"NoWrap",children:[t.jsx(q.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{C===!0&&B(!1)},onIsVisible:()=>{C===!1&&B(!0)}}),g,t.jsx(q.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{p===!0&&N(!1),F(!0)},onIsVisible:()=>{p===!1&&N(!0),F(!1),y==null||y()}}),O&&A&&t.jsx("div",{className:"gradient"})]})})]})});J.propTypes={title:i.PropTypes.string,rowGap:i.PropTypes.string,columnGap:i.PropTypes.string,scrollBySize:i.PropTypes.number,wrapForMobile:i.PropTypes.bool,wrap:i.PropTypes.bool,methodsRef:i.PropTypes.any,arrowsVisibleOnHover:i.PropTypes.bool,rightAlignArrows:i.PropTypes.bool,padding:i.PropTypes.string};const ue=f.styled.div`
344
344
  display: flex;
345
345
  flex-direction: column;
346
346
  gap: 1.5rem;
@@ -357,32 +357,36 @@
357
357
  font-weight: 500;
358
358
  }
359
359
 
360
+ & .gradient {
361
+ background: transparent;
362
+ }
363
+
360
364
  & .campaign-item {
361
365
  min-width: calc(50% - 0.87rem);
362
366
  width: calc(50% - 0.87rem);
363
367
  margin-right: 1.25rem;
364
368
  }
365
369
 
366
- @media (max-width: ${I.MOBILE_SIZE_PX+"px"}) {
370
+ @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
367
371
  & .campaign-item {
368
372
  min-width: 100%;
369
373
  width: 100%;
370
374
  margin-right: 0;
371
375
  }
372
376
  }
373
- `,L=u.styled.div`
377
+ `,L=f.styled.div`
374
378
  width: ${e=>e.width||"100%"};
375
379
  height: ${e=>(e.heightCoeff||1)*1.125}rem;
376
380
  background-color: var(--gray-200, #dddfe4);
377
381
 
378
- ${D.linearGradientAnimation("-90deg")}
379
- `,fe=u.styled.div`
382
+ ${T.linearGradientAnimation("-90deg")}
383
+ `,fe=f.styled.div`
380
384
  display: flex;
381
385
  flex-direction: ${e=>e!=null&&e.row?"row":"column"};
382
386
  gap: ${e=>(e==null?void 0:e.gap)??"0.5rem"};
383
387
  width: ${e=>(e==null?void 0:e.width)??"100%"};
384
- `,Z=u.styled.div`
385
- border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,(e==null?void 0:e.borderRadius)??"regular")};
388
+ `,Z=f.styled.div`
389
+ border-radius: ${e=>T.getBorderRadiusValueWithUnits(e.theme,(e==null?void 0:e.borderRadius)??"regular")};
386
390
  background: var(--gray-200, #dddfe4);
387
391
  position: relative;
388
392
  max-height: ${e=>(e==null?void 0:e.height)??"5rem"};
@@ -391,10 +395,10 @@
391
395
  width: ${e=>(e==null?void 0:e.width)??"5rem"};
392
396
  flex-shrink: 0;
393
397
 
394
- ${D.linearGradientAnimation()}
395
- `,me=u.styled.div`
398
+ ${T.linearGradientAnimation()}
399
+ `,me=f.styled.div`
396
400
  background: var(--white, #fff);
397
- border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,"edged")};
401
+ border-radius: ${e=>T.getBorderRadiusValueWithUnits(e.theme,"edged")};
398
402
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
399
403
  border: 1px solid var(--gray-95012, #14161a1f);
400
404
 
@@ -420,4 +424,4 @@
420
424
  align-items: center;
421
425
  gap: 0.5rem;
422
426
  }
423
- `,xe=n.forwardRef(({},e)=>{const o=M.useTheme();return t.jsxs(me,{ref:e,theme:o,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(Z,{theme:o,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(fe,{theme:o,children:[t.jsx(L,{heightCoeff:.75,theme:o,width:"35%"}),t.jsx(L,{heightCoeff:1.25,theme:o}),t.jsx(L,{heightCoeff:3,theme:o})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(Z,{theme:o,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(L,{theme:o,width:"75%"})]})]})]})}),we=({itemsCount:e=5,keyPrefix:o})=>t.jsx(t.Fragment,{children:Array.from({length:e},(c,s)=>t.jsx(xe,{},`${o}-skeleton-campaign-card-${s}`))}),be=({children:e,fallbackComponent:o=t.jsx(t.Fragment,{}),isLoading:c=!1,itemsCount:s=5,keyPrefix:x})=>t.jsx(n.Suspense,{fallback:o,children:c===!0?t.jsx(we,{itemsCount:s,keyPrefix:x}):e}),ye=n.memo(Y),ve=n.forwardRef(({sellerType:e="Shop",items:o=[],title:c,isLoading:s,onSelectCard:x=()=>{},onSelectShop:a=()=>{},getImage:g=()=>{},customScrollSize:f,campaignSingleText:w,salesCampaignTypes:$=[],startsInPrefixTextPlural:l,startsinSuffixTextPlural:d,startsInPrefixTextSingular:y,startsinSuffixTextSingular:b},m)=>{const h=n.useRef(),P=G.useDetectMobile(),S=n.useMemo(()=>o==null?void 0:o.map((r,j)=>t.jsx(ye,{className:"campaign-item",coverPhoto:g(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,startDate:r==null?void 0:r.startDate,title:r==null?void 0:r.name,uuid:r==null?void 0:r.campaignUuid,onSelectCard:()=>x(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>a(r==null?void 0:r.shopUuid),campaignSingleText:w,salesCampaignTypes:$,startsInPrefixTextPlural:l,startsinSuffixTextPlural:d,startsInPrefixTextSingular:y,startsinSuffixTextSingular:b,themeData:r==null?void 0:r.themeData},`campaign__item__${j}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}`)),[o]);return t.jsx(t.Fragment,{children:(o==null?void 0:o.length)>0&&t.jsx(ue,{ref:m,className:"row-section-scroll",children:t.jsx(J,{arrowsVisibleOnHover:!1,columnGap:"0",methodsRef:h,mobileHoverScrollButtons:!0,noArrows:!0,padding:"0.25rem 0",rightAlignArrows:!0,scrollBySize:P?window.innerWidth:f>0?f:window.innerWidth,showTimesBtn:!1,title:c,onShowEnd:()=>{},arrowsZIndex:11,children:t.jsx(be,{isLoading:s,itemsCount:2,keyPrefix:"sales-camp",children:S})})})})});module.exports=ve;
427
+ `,xe=n.forwardRef(({},e)=>{const o=M.useTheme();return t.jsxs(me,{ref:e,theme:o,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(Z,{theme:o,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(fe,{theme:o,children:[t.jsx(L,{heightCoeff:.75,theme:o,width:"35%"}),t.jsx(L,{heightCoeff:1.25,theme:o}),t.jsx(L,{heightCoeff:3,theme:o})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(Z,{theme:o,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(L,{theme:o,width:"75%"})]})]})]})}),we=({itemsCount:e=5,keyPrefix:o})=>t.jsx(t.Fragment,{children:Array.from({length:e},(c,s)=>t.jsx(xe,{},`${o}-skeleton-campaign-card-${s}`))}),be=({children:e,fallbackComponent:o=t.jsx(t.Fragment,{}),isLoading:c=!1,itemsCount:s=5,keyPrefix:w})=>t.jsx(n.Suspense,{fallback:o,children:c===!0?t.jsx(we,{itemsCount:s,keyPrefix:w}):e}),ye=n.memo(Y),ve=n.forwardRef(({sellerType:e="Shop",items:o=[],title:c,isLoading:s,onSelectCard:w=()=>{},onSelectShop:a=()=>{},getImage:g=()=>{},customScrollSize:m,campaignSingleText:b,salesCampaignTypes:j=[],startsInPrefixTextPlural:l,startsinSuffixTextPlural:d,startsInPrefixTextSingular:$,startsinSuffixTextSingular:y},x)=>{const h=n.useRef(),S=G.useDetectMobile(),k=n.useMemo(()=>o==null?void 0:o.map((r,p)=>t.jsx(ye,{className:"campaign-item",coverPhoto:g(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,startDate:r==null?void 0:r.startDate,title:r==null?void 0:r.name,uuid:r==null?void 0:r.campaignUuid,onSelectCard:()=>w(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>a(r==null?void 0:r.shopUuid),campaignSingleText:b,salesCampaignTypes:j,startsInPrefixTextPlural:l,startsinSuffixTextPlural:d,startsInPrefixTextSingular:$,startsinSuffixTextSingular:y,themeData:r==null?void 0:r.themeData},`campaign__item__${p}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}`)),[o]);return t.jsx(t.Fragment,{children:(o==null?void 0:o.length)>0&&t.jsx(ue,{ref:x,className:"row-section-scroll",children:t.jsx(J,{arrowsVisibleOnHover:!1,columnGap:"0",methodsRef:h,mobileHoverScrollButtons:!0,noArrows:!0,padding:"0.25rem 0",rightAlignArrows:!0,scrollBySize:S?window.innerWidth:m>0?m:window.innerWidth,showTimesBtn:!1,title:c,onShowEnd:()=>{},arrowsZIndex:11,children:t.jsx(be,{isLoading:s,itemsCount:2,keyPrefix:"sales-camp",children:k})})})})});module.exports=ve;