@lanaco/lnc-react-ui 4.0.93 → 4.0.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +1 -1
  3. package/dist/AccordionSummary.cjs +1 -1
  4. package/dist/AccordionSummary.js +1 -1
  5. package/dist/ActionsToolbar.cjs +1 -1
  6. package/dist/ActionsToolbar.js +1 -1
  7. package/dist/Alert.cjs +1 -1
  8. package/dist/Alert.js +1 -1
  9. package/dist/Avatar.cjs +1 -1
  10. package/dist/Avatar.js +1 -1
  11. package/dist/Badge.cjs +1 -1
  12. package/dist/Badge.js +1 -1
  13. package/dist/BannerSectionCarousel.cjs +16 -2
  14. package/dist/BannerSectionCarousel.js +16 -1
  15. package/dist/BannerSectionWithList.cjs +1 -1
  16. package/dist/BannerSectionWithList.js +1 -1
  17. package/dist/BlogCardsSponsoredSection.cjs +4 -3
  18. package/dist/BlogCardsSponsoredSection.js +4 -3
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +1 -1
  21. package/dist/BlogListSection.cjs +1 -1
  22. package/dist/BlogListSection.js +3 -3
  23. package/dist/BlogProductCardsSection.cjs +1 -1
  24. package/dist/BlogProductCardsSection.js +2 -2
  25. package/dist/BlogShopCardsSection.cjs +1 -1
  26. package/dist/BlogShopCardsSection.js +1 -1
  27. package/dist/BlogSingleSection.cjs +1 -1
  28. package/dist/BlogSingleSection.js +2 -2
  29. package/dist/BlogsSectionDetailed.cjs +2 -2
  30. package/dist/BlogsSectionDetailed.js +4 -3
  31. package/dist/BlogsSectionLarge.cjs +1 -1
  32. package/dist/BlogsSectionLarge.js +2 -2
  33. package/dist/BlogsSectionSimple.cjs +5 -5
  34. package/dist/BlogsSectionSimple.js +22 -21
  35. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  36. package/dist/BlogsSectionSimpleCentered.js +2 -2
  37. package/dist/BlogsSectionWithFilters.cjs +1 -1
  38. package/dist/BlogsSectionWithFilters.js +4 -4
  39. package/dist/BrandHitsSection.cjs +1 -1
  40. package/dist/BrandHitsSection.js +1 -1
  41. package/dist/Breadcrumbs.cjs +1 -1
  42. package/dist/Breadcrumbs.js +1 -1
  43. package/dist/Button.cjs +1 -1
  44. package/dist/Button.js +1 -1
  45. package/dist/ButtonGroup.cjs +1 -1
  46. package/dist/ButtonGroup.js +1 -1
  47. package/dist/CalorieCalculatorSection.cjs +1 -1
  48. package/dist/CalorieCalculatorSection.js +1 -1
  49. package/dist/CheckBoxInput.cjs +1 -1
  50. package/dist/CheckBoxInput.js +1 -1
  51. package/dist/Chip.cjs +1 -1
  52. package/dist/Chip.js +1 -1
  53. package/dist/ColorInput.cjs +1 -1
  54. package/dist/ColorInput.js +1 -1
  55. package/dist/ConfirmationForm.cjs +1 -1
  56. package/dist/ConfirmationForm.js +1 -1
  57. package/dist/CustomLoanMapSection.cjs +1 -1
  58. package/dist/CustomLoanMapSection.js +1 -1
  59. package/dist/{CustomStyles-DYULk9y7.js → CustomStyles-9CHBrzIM.js} +1 -1
  60. package/dist/{CustomStyles-Uqkz9jDo.cjs → CustomStyles-BoYYyJVV.cjs} +1 -1
  61. package/dist/DateInput.cjs +1 -1
  62. package/dist/DateInput.js +1 -1
  63. package/dist/DecimalInput.cjs +1 -1
  64. package/dist/DecimalInput.js +1 -1
  65. package/dist/DecimalInputV2.cjs +1 -1
  66. package/dist/DecimalInputV2.js +1 -1
  67. package/dist/DetailedProductsSection.cjs +1 -1
  68. package/dist/DetailedProductsSection.js +4 -4
  69. package/dist/DetailsView.cjs +1 -1
  70. package/dist/DetailsView.js +1 -1
  71. package/dist/DoubleRangeSlider.cjs +1 -1
  72. package/dist/DoubleRangeSlider.js +1 -1
  73. package/dist/DragAndDropFile.cjs +1 -1
  74. package/dist/DragAndDropFile.js +1 -1
  75. package/dist/DragDropFiles.cjs +1 -1
  76. package/dist/DragDropFiles.js +1 -1
  77. package/dist/Drawer.cjs +1 -1
  78. package/dist/Drawer.js +1 -1
  79. package/dist/Dropdown.cjs +1 -1
  80. package/dist/Dropdown.js +2 -2
  81. package/dist/DropdownItem.cjs +1 -1
  82. package/dist/DropdownItem.js +1 -1
  83. package/dist/DropdownLookup.cjs +1 -1
  84. package/dist/DropdownLookup.js +1 -1
  85. package/dist/DropdownMenu.cjs +1 -1
  86. package/dist/DropdownMenu.js +1 -1
  87. package/dist/EditableTable.cjs +1 -1
  88. package/dist/EditableTable.js +1 -1
  89. package/dist/FeedbackSection.cjs +1 -1
  90. package/dist/FeedbackSection.js +1 -1
  91. package/dist/FieldOfInterestsMasonrySection.cjs +32 -8
  92. package/dist/FieldOfInterestsMasonrySection.js +83 -59
  93. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  94. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
  95. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  96. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  97. package/dist/FileInput.cjs +1 -1
  98. package/dist/FileInput.js +1 -1
  99. package/dist/FlexGridItem.cjs +1 -1
  100. package/dist/FlexGridItem.js +1 -1
  101. package/dist/FormField.cjs +1 -1
  102. package/dist/FormField.js +1 -1
  103. package/dist/FormView.cjs +1 -1
  104. package/dist/FormView.js +1 -1
  105. package/dist/GeneralWithTagsCardsSection.cjs +3 -3
  106. package/dist/GeneralWithTagsCardsSection.js +3 -3
  107. package/dist/GiftCardsSection.cjs +4 -4
  108. package/dist/GiftCardsSection.js +30 -29
  109. package/dist/Icon.cjs +1 -1
  110. package/dist/Icon.js +1 -1
  111. package/dist/IconButton.cjs +1 -1
  112. package/dist/IconButton.js +1 -1
  113. package/dist/Kanban.cjs +1 -1
  114. package/dist/Kanban.js +1 -1
  115. package/dist/KanbanActionsToolbar.cjs +1 -1
  116. package/dist/KanbanActionsToolbar.js +1 -1
  117. package/dist/KanbanView.cjs +1 -1
  118. package/dist/KanbanView.js +1 -1
  119. package/dist/Link.cjs +1 -1
  120. package/dist/Link.js +1 -1
  121. package/dist/LoanCalculatorSection.cjs +1 -1
  122. package/dist/LoanCalculatorSection.js +1 -1
  123. package/dist/LocationFinderSection.cjs +1 -1
  124. package/dist/LocationFinderSection.js +1 -1
  125. package/dist/LocationSearchSection.cjs +1 -1
  126. package/dist/LocationSearchSection.js +1 -1
  127. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  128. package/dist/MasonryGeneralCardsSection.js +1 -1
  129. package/dist/MenuItem.cjs +1 -1
  130. package/dist/MenuItem.js +1 -1
  131. package/dist/Modal.cjs +1 -1
  132. package/dist/Modal.js +1 -1
  133. package/dist/MultiSelectDropdown.cjs +1 -1
  134. package/dist/MultiSelectDropdown.js +1 -1
  135. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  136. package/dist/MultiSelectDropdownLookup.js +1 -1
  137. package/dist/NestedDropdownItem.cjs +1 -1
  138. package/dist/NestedDropdownItem.js +1 -1
  139. package/dist/NestedMenuItem.cjs +1 -1
  140. package/dist/NestedMenuItem.js +1 -1
  141. package/dist/NotificationContainer.cjs +1 -1
  142. package/dist/NotificationContainer.js +1 -1
  143. package/dist/NotificationMessage.cjs +1 -1
  144. package/dist/NotificationMessage.js +1 -1
  145. package/dist/NumberInput.cjs +4 -4
  146. package/dist/NumberInput.js +79 -79
  147. package/dist/OverlayGeneralCardsSection.cjs +2 -2
  148. package/dist/OverlayGeneralCardsSection.js +3 -3
  149. package/dist/PasswordInput.cjs +1 -1
  150. package/dist/PasswordInput.js +1 -1
  151. package/dist/PopoverContent.cjs +1 -1
  152. package/dist/PopoverContent.js +1 -1
  153. package/dist/ProductsWithBannerSection.cjs +1 -1
  154. package/dist/ProductsWithBannerSection.js +3 -3
  155. package/dist/ProgressBar.cjs +1 -1
  156. package/dist/ProgressBar.js +1 -1
  157. package/dist/QuattroCardsSection.cjs +18 -18
  158. package/dist/QuattroCardsSection.js +35 -35
  159. package/dist/QuizSection.cjs +1 -1
  160. package/dist/QuizSection.js +1 -1
  161. package/dist/RadioInput.cjs +1 -1
  162. package/dist/RadioInput.js +1 -1
  163. package/dist/RangeSlider.cjs +1 -1
  164. package/dist/RangeSlider.js +1 -1
  165. package/dist/ReviewsSection.cjs +1 -1
  166. package/dist/ReviewsSection.js +2 -2
  167. package/dist/SalesCampaignsSection.cjs +43 -39
  168. package/dist/SalesCampaignsSection.js +436 -387
  169. package/dist/Separator.cjs +1 -1
  170. package/dist/Separator.js +1 -1
  171. package/dist/ShopCardsSection.cjs +3 -2
  172. package/dist/ShopCardsSection.js +3 -2
  173. package/dist/Sidebar.cjs +1 -1
  174. package/dist/Sidebar.js +1 -1
  175. package/dist/SimpleCategoriesSection.cjs +2 -2
  176. package/dist/SimpleCategoriesSection.js +19 -18
  177. package/dist/SimpleProductsSection.cjs +1 -1
  178. package/dist/SimpleProductsSection.js +2 -2
  179. package/dist/Spinner.cjs +1 -1
  180. package/dist/Spinner.js +1 -1
  181. package/dist/Surface.cjs +1 -1
  182. package/dist/Surface.js +1 -1
  183. package/dist/SwipeableDrawer.cjs +1 -1
  184. package/dist/SwipeableDrawer.js +1 -1
  185. package/dist/TabItem.cjs +1 -1
  186. package/dist/TabItem.js +1 -1
  187. package/dist/Table.cjs +1 -1
  188. package/dist/Table.js +67 -67
  189. package/dist/TableView.cjs +1 -1
  190. package/dist/TableView.js +1 -1
  191. package/dist/TextAreaInput.cjs +1 -1
  192. package/dist/TextAreaInput.js +1 -1
  193. package/dist/TextInput.cjs +19 -19
  194. package/dist/TextInput.js +70 -70
  195. package/dist/ThemeProvider.cjs +1 -1
  196. package/dist/ThemeProvider.js +1 -1
  197. package/dist/TimeInput.cjs +1 -1
  198. package/dist/TimeInput.js +1 -1
  199. package/dist/Toggle.cjs +1 -1
  200. package/dist/Toggle.js +1 -1
  201. package/dist/TreeMenuSeparator.cjs +1 -1
  202. package/dist/TreeMenuSeparator.js +1 -1
  203. package/dist/UploadedFile.cjs +1 -1
  204. package/dist/UploadedFile.js +1 -1
  205. package/dist/UrgentSaleProductsSection.cjs +1 -1
  206. package/dist/UrgentSaleProductsSection.js +1 -1
  207. package/dist/{index-Kx8irvHH.js → index-4fcFA8kU.js} +1 -1
  208. package/dist/{index-DpdPtPbo.js → index-BKeVVABC.js} +1 -1
  209. package/dist/{index-DZDz9qZP.cjs → index-C1a0CtEE.cjs} +1 -1
  210. package/dist/{index-66FyQgVV.cjs → index-Ce6e4efi.cjs} +1 -1
  211. package/dist/{index-D86vS9UF.js → index-DQyZFR-C.js} +1 -1
  212. package/dist/{index-DMysapsB.cjs → index-DkzN10w_.cjs} +1 -1
  213. package/dist/{index-DfHm_Mv1.js → index-DtlD7gBK.js} +4 -4
  214. package/dist/{index-D8lR_JKg.cjs → index-DyMv0g-E.cjs} +2 -2
  215. package/dist/{index-BRgZcjpI.cjs → index-XrPpEvxt.cjs} +1 -1
  216. package/dist/{index-Cru8Sd2q.js → index-yrKiIPH4.js} +2 -2
  217. package/dist/index.cjs +1 -1
  218. package/dist/index.js +1 -1
  219. package/dist/{skeleton-TrselJrj.js → skeleton-BSnQLxpv.js} +1 -1
  220. package/dist/{skeleton-DwZzdFei.cjs → skeleton-C2HxO51q.cjs} +1 -1
  221. package/dist/{skeleton-BrUEdt6Z.js → skeleton-DLOaT8ip.js} +2 -2
  222. package/dist/{skeleton-BcaMeKFQ.cjs → skeleton-DdxUz868.cjs} +1 -1
  223. package/dist/{style-B8wrlDzY.cjs → style-Ce-JyTaX.cjs} +5 -1
  224. package/dist/{style-C3-67TPD.js → style-DU0BlP5D.js} +5 -1
  225. package/dist/{suspense-categories-card-simple-BCn3U1cz.js → suspense-categories-card-simple-BKWKpuwr.js} +1 -1
  226. package/dist/{suspense-categories-card-simple-B2swGa6t.cjs → suspense-categories-card-simple-CkULM0Bi.cjs} +1 -1
  227. package/dist/{suspense-large-DgzTM-qh.js → suspense-large-C-YSgzDe.js} +1 -1
  228. package/dist/{suspense-large-DMhn-lIG.cjs → suspense-large-ZUb9b6MG.cjs} +1 -1
  229. package/dist/{suspense-product-card-detailed-CuExvgd_.cjs → suspense-product-card-detailed-EXZJLtNh.cjs} +2 -2
  230. package/dist/{suspense-product-card-detailed-D7hKisw1.js → suspense-product-card-detailed-Z0emIstD.js} +4 -4
  231. package/dist/{suspense-product-card-simple-zYdZVLRz.cjs → suspense-product-card-simple-CVbhvQWo.cjs} +1 -1
  232. package/dist/{suspense-product-card-simple-BIVIVybi.js → suspense-product-card-simple-DF6bMLDk.js} +1 -1
  233. package/dist/utils-BOtq2mcF.cjs +51 -0
  234. package/dist/{utils-BXCGNjIy.js → utils-WHYrEnYF.js} +65 -52
  235. package/package.json +1 -1
  236. package/dist/utils-BWzf4vLl.cjs +0 -51
