@lanaco/lnc-react-ui 4.0.226 → 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 (267) 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 +3 -3
  16. package/dist/BannerSectionCarousel.js +19 -12
  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 +4 -4
  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 +7 -7
  28. package/dist/BlogListSection.js +157 -207
  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 +2 -11
  34. package/dist/BlogSingleSection.js +20 -36
  35. package/dist/BlogsSectionDetailed.cjs +1 -1
  36. package/dist/BlogsSectionDetailed.js +4 -4
  37. package/dist/BlogsSectionLarge.cjs +8 -16
  38. package/dist/BlogsSectionLarge.js +41 -59
  39. package/dist/BlogsSectionSimple.cjs +1 -1
  40. package/dist/BlogsSectionSimple.js +4 -4
  41. package/dist/BlogsSectionSimpleCentered.cjs +12 -25
  42. package/dist/BlogsSectionSimpleCentered.js +64 -98
  43. package/dist/BlogsSectionWithFilters.cjs +10 -21
  44. package/dist/BlogsSectionWithFilters.js +106 -154
  45. package/dist/BrandHitsSection.cjs +7 -7
  46. package/dist/BrandHitsSection.js +41 -87
  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 +4 -4
  77. package/dist/DetailedProductsSection.cjs +1 -1
  78. package/dist/DetailedProductsSection.js +5 -5
  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 +13 -13
  102. package/dist/FieldOfInterestsMasonrySection.js +105 -159
  103. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
  104. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
  105. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  106. package/dist/FieldOfInterestsWithTagsCardsSection.js +2 -2
  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 +2 -2
  117. package/dist/GiftCardsSection.cjs +10 -14
  118. package/dist/GiftCardsSection.js +77 -147
  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 +10 -10
  138. package/dist/MasonryGeneralCardsSection.js +45 -44
  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/OverlayGeneralCardsSection.cjs +1 -1
  158. package/dist/OverlayGeneralCardsSection.js +1 -1
  159. package/dist/PartnerBrandsSection.cjs +1 -1
  160. package/dist/PartnerBrandsSection.js +1 -1
  161. package/dist/PartnerCardsSection.cjs +1 -1
  162. package/dist/PartnerCardsSection.js +1 -1
  163. package/dist/PartnerStatsSection.cjs +1 -1
  164. package/dist/PartnerStatsSection.js +1 -1
  165. package/dist/PasswordInput.cjs +1 -1
  166. package/dist/PasswordInput.js +1 -1
  167. package/dist/PopoverContent.cjs +1 -1
  168. package/dist/PopoverContent.js +1 -1
  169. package/dist/ProductsWithBannerSection.cjs +13 -13
  170. package/dist/ProductsWithBannerSection.js +87 -168
  171. package/dist/ProgressBar.cjs +1 -1
  172. package/dist/ProgressBar.js +1 -1
  173. package/dist/QuattroCardsSection.cjs +1 -1
  174. package/dist/QuattroCardsSection.js +2 -2
  175. package/dist/QuizSection.cjs +1 -1
  176. package/dist/QuizSection.js +1 -1
  177. package/dist/RadioInput.cjs +1 -1
  178. package/dist/RadioInput.js +1 -1
  179. package/dist/RangeSlider.cjs +1 -1
  180. package/dist/RangeSlider.js +1 -1
  181. package/dist/ReviewsSection.cjs +18 -22
  182. package/dist/ReviewsSection.js +101 -163
  183. package/dist/SalesCampaignsSection.cjs +25 -25
  184. package/dist/SalesCampaignsSection.js +267 -306
  185. package/dist/Separator.cjs +1 -1
  186. package/dist/Separator.js +1 -1
  187. package/dist/ShopCardsSection.cjs +6 -19
  188. package/dist/ShopCardsSection.js +56 -102
  189. package/dist/Sidebar.cjs +1 -1
  190. package/dist/Sidebar.js +1 -1
  191. package/dist/SimpleCategoriesSection.cjs +3 -3
  192. package/dist/SimpleCategoriesSection.js +65 -68
  193. package/dist/SimpleProductsSection.cjs +7 -7
  194. package/dist/SimpleProductsSection.js +65 -138
  195. package/dist/Spinner.cjs +1 -1
  196. package/dist/Spinner.js +1 -1
  197. package/dist/StatsSection.cjs +1 -1
  198. package/dist/StatsSection.js +1 -1
  199. package/dist/Surface.cjs +1 -1
  200. package/dist/Surface.js +1 -1
  201. package/dist/SwipeableDrawer.cjs +1 -1
  202. package/dist/SwipeableDrawer.js +1 -1
  203. package/dist/TabItem.cjs +1 -1
  204. package/dist/TabItem.js +1 -1
  205. package/dist/Table.cjs +1 -1
  206. package/dist/Table.js +1 -1
  207. package/dist/TableView.cjs +1 -1
  208. package/dist/TableView.js +1 -1
  209. package/dist/TextAreaInput.cjs +1 -1
  210. package/dist/TextAreaInput.js +1 -1
  211. package/dist/TextInput.cjs +1 -1
  212. package/dist/TextInput.js +1 -1
  213. package/dist/ThemeProvider.cjs +1 -1
  214. package/dist/ThemeProvider.js +1 -1
  215. package/dist/TimeInput.cjs +1 -1
  216. package/dist/TimeInput.js +1 -1
  217. package/dist/Toggle.cjs +1 -1
  218. package/dist/Toggle.js +1 -1
  219. package/dist/TreeMenuSeparator.cjs +1 -1
  220. package/dist/TreeMenuSeparator.js +1 -1
  221. package/dist/UploadedFile.cjs +1 -1
  222. package/dist/UploadedFile.js +1 -1
  223. package/dist/UrgentSaleProductsSection.cjs +1 -1
  224. package/dist/UrgentSaleProductsSection.js +1 -1
  225. package/dist/index-B7fBsitY.js +45 -0
  226. package/dist/{index-BkztbBWe.cjs → index-B96icAp4.cjs} +1 -1
  227. package/dist/index-BMAvJQBG.cjs +9 -0
  228. package/dist/index-BUdvfHpp.cjs +5 -0
  229. package/dist/{index-tdg_Vmed.cjs → index-BXkL0HmX.cjs} +1 -1
  230. package/dist/index-C6amCwRZ.js +25 -0
  231. package/dist/index-C8R9lsWG.cjs +1 -0
  232. package/dist/{index-Djo0ZcRE.js → index-CCwfh-7A.js} +1 -1
  233. package/dist/{index-jGcy-5M_.js → index-CNUuIL97.js} +2 -2
  234. package/dist/index-CeQvy566.cjs +11 -0
  235. package/dist/{index-DsINTjQk.cjs → index-ChHUGfjn.cjs} +1 -1
  236. package/dist/index-Cyt4EUZ6.js +20 -0
  237. package/dist/{index-DEypPQRI.js → index-D6_3Q8lN.js} +1 -1
  238. package/dist/{index-D4-_TrSn.cjs → index-DnbzopIv.cjs} +1 -1
  239. package/dist/{index-rhYVjszT.js → index-DtVJCOWc.js} +2 -2
  240. package/dist/index-DueyY06i.cjs +368 -0
  241. package/dist/{index-D4OKsSqi.cjs → index-HzW6OHFF.cjs} +1 -1
  242. package/dist/{index-3GKF_7BJ.cjs → index-RrqW9QBJ.cjs} +1 -1
  243. package/dist/index-VTkAaA-n.js +18 -0
  244. package/dist/{index-CM6vzQBx.js → index-eOeAkUSU.js} +1 -1
  245. package/dist/{index-Dx2hfxCG.js → index-gHaK62BZ.js} +2 -2
  246. package/dist/index-zIt6TVeg.js +753 -0
  247. package/dist/index.cjs +1 -1
  248. package/dist/index.js +2 -2
  249. package/dist/style-BFPpppS9.js +73 -0
  250. package/dist/{style-D54KOzZj.js → style-CP_urKvc.js} +1 -1
  251. package/dist/style-CQdEALKR.cjs +59 -0
  252. package/dist/{style-Boz6dk5s.cjs → style-cJUZrJoG.cjs} +1 -1
  253. package/dist/{utils-CITgSxXe.cjs → utils-BK6B_Y9X.cjs} +2 -2
  254. package/dist/{utils-MoGhNMmj.js → utils-BUdHa0nB.js} +16 -23
  255. package/package.json +1 -1
  256. package/dist/index-BGNavrtB.cjs +0 -368
  257. package/dist/index-BHcrzV2G.js +0 -54
  258. package/dist/index-Bj1KWOV4.cjs +0 -11
  259. package/dist/index-BsAddfgC.cjs +0 -1
  260. package/dist/index-Cn4bq6ZX.js +0 -84
  261. package/dist/index-CuRcxKQH.js +0 -42
  262. package/dist/index-DB1J-G6Z.js +0 -38
  263. package/dist/index-DkPva6Gr.cjs +0 -20
  264. package/dist/index-fzBXDy05.cjs +0 -16
  265. package/dist/index-gFZSZLba.js +0 -882
  266. package/dist/style-DvkivBNg.js +0 -74
  267. package/dist/style-Ito6YFqi.cjs +0 -64
@@ -1,20 +1,20 @@
1
- "use strict";const t=require("react/jsx-runtime"),a=require("react"),w=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),k=require("./breakpoints-CcVm-gVm.cjs"),_=require("./useDetectMobile-DYV6V1yw.cjs"),S=require("./utils-CITgSxXe.cjs"),B=require("./style-Boz6dk5s.cjs"),M=require("./Button.cjs"),z=require("./Link.cjs"),D=require("./index-DsINTjQk.cjs"),F=require("./index-3GKF_7BJ.cjs"),s=require("./style-Ito6YFqi.cjs"),P=w.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),a=require("react"),w=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),j=require("./breakpoints-CcVm-gVm.cjs"),x=require("./useDetectMobile-DYV6V1yw.cjs"),S=require("./utils-BK6B_Y9X.cjs"),M=require("./style-cJUZrJoG.cjs"),z=require("./Button.cjs"),D=require("./Link.cjs"),F=require("./index-ChHUGfjn.cjs"),L=require("./index-RrqW9QBJ.cjs"),p=require("./style-CQdEALKR.cjs"),A=w.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media ${k.down("M")} {
6
+ @media ${j.down("M")} {
7
7
  grid-template-columns: repeat(2, 1fr);
8
8
  }
9
9
 
10
- @media ${k.down("S")} {
10
+ @media ${j.down("S")} {
11
11
  grid-template-columns: repeat(2, 1fr);
12
12
  }
13
13
 
14
- @media ${k.down("XS")} {
14
+ @media ${j.down("XS")} {
15
15
  grid-template-columns: repeat(1, 1fr);
16
16
  }
17
- `,A=w.styled.a`
17
+ `,E=w.styled.a`
18
18
  text-decoration: none;
19
19
  color: var(--gray-950);
20
20
  display: flex;
@@ -46,7 +46,7 @@
46
46
  & a {
47
47
  margin-top: auto;
48
48
  }
49
- `,E=w.styled.div`
49
+ `,I=w.styled.div`
50
50
  display: flex;
51
51
  flex-direction: column;
52
52
  gap: 0.5rem;
@@ -63,8 +63,8 @@
63
63
  color: var(--gray-700, #4e555f);
64
64
  ${S.truncateTextInRows(3)}
65
65
  }
66
- `,I=a.forwardRef((r,h)=>{const{title:l,imageUrl:c,text:i,buttonText:p,onCardClick:d,metadata:o,link:m,LinkComponent:g}=r,b=g||"a",u=a.useRef(),f=j=>{d(j,u)};return t.jsxs(A,{ref:u,name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.accessor,className:"blog-card",onClick:f,to:`/${m}`,as:b,...g?{to:`/${m}`}:{href:`/${m}`},children:[t.jsxs(E,{children:[t.jsx("div",{className:"text-wr-title",children:l}),t.jsx("div",{className:"text-wr",children:i}),t.jsx(z,{color:"gray",onClick:f,children:p})]}),t.jsx(D.ProductImageWrapper,{src:c})]})}),O=w.styled(s.SkeletonColumnWrapper)`
67
- @media ${k.down("S")} {
66
+ `,O=a.forwardRef((n,s)=>{const{title:l,imageUrl:c,text:i,buttonText:g,onCardClick:d,metadata:r,link:m,LinkComponent:h}=n,b=h||"a",u=a.useRef(),f=k=>{d(k,u)};return t.jsxs(E,{ref:u,name:r==null?void 0:r.name,"data-accessor":r==null?void 0:r.accessor,className:"blog-card",onClick:f,to:`/${m}`,as:b,...h?{to:`/${m}`}:{href:`/${m}`},children:[t.jsxs(I,{children:[t.jsx("div",{className:"text-wr-title",children:l}),t.jsx("div",{className:"text-wr",children:i}),t.jsx(D,{color:"gray",onClick:f,children:g})]}),t.jsx(F.ProductImageWrapper,{src:c})]})}),U=w.styled(p.SkeletonAnimationColumnContainer)`
67
+ @media ${j.down("S")} {
68
68
  & .skeleton__tags {
69
69
  & > div {
70
70
  width: 100%;
@@ -73,17 +73,6 @@
73
73
 
74
74
  & .skeleton__cards {
75
75
  flex-direction: column;
76
-
77
- & > div {
78
- background: linear-gradient(
79
- to right,
80
- transparent 0%,
81
- #f4f6fb 40%,
82
- #f4f6fb 100%
83
- );
84
-
85
- box-shadow: none;
86
- }
87
76
  }
88
77
  }
89
- `,U=({keyPrefix:r})=>t.jsxs(O,{children:[t.jsxs(s.SkeletonRowWrapper,{className:"skeleton__tags",children:[t.jsx(s.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-1`),t.jsx(s.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-2`),t.jsx(s.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-3`)]}),t.jsxs(s.SkeletonRowWrapper,{className:"skeleton__cards",children:[t.jsx(s.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-4`),t.jsx(s.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-5`),t.jsx(s.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-6`)]})]}),K=({keyPrefix:r,isLoading:h=!1,fallbackComponent:l=t.jsx(t.Fragment,{}),children:c})=>t.jsx(a.Suspense,{fallbackComponent:l,children:h===!0?t.jsx(U,{keyPrefix:r}):c}),q=a.memo(I),G=a.forwardRef((r,h)=>{const{icon:l,title:c,items:i,buttonText:p,limit:d=3,options:o,selectedOption:m=[],onButtonAction:g=()=>{},buttonLink:b,onSelectOption:u=()=>{},onSelectAll:f=()=>{},isLoading:j=!1,onSelectCard:y=()=>{},productsToolbarName:W="All",allButton:x=!1,componentName:$,LinkComponent:R}=r,N=_.useDetectMobile(),L=a.useMemo(()=>{var n;return t.jsx(t.Fragment,{children:N===!0?i==null?void 0:i.map((e,v)=>t.jsx(q,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(T,C)=>y(e,C),metadata:{name:$,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:R},v)):(n=i==null?void 0:i.slice(0,d))==null?void 0:n.map((e,v)=>t.jsx(q,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(T,C)=>y(e,C),metadata:{name:$,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:R},v))})},[i,N,d]);return t.jsxs(B.TitleWithOptionsSectionWrapper,{ref:h,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[S.isDefinedNotEmptyString(l)&&t.jsx("i",{className:l}),t.jsx("span",{children:c})]}),S.isDefinedNotEmptyString(p)&&S.isDefinedNotEmptyString(b)&&!j&&t.jsx(M,{type:"button",btnType:"tinted",color:"neutral",onClick:n=>{var e;(e=n==null?void 0:n.target)==null||e.blur(),g(b)},borderRadius:"curved",children:p})]}),t.jsxs(K,{isLoading:j,keyPrefix:"blogs-with-filters-skeleton",children:[(o==null?void 0:o.length)>0&&t.jsx(F.SelectBar,{items:o,selectedIds:m,onRemove:n=>{u(n)},onSelect:n=>{u(n)},onSelectAll:f,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:W,allButton:x}),t.jsx(P,{limit:d,children:L})]})]})});module.exports=G;
78
+ `,K=({keyPrefix:n})=>t.jsxs(U,{children:[t.jsx(p.SkeletonContainer,{className:"skeleton__tags",children:[1,2,3].map(s=>t.jsx(p.SkeletonRect,{height:"2.25rem",width:"8rem",borderRadius:"1rem"},`${n}-tab-${s}`))}),t.jsx(p.SkeletonContainer,{className:"skeleton__cards",children:[1,2,3].map(s=>t.jsx(p.SkeletonRect,{height:"10.375rem",width:"100%",borderRadius:"1rem"},`${n}-card-${s}`))})]}),P=({keyPrefix:n,isLoading:s=!1,fallbackComponent:l=t.jsx(t.Fragment,{}),children:c})=>t.jsx(a.Suspense,{fallbackComponent:l,children:s===!0?t.jsx(K,{keyPrefix:n}):c}),q=a.memo(O),G=a.forwardRef((n,s)=>{const{icon:l,title:c,items:i,buttonText:g,limit:d=3,options:r,selectedOption:m=[],onButtonAction:h=()=>{},buttonLink:b,onSelectOption:u=()=>{},onSelectAll:f=()=>{},isLoading:k=!1,onSelectCard:v=()=>{},productsToolbarName:T="All",allButton:_=!1,componentName:$,LinkComponent:N}=n,R=x.useDetectMobile(),B=a.useMemo(()=>{var o;return t.jsx(t.Fragment,{children:R===!0?i==null?void 0:i.map((e,y)=>t.jsx(q,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(W,C)=>v(e,C),metadata:{name:$,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:N},y)):(o=i==null?void 0:i.slice(0,d))==null?void 0:o.map((e,y)=>t.jsx(q,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(W,C)=>v(e,C),metadata:{name:$,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:N},y))})},[i,R,d]);return t.jsxs(M.TitleWithOptionsSectionWrapper,{ref:s,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[S.isDefinedNotEmptyString(l)&&t.jsx("i",{className:l}),t.jsx("span",{children:c})]}),S.isDefinedNotEmptyString(g)&&S.isDefinedNotEmptyString(b)&&!k&&t.jsx(z,{type:"button",btnType:"tinted",color:"neutral",onClick:o=>{var e;(e=o==null?void 0:o.target)==null||e.blur(),h(b)},borderRadius:"curved",children:g})]}),t.jsxs(P,{isLoading:k,keyPrefix:"blogs-with-filters-skeleton",children:[(r==null?void 0:r.length)>0&&t.jsx(L.SelectBar,{items:r,selectedIds:m,onRemove:o=>{u(o)},onSelect:o=>{u(o)},onSelectAll:f,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:T,allButton:_}),t.jsx(A,{limit:d,children:B})]})]})});module.exports=G;
@@ -1,32 +1,32 @@
1
- import { jsxs as a, jsx as t, Fragment as _ } from "react/jsx-runtime";
2
- import { forwardRef as L, useRef as A, Suspense as I, memo as O, useMemo as U } from "react";
3
- import { s as S } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
- import { d as w } from "./breakpoints-BubDitvo.js";
5
- import { u as D } from "./useDetectMobile-B0Jog4jQ.js";
6
- import { n as K, l as $ } from "./utils-MoGhNMmj.js";
7
- import { T as E } from "./style-D54KOzZj.js";
8
- import G from "./Button.js";
9
- import H from "./Link.js";
10
- import { P as X } from "./index-DEypPQRI.js";
11
- import { S as q } from "./index-Djo0ZcRE.js";
12
- import { b as J, S as y, a as s } from "./style-DvkivBNg.js";
13
- const P = S.div`
1
+ import { jsxs as l, jsx as t, Fragment as _ } from "react/jsx-runtime";
2
+ import { forwardRef as M, useRef as j, Suspense as I, memo as O, useMemo as P } from "react";
3
+ import { s as C } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
+ import { d as k } from "./breakpoints-BubDitvo.js";
5
+ import { u as U } from "./useDetectMobile-B0Jog4jQ.js";
6
+ import { n as D, l as v } from "./utils-BUdHa0nB.js";
7
+ import { T as K } from "./style-CP_urKvc.js";
8
+ import E from "./Button.js";
9
+ import G from "./Link.js";
10
+ import { P as H } from "./index-D6_3Q8lN.js";
11
+ import { S as X } from "./index-CCwfh-7A.js";
12
+ import { b as q, c as B, a as R } from "./style-BFPpppS9.js";
13
+ const J = C.div`
14
14
  display: grid;
15
- grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
15
+ grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
16
16
  gap: 1.25rem;
17
17
 
18
- @media ${w("M")} {
18
+ @media ${k("M")} {
19
19
  grid-template-columns: repeat(2, 1fr);
20
20
  }
21
21
 
22
- @media ${w("S")} {
22
+ @media ${k("S")} {
23
23
  grid-template-columns: repeat(2, 1fr);
24
24
  }
25
25
 
26
- @media ${w("XS")} {
26
+ @media ${k("XS")} {
27
27
  grid-template-columns: repeat(1, 1fr);
28
28
  }
29
- `, Q = S.a`
29
+ `, Q = C.a`
30
30
  text-decoration: none;
31
31
  color: var(--gray-950);
32
32
  display: flex;
@@ -58,7 +58,7 @@ const P = S.div`
58
58
  & a {
59
59
  margin-top: auto;
60
60
  }
61
- `, V = S.div`
61
+ `, V = C.div`
62
62
  display: flex;
63
63
  flex-direction: column;
64
64
  gap: 0.5rem;
@@ -73,44 +73,44 @@ const P = S.div`
73
73
  font-weight: 400;
74
74
  font-size: 0.875rem;
75
75
  color: var(--gray-700, #4e555f);
76
- ${K(3)}
76
+ ${D(3)}
77
77
  }
78
- `, Y = L((r, h) => {
78
+ `, Y = M((o, a) => {
79
79
  const {
80
- title: l,
81
- imageUrl: m,
80
+ title: s,
81
+ imageUrl: c,
82
82
  text: n,
83
83
  buttonText: u,
84
- onCardClick: c,
85
- metadata: o,
84
+ onCardClick: m,
85
+ metadata: r,
86
86
  link: d,
87
87
  LinkComponent: g
88
- } = r, f = g || "a", p = A(), b = (k) => {
89
- c(k, p);
88
+ } = o, h = g || "a", p = j(), f = (b) => {
89
+ m(b, p);
90
90
  };
91
- return /* @__PURE__ */ a(
91
+ return /* @__PURE__ */ l(
92
92
  Q,
93
93
  {
94
94
  ref: p,
95
- name: o == null ? void 0 : o.name,
96
- "data-accessor": o == null ? void 0 : o.accessor,
95
+ name: r == null ? void 0 : r.name,
96
+ "data-accessor": r == null ? void 0 : r.accessor,
97
97
  className: "blog-card",
98
- onClick: b,
98
+ onClick: f,
99
99
  to: `/${d}`,
100
- as: f,
100
+ as: h,
101
101
  ...g ? { to: `/${d}` } : { href: `/${d}` },
102
102
  children: [
103
- /* @__PURE__ */ a(V, { children: [
104
- /* @__PURE__ */ t("div", { className: "text-wr-title", children: l }),
103
+ /* @__PURE__ */ l(V, { children: [
104
+ /* @__PURE__ */ t("div", { className: "text-wr-title", children: s }),
105
105
  /* @__PURE__ */ t("div", { className: "text-wr", children: n }),
106
- /* @__PURE__ */ t(H, { color: "gray", onClick: b, children: u })
106
+ /* @__PURE__ */ t(G, { color: "gray", onClick: f, children: u })
107
107
  ] }),
108
- /* @__PURE__ */ t(X, { src: m })
108
+ /* @__PURE__ */ t(H, { src: c })
109
109
  ]
110
110
  }
111
111
  );
112
- }), Z = S(J)`
113
- @media ${w("S")} {
112
+ }), Z = C(q)`
113
+ @media ${k("S")} {
114
114
  & .skeleton__tags {
115
115
  & > div {
116
116
  width: 100%;
@@ -119,164 +119,116 @@ const P = S.div`
119
119
 
120
120
  & .skeleton__cards {
121
121
  flex-direction: column;
122
-
123
- & > div {
124
- background: linear-gradient(
125
- to right,
126
- transparent 0%,
127
- #f4f6fb 40%,
128
- #f4f6fb 100%
129
- );
130
-
131
- box-shadow: none;
132
- }
133
122
  }
134
123
  }
135
- `, x = ({ keyPrefix: r }) => /* @__PURE__ */ a(Z, { children: [
136
- /* @__PURE__ */ a(y, { className: "skeleton__tags", children: [
137
- /* @__PURE__ */ t(
138
- s,
139
- {
140
- height: "2.25rem",
141
- width: "128px",
142
- borderRadius: "1rem"
143
- },
144
- `${r}-1`
145
- ),
146
- /* @__PURE__ */ t(
147
- s,
148
- {
149
- height: "2.25rem",
150
- width: "128px",
151
- borderRadius: "1rem"
152
- },
153
- `${r}-2`
154
- ),
155
- /* @__PURE__ */ t(
156
- s,
157
- {
158
- height: "2.25rem",
159
- width: "128px",
160
- borderRadius: "1rem"
161
- },
162
- `${r}-3`
163
- )
164
- ] }),
165
- /* @__PURE__ */ a(y, { className: "skeleton__cards", children: [
166
- /* @__PURE__ */ t(
167
- s,
168
- {
169
- height: "10.375rem",
170
- borderRadius: "0.75rem"
171
- },
172
- `${r}-4`
173
- ),
174
- /* @__PURE__ */ t(
175
- s,
176
- {
177
- height: "10.375rem",
178
- borderRadius: "0.75rem"
179
- },
180
- `${r}-5`
181
- ),
182
- /* @__PURE__ */ t(
183
- s,
184
- {
185
- height: "10.375rem",
186
- borderRadius: "0.75rem"
187
- },
188
- `${r}-6`
189
- )
190
- ] })
124
+ `, x = ({ keyPrefix: o }) => /* @__PURE__ */ l(Z, { children: [
125
+ /* @__PURE__ */ t(B, { className: "skeleton__tags", children: [1, 2, 3].map((a) => /* @__PURE__ */ t(
126
+ R,
127
+ {
128
+ height: "2.25rem",
129
+ width: "8rem",
130
+ borderRadius: "1rem"
131
+ },
132
+ `${o}-tab-${a}`
133
+ )) }),
134
+ /* @__PURE__ */ t(B, { className: "skeleton__cards", children: [1, 2, 3].map((a) => /* @__PURE__ */ t(
135
+ R,
136
+ {
137
+ height: "10.375rem",
138
+ width: "100%",
139
+ borderRadius: "1rem"
140
+ },
141
+ `${o}-card-${a}`
142
+ )) })
191
143
  ] }), ee = ({
192
- keyPrefix: r,
193
- isLoading: h = !1,
194
- fallbackComponent: l = /* @__PURE__ */ t(_, {}),
195
- children: m
196
- }) => /* @__PURE__ */ t(I, { fallbackComponent: l, children: h === !0 ? /* @__PURE__ */ t(x, { keyPrefix: r }) : m }), B = O(Y), he = L((r, h) => {
144
+ keyPrefix: o,
145
+ isLoading: a = !1,
146
+ fallbackComponent: s = /* @__PURE__ */ t(_, {}),
147
+ children: c
148
+ }) => /* @__PURE__ */ t(I, { fallbackComponent: s, children: a === !0 ? /* @__PURE__ */ t(x, { keyPrefix: o }) : c }), W = O(Y), ue = M((o, a) => {
197
149
  const {
198
- icon: l,
199
- title: m,
150
+ icon: s,
151
+ title: c,
200
152
  items: n,
201
153
  buttonText: u,
202
- limit: c = 3,
203
- options: o,
154
+ limit: m = 3,
155
+ options: r,
204
156
  selectedOption: d = [],
205
157
  onButtonAction: g = () => {
206
158
  },
207
- buttonLink: f,
159
+ buttonLink: h,
208
160
  onSelectOption: p = () => {
209
161
  },
210
- onSelectAll: b = () => {
162
+ onSelectAll: f = () => {
211
163
  },
212
- isLoading: k = !1,
213
- onSelectCard: R = () => {
164
+ isLoading: b = !1,
165
+ onSelectCard: y = () => {
214
166
  },
215
- productsToolbarName: M = "All",
216
- allButton: z = !1,
217
- componentName: T,
218
- LinkComponent: N
219
- } = r, W = D(), F = U(() => {
167
+ productsToolbarName: z = "All",
168
+ allButton: L = !1,
169
+ componentName: $,
170
+ LinkComponent: T
171
+ } = o, N = U(), A = P(() => {
220
172
  var i;
221
- return /* @__PURE__ */ t(_, { children: W === !0 ? n == null ? void 0 : n.map((e, v) => /* @__PURE__ */ t(
222
- B,
173
+ return /* @__PURE__ */ t(_, { children: N === !0 ? n == null ? void 0 : n.map((e, S) => /* @__PURE__ */ t(
174
+ W,
223
175
  {
224
176
  title: e == null ? void 0 : e.title,
225
177
  imageUrl: (e == null ? void 0 : e.image) || null,
226
178
  text: e == null ? void 0 : e.text,
227
179
  buttonText: e == null ? void 0 : e.buttonText,
228
- onCardClick: (j, C) => R(e, C),
229
- metadata: { name: T, accessor: e == null ? void 0 : e.accessor },
180
+ onCardClick: (F, w) => y(e, w),
181
+ metadata: { name: $, accessor: e == null ? void 0 : e.accessor },
230
182
  link: e == null ? void 0 : e.link,
231
- LinkComponent: N
183
+ LinkComponent: T
232
184
  },
233
- v
234
- )) : (i = n == null ? void 0 : n.slice(0, c)) == null ? void 0 : i.map((e, v) => /* @__PURE__ */ t(
235
- B,
185
+ S
186
+ )) : (i = n == null ? void 0 : n.slice(0, m)) == null ? void 0 : i.map((e, S) => /* @__PURE__ */ t(
187
+ W,
236
188
  {
237
189
  title: e == null ? void 0 : e.title,
238
190
  imageUrl: (e == null ? void 0 : e.image) || null,
239
191
  text: e == null ? void 0 : e.text,
240
192
  buttonText: e == null ? void 0 : e.buttonText,
241
- onCardClick: (j, C) => R(e, C),
242
- metadata: { name: T, accessor: e == null ? void 0 : e.accessor },
193
+ onCardClick: (F, w) => y(e, w),
194
+ metadata: { name: $, accessor: e == null ? void 0 : e.accessor },
243
195
  link: e == null ? void 0 : e.link,
244
- LinkComponent: N
196
+ LinkComponent: T
245
197
  },
246
- v
198
+ S
247
199
  )) });
248
- }, [n, W, c]);
249
- return /* @__PURE__ */ a(E, { ref: h, children: [
250
- /* @__PURE__ */ a("div", { className: "regular-title", children: [
251
- /* @__PURE__ */ a("div", { className: "regular-title-text", children: [
252
- $(l) && /* @__PURE__ */ t("i", { className: l }),
253
- /* @__PURE__ */ t("span", { children: m })
200
+ }, [n, N, m]);
201
+ return /* @__PURE__ */ l(K, { ref: a, children: [
202
+ /* @__PURE__ */ l("div", { className: "regular-title", children: [
203
+ /* @__PURE__ */ l("div", { className: "regular-title-text", children: [
204
+ v(s) && /* @__PURE__ */ t("i", { className: s }),
205
+ /* @__PURE__ */ t("span", { children: c })
254
206
  ] }),
255
- $(u) && $(f) && !k && /* @__PURE__ */ t(
256
- G,
207
+ v(u) && v(h) && !b && /* @__PURE__ */ t(
208
+ E,
257
209
  {
258
210
  type: "button",
259
211
  btnType: "tinted",
260
212
  color: "neutral",
261
213
  onClick: (i) => {
262
214
  var e;
263
- (e = i == null ? void 0 : i.target) == null || e.blur(), g(f);
215
+ (e = i == null ? void 0 : i.target) == null || e.blur(), g(h);
264
216
  },
265
217
  borderRadius: "curved",
266
218
  children: u
267
219
  }
268
220
  )
269
221
  ] }),
270
- /* @__PURE__ */ a(
222
+ /* @__PURE__ */ l(
271
223
  ee,
272
224
  {
273
- isLoading: k,
225
+ isLoading: b,
274
226
  keyPrefix: "blogs-with-filters-skeleton",
275
227
  children: [
276
- (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t(
277
- q,
228
+ (r == null ? void 0 : r.length) > 0 && /* @__PURE__ */ t(
229
+ X,
278
230
  {
279
- items: o,
231
+ items: r,
280
232
  selectedIds: d,
281
233
  onRemove: (i) => {
282
234
  p(i);
@@ -284,20 +236,20 @@ const P = S.div`
284
236
  onSelect: (i) => {
285
237
  p(i);
286
238
  },
287
- onSelectAll: b,
239
+ onSelectAll: f,
288
240
  labelKey: "name",
289
241
  valueKey: "code",
290
242
  noMargin: !0,
291
- productsToolbarName: M,
292
- allButton: z
243
+ productsToolbarName: z,
244
+ allButton: L
293
245
  }
294
246
  ),
295
- /* @__PURE__ */ t(P, { limit: c, children: F })
247
+ /* @__PURE__ */ t(J, { limit: m, children: A })
296
248
  ]
297
249
  }
298
250
  )
299
251
  ] });
300
252
  });
301
253
  export {
302
- he as default
254
+ ue as default
303
255
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),p=require("react"),_=require("./utils-CITgSxXe.cjs"),m=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),g=require("./breakpoints-CcVm-gVm.cjs"),o=require("./style-Ito6YFqi.cjs"),x=m.styled.a`
1
+ "use strict";const e=require("react/jsx-runtime"),d=require("react"),_=require("./utils-BK6B_Y9X.cjs"),h=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),m=require("./breakpoints-CcVm-gVm.cjs"),g=require("./style-CQdEALKR.cjs"),x=h.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  width: 7.5rem;
@@ -14,7 +14,7 @@
14
14
  height: auto;
15
15
  }
16
16
 
17
- @media ${g.down("S")} {
17
+ @media ${m.down("S")} {
18
18
  width: 4.5rem;
19
19
  height: auto;
20
20
  max-height: 4.5rem;
@@ -24,7 +24,7 @@
24
24
  height: auto;
25
25
  }
26
26
  }
27
- `,u=p.forwardRef(({imageComponent:r,image:n,onSelectCard:a,urlPrefix:s,urlSufix:i,code:l,LinkComponent:d},c)=>{const h=d||"a";return e.jsx(x,{ref:c,onClick:a,as:h,...d?{to:`${s}${l}${i}`}:{href:`${s}${l}${i}`},children:_.isDefined(r)?r:e.jsx("img",{src:n,className:"wrapper__image"})})}),j=m.styled.div`
27
+ `,f=d.forwardRef(({imageComponent:t,image:a,onSelectCard:n,urlPrefix:s,urlSufix:i,code:o,LinkComponent:c},p)=>{const l=c||"a";return e.jsx(x,{ref:p,onClick:n,as:l,...c?{to:`${s}${o}${i}`}:{href:`${s}${o}${i}`},children:_.isDefined(t)?t:e.jsx("img",{src:a,className:"wrapper__image"})})}),u=h.styled.div`
28
28
  display: flex;
29
29
  flex-direction: column;
30
30
  align-items: flex-start;
@@ -73,7 +73,7 @@
73
73
  }
74
74
  }
75
75
 
76
- @media ${g.down("S")} {
76
+ @media ${m.down("S")} {
77
77
  & .wrapper__content {
78
78
  align-content: center;
79
79
  gap: 1rem;
@@ -84,9 +84,9 @@
84
84
  }
85
85
  }
86
86
  }
87
- `,f=m.styled(o.SkeletonRowWrapper)`
88
- @media ${g.down("S")} {
87
+ `,j=h.styled(g.SkeletonAnimationContainer)`
88
+ @media ${m.down("S")} {
89
89
  gap: 1rem;
90
90
  flex-wrap: wrap;
91
91
  }
92
- `,$=({keyPrefix:r})=>e.jsxs(f,{justifyContent:"center",alignItems:"center",gap:"3rem",children:[e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-1`),e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-2`),e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-3`),e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-4`),e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-5`)]}),y=({keyPrefix:r,isLoading:n=!1,fallbackComponent:a=e.jsx(e.Fragment,{}),children:s})=>e.jsx(p.Suspense,{fallbackComponent:a,children:n===!0?e.jsx($,{keyPrefix:r}):s}),b=p.forwardRef(({title:r,subtitle:n,items:a=[],isLoading:s=!1,onSelectCard:i=()=>{},urlPrefix:l,urlSufix:d,LinkComponent:c},h)=>e.jsxs(j,{ref:h,children:[e.jsxs("div",{className:"wrapper__heading",children:[r&&e.jsx("div",{className:"wrapper__title",children:r}),n&&e.jsx("div",{className:"wrapper__subtitle",children:n})]}),e.jsx(y,{isLoading:s,keyPrefix:"brand-hits-skeleton",children:e.jsx("div",{className:"wrapper__content",children:a==null?void 0:a.map((t,w)=>e.jsx(u,{image:t==null?void 0:t.image,imageComponent:t==null?void 0:t.imageComponent,onSelectCard:()=>i==null?void 0:i(t),className:"wrapper__item",urlPrefix:l,urlSufix:d,code:t==null?void 0:t.card,LinkComponent:c},`brand-hit-card__${w+1}`))})})]}));module.exports=b;
92
+ `,y=({keyPrefix:t})=>e.jsx(j,{justifyContent:"center",alignItems:"center",gap:"3rem",children:[1,2,3,4,5].map(a=>e.jsx(g.SkeletonRect,{height:"4rem",width:"7.5rem"},`${t}-${a}`))}),$=({keyPrefix:t,isLoading:a=!1,fallbackComponent:n=e.jsx(e.Fragment,{}),children:s})=>e.jsx(d.Suspense,{fallbackComponent:n,children:a===!0?e.jsx(y,{keyPrefix:t}):s}),v=d.forwardRef(({title:t,subtitle:a,items:n=[],isLoading:s=!1,onSelectCard:i=()=>{},urlPrefix:o,urlSufix:c,LinkComponent:p},l)=>e.jsxs(u,{ref:l,children:[e.jsxs("div",{className:"wrapper__heading",children:[t&&e.jsx("div",{className:"wrapper__title",children:t}),a&&e.jsx("div",{className:"wrapper__subtitle",children:a})]}),e.jsx($,{isLoading:s,keyPrefix:"brand-hits-skeleton",children:e.jsx("div",{className:"wrapper__content",children:n==null?void 0:n.map((r,w)=>e.jsx(f,{image:r==null?void 0:r.image,imageComponent:r==null?void 0:r.imageComponent,onSelectCard:()=>i==null?void 0:i(r),className:"wrapper__item",urlPrefix:o,urlSufix:c,code:r==null?void 0:r.card,LinkComponent:p},`brand-hit-card__${w+1}`))})})]}));module.exports=v;