@lanaco/lnc-react-ui 4.0.227 → 4.0.228

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 (243) 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/BannerNextSection.cjs +1 -1
  14. package/dist/BannerNextSection.js +1 -1
  15. package/dist/BannerSectionCarousel.cjs +1 -1
  16. package/dist/BannerSectionCarousel.js +1 -1
  17. package/dist/BannerSectionSimple.cjs +1 -1
  18. package/dist/BannerSectionSimple.js +1 -1
  19. package/dist/BannerSectionWithList.cjs +1 -1
  20. package/dist/BannerSectionWithList.js +1 -1
  21. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  22. package/dist/BlogCardsSponsoredSection.js +3 -3
  23. package/dist/BlogCategoryCardsSection.cjs +1 -1
  24. package/dist/BlogCategoryCardsSection.js +1 -1
  25. package/dist/BlogExploreSection.cjs +1 -1
  26. package/dist/BlogExploreSection.js +2 -2
  27. package/dist/BlogListSection.cjs +1 -1
  28. package/dist/BlogListSection.js +3 -3
  29. package/dist/BlogProductCardsSection.cjs +1 -1
  30. package/dist/BlogProductCardsSection.js +1 -1
  31. package/dist/BlogShopCardsSection.cjs +1 -1
  32. package/dist/BlogShopCardsSection.js +1 -1
  33. package/dist/BlogSingleSection.cjs +1 -1
  34. package/dist/BlogSingleSection.js +1 -1
  35. package/dist/BlogsSectionDetailed.cjs +1 -1
  36. package/dist/BlogsSectionDetailed.js +3 -3
  37. package/dist/BlogsSectionLarge.cjs +1 -1
  38. package/dist/BlogsSectionLarge.js +1 -1
  39. package/dist/BlogsSectionSimple.cjs +1 -1
  40. package/dist/BlogsSectionSimple.js +3 -3
  41. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  42. package/dist/BlogsSectionSimpleCentered.js +2 -2
  43. package/dist/BlogsSectionWithFilters.cjs +1 -1
  44. package/dist/BlogsSectionWithFilters.js +4 -4
  45. package/dist/BrandHitsSection.cjs +1 -1
  46. package/dist/BrandHitsSection.js +1 -1
  47. package/dist/Breadcrumbs.cjs +1 -1
  48. package/dist/Breadcrumbs.js +1 -1
  49. package/dist/Button.cjs +1 -1
  50. package/dist/Button.js +1 -1
  51. package/dist/ButtonGroup.cjs +1 -1
  52. package/dist/ButtonGroup.js +1 -1
  53. package/dist/CalorieCalculatorSection.cjs +1 -1
  54. package/dist/CalorieCalculatorSection.js +1 -1
  55. package/dist/{CategorySimpleCard-TJRJ_2Sb.js → CategorySimpleCard-BE6F0PFT.js} +1 -1
  56. package/dist/{CategorySimpleCard-lIdzBNDa.cjs → CategorySimpleCard-Dr1FxIY9.cjs} +1 -1
  57. package/dist/CheckBoxInput.cjs +1 -1
  58. package/dist/CheckBoxInput.js +1 -1
  59. package/dist/Chip.cjs +1 -1
  60. package/dist/Chip.js +1 -1
  61. package/dist/ColorInput.cjs +1 -1
  62. package/dist/ColorInput.js +1 -1
  63. package/dist/ConfirmationForm.cjs +1 -1
  64. package/dist/ConfirmationForm.js +1 -1
  65. package/dist/CustomLoanMapSection.cjs +1 -1
  66. package/dist/CustomLoanMapSection.js +1 -1
  67. package/dist/{CustomStyles-B6uutenq.js → CustomStyles-YyM49BGx.js} +1 -1
  68. package/dist/{CustomStyles-dJQPJ4s4.cjs → CustomStyles-lzAjVMnI.cjs} +1 -1
  69. package/dist/DateInput.cjs +1 -1
  70. package/dist/DateInput.js +1 -1
  71. package/dist/DecimalInput.cjs +1 -1
  72. package/dist/DecimalInput.js +1 -1
  73. package/dist/DecimalInputV2.cjs +1 -1
  74. package/dist/DecimalInputV2.js +1 -1
  75. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  76. package/dist/DetailedProductsInfinitiveSection.js +3 -3
  77. package/dist/DetailedProductsSection.cjs +1 -1
  78. package/dist/DetailedProductsSection.js +4 -4
  79. package/dist/DetailsView.cjs +1 -1
  80. package/dist/DetailsView.js +1 -1
  81. package/dist/DoubleRangeSlider.cjs +1 -1
  82. package/dist/DoubleRangeSlider.js +1 -1
  83. package/dist/DragAndDropFile.cjs +1 -1
  84. package/dist/DragAndDropFile.js +1 -1
  85. package/dist/DragDropFiles.cjs +1 -1
  86. package/dist/DragDropFiles.js +1 -1
  87. package/dist/Drawer.cjs +1 -1
  88. package/dist/Drawer.js +1 -1
  89. package/dist/Dropdown.cjs +1 -1
  90. package/dist/Dropdown.js +2 -2
  91. package/dist/DropdownItem.cjs +1 -1
  92. package/dist/DropdownItem.js +1 -1
  93. package/dist/DropdownLookup.cjs +1 -1
  94. package/dist/DropdownLookup.js +1 -1
  95. package/dist/DropdownMenu.cjs +1 -1
  96. package/dist/DropdownMenu.js +1 -1
  97. package/dist/EditableTable.cjs +1 -1
  98. package/dist/EditableTable.js +1 -1
  99. package/dist/FeedbackSection.cjs +1 -1
  100. package/dist/FeedbackSection.js +1 -1
  101. package/dist/FieldOfInterestsMasonrySection.cjs +1 -1
  102. package/dist/FieldOfInterestsMasonrySection.js +1 -1
  103. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  104. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
  105. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  106. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  107. package/dist/FileInput.cjs +1 -1
  108. package/dist/FileInput.js +1 -1
  109. package/dist/FlexGridItem.cjs +1 -1
  110. package/dist/FlexGridItem.js +1 -1
  111. package/dist/FormField.cjs +1 -1
  112. package/dist/FormField.js +1 -1
  113. package/dist/FormView.cjs +1 -1
  114. package/dist/FormView.js +1 -1
  115. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  116. package/dist/GeneralWithTagsCardsSection.js +1 -1
  117. package/dist/GiftCardsSection.cjs +1 -1
  118. package/dist/GiftCardsSection.js +2 -2
  119. package/dist/Icon.cjs +1 -1
  120. package/dist/Icon.js +1 -1
  121. package/dist/IconButton.cjs +1 -1
  122. package/dist/IconButton.js +1 -1
  123. package/dist/Kanban.cjs +1 -1
  124. package/dist/Kanban.js +1 -1
  125. package/dist/KanbanActionsToolbar.cjs +1 -1
  126. package/dist/KanbanActionsToolbar.js +1 -1
  127. package/dist/KanbanView.cjs +1 -1
  128. package/dist/KanbanView.js +1 -1
  129. package/dist/Link.cjs +1 -1
  130. package/dist/Link.js +1 -1
  131. package/dist/LoanCalculatorSection.cjs +1 -1
  132. package/dist/LoanCalculatorSection.js +1 -1
  133. package/dist/LocationFinderSection.cjs +1 -1
  134. package/dist/LocationFinderSection.js +1 -1
  135. package/dist/LocationSearchSection.cjs +1 -1
  136. package/dist/LocationSearchSection.js +1 -1
  137. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  138. package/dist/MasonryGeneralCardsSection.js +1 -1
  139. package/dist/MenuItem.cjs +1 -1
  140. package/dist/MenuItem.js +1 -1
  141. package/dist/Modal.cjs +1 -1
  142. package/dist/Modal.js +1 -1
  143. package/dist/MultiSelectDropdown.cjs +1 -1
  144. package/dist/MultiSelectDropdown.js +1 -1
  145. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  146. package/dist/MultiSelectDropdownLookup.js +1 -1
  147. package/dist/NestedDropdownItem.cjs +1 -1
  148. package/dist/NestedDropdownItem.js +1 -1
  149. package/dist/NestedMenuItem.cjs +1 -1
  150. package/dist/NestedMenuItem.js +1 -1
  151. package/dist/NotificationContainer.cjs +1 -1
  152. package/dist/NotificationContainer.js +1 -1
  153. package/dist/NotificationMessage.cjs +1 -1
  154. package/dist/NotificationMessage.js +1 -1
  155. package/dist/NumberInput.cjs +1 -1
  156. package/dist/NumberInput.js +1 -1
  157. package/dist/PartnerBrandsSection.cjs +1 -1
  158. package/dist/PartnerBrandsSection.js +1 -1
  159. package/dist/PartnerCardsSection.cjs +1 -1
  160. package/dist/PartnerCardsSection.js +1 -1
  161. package/dist/PartnerStatsSection.cjs +1 -1
  162. package/dist/PartnerStatsSection.js +1 -1
  163. package/dist/PasswordInput.cjs +1 -1
  164. package/dist/PasswordInput.js +1 -1
  165. package/dist/PopoverContent.cjs +1 -1
  166. package/dist/PopoverContent.js +1 -1
  167. package/dist/ProductsWithBannerSection.cjs +1 -1
  168. package/dist/ProductsWithBannerSection.js +3 -3
  169. package/dist/ProgressBar.cjs +1 -1
  170. package/dist/ProgressBar.js +1 -1
  171. package/dist/QuattroCardsSection.cjs +1 -1
  172. package/dist/QuattroCardsSection.js +1 -1
  173. package/dist/QuizSection.cjs +1 -1
  174. package/dist/QuizSection.js +1 -1
  175. package/dist/RadioInput.cjs +1 -1
  176. package/dist/RadioInput.js +1 -1
  177. package/dist/RangeSlider.cjs +1 -1
  178. package/dist/RangeSlider.js +1 -1
  179. package/dist/ReviewsSection.cjs +1 -1
  180. package/dist/ReviewsSection.js +2 -2
  181. package/dist/SalesCampaignsSection.cjs +22 -22
  182. package/dist/SalesCampaignsSection.js +197 -205
  183. package/dist/Separator.cjs +1 -1
  184. package/dist/Separator.js +1 -1
  185. package/dist/ShopCardsSection.cjs +1 -1
  186. package/dist/ShopCardsSection.js +2 -2
  187. package/dist/Sidebar.cjs +1 -1
  188. package/dist/Sidebar.js +1 -1
  189. package/dist/SimpleCategoriesSection.cjs +1 -1
  190. package/dist/SimpleCategoriesSection.js +3 -3
  191. package/dist/SimpleProductsSection.cjs +1 -1
  192. package/dist/SimpleProductsSection.js +1 -1
  193. package/dist/Spinner.cjs +1 -1
  194. package/dist/Spinner.js +1 -1
  195. package/dist/StatsSection.cjs +1 -1
  196. package/dist/StatsSection.js +1 -1
  197. package/dist/Surface.cjs +1 -1
  198. package/dist/Surface.js +1 -1
  199. package/dist/SwipeableDrawer.cjs +1 -1
  200. package/dist/SwipeableDrawer.js +1 -1
  201. package/dist/TabItem.cjs +1 -1
  202. package/dist/TabItem.js +1 -1
  203. package/dist/Table.cjs +1 -1
  204. package/dist/Table.js +1 -1
  205. package/dist/TableView.cjs +1 -1
  206. package/dist/TableView.js +1 -1
  207. package/dist/TextAreaInput.cjs +1 -1
  208. package/dist/TextAreaInput.js +1 -1
  209. package/dist/TextInput.cjs +1 -1
  210. package/dist/TextInput.js +1 -1
  211. package/dist/ThemeProvider.cjs +1 -1
  212. package/dist/ThemeProvider.js +1 -1
  213. package/dist/TimeInput.cjs +1 -1
  214. package/dist/TimeInput.js +1 -1
  215. package/dist/Toggle.cjs +1 -1
  216. package/dist/Toggle.js +1 -1
  217. package/dist/TreeMenuSeparator.cjs +1 -1
  218. package/dist/TreeMenuSeparator.js +1 -1
  219. package/dist/UploadedFile.cjs +1 -1
  220. package/dist/UploadedFile.js +1 -1
  221. package/dist/UrgentSaleProductsSection.cjs +1 -1
  222. package/dist/UrgentSaleProductsSection.js +1 -1
  223. package/dist/{index-BkztbBWe.cjs → index-B96icAp4.cjs} +1 -1
  224. package/dist/{index-tdg_Vmed.cjs → index-BXkL0HmX.cjs} +1 -1
  225. package/dist/{index-Djo0ZcRE.js → index-CCwfh-7A.js} +1 -1
  226. package/dist/{index-jGcy-5M_.js → index-CNUuIL97.js} +2 -2
  227. package/dist/{index-DsINTjQk.cjs → index-ChHUGfjn.cjs} +1 -1
  228. package/dist/{index-DEypPQRI.js → index-D6_3Q8lN.js} +1 -1
  229. package/dist/{index-D4-_TrSn.cjs → index-DnbzopIv.cjs} +1 -1
  230. package/dist/{index-rhYVjszT.js → index-DtVJCOWc.js} +2 -2
  231. package/dist/{index-D3QZziO_.cjs → index-DueyY06i.cjs} +1 -1
  232. package/dist/{index-D4OKsSqi.cjs → index-HzW6OHFF.cjs} +1 -1
  233. package/dist/{index-3GKF_7BJ.cjs → index-RrqW9QBJ.cjs} +1 -1
  234. package/dist/{index-CM6vzQBx.js → index-eOeAkUSU.js} +1 -1
  235. package/dist/{index-Dx2hfxCG.js → index-gHaK62BZ.js} +2 -2
  236. package/dist/{index-BXT1eY2D.js → index-zIt6TVeg.js} +2 -2
  237. package/dist/index.cjs +1 -1
  238. package/dist/index.js +2 -2
  239. package/dist/{style-D54KOzZj.js → style-CP_urKvc.js} +1 -1
  240. package/dist/{style-Boz6dk5s.cjs → style-cJUZrJoG.cjs} +1 -1
  241. package/dist/{utils-CITgSxXe.cjs → utils-BK6B_Y9X.cjs} +2 -2
  242. package/dist/{utils-MoGhNMmj.js → utils-BUdHa0nB.js} +16 -23
  243. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { forwardRef as c, useContext as p } from "react";
3
3
  import { a as f, F as u, b } from "./floating-ui.react.esm-B-RMCmpu.js";
4
4
  import g from "./PopoverContext.js";
5
5
  import { s as h } from "./emotion-styled.browser.esm-DfbrHHed.js";
6
- import { g as x, b as v, c as y } from "./utils-MoGhNMmj.js";
6
+ import { g as x, b as v, c as y } from "./utils-BUdHa0nB.js";
7
7
  import { m as P } from "./motion-Ckekul_K.js";
8
8
  import { u as w } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
9
  const C = h(P.div)`
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),c=require("react"),j=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),m=require("./breakpoints-CcVm-gVm.cjs"),$=require("./useDetectMobile-DYV6V1yw.cjs"),C=require("./style-Boz6dk5s.cjs"),h=require("./utils-CITgSxXe.cjs"),y=require("./index-DsINTjQk.cjs"),i=require("./style-CQdEALKR.cjs"),R=j.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),c=require("react"),j=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),m=require("./breakpoints-CcVm-gVm.cjs"),$=require("./useDetectMobile-DYV6V1yw.cjs"),C=require("./style-cJUZrJoG.cjs"),h=require("./utils-BK6B_Y9X.cjs"),y=require("./index-ChHUGfjn.cjs"),i=require("./style-CQdEALKR.cjs"),R=j.styled.div`
2
2
  width: 100%;
3
3
  height: 22.5rem;
4
4
  min-height: 22.5rem;
@@ -3,9 +3,9 @@ import { forwardRef as P, useRef as N, Suspense as U, memo as W, useMemo as y }
3
3
  import { s as g } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
4
  import { d } from "./breakpoints-BubDitvo.js";
5
5
  import { u as R } from "./useDetectMobile-B0Jog4jQ.js";
6
- import { R as j } from "./style-D54KOzZj.js";
7
- import { n as M, m as z, l as b } from "./utils-MoGhNMmj.js";
8
- import { P as B } from "./index-DEypPQRI.js";
6
+ import { R as j } from "./style-CP_urKvc.js";
7
+ import { n as M, m as z, l as b } from "./utils-BUdHa0nB.js";
8
+ import { P as B } from "./index-D6_3Q8lN.js";
9
9
  import { b as _, a as h, c as C, e as D, d as I } from "./style-BFPpppS9.js";
10
10
  const L = g.div`
11
11
  width: 100%;
@@ -1,4 +1,4 @@
1
- "use strict";const l=require("react/jsx-runtime"),n=require("react"),i=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),r=require("./utils-CITgSxXe.cjs"),p=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),x=i.styled.div`
1
+ "use strict";const l=require("react/jsx-runtime"),n=require("react"),i=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),r=require("./utils-BK6B_Y9X.cjs"),p=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),x=i.styled.div`
2
2
  width: 100%;
3
3
  position: relative;
4
4
  background-color: ${e=>r.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","unfilled")};
@@ -1,7 +1,7 @@
1
1
  import { jsxs as c, jsx as b } from "react/jsx-runtime";
2
2
  import { forwardRef as u, isValidElement as f, cloneElement as P } from "react";
3
3
  import { s as t } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
- import { c as a, d as x } from "./utils-MoGhNMmj.js";
4
+ import { c as a, d as x } from "./utils-BUdHa0nB.js";
5
5
  import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
6
  const w = t.div`
7
7
  width: 100%;
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),d=require("react"),m=require("./utils-CITgSxXe.cjs"),g=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),p=require("./breakpoints-CcVm-gVm.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-BaNxtZgB.cjs"),h=require("./index-BMAvJQBG.cjs"),b=g.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),d=require("react"),m=require("./utils-BK6B_Y9X.cjs"),g=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),p=require("./breakpoints-CcVm-gVm.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-BaNxtZgB.cjs"),h=require("./index-BMAvJQBG.cjs"),b=g.styled.div`
2
2
  position: absolute;
3
3
  top: 0;
4
4
  left: 0;
@@ -1,6 +1,6 @@
1
1
  import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as p, memo as u, useMemo as h } from "react";
3
- import { t as _, n as b, l as w } from "./utils-MoGhNMmj.js";
3
+ import { t as _, n as b, l as w } from "./utils-BUdHa0nB.js";
4
4
  import { s as g } from "./emotion-styled.browser.esm-DfbrHHed.js";
5
5
  import { d as m } from "./breakpoints-BubDitvo.js";
6
6
  import { u as y } 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-CITgSxXe.cjs"),R=require("./Button.cjs"),Q=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),I=require("./breakpoints-CcVm-gVm.cjs"),P=require("./Icon.cjs"),Y=require("./ProgressBar.cjs"),q=Q.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),i=require("react"),N=require("./utils-BK6B_Y9X.cjs"),R=require("./Button.cjs"),Q=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),I=require("./breakpoints-CcVm-gVm.cjs"),P=require("./Icon.cjs"),Y=require("./ProgressBar.cjs"),q=Q.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 { y as ae, l as te, m as J, s as ie } from "./utils-MoGhNMmj.js";
3
+ import { y as ae, l as te, m as J, s as ie } from "./utils-BUdHa0nB.js";
4
4
  import z from "./Button.js";
5
5
  import { s as U } from "./emotion-styled.browser.esm-DfbrHHed.js";
6
6
  import { d as E } from "./breakpoints-BubDitvo.js";
@@ -1,4 +1,4 @@
1
- "use strict";const l=require("react/jsx-runtime"),h=require("react"),g=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),t=require("./utils-CITgSxXe.cjs"),O=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),q=e=>e=="left"?"row-reverse":"row",B=g.styled.label`
1
+ "use strict";const l=require("react/jsx-runtime"),h=require("react"),g=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),t=require("./utils-BK6B_Y9X.cjs"),O=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),q=e=>e=="left"?"row-reverse":"row",B=g.styled.label`
2
2
  min-height: ${e=>t.getSizeValueWithUnits(e.theme,e.size)};
3
3
  max-height: ${e=>t.getSizeValueWithUnits(e.theme,e.size)};
4
4
  width: 100%;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as u, jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as B, useState as j } from "react";
3
3
  import { s as f } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
- import { e as b, d as N, f as P, c as i } from "./utils-MoGhNMmj.js";
4
+ import { e as b, d as N, f as P, c as i } from "./utils-BUdHa0nB.js";
5
5
  import { u as F } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
6
  const I = (e) => e == "left" ? "row-reverse" : "row", L = f.label`
7
7
  min-height: ${(e) => b(e.theme, e.size)};
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),x=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),r=require("react"),a=require("./utils-CITgSxXe.cjs"),F=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),U=require("./useUpdateEffect-BtMgpgIV.cjs"),_=({theme:e,size:i})=>{var u=a.getSizeValueWithUnits(e,i);return`
1
+ "use strict";const t=require("react/jsx-runtime"),x=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),r=require("react"),a=require("./utils-BK6B_Y9X.cjs"),F=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),U=require("./useUpdateEffect-BtMgpgIV.cjs"),_=({theme:e,size:i})=>{var u=a.getSizeValueWithUnits(e,i);return`
2
2
  min-height: ${u};
3
3
  max-height: ${u};
4
4
  `},g={small:"0.875rem",medium:"1.125rem",large:"1.375rem"},T=x.styled.div`
@@ -1,7 +1,7 @@
1
1
  import { jsxs as M, jsx as t, Fragment as L } from "react/jsx-runtime";
2
2
  import { s as v } from "./emotion-styled.browser.esm-DfbrHHed.js";
3
3
  import { forwardRef as W, useRef as X, useState as f, useCallback as q, useEffect as N } from "react";
4
- import { b as A, c as r, d as D, e as G } from "./utils-MoGhNMmj.js";
4
+ import { b as A, c as r, d as D, e as G } from "./utils-BUdHa0nB.js";
5
5
  import { u as H } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
6
  import { u as J } from "./useUpdateEffect-CuYWz7EA.js";
7
7
  const K = ({ theme: e, size: o }) => {
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),p=require("react"),o=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),w=require("./breakpoints-CcVm-gVm.cjs"),x=require("./useDetectMobile-DYV6V1yw.cjs"),f=require("./utils-CITgSxXe.cjs"),y=require("./ThemeProvider.cjs"),S=require("./index-DsINTjQk.cjs"),m=require("./style-CQdEALKR.cjs"),k=o.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),p=require("react"),o=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),w=require("./breakpoints-CcVm-gVm.cjs"),x=require("./useDetectMobile-DYV6V1yw.cjs"),f=require("./utils-BK6B_Y9X.cjs"),y=require("./ThemeProvider.cjs"),S=require("./index-ChHUGfjn.cjs"),m=require("./style-CQdEALKR.cjs"),k=o.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  color: var(--darkest-950);
@@ -3,9 +3,9 @@ import { forwardRef as w, Suspense as C, memo as k, useMemo as y } from "react";
3
3
  import { s as n } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
4
  import { d as u } from "./breakpoints-BubDitvo.js";
5
5
  import { u as R } from "./useDetectMobile-B0Jog4jQ.js";
6
- import { t as N, n as z, c as M, g as P } from "./utils-MoGhNMmj.js";
6
+ import { t as N, n as z, c as M, g as P } from "./utils-BUdHa0nB.js";
7
7
  import { useTheme as j } from "./ThemeProvider.js";
8
- import { P as L } from "./index-DEypPQRI.js";
8
+ import { P as L } from "./index-D6_3Q8lN.js";
9
9
  import { S as W, e as A, d as E, a as f } from "./style-BFPpppS9.js";
10
10
  const F = n.div`
11
11
  display: flex;
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),s=require("react"),S=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),x=require("./utils-CITgSxXe.cjs"),N=require("./breakpoints-CcVm-gVm.cjs"),me=require("./Icon.cjs"),ce=require("./ShopAvatar-CV3lj34D.cjs"),$e=require("./Badge.cjs"),fe=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),de=require("./IconButton.cjs"),he=require("./useDetectMobile-DYV6V1yw.cjs"),_e=require("./index-DMbNpyIV.cjs"),ke=require("./motion-B_VPZaJq.cjs"),w=require("./style-CQdEALKR.cjs"),Ce=S.styled.a`
1
+ "use strict";const r=require("react/jsx-runtime"),s=require("react"),S=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),w=require("./utils-BK6B_Y9X.cjs"),I=require("./breakpoints-CcVm-gVm.cjs"),ue=require("./Icon.cjs"),le=require("./ShopAvatar-CV3lj34D.cjs"),$e=require("./Badge.cjs"),me=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),ce=require("./IconButton.cjs"),fe=require("./useDetectMobile-DYV6V1yw.cjs"),_e=require("./index-DMbNpyIV.cjs"),ke=require("./motion-B_VPZaJq.cjs"),b=require("./style-CQdEALKR.cjs"),Ce=S.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  cursor: pointer;
@@ -28,7 +28,7 @@
28
28
  }
29
29
  }
30
30
 
31
- @media ${N.down("S")} {
31
+ @media ${I.down("S")} {
32
32
  width: 100%;
33
33
  gap: 0;
34
34
 
@@ -41,8 +41,8 @@
41
41
  }
42
42
  }
43
43
  }
44
- `,Ie=S.styled.div`
45
- border-radius: ${n=>x.getBorderRadiusValueWithUnits(n.theme,"edged")};
44
+ `,Ne=S.styled.div`
45
+ border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,"edged")};
46
46
  cursor: pointer;
47
47
 
48
48
  position: relative;
@@ -62,10 +62,10 @@
62
62
  }
63
63
  }
64
64
 
65
- @media ${N.down("S")} {
65
+ @media ${I.down("S")} {
66
66
  width: 14.5rem;
67
67
  }
68
- `,Ne=S.styled.div`
68
+ `,Ie=S.styled.div`
69
69
  flex: 1;
70
70
  display: flex;
71
71
  flex-direction: column;
@@ -148,7 +148,7 @@
148
148
  color: var(--gray-600, #676e79);
149
149
  }
150
150
 
151
- @media ${N.down("S")} {
151
+ @media ${I.down("S")} {
152
152
  padding: 1rem 0 0 0;
153
153
 
154
154
  & .campaign-title-text {
@@ -173,7 +173,7 @@
173
173
  gap: 0.25rem;
174
174
  }
175
175
  }
176
- `,ge=(n=!1,t=!1,a=!1)=>`
176
+ `,de=(n=!1,t=!1,a=!1)=>`
177
177
  display: flex;
178
178
  ${t?"flex-wrap: wrap;":""}
179
179
  ${t?"":"flex-wrap: nowrap;"}
@@ -197,13 +197,13 @@
197
197
  text-decoration: none;
198
198
  }
199
199
 
200
- ${ge(!0)}
200
+ ${de(!0)}
201
201
  gap: 0.5rem;
202
202
  color: var(--gray-950, #14161a);
203
203
  font-weight: 500;
204
204
  font-size: 1rem;
205
205
  line-height: 1.5rem;
206
- border-radius: ${n=>x.getBorderRadiusValueWithUnits(n.theme,"slight")};
206
+ border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,"slight")};
207
207
  transition: all 0.25s ease;
208
208
  & .description {
209
209
  font-size: 0.85rem;
@@ -212,7 +212,7 @@
212
212
  font-weight: 400;
213
213
  }
214
214
  & .logo-wrapper {
215
- ${ge(!0,!1,!0)}
215
+ ${de(!0,!1,!0)}
216
216
  flex-shrink: 0;
217
217
  border-radius: 999px;
218
218
 
@@ -251,7 +251,7 @@
251
251
  background-color: var(--gray-95080, #14161acc);
252
252
  }
253
253
 
254
- @media ${N.down("S")} {
254
+ @media ${I.down("S")} {
255
255
  padding: 0;
256
256
  font-size: 0.875rem;
257
257
  }
@@ -262,7 +262,7 @@
262
262
  display: flex;
263
263
  gap: 0.25rem;
264
264
  `,Te=S.styled.div`
265
- border-radius: ${n=>x.getBorderRadiusValueWithUnits(n.theme,n.borderRadius||"slight")};
265
+ border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,n.borderRadius||"slight")};
266
266
  background-color: ${n=>n==null?void 0:n.color};
267
267
  color: white;
268
268
  height: 1.5rem;
@@ -277,7 +277,7 @@
277
277
  & i {
278
278
  font-size: 0.813rem;
279
279
  }
280
- `,Re=s.forwardRef(({src:n,...t},a)=>{const o=s.useRef();return s.useEffect(()=>{var m;const i=f=>{f.target.src=ce.DefaultShopImage,f.onerror=null};return(m=o==null?void 0:o.current)==null||m.addEventListener("error",i),()=>{var f;(f=o==null?void 0:o.current)==null||f.removeEventListener("error",i)}},[]),r.jsx(s.Fragment,{ref:a,children:x.isDefinedNotEmptyString(n)?r.jsx("img",{ref:o,src:n,...t}):r.jsx("img",{src:ce.DefaultShopImage,...t})})}),Pe=n=>{const{uuid:t,hasPermission:a=!0,isUser:o,image:i,imageComponent:m,name:f,notifications:j=0,color:l="primary",size:h="large",style:c,disabled:k,onClick:u=()=>{},isActive:D,className:v,shopCategory:y,themeData:$,LinkComponent:C}=n,z=C||"a",p={theme:fe.useTheme(),color:l,size:h,style:c,disabled:k};return s.createElement(De,{onClick:g=>{g==null||g.preventDefault(),g.stopPropagation(),a===!0&&(u==null||u())},...p,key:f,className:`profile-item ${v}`,hasPermission:a,isActive:D,themeColor:($==null?void 0:$.code)||"transparent",as:z,...C?{to:`/${o?"user":"shop"}/${t}`}:{href:`/${o?"user":"shop"}/${t}`}},r.jsx("div",{className:"logo-wrapper",children:x.isDefined(m)?m:i}),r.jsxs("div",{children:[r.jsx("div",{className:"name",children:f}),!o&&r.jsx("div",{className:"description",children:y}),j>0&&r.jsx("div",{className:"notifications-number",children:r.jsx($e,{className:"badge",color:"danger",size:"small",children:j>99?"99+":j})})]}))},ue=n=>{if(n!==void 0){const t=new Date(n),a=t.getFullYear(),o=t.getMonth()+1;return`${String(t.getDate()).padStart(2)}. ${o}. ${a}.`}},Ee=s.forwardRef((n,t)=>{var le;const a=fe.useTheme(),{uuid:o,shopUuid:i,title:m="",coverPhoto:f,onSelect:j,startDate:l,endDate:h,salesPackages:c,shopName:k,shopCategory:u,shopImage:D,shopImageComponent:v,className:y,onSelectCard:$=()=>{},onSelectShop:C=()=>{},upcoming:z=!1,upcomingCampaignText:d,campaignSingleText:p,salesCampaignTypes:g=[],startsInPrefixTextPlural:V,startsinSuffixTextPlural:W,startsInPrefixTextSingular:A,startsinSuffixTextSingular:F,endsInPrefixTextPlural:H,endsinSuffixTextPlural:Y,endsInPrefixTextSingular:L,endsinSuffixTextSingular:Z,endedText:G,themeData:re,numberOfListings:T,numberOfListingsTextSingular:J,numberOfListingsTextPlural:q,metadata:e,LinkComponent:M,sponsored:te,...K}=n,pe=M||"a",oe=s.useRef(),U=x.getDayNumberPrecise(l,h),Q=U!==-1&&(U==null?void 0:U.isEnded)===!0,X=U!==-1&&!Q,ee=x.calcDaysUntil(l),P=x.calcDaysRemaining(h),xe=P!==null&&P<=2&&P>0,ae=x.normalizeDate(h),se=ae?new Date(ae):null,be=new Date,ne=se?se.getTime()-be.getTime():null,O=ne!==null&&ne>0&&ne<24*60*60*1e3,ie=(b,E,I,_,R)=>I===1?`${b} ${I} ${_}`:`${E} ${I} ${R}`,we=()=>{if(!h)return null;const b=x.normalizeDate(h),E=b?new Date(b):null;if(!E)return null;const I=ve,_=E.getTime()-I.getTime();if(_<=0)return null;const R=Math.floor(_/(1e3*60*60)),Se=Math.floor(_%(1e3*60*60)/(1e3*60)),je=Math.floor(_%(1e3*60)/1e3);return{hours:R,minutes:Se,seconds:je}},[ve,ye]=s.useState(new Date);s.useEffect(()=>{if(!O)return;const b=setInterval(()=>{ye(new Date)},1e3);return()=>clearInterval(b)},[O]);const B=O?we():null;return r.jsxs(Ce,{ref:oe,theme:a,className:y,name:e==null?void 0:e.name,"data-accessor":e==null?void 0:e.accessor,onClick:b=>$(b,oe),as:pe,...M?{to:`/shop/${i}/campaign/${o}`}:{href:`/shop/${i}/campaign/${o}`},sponsored:te,...K,children:[r.jsxs(Ie,{theme:a,children:[r.jsx("img",{src:f}),r.jsx(ze,{children:c==null?void 0:c.map((b,E)=>{var I,_;return r.jsx(Te,{color:(I=g==null?void 0:g.find(R=>R.value===b))==null?void 0:I.color,theme:a,children:r.jsx(me,{icon:(_=g==null?void 0:g.find(R=>R.value===b))==null?void 0:_.icon})},`package__${E}`)})})]}),r.jsxs(Ne,{theme:a,children:[r.jsx("div",{className:"text-block-wrapper",children:r.jsxs("div",{className:"title-block-wrapper",children:[r.jsx("div",{className:"campaign-title",children:(le=z?d:p)==null?void 0:le.toUpperCase()}),r.jsx("div",{className:"campaign-title-text",children:m}),h&&l&&r.jsxs("div",{className:"campaign-date",children:[ue(l)," - ",ue(h)]}),r.jsxs("div",{className:"timestamp-text",children:[T>0&&r.jsxs("span",{className:"listings-text",children:[T," ",T===1?J:q," ","∙"," "]}),r.jsx("span",{className:`duration-text ${xe?"urgent":""} ${X?"":"starts-in"}`,children:O&&B?r.jsxs("div",{className:"countdown-timer",children:[L," ",B.hours.toString().padStart(2,"0"),":",B.minutes.toString().padStart(2,"0"),":",B.seconds.toString().padStart(2,"0")]}):X&&!Q&&P!==null&&P>0?ie(L,H,P,Z,Y):Q?G||"Završena":!X&&ee!==null&&ee>0?ie(A,V,ee,F,W):null})]})]})}),r.jsx(Pe,{hasPermission:!0,image:r.jsx(Re,{src:D}),imageComponent:v,themeData:re,isActive:!0,isUser:!1,name:k,shopCategory:u,uuid:i,onClick:()=>C(i)})]})]})}),Ue=S.styled.div`
280
+ `,Re=s.forwardRef(({src:n,...t},a)=>{const o=s.useRef();return s.useEffect(()=>{var m;const i=f=>{f.target.src=le.DefaultShopImage,f.onerror=null};return(m=o==null?void 0:o.current)==null||m.addEventListener("error",i),()=>{var f;(f=o==null?void 0:o.current)==null||f.removeEventListener("error",i)}},[]),r.jsx(s.Fragment,{ref:a,children:w.isDefinedNotEmptyString(n)?r.jsx("img",{ref:o,src:n,...t}):r.jsx("img",{src:le.DefaultShopImage,...t})})}),Pe=n=>{const{uuid:t,hasPermission:a=!0,isUser:o,image:i,imageComponent:m,name:f,notifications:j=0,color:l="primary",size:h="large",style:c,disabled:k,onClick:u=()=>{},isActive:D,className:v,shopCategory:y,themeData:$,LinkComponent:C}=n,z=C||"a",p={theme:me.useTheme(),color:l,size:h,style:c,disabled:k};return s.createElement(De,{onClick:g=>{g==null||g.preventDefault(),g.stopPropagation(),a===!0&&(u==null||u())},...p,key:f,className:`profile-item ${v}`,hasPermission:a,isActive:D,themeColor:($==null?void 0:$.code)||"transparent",as:z,...C?{to:`/${o?"user":"shop"}/${t}`}:{href:`/${o?"user":"shop"}/${t}`}},r.jsx("div",{className:"logo-wrapper",children:w.isDefined(m)?m:i}),r.jsxs("div",{children:[r.jsx("div",{className:"name",children:f}),!o&&r.jsx("div",{className:"description",children:y}),j>0&&r.jsx("div",{className:"notifications-number",children:r.jsx($e,{className:"badge",color:"danger",size:"small",children:j>99?"99+":j})})]}))},ge=n=>{if(n!==void 0){const t=new Date(n),a=t.getFullYear(),o=t.getMonth()+1;return`${String(t.getDate()).padStart(2)}. ${o}. ${a}.`}},Ee=s.forwardRef((n,t)=>{var ie;const a=me.useTheme(),{uuid:o,shopUuid:i,title:m="",coverPhoto:f,onSelect:j,startDate:l,endDate:h,salesPackages:c,shopName:k,shopCategory:u,shopImage:D,shopImageComponent:v,className:y,onSelectCard:$=()=>{},onSelectShop:C=()=>{},upcoming:z=!1,upcomingCampaignText:d,campaignSingleText:p,salesCampaignTypes:g=[],startsInPrefixTextPlural:W,startsinSuffixTextPlural:A,startsInPrefixTextSingular:F,startsinSuffixTextSingular:H,endsInPrefixTextPlural:X,endsinSuffixTextPlural:ee,endsInPrefixTextSingular:Y,endsinSuffixTextSingular:ne,endedText:Z,themeData:re,numberOfListings:T,numberOfListingsTextSingular:G,numberOfListingsTextPlural:q,metadata:e,LinkComponent:L,sponsored:te,...J}=n,he=L||"a",oe=s.useRef(),E=w.getDayNumberPrecise(l,h),M=E!==-1&&(E==null?void 0:E.isEnded)===!0,B=E!==-1&&!M,U=w.calcDaysUntil(l),ae=w.normalizeDate(h),se=ae?new Date(ae):null,pe=new Date,K=se?se.getTime()-pe.getTime():null,O=K!==null&&K>0&&K<24*60*60*1e3,xe=(x,P,N,_,R)=>N===1?`${x} ${N} ${_}`:`${P} ${N} ${R}`,be=()=>{if(!h)return null;const x=w.normalizeDate(h),P=x?new Date(x):null;if(!P)return null;const N=we,_=P.getTime()-N.getTime();if(_<=0)return null;const R=Math.floor(_/(1e3*60*60)),Se=Math.floor(_%(1e3*60*60)/(1e3*60)),je=Math.floor(_%(1e3*60)/1e3);return{hours:R,minutes:Se,seconds:je}},[we,ve]=s.useState(new Date);s.useEffect(()=>{if(!O)return;const x=setInterval(()=>{ve(new Date)},1e3);return()=>clearInterval(x)},[O]);const V=O?be():null,Q=!!(B&&!M&&O&&V),ye=Q||M||!B&&U!==null&&U>0;return r.jsxs(Ce,{ref:oe,theme:a,className:y,name:e==null?void 0:e.name,"data-accessor":e==null?void 0:e.accessor,onClick:x=>$(x,oe),as:he,...L?{to:`/shop/${i}/campaign/${o}`}:{href:`/shop/${i}/campaign/${o}`},sponsored:te,...J,children:[r.jsxs(Ne,{theme:a,children:[r.jsx("img",{src:f}),r.jsx(ze,{children:c==null?void 0:c.map((x,P)=>{var N,_;return r.jsx(Te,{color:(N=g==null?void 0:g.find(R=>R.value===x))==null?void 0:N.color,theme:a,children:r.jsx(ue,{icon:(_=g==null?void 0:g.find(R=>R.value===x))==null?void 0:_.icon})},`package__${P}`)})})]}),r.jsxs(Ie,{theme:a,children:[r.jsx("div",{className:"text-block-wrapper",children:r.jsxs("div",{className:"title-block-wrapper",children:[r.jsx("div",{className:"campaign-title",children:(ie=z?d:p)==null?void 0:ie.toUpperCase()}),r.jsx("div",{className:"campaign-title-text",children:m}),h&&l&&r.jsxs("div",{className:"campaign-date",children:[ge(l)," - ",ge(h)]}),r.jsxs("div",{className:"timestamp-text",children:[T>0&&r.jsxs("span",{className:"listings-text",children:[T," ",T===1?G:q,ye?" ∙ ":""]}),r.jsx("span",{className:`duration-text ${Q?"urgent":""} ${B?"":"starts-in"}`,children:Q?r.jsxs("div",{className:"countdown-timer",children:[Y," ",V.hours.toString().padStart(2,"0"),":",V.minutes.toString().padStart(2,"0"),":",V.seconds.toString().padStart(2,"0")]}):M?Z||"Završena":!B&&U!==null&&U>0?xe(F,W,U,H,A):null})]})]})}),r.jsx(Pe,{hasPermission:!0,image:r.jsx(Re,{src:D}),imageComponent:v,themeData:re,isActive:!0,isUser:!1,name:k,shopCategory:u,uuid:i,onClick:()=>C(i)})]})]})}),Ue=S.styled.div`
281
281
  margin: 0 auto;
282
282
  display: flex;
283
283
  flex-direction: column;
@@ -328,7 +328,7 @@
328
328
  }
329
329
  }
330
330
 
331
- @media ${N.down("S")} {
331
+ @media ${I.down("S")} {
332
332
  gap: 1.25rem;
333
333
 
334
334
  & .scrollable-section__header {
@@ -340,17 +340,17 @@
340
340
  }
341
341
  }
342
342
  }
343
- `,Le=S.styled(ke.motion.div)`
343
+ `,qe=S.styled(ke.motion.div)`
344
344
  display: grid;
345
345
  grid-template-columns: repeat(${n=>n==null?void 0:n.numOfColumns}, 1fr);
346
346
  gap: 1.5rem;
347
347
  width: 100%;
348
348
 
349
- @media ${N.only("M")} {
349
+ @media ${I.only("M")} {
350
350
  grid-template-columns: repeat(${n=>(n==null?void 0:n.tabletNumOfColumns)??2}, 1fr);
351
351
  }
352
352
 
353
- @media ${N.down("S")} {
353
+ @media ${I.down("S")} {
354
354
  display: flex;
355
355
  flex-wrap: nowrap;
356
356
  overflow-x: scroll;
@@ -372,7 +372,7 @@
372
372
  /* Safari and Chrome */
373
373
  }
374
374
  }
375
- `,qe=s.forwardRef(({icon:n,title:t,numOfSlides:a=4,tabletNumOfSlides:o,showNavigation:i=!0,hasNextPage:m=!1,className:f="",handleFetchNextPage:j=()=>{},children:l},h)=>{const[c,k]=s.useState(0),[u,D]=s.useState(1),v=he.useDetectMobile(),y=(l==null?void 0:l.length)??1;s.useEffect(()=>{const d=()=>{D(a)};return window.addEventListener("resize",d),d(),()=>window.removeEventListener("resize",d)},[]);const $=v?l:l==null?void 0:l.slice(c,c+u),C=d=>{var g;(g=d==null?void 0:d.target)==null||g.blur();const p=c+u;p<y&&k(p),p+u>=y&&m&&j()},z=d=>{var p;(p=d==null?void 0:d.target)==null||p.blur(),c-u>=0&&k(c-u)};return r.jsxs(Ue,{ref:h,className:f,children:[r.jsx("div",{className:"scrollable-section__header",children:r.jsxs("div",{className:"scrollable-section__title",children:[x.isDefinedNotEmptyString(n)&&r.jsx(me,{icon:n,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),x.isDefinedNotEmptyString(t)&&r.jsxs("div",{className:"title__text",children:[" ",t]})]})}),r.jsxs(Le,{numOfColumns:a,tabletNumOfColumns:o,...!v&&{animate:{x:0,opacity:1},initial:{x:10,opacity:0}},className:"scrollable-section__content",children:[$,v&&m&&r.jsx(_e.InfiniteScrollEndElement,{onIsVisible:j})]},`scrollable-section__content-${c}`),i&&y>u&&!v&&r.jsxs("div",{className:"scrollable-section__navigation",children:[r.jsx(de,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:c===0,onClick:z}),r.jsx(de,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:c+u>=y,onClick:C})]})]})}),Me=S.styled.div`
375
+ `,Le=s.forwardRef(({icon:n,title:t,numOfSlides:a=4,tabletNumOfSlides:o,showNavigation:i=!0,hasNextPage:m=!1,className:f="",handleFetchNextPage:j=()=>{},children:l},h)=>{const[c,k]=s.useState(0),[u,D]=s.useState(1),v=fe.useDetectMobile(),y=(l==null?void 0:l.length)??1;s.useEffect(()=>{const d=()=>{D(a)};return window.addEventListener("resize",d),d(),()=>window.removeEventListener("resize",d)},[]);const $=v?l:l==null?void 0:l.slice(c,c+u),C=d=>{var g;(g=d==null?void 0:d.target)==null||g.blur();const p=c+u;p<y&&k(p),p+u>=y&&m&&j()},z=d=>{var p;(p=d==null?void 0:d.target)==null||p.blur(),c-u>=0&&k(c-u)};return r.jsxs(Ue,{ref:h,className:f,children:[r.jsx("div",{className:"scrollable-section__header",children:r.jsxs("div",{className:"scrollable-section__title",children:[w.isDefinedNotEmptyString(n)&&r.jsx(ue,{icon:n,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),w.isDefinedNotEmptyString(t)&&r.jsxs("div",{className:"title__text",children:[" ",t]})]})}),r.jsxs(qe,{numOfColumns:a,tabletNumOfColumns:o,...!v&&{animate:{x:0,opacity:1},initial:{x:10,opacity:0}},className:"scrollable-section__content",children:[$,v&&m&&r.jsx(_e.InfiniteScrollEndElement,{onIsVisible:j})]},`scrollable-section__content-${c}`),i&&y>u&&!v&&r.jsxs("div",{className:"scrollable-section__navigation",children:[r.jsx(ce,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:c===0,onClick:z}),r.jsx(ce,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:c+u>=y,onClick:C})]})]})}),Me=S.styled.div`
376
376
  display: flex;
377
377
  flex: 1;
378
378
  width: 100%;
@@ -389,8 +389,8 @@
389
389
  border-radius: 1.25rem;
390
390
  object-fit: cover;
391
391
  }
392
- `,Oe=s.forwardRef(({sectionName:n,imageUrl:t,maxHeight:a="16.25rem",className:o="",handleClick:i=()=>{}},m)=>r.jsx(Me,{ref:m,maxHeight:a,onClick:i,className:`itemless-banner ${o}`,children:r.jsx("img",{src:t,alt:`itemless-banner__${n}`})})),Be=S.styled(w.SkeletonAnimationContainer)`
393
- @media ${N.down("S")} {
392
+ `,Be=s.forwardRef(({sectionName:n,imageUrl:t,maxHeight:a="16.25rem",className:o="",handleClick:i=()=>{}},m)=>r.jsx(Me,{ref:m,maxHeight:a,onClick:i,className:`itemless-banner ${o}`,children:r.jsx("img",{src:t,alt:`itemless-banner__${n}`})})),Oe=S.styled(b.SkeletonAnimationContainer)`
393
+ @media ${I.down("S")} {
394
394
  flex-direction: column;
395
395
 
396
396
  & .skeleton__image {
@@ -404,4 +404,4 @@
404
404
  }
405
405
  }
406
406
  }
407
- `,Ve=({keyPrefix:n})=>r.jsx(Be,{children:[1,2].map(t=>r.jsxs(w.SkeletonContainer,{children:[r.jsx(w.SkeletonSquare,{size:"13.75rem",className:"skeleton__image"}),r.jsxs(w.SkeletonColumnContainer,{children:[r.jsx(w.SkeletonRect,{width:"100%",height:"1rem"}),r.jsx(w.SkeletonRect,{width:"100%",height:"1.75rem"}),r.jsx(w.SkeletonRect,{width:"100%",height:"1.25rem"}),r.jsx(w.SkeletonRect,{width:"100%",height:"2rem"}),r.jsxs(w.SkeletonContainer,{alignItems:"center",children:[r.jsx(w.SkeletonCircle,{size:"2.5rem"}),r.jsx(w.SkeletonRect,{width:"5rem",height:"1.25rem"})]})]})]},`${n}-${t}`))}),We=({keyPrefix:n,isLoading:t=!1,fallbackComponent:a=r.jsx(r.Fragment,{}),children:o})=>r.jsx(s.Suspense,{fallbackComponent:a,children:t===!0?r.jsx(Ve,{keyPrefix:n}):o}),Ae=s.memo(Ee),Fe=s.forwardRef(({sellerType:n="Shop",items:t=[],title:a,icon:o,isLoading:i,onSelectCard:m=()=>{},onSelectShop:f=()=>{},getImage:j=()=>{},campaignSingleText:l,upcomingCampaignText:h,salesCampaignTypes:c=[],startsInPrefixTextPlural:k,startsinSuffixTextPlural:u,startsInPrefixTextSingular:D,startsinSuffixTextSingular:v,endsInPrefixTextPlural:y,endsinSuffixTextPlural:$,endsInPrefixTextSingular:C,endsinSuffixTextSingular:z,endedText:d,numOfSlides:p=4,showNavigation:g=!0,numberOfListingsTextSingular:V,numberOfListingsTextPlural:W,itemlessImageUrl:A,itemlessMaxHeight:F,handleItemlessLink:H=()=>{},componentName:Y,hasNextPage:L=!1,handleFetchNextPage:Z=()=>{},LinkComponent:G},re)=>{const T=he.useDetectMobile(),J=s.useMemo(()=>{let q=t==null?void 0:t.map((e,M)=>r.jsx(Ae,{className:`campaign-item ${(t==null?void 0:t.length)===1?"horizontal-campaign-item":""}`,coverPhoto:j(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:(te,K)=>m(e==null?void 0:e.campaignUuid,e==null?void 0:e.shopUuid,K),onSelectShop:()=>f(e==null?void 0:e.shopUuid),campaignSingleText:l,upcomingCampaignText:h,upcoming:e==null?void 0:e.upcoming,salesCampaignTypes:c,startsInPrefixTextPlural:k,startsinSuffixTextPlural:u,startsInPrefixTextSingular:D,startsinSuffixTextSingular:v,endsInPrefixTextPlural:y,endsinSuffixTextPlural:$,endsInPrefixTextSingular:C,endsinSuffixTextSingular:z,endedText:d,themeData:e==null?void 0:e.themeData,numberOfListings:e==null?void 0:e.numberOfListings,numberOfListingsTextSingular:V,numberOfListingsTextPlural:W,metadata:{name:Y,accessor:e==null?void 0:e.accessor},LinkComponent:G,sponsored:e==null?void 0:e.sponsored},`campaign__item__${M}__${e==null?void 0:e.startDate}___${e==null?void 0:e.endDate}`));return(t==null?void 0:t.length)<4&&!T?[...q,r.jsx(Oe,{imageUrl:A,className:"campaign-item",maxHeight:F,handleClick:H},"itemless-campaign-section-banner")]:q},[t]);return r.jsx(We,{isLoading:i,keyPrefix:"sales-campaign-skeleton",children:r.jsx(qe,{icon:o,title:a,numOfSlides:p,tabletNumOfSlides:2,showNavigation:g,hasNextPage:L,handleFetchNextPage:Z,className:(t==null?void 0:t.length)<4&&!T?"itemless":"",children:J},`sales-campaign-section__${T}`)})});module.exports=Fe;
407
+ `,Ve=({keyPrefix:n})=>r.jsx(Oe,{children:[1,2].map(t=>r.jsxs(b.SkeletonContainer,{children:[r.jsx(b.SkeletonSquare,{size:"13.75rem",className:"skeleton__image"}),r.jsxs(b.SkeletonColumnContainer,{children:[r.jsx(b.SkeletonRect,{width:"100%",height:"1rem"}),r.jsx(b.SkeletonRect,{width:"100%",height:"1.75rem"}),r.jsx(b.SkeletonRect,{width:"100%",height:"1.25rem"}),r.jsx(b.SkeletonRect,{width:"100%",height:"2rem"}),r.jsxs(b.SkeletonContainer,{alignItems:"center",children:[r.jsx(b.SkeletonCircle,{size:"2.5rem"}),r.jsx(b.SkeletonRect,{width:"5rem",height:"1.25rem"})]})]})]},`${n}-${t}`))}),We=({keyPrefix:n,isLoading:t=!1,fallbackComponent:a=r.jsx(r.Fragment,{}),children:o})=>r.jsx(s.Suspense,{fallbackComponent:a,children:t===!0?r.jsx(Ve,{keyPrefix:n}):o}),Ae=s.memo(Ee),Fe=s.forwardRef(({sellerType:n="Shop",items:t=[],title:a,icon:o,isLoading:i,onSelectCard:m=()=>{},onSelectShop:f=()=>{},getImage:j=()=>{},campaignSingleText:l,upcomingCampaignText:h,salesCampaignTypes:c=[],startsInPrefixTextPlural:k,startsinSuffixTextPlural:u,startsInPrefixTextSingular:D,startsinSuffixTextSingular:v,endsInPrefixTextPlural:y,endsinSuffixTextPlural:$,endsInPrefixTextSingular:C,endsinSuffixTextSingular:z,endedText:d,numOfSlides:p=4,showNavigation:g=!0,numberOfListingsTextSingular:W,numberOfListingsTextPlural:A,itemlessImageUrl:F,itemlessMaxHeight:H,handleItemlessLink:X=()=>{},componentName:ee,hasNextPage:Y=!1,handleFetchNextPage:ne=()=>{},LinkComponent:Z},re)=>{const T=fe.useDetectMobile(),G=s.useMemo(()=>{let q=t==null?void 0:t.map((e,L)=>r.jsx(Ae,{className:`campaign-item ${(t==null?void 0:t.length)===1?"horizontal-campaign-item":""}`,coverPhoto:j(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:(te,J)=>m(e==null?void 0:e.campaignUuid,e==null?void 0:e.shopUuid,J),onSelectShop:()=>f(e==null?void 0:e.shopUuid),campaignSingleText:l,upcomingCampaignText:h,upcoming:e==null?void 0:e.upcoming,salesCampaignTypes:c,startsInPrefixTextPlural:k,startsinSuffixTextPlural:u,startsInPrefixTextSingular:D,startsinSuffixTextSingular:v,endsInPrefixTextPlural:y,endsinSuffixTextPlural:$,endsInPrefixTextSingular:C,endsinSuffixTextSingular:z,endedText:d,themeData:e==null?void 0:e.themeData,numberOfListings:e==null?void 0:e.numberOfListings,numberOfListingsTextSingular:W,numberOfListingsTextPlural:A,metadata:{name:ee,accessor:e==null?void 0:e.accessor},LinkComponent:Z,sponsored:e==null?void 0:e.sponsored},`campaign__item__${L}__${e==null?void 0:e.startDate}___${e==null?void 0:e.endDate}`));return(t==null?void 0:t.length)<4&&!T?[...q,r.jsx(Be,{imageUrl:F,className:"campaign-item",maxHeight:H,handleClick:X},"itemless-campaign-section-banner")]:q},[t]);return r.jsx(We,{isLoading:i,keyPrefix:"sales-campaign-skeleton",children:r.jsx(Le,{icon:o,title:a,numOfSlides:p,tabletNumOfSlides:2,showNavigation:g,hasNextPage:Y,handleFetchNextPage:ne,className:(t==null?void 0:t.length)<4&&!T?"itemless":"",children:G},`sales-campaign-section__${T}`)})});module.exports=Fe;