@@ -1,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-BWzf4vLl.cjs"),E=require("./consts-goSZX3xP.cjs"),ee=require("./motion-B_VPZaJq.cjs"),i=require("./index-BPVoEhTF.cjs"),re=require("./Icon.cjs"),te=require("./Badge.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),X=require("./useDetectMobile-zkbzoOGV.cjs"),oe=require("./FlexBox.cjs"),V=require("./index-CHDRU86t.cjs"),z=require("./IconButton.cjs"),ie=u.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),i=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./utils-BOtq2mcF.cjs"),B=require("./consts-goSZX3xP.cjs"),re=require("./motion-B_VPZaJq.cjs"),n=require("./index-BPVoEhTF.cjs"),te=require("./Icon.cjs"),oe=require("./Badge.cjs"),z=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),Y=require("./useDetectMobile-zkbzoOGV.cjs"),ne=require("./FlexBox.cjs"),H=require("./index-CHDRU86t.cjs"),O=require("./IconButton.cjs");var ie=function(e){return e===void 0&&(e={laptopL:1440,laptop:1024,tablet:768}),function(){var o=i.useState(v.isBrowser?window.innerWidth:0),a=o[0],l=o[1];i.useEffect(function(){var s=function(){l(window.innerWidth)};return s(),v.on(window,"resize",s),function(){v.off(window,"resize",s)}});var f=i.useMemo(function(){return Object.entries(e).sort(function(s,g){return s[1]>=g[1]?1:-1})},[e]),c=f.reduce(function(s,g){var b=g[0],m=g[1];return a>=m?b:s},f[0][0]);return c}};const se=w.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: ${E.MOBILE_SIZE_PX+"px"}) {
9
+ @media (max-width: ${B.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
- `,se=u.styled.div`
17
- border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,"edged")};
16
+ `,ae=w.styled.div`
17
+ border-radius: ${e=>v.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: ${E.MOBILE_SIZE_PX+"px"}) {
40
+ @media (max-width: ${B.MOBILE_SIZE_PX+"px"}) {
41
41
  width: 100%;
42
42
  max-width: 100dvh;
43
43
  height: 23.438rem;
44
44
  }
45
- `,ne=u.styled.div`
45
+ `,le=w.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: ${E.MOBILE_SIZE_PX+"px"}) {
94
+ @media (max-width: ${B.MOBILE_SIZE_PX+"px"}) {
95
95
  padding: 1.25rem;
96
96
 
97
97
  & .campaign-title {
@@ -105,13 +105,13 @@
105
105
  gap: 0.25rem;
106
106
  }
107
107
  }
108
- `,ae={"#ADE3EB":"#76D0DB","#DDD6FE":"#C4B5FD","#FDE68A":"#FCD34D","#A7F3D0":"#6EE7B7","#BADFFF":"#87C6FA","#FECDD3":"#FDA4AF","#EFE2CF":"#EAD2AF","#DDDFE4":"#C4C8CF","#E7E5E4":"#D6D3D1","#FED7AA":"#FDBA74",default:"#C4C8CF"},H=(e=!1,o=!1,c=!1)=>`
108
+ `,ce={"#ADE3EB":"#76D0DB","#DDD6FE":"#C4B5FD","#FDE68A":"#FCD34D","#A7F3D0":"#6EE7B7","#BADFFF":"#87C6FA","#FECDD3":"#FDA4AF","#EFE2CF":"#EAD2AF","#DDDFE4":"#C4C8CF","#E7E5E4":"#D6D3D1","#FED7AA":"#FDBA74",default:"#C4C8CF"},Z=(e=!1,o=!1,a=!1)=>`
109
109
  display: flex;
110
110
  ${o?"flex-wrap: wrap;":""}
111
111
  ${o?"":"flex-wrap: nowrap;"}
112
112
  ${e?"align-items: center;":""}
113
- ${c?"justify-content: center;":""}
114
- `,le=u.styled(ee.motion.div)`
113
+ ${a?"justify-content: center;":""}
114
+ `,de=w.styled(re.motion.div)`
115
115
  text-decoration: none;
116
116
  ${e=>e.hasPermission===!0&&"cursor: pointer"};
117
117
 
@@ -128,22 +128,22 @@
128
128
  text-decoration: none;
129
129
  }
130
130
 
131
- ${H(!0)}
131
+ ${Z(!0)}
132
132
  gap: 0.5rem;
133
133
  padding: 0.5rem;
134
134
  color: ${e=>e.isActive===!1?"var(--gray-900)":"var(--primary-600)"};
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=>v.getBorderRadiusValueWithUnits(e.theme,"slight")};
139
139
  transition: all 0.25s ease;
140
140
 
141
141
  & .logo-wrapper {
142
- ${H(!0,!1,!0)}
142
+ ${Z(!0,!1,!0)}
143
143
  flex-shrink: 0;
144
144
  border-radius: 999px;
145
145
  border: 3px solid
146
- ${e=>e.isActive===!1?"var(--gray-300, #c4c8cf)":ae[e.themeColor]??"var(--gray-300, #c4c8cf)"};
146
+ ${e=>e.isActive===!1?"var(--gray-300, #c4c8cf)":ce[e.themeColor]??"var(--gray-300, #c4c8cf)"};
147
147
 
148
148
  & img,
149
149
  .img-placeholder {
@@ -185,15 +185,15 @@
185
185
  background-color: var(--gray-95080, #14161acc);
186
186
  color: var(--gray-600, #676e79);
187
187
  }
188
- `,ce=u.styled.div`
188
+ `,he=w.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
- `,de=e=>`var(--${e}-700)`,ge=u.styled.div`
195
- border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,e.borderRadius||"slight")};
196
- background-color: ${e=>de(e==null?void 0:e.color)};
194
+ `,ge=e=>`var(--${e}-700)`,ue=w.styled.div`
195
+ border-radius: ${e=>v.getBorderRadiusValueWithUnits(e.theme,e.borderRadius||"slight")};
196
+ background-color: ${e=>ge(e==null?void 0:e.color)};
197
197
  color: white;
198
198
  height: 1.5rem;
199
199
  min-width: 1.5rem;
@@ -207,7 +207,7 @@
207
207
  & i {
208
208
  font-size: 0.813rem;
209
209
  }
210
- `,Y=e=>{const{uuid:o,hasPermission:c=!0,isUser:s,image:x,name:a,notifications:h=0,color:f="primary",size:w="large",style:j,disabled:l,onSelect:g=()=>{},isActive:y,className:b,themeData:m}=e,P={theme:M.useTheme(),color:f,size:w,style:j,disabled:l};return n.createElement(le,{onClick:S=>{S.stopPropagation(),c===!0&&(g==null||g())},...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}),h>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(te,{className:"badge",color:"danger",size:"small",children:h>99?"99+":h})}))};Y.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 Z=(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)},J=e=>{const o=M.useTheme(),{uuid:c,shopUuid:s,title:x="",description:a,badges:h,coverPhoto:f,onSelect:w,status:j,startDate:l,endDate:g,salesPackages:y,shopName:b,shopImage:m,className:p,onSelectCard:P=()=>{},onSelectShop:S=()=>{},campaignSingleText:r,salesCampaignTypes:v=[],startsInPrefixTextPlural:O,startsinSuffixTextPlural:k,startsInPrefixTextSingular:A,startsinSuffixTextSingular:C,themeData:R,...U}=e,W=l?new Date(l)<=new Date:!1;Z(g?new Date(g):null,l?new Date(l):null);const d=Z(l?new Date(l):null,new Date);return t.jsxs(ie,{theme:o,className:p,onClick:P,...U,children:[t.jsxs(se,{theme:o,onClick:()=>w==null?void 0:w(),children:[t.jsx("img",{src:f}),t.jsx(ce,{children:y==null?void 0:y.map(($,_)=>{var I,B;return t.jsx(ge,{color:(I=v==null?void 0:v.find(F=>F.value===$))==null?void 0:I.color,theme:o,children:t.jsx(re,{icon:(B=v==null?void 0:v.find(F=>F.value===$))==null?void 0:B.icon})},`package__${_}`)})})]}),t.jsxs(ne,{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:x}),t.jsx("div",{className:"timestamp-text",children:W?"":d===1?`${A} ${d} ${C}`:`${O} ${d} ${k}`})]}),t.jsx("div",{children:a})]}),t.jsx(Y,{hasPermission:!0,image:t.jsx("img",{src:m,className:`${m?"":"no-image"}`}),themeData:R,isActive:!0,isUser:!1,name:b,onClick:()=>S(s)})]})]})};J.propTypes={title:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.element]),numberOfListings:i.PropTypes.number,dropdown:i.PropTypes.any,color:i.PropTypes.string};const he=u.styled.div`
210
+ `,J=e=>{const{uuid:o,hasPermission:a=!0,isUser:l,image:f,name:c,notifications:s=0,color:g="primary",size:b="large",style:m,disabled:$,onClick:d=()=>{},isActive:j,className:x,themeData:y}=e,D={theme:z.useTheme(),color:g,size:b,style:m,disabled:$};return i.createElement(de,{onClick:T=>{T.stopPropagation(),a===!0&&(d==null||d())},...D,key:c,animate:{y:0,opacity:1},className:`profile-item ${x}`,exit:{opacity:0},hasPermission:a,initial:{y:-10,opacity:0},isActive:j,themeColor:(y==null?void 0:y.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:f}),t.jsx("div",{className:"name",children:c}),s>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(oe,{className:"badge",color:"danger",size:"small",children:s>99?"99+":s})}))};J.propTypes={id:n.PropTypes.any,isUserProfile:n.PropTypes.bool,themeColor:n.PropTypes.string,image:n.PropTypes.any,name:n.PropTypes.string,notifications:n.PropTypes.number,style:n.PropTypes.object,className:n.PropTypes.string,color:n.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:n.PropTypes.oneOf(["large"]),onSelect:n.PropTypes.func,hasPermission:n.PropTypes.bool};const G=(e,o)=>{if(!e||!o)return null;let a=Math.floor((e==null?void 0:e.getTime())-(o==null?void 0:o.getTime())),l=1e3*60*60*24;return Math.ceil(a/l)},K=i.forwardRef((e,o)=>{const a=z.useTheme(),{uuid:l,shopUuid:f,title:c="",description:s,badges:g,coverPhoto:b,onSelect:m,status:$,startDate:d,endDate:j,salesPackages:x,shopName:y,shopImage:u,className:D,onSelectCard:T=()=>{},onSelectShop:N=()=>{},campaignSingleText:F,salesCampaignTypes:S=[],startsInPrefixTextPlural:h,startsinSuffixTextPlural:E,startsInPrefixTextSingular:P,startsinSuffixTextSingular:r,themeData:_,...q}=e,M=d?new Date(d)<=new Date:!1;G(j?new Date(j):null,d?new Date(d):null);const p=G(d?new Date(d):null,new Date);return t.jsxs(se,{ref:o,theme:a,className:D,onClick:T,...q,children:[t.jsxs(ae,{theme:a,onClick:()=>m==null?void 0:m(),children:[t.jsx("img",{src:b}),t.jsx(he,{children:x==null?void 0:x.map((k,A)=>{var I,W;return t.jsx(ue,{color:(I=S==null?void 0:S.find(L=>L.value===k))==null?void 0:I.color,theme:a,children:t.jsx(te,{icon:(W=S==null?void 0:S.find(L=>L.value===k))==null?void 0:W.icon})},`package__${A}`)})})]}),t.jsxs(le,{theme:a,children:[t.jsxs("div",{className:"text-block-wrapper",children:[t.jsxs("div",{className:"title-block-wrapper",children:[t.jsx("div",{className:"campaign-title",children:F}),t.jsx("div",{className:"campaign-title-text",children:c}),t.jsx("div",{className:"timestamp-text",children:M?"":p===1?`${P} ${p} ${r}`:`${h} ${p} ${E}`})]}),t.jsx("div",{children:s})]}),t.jsx(J,{hasPermission:!0,image:t.jsx("img",{src:u,className:`${u?"":"no-image"}`}),themeData:_,isActive:!0,isUser:!1,name:y,onClick:()=>N(f)})]})]})});K.propTypes={title:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.element]),numberOfListings:n.PropTypes.number,dropdown:n.PropTypes.any,color:n.PropTypes.string};const pe=w.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=>v.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=>v.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: ${E.MOBILE_SIZE_PX+"px"}) {
237
+ @media (max-width: ${B.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
- `,pe=u.styled.div`
244
+ `,fe=w.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: ${E.MOBILE_SIZE_PX+"px"}) {
259
+ @media (max-width: ${B.MOBILE_SIZE_PX+"px"}) {
260
260
  padding: 0 1rem;
261
261
  & .btns-group {
262
262
  display: none;
263
263
  }
264
264
  }
265
- `,ue=u.styled.div`
265
+ `,me=w.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: ${E.MOBILE_SIZE_PX+"px"}) {
333
+ @media (max-width: ${B.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
- `,fe=(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 h=null,f=null;if(a){const w=l=>{const g=x(l)[0];h=g.clientX,f=g.clientY},j=l=>{if(!h||!f)return;const g=l.touches[0].clientX,y=l.touches[0].clientY,b=h-g,m=f-y;Math.abs(b)>Math.abs(m)?b>0?s(p=>({trigger:!p.trigger,direction:N.LEFT})):s(p=>({trigger:!p.trigger,direction:N.RIGHT})):m>0?s(p=>({trigger:!p.trigger,direction:N.UP})):s(p=>({trigger:!p.trigger,direction:N.DOWN})),h=null,f=null};return a.addEventListener("touchstart",w),a.addEventListener("touchmove",j),()=>{a.removeEventListener("touchstart",w),a.addEventListener("touchmove",j)}}},[]),c},N={UP:"up",DOWN:"down",RIGHT:"right",LEFT:"left"},K=n.forwardRef(({title:e,columnGap:o="2rem",rowGap:c="1.25rem",scrollBySize:s=300,wrapForMobile:x=!1,wrap:a=!1,children:h,methodsRef:f,arrowsVisibleOnHover:w=!0,rightAlignArrows:j=!1,padding:l="0",showTimesBtn:g,noArrows:y,onShowEnd:b,arrowsZIndex:m,elementsCount:p,minElementsCount:P=2,...S},r)=>{const v=X.useDetectMobile(),O=M.useTheme(),[k,A]=n.useState(p<P),[C,R]=n.useState(!1),[U,W]=n.useState(!0),d=n.useRef(),$=fe(d);n.useEffect(()=>{($==null?void 0:$.direction)===N.RIGHT&&C!==!0?I():($==null?void 0:$.direction)===N.LEFT&&k!==!0&&_()},[$]);const _=()=>{var T;(T=d.current)==null||T.scrollBy(s,0)},I=()=>{var T;(T=d.current)==null||T.scrollBy(-s,0)},[B,F]=n.useState(!1);n.useEffect(()=>{var T,q;F(((T=d==null?void 0:d.current)==null?void 0:T.scrollWidth)>((q=d==null?void 0:d.current)==null?void 0:q.clientWidth))},[h]),n.useImperativeHandle(f,()=>({scrollToEnd(){Q()},scrollLeft(){I()},scrollRight(){_()}}));const Q=()=>{d.current.scrollLeft=d.current.scrollWidth};return t.jsxs(he,{arrowsZIndex:m,children:[t.jsxs(pe,{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:k,icon:"angle-right",onClick:_})]})]}),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:k,icon:"angle-right",onClick:_}),t.jsx(ue,{ref:r,arrowsVisibleOnHover:w,hasOverflow:B,noArrows:y,padding:l,rightAlignArrows:j,showTimesBtn:g,theme:O,...S,children:t.jsxs(oe,{ref:d,className:"scrollable-container",columnGap:o,rowGap:c,wrap:a||x&&v?"Wrap":"NoWrap",children:[t.jsx(V.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{C===!0&&R(!1)},onIsVisible:()=>{C===!1&&R(!0)}}),h,t.jsx(V.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{k===!0&&A(!1),W(!0)},onIsVisible:()=>{k===!1&&A(!0),W(!1),b==null||b()}}),U&&B&&t.jsx("div",{className:"gradient"})]})})]})});K.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 me=u.styled.div`
343
+ `,xe=(e,o)=>{const[a,l]=i.useState({trigger:null,direction:null}),f=c=>c.touches||c.originalEvent.touches;return i.useEffect(()=>{const c=typeof e=="string"||e instanceof String?document.getElementById(e):e.current;let s=null,g=null;if(c){const b=$=>{const d=f($)[0];s=d.clientX,g=d.clientY},m=$=>{if(!s||!g)return;const d=$.touches[0].clientX,j=$.touches[0].clientY,x=s-d,y=g-j;Math.abs(x)>Math.abs(y)?x>0?l(u=>({trigger:!u.trigger,direction:R.LEFT})):l(u=>({trigger:!u.trigger,direction:R.RIGHT})):y>0?l(u=>({trigger:!u.trigger,direction:R.UP})):l(u=>({trigger:!u.trigger,direction:R.DOWN})),s=null,g=null};return c.addEventListener("touchstart",b),c.addEventListener("touchmove",m),()=>{c.removeEventListener("touchstart",b),c.addEventListener("touchmove",m)}}},[]),a},R={UP:"up",DOWN:"down",RIGHT:"right",LEFT:"left"},Q=i.forwardRef(({title:e,columnGap:o="2rem",rowGap:a="1.25rem",scrollBySize:l=300,wrapForMobile:f=!1,wrap:c=!1,children:s,methodsRef:g,arrowsVisibleOnHover:b=!0,rightAlignArrows:m=!1,padding:$="0",showTimesBtn:d,noArrows:j,onShowEnd:x,arrowsZIndex:y,showArrows:u,elementsCount:D,minElementsCount:T=2,...N},F)=>{const S=Y.useDetectMobile(),h=z.useTheme(),[E,P]=i.useState(D<T),[r,_]=i.useState(!1),[q,M]=i.useState(!0),p=i.useRef(),k=xe(p);i.useEffect(()=>{(k==null?void 0:k.direction)===R.RIGHT&&r!==!0?I():(k==null?void 0:k.direction)===R.LEFT&&E!==!0&&A()},[k]);const A=()=>{var C;(C=p.current)==null||C.scrollBy(l,0)},I=()=>{var C;(C=p.current)==null||C.scrollBy(-l,0)},[W,L]=i.useState(!1);i.useEffect(()=>{var C,V;L(((C=p==null?void 0:p.current)==null?void 0:C.scrollWidth)>((V=p==null?void 0:p.current)==null?void 0:V.clientWidth))},[s]),i.useImperativeHandle(g,()=>({scrollToEnd(){ee()},scrollLeft(){I()},scrollRight(){A()}}));const ee=()=>{p.current.scrollLeft=p.current.scrollWidth};return t.jsxs(pe,{arrowsZIndex:y,children:[t.jsxs(fe,{children:[t.jsx("div",{children:e}),u&&t.jsxs("div",{className:"btns-group",children:[t.jsx(O,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-left",color:"neutral",disabled:r,icon:"angle-left",onClick:I}),t.jsx(O,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-right",color:"neutral",disabled:E,icon:"angle-right",onClick:A})]})]}),u&&t.jsxs(t.Fragment,{children:[t.jsx(O,{borderRadius:"curved",btnType:"tinted",className:"hover-left-arrow scroll-arrow-left",color:"neutral",disabled:r,icon:"angle-left",onClick:I}),t.jsx(O,{borderRadius:"curved",btnType:"tinted",className:"hover-right-arrow scroll-arrow-right",color:"neutral",disabled:E,icon:"angle-right",onClick:A})]}),t.jsx(me,{ref:F,arrowsVisibleOnHover:b,hasOverflow:W,noArrows:j,padding:$,rightAlignArrows:m,showTimesBtn:d,theme:h,...N,children:t.jsxs(ne,{ref:p,className:"scrollable-container",columnGap:o,rowGap:a,wrap:c||f&&S?"Wrap":"NoWrap",children:[t.jsx(H.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{r===!0&&_(!1)},onIsVisible:()=>{r===!1&&_(!0)}}),s,t.jsx(H.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{E===!0&&P(!1),M(!0)},onIsVisible:()=>{E===!1&&P(!0),M(!1),x==null||x()}}),q&&W&&t.jsx("div",{className:"gradient"})]})})]})});Q.propTypes={title:n.PropTypes.string,rowGap:n.PropTypes.string,columnGap:n.PropTypes.string,scrollBySize:n.PropTypes.number,wrapForMobile:n.PropTypes.bool,wrap:n.PropTypes.bool,methodsRef:n.PropTypes.any,arrowsVisibleOnHover:n.PropTypes.bool,rightAlignArrows:n.PropTypes.bool,padding:n.PropTypes.string};const we=w.styled.div`
344
344
  display: flex;
345
345
  flex-direction: column;
346
346
  gap: 1.5rem;
@@ -358,35 +358,39 @@
358
358
  }
359
359
 
360
360
  & .gradient {
361
- background: transparent;
361
+ background: transparent !important;
362
362
  }
363
363
 
364
364
  & .campaign-item {
365
365
  min-width: calc(50% - 0.87rem);
366
366
  width: calc(50% - 0.87rem);
367
- margin-right: 1.25rem;
367
+ margin-right: 1rem;
368
+
369
+ &:nth-child(${e=>e==null?void 0:e.lastItemIdx}) {
370
+ margin-right: 0;
371
+ }
368
372
  }
369
373
 
370
- @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
374
+ @media (max-width: ${B.MOBILE_SIZE_PX+"px"}) {
371
375
  & .campaign-item {
372
376
  min-width: 100%;
373
377
  width: 100%;
374
378
  margin-right: 0;
375
379
  }
376
380
  }
377
- `,L=u.styled.div`
381
+ `,U=w.styled.div`
378
382
  width: ${e=>e.width||"100%"};
379
383
  height: ${e=>(e.heightCoeff||1)*1.125}rem;
380
384
  background-color: var(--gray-200, #dddfe4);
381
385
 
382
- ${D.linearGradientAnimation("-90deg")}
383
- `,xe=u.styled.div`
386
+ ${v.linearGradientAnimation("-90deg")}
387
+ `,be=w.styled.div`
384
388
  display: flex;
385
389
  flex-direction: ${e=>e!=null&&e.row?"row":"column"};
386
390
  gap: ${e=>(e==null?void 0:e.gap)??"0.5rem"};
387
391
  width: ${e=>(e==null?void 0:e.width)??"100%"};
388
- `,G=u.styled.div`
389
- border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,(e==null?void 0:e.borderRadius)??"regular")};
392
+ `,X=w.styled.div`
393
+ border-radius: ${e=>v.getBorderRadiusValueWithUnits(e.theme,(e==null?void 0:e.borderRadius)??"regular")};
390
394
  background: var(--gray-200, #dddfe4);
391
395
  position: relative;
392
396
  max-height: ${e=>(e==null?void 0:e.height)??"5rem"};
@@ -395,10 +399,10 @@
395
399
  width: ${e=>(e==null?void 0:e.width)??"5rem"};
396
400
  flex-shrink: 0;
397
401
 
398
- ${D.linearGradientAnimation()}
399
- `,we=u.styled.div`
402
+ ${v.linearGradientAnimation()}
403
+ `,ye=w.styled.div`
400
404
  background: var(--white, #fff);
401
- border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,"edged")};
405
+ border-radius: ${e=>v.getBorderRadiusValueWithUnits(e.theme,"edged")};
402
406
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
403
407
  border: 1px solid var(--gray-95012, #14161a1f);
404
408
 
@@ -424,4 +428,4 @@
424
428
  align-items: center;
425
429
  gap: 0.5rem;
426
430
  }
427
- `,be=n.forwardRef(({},e)=>{const o=M.useTheme();return t.jsxs(we,{ref:e,theme:o,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(G,{theme:o,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(xe,{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(G,{theme:o,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(L,{theme:o,width:"75%"})]})]})]})}),ye=({itemsCount:e=5,keyPrefix:o})=>t.jsx(t.Fragment,{children:Array.from({length:e},(c,s)=>t.jsx(be,{},`${o}-skeleton-campaign-card-${s}`))}),ve=({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(ye,{itemsCount:s,keyPrefix:x}):e}),$e=n.memo(J),je=n.forwardRef(({sellerType:e="Shop",items:o=[],title:c,isLoading:s,onSelectCard:x=()=>{},onSelectShop:a=()=>{},getImage:h=()=>{},customScrollSize:f,campaignSingleText:w,salesCampaignTypes:j=[],startsInPrefixTextPlural:l,startsinSuffixTextPlural:g,startsInPrefixTextSingular:y,startsinSuffixTextSingular:b},m)=>{const p=n.useRef(),P=X.useDetectMobile(),S=n.useMemo(()=>o==null?void 0:o.map((r,v)=>t.jsx($e,{className:"campaign-item",coverPhoto:h(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:j,startsInPrefixTextPlural:l,startsinSuffixTextPlural:g,startsInPrefixTextSingular:y,startsinSuffixTextSingular:b,themeData:r==null?void 0:r.themeData},`campaign__item__${v}__${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(me,{ref:m,className:"row-section-scroll",children:t.jsx(K,{arrowsVisibleOnHover:!1,columnGap:"0",methodsRef:p,mobileHoverScrollButtons:!0,noArrows:!0,padding:"0.25rem 0",rightAlignArrows:!0,elementsCount:o==null?void 0:o.length,scrollBySize:P?window.innerWidth:f>0?f:window.innerWidth,showTimesBtn:!1,title:c,onShowEnd:()=>{},arrowsZIndex:11,children:t.jsx(ve,{isLoading:s,itemsCount:2,keyPrefix:"sales-camp",children:S})})})})});module.exports=je;
431
+ `,ve=i.forwardRef(({},e)=>{const o=z.useTheme();return t.jsxs(ye,{ref:e,theme:o,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(X,{theme:o,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(be,{theme:o,children:[t.jsx(U,{heightCoeff:.75,theme:o,width:"35%"}),t.jsx(U,{heightCoeff:1.25,theme:o}),t.jsx(U,{heightCoeff:3,theme:o})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(X,{theme:o,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(U,{theme:o,width:"75%"})]})]})]})}),$e=({itemsCount:e=5,keyPrefix:o})=>t.jsx(t.Fragment,{children:Array.from({length:e},(a,l)=>t.jsx(ve,{},`${o}-skeleton-campaign-card-${l}`))}),je=({children:e,fallbackComponent:o=t.jsx(t.Fragment,{}),isLoading:a=!1,itemsCount:l=5,keyPrefix:f})=>t.jsx(i.Suspense,{fallback:o,children:a===!0?t.jsx($e,{itemsCount:l,keyPrefix:f}):e}),De=ie(),Te=i.memo(K),Se=i.forwardRef(({sellerType:e="Shop",items:o=[],title:a,isLoading:l,onSelectCard:f=()=>{},onSelectShop:c=()=>{},getImage:s=()=>{},customScrollSize:g,campaignSingleText:b,salesCampaignTypes:m=[],startsInPrefixTextPlural:$,startsinSuffixTextPlural:d,startsInPrefixTextSingular:j,startsinSuffixTextSingular:x},y)=>{const u=i.useRef(),D=i.useRef(),T=De(),N=Y.useDetectMobile(),[F,S]=i.useState(0),h=i.useMemo(()=>{var P;return(P=o==null?void 0:o.slice(0,6))==null?void 0:P.map((r,_)=>t.jsx(Te,{className:"campaign-item",ref:_===0?D:null,coverPhoto:s(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:()=>f(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>c(r==null?void 0:r.shopUuid),campaignSingleText:b,salesCampaignTypes:m,startsInPrefixTextPlural:$,startsinSuffixTextPlural:d,startsInPrefixTextSingular:j,startsinSuffixTextSingular:x,themeData:r==null?void 0:r.themeData},`campaign__item__${_}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}__${T}`))},[T,o]);i.useEffect(()=>{var P;S(g??((P=D==null?void 0:D.current)==null?void 0:P.offsetWidth))},[h,T]);const E=N?(h==null?void 0:h.length)>1:(h==null?void 0:h.length)>2;return t.jsx(t.Fragment,{children:(h==null?void 0:h.length)>0&&t.jsx(we,{ref:y,className:"row-section-scroll",lastItemIdx:(h==null?void 0:h.length)+1,children:t.jsx(Q,{arrowsVisibleOnHover:!1,columnGap:"0",methodsRef:u,mobileHoverScrollButtons:!0,noArrows:!0,padding:"0.25rem 0",rightAlignArrows:!0,elementsCount:o==null?void 0:o.length,scrollBySize:N?F:F*2+24,showTimesBtn:!1,title:a,onShowEnd:()=>{},arrowsZIndex:11,showArrows:E,children:t.jsx(je,{isLoading:l,itemsCount:2,keyPrefix:"sales-camp",children:h})},`scroll-${T}`)})})});module.exports=Se;