@lanaco/lnc-react-ui 4.0.35 → 4.0.37

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 (286) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +11 -11
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +1 -1
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +3 -3
  7. package/dist/ActionsToolbar.cjs +1 -1
  8. package/dist/ActionsToolbar.js +2 -2
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +2 -2
  11. package/dist/Avatar.cjs +1 -1
  12. package/dist/Avatar.js +3 -3
  13. package/dist/Badge.cjs +2 -2
  14. package/dist/Badge.js +3 -3
  15. package/dist/BannerSectionBasic.cjs +1 -1
  16. package/dist/BannerSectionBasic.js +1 -1
  17. package/dist/BannerSectionCarousel.cjs +2 -2
  18. package/dist/BannerSectionCarousel.js +63 -63
  19. package/dist/BannerSectionGrid.cjs +3 -3
  20. package/dist/BannerSectionGrid.js +43 -39
  21. package/dist/BannerSectionSimple.cjs +1 -1
  22. package/dist/BannerSectionSimple.js +1 -1
  23. package/dist/BannerSectionWithList.cjs +1 -1
  24. package/dist/BannerSectionWithList.js +2 -2
  25. package/dist/BannerSectionWithListImage.cjs +1 -1
  26. package/dist/BannerSectionWithListImage.js +1 -1
  27. package/dist/BlogsSectionDetailed.cjs +1 -1
  28. package/dist/BlogsSectionDetailed.js +3 -3
  29. package/dist/BlogsSectionLarge.cjs +1 -1
  30. package/dist/BlogsSectionLarge.js +2 -2
  31. package/dist/BlogsSectionSimple.cjs +1 -1
  32. package/dist/BlogsSectionSimple.js +3 -3
  33. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  34. package/dist/BlogsSectionSimpleCentered.js +2 -2
  35. package/dist/BlogsSectionWithFilters.cjs +11 -108
  36. package/dist/BlogsSectionWithFilters.js +59 -437
  37. package/dist/BrandHitsSection.cjs +1 -1
  38. package/dist/BrandHitsSection.js +2 -2
  39. package/dist/Breadcrumbs.cjs +3 -3
  40. package/dist/Breadcrumbs.js +12 -12
  41. package/dist/Button.cjs +1 -1
  42. package/dist/Button.js +4 -4
  43. package/dist/ButtonGroup.cjs +1 -1
  44. package/dist/ButtonGroup.js +3 -3
  45. package/dist/CalorieCalculatorSection.cjs +333 -0
  46. package/dist/CalorieCalculatorSection.js +851 -0
  47. package/dist/CheckBoxInput.cjs +1 -1
  48. package/dist/CheckBoxInput.js +3 -3
  49. package/dist/Chip.cjs +2 -2
  50. package/dist/Chip.js +3 -3
  51. package/dist/ColorInput.cjs +1 -1
  52. package/dist/ColorInput.js +4 -4
  53. package/dist/ConfirmationForm.cjs +2 -2
  54. package/dist/ConfirmationForm.js +3 -3
  55. package/dist/CustomLoanMapSection.cjs +1 -1
  56. package/dist/CustomLoanMapSection.js +2 -2
  57. package/dist/{CustomStyles-BMY2-z7P.js → CustomStyles-BwnfUVvi.js} +8 -8
  58. package/dist/{CustomStyles-zroEcINq.cjs → CustomStyles-DUDHRSkh.cjs} +2 -2
  59. package/dist/DataView.cjs +1 -1
  60. package/dist/DataView.js +1 -1
  61. package/dist/DateInput.cjs +4 -4
  62. package/dist/DateInput.js +76 -80
  63. package/dist/DecimalInput.cjs +3 -3
  64. package/dist/DecimalInput.js +4 -4
  65. package/dist/DecimalInputV2.cjs +2 -2
  66. package/dist/DecimalInputV2.js +3 -3
  67. package/dist/DetailedProductsSection.cjs +1 -1
  68. package/dist/DetailedProductsSection.js +4 -4
  69. package/dist/DetailsView.cjs +2 -2
  70. package/dist/DetailsView.js +3 -3
  71. package/dist/DoubleRangeSlider.cjs +1 -1
  72. package/dist/DoubleRangeSlider.js +3 -3
  73. package/dist/DragAndDropFile.cjs +6 -6
  74. package/dist/DragAndDropFile.js +4 -4
  75. package/dist/DragDropFiles.cjs +1 -1
  76. package/dist/DragDropFiles.js +3 -3
  77. package/dist/Drawer.cjs +1 -1
  78. package/dist/Drawer.js +12 -12
  79. package/dist/Dropdown.cjs +1 -1
  80. package/dist/Dropdown.js +5 -5
  81. package/dist/DropdownItem.cjs +1 -1
  82. package/dist/DropdownItem.js +10 -10
  83. package/dist/DropdownLookup.cjs +1 -1
  84. package/dist/DropdownLookup.js +5 -5
  85. package/dist/DropdownMenu.cjs +1 -1
  86. package/dist/DropdownMenu.js +6 -6
  87. package/dist/EditableTable.cjs +1 -1
  88. package/dist/EditableTable.js +3 -3
  89. package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
  90. package/dist/FieldOfInterestsMasonrySection.js +43 -42
  91. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  92. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +3 -3
  93. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +3 -3
  94. package/dist/FieldOfInterestsWithTagsCardsSection.js +3 -3
  95. package/dist/FileInput.cjs +2 -2
  96. package/dist/FileInput.js +3 -3
  97. package/dist/FlexBox.cjs +1 -1
  98. package/dist/FlexBox.js +1 -1
  99. package/dist/FlexGridItem.cjs +1 -1
  100. package/dist/FlexGridItem.js +2 -2
  101. package/dist/FormField.cjs +1 -1
  102. package/dist/FormField.js +7 -7
  103. package/dist/FormView.cjs +2 -2
  104. package/dist/FormView.js +15 -15
  105. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  106. package/dist/GeneralWithTagsCardsSection.js +3 -3
  107. package/dist/GiftCardsSection.cjs +1 -1
  108. package/dist/GiftCardsSection.js +2 -2
  109. package/dist/Grid.cjs +1 -1
  110. package/dist/Grid.js +1 -1
  111. package/dist/GridItem.cjs +1 -1
  112. package/dist/GridItem.js +1 -1
  113. package/dist/Icon.cjs +2 -2
  114. package/dist/Icon.js +6 -6
  115. package/dist/IconButton.cjs +1 -1
  116. package/dist/IconButton.js +3 -3
  117. package/dist/Kanban.cjs +7 -7
  118. package/dist/Kanban.js +37 -41
  119. package/dist/KanbanActionsToolbar.cjs +1 -1
  120. package/dist/KanbanActionsToolbar.js +2 -2
  121. package/dist/{KanbanCard-BDyFaKYd.js → KanbanCard-BDRSqfVD.js} +2 -2
  122. package/dist/{KanbanCard-CofqdTrO.cjs → KanbanCard-CLOKZFYP.cjs} +1 -1
  123. package/dist/KanbanCard.cjs +1 -1
  124. package/dist/KanbanCard.js +3 -3
  125. package/dist/KanbanFooter.cjs +1 -1
  126. package/dist/KanbanFooter.js +2 -2
  127. package/dist/KanbanHeader.cjs +2 -2
  128. package/dist/KanbanHeader.js +2 -2
  129. package/dist/KanbanView.cjs +1 -1
  130. package/dist/KanbanView.js +3 -3
  131. package/dist/Link.cjs +2 -2
  132. package/dist/Link.js +6 -6
  133. package/dist/LocationSearchSection.cjs +53 -0
  134. package/dist/LocationSearchSection.js +108 -0
  135. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  136. package/dist/MasonryGeneralCardsSection.js +3 -3
  137. package/dist/MenuItem.cjs +2 -2
  138. package/dist/MenuItem.js +3 -3
  139. package/dist/Modal.cjs +1 -1
  140. package/dist/Modal.js +6 -6
  141. package/dist/MultiSelectDropdown.cjs +1 -1
  142. package/dist/MultiSelectDropdown.js +3 -3
  143. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  144. package/dist/MultiSelectDropdownLookup.js +3 -3
  145. package/dist/NestedDropdownItem.cjs +1 -1
  146. package/dist/NestedDropdownItem.js +9 -9
  147. package/dist/NestedMenuItem.cjs +2 -2
  148. package/dist/NestedMenuItem.js +8 -8
  149. package/dist/Notification.cjs +1 -1
  150. package/dist/Notification.js +1 -1
  151. package/dist/NotificationContainer.cjs +1 -1
  152. package/dist/NotificationContainer.js +3 -3
  153. package/dist/NotificationMessage.cjs +1 -1
  154. package/dist/NotificationMessage.js +3 -3
  155. package/dist/NumberInput.cjs +2 -2
  156. package/dist/NumberInput.js +4 -4
  157. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  158. package/dist/OverlayGeneralCardsSection.js +3 -3
  159. package/dist/PageLayout.cjs +2 -2
  160. package/dist/PageLayout.js +2 -2
  161. package/dist/Pagination.cjs +2 -2
  162. package/dist/Pagination.js +2 -2
  163. package/dist/PasswordInput.cjs +2 -2
  164. package/dist/PasswordInput.js +4 -4
  165. package/dist/PopoverContent.cjs +1 -1
  166. package/dist/PopoverContent.js +5 -5
  167. package/dist/PopoverDescription.cjs +1 -1
  168. package/dist/PopoverDescription.js +1 -1
  169. package/dist/PopoverHeading.cjs +1 -1
  170. package/dist/PopoverHeading.js +1 -1
  171. package/dist/PopoverTrigger.cjs +1 -1
  172. package/dist/PopoverTrigger.js +1 -1
  173. package/dist/ProductsWithBannerSection.cjs +1 -1
  174. package/dist/ProductsWithBannerSection.js +3 -3
  175. package/dist/ProgressBar.cjs +1 -1
  176. package/dist/ProgressBar.js +8 -8
  177. package/dist/QuizSection.cjs +1 -1
  178. package/dist/QuizSection.js +2 -2
  179. package/dist/RadioGroup.cjs +1 -1
  180. package/dist/RadioGroup.js +2 -2
  181. package/dist/RadioInput.cjs +1 -1
  182. package/dist/RadioInput.js +3 -3
  183. package/dist/RangeSlider.cjs +2 -2
  184. package/dist/RangeSlider.js +3 -3
  185. package/dist/SalesCampaignsSection.cjs +423 -0
  186. package/dist/SalesCampaignsSection.js +967 -0
  187. package/dist/SearchBar.cjs +1 -1
  188. package/dist/SearchBar.js +6 -6
  189. package/dist/Separator.cjs +1 -1
  190. package/dist/Separator.js +3 -3
  191. package/dist/ShopCardsSection.cjs +1 -1
  192. package/dist/ShopCardsSection.js +2 -2
  193. package/dist/Sidebar.cjs +1 -1
  194. package/dist/Sidebar.js +3 -3
  195. package/dist/SimpleCategoriesSection.cjs +9 -9
  196. package/dist/SimpleCategoriesSection.js +48 -44
  197. package/dist/SimpleProductsSection.cjs +1 -1
  198. package/dist/SimpleProductsSection.js +3 -3
  199. package/dist/Spinner.cjs +1 -1
  200. package/dist/Spinner.js +12 -12
  201. package/dist/Surface.cjs +2 -2
  202. package/dist/Surface.js +3 -3
  203. package/dist/SwipeableDrawer.cjs +2 -2
  204. package/dist/SwipeableDrawer.js +3 -3
  205. package/dist/TabItem.cjs +1 -1
  206. package/dist/TabItem.js +11 -11
  207. package/dist/Table.cjs +7 -7
  208. package/dist/Table.js +4 -4
  209. package/dist/TableView.cjs +1 -1
  210. package/dist/TableView.js +2 -2
  211. package/dist/Tabs.cjs +2 -2
  212. package/dist/Tabs.js +2 -2
  213. package/dist/TextAreaInput.cjs +12 -12
  214. package/dist/TextAreaInput.js +124 -112
  215. package/dist/TextInput.cjs +2 -2
  216. package/dist/TextInput.js +4 -4
  217. package/dist/ThemeProvider.cjs +10 -10
  218. package/dist/ThemeProvider.js +189 -187
  219. package/dist/TimeInput.cjs +2 -2
  220. package/dist/TimeInput.js +4 -4
  221. package/dist/Toggle.cjs +15 -15
  222. package/dist/Toggle.js +40 -50
  223. package/dist/TreeMenu.cjs +1 -1
  224. package/dist/TreeMenu.js +1 -1
  225. package/dist/TreeMenuSeparator.cjs +1 -1
  226. package/dist/TreeMenuSeparator.js +3 -3
  227. package/dist/UploadedFile.cjs +2 -2
  228. package/dist/UploadedFile.js +16 -16
  229. package/dist/UrgentSaleProductsSection.cjs +1 -1
  230. package/dist/UrgentSaleProductsSection.js +2 -2
  231. package/dist/{defineProperty-DHvxLH8G.cjs → defineProperty-CqVRDJI8.cjs} +1 -1
  232. package/dist/{defineProperty-B5pLF6px.js → defineProperty-DF3p0mVo.js} +5 -5
  233. package/dist/emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs +1 -0
  234. package/dist/emotion-element-f0de968e.browser.esm-CkCiQliQ.js +877 -0
  235. package/dist/{emotion-is-prop-valid.esm-CMrshNb7.cjs → emotion-is-prop-valid.esm-BNsx9k19.cjs} +1 -1
  236. package/dist/{emotion-is-prop-valid.esm-DkbeH1Xy.js → emotion-is-prop-valid.esm-CbWxtx4i.js} +1 -1
  237. package/dist/emotion-react.browser.esm-1R69UXoj.cjs +1 -0
  238. package/dist/emotion-react.browser.esm-C6iWxXPG.js +95 -0
  239. package/dist/{emotion-styled.browser.esm-BiK8DcgW.js → emotion-styled.browser.esm-CjCaF13H.js} +55 -53
  240. package/dist/emotion-styled.browser.esm-Cle7tAM9.cjs +1 -0
  241. package/dist/floating-ui.dom-CFbLeFcw.cjs +1 -0
  242. package/dist/floating-ui.dom-vNhdy5RI.js +947 -0
  243. package/dist/{floating-ui.react.esm-C4vrBVJU.cjs → floating-ui.react.esm-7Yt4LHw6.cjs} +1 -1
  244. package/dist/{floating-ui.react.esm-72DKnou_.js → floating-ui.react.esm-umB-tMXa.js} +3 -3
  245. package/dist/{index--Kmch3aI.js → index-64mXPFBC.js} +6724 -6724
  246. package/dist/{index-CvebWhtp.js → index-BlxaTV-D.js} +1 -1
  247. package/dist/{index-CkPex_K5.js → index-CHkb_Sj6.js} +2 -2
  248. package/dist/index-CT6_7UFb.js +350 -0
  249. package/dist/index-Cb_AeN9A.cjs +4 -0
  250. package/dist/{index-CNBqQrtK.js → index-CkWvbrVT.js} +1 -1
  251. package/dist/{index-BUChtubz.js → index-D-c5IxDk.js} +1 -1
  252. package/dist/{index-DKztZfzw.js → index-D6g5ZqyJ.js} +2 -2
  253. package/dist/{index-BP5r5zGN.cjs → index-DZoWlChs.cjs} +1 -1
  254. package/dist/{index-B67WqHGh.cjs → index-Dit169OA.cjs} +1 -1
  255. package/dist/{index-BmobrEkT.cjs → index-Dj5wZCVs.cjs} +1 -1
  256. package/dist/{index-CTJZaJ_S.js → index-DxdBg_r_.js} +1 -1
  257. package/dist/index-EeoArxOx.cjs +174 -0
  258. package/dist/index-Q_i-aqsF.cjs +95 -0
  259. package/dist/{index-C5vAqIS6.cjs → index-vXmvgZ2Y.cjs} +1 -1
  260. package/dist/index-wy-PXQR9.js +47 -0
  261. package/dist/index.cjs +1 -1
  262. package/dist/index.js +96 -92
  263. package/dist/{motion-Oud-wpUz.cjs → motion-B_VPZaJq.cjs} +1 -1
  264. package/dist/{motion-ecIGZGwI.js → motion-Ckekul_K.js} +1 -1
  265. package/dist/objectWithoutPropertiesLoose-BLga_MQA.cjs +1 -0
  266. package/dist/{objectWithoutPropertiesLoose-DwEN6RBQ.js → objectWithoutPropertiesLoose-DhwSMsjf.js} +1 -1
  267. package/dist/{react-toastify.esm-CkXGwKXL.js → react-toastify.esm--2awuizG.js} +1 -1
  268. package/dist/{react-toastify.esm-Dqcb4SQT.cjs → react-toastify.esm-Dq1k28O7.cjs} +1 -1
  269. package/dist/{style-BGQ1B_dp.js → style-6tSw9aqK.js} +1 -1
  270. package/dist/{style-BEUISPP7.cjs → style-BR3tIhP1.cjs} +1 -1
  271. package/dist/usePopover.cjs +1 -1
  272. package/dist/usePopover.js +6 -6
  273. package/dist/{utils-jiuifwtJ.js → utils-DtRLzzTZ.js} +224 -73
  274. package/dist/utils-NZLCh-J5.cjs +51 -0
  275. package/package.json +5 -2
  276. package/vite.config.js +12 -1
  277. package/dist/emotion-element-5486c51c.browser.esm-Bb4VkP8U.js +0 -886
  278. package/dist/emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs +0 -1
  279. package/dist/emotion-react.browser.esm-CN-s34fZ.js +0 -94
  280. package/dist/emotion-react.browser.esm-D7h2t2Bz.cjs +0 -1
  281. package/dist/emotion-styled.browser.esm-Cbp_XsK4.cjs +0 -1
  282. package/dist/floating-ui.dom-1F2mTXOe.cjs +0 -1
  283. package/dist/floating-ui.dom-BdUovkEr.js +0 -938
  284. package/dist/index-Ct1N7fF4.cjs +0 -174
  285. package/dist/objectWithoutPropertiesLoose-Bz3hwpmU.cjs +0 -1
  286. package/dist/utils-scuIeOqU.cjs +0 -51
@@ -0,0 +1,967 @@
1
+ import { jsx as t, jsxs as p, Fragment as G } from "react/jsx-runtime";
2
+ import { createElement as ae, useState as z, useEffect as j, forwardRef as V, useRef as Q, useImperativeHandle as ne, Suspense as se, memo as le, useMemo as ce } from "react";
3
+ import { n as m } from "./emotion-styled.browser.esm-CjCaF13H.js";
4
+ import { a as E, l as X, m as ee } from "./utils-DtRLzzTZ.js";
5
+ import { M as T } from "./consts-C1uHV4xc.js";
6
+ import { m as de } from "./motion-Ckekul_K.js";
7
+ import { P as i } from "./index-S5Cd7WrG.js";
8
+ import ge from "./Icon.js";
9
+ import he from "./Badge.js";
10
+ import { u as M } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
11
+ import { u as re } from "./useDetectMobile-BC6EGaBc.js";
12
+ import me from "./FlexBox.js";
13
+ import { I as Y } from "./index-wy-PXQR9.js";
14
+ import U from "./IconButton.js";
15
+ const fe = m.div`
16
+ cursor: pointer;
17
+ display: flex;
18
+ gap: 1rem;
19
+ padding: 1.25rem;
20
+ border-radius: ${(e) => E(e.theme, "slightCurve")};
21
+ border: 1px solid var(--gray-95080, #14161acc);
22
+
23
+ @media (max-width: ${T + "px"}) {
24
+ flex-direction: column;
25
+ padding: 0;
26
+ gap: 0;
27
+ border: none;
28
+ border-radius: 0;
29
+ }
30
+ `, pe = m.div`
31
+ border-radius: ${(e) => E(e.theme, "edged")};
32
+ height: 15rem;
33
+ width: 15rem;
34
+ min-width: 15rem;
35
+ cursor: pointer;
36
+
37
+ position: relative;
38
+ overflow: hidden;
39
+
40
+ & img {
41
+ max-width: 100%;
42
+ min-width: 100%;
43
+ max-height: 100%;
44
+ min-height: 100%;
45
+ object-fit: cover;
46
+
47
+ transform: scale(1.1);
48
+ transition: var(--transition, all 0.3s ease);
49
+ &:hover {
50
+ transform: scale(1.25);
51
+ }
52
+ }
53
+
54
+ @media (max-width: ${T + "px"}) {
55
+ width: 100%;
56
+ max-width: 100dvh;
57
+ height: 23.438rem;
58
+ }
59
+ `, ue = m.div`
60
+ flex: 1;
61
+ display: flex;
62
+ flex-direction: column;
63
+ justify-content: space-between;
64
+ gap: 1rem;
65
+ color: var(--gray-950, #14161a);
66
+ font-weight: 400;
67
+ font-size: 0.875rem;
68
+
69
+ & .campaign-title {
70
+ font-weight: 500;
71
+ font-size: 0.75rem;
72
+ letter-spacing: 0.1rem;
73
+ color: var(--primary-500, #f59e0b);
74
+ }
75
+
76
+ & .campaign-title-text {
77
+ font-weight: 600;
78
+ font-size: 1.375rem;
79
+ transition: var(--transition, all 0.3s ease);
80
+ &:hover {
81
+ color: var(--primary-500, #f59e0b);
82
+ font-size: 1.4rem;
83
+ }
84
+ }
85
+
86
+ & .text-block-wrapper {
87
+ display: flex;
88
+ flex-direction: column;
89
+ gap: 0.5rem;
90
+ }
91
+
92
+ & .title-block-wrapper {
93
+ display: flex;
94
+ flex-direction: column;
95
+ }
96
+
97
+ & .timestamp-text {
98
+ font-size: 0.875rem;
99
+ font-weight: 400;
100
+ padding-top: 0.25rem;
101
+ color: var(--gray-700, #4e555f);
102
+ }
103
+
104
+ & .profile-item:hover {
105
+ background-color: transparent;
106
+ }
107
+
108
+ @media (max-width: ${T + "px"}) {
109
+ padding: 1.25rem;
110
+
111
+ & .campaign-title {
112
+ font-size: 0.875rem;
113
+ }
114
+
115
+ & .text-block-wrapper {
116
+ gap: 0.25rem;
117
+ }
118
+ & .text-block-wrapper {
119
+ gap: 0.25rem;
120
+ }
121
+ }
122
+ `, we = {
123
+ "#ADE3EB": "#76D0DB",
124
+ "#DDD6FE": "#C4B5FD",
125
+ "#FDE68A": "#FCD34D",
126
+ "#A7F3D0": "#6EE7B7",
127
+ "#BADFFF": "#87C6FA",
128
+ "#FECDD3": "#FDA4AF",
129
+ "#EFE2CF": "#EAD2AF",
130
+ "#DDDFE4": "#C4C8CF",
131
+ "#E7E5E4": "#D6D3D1",
132
+ "#FED7AA": "#FDBA74",
133
+ default: "#C4C8CF"
134
+ }, q = (e = !1, o = !1, l = !1) => `
135
+ display: flex;
136
+ ${o ? "flex-wrap: wrap;" : ""}
137
+ ${o ? "" : "flex-wrap: nowrap;"}
138
+ ${e ? "align-items: center;" : ""}
139
+ ${l ? "justify-content: center;" : ""}
140
+ `, be = m(de.div)`
141
+ text-decoration: none;
142
+ ${(e) => e.hasPermission === !0 && "cursor: pointer"};
143
+
144
+ &:focus,
145
+ &:hover,
146
+ &:visited,
147
+ &:link,
148
+ &:active {
149
+ text-decoration: none;
150
+ }
151
+
152
+ & .icon,
153
+ .name {
154
+ text-decoration: none;
155
+ }
156
+
157
+ ${q(!0)}
158
+ gap: 0.5rem;
159
+ padding: 0.5rem;
160
+ color: ${(e) => e.isActive === !1 ? "var(--gray-900)" : "var(--primary-600)"};
161
+ font-weight: 500;
162
+ font-size: 0.875rem;
163
+ line-height: 1.25rem;
164
+ border-radius: ${(e) => E(e.theme, "slight")};
165
+ transition: all 0.25s ease;
166
+
167
+ & .logo-wrapper {
168
+ ${q(!0, !1, !0)}
169
+ flex-shrink: 0;
170
+ border-radius: 999px;
171
+ border: 3px solid
172
+ ${(e) => e.isActive === !1 ? "var(--gray-300, #c4c8cf)" : we[e.themeColor] ?? "var(--gray-300, #c4c8cf)"};
173
+
174
+ & img,
175
+ .img-placeholder {
176
+ border-radius: 999px;
177
+ object-fit: cover;
178
+ height: 1.25rem;
179
+ width: 1.25rem;
180
+ background-color: var(--gray-200, #dddfe4);
181
+ }
182
+
183
+ & .no-image {
184
+ background: white;
185
+ }
186
+ }
187
+
188
+ &.user-profile-item {
189
+ & .logo-wrapper {
190
+ border: 3px solid transparent;
191
+ }
192
+ }
193
+
194
+ & .name {
195
+ flex-grow: 15;
196
+ }
197
+
198
+ & .notifications-number .badge {
199
+ font-size: 0.75rem;
200
+ }
201
+
202
+ & .badge {
203
+ max-height: 1.25rem;
204
+ min-height: 1.25rem;
205
+ padding: 0.375rem;
206
+ line-height: 1rem;
207
+ }
208
+
209
+ &:hover {
210
+ cursor: pointer;
211
+ background-color: var(--gray-95080, #14161acc);
212
+ color: var(--gray-600, #676e79);
213
+ }
214
+ `, ve = m.div`
215
+ position: absolute;
216
+ top: 0.5rem;
217
+ ${(e) => e.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
218
+ display: flex;
219
+ gap: 0.25rem;
220
+ `, xe = (e) => `var(--${e}-700)`, ye = m.div`
221
+ border-radius: ${(e) => E(e.theme, e.borderRadius || "slight")};
222
+ background-color: ${(e) => xe(e == null ? void 0 : e.color)};
223
+ color: white;
224
+ height: 1.5rem;
225
+ min-width: 1.5rem;
226
+ width: ${(e) => e.fitContent === !0 ? "fit-content" : "1.5rem"};
227
+ ${(e) => e.fitContent === !0 && "padding: 0 0.1rem;"};
228
+ font-size: 0.75rem;
229
+ display: flex;
230
+ align-items: center;
231
+ justify-content: center;
232
+ padding: ${(e) => e.padding};
233
+ & i {
234
+ font-size: 0.813rem;
235
+ }
236
+ `, te = (e) => {
237
+ const {
238
+ uuid: o,
239
+ hasPermission: l = !0,
240
+ isUser: a,
241
+ image: u,
242
+ name: n,
243
+ notifications: c = 0,
244
+ color: w = "primary",
245
+ size: b = "large",
246
+ style: D,
247
+ disabled: s,
248
+ onSelect: d = () => {
249
+ },
250
+ isActive: x,
251
+ className: v,
252
+ // new
253
+ themeData: f
254
+ } = e, k = {
255
+ theme: M(),
256
+ color: w,
257
+ size: b,
258
+ style: D,
259
+ disabled: s
260
+ };
261
+ return /* @__PURE__ */ ae(
262
+ be,
263
+ {
264
+ onClick: (r) => {
265
+ r.stopPropagation(), l === !0 && (d == null || d());
266
+ },
267
+ ...k,
268
+ key: n,
269
+ animate: {
270
+ y: 0,
271
+ opacity: 1
272
+ },
273
+ className: `profile-item ${v}`,
274
+ exit: {
275
+ opacity: 0
276
+ },
277
+ hasPermission: l,
278
+ initial: {
279
+ y: -10,
280
+ opacity: 0
281
+ },
282
+ isActive: x,
283
+ themeColor: (f == null ? void 0 : f.code) || "transparent"
284
+ },
285
+ /* @__PURE__ */ t("div", { className: "logo-wrapper", children: u }),
286
+ /* @__PURE__ */ t("div", { className: "name", children: n }),
287
+ c > 0 && /* @__PURE__ */ t("div", { className: "notifications-number", children: /* @__PURE__ */ t(he, { className: "badge", color: "danger", size: "small", children: c > 99 ? "99+" : c }) })
288
+ );
289
+ };
290
+ te.propTypes = {
291
+ id: i.any,
292
+ isUserProfile: i.bool,
293
+ themeColor: i.string,
294
+ image: i.any,
295
+ name: i.string,
296
+ notifications: i.number,
297
+ style: i.object,
298
+ className: i.string,
299
+ color: i.oneOf([
300
+ "primary",
301
+ "secondary",
302
+ "success",
303
+ "warning",
304
+ "danger",
305
+ "information",
306
+ "neutral"
307
+ ]),
308
+ size: i.oneOf(["large"]),
309
+ onSelect: i.func,
310
+ hasPermission: i.bool
311
+ };
312
+ const J = (e, o) => {
313
+ if (!e || !o) return null;
314
+ let l = Math.floor((e == null ? void 0 : e.getTime()) - (o == null ? void 0 : o.getTime())), a = 1e3 * 60 * 60 * 24;
315
+ return Math.ceil(l / a);
316
+ }, oe = (e) => {
317
+ const o = M(), {
318
+ uuid: l,
319
+ shopUuid: a,
320
+ title: u = "",
321
+ description: n,
322
+ badges: c,
323
+ coverPhoto: w,
324
+ onSelect: b,
325
+ status: D,
326
+ startDate: s,
327
+ endDate: d,
328
+ salesPackages: x,
329
+ shopName: v,
330
+ shopImage: f,
331
+ onSelectCard: g = () => {
332
+ },
333
+ onSelectShop: k = () => {
334
+ },
335
+ campaignSingleText: r,
336
+ salesCampaignTypes: $ = [],
337
+ startsInPrefixTextPlural: S,
338
+ startsinSuffixTextPlural: B,
339
+ startsInPrefixTextSingular: N,
340
+ startsinSuffixTextSingular: R,
341
+ themeData: H,
342
+ ...W
343
+ } = e, h = s ? new Date(s) <= /* @__PURE__ */ new Date() : !1;
344
+ J(
345
+ d ? new Date(d) : null,
346
+ s ? new Date(s) : null
347
+ );
348
+ const y = J(
349
+ s ? new Date(s) : null,
350
+ /* @__PURE__ */ new Date()
351
+ );
352
+ return /* @__PURE__ */ p(
353
+ fe,
354
+ {
355
+ theme: o,
356
+ onClick: g,
357
+ ...W,
358
+ children: [
359
+ /* @__PURE__ */ p(pe, { theme: o, onClick: () => b == null ? void 0 : b(), children: [
360
+ /* @__PURE__ */ t("img", { src: w }),
361
+ /* @__PURE__ */ t(ve, { children: x == null ? void 0 : x.map((I, A) => {
362
+ var _, L;
363
+ return /* @__PURE__ */ t(
364
+ ye,
365
+ {
366
+ color: (_ = $ == null ? void 0 : $.find((P) => P.value === I)) == null ? void 0 : _.color,
367
+ theme: o,
368
+ children: /* @__PURE__ */ t(
369
+ ge,
370
+ {
371
+ icon: (L = $ == null ? void 0 : $.find((P) => P.value === I)) == null ? void 0 : L.icon
372
+ }
373
+ )
374
+ },
375
+ `package__${A}`
376
+ );
377
+ }) })
378
+ ] }),
379
+ /* @__PURE__ */ p(ue, { theme: o, children: [
380
+ /* @__PURE__ */ p("div", { className: "text-block-wrapper", children: [
381
+ /* @__PURE__ */ p("div", { className: "title-block-wrapper", children: [
382
+ /* @__PURE__ */ t("div", { className: "campaign-title", children: r }),
383
+ /* @__PURE__ */ t("div", { className: "campaign-title-text", children: u }),
384
+ /* @__PURE__ */ t("div", { className: "timestamp-text", children: h ? "" : y === 1 ? `${N} ${y} ${R}` : `${S} ${y} ${B}` })
385
+ ] }),
386
+ /* @__PURE__ */ t("div", { children: n })
387
+ ] }),
388
+ /* @__PURE__ */ t(
389
+ te,
390
+ {
391
+ hasPermission: !0,
392
+ image: (
393
+ // <ShopFallbackImage
394
+ // image={shopImage}
395
+ // uuid={shopUuid}
396
+ // size={ImageSize.SMALL}
397
+ // className={`${shopImage ? "" : "no-image"}`}
398
+ // />
399
+ /* @__PURE__ */ t(
400
+ "img",
401
+ {
402
+ src: f,
403
+ className: `${f ? "" : "no-image"}`
404
+ }
405
+ )
406
+ ),
407
+ themeData: H,
408
+ isActive: !0,
409
+ isUser: !1,
410
+ name: v,
411
+ onClick: () => k(a)
412
+ }
413
+ )
414
+ ] })
415
+ ]
416
+ }
417
+ );
418
+ };
419
+ oe.propTypes = {
420
+ title: i.oneOfType([i.string, i.element]),
421
+ numberOfListings: i.number,
422
+ dropdown: i.any,
423
+ color: i.string
424
+ };
425
+ const $e = m.div`
426
+ display: flex;
427
+ flex-direction: column;
428
+ gap: 1.5rem;
429
+ position: relative;
430
+
431
+ & .hover-left-arrow {
432
+ display: none;
433
+ position: absolute;
434
+ top: 50%;
435
+ left: 1.5rem;
436
+ z-index: ${(e) => X(e.arrowsZIndex) ? e.arrowsZIndex : 20};
437
+ }
438
+
439
+ & .hover-right-arrow {
440
+ display: none;
441
+ position: absolute;
442
+ top: 50%;
443
+ right: 1.5rem;
444
+ z-index: ${(e) => X(e.arrowsZIndex) ? e.arrowsZIndex : 20};
445
+ }
446
+
447
+ & .clip-loader-wrapper {
448
+ margin: auto;
449
+ padding: 0 1rem;
450
+ }
451
+
452
+ @media (max-width: ${T + "px"}) {
453
+ gap: 1.25rem;
454
+ & .hover-left-arrow,
455
+ .hover-right-arrow {
456
+ display: flex;
457
+ }
458
+ }
459
+ `, De = m.div`
460
+ display: flex;
461
+ align-items: center;
462
+
463
+ justify-content: space-between;
464
+ gap: 1rem;
465
+
466
+ font-weight: 600;
467
+ font-size: 1.5rem;
468
+
469
+ & .btns-group {
470
+ display: flex;
471
+ gap: 0.375rem;
472
+ }
473
+
474
+ @media (max-width: ${T + "px"}) {
475
+ padding: 0 1rem;
476
+ & .btns-group {
477
+ display: none;
478
+ }
479
+ }
480
+ `, Ce = m.div`
481
+ position: relative;
482
+ padding: ${(e) => e.padding};
483
+
484
+ & button {
485
+ white-space: nowrap;
486
+ }
487
+
488
+ & .badge-button {
489
+ ${(e) => e.showTimesBtn === !0 && "padding-left: 0.5rem; padding-right: 0.5rem;"}
490
+ }
491
+
492
+ & .gradient {
493
+ position: absolute;
494
+ top: 50%;
495
+ transform: translate(0, -50%);
496
+ z-index: 4;
497
+ transition: ${"0.3s"};
498
+ right: ${(e) => e.noArrows !== !0 ? "6rem" : "0"};
499
+ width: 2rem;
500
+ background: #fff;
501
+ height: 100%;
502
+ -webkit-mask-image: linear-gradient(to left, black 10%, transparent 50%);
503
+ mask-image: linear-gradient(to left, black 10%, transparent 50%);
504
+ }
505
+
506
+ & .scrollable-container {
507
+ scroll-behavior: smooth;
508
+ overflow: hidden;
509
+ -webkit-overflow-scrolling: touch;
510
+ ::-webkit-scrollbar {
511
+ -webkit-appearance: none;
512
+ }
513
+ -ms-overflow-style: none;
514
+ /* Internet Explorer 10+ */
515
+ scrollbar-width: none;
516
+ /* Firefox */
517
+
518
+ &::-webkit-scrollbar {
519
+ display: none;
520
+ /* Safari and Chrome */
521
+ }
522
+ }
523
+ & .scroll-arrow-right,
524
+ & .scroll-arrow-left {
525
+ position: absolute;
526
+ top: 50%;
527
+ transform: translate(0, -50%);
528
+ display: flex;
529
+ justify-content: center;
530
+ align-items: center;
531
+ cursor: pointer;
532
+
533
+ visibility: ${(e) => e.arrowsVisibleOnHover === !1 && e.hasOverflow ? "visible" : "hidden"};
534
+ z-index: 4;
535
+ transition: ${"0.3s"};
536
+ }
537
+ & .scroll-arrow-right {
538
+ ${(e) => e.rightAlignArrows === !0 ? "right: 0" : "right: 0.7rem"};
539
+ }
540
+ & .scroll-arrow-left {
541
+ ${(e) => e.rightAlignArrows === !0 ? "right: 2.625rem" : "left: 0.7rem"};
542
+ }
543
+ & .scrollable-container:hover > .scroll-arrow-left,
544
+ & .scrollable-container:hover > .scroll-arrow-right {
545
+ visibility: ${(e) => e.hasOverflow ? "visible" : "hidden"};
546
+ }
547
+
548
+ @media (max-width: ${T + "px"}) {
549
+ & .scroll-arrow-left,
550
+ & .scroll-arrow-right {
551
+ display: none;
552
+ }
553
+
554
+ & .gradient {
555
+ right: 0;
556
+ }
557
+ }
558
+ `, ke = (e, o) => {
559
+ const [l, a] = z({
560
+ trigger: null,
561
+ direction: null
562
+ }), u = (n) => n.touches || n.originalEvent.touches;
563
+ return j(() => {
564
+ const n = typeof e == "string" || e instanceof String ? document.getElementById(e) : e.current;
565
+ let c = null, w = null;
566
+ if (n) {
567
+ const b = (s) => {
568
+ const d = u(s)[0];
569
+ c = d.clientX, w = d.clientY;
570
+ }, D = (s) => {
571
+ if (!c || !w)
572
+ return;
573
+ const d = s.touches[0].clientX, x = s.touches[0].clientY, v = c - d, f = w - x;
574
+ Math.abs(v) > Math.abs(f) ? v > 0 ? a((g) => ({
575
+ trigger: !g.trigger,
576
+ direction: F.LEFT
577
+ })) : a((g) => ({
578
+ trigger: !g.trigger,
579
+ direction: F.RIGHT
580
+ })) : f > 0 ? a((g) => ({
581
+ trigger: !g.trigger,
582
+ direction: F.UP
583
+ })) : a((g) => ({
584
+ trigger: !g.trigger,
585
+ direction: F.DOWN
586
+ })), c = null, w = null;
587
+ };
588
+ return n.addEventListener("touchstart", b), n.addEventListener("touchmove", D), () => {
589
+ n.removeEventListener("touchstart", b), n.addEventListener("touchmove", D);
590
+ };
591
+ }
592
+ }, []), l;
593
+ }, F = {
594
+ UP: "up",
595
+ DOWN: "down",
596
+ RIGHT: "right",
597
+ LEFT: "left"
598
+ }, ie = V(
599
+ ({
600
+ title: e,
601
+ columnGap: o = "2rem",
602
+ rowGap: l = "1.25rem",
603
+ scrollBySize: a = 300,
604
+ wrapForMobile: u = !1,
605
+ wrap: n = !1,
606
+ children: c,
607
+ methodsRef: w,
608
+ arrowsVisibleOnHover: b = !0,
609
+ rightAlignArrows: D = !1,
610
+ padding: s = "0",
611
+ showTimesBtn: d,
612
+ noArrows: x,
613
+ onShowEnd: v,
614
+ arrowsZIndex: f,
615
+ ...g
616
+ }, k) => {
617
+ const r = re(), $ = M(), [S, B] = z(!1), [N, R] = z(!1), [H, W] = z(!0), h = Q(), y = ke(h);
618
+ j(() => {
619
+ (y == null ? void 0 : y.direction) === F.RIGHT && N !== !0 ? A() : (y == null ? void 0 : y.direction) === F.LEFT && S !== !0 && I();
620
+ }, [y]);
621
+ const I = () => {
622
+ var C;
623
+ (C = h.current) == null || C.scrollBy(a, 0);
624
+ }, A = () => {
625
+ var C;
626
+ (C = h.current) == null || C.scrollBy(-a, 0);
627
+ }, [_, L] = z(!1);
628
+ j(() => {
629
+ var C, Z;
630
+ L(
631
+ ((C = h == null ? void 0 : h.current) == null ? void 0 : C.scrollWidth) > ((Z = h == null ? void 0 : h.current) == null ? void 0 : Z.clientWidth)
632
+ );
633
+ }, [c]), ne(w, () => ({
634
+ scrollToEnd() {
635
+ P();
636
+ },
637
+ scrollLeft() {
638
+ A();
639
+ },
640
+ scrollRight() {
641
+ I();
642
+ }
643
+ }));
644
+ const P = () => {
645
+ h.current.scrollLeft = h.current.scrollWidth;
646
+ };
647
+ return /* @__PURE__ */ p($e, { arrowsZIndex: f, children: [
648
+ /* @__PURE__ */ p(De, { children: [
649
+ /* @__PURE__ */ t("div", { children: e }),
650
+ /* @__PURE__ */ p("div", { className: "btns-group", children: [
651
+ /* @__PURE__ */ t(
652
+ U,
653
+ {
654
+ borderRadius: "curved",
655
+ btnType: "tinted",
656
+ className: "scroll-arrow-left",
657
+ color: "neutral",
658
+ disabled: N,
659
+ icon: "angle-left",
660
+ onClick: A
661
+ }
662
+ ),
663
+ /* @__PURE__ */ t(
664
+ U,
665
+ {
666
+ borderRadius: "curved",
667
+ btnType: "tinted",
668
+ className: "scroll-arrow-right",
669
+ color: "neutral",
670
+ disabled: S,
671
+ icon: "angle-right",
672
+ onClick: I
673
+ }
674
+ )
675
+ ] })
676
+ ] }),
677
+ /* @__PURE__ */ t(
678
+ U,
679
+ {
680
+ borderRadius: "curved",
681
+ btnType: "tinted",
682
+ className: "hover-left-arrow scroll-arrow-left",
683
+ color: "neutral",
684
+ disabled: N,
685
+ icon: "angle-left",
686
+ onClick: A
687
+ }
688
+ ),
689
+ /* @__PURE__ */ t(
690
+ U,
691
+ {
692
+ borderRadius: "curved",
693
+ btnType: "tinted",
694
+ className: "hover-right-arrow scroll-arrow-right",
695
+ color: "neutral",
696
+ disabled: S,
697
+ icon: "angle-right",
698
+ onClick: I
699
+ }
700
+ ),
701
+ /* @__PURE__ */ t(
702
+ Ce,
703
+ {
704
+ ref: k,
705
+ arrowsVisibleOnHover: b,
706
+ hasOverflow: _,
707
+ noArrows: x,
708
+ padding: s,
709
+ rightAlignArrows: D,
710
+ showTimesBtn: d,
711
+ theme: $,
712
+ ...g,
713
+ children: /* @__PURE__ */ p(
714
+ me,
715
+ {
716
+ ref: h,
717
+ className: "scrollable-container",
718
+ columnGap: o,
719
+ rowGap: l,
720
+ wrap: n || u && r ? "Wrap" : "NoWrap",
721
+ children: [
722
+ /* @__PURE__ */ t(
723
+ Y,
724
+ {
725
+ isHorizontal: !0,
726
+ onIsNotVisible: () => {
727
+ N === !0 && R(!1);
728
+ },
729
+ onIsVisible: () => {
730
+ N === !1 && R(!0);
731
+ }
732
+ }
733
+ ),
734
+ c,
735
+ /* @__PURE__ */ t(
736
+ Y,
737
+ {
738
+ isHorizontal: !0,
739
+ onIsNotVisible: () => {
740
+ S === !0 && B(!1), W(!0);
741
+ },
742
+ onIsVisible: () => {
743
+ S === !1 && B(!0), W(!1), v == null || v();
744
+ }
745
+ }
746
+ ),
747
+ H && _ && /* @__PURE__ */ t("div", { className: "gradient" })
748
+ ]
749
+ }
750
+ )
751
+ }
752
+ )
753
+ ] });
754
+ }
755
+ );
756
+ ie.propTypes = {
757
+ title: i.string,
758
+ rowGap: i.string,
759
+ columnGap: i.string,
760
+ scrollBySize: i.number,
761
+ wrapForMobile: i.bool,
762
+ wrap: i.bool,
763
+ methodsRef: i.any,
764
+ arrowsVisibleOnHover: i.bool,
765
+ rightAlignArrows: i.bool,
766
+ padding: i.string
767
+ };
768
+ const Se = m.div`
769
+ display: flex;
770
+ flex-direction: column;
771
+ gap: 1.5rem;
772
+
773
+ & .arrow-icon {
774
+ & i {
775
+ transition: all 0.25s ease;
776
+ transform: ${(e) => e.expanded === !0 ? "rotate(-180deg)" : "rotate(0)"};
777
+ }
778
+ }
779
+
780
+ & .badge-button {
781
+ white-space: nowrap;
782
+ font-weight: 500;
783
+ }
784
+
785
+ & .campaign-item {
786
+ min-width: calc(50% - 0.87rem);
787
+ width: calc(50% - 0.87rem);
788
+ margin-right: 1.25rem;
789
+ }
790
+
791
+ @media (max-width: ${T + "px"}) {
792
+ & .campaign-item {
793
+ min-width: 100%;
794
+ width: 100%;
795
+ margin-right: 0;
796
+ }
797
+ }
798
+ `, O = m.div`
799
+ width: ${(e) => e.width || "100%"};
800
+ height: ${(e) => (e.heightCoeff || 1) * 1.125}rem;
801
+ background-color: var(--gray-200, #dddfe4);
802
+
803
+ ${ee("-90deg")}
804
+ `, Ne = m.div`
805
+ display: flex;
806
+ flex-direction: ${(e) => e != null && e.row ? "row" : "column"};
807
+ gap: ${(e) => (e == null ? void 0 : e.gap) ?? "0.5rem"};
808
+ width: ${(e) => (e == null ? void 0 : e.width) ?? "100%"};
809
+ `, K = m.div`
810
+ border-radius: ${(e) => E(e.theme, (e == null ? void 0 : e.borderRadius) ?? "regular")};
811
+ background: var(--gray-200, #dddfe4);
812
+ position: relative;
813
+ max-height: ${(e) => (e == null ? void 0 : e.height) ?? "5rem"};
814
+ max-width: ${(e) => (e == null ? void 0 : e.width) ?? "5rem"};
815
+ height: ${(e) => (e == null ? void 0 : e.height) ?? "5rem"};
816
+ width: ${(e) => (e == null ? void 0 : e.width) ?? "5rem"};
817
+ flex-shrink: 0;
818
+
819
+ ${ee()}
820
+ `, Ie = m.div`
821
+ background: var(--white, #fff);
822
+ border-radius: ${(e) => E(e.theme, "edged")};
823
+ box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
824
+ border: 1px solid var(--gray-95012, #14161a1f);
825
+
826
+ display: flex;
827
+ gap: 1rem;
828
+ padding: 1.25rem;
829
+ width: 100%;
830
+
831
+ & .campaign__left-section {
832
+ position: relative;
833
+ }
834
+
835
+ & .campaign__right-section {
836
+ display: flex;
837
+ flex-direction: column;
838
+ justify-content: space-between;
839
+ max-width: 18rem;
840
+ width: 100%;
841
+ }
842
+
843
+ & .campaign__user {
844
+ display: flex;
845
+ align-items: center;
846
+ gap: 0.5rem;
847
+ }
848
+ `, Te = V(({}, e) => {
849
+ const o = M();
850
+ return /* @__PURE__ */ p(Ie, { ref: e, theme: o, children: [
851
+ /* @__PURE__ */ t("div", { className: "campaign__left-section", children: /* @__PURE__ */ t(
852
+ K,
853
+ {
854
+ theme: o,
855
+ width: "15rem",
856
+ height: "15rem",
857
+ borderRadius: "edged"
858
+ }
859
+ ) }),
860
+ /* @__PURE__ */ p("div", { className: "campaign__right-section", children: [
861
+ /* @__PURE__ */ p(Ne, { theme: o, children: [
862
+ /* @__PURE__ */ t(O, { heightCoeff: 0.75, theme: o, width: "35%" }),
863
+ /* @__PURE__ */ t(O, { heightCoeff: 1.25, theme: o }),
864
+ /* @__PURE__ */ t(O, { heightCoeff: 3, theme: o })
865
+ ] }),
866
+ /* @__PURE__ */ p("div", { className: "campaign__user", children: [
867
+ /* @__PURE__ */ t(
868
+ K,
869
+ {
870
+ theme: o,
871
+ width: "2.5rem",
872
+ height: "2.5rem",
873
+ borderRadius: "curved"
874
+ }
875
+ ),
876
+ /* @__PURE__ */ t(O, { theme: o, width: "75%" })
877
+ ] })
878
+ ] })
879
+ ] });
880
+ }), Ae = ({ itemsCount: e = 5, keyPrefix: o }) => /* @__PURE__ */ t(G, { children: Array.from({ length: e }, (l, a) => /* @__PURE__ */ t(
881
+ Te,
882
+ {},
883
+ `${o}-skeleton-campaign-card-${a}`
884
+ )) }), Fe = ({
885
+ children: e,
886
+ fallbackComponent: o = /* @__PURE__ */ t(G, {}),
887
+ isLoading: l = !1,
888
+ itemsCount: a = 5,
889
+ keyPrefix: u
890
+ }) => /* @__PURE__ */ t(se, { fallback: o, children: l === !0 ? /* @__PURE__ */ t(Ae, { itemsCount: a, keyPrefix: u }) : e }), Ee = le(oe), Ze = V(
891
+ ({
892
+ sellerType: e = "Shop",
893
+ items: o = [],
894
+ title: l,
895
+ isLoading: a,
896
+ onSelectCard: u = () => {
897
+ },
898
+ onSelectShop: n = () => {
899
+ },
900
+ // new
901
+ customScrollSize: c,
902
+ campaignSingleText: w,
903
+ salesCampaignTypes: b = [],
904
+ startsInPrefixTextPlural: D,
905
+ startsinSuffixTextPlural: s,
906
+ startsInPrefixTextSingular: d,
907
+ startsinSuffixTextSingular: x
908
+ }, v) => {
909
+ const f = Q(), g = re(), k = ce(() => o == null ? void 0 : o.map((r, $) => /* @__PURE__ */ t(
910
+ Ee,
911
+ {
912
+ className: "campaign-item",
913
+ coverPhoto: r == null ? void 0 : r.coverPhoto,
914
+ description: r == null ? void 0 : r.description,
915
+ endDate: r == null ? void 0 : r.endDate,
916
+ salesPackages: r == null ? void 0 : r.salesPackages,
917
+ sellerType: e,
918
+ shopImage: r == null ? void 0 : r.profileImage,
919
+ shopName: r == null ? void 0 : r.shopName,
920
+ shopUuid: r == null ? void 0 : r.shopUuid,
921
+ startDate: r == null ? void 0 : r.startDate,
922
+ title: r == null ? void 0 : r.name,
923
+ uuid: r == null ? void 0 : r.campaignUuid,
924
+ onSelectCard: () => u(r == null ? void 0 : r.campaignUuid, r == null ? void 0 : r.shopUuid),
925
+ onSelectShop: () => n(r == null ? void 0 : r.shopUuid),
926
+ campaignSingleText: w,
927
+ salesCampaignTypes: b,
928
+ startsInPrefixTextPlural: D,
929
+ startsinSuffixTextPlural: s,
930
+ startsInPrefixTextSingular: d,
931
+ startsinSuffixTextSingular: x,
932
+ themeData: r == null ? void 0 : r.themeData
933
+ },
934
+ `campaign__item__${$}__${r == null ? void 0 : r.startDate}___${r == null ? void 0 : r.endDate}`
935
+ )), [o]);
936
+ return /* @__PURE__ */ t(G, { children: (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t(Se, { ref: v, className: "row-section-scroll", children: /* @__PURE__ */ t(
937
+ ie,
938
+ {
939
+ arrowsVisibleOnHover: !1,
940
+ columnGap: "0",
941
+ methodsRef: f,
942
+ mobileHoverScrollButtons: !0,
943
+ noArrows: !0,
944
+ padding: "0.25rem 0",
945
+ rightAlignArrows: !0,
946
+ scrollBySize: g ? window.innerWidth : c > 0 ? c : window.innerWidth,
947
+ showTimesBtn: !1,
948
+ title: l,
949
+ onShowEnd: () => {
950
+ },
951
+ arrowsZIndex: 11,
952
+ children: /* @__PURE__ */ t(
953
+ Fe,
954
+ {
955
+ isLoading: a,
956
+ itemsCount: 2,
957
+ keyPrefix: "sales-camp",
958
+ children: k
959
+ }
960
+ )
961
+ }
962
+ ) }) });
963
+ }
964
+ );
965
+ export {
966
+ Ze as default
967
+ };