@lanaco/lnc-react-ui 4.0.199 → 4.0.200

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 (247) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +45 -56
  3. package/dist/AccordionDetails.cjs +3 -3
  4. package/dist/AccordionDetails.js +11 -25
  5. package/dist/AccordionSummary.cjs +4 -4
  6. package/dist/AccordionSummary.js +34 -44
  7. package/dist/ActionsToolbar.cjs +2 -3
  8. package/dist/ActionsToolbar.js +83 -135
  9. package/dist/Alert.cjs +10 -10
  10. package/dist/Alert.js +32 -64
  11. package/dist/Avatar.cjs +9 -9
  12. package/dist/Avatar.js +33 -72
  13. package/dist/Badge.cjs +6 -6
  14. package/dist/Badge.js +22 -47
  15. package/dist/BlogCategoryCardsSection.cjs +1 -1
  16. package/dist/BlogCategoryCardsSection.js +12 -14
  17. package/dist/BlogExploreSection.cjs +1 -1
  18. package/dist/BlogExploreSection.js +1 -1
  19. package/dist/BlogsSectionWithFilters.cjs +1 -1
  20. package/dist/BlogsSectionWithFilters.js +1 -1
  21. package/dist/Breadcrumbs.cjs +5 -5
  22. package/dist/Breadcrumbs.js +57 -87
  23. package/dist/Button.cjs +11 -11
  24. package/dist/Button.js +126 -173
  25. package/dist/ButtonGroup.cjs +8 -8
  26. package/dist/ButtonGroup.js +37 -49
  27. package/dist/CalorieCalculatorSection.cjs +8 -8
  28. package/dist/CalorieCalculatorSection.js +90 -97
  29. package/dist/CheckBoxInput.cjs +1 -1
  30. package/dist/CheckBoxInput.js +2 -5
  31. package/dist/Chip.cjs +14 -14
  32. package/dist/Chip.js +73 -111
  33. package/dist/ConfirmationForm.cjs +6 -6
  34. package/dist/ConfirmationForm.js +67 -109
  35. package/dist/ContactSection.cjs +1 -0
  36. package/dist/ContactSection.js +1 -0
  37. package/dist/Content.cjs +1 -1
  38. package/dist/Content.js +7 -15
  39. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  40. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  41. package/dist/DataView.cjs +1 -1
  42. package/dist/DataView.js +30 -50
  43. package/dist/DateInput.cjs +4 -4
  44. package/dist/DateInput.js +1347 -1383
  45. package/dist/DecimalInput.cjs +6 -6
  46. package/dist/DecimalInput.js +210 -263
  47. package/dist/DecimalInputV2.cjs +23 -23
  48. package/dist/DecimalInputV2.js +119 -176
  49. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  50. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  51. package/dist/DetailedProductsSection.cjs +1 -1
  52. package/dist/DetailedProductsSection.js +1 -1
  53. package/dist/DetailsView.cjs +9 -9
  54. package/dist/DetailsView.js +111 -162
  55. package/dist/DoubleRangeSlider.cjs +22 -22
  56. package/dist/DoubleRangeSlider.js +70 -95
  57. package/dist/DragAndDropFile.cjs +10 -10
  58. package/dist/DragAndDropFile.js +347 -402
  59. package/dist/DragDropFiles.cjs +4 -4
  60. package/dist/DragDropFiles.js +70 -124
  61. package/dist/Drawer.cjs +5 -5
  62. package/dist/Drawer.js +97 -135
  63. package/dist/Dropdown.cjs +1 -1
  64. package/dist/Dropdown.js +44 -213
  65. package/dist/DropdownItem.cjs +14 -14
  66. package/dist/DropdownItem.js +106 -142
  67. package/dist/DropdownLookup.cjs +1 -1
  68. package/dist/DropdownLookup.js +61 -242
  69. package/dist/DropdownMenu.cjs +4 -4
  70. package/dist/DropdownMenu.js +87 -149
  71. package/dist/EditableTable.cjs +10 -10
  72. package/dist/EditableTable.js +165 -331
  73. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  74. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  75. package/dist/FaqSection.cjs +3 -3
  76. package/dist/FaqSection.js +119 -153
  77. package/dist/FileInput.cjs +7 -7
  78. package/dist/FileInput.js +66 -94
  79. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  80. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  81. package/dist/FlexBox.cjs +6 -6
  82. package/dist/FlexBox.js +28 -63
  83. package/dist/FlexGrid.cjs +1 -1
  84. package/dist/FlexGrid.js +27 -67
  85. package/dist/FlexGridItem.cjs +6 -6
  86. package/dist/FlexGridItem.js +34 -62
  87. package/dist/Footer.cjs +1 -1
  88. package/dist/Footer.js +7 -15
  89. package/dist/FormField.cjs +7 -7
  90. package/dist/FormField.js +22 -47
  91. package/dist/FormView.cjs +6 -6
  92. package/dist/FormView.js +148 -195
  93. package/dist/Grid.cjs +2 -2
  94. package/dist/Grid.js +40 -65
  95. package/dist/GridItem.cjs +2 -2
  96. package/dist/GridItem.js +47 -80
  97. package/dist/Header.cjs +1 -1
  98. package/dist/Header.js +7 -15
  99. package/dist/HelpBannerSection.cjs +3 -3
  100. package/dist/HelpBannerSection.js +9 -15
  101. package/dist/Icon.cjs +4 -4
  102. package/dist/Icon.js +29 -55
  103. package/dist/IconButton.cjs +9 -9
  104. package/dist/IconButton.js +89 -127
  105. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  106. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  107. package/dist/Kanban.cjs +7 -7
  108. package/dist/Kanban.js +2033 -2098
  109. package/dist/KanbanActionsToolbar.cjs +4 -5
  110. package/dist/KanbanActionsToolbar.js +61 -96
  111. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  112. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  113. package/dist/KanbanCard.cjs +1 -1
  114. package/dist/KanbanCard.js +2 -3
  115. package/dist/KanbanFooter.cjs +3 -3
  116. package/dist/KanbanFooter.js +37 -55
  117. package/dist/KanbanHeader.cjs +4 -4
  118. package/dist/KanbanHeader.js +49 -81
  119. package/dist/KanbanView.cjs +2 -2
  120. package/dist/KanbanView.js +106 -173
  121. package/dist/Link.cjs +7 -7
  122. package/dist/Link.js +20 -37
  123. package/dist/LocationSearchSection.cjs +1 -1
  124. package/dist/LocationSearchSection.js +1 -1
  125. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  126. package/dist/MasonryGeneralCardsSection.js +1 -1
  127. package/dist/MenuItem.cjs +13 -13
  128. package/dist/MenuItem.js +101 -139
  129. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  130. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  131. package/dist/Modal.cjs +18 -19
  132. package/dist/Modal.js +131 -166
  133. package/dist/MultiSelectDropdown.cjs +1 -1
  134. package/dist/MultiSelectDropdown.js +25 -196
  135. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  136. package/dist/MultiSelectDropdownLookup.js +27 -209
  137. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  138. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  139. package/dist/NestedDropdownItem.cjs +3 -3
  140. package/dist/NestedDropdownItem.js +45 -67
  141. package/dist/NestedMenuItem.cjs +5 -5
  142. package/dist/NestedMenuItem.js +51 -78
  143. package/dist/NotificationContainer.cjs +10 -10
  144. package/dist/NotificationContainer.js +46 -79
  145. package/dist/NotificationMessage.cjs +2 -2
  146. package/dist/NotificationMessage.js +47 -64
  147. package/dist/NumberInput.cjs +23 -23
  148. package/dist/NumberInput.js +89 -149
  149. package/dist/PageLayout.cjs +2 -2
  150. package/dist/PageLayout.js +20 -28
  151. package/dist/Pagination.cjs +3 -3
  152. package/dist/Pagination.js +102 -185
  153. package/dist/PasswordInput.cjs +23 -23
  154. package/dist/PasswordInput.js +108 -137
  155. package/dist/Popover.cjs +1 -1
  156. package/dist/Popover.js +7 -32
  157. package/dist/PopoverContent.cjs +5 -5
  158. package/dist/PopoverContent.js +22 -28
  159. package/dist/PopoverTrigger.cjs +1 -1
  160. package/dist/PopoverTrigger.js +7 -12
  161. package/dist/ProgressBar.cjs +8 -8
  162. package/dist/ProgressBar.js +32 -59
  163. package/dist/RadioGroup.cjs +3 -3
  164. package/dist/RadioGroup.js +41 -72
  165. package/dist/RadioInput.cjs +28 -28
  166. package/dist/RadioInput.js +78 -123
  167. package/dist/RangeSlider.cjs +19 -19
  168. package/dist/RangeSlider.js +92 -119
  169. package/dist/ReviewsSection.cjs +13 -13
  170. package/dist/ReviewsSection.js +81 -101
  171. package/dist/SalesCampaignsSection.cjs +19 -19
  172. package/dist/SalesCampaignsSection.js +283 -324
  173. package/dist/SearchBar.cjs +10 -10
  174. package/dist/SearchBar.js +168 -188
  175. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  176. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  177. package/dist/SearchSection.cjs +1 -1
  178. package/dist/SearchSection.js +2 -3
  179. package/dist/Separator.cjs +3 -3
  180. package/dist/Separator.js +14 -19
  181. package/dist/Sidebar.cjs +4 -5
  182. package/dist/Sidebar.js +33 -56
  183. package/dist/SimpleCategoriesSection.cjs +1 -1
  184. package/dist/SimpleCategoriesSection.js +1 -1
  185. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  186. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  187. package/dist/Spinner.cjs +18 -18
  188. package/dist/Spinner.js +37 -54
  189. package/dist/StatsSection.cjs +6 -6
  190. package/dist/StatsSection.js +15 -25
  191. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  192. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  193. package/dist/Surface.cjs +4 -4
  194. package/dist/Surface.js +19 -34
  195. package/dist/SwipeableDrawer.cjs +8 -8
  196. package/dist/SwipeableDrawer.js +84 -136
  197. package/dist/TabItem.cjs +11 -11
  198. package/dist/TabItem.js +83 -118
  199. package/dist/Table.cjs +65 -65
  200. package/dist/Table.js +786 -1167
  201. package/dist/TableView.cjs +2 -2
  202. package/dist/TableView.js +113 -197
  203. package/dist/Tabs.cjs +4 -4
  204. package/dist/Tabs.js +41 -60
  205. package/dist/TextAreaInput.cjs +14 -14
  206. package/dist/TextAreaInput.js +131 -181
  207. package/dist/TextInput.cjs +23 -23
  208. package/dist/TextInput.js +78 -126
  209. package/dist/ThemeProvider.cjs +5 -5
  210. package/dist/ThemeProvider.js +35 -39
  211. package/dist/TimeInput.cjs +7 -7
  212. package/dist/TimeInput.js +46 -72
  213. package/dist/Toggle.cjs +20 -20
  214. package/dist/Toggle.js +78 -109
  215. package/dist/ToggleSection.cjs +5 -5
  216. package/dist/ToggleSection.js +48 -55
  217. package/dist/TreeMenu.cjs +5 -5
  218. package/dist/TreeMenu.js +43 -67
  219. package/dist/TreeMenuSeparator.cjs +3 -3
  220. package/dist/TreeMenuSeparator.js +12 -20
  221. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  222. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  223. package/dist/UploadedFile.cjs +11 -11
  224. package/dist/UploadedFile.js +73 -99
  225. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  226. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  227. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  228. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  229. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  230. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  231. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  232. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  233. package/dist/index-BdKi2ogu.js +39 -0
  234. package/dist/index-CRk3vcd4.cjs +95 -0
  235. package/dist/index-CX2A-q39.cjs +4 -0
  236. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  237. package/dist/index.cjs +1 -1
  238. package/dist/index.js +2 -2
  239. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  240. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  241. package/package.json +1 -1
  242. package/dist/KanbanCard-68kSAXL6.js +0 -175
  243. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  244. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  245. package/dist/index-Be-_NM9Q.cjs +0 -4
  246. package/dist/index-C0LcDEqa.js +0 -47
  247. package/dist/index-CSNxZFTX.cjs +0 -95
@@ -1,19 +1,18 @@
1
- import { jsx as n, jsxs as s, Fragment as Oe } from "react/jsx-runtime";
2
- import { forwardRef as j, useRef as $e, useEffect as oe, Fragment as je, createElement as Re, useState as te, Suspense as Be, memo as We, useMemo as Fe } from "react";
3
- import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { a as ie, k as ae, l as Ge, z as Ve, A as Ae, B as He, C as ue } from "./utils-DtEfC-TX.js";
5
- import { M as U } from "./consts-BuFChS64.js";
6
- import _e from "./Icon.js";
7
- import { D as fe } from "./ShopAvatar-4-fCYGEc.js";
8
- import Ze from "./Badge.js";
9
- import { P as o } from "./index-CblbdqjE.js";
10
- import { u as Ce } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
11
- import xe from "./IconButton.js";
12
- import { u as ke } from "./useDetectMobile-Bkvj0VMa.js";
13
- import { I as qe } from "./index-C0LcDEqa.js";
14
- import { m as Xe } from "./motion-Ckekul_K.js";
15
- import { S as O, c as be, b as ve, a as w, d as we } from "./style-BwQ4djFC.js";
16
- const Ye = y.a`
1
+ import { jsx as n, jsxs as i, Fragment as Le } from "react/jsx-runtime";
2
+ import { forwardRef as R, useRef as $e, useEffect as ae, Fragment as Ee, createElement as Ue, useState as ne, Suspense as Me, memo as Re, useMemo as je } from "react";
3
+ import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { a as oe, k as te, l as Be, z as Oe, A as We, B as Ge, C as pe } from "./utils-DtEfC-TX.js";
5
+ import { M as L } from "./consts-BuFChS64.js";
6
+ import Se from "./Icon.js";
7
+ import { D as ue } from "./ShopAvatar-4-fCYGEc.js";
8
+ import Ve from "./Badge.js";
9
+ import { u as _e } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
10
+ import fe from "./IconButton.js";
11
+ import { u as Ce } from "./useDetectMobile-Bkvj0VMa.js";
12
+ import { I as Fe } from "./index-BdKi2ogu.js";
13
+ import { m as Ae } from "./motion-Ckekul_K.js";
14
+ import { S as M, c as xe, b as ve, a as w, d as we } from "./style-BwQ4djFC.js";
15
+ const Ze = b.a`
17
16
  text-decoration: none;
18
17
  color: var(--gray-950);
19
18
  cursor: pointer;
@@ -23,13 +22,13 @@ const Ye = y.a`
23
22
  border-radius: 1.25rem;
24
23
  border: 1px solid var(--gray-200, #e4e9f0);
25
24
 
26
- @media (max-width: ${U + "px"}) {
25
+ @media (max-width: ${L + "px"}) {
27
26
  flex-direction: column;
28
27
  padding: 1rem;
29
28
  gap: 0;
30
29
  }
31
- `, Je = y.div`
32
- border-radius: ${(r) => ie(r.theme, "edged")};
30
+ `, qe = b.div`
31
+ border-radius: ${(r) => oe(r.theme, "edged")};
33
32
  height: 13.75rem;
34
33
  width: 13.75rem;
35
34
  min-width: 13.75rem;
@@ -51,7 +50,7 @@ const Ye = y.a`
51
50
  transform: scale(1.25);
52
51
  }
53
52
  }
54
- `, Ke = y.div`
53
+ `, He = b.div`
55
54
  flex: 1;
56
55
  display: flex;
57
56
  flex-direction: column;
@@ -134,7 +133,7 @@ const Ye = y.a`
134
133
  color: var(--gray-600, #676e79);
135
134
  }
136
135
 
137
- @media (max-width: ${U + "px"}) {
136
+ @media (max-width: ${L + "px"}) {
138
137
  padding: 1rem 0 0 0;
139
138
 
140
139
  & .campaign-title-text {
@@ -159,13 +158,13 @@ const Ye = y.a`
159
158
  gap: 0.25rem;
160
159
  }
161
160
  }
162
- `, ye = (r = !1, t = !1, i = !1) => `
161
+ `, be = (r = !1, t = !1, o = !1) => `
163
162
  display: flex;
164
163
  ${t ? "flex-wrap: wrap;" : ""}
165
164
  ${t ? "" : "flex-wrap: nowrap;"}
166
165
  ${r ? "align-items: center;" : ""}
167
- ${i ? "justify-content: center;" : ""}
168
- `, Qe = y.a`
166
+ ${o ? "justify-content: center;" : ""}
167
+ `, Xe = b.a`
169
168
  text-decoration: none;
170
169
  color: var(--gray-950);
171
170
  ${(r) => r.hasPermission === !0 && "cursor: pointer"};
@@ -183,14 +182,14 @@ const Ye = y.a`
183
182
  text-decoration: none;
184
183
  }
185
184
 
186
- ${ye(!0)}
185
+ ${be(!0)}
187
186
  gap: 0.5rem;
188
187
  padding: 0.5rem;
189
188
  color: var(--gray-950, #14161a);
190
189
  font-weight: 500;
191
190
  font-size: 1rem;
192
191
  line-height: 1.5rem;
193
- border-radius: ${(r) => ie(r.theme, "slight")};
192
+ border-radius: ${(r) => oe(r.theme, "slight")};
194
193
  transition: all 0.25s ease;
195
194
  & .description {
196
195
  font-size: 0.85rem;
@@ -199,7 +198,7 @@ const Ye = y.a`
199
198
  font-weight: 400;
200
199
  }
201
200
  & .logo-wrapper {
202
- ${ye(!0, !1, !0)}
201
+ ${be(!0, !1, !0)}
203
202
  flex-shrink: 0;
204
203
  border-radius: 999px;
205
204
 
@@ -238,18 +237,18 @@ const Ye = y.a`
238
237
  background-color: var(--gray-95080, #14161acc);
239
238
  }
240
239
 
241
- @media (max-width: ${U + "px"}) {
240
+ @media (max-width: ${L + "px"}) {
242
241
  padding: 0;
243
242
  font-size: 0.875rem;
244
243
  }
245
- `, er = y.div`
244
+ `, Ye = b.div`
246
245
  position: absolute;
247
246
  top: 0.5rem;
248
247
  ${(r) => r.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
249
248
  display: flex;
250
249
  gap: 0.25rem;
251
- `, rr = y.div`
252
- border-radius: ${(r) => ie(r.theme, r.borderRadius || "slight")};
250
+ `, Je = b.div`
251
+ border-radius: ${(r) => oe(r.theme, r.borderRadius || "slight")};
253
252
  background-color: ${(r) => r == null ? void 0 : r.color};
254
253
  color: white;
255
254
  height: 1.5rem;
@@ -264,203 +263,180 @@ const Ye = y.a`
264
263
  & i {
265
264
  font-size: 0.813rem;
266
265
  }
267
- `, nr = j(({ src: r, ...t }, i) => {
266
+ `, Ke = R(({ src: r, ...t }, o) => {
268
267
  const a = $e();
269
- return oe(() => {
270
- var p;
271
- const d = (l) => {
272
- l.target.src = fe, l.onerror = null;
268
+ return ae(() => {
269
+ var g;
270
+ const c = (s) => {
271
+ s.target.src = ue, s.onerror = null;
273
272
  };
274
- return (p = a == null ? void 0 : a.current) == null || p.addEventListener("error", d), () => {
275
- var l;
276
- (l = a == null ? void 0 : a.current) == null || l.removeEventListener("error", d);
273
+ return (g = a == null ? void 0 : a.current) == null || g.addEventListener("error", c), () => {
274
+ var s;
275
+ (s = a == null ? void 0 : a.current) == null || s.removeEventListener("error", c);
277
276
  };
278
- }, []), /* @__PURE__ */ n(je, { ref: i, children: ae(r) ? /* @__PURE__ */ n("img", { ref: a, src: r, ...t }) : /* @__PURE__ */ n("img", { src: fe, ...t }) });
279
- }), Ie = (r) => {
277
+ }, []), /* @__PURE__ */ n(Ee, { ref: o, children: te(r) ? /* @__PURE__ */ n("img", { ref: a, src: r, ...t }) : /* @__PURE__ */ n("img", { src: ue, ...t }) });
278
+ }), Qe = (r) => {
280
279
  const {
281
280
  uuid: t,
282
- hasPermission: i = !0,
281
+ hasPermission: o = !0,
283
282
  isUser: a,
284
- image: d,
285
- imageComponent: p,
286
- name: l,
287
- notifications: _ = 0,
288
- color: m = "primary",
283
+ image: c,
284
+ imageComponent: g,
285
+ name: s,
286
+ notifications: S = 0,
287
+ color: d = "primary",
289
288
  size: h = "large",
290
- style: g,
291
- disabled: k,
292
- onClick: f = () => {
289
+ style: m,
290
+ disabled: C,
291
+ onClick: u = () => {
293
292
  },
294
293
  isActive: v,
295
- className: I,
296
- shopCategory: N,
294
+ className: k,
295
+ shopCategory: I,
297
296
  // new
298
- themeData: S,
299
- LinkComponent: c
300
- } = r, x = c || "a", E = {
301
- theme: Ce(),
302
- color: m,
297
+ themeData: y,
298
+ LinkComponent: l
299
+ } = r, f = l || "a", E = {
300
+ theme: _e(),
301
+ color: d,
303
302
  size: h,
304
- style: g,
305
- disabled: k
303
+ style: m,
304
+ disabled: C
306
305
  };
307
- return /* @__PURE__ */ Re(
308
- Qe,
306
+ return /* @__PURE__ */ Ue(
307
+ Xe,
309
308
  {
310
- onClick: (u) => {
311
- u == null || u.preventDefault(), u.stopPropagation(), i === !0 && (f == null || f());
309
+ onClick: (p) => {
310
+ p == null || p.preventDefault(), p.stopPropagation(), o === !0 && (u == null || u());
312
311
  },
313
312
  ...E,
314
- key: l,
315
- className: `profile-item ${I}`,
316
- hasPermission: i,
313
+ key: s,
314
+ className: `profile-item ${k}`,
315
+ hasPermission: o,
317
316
  isActive: v,
318
- themeColor: (S == null ? void 0 : S.code) || "transparent",
319
- as: x,
320
- ...c ? { to: `/${a ? "user" : "shop"}/${t}` } : { href: `/${a ? "user" : "shop"}/${t}` }
317
+ themeColor: (y == null ? void 0 : y.code) || "transparent",
318
+ as: f,
319
+ ...l ? { to: `/${a ? "user" : "shop"}/${t}` } : { href: `/${a ? "user" : "shop"}/${t}` }
321
320
  },
322
- /* @__PURE__ */ n("div", { className: "logo-wrapper", children: Ge(p) ? p : d }),
323
- /* @__PURE__ */ s("div", { children: [
324
- /* @__PURE__ */ n("div", { className: "name", children: l }),
325
- !a && /* @__PURE__ */ n("div", { className: "description", children: N }),
326
- _ > 0 && /* @__PURE__ */ n("div", { className: "notifications-number", children: /* @__PURE__ */ n(Ze, { className: "badge", color: "danger", size: "small", children: _ > 99 ? "99+" : _ }) })
321
+ /* @__PURE__ */ n("div", { className: "logo-wrapper", children: Be(g) ? g : c }),
322
+ /* @__PURE__ */ i("div", { children: [
323
+ /* @__PURE__ */ n("div", { className: "name", children: s }),
324
+ !a && /* @__PURE__ */ n("div", { className: "description", children: I }),
325
+ S > 0 && /* @__PURE__ */ n("div", { className: "notifications-number", children: /* @__PURE__ */ n(Ve, { className: "badge", color: "danger", size: "small", children: S > 99 ? "99+" : S }) })
327
326
  ] })
328
327
  );
329
- };
330
- Ie.propTypes = {
331
- id: o.any,
332
- isUserProfile: o.bool,
333
- themeColor: o.string,
334
- image: o.any,
335
- name: o.string,
336
- notifications: o.number,
337
- style: o.object,
338
- className: o.string,
339
- color: o.oneOf([
340
- "primary",
341
- "secondary",
342
- "success",
343
- "warning",
344
- "danger",
345
- "information",
346
- "neutral"
347
- ]),
348
- size: o.oneOf(["large"]),
349
- onSelect: o.func,
350
- hasPermission: o.bool
351
- };
352
- const Se = (r) => {
328
+ }, ye = (r) => {
353
329
  if (r !== void 0) {
354
- const t = new Date(r), i = t.getFullYear(), a = t.getMonth() + 1;
355
- return `${String(t.getDate()).padStart(2)}. ${a}. ${i}.`;
330
+ const t = new Date(r), o = t.getFullYear(), a = t.getMonth() + 1;
331
+ return `${String(t.getDate()).padStart(2)}. ${a}. ${o}.`;
356
332
  }
357
- }, tr = j((r, t) => {
333
+ }, er = R((r, t) => {
358
334
  var he;
359
- const i = Ce(), {
335
+ const o = _e(), {
360
336
  uuid: a,
361
- shopUuid: d,
362
- title: p = "",
337
+ shopUuid: c,
338
+ title: g = "",
363
339
  // description,
364
340
  // badges,
365
- coverPhoto: l,
366
- onSelect: _,
341
+ coverPhoto: s,
342
+ onSelect: S,
367
343
  // status,
368
- startDate: m,
344
+ startDate: d,
369
345
  endDate: h,
370
- salesPackages: g,
371
- shopName: k,
372
- shopCategory: f,
346
+ salesPackages: m,
347
+ shopName: C,
348
+ shopCategory: u,
373
349
  shopImage: v,
374
- shopImageComponent: I,
375
- className: N,
376
- onSelectCard: S = () => {
350
+ shopImageComponent: k,
351
+ className: I,
352
+ onSelectCard: y = () => {
377
353
  },
378
- onSelectShop: c = () => {
354
+ onSelectShop: l = () => {
379
355
  },
380
- upcoming: x = !1,
356
+ upcoming: f = !1,
381
357
  upcomingCampaignText: D,
382
358
  campaignSingleText: E,
383
- salesCampaignTypes: u = [],
359
+ salesCampaignTypes: p = [],
384
360
  startsInPrefixTextPlural: V,
385
- startsinSuffixTextPlural: A,
386
- startsInPrefixTextSingular: H,
387
- startsinSuffixTextSingular: se,
361
+ startsinSuffixTextPlural: F,
362
+ startsInPrefixTextSingular: A,
363
+ startsinSuffixTextSingular: ie,
388
364
  endsInPrefixTextPlural: Z,
389
365
  endsinSuffixTextPlural: q,
390
- endsInPrefixTextSingular: R,
391
- endsinSuffixTextSingular: X,
392
- endedText: Y,
393
- themeData: le,
394
- numberOfListings: P,
395
- numberOfListingsTextSingular: J,
366
+ endsInPrefixTextSingular: j,
367
+ endsinSuffixTextSingular: H,
368
+ endedText: X,
369
+ themeData: se,
370
+ numberOfListings: T,
371
+ numberOfListingsTextSingular: Y,
396
372
  numberOfListingsTextPlural: B,
397
373
  metadata: e,
398
- LinkComponent: W,
399
- ...ce
400
- } = r, K = W || "a", de = $e(), M = Ve(m, h), Q = M !== -1 && (M == null ? void 0 : M.isEnded) === !0, ee = M !== -1 && !Q, re = Ae(m), z = He(h), Te = z !== null && z <= 2 && z > 0, me = ue(h), ge = me ? new Date(me) : null, Pe = /* @__PURE__ */ new Date(), ne = ge ? ge.getTime() - Pe.getTime() : null, F = ne !== null && ne > 0 && ne < 24 * 60 * 60 * 1e3, pe = (b, L, C, $, T) => C === 1 ? `${b} ${C} ${$}` : `${L} ${C} ${T}`, ze = () => {
374
+ LinkComponent: O,
375
+ ...le
376
+ } = r, J = O || "a", ce = $e(), U = Oe(d, h), K = U !== -1 && (U == null ? void 0 : U.isEnded) === !0, Q = U !== -1 && !K, ee = We(d), z = Ge(h), ke = z !== null && z <= 2 && z > 0, de = pe(h), me = de ? new Date(de) : null, Ie = /* @__PURE__ */ new Date(), re = me ? me.getTime() - Ie.getTime() : null, W = re !== null && re > 0 && re < 24 * 60 * 60 * 1e3, ge = (x, P, _, $, N) => _ === 1 ? `${x} ${_} ${$}` : `${P} ${_} ${N}`, De = () => {
401
377
  if (!h) return null;
402
- const b = ue(h), L = b ? new Date(b) : null;
403
- if (!L) return null;
404
- const C = Le, $ = L.getTime() - C.getTime();
378
+ const x = pe(h), P = x ? new Date(x) : null;
379
+ if (!P) return null;
380
+ const _ = Ne, $ = P.getTime() - _.getTime();
405
381
  if ($ <= 0) return null;
406
- const T = Math.floor($ / (1e3 * 60 * 60)), Ee = Math.floor($ % (1e3 * 60 * 60) / (1e3 * 60)), Me = Math.floor($ % (1e3 * 60) / 1e3);
407
- return { hours: T, minutes: Ee, seconds: Me };
408
- }, [Le, Ue] = te(/* @__PURE__ */ new Date());
409
- oe(() => {
410
- if (!F) return;
411
- const b = setInterval(() => {
412
- Ue(/* @__PURE__ */ new Date());
382
+ const N = Math.floor($ / (1e3 * 60 * 60)), ze = Math.floor($ % (1e3 * 60 * 60) / (1e3 * 60)), Pe = Math.floor($ % (1e3 * 60) / 1e3);
383
+ return { hours: N, minutes: ze, seconds: Pe };
384
+ }, [Ne, Te] = ne(/* @__PURE__ */ new Date());
385
+ ae(() => {
386
+ if (!W) return;
387
+ const x = setInterval(() => {
388
+ Te(/* @__PURE__ */ new Date());
413
389
  }, 1e3);
414
- return () => clearInterval(b);
415
- }, [F]);
416
- const G = F ? ze() : null;
417
- return /* @__PURE__ */ s(
418
- Ye,
390
+ return () => clearInterval(x);
391
+ }, [W]);
392
+ const G = W ? De() : null;
393
+ return /* @__PURE__ */ i(
394
+ Ze,
419
395
  {
420
- ref: de,
421
- theme: i,
422
- className: N,
396
+ ref: ce,
397
+ theme: o,
398
+ className: I,
423
399
  name: e == null ? void 0 : e.name,
424
400
  "data-accessor": e == null ? void 0 : e.accessor,
425
- onClick: (b) => S(b, de),
426
- as: K,
427
- ...W ? { to: `/shop/${d}/campaign/${a}` } : { href: `/shop/${d}/campaign/${a}` },
428
- ...ce,
401
+ onClick: (x) => y(x, ce),
402
+ as: J,
403
+ ...O ? { to: `/shop/${c}/campaign/${a}` } : { href: `/shop/${c}/campaign/${a}` },
404
+ ...le,
429
405
  children: [
430
- /* @__PURE__ */ s(Je, { theme: i, children: [
431
- /* @__PURE__ */ n("img", { src: l }),
432
- /* @__PURE__ */ n(er, { children: g == null ? void 0 : g.map((b, L) => {
433
- var C, $;
406
+ /* @__PURE__ */ i(qe, { theme: o, children: [
407
+ /* @__PURE__ */ n("img", { src: s }),
408
+ /* @__PURE__ */ n(Ye, { children: m == null ? void 0 : m.map((x, P) => {
409
+ var _, $;
434
410
  return /* @__PURE__ */ n(
435
- rr,
411
+ Je,
436
412
  {
437
- color: (C = u == null ? void 0 : u.find((T) => T.value === b)) == null ? void 0 : C.color,
438
- theme: i,
413
+ color: (_ = p == null ? void 0 : p.find((N) => N.value === x)) == null ? void 0 : _.color,
414
+ theme: o,
439
415
  children: /* @__PURE__ */ n(
440
- _e,
416
+ Se,
441
417
  {
442
- icon: ($ = u == null ? void 0 : u.find((T) => T.value === b)) == null ? void 0 : $.icon
418
+ icon: ($ = p == null ? void 0 : p.find((N) => N.value === x)) == null ? void 0 : $.icon
443
419
  }
444
420
  )
445
421
  },
446
- `package__${L}`
422
+ `package__${P}`
447
423
  );
448
424
  }) })
449
425
  ] }),
450
- /* @__PURE__ */ s(Ke, { theme: i, children: [
451
- /* @__PURE__ */ n("div", { className: "text-block-wrapper", children: /* @__PURE__ */ s("div", { className: "title-block-wrapper", children: [
452
- /* @__PURE__ */ n("div", { className: "campaign-title", children: (he = x ? D : E) == null ? void 0 : he.toUpperCase() }),
453
- /* @__PURE__ */ n("div", { className: "campaign-title-text", children: p }),
454
- h && m && /* @__PURE__ */ s("div", { className: "campaign-date", children: [
455
- Se(m),
426
+ /* @__PURE__ */ i(He, { theme: o, children: [
427
+ /* @__PURE__ */ n("div", { className: "text-block-wrapper", children: /* @__PURE__ */ i("div", { className: "title-block-wrapper", children: [
428
+ /* @__PURE__ */ n("div", { className: "campaign-title", children: (he = f ? D : E) == null ? void 0 : he.toUpperCase() }),
429
+ /* @__PURE__ */ n("div", { className: "campaign-title-text", children: g }),
430
+ h && d && /* @__PURE__ */ i("div", { className: "campaign-date", children: [
431
+ ye(d),
456
432
  " - ",
457
- Se(h)
433
+ ye(h)
458
434
  ] }),
459
- /* @__PURE__ */ s("div", { className: "timestamp-text", children: [
460
- P > 0 && /* @__PURE__ */ s("span", { className: "listings-text", children: [
461
- P,
435
+ /* @__PURE__ */ i("div", { className: "timestamp-text", children: [
436
+ T > 0 && /* @__PURE__ */ i("span", { className: "listings-text", children: [
437
+ T,
462
438
  " ",
463
- P === 1 ? J : B,
439
+ T === 1 ? Y : B,
464
440
  " ",
465
441
  "∙",
466
442
  " "
@@ -468,52 +444,52 @@ const Se = (r) => {
468
444
  /* @__PURE__ */ n(
469
445
  "span",
470
446
  {
471
- className: `duration-text ${Te ? "urgent" : ""} ${ee ? "" : "starts-in"}`,
472
- children: F && G ? /* @__PURE__ */ s("div", { className: "countdown-timer", children: [
473
- R,
447
+ className: `duration-text ${ke ? "urgent" : ""} ${Q ? "" : "starts-in"}`,
448
+ children: W && G ? /* @__PURE__ */ i("div", { className: "countdown-timer", children: [
449
+ j,
474
450
  " ",
475
451
  G.hours.toString().padStart(2, "0"),
476
452
  ":",
477
453
  G.minutes.toString().padStart(2, "0"),
478
454
  ":",
479
455
  G.seconds.toString().padStart(2, "0")
480
- ] }) : ee && !Q && z !== null && z > 0 ? pe(
481
- R,
456
+ ] }) : Q && !K && z !== null && z > 0 ? ge(
457
+ j,
482
458
  Z,
483
459
  z,
484
- X,
485
- q
486
- ) : Q ? Y || "Završena" : !ee && re !== null && re > 0 ? pe(
487
460
  H,
461
+ q
462
+ ) : K ? X || "Završena" : !Q && ee !== null && ee > 0 ? ge(
463
+ A,
488
464
  V,
489
- re,
490
- se,
491
- A
465
+ ee,
466
+ ie,
467
+ F
492
468
  ) : null
493
469
  }
494
470
  )
495
471
  ] })
496
472
  ] }) }),
497
473
  /* @__PURE__ */ n(
498
- Ie,
474
+ Qe,
499
475
  {
500
476
  hasPermission: !0,
501
- image: /* @__PURE__ */ n(nr, { src: v }),
502
- imageComponent: I,
503
- themeData: le,
477
+ image: /* @__PURE__ */ n(Ke, { src: v }),
478
+ imageComponent: k,
479
+ themeData: se,
504
480
  isActive: !0,
505
481
  isUser: !1,
506
- name: k,
507
- shopCategory: f,
508
- uuid: d,
509
- onClick: () => c(d)
482
+ name: C,
483
+ shopCategory: u,
484
+ uuid: c,
485
+ onClick: () => l(c)
510
486
  }
511
487
  )
512
488
  ] })
513
489
  ]
514
490
  }
515
491
  );
516
- }), ar = y.div`
492
+ }), rr = b.div`
517
493
  margin: 0 auto;
518
494
  display: flex;
519
495
  flex-direction: column;
@@ -552,7 +528,7 @@ const Se = (r) => {
552
528
  right: 0;
553
529
  }
554
530
 
555
- @media (max-width: ${U + "px"}) {
531
+ @media (max-width: ${L + "px"}) {
556
532
  gap: 1.25rem;
557
533
 
558
534
  & .scrollable-section__header {
@@ -564,13 +540,13 @@ const Se = (r) => {
564
540
  }
565
541
  }
566
542
  }
567
- `, or = y(Xe.div)`
543
+ `, nr = b(Ae.div)`
568
544
  display: grid;
569
545
  grid-template-columns: repeat(${(r) => r == null ? void 0 : r.numOfColumns}, 1fr);
570
546
  gap: 1.5rem;
571
547
  width: 100%;
572
548
 
573
- @media (max-width: ${U + "px"}) {
549
+ @media (max-width: ${L + "px"}) {
574
550
  display: flex;
575
551
  flex-wrap: nowrap;
576
552
  overflow-x: scroll;
@@ -592,37 +568,37 @@ const Se = (r) => {
592
568
  /* Safari and Chrome */
593
569
  }
594
570
  }
595
- `, Ne = j(
571
+ `, tr = R(
596
572
  ({
597
573
  icon: r,
598
574
  title: t,
599
- numOfSlides: i = 2,
575
+ numOfSlides: o = 2,
600
576
  showNavigation: a = !0,
601
- hasNextPage: d = !1,
602
- handleFetchNextPage: p = () => {
577
+ hasNextPage: c = !1,
578
+ handleFetchNextPage: g = () => {
603
579
  },
604
- children: l
605
- }, _) => {
606
- const [m, h] = te(0), [g, k] = te(1), f = ke(), v = (l == null ? void 0 : l.length) ?? 1;
607
- oe(() => {
608
- const c = () => {
609
- k(i);
580
+ children: s
581
+ }, S) => {
582
+ const [d, h] = ne(0), [m, C] = ne(1), u = Ce(), v = (s == null ? void 0 : s.length) ?? 1;
583
+ ae(() => {
584
+ const l = () => {
585
+ C(o);
610
586
  };
611
- return window.addEventListener("resize", c), c(), () => window.removeEventListener("resize", c);
587
+ return window.addEventListener("resize", l), l(), () => window.removeEventListener("resize", l);
612
588
  }, []);
613
- const I = f ? l : l == null ? void 0 : l.slice(m, m + g), N = (c) => {
589
+ const k = u ? s : s == null ? void 0 : s.slice(d, d + m), I = (l) => {
614
590
  var D;
615
- (D = c == null ? void 0 : c.target) == null || D.blur();
616
- const x = m + g;
617
- x < v && h(x), x + g >= v && d && p();
618
- }, S = (c) => {
619
- var x;
620
- (x = c == null ? void 0 : c.target) == null || x.blur(), m - g >= 0 && h(m - g);
591
+ (D = l == null ? void 0 : l.target) == null || D.blur();
592
+ const f = d + m;
593
+ f < v && h(f), f + m >= v && c && g();
594
+ }, y = (l) => {
595
+ var f;
596
+ (f = l == null ? void 0 : l.target) == null || f.blur(), d - m >= 0 && h(d - m);
621
597
  };
622
- return /* @__PURE__ */ s(ar, { ref: _, children: [
623
- /* @__PURE__ */ n("div", { className: "scrollable-section__header", children: /* @__PURE__ */ s("div", { className: "scrollable-section__title", children: [
624
- ae(r) && /* @__PURE__ */ n(
625
- _e,
598
+ return /* @__PURE__ */ i(rr, { ref: S, children: [
599
+ /* @__PURE__ */ n("div", { className: "scrollable-section__header", children: /* @__PURE__ */ i("div", { className: "scrollable-section__title", children: [
600
+ te(r) && /* @__PURE__ */ n(
601
+ Se,
626
602
  {
627
603
  icon: r,
628
604
  color: "primary",
@@ -630,16 +606,16 @@ const Se = (r) => {
630
606
  className: "title__icon"
631
607
  }
632
608
  ),
633
- ae(t) && /* @__PURE__ */ s("div", { className: "title__text", children: [
609
+ te(t) && /* @__PURE__ */ i("div", { className: "title__text", children: [
634
610
  " ",
635
611
  t
636
612
  ] })
637
613
  ] }) }),
638
- /* @__PURE__ */ s(
639
- or,
614
+ /* @__PURE__ */ i(
615
+ nr,
640
616
  {
641
- numOfColumns: i,
642
- ...!f && {
617
+ numOfColumns: o,
618
+ ...!u && {
643
619
  animate: {
644
620
  x: 0,
645
621
  opacity: 1
@@ -650,50 +626,41 @@ const Se = (r) => {
650
626
  }
651
627
  },
652
628
  children: [
653
- I,
654
- f && d && /* @__PURE__ */ n(qe, { onIsVisible: p })
629
+ k,
630
+ u && c && /* @__PURE__ */ n(Fe, { onIsVisible: g })
655
631
  ]
656
632
  },
657
- `scrollable-section__content-${m}`
633
+ `scrollable-section__content-${d}`
658
634
  ),
659
- a && v > g && !f && /* @__PURE__ */ s("div", { className: "scrollable-section__navigation", children: [
635
+ a && v > m && !u && /* @__PURE__ */ i("div", { className: "scrollable-section__navigation", children: [
660
636
  /* @__PURE__ */ n(
661
- xe,
637
+ fe,
662
638
  {
663
639
  icon: "angle-left",
664
640
  borderRadius: "curved",
665
641
  btnType: "tinted",
666
642
  color: "neutral",
667
643
  className: "navigation__arrow",
668
- disabled: m === 0,
669
- onClick: S
644
+ disabled: d === 0,
645
+ onClick: y
670
646
  }
671
647
  ),
672
648
  /* @__PURE__ */ n(
673
- xe,
649
+ fe,
674
650
  {
675
651
  icon: "angle-right",
676
652
  borderRadius: "curved",
677
653
  btnType: "tinted",
678
654
  color: "neutral",
679
655
  className: "navigation__arrow",
680
- disabled: m + g >= v,
681
- onClick: N
656
+ disabled: d + m >= v,
657
+ onClick: I
682
658
  }
683
659
  )
684
660
  ] })
685
661
  ] });
686
662
  }
687
- );
688
- Ne.propTypes = {
689
- icon: o.string,
690
- title: o.string,
691
- numOfSlides: o.number,
692
- numOfSlidesForMobile: o.number,
693
- handleFetchNextPage: o.func,
694
- showNavigation: o.bool
695
- };
696
- const ir = y.div`
663
+ ), ar = b.div`
697
664
  display: flex;
698
665
  flex: 1;
699
666
  width: 100%;
@@ -710,34 +677,26 @@ const ir = y.div`
710
677
  border-radius: 1.25rem;
711
678
  object-fit: cover;
712
679
  }
713
- `, De = j(
680
+ `, or = R(
714
681
  ({
715
682
  sectionName: r,
716
683
  imageUrl: t,
717
- maxHeight: i = "16.25rem",
684
+ maxHeight: o = "16.25rem",
718
685
  className: a = "",
719
- handleClick: d = () => {
686
+ handleClick: c = () => {
720
687
  }
721
- }, p) => /* @__PURE__ */ n(
722
- ir,
688
+ }, g) => /* @__PURE__ */ n(
689
+ ar,
723
690
  {
724
- ref: p,
725
- maxHeight: i,
726
- onClick: d,
691
+ ref: g,
692
+ maxHeight: o,
693
+ onClick: c,
727
694
  className: `itemless-banner ${a}`,
728
695
  children: /* @__PURE__ */ n("img", { src: t, alt: `itemless-banner__${r}` })
729
696
  }
730
697
  )
731
- );
732
- De.propTypes = {
733
- sectionName: o.string,
734
- imageUrl: o.string,
735
- maxHeight: o.string,
736
- className: o.string,
737
- handleClick: o.func
738
- };
739
- const sr = y(O)`
740
- @media (max-width: ${U + "px"}) {
698
+ ), ir = b(M)`
699
+ @media (max-width: ${L + "px"}) {
741
700
  flex-direction: column;
742
701
 
743
702
  & .skeleton__image {
@@ -751,10 +710,10 @@ const sr = y(O)`
751
710
  }
752
711
  }
753
712
  }
754
- `, lr = ({ keyPrefix: r }) => /* @__PURE__ */ s(sr, { children: [
755
- /* @__PURE__ */ s(O, { children: [
713
+ `, sr = ({ keyPrefix: r }) => /* @__PURE__ */ i(ir, { children: [
714
+ /* @__PURE__ */ i(M, { children: [
756
715
  /* @__PURE__ */ n(
757
- be,
716
+ xe,
758
717
  {
759
718
  width: "13.75rem",
760
719
  height: "13.75rem",
@@ -762,20 +721,20 @@ const sr = y(O)`
762
721
  },
763
722
  `${r}-1`
764
723
  ),
765
- /* @__PURE__ */ s(ve, { noGradient: !0, children: [
724
+ /* @__PURE__ */ i(ve, { noGradient: !0, children: [
766
725
  /* @__PURE__ */ n(w, { height: "1rem" }),
767
726
  /* @__PURE__ */ n(w, { height: "1.75rem" }),
768
727
  /* @__PURE__ */ n(w, { height: "1.25rem" }),
769
728
  /* @__PURE__ */ n(w, { height: "2rem" }),
770
- /* @__PURE__ */ s(O, { alignItems: "center", noGradient: !0, children: [
729
+ /* @__PURE__ */ i(M, { alignItems: "center", noGradient: !0, children: [
771
730
  /* @__PURE__ */ n(we, { width: "2.5rem", height: "2.5rem" }),
772
731
  /* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
773
732
  ] })
774
733
  ] })
775
734
  ] }),
776
- /* @__PURE__ */ s(O, { noGradient: !0, children: [
735
+ /* @__PURE__ */ i(M, { noGradient: !0, children: [
777
736
  /* @__PURE__ */ n(
778
- be,
737
+ xe,
779
738
  {
780
739
  width: "13.75rem",
781
740
  height: "13.75rem",
@@ -783,67 +742,67 @@ const sr = y(O)`
783
742
  },
784
743
  `${r}-2`
785
744
  ),
786
- /* @__PURE__ */ s(ve, { noGradient: !0, children: [
745
+ /* @__PURE__ */ i(ve, { noGradient: !0, children: [
787
746
  /* @__PURE__ */ n(w, { height: "1rem" }),
788
747
  /* @__PURE__ */ n(w, { height: "1.75rem" }),
789
748
  /* @__PURE__ */ n(w, { height: "1.25rem" }),
790
749
  /* @__PURE__ */ n(w, { height: "2rem" }),
791
- /* @__PURE__ */ s(O, { alignItems: "center", noGradient: !0, children: [
750
+ /* @__PURE__ */ i(M, { alignItems: "center", noGradient: !0, children: [
792
751
  /* @__PURE__ */ n(we, { width: "2.5rem", height: "2.5rem" }),
793
752
  /* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
794
753
  ] })
795
754
  ] })
796
755
  ] })
797
- ] }), cr = ({
756
+ ] }), lr = ({
798
757
  keyPrefix: r,
799
758
  isLoading: t = !1,
800
- fallbackComponent: i = /* @__PURE__ */ n(Oe, {}),
759
+ fallbackComponent: o = /* @__PURE__ */ n(Le, {}),
801
760
  children: a
802
- }) => /* @__PURE__ */ n(Be, { fallbackComponent: i, children: t === !0 ? /* @__PURE__ */ n(lr, { keyPrefix: r }) : a }), dr = We(tr), kr = j(
761
+ }) => /* @__PURE__ */ n(Me, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ n(sr, { keyPrefix: r }) : a }), cr = Re(er), _r = R(
803
762
  ({
804
763
  sellerType: r = "Shop",
805
764
  items: t = [],
806
- title: i,
765
+ title: o,
807
766
  icon: a,
808
- isLoading: d,
809
- onSelectCard: p = () => {
767
+ isLoading: c,
768
+ onSelectCard: g = () => {
810
769
  },
811
- onSelectShop: l = () => {
770
+ onSelectShop: s = () => {
812
771
  },
813
- getImage: _ = () => {
772
+ getImage: S = () => {
814
773
  },
815
- campaignSingleText: m,
774
+ campaignSingleText: d,
816
775
  upcomingCampaignText: h,
817
- salesCampaignTypes: g = [],
818
- startsInPrefixTextPlural: k,
819
- startsinSuffixTextPlural: f,
776
+ salesCampaignTypes: m = [],
777
+ startsInPrefixTextPlural: C,
778
+ startsinSuffixTextPlural: u,
820
779
  startsInPrefixTextSingular: v,
821
- startsinSuffixTextSingular: I,
822
- endsInPrefixTextPlural: N,
823
- endsinSuffixTextPlural: S,
824
- endsInPrefixTextSingular: c,
825
- endsinSuffixTextSingular: x,
780
+ startsinSuffixTextSingular: k,
781
+ endsInPrefixTextPlural: I,
782
+ endsinSuffixTextPlural: y,
783
+ endsInPrefixTextSingular: l,
784
+ endsinSuffixTextSingular: f,
826
785
  endedText: D,
827
786
  numOfSlides: E = 2,
828
- showNavigation: u = !0,
787
+ showNavigation: p = !0,
829
788
  numberOfListingsTextSingular: V,
830
- numberOfListingsTextPlural: A,
831
- itemlessImageUrl: H,
832
- itemlessLink: se,
789
+ numberOfListingsTextPlural: F,
790
+ itemlessImageUrl: A,
791
+ itemlessLink: ie,
833
792
  handleItemlessLink: Z = () => {
834
793
  },
835
794
  componentName: q,
836
- hasNextPage: R = !1,
837
- handleFetchNextPage: X = () => {
795
+ hasNextPage: j = !1,
796
+ handleFetchNextPage: H = () => {
838
797
  },
839
- LinkComponent: Y
840
- }, le) => {
841
- const P = ke(), J = Fe(() => {
842
- let B = t == null ? void 0 : t.map((e, W) => /* @__PURE__ */ n(
843
- dr,
798
+ LinkComponent: X
799
+ }, se) => {
800
+ const T = Ce(), Y = je(() => {
801
+ let B = t == null ? void 0 : t.map((e, O) => /* @__PURE__ */ n(
802
+ cr,
844
803
  {
845
804
  className: "campaign-item",
846
- coverPhoto: _(
805
+ coverPhoto: S(
847
806
  e == null ? void 0 : e.coverPhoto,
848
807
  (e == null ? void 0 : e.uuid) || (e == null ? void 0 : e.campaignUuid)
849
808
  ),
@@ -859,36 +818,36 @@ const sr = y(O)`
859
818
  startDate: e == null ? void 0 : e.startDate,
860
819
  title: e == null ? void 0 : e.name,
861
820
  uuid: e == null ? void 0 : e.campaignUuid,
862
- onSelectCard: (ce, K) => p(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, K),
863
- onSelectShop: () => l(e == null ? void 0 : e.shopUuid),
864
- campaignSingleText: m,
821
+ onSelectCard: (le, J) => g(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, J),
822
+ onSelectShop: () => s(e == null ? void 0 : e.shopUuid),
823
+ campaignSingleText: d,
865
824
  upcomingCampaignText: h,
866
825
  upcoming: e == null ? void 0 : e.upcoming,
867
- salesCampaignTypes: g,
868
- startsInPrefixTextPlural: k,
869
- startsinSuffixTextPlural: f,
826
+ salesCampaignTypes: m,
827
+ startsInPrefixTextPlural: C,
828
+ startsinSuffixTextPlural: u,
870
829
  startsInPrefixTextSingular: v,
871
- startsinSuffixTextSingular: I,
872
- endsInPrefixTextPlural: N,
873
- endsinSuffixTextPlural: S,
874
- endsInPrefixTextSingular: c,
875
- endsinSuffixTextSingular: x,
830
+ startsinSuffixTextSingular: k,
831
+ endsInPrefixTextPlural: I,
832
+ endsinSuffixTextPlural: y,
833
+ endsInPrefixTextSingular: l,
834
+ endsinSuffixTextSingular: f,
876
835
  endedText: D,
877
836
  themeData: e == null ? void 0 : e.themeData,
878
837
  numberOfListings: e == null ? void 0 : e.numberOfListings,
879
838
  numberOfListingsTextSingular: V,
880
- numberOfListingsTextPlural: A,
839
+ numberOfListingsTextPlural: F,
881
840
  metadata: { name: q, accessor: e == null ? void 0 : e.accessor },
882
- LinkComponent: Y
841
+ LinkComponent: X
883
842
  },
884
- `campaign__item__${W}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
843
+ `campaign__item__${O}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
885
844
  ));
886
- return (t == null ? void 0 : t.length) < 2 && !P ? [
845
+ return (t == null ? void 0 : t.length) < 2 && !T ? [
887
846
  ...B,
888
847
  /* @__PURE__ */ n(
889
- De,
848
+ or,
890
849
  {
891
- imageUrl: H,
850
+ imageUrl: A,
892
851
  className: "campaign-item",
893
852
  handleClick: Z
894
853
  },
@@ -897,27 +856,27 @@ const sr = y(O)`
897
856
  ] : B;
898
857
  }, [t]);
899
858
  return /* @__PURE__ */ n(
900
- cr,
859
+ lr,
901
860
  {
902
- isLoading: d,
861
+ isLoading: c,
903
862
  keyPrefix: "sales-campaign-skeleton",
904
863
  children: /* @__PURE__ */ n(
905
- Ne,
864
+ tr,
906
865
  {
907
866
  icon: a,
908
- title: i,
867
+ title: o,
909
868
  numOfSlides: E,
910
- showNavigation: u,
911
- hasNextPage: R,
912
- handleFetchNextPage: X,
913
- children: J
869
+ showNavigation: p,
870
+ hasNextPage: j,
871
+ handleFetchNextPage: H,
872
+ children: Y
914
873
  },
915
- `sales-campaign-section__${P}`
874
+ `sales-campaign-section__${T}`
916
875
  )
917
876
  }
918
877
  );
919
878
  }
920
879
  );
921
880
  export {
922
- kr as default
881
+ _r as default
923
882
  };