@lanaco/lnc-react-ui 4.0.172 → 4.0.174

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 (233) 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/BannerSectionSimple.cjs +1 -1
  14. package/dist/BannerSectionSimple.js +1 -1
  15. package/dist/BannerSectionWithList.cjs +1 -1
  16. package/dist/BannerSectionWithList.js +1 -1
  17. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  18. package/dist/BlogCardsSponsoredSection.js +3 -3
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +1 -1
  21. package/dist/BlogExploreSection.cjs +1 -1
  22. package/dist/BlogExploreSection.js +2 -2
  23. package/dist/BlogListSection.cjs +1 -1
  24. package/dist/BlogListSection.js +3 -3
  25. package/dist/BlogProductCardsSection.cjs +1 -1
  26. package/dist/BlogProductCardsSection.js +1 -1
  27. package/dist/BlogShopCardsSection.cjs +1 -1
  28. package/dist/BlogShopCardsSection.js +1 -1
  29. package/dist/BlogSingleSection.cjs +1 -1
  30. package/dist/BlogSingleSection.js +1 -1
  31. package/dist/BlogsSectionDetailed.cjs +1 -1
  32. package/dist/BlogsSectionDetailed.js +3 -3
  33. package/dist/BlogsSectionLarge.cjs +1 -1
  34. package/dist/BlogsSectionLarge.js +1 -1
  35. package/dist/BlogsSectionSimple.cjs +1 -1
  36. package/dist/BlogsSectionSimple.js +3 -3
  37. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  38. package/dist/BlogsSectionSimpleCentered.js +2 -2
  39. package/dist/BlogsSectionWithFilters.cjs +1 -1
  40. package/dist/BlogsSectionWithFilters.js +4 -4
  41. package/dist/BrandHitsSection.cjs +1 -1
  42. package/dist/BrandHitsSection.js +1 -1
  43. package/dist/Breadcrumbs.cjs +1 -1
  44. package/dist/Breadcrumbs.js +1 -1
  45. package/dist/Button.cjs +1 -1
  46. package/dist/Button.js +1 -1
  47. package/dist/ButtonGroup.cjs +1 -1
  48. package/dist/ButtonGroup.js +1 -1
  49. package/dist/CalorieCalculatorSection.cjs +1 -1
  50. package/dist/CalorieCalculatorSection.js +1 -1
  51. package/dist/{CategorySimpleCard-laAY-RUT.js → CategorySimpleCard-BA0S7TaN.js} +1 -1
  52. package/dist/{CategorySimpleCard-Qe5QStrs.cjs → CategorySimpleCard-BNYjZQTH.cjs} +1 -1
  53. package/dist/CheckBoxInput.cjs +1 -1
  54. package/dist/CheckBoxInput.js +1 -1
  55. package/dist/Chip.cjs +1 -1
  56. package/dist/Chip.js +1 -1
  57. package/dist/ColorInput.cjs +1 -1
  58. package/dist/ColorInput.js +1 -1
  59. package/dist/ConfirmationForm.cjs +1 -1
  60. package/dist/ConfirmationForm.js +1 -1
  61. package/dist/CustomLoanMapSection.cjs +1 -1
  62. package/dist/CustomLoanMapSection.js +1 -1
  63. package/dist/{CustomStyles-ArAVZsIj.js → CustomStyles-6WboE3g5.js} +1 -1
  64. package/dist/{CustomStyles-Q6et9atl.cjs → CustomStyles-C86XQqBE.cjs} +1 -1
  65. package/dist/DateInput.cjs +1 -1
  66. package/dist/DateInput.js +1 -1
  67. package/dist/DecimalInput.cjs +1 -1
  68. package/dist/DecimalInput.js +1 -1
  69. package/dist/DecimalInputV2.cjs +1 -1
  70. package/dist/DecimalInputV2.js +1 -1
  71. package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
  72. package/dist/DetailedProductsInfinitiveSection.js +23 -22
  73. package/dist/DetailedProductsSection.cjs +1 -1
  74. package/dist/DetailedProductsSection.js +4 -4
  75. package/dist/DetailsView.cjs +1 -1
  76. package/dist/DetailsView.js +1 -1
  77. package/dist/DoubleRangeSlider.cjs +1 -1
  78. package/dist/DoubleRangeSlider.js +1 -1
  79. package/dist/DragAndDropFile.cjs +1 -1
  80. package/dist/DragAndDropFile.js +1 -1
  81. package/dist/DragDropFiles.cjs +1 -1
  82. package/dist/DragDropFiles.js +1 -1
  83. package/dist/Drawer.cjs +1 -1
  84. package/dist/Drawer.js +1 -1
  85. package/dist/Dropdown.cjs +1 -1
  86. package/dist/Dropdown.js +2 -2
  87. package/dist/DropdownItem.cjs +1 -1
  88. package/dist/DropdownItem.js +1 -1
  89. package/dist/DropdownLookup.cjs +1 -1
  90. package/dist/DropdownLookup.js +1 -1
  91. package/dist/DropdownMenu.cjs +1 -1
  92. package/dist/DropdownMenu.js +1 -1
  93. package/dist/EditableTable.cjs +1 -1
  94. package/dist/EditableTable.js +1 -1
  95. package/dist/FeedbackSection.cjs +1 -1
  96. package/dist/FeedbackSection.js +1 -1
  97. package/dist/FieldOfInterestsMasonrySection.cjs +1 -1
  98. package/dist/FieldOfInterestsMasonrySection.js +1 -1
  99. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  100. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
  101. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  102. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  103. package/dist/FileInput.cjs +1 -1
  104. package/dist/FileInput.js +1 -1
  105. package/dist/FlexGridItem.cjs +1 -1
  106. package/dist/FlexGridItem.js +1 -1
  107. package/dist/FormField.cjs +1 -1
  108. package/dist/FormField.js +1 -1
  109. package/dist/FormView.cjs +1 -1
  110. package/dist/FormView.js +1 -1
  111. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  112. package/dist/GeneralWithTagsCardsSection.js +1 -1
  113. package/dist/GiftCardsSection.cjs +1 -1
  114. package/dist/GiftCardsSection.js +2 -2
  115. package/dist/Icon.cjs +1 -1
  116. package/dist/Icon.js +1 -1
  117. package/dist/IconButton.cjs +1 -1
  118. package/dist/IconButton.js +1 -1
  119. package/dist/Kanban.cjs +1 -1
  120. package/dist/Kanban.js +1 -1
  121. package/dist/KanbanActionsToolbar.cjs +1 -1
  122. package/dist/KanbanActionsToolbar.js +1 -1
  123. package/dist/KanbanView.cjs +1 -1
  124. package/dist/KanbanView.js +1 -1
  125. package/dist/Link.cjs +1 -1
  126. package/dist/Link.js +1 -1
  127. package/dist/LoanCalculatorSection.cjs +1 -1
  128. package/dist/LoanCalculatorSection.js +1 -1
  129. package/dist/LocationFinderSection.cjs +1 -1
  130. package/dist/LocationFinderSection.js +1 -1
  131. package/dist/LocationSearchSection.cjs +1 -1
  132. package/dist/LocationSearchSection.js +1 -1
  133. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  134. package/dist/MasonryGeneralCardsSection.js +1 -1
  135. package/dist/MenuItem.cjs +1 -1
  136. package/dist/MenuItem.js +1 -1
  137. package/dist/Modal.cjs +1 -1
  138. package/dist/Modal.js +1 -1
  139. package/dist/MultiSelectDropdown.cjs +1 -1
  140. package/dist/MultiSelectDropdown.js +1 -1
  141. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  142. package/dist/MultiSelectDropdownLookup.js +1 -1
  143. package/dist/NestedDropdownItem.cjs +1 -1
  144. package/dist/NestedDropdownItem.js +1 -1
  145. package/dist/NestedMenuItem.cjs +1 -1
  146. package/dist/NestedMenuItem.js +1 -1
  147. package/dist/NotificationContainer.cjs +1 -1
  148. package/dist/NotificationContainer.js +1 -1
  149. package/dist/NotificationMessage.cjs +1 -1
  150. package/dist/NotificationMessage.js +1 -1
  151. package/dist/NumberInput.cjs +1 -1
  152. package/dist/NumberInput.js +1 -1
  153. package/dist/PasswordInput.cjs +1 -1
  154. package/dist/PasswordInput.js +1 -1
  155. package/dist/PopoverContent.cjs +1 -1
  156. package/dist/PopoverContent.js +1 -1
  157. package/dist/ProductsWithBannerSection.cjs +1 -1
  158. package/dist/ProductsWithBannerSection.js +3 -3
  159. package/dist/ProgressBar.cjs +1 -1
  160. package/dist/ProgressBar.js +1 -1
  161. package/dist/QuattroCardsSection.cjs +1 -1
  162. package/dist/QuattroCardsSection.js +1 -1
  163. package/dist/QuizSection.cjs +1 -1
  164. package/dist/QuizSection.js +1 -1
  165. package/dist/RadioInput.cjs +1 -1
  166. package/dist/RadioInput.js +1 -1
  167. package/dist/RangeSlider.cjs +1 -1
  168. package/dist/RangeSlider.js +1 -1
  169. package/dist/ReviewsSection.cjs +1 -1
  170. package/dist/ReviewsSection.js +2 -2
  171. package/dist/SalesCampaignsSection.cjs +25 -25
  172. package/dist/SalesCampaignsSection.js +317 -322
  173. package/dist/Separator.cjs +1 -1
  174. package/dist/Separator.js +1 -1
  175. package/dist/ShopCardsSection.cjs +1 -1
  176. package/dist/ShopCardsSection.js +2 -2
  177. package/dist/Sidebar.cjs +1 -1
  178. package/dist/Sidebar.js +1 -1
  179. package/dist/SimpleCategoriesSection.cjs +1 -1
  180. package/dist/SimpleCategoriesSection.js +3 -3
  181. package/dist/SimpleProductsSection.cjs +1 -1
  182. package/dist/SimpleProductsSection.js +1 -1
  183. package/dist/Spinner.cjs +1 -1
  184. package/dist/Spinner.js +1 -1
  185. package/dist/StatsSection.cjs +1 -1
  186. package/dist/StatsSection.js +1 -1
  187. package/dist/Surface.cjs +1 -1
  188. package/dist/Surface.js +1 -1
  189. package/dist/SwipeableDrawer.cjs +1 -1
  190. package/dist/SwipeableDrawer.js +1 -1
  191. package/dist/TabItem.cjs +1 -1
  192. package/dist/TabItem.js +1 -1
  193. package/dist/Table.cjs +1 -1
  194. package/dist/Table.js +67 -67
  195. package/dist/TableView.cjs +1 -1
  196. package/dist/TableView.js +1 -1
  197. package/dist/TextAreaInput.cjs +1 -1
  198. package/dist/TextAreaInput.js +1 -1
  199. package/dist/TextInput.cjs +1 -1
  200. package/dist/TextInput.js +1 -1
  201. package/dist/ThemeProvider.cjs +1 -1
  202. package/dist/ThemeProvider.js +1 -1
  203. package/dist/TimeInput.cjs +1 -1
  204. package/dist/TimeInput.js +1 -1
  205. package/dist/Toggle.cjs +1 -1
  206. package/dist/Toggle.js +1 -1
  207. package/dist/TreeMenuSeparator.cjs +1 -1
  208. package/dist/TreeMenuSeparator.js +1 -1
  209. package/dist/UploadedFile.cjs +1 -1
  210. package/dist/UploadedFile.js +1 -1
  211. package/dist/UrgentSaleProductsSection.cjs +1 -1
  212. package/dist/UrgentSaleProductsSection.js +1 -1
  213. package/dist/{index-D8KPbcUf.js → index-8quQ_PZS.js} +1 -1
  214. package/dist/{index-BPntOicE.js → index-B8I1mHMA.js} +2 -2
  215. package/dist/{index-CsEmnNEh.cjs → index-BD-qUr5R.cjs} +1 -1
  216. package/dist/{index-BMOLVn8O.js → index-BGiZlEQt.js} +1 -1
  217. package/dist/{index-DFdPWO4O.js → index-Bhfq_YpE.js} +2 -2
  218. package/dist/{index-CfT9e5O9.cjs → index-BnYqZk-h.cjs} +1 -1
  219. package/dist/{index-BvQx3xAm.cjs → index-CSNxZFTX.cjs} +1 -1
  220. package/dist/{index-BbltNcou.js → index-C_NnINik.js} +1 -1
  221. package/dist/{index-ELUMKl0N.cjs → index-D0JDnm9b.cjs} +1 -1
  222. package/dist/{index-D69SKc-n.cjs → index-D55MR8tU.cjs} +1 -1
  223. package/dist/{index-G6ucyCg3.js → index-DMnFESGw.js} +2 -2
  224. package/dist/{index-XYs5Cuh5.js → index-DWLKvVyZ.js} +2 -2
  225. package/dist/{index-C5r__0lD.cjs → index-DoKMLSVY.cjs} +1 -1
  226. package/dist/{index-BueKsXT8.cjs → index-uwl7BjRF.cjs} +1 -1
  227. package/dist/index.cjs +1 -1
  228. package/dist/index.js +1 -1
  229. package/dist/{style-D3pIrH3v.js → style-C7FUSHmS.js} +1 -1
  230. package/dist/{style-Db3VFbfP.cjs → style-CkcozOY6.cjs} +1 -1
  231. package/dist/{utils-DHfRApMf.js → utils-Dc5zIpaz.js} +138 -96
  232. package/dist/{utils-Dl9xPH4c.cjs → utils-RnrgDDZP.cjs} +10 -10
  233. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),f=require("./useDetectMobile-zkbzoOGV.cjs"),W=require("./style-Db3VFbfP.cjs"),b=require("./utils-Dl9xPH4c.cjs"),C=require("./index-BueKsXT8.cjs"),i=require("./style-BAcV7F53.cjs"),_=g.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),f=require("./useDetectMobile-zkbzoOGV.cjs"),W=require("./style-CkcozOY6.cjs"),b=require("./utils-RnrgDDZP.cjs"),C=require("./index-uwl7BjRF.cjs"),i=require("./style-BAcV7F53.cjs"),_=g.styled.div`
2
2
  width: 100%;
3
3
  height: 22.5rem;
4
4
  min-height: 22.5rem;
@@ -3,9 +3,9 @@ import { forwardRef as W, useRef as U, Suspense as G, memo as M, useMemo as _ }
3
3
  import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as R } from "./consts-BuFChS64.js";
5
5
  import { u as j } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { R as B } from "./style-D3pIrH3v.js";
7
- import { o as I, l as y, k as z } from "./utils-DHfRApMf.js";
8
- import { P as D } from "./index-BbltNcou.js";
6
+ import { R as B } from "./style-C7FUSHmS.js";
7
+ import { o as I, l as y, k as z } from "./utils-Dc5zIpaz.js";
8
+ import { P as D } from "./index-C_NnINik.js";
9
9
  import { S as o, b as i, a as l, c as b } from "./style-CXMUA6cI.js";
10
10
  const E = f.div`
11
11
  width: 100%;
@@ -1,4 +1,4 @@
1
- "use strict";const a=require("react/jsx-runtime"),i=require("react"),r=require("./index-BpbMKBf_.cjs"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-Dl9xPH4c.cjs"),P=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),f=l.styled.div`
1
+ "use strict";const a=require("react/jsx-runtime"),i=require("react"),r=require("./index-BpbMKBf_.cjs"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-RnrgDDZP.cjs"),P=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),f=l.styled.div`
2
2
  width: 100%;
3
3
  position: relative;
4
4
  background-color: ${e=>o.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","unfilled")};
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as h } from "react/jsx-runtime";
2
2
  import { forwardRef as f, isValidElement as P, cloneElement as y } from "react";
3
3
  import { P as r } from "./index-CblbdqjE.js";
4
4
  import { s as t } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { b as n, c as x } from "./utils-DHfRApMf.js";
5
+ import { b as n, c as x } from "./utils-Dc5zIpaz.js";
6
6
  import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  const w = t.div`
8
8
  width: 100%;
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),n=require("react"),l=require("./utils-Dl9xPH4c.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),u=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-CvykQBGY.cjs"),f=require("./index-D0IYt1s3.cjs"),h=m.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),n=require("react"),l=require("./utils-RnrgDDZP.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),u=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-CvykQBGY.cjs"),f=require("./index-D0IYt1s3.cjs"),h=m.styled.div`
2
2
  position: absolute;
3
3
  top: 0;
4
4
  left: 0;
@@ -1,6 +1,6 @@
1
1
  import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as c, memo as f, useMemo as u } from "react";
3
- import { t as h, o as _, k as b } from "./utils-DHfRApMf.js";
3
+ import { t as h, o as _, k as b } from "./utils-Dc5zIpaz.js";
4
4
  import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import { M as p } from "./consts-BuFChS64.js";
6
6
  import { u as w } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),i=require("react"),N=require("./utils-Dl9xPH4c.cjs"),k=require("./Button.cjs"),T=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),M=require("./Icon.cjs"),K=require("./ProgressBar.cjs"),V=T.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),i=require("react"),N=require("./utils-RnrgDDZP.cjs"),k=require("./Button.cjs"),T=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),M=require("./Icon.cjs"),K=require("./ProgressBar.cjs"),V=T.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  justify-content: center;
@@ -1,6 +1,6 @@
1
1
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as I, useState as w, useRef as B, useEffect as re } from "react";
3
- import { x as ae, k as te, l as G, s as ie } from "./utils-DHfRApMf.js";
3
+ import { x as ae, k as te, l as G, s as ie } from "./utils-Dc5zIpaz.js";
4
4
  import z from "./Button.js";
5
5
  import { s as E } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
6
  import { M as U, C as H, a as P } from "./consts-BuFChS64.js";
@@ -1,4 +1,4 @@
1
- "use strict";const i=require("react/jsx-runtime"),h=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./index-BpbMKBf_.cjs"),o=require("./utils-Dl9xPH4c.cjs"),O=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=e=>e=="left"?"row-reverse":"row",q=m.styled.label`
1
+ "use strict";const i=require("react/jsx-runtime"),h=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./index-BpbMKBf_.cjs"),o=require("./utils-RnrgDDZP.cjs"),O=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=e=>e=="left"?"row-reverse":"row",q=m.styled.label`
2
2
  min-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
3
3
  max-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
4
4
  width: 100%;
@@ -2,7 +2,7 @@ import { jsxs as b, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as P, useState as j } from "react";
3
3
  import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { P as i } from "./index-CblbdqjE.js";
5
- import { d as f, c as N, e as T, b as t } from "./utils-DHfRApMf.js";
5
+ import { d as f, c as N, e as T, b as t } from "./utils-Dc5zIpaz.js";
6
6
  import { u as F } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
8
8
  min-height: ${(e) => f(e.theme, e.size)};
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),n=require("./index-BpbMKBf_.cjs"),o=require("react"),t=require("./utils-Dl9xPH4c.cjs"),U=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./useUpdateEffect-BtMgpgIV.cjs"),L=({theme:e,size:i})=>{var c=t.getSizeValueWithUnits(e,i);return`
1
+ "use strict";const r=require("react/jsx-runtime"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),n=require("./index-BpbMKBf_.cjs"),o=require("react"),t=require("./utils-RnrgDDZP.cjs"),U=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./useUpdateEffect-BtMgpgIV.cjs"),L=({theme:e,size:i})=>{var c=t.getSizeValueWithUnits(e,i);return`
2
2
  min-height: ${c};
3
3
  max-height: ${c};
4
4
  `},b={small:"0.875rem",medium:"1.125rem",large:"1.375rem"},W=y.styled.div`
@@ -2,7 +2,7 @@ import { jsxs as N, jsx as t, Fragment as W } from "react/jsx-runtime";
2
2
  import { s as x } from "./emotion-styled.browser.esm-BNN1dTl3.js";
3
3
  import { P as n } from "./index-CblbdqjE.js";
4
4
  import { forwardRef as X, useRef as q, useState as v, useCallback as A, useEffect as M } from "react";
5
- import { a as D, b as o, c as G, d as H } from "./utils-DHfRApMf.js";
5
+ import { a as D, b as o, c as G, d as H } from "./utils-Dc5zIpaz.js";
6
6
  import { u as J } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  import { u as K } from "./useUpdateEffect-CuYWz7EA.js";
8
8
  const Q = ({ theme: e, size: i }) => {
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),m=require("react"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-goSZX3xP.cjs"),v=require("./useDetectMobile-zkbzoOGV.cjs"),u=require("./utils-Dl9xPH4c.cjs"),k=require("./ThemeProvider.cjs"),s=require("./index-BpbMKBf_.cjs"),R=require("./index-BueKsXT8.cjs"),i=require("./style-BAcV7F53.cjs"),P=l.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),m=require("react"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-goSZX3xP.cjs"),v=require("./useDetectMobile-zkbzoOGV.cjs"),u=require("./utils-RnrgDDZP.cjs"),k=require("./ThemeProvider.cjs"),s=require("./index-BpbMKBf_.cjs"),R=require("./index-uwl7BjRF.cjs"),i=require("./style-BAcV7F53.cjs"),P=l.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  color: var(--darkest-950);
@@ -3,10 +3,10 @@ import { forwardRef as v, Suspense as N, memo as z, useMemo as P } from "react";
3
3
  import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as $ } from "./consts-BuFChS64.js";
5
5
  import { u as M } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { t as I, o as W, b as j, g as E } from "./utils-DHfRApMf.js";
6
+ import { t as I, o as W, b as j, g as E } from "./utils-Dc5zIpaz.js";
7
7
  import { useTheme as T } from "./ThemeProvider.js";
8
8
  import { P as d } from "./index-CblbdqjE.js";
9
- import { P as x } from "./index-BbltNcou.js";
9
+ import { P as x } from "./index-C_NnINik.js";
10
10
  import { s as G, a as L, S as f, c as w, b as o } from "./style-CXMUA6cI.js";
11
11
  const F = s.div`
12
12
  display: flex;
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),d=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./utils-Dl9xPH4c.cjs"),L=require("./consts-goSZX3xP.cjs"),ie=require("./motion-B_VPZaJq.cjs"),s=require("./index-BpbMKBf_.cjs"),le=require("./Icon.cjs"),ne=require("./ShopAvatar-CV3lj34D.cjs"),Se=require("./Badge.cjs"),ce=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),te=require("./IconButton.cjs"),de=require("./useDetectMobile-zkbzoOGV.cjs"),je=require("./index-Be-_NM9Q.cjs"),c=require("./style-BAcV7F53.cjs"),Pe=S.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),d=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./utils-RnrgDDZP.cjs"),R=require("./consts-goSZX3xP.cjs"),pe=require("./motion-B_VPZaJq.cjs"),t=require("./index-BpbMKBf_.cjs"),ge=require("./Icon.cjs"),ie=require("./ShopAvatar-CV3lj34D.cjs"),Te=require("./Badge.cjs"),me=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),le=require("./IconButton.cjs"),he=require("./useDetectMobile-zkbzoOGV.cjs"),ke=require("./index-Be-_NM9Q.cjs"),l=require("./style-BAcV7F53.cjs"),Ie=S.styled.div`
2
2
  cursor: pointer;
3
3
  display: flex;
4
4
  gap: 1rem;
@@ -6,13 +6,13 @@
6
6
  border-radius: 1.25rem;
7
7
  border: 1px solid var(--gray-200, #e4e9f0);
8
8
 
9
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
9
+ @media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
10
10
  flex-direction: column;
11
11
  padding: 1rem;
12
12
  gap: 0;
13
13
  }
14
- `,_e=S.styled.div`
15
- border-radius: ${n=>C.getBorderRadiusValueWithUnits(n.theme,"edged")};
14
+ `,$e=S.styled.div`
15
+ border-radius: ${n=>y.getBorderRadiusValueWithUnits(n.theme,"edged")};
16
16
  height: 13.75rem;
17
17
  width: 13.75rem;
18
18
  min-width: 13.75rem;
@@ -34,7 +34,7 @@
34
34
  transform: scale(1.25);
35
35
  }
36
36
  }
37
- `,Te=S.styled.div`
37
+ `,Ce=S.styled.div`
38
38
  flex: 1;
39
39
  display: flex;
40
40
  flex-direction: column;
@@ -117,7 +117,7 @@
117
117
  color: var(--gray-600, #676e79);
118
118
  }
119
119
 
120
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
120
+ @media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
121
121
  padding: 1rem 0 0 0;
122
122
 
123
123
  & .campaign-title-text {
@@ -142,13 +142,13 @@
142
142
  gap: 0.25rem;
143
143
  }
144
144
  }
145
- `,se=(n=!1,t=!1,o=!1)=>`
145
+ `,ce=(n=!1,s=!1,o=!1)=>`
146
146
  display: flex;
147
- ${t?"flex-wrap: wrap;":""}
148
- ${t?"":"flex-wrap: nowrap;"}
147
+ ${s?"flex-wrap: wrap;":""}
148
+ ${s?"":"flex-wrap: nowrap;"}
149
149
  ${n?"align-items: center;":""}
150
150
  ${o?"justify-content: center;":""}
151
- `,ke=S.styled(ie.motion.div)`
151
+ `,Ne=S.styled(pe.motion.div)`
152
152
  text-decoration: none;
153
153
  ${n=>n.hasPermission===!0&&"cursor: pointer"};
154
154
 
@@ -165,14 +165,14 @@
165
165
  text-decoration: none;
166
166
  }
167
167
 
168
- ${se(!0)}
168
+ ${ce(!0)}
169
169
  gap: 0.5rem;
170
170
  padding: 0.5rem;
171
171
  color: var(--gray-950, #14161a);
172
172
  font-weight: 500;
173
173
  font-size: 1rem;
174
174
  line-height: 1.5rem;
175
- border-radius: ${n=>C.getBorderRadiusValueWithUnits(n.theme,"slight")};
175
+ border-radius: ${n=>y.getBorderRadiusValueWithUnits(n.theme,"slight")};
176
176
  transition: all 0.25s ease;
177
177
  & .description {
178
178
  font-size: 0.85rem;
@@ -181,7 +181,7 @@
181
181
  font-weight: 400;
182
182
  }
183
183
  & .logo-wrapper {
184
- ${se(!0,!1,!0)}
184
+ ${ce(!0,!1,!0)}
185
185
  flex-shrink: 0;
186
186
  border-radius: 999px;
187
187
 
@@ -220,18 +220,18 @@
220
220
  background-color: var(--gray-95080, #14161acc);
221
221
  }
222
222
 
223
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
223
+ @media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
224
224
  padding: 0;
225
225
  font-size: 0.875rem;
226
226
  }
227
- `,Ie=S.styled.div`
227
+ `,De=S.styled.div`
228
228
  position: absolute;
229
229
  top: 0.5rem;
230
230
  ${n=>n.alignToLeft===!0?"left: 0.5rem;":"right: 0.5rem;"}
231
231
  display: flex;
232
232
  gap: 0.25rem;
233
- `,$e=S.styled.div`
234
- border-radius: ${n=>C.getBorderRadiusValueWithUnits(n.theme,n.borderRadius||"slight")};
233
+ `,Le=S.styled.div`
234
+ border-radius: ${n=>y.getBorderRadiusValueWithUnits(n.theme,n.borderRadius||"slight")};
235
235
  background-color: ${n=>n==null?void 0:n.color};
236
236
  color: white;
237
237
  height: 1.5rem;
@@ -246,7 +246,7 @@
246
246
  & i {
247
247
  font-size: 0.813rem;
248
248
  }
249
- `,Ce=d.forwardRef(({src:n,...t},o)=>{const a=d.useRef();return d.useEffect(()=>{var h;const g=i=>{i.target.src=ne.DefaultShopImage,i.onerror=null};return(h=a==null?void 0:a.current)==null||h.addEventListener("error",g),()=>{var i;(i=a==null?void 0:a.current)==null||i.removeEventListener("error",g)}},[]),r.jsx(d.Fragment,{ref:o,children:C.isDefinedNotEmptyString(n)?r.jsx("img",{ref:a,src:n,...t}):r.jsx("img",{src:ne.DefaultShopImage,...t})})}),pe=n=>{const{uuid:t,hasPermission:o=!0,isUser:a,image:g,imageComponent:h,name:i,notifications:m=0,color:l="primary",size:w="large",style:u,disabled:T,onClick:f=()=>{},isActive:b,className:k,shopCategory:I,themeData:j}=n,x={theme:ce.useTheme(),color:l,size:w,style:u,disabled:T};return d.createElement(ke,{onClick:P=>{P.stopPropagation(),o===!0&&(f==null||f())},...x,key:i,className:`profile-item ${k}`,hasPermission:o,isActive:b,themeColor:(j==null?void 0:j.code)||"transparent"},r.jsx("div",{className:"logo-wrapper",children:C.isDefined(h)?h:g}),r.jsxs("div",{children:[r.jsx("div",{className:"name",children:i}),!a&&r.jsx("div",{className:"description",children:I}),m>0&&r.jsx("div",{className:"notifications-number",children:r.jsx(Se,{className:"badge",color:"danger",size:"small",children:m>99?"99+":m})})]}))};pe.propTypes={id:s.PropTypes.any,isUserProfile:s.PropTypes.bool,themeColor:s.PropTypes.string,image:s.PropTypes.any,name:s.PropTypes.string,notifications:s.PropTypes.number,style:s.PropTypes.object,className:s.PropTypes.string,color:s.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:s.PropTypes.oneOf(["large"]),onSelect:s.PropTypes.func,hasPermission:s.PropTypes.bool};const oe=(n,t)=>{if(!n||!t)return null;const o=n.getTime()-t.getTime(),a=24*60*60*1e3;return Math.floor(o/a)},ae=n=>{if(n!==void 0){const t=new Date(n),o=t.getFullYear(),a=t.getMonth()+1;return`${String(t.getDate()).padStart(2)}. ${a}. ${o}.`}},ge=d.forwardRef((n,t)=>{var re;const o=ce.useTheme(),{shopUuid:a,title:g="",coverPhoto:h,onSelect:i,startDate:m,endDate:l,salesPackages:w,shopName:u,shopCategory:T,shopImage:f,shopImageComponent:b,className:k,onSelectCard:I=()=>{},onSelectShop:j=()=>{},upcoming:p=!1,upcomingCampaignText:x,campaignSingleText:P,salesCampaignTypes:_=[],startsInPrefixTextPlural:B,startsinSuffixTextPlural:W,startsInPrefixTextSingular:V,startsinSuffixTextSingular:J,endsInPrefixTextPlural:F,endsinSuffixTextPlural:X,endsInPrefixTextSingular:E,endsinSuffixTextSingular:Z,themeData:K,numberOfListings:D,numberOfListingsTextSingular:G,numberOfListingsTextPlural:z,metadata:e,...A}=n,H=d.useRef(),M=m?new Date(m)<=new Date:!1,ue=oe(m?new Date(m):null,new Date),R=oe(l?new Date(l):null,new Date),fe=R!==null&&R<=2&&R>0,Q=l?new Date(l).getTime():null,xe=Date.now(),Y=Q!==null?Q-xe:null,O=Y!==null&&Y>0&&Y<24*60*60*1e3,ee=(v,q,y,N,$)=>y===1?`${v} ${y} ${N}`:`${q} ${y} ${$}`,ye=()=>{if(!l)return null;const v=we,y=new Date(l).getTime()-v.getTime();if(y<=0)return null;const N=Math.floor(y/(1e3*60*60)),$=Math.floor(y%(1e3*60*60)/(1e3*60)),ve=Math.floor(y%(1e3*60)/1e3);return{hours:N,minutes:$,seconds:ve}},[we,be]=d.useState(new Date);d.useEffect(()=>{if(!O)return;const v=setInterval(()=>{be(new Date)},1e3);return()=>clearInterval(v)},[O]);const U=O?ye():null;return r.jsxs(Pe,{ref:H,theme:o,className:k,name:e==null?void 0:e.name,"data-accessor":e==null?void 0:e.accessor,onClick:v=>I(v,H),...A,children:[r.jsxs(_e,{theme:o,onClick:()=>i==null?void 0:i(),children:[r.jsx("img",{src:h}),r.jsx(Ie,{children:w==null?void 0:w.map((v,q)=>{var y,N;return r.jsx($e,{color:(y=_==null?void 0:_.find($=>$.value===v))==null?void 0:y.color,theme:o,children:r.jsx(le,{icon:(N=_==null?void 0:_.find($=>$.value===v))==null?void 0:N.icon})},`package__${q}`)})})]}),r.jsxs(Te,{theme:o,children:[r.jsx("div",{className:"text-block-wrapper",children:r.jsxs("div",{className:"title-block-wrapper",children:[r.jsx("div",{className:"campaign-title",children:(re=p?x:P)==null?void 0:re.toUpperCase()}),r.jsx("div",{className:"campaign-title-text",children:g}),l&&m&&r.jsxs("div",{className:"campaign-date",children:[ae(m)," - ",ae(l)]}),r.jsxs("div",{className:"timestamp-text",children:[D>0&&r.jsxs("span",{className:"listings-text",children:[D," ",D===1?G:z," ","∙"," "]}),r.jsx("span",{className:`duration-text ${fe?"urgent":""} ${M?"":"starts-in"}`,children:O&&U?r.jsxs("div",{className:"countdown-timer",children:[E," ",U.hours.toString().padStart(2,"0"),":",U.minutes.toString().padStart(2,"0"),":",U.seconds.toString().padStart(2,"0")]}):M?ee(E,F,R,Z,X):ee(V,B,ue,J,W)})]})]})}),r.jsx(pe,{hasPermission:!0,image:r.jsx(Ce,{src:f}),imageComponent:b,themeData:K,isActive:!0,isUser:!1,name:u,shopCategory:T,onClick:()=>j(a)})]})]})});ge.propTypes={title:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.element]),numberOfListings:s.PropTypes.number,dropdown:s.PropTypes.any,color:s.PropTypes.string};const De=S.styled.div`
249
+ `,Ee=d.forwardRef(({src:n,...s},o)=>{const i=d.useRef();return d.useEffect(()=>{var m;const g=a=>{a.target.src=ie.DefaultShopImage,a.onerror=null};return(m=i==null?void 0:i.current)==null||m.addEventListener("error",g),()=>{var a;(a=i==null?void 0:i.current)==null||a.removeEventListener("error",g)}},[]),r.jsx(d.Fragment,{ref:o,children:y.isDefinedNotEmptyString(n)?r.jsx("img",{ref:i,src:n,...s}):r.jsx("img",{src:ie.DefaultShopImage,...s})})}),ue=n=>{const{uuid:s,hasPermission:o=!0,isUser:i,image:g,imageComponent:m,name:a,notifications:u=0,color:c="primary",size:b="large",style:h,disabled:I,onClick:f=()=>{},isActive:v,className:$,shopCategory:C,themeData:j}=n,x={theme:me.useTheme(),color:c,size:b,style:h,disabled:I};return d.createElement(Ne,{onClick:_=>{_.stopPropagation(),o===!0&&(f==null||f())},...x,key:a,className:`profile-item ${$}`,hasPermission:o,isActive:v,themeColor:(j==null?void 0:j.code)||"transparent"},r.jsx("div",{className:"logo-wrapper",children:y.isDefined(m)?m:g}),r.jsxs("div",{children:[r.jsx("div",{className:"name",children:a}),!i&&r.jsx("div",{className:"description",children:C}),u>0&&r.jsx("div",{className:"notifications-number",children:r.jsx(Te,{className:"badge",color:"danger",size:"small",children:u>99?"99+":u})})]}))};ue.propTypes={id:t.PropTypes.any,isUserProfile:t.PropTypes.bool,themeColor:t.PropTypes.string,image:t.PropTypes.any,name:t.PropTypes.string,notifications:t.PropTypes.number,style:t.PropTypes.object,className:t.PropTypes.string,color:t.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:t.PropTypes.oneOf(["large"]),onSelect:t.PropTypes.func,hasPermission:t.PropTypes.bool};const de=n=>{if(n!==void 0){const s=new Date(n),o=s.getFullYear(),i=s.getMonth()+1;return`${String(s.getDate()).padStart(2)}. ${i}. ${o}.`}},fe=d.forwardRef((n,s)=>{var ae;const o=me.useTheme(),{shopUuid:i,title:g="",coverPhoto:m,onSelect:a,startDate:u,endDate:c,salesPackages:b,shopName:h,shopCategory:I,shopImage:f,shopImageComponent:v,className:$,onSelectCard:C=()=>{},onSelectShop:j=()=>{},upcoming:p=!1,upcomingCampaignText:x,campaignSingleText:_,salesCampaignTypes:T=[],startsInPrefixTextPlural:B,startsinSuffixTextPlural:W,startsInPrefixTextSingular:V,startsinSuffixTextSingular:Z,endsInPrefixTextPlural:re,endsinSuffixTextPlural:F,endsInPrefixTextSingular:M,endsinSuffixTextSingular:X,endedText:G,themeData:ne,numberOfListings:L,numberOfListingsTextSingular:A,numberOfListingsTextPlural:O,metadata:e,...H}=n,Y=d.useRef(),N=y.getDayNumberPrecise(u,c),J=N!==-1&&(N==null?void 0:N.isEnded)===!0,K=N!==-1&&!J,Q=y.calcDaysUntil(u),E=y.calcDaysRemaining(c),we=E!==null&&E<=2&&E>0,te=y.normalizeDate(c),se=te?new Date(te):null,be=new Date,ee=se?se.getTime()-be.getTime():null,U=ee!==null&&ee>0&&ee<24*60*60*1e3,oe=(w,z,k,P,D)=>k===1?`${w} ${k} ${P}`:`${z} ${k} ${D}`,ve=()=>{if(!c)return null;const w=y.normalizeDate(c),z=w?new Date(w):null;if(!z)return null;const k=Se,P=z.getTime()-k.getTime();if(P<=0)return null;const D=Math.floor(P/(1e3*60*60)),Pe=Math.floor(P%(1e3*60*60)/(1e3*60)),_e=Math.floor(P%(1e3*60)/1e3);return{hours:D,minutes:Pe,seconds:_e}},[Se,je]=d.useState(new Date);d.useEffect(()=>{if(!U)return;const w=setInterval(()=>{je(new Date)},1e3);return()=>clearInterval(w)},[U]);const q=U?ve():null;return r.jsxs(Ie,{ref:Y,theme:o,className:$,name:e==null?void 0:e.name,"data-accessor":e==null?void 0:e.accessor,onClick:w=>C(w,Y),...H,children:[r.jsxs($e,{theme:o,onClick:()=>a==null?void 0:a(),children:[r.jsx("img",{src:m}),r.jsx(De,{children:b==null?void 0:b.map((w,z)=>{var k,P;return r.jsx(Le,{color:(k=T==null?void 0:T.find(D=>D.value===w))==null?void 0:k.color,theme:o,children:r.jsx(ge,{icon:(P=T==null?void 0:T.find(D=>D.value===w))==null?void 0:P.icon})},`package__${z}`)})})]}),r.jsxs(Ce,{theme:o,children:[r.jsx("div",{className:"text-block-wrapper",children:r.jsxs("div",{className:"title-block-wrapper",children:[r.jsx("div",{className:"campaign-title",children:(ae=p?x:_)==null?void 0:ae.toUpperCase()}),r.jsx("div",{className:"campaign-title-text",children:g}),c&&u&&r.jsxs("div",{className:"campaign-date",children:[de(u)," - ",de(c)]}),r.jsxs("div",{className:"timestamp-text",children:[L>0&&r.jsxs("span",{className:"listings-text",children:[L," ",L===1?A:O," ","∙"," "]}),r.jsx("span",{className:`duration-text ${we?"urgent":""} ${K?"":"starts-in"}`,children:U&&q?r.jsxs("div",{className:"countdown-timer",children:[M," ",q.hours.toString().padStart(2,"0"),":",q.minutes.toString().padStart(2,"0"),":",q.seconds.toString().padStart(2,"0")]}):K&&!J&&E!==null&&E>0?oe(M,re,E,X,F):J?G||"Završena":!K&&Q!==null&&Q>0?oe(V,B,Q,Z,W):null})]})]})}),r.jsx(ue,{hasPermission:!0,image:r.jsx(Ee,{src:f}),imageComponent:v,themeData:ne,isActive:!0,isUser:!1,name:h,shopCategory:I,onClick:()=>j(i)})]})]})});fe.propTypes={title:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.element]),numberOfListings:t.PropTypes.number,dropdown:t.PropTypes.any,color:t.PropTypes.string};const ze=S.styled.div`
250
250
  margin: 0 auto;
251
251
  display: flex;
252
252
  flex-direction: column;
@@ -285,7 +285,7 @@
285
285
  right: 0;
286
286
  }
287
287
 
288
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
288
+ @media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
289
289
  gap: 1.25rem;
290
290
 
291
291
  & .scrollable-section__header {
@@ -297,13 +297,13 @@
297
297
  }
298
298
  }
299
299
  }
300
- `,Ne=S.styled(ie.motion.div)`
300
+ `,Re=S.styled(pe.motion.div)`
301
301
  display: grid;
302
302
  grid-template-columns: repeat(${n=>n==null?void 0:n.numOfColumns}, 1fr);
303
303
  gap: 1.5rem;
304
304
  width: 100%;
305
305
 
306
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
306
+ @media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
307
307
  display: flex;
308
308
  flex-wrap: nowrap;
309
309
  overflow-x: scroll;
@@ -325,7 +325,7 @@
325
325
  /* Safari and Chrome */
326
326
  }
327
327
  }
328
- `,he=d.forwardRef(({icon:n,title:t,numOfSlides:o=2,showNavigation:a=!0,hasNextPage:g=!1,handleFetchNextPage:h=()=>{},children:i},m)=>{const[l,w]=d.useState(0),[u,T]=d.useState(1),f=de.useDetectMobile(),b=(i==null?void 0:i.length)??1;d.useEffect(()=>{const p=()=>{T(o)};return window.addEventListener("resize",p),p(),()=>window.removeEventListener("resize",p)},[]);const k=f?i:i==null?void 0:i.slice(l,l+u),I=p=>{var P;(P=p==null?void 0:p.target)==null||P.blur();const x=l+u;x<b&&w(x),x+u>=b&&g&&h()},j=p=>{var x;(x=p==null?void 0:p.target)==null||x.blur(),l-u>=0&&w(l-u)};return r.jsxs(De,{ref:m,children:[r.jsx("div",{className:"scrollable-section__header",children:r.jsxs("div",{className:"scrollable-section__title",children:[C.isDefinedNotEmptyString(n)&&r.jsx(le,{icon:n,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),C.isDefinedNotEmptyString(t)&&r.jsxs("div",{className:"title__text",children:[" ",t]})]})}),r.jsxs(Ne,{numOfColumns:o,...!f&&{animate:{x:0,opacity:1},initial:{x:10,opacity:0}},children:[k,f&&g&&r.jsx(je.InfiniteScrollEndElement,{onIsVisible:h})]},`scrollable-section__content-${l}`),a&&b>u&&!f&&r.jsxs("div",{className:"scrollable-section__navigation",children:[r.jsx(te,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:l===0,onClick:j}),r.jsx(te,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:l+u>=b,onClick:I})]})]})});he.propTypes={icon:s.PropTypes.string,title:s.PropTypes.string,numOfSlides:s.PropTypes.number,numOfSlidesForMobile:s.PropTypes.number,handleFetchNextPage:s.PropTypes.func,showNavigation:s.PropTypes.bool};const Le=S.styled.div`
328
+ `,xe=d.forwardRef(({icon:n,title:s,numOfSlides:o=2,showNavigation:i=!0,hasNextPage:g=!1,handleFetchNextPage:m=()=>{},children:a},u)=>{const[c,b]=d.useState(0),[h,I]=d.useState(1),f=he.useDetectMobile(),v=(a==null?void 0:a.length)??1;d.useEffect(()=>{const p=()=>{I(o)};return window.addEventListener("resize",p),p(),()=>window.removeEventListener("resize",p)},[]);const $=f?a:a==null?void 0:a.slice(c,c+h),C=p=>{var _;(_=p==null?void 0:p.target)==null||_.blur();const x=c+h;x<v&&b(x),x+h>=v&&g&&m()},j=p=>{var x;(x=p==null?void 0:p.target)==null||x.blur(),c-h>=0&&b(c-h)};return r.jsxs(ze,{ref:u,children:[r.jsx("div",{className:"scrollable-section__header",children:r.jsxs("div",{className:"scrollable-section__title",children:[y.isDefinedNotEmptyString(n)&&r.jsx(ge,{icon:n,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),y.isDefinedNotEmptyString(s)&&r.jsxs("div",{className:"title__text",children:[" ",s]})]})}),r.jsxs(Re,{numOfColumns:o,...!f&&{animate:{x:0,opacity:1},initial:{x:10,opacity:0}},children:[$,f&&g&&r.jsx(ke.InfiniteScrollEndElement,{onIsVisible:m})]},`scrollable-section__content-${c}`),i&&v>h&&!f&&r.jsxs("div",{className:"scrollable-section__navigation",children:[r.jsx(le,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:c===0,onClick:j}),r.jsx(le,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:c+h>=v,onClick:C})]})]})});xe.propTypes={icon:t.PropTypes.string,title:t.PropTypes.string,numOfSlides:t.PropTypes.number,numOfSlidesForMobile:t.PropTypes.number,handleFetchNextPage:t.PropTypes.func,showNavigation:t.PropTypes.bool};const Me=S.styled.div`
329
329
  display: flex;
330
330
  flex: 1;
331
331
  width: 100%;
@@ -342,8 +342,8 @@
342
342
  border-radius: 1.25rem;
343
343
  object-fit: cover;
344
344
  }
345
- `,me=d.forwardRef(({sectionName:n,imageUrl:t,maxHeight:o="16.25rem",className:a="",handleClick:g=()=>{}},h)=>r.jsx(Le,{ref:h,maxHeight:o,onClick:g,className:`itemless-banner ${a}`,children:r.jsx("img",{src:t,alt:`itemless-banner__${n}`})}));me.propTypes={sectionName:s.PropTypes.string,imageUrl:s.PropTypes.string,maxHeight:s.PropTypes.string,className:s.PropTypes.string,handleClick:s.PropTypes.func};const Ee=S.styled(c.SkeletonRowWrapper)`
346
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
345
+ `,ye=d.forwardRef(({sectionName:n,imageUrl:s,maxHeight:o="16.25rem",className:i="",handleClick:g=()=>{}},m)=>r.jsx(Me,{ref:m,maxHeight:o,onClick:g,className:`itemless-banner ${i}`,children:r.jsx("img",{src:s,alt:`itemless-banner__${n}`})}));ye.propTypes={sectionName:t.PropTypes.string,imageUrl:t.PropTypes.string,maxHeight:t.PropTypes.string,className:t.PropTypes.string,handleClick:t.PropTypes.func};const Oe=S.styled(l.SkeletonRowWrapper)`
346
+ @media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
347
347
  flex-direction: column;
348
348
 
349
349
  & .skeleton__image {
@@ -357,4 +357,4 @@
357
357
  }
358
358
  }
359
359
  }
360
- `,ze=({keyPrefix:n})=>r.jsxs(Ee,{children:[r.jsxs(c.SkeletonRowWrapper,{children:[r.jsx(c.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-1`),r.jsxs(c.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(c.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(c.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(c.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(c.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(c.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(c.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(c.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]}),r.jsxs(c.SkeletonRowWrapper,{noGradient:!0,children:[r.jsx(c.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-2`),r.jsxs(c.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(c.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(c.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(c.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(c.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(c.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(c.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(c.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]})]}),Me=({keyPrefix:n,isLoading:t=!1,fallbackComponent:o=r.jsx(r.Fragment,{}),children:a})=>r.jsx(d.Suspense,{fallbackComponent:o,children:t===!0?r.jsx(ze,{keyPrefix:n}):a}),Re=d.memo(ge),Oe=d.forwardRef(({sellerType:n="Shop",items:t=[],title:o,icon:a,isLoading:g,onSelectCard:h=()=>{},onSelectShop:i=()=>{},getImage:m=()=>{},campaignSingleText:l,upcomingCampaignText:w,salesCampaignTypes:u=[],startsInPrefixTextPlural:T,startsinSuffixTextPlural:f,startsInPrefixTextSingular:b,startsinSuffixTextSingular:k,endsInPrefixTextPlural:I,endsinSuffixTextPlural:j,endsInPrefixTextSingular:p,endsinSuffixTextSingular:x,numOfSlides:P=2,showNavigation:_=!0,numberOfListingsTextSingular:B,numberOfListingsTextPlural:W,itemlessImageUrl:V,itemlessLink:J,handleItemlessLink:F=()=>{},componentName:X,hasNextPage:E=!1,handleFetchNextPage:Z=()=>{}},K)=>{const D=de.useDetectMobile(),G=d.useMemo(()=>{let z=t==null?void 0:t.map((e,A)=>r.jsx(Re,{className:"campaign-item",coverPhoto:m(e==null?void 0:e.coverPhoto,(e==null?void 0:e.uuid)||(e==null?void 0:e.campaignUuid)),description:e==null?void 0:e.description,endDate:e==null?void 0:e.endDate,salesPackages:e==null?void 0:e.salesPackages,sellerType:n,shopImage:e==null?void 0:e.profileImage,shopImageComponent:e==null?void 0:e.profileImageComponent,shopName:e==null?void 0:e.shopName,shopUuid:e==null?void 0:e.shopUuid,shopCategory:e==null?void 0:e.shopCategory,startDate:e==null?void 0:e.startDate,title:e==null?void 0:e.name,uuid:e==null?void 0:e.campaignUuid,onSelectCard:(H,M)=>h(e==null?void 0:e.campaignUuid,e==null?void 0:e.shopUuid,M),onSelectShop:()=>i(e==null?void 0:e.shopUuid),campaignSingleText:l,upcomingCampaignText:w,upcoming:e==null?void 0:e.upcoming,salesCampaignTypes:u,startsInPrefixTextPlural:T,startsinSuffixTextPlural:f,startsInPrefixTextSingular:b,startsinSuffixTextSingular:k,endsInPrefixTextPlural:I,endsinSuffixTextPlural:j,endsInPrefixTextSingular:p,endsinSuffixTextSingular:x,themeData:e==null?void 0:e.themeData,numberOfListings:e==null?void 0:e.numberOfListings,numberOfListingsTextSingular:B,numberOfListingsTextPlural:W,metadata:{name:X,accessor:e==null?void 0:e.accessor}},`campaign__item__${A}__${e==null?void 0:e.startDate}___${e==null?void 0:e.endDate}`));return(t==null?void 0:t.length)<2&&!D?[...z,r.jsx(me,{imageUrl:V,className:"campaign-item",handleClick:F},"itemless-campaign-section-banner")]:z},[t]);return r.jsx(Me,{isLoading:g,keyPrefix:"sales-campaign-skeleton",children:r.jsx(he,{icon:a,title:o,numOfSlides:P,showNavigation:_,hasNextPage:E,handleFetchNextPage:Z,children:G},`sales-campaign-section__${D}`)})});module.exports=Oe;
360
+ `,Ue=({keyPrefix:n})=>r.jsxs(Oe,{children:[r.jsxs(l.SkeletonRowWrapper,{children:[r.jsx(l.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-1`),r.jsxs(l.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(l.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(l.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(l.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(l.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(l.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(l.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(l.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]}),r.jsxs(l.SkeletonRowWrapper,{noGradient:!0,children:[r.jsx(l.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-2`),r.jsxs(l.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(l.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(l.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(l.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(l.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(l.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(l.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(l.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]})]}),qe=({keyPrefix:n,isLoading:s=!1,fallbackComponent:o=r.jsx(r.Fragment,{}),children:i})=>r.jsx(d.Suspense,{fallbackComponent:o,children:s===!0?r.jsx(Ue,{keyPrefix:n}):i}),Be=d.memo(fe),We=d.forwardRef(({sellerType:n="Shop",items:s=[],title:o,icon:i,isLoading:g,onSelectCard:m=()=>{},onSelectShop:a=()=>{},getImage:u=()=>{},campaignSingleText:c,upcomingCampaignText:b,salesCampaignTypes:h=[],startsInPrefixTextPlural:I,startsinSuffixTextPlural:f,startsInPrefixTextSingular:v,startsinSuffixTextSingular:$,endsInPrefixTextPlural:C,endsinSuffixTextPlural:j,endsInPrefixTextSingular:p,endsinSuffixTextSingular:x,endedText:_,numOfSlides:T=2,showNavigation:B=!0,numberOfListingsTextSingular:W,numberOfListingsTextPlural:V,itemlessImageUrl:Z,itemlessLink:re,handleItemlessLink:F=()=>{},componentName:M,hasNextPage:X=!1,handleFetchNextPage:G=()=>{}},ne)=>{const L=he.useDetectMobile(),A=d.useMemo(()=>{let O=s==null?void 0:s.map((e,H)=>r.jsx(Be,{className:"campaign-item",coverPhoto:u(e==null?void 0:e.coverPhoto,(e==null?void 0:e.uuid)||(e==null?void 0:e.campaignUuid)),description:e==null?void 0:e.description,endDate:e==null?void 0:e.endDate,salesPackages:e==null?void 0:e.salesPackages,sellerType:n,shopImage:e==null?void 0:e.profileImage,shopImageComponent:e==null?void 0:e.profileImageComponent,shopName:e==null?void 0:e.shopName,shopUuid:e==null?void 0:e.shopUuid,shopCategory:e==null?void 0:e.shopCategory,startDate:e==null?void 0:e.startDate,title:e==null?void 0:e.name,uuid:e==null?void 0:e.campaignUuid,onSelectCard:(Y,N)=>m(e==null?void 0:e.campaignUuid,e==null?void 0:e.shopUuid,N),onSelectShop:()=>a(e==null?void 0:e.shopUuid),campaignSingleText:c,upcomingCampaignText:b,upcoming:e==null?void 0:e.upcoming,salesCampaignTypes:h,startsInPrefixTextPlural:I,startsinSuffixTextPlural:f,startsInPrefixTextSingular:v,startsinSuffixTextSingular:$,endsInPrefixTextPlural:C,endsinSuffixTextPlural:j,endsInPrefixTextSingular:p,endsinSuffixTextSingular:x,endedText:_,themeData:e==null?void 0:e.themeData,numberOfListings:e==null?void 0:e.numberOfListings,numberOfListingsTextSingular:W,numberOfListingsTextPlural:V,metadata:{name:M,accessor:e==null?void 0:e.accessor}},`campaign__item__${H}__${e==null?void 0:e.startDate}___${e==null?void 0:e.endDate}`));return(s==null?void 0:s.length)<2&&!L?[...O,r.jsx(ye,{imageUrl:Z,className:"campaign-item",handleClick:F},"itemless-campaign-section-banner")]:O},[s]);return r.jsx(qe,{isLoading:g,keyPrefix:"sales-campaign-skeleton",children:r.jsx(xe,{icon:i,title:o,numOfSlides:T,showNavigation:B,hasNextPage:X,handleFetchNextPage:G,children:A},`sales-campaign-section__${L}`)})});module.exports=We;