@lanaco/lnc-react-ui 4.0.169 → 4.0.171

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 (173) hide show
  1. package/dist/Accordion.js +1 -1
  2. package/dist/AccordionSummary.js +1 -1
  3. package/dist/ActionsToolbar.js +1 -1
  4. package/dist/Alert.js +1 -1
  5. package/dist/Avatar.js +1 -1
  6. package/dist/Badge.js +1 -1
  7. package/dist/BannerSectionCarousel.cjs +9 -48
  8. package/dist/BannerSectionCarousel.js +208 -249
  9. package/dist/BannerSectionSimple.js +1 -1
  10. package/dist/BannerSectionWithList.js +1 -1
  11. package/dist/BlogCardsSponsoredSection.cjs +8 -8
  12. package/dist/BlogCardsSponsoredSection.js +67 -68
  13. package/dist/BlogCategoryCardsSection.cjs +1 -1
  14. package/dist/BlogCategoryCardsSection.js +22 -30
  15. package/dist/BlogExploreSection.js +9 -9
  16. package/dist/BlogListSection.cjs +11 -5
  17. package/dist/BlogListSection.js +187 -123
  18. package/dist/BlogProductCardsSection.cjs +1 -1
  19. package/dist/BlogProductCardsSection.js +28 -37
  20. package/dist/BlogShopCardsSection.cjs +1 -1
  21. package/dist/BlogShopCardsSection.js +40 -67
  22. package/dist/BlogSingleSection.cjs +16 -1
  23. package/dist/BlogSingleSection.js +47 -45
  24. package/dist/BlogsSectionDetailed.cjs +8 -27
  25. package/dist/BlogsSectionDetailed.js +111 -159
  26. package/dist/BlogsSectionLarge.cjs +19 -4
  27. package/dist/BlogsSectionLarge.js +73 -37
  28. package/dist/BlogsSectionSimple.cjs +9 -9
  29. package/dist/BlogsSectionSimple.js +81 -107
  30. package/dist/BlogsSectionSimpleCentered.cjs +25 -23
  31. package/dist/BlogsSectionSimpleCentered.js +103 -96
  32. package/dist/BlogsSectionWithFilters.cjs +31 -29
  33. package/dist/BlogsSectionWithFilters.js +173 -134
  34. package/dist/BrandHitsSection.cjs +10 -14
  35. package/dist/BrandHitsSection.js +93 -45
  36. package/dist/Breadcrumbs.js +1 -1
  37. package/dist/Button.js +1 -1
  38. package/dist/ButtonGroup.js +1 -1
  39. package/dist/CalorieCalculatorSection.js +1 -1
  40. package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
  41. package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
  42. package/dist/CheckBoxInput.js +1 -1
  43. package/dist/Chip.js +1 -1
  44. package/dist/ColorInput.js +1 -1
  45. package/dist/ConfirmationForm.js +1 -1
  46. package/dist/CustomLoanMapSection.js +1 -1
  47. package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
  48. package/dist/DateInput.js +1 -1
  49. package/dist/DecimalInput.js +1 -1
  50. package/dist/DecimalInputV2.js +1 -1
  51. package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
  52. package/dist/DetailedProductsInfinitiveSection.js +35 -36
  53. package/dist/DetailedProductsSection.cjs +4 -4
  54. package/dist/DetailedProductsSection.js +62 -63
  55. package/dist/DetailsView.js +1 -1
  56. package/dist/DoubleRangeSlider.js +1 -1
  57. package/dist/DragAndDropFile.js +1 -1
  58. package/dist/DragDropFiles.js +1 -1
  59. package/dist/Drawer.js +1 -1
  60. package/dist/Dropdown.js +2 -2
  61. package/dist/DropdownItem.js +1 -1
  62. package/dist/DropdownLookup.js +1 -1
  63. package/dist/DropdownMenu.js +1 -1
  64. package/dist/EditableTable.js +1 -1
  65. package/dist/FeedbackSection.js +1 -1
  66. package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
  67. package/dist/FieldOfInterestsMasonrySection.js +228 -154
  68. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
  69. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
  70. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
  71. package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
  72. package/dist/FileInput.js +1 -1
  73. package/dist/FlexGridItem.js +1 -1
  74. package/dist/FormField.js +1 -1
  75. package/dist/FormView.js +1 -1
  76. package/dist/GeneralWithTagsCardsSection.cjs +11 -27
  77. package/dist/GeneralWithTagsCardsSection.js +87 -99
  78. package/dist/GiftCardsSection.cjs +18 -23
  79. package/dist/GiftCardsSection.js +146 -77
  80. package/dist/Icon.js +1 -1
  81. package/dist/IconButton.js +1 -1
  82. package/dist/Kanban.js +1 -1
  83. package/dist/KanbanActionsToolbar.js +1 -1
  84. package/dist/KanbanView.js +1 -1
  85. package/dist/Link.js +1 -1
  86. package/dist/LoanCalculatorSection.js +1 -1
  87. package/dist/LocationFinderSection.js +1 -1
  88. package/dist/LocationSearchSection.js +1 -1
  89. package/dist/MasonryGeneralCardsSection.cjs +33 -19
  90. package/dist/MasonryGeneralCardsSection.js +114 -68
  91. package/dist/MenuItem.js +1 -1
  92. package/dist/Modal.js +1 -1
  93. package/dist/MultiSelectDropdown.js +1 -1
  94. package/dist/MultiSelectDropdownLookup.js +1 -1
  95. package/dist/NestedDropdownItem.js +1 -1
  96. package/dist/NestedMenuItem.js +1 -1
  97. package/dist/NotificationContainer.js +1 -1
  98. package/dist/NotificationMessage.js +1 -1
  99. package/dist/NumberInput.js +1 -1
  100. package/dist/OverlayGeneralCardsSection.cjs +5 -5
  101. package/dist/OverlayGeneralCardsSection.js +54 -40
  102. package/dist/PasswordInput.js +1 -1
  103. package/dist/PopoverContent.js +1 -1
  104. package/dist/ProductsWithBannerSection.cjs +15 -20
  105. package/dist/ProductsWithBannerSection.js +176 -104
  106. package/dist/ProgressBar.js +1 -1
  107. package/dist/QuattroCardsSection.cjs +6 -6
  108. package/dist/QuattroCardsSection.js +42 -34
  109. package/dist/QuizSection.js +1 -1
  110. package/dist/RadioInput.js +1 -1
  111. package/dist/RangeSlider.js +1 -1
  112. package/dist/ReviewsSection.cjs +24 -30
  113. package/dist/ReviewsSection.js +170 -137
  114. package/dist/SalesCampaignsSection.cjs +46 -130
  115. package/dist/SalesCampaignsSection.js +354 -433
  116. package/dist/Separator.js +1 -1
  117. package/dist/ShopCardsSection.cjs +18 -5
  118. package/dist/ShopCardsSection.js +145 -88
  119. package/dist/Sidebar.js +1 -1
  120. package/dist/SimpleCategoriesSection.cjs +10 -4
  121. package/dist/SimpleCategoriesSection.js +79 -51
  122. package/dist/SimpleProductsSection.cjs +16 -3
  123. package/dist/SimpleProductsSection.js +172 -70
  124. package/dist/Spinner.js +1 -1
  125. package/dist/StatsSection.js +4 -4
  126. package/dist/Surface.js +1 -1
  127. package/dist/SwipeableDrawer.js +1 -1
  128. package/dist/TabItem.js +1 -1
  129. package/dist/Table.js +1 -1
  130. package/dist/TableView.js +1 -1
  131. package/dist/TextAreaInput.js +1 -1
  132. package/dist/TextInput.js +1 -1
  133. package/dist/ThemeProvider.js +1 -1
  134. package/dist/TimeInput.js +1 -1
  135. package/dist/Toggle.js +1 -1
  136. package/dist/TreeMenuSeparator.js +1 -1
  137. package/dist/UploadedFile.js +1 -1
  138. package/dist/UrgentSaleProductsSection.cjs +2 -2
  139. package/dist/UrgentSaleProductsSection.js +62 -61
  140. package/dist/index-BAJkosVg.cjs +11 -0
  141. package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
  142. package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
  143. package/dist/index-BSpdEGFd.js +42 -0
  144. package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
  145. package/dist/index-BhBRZf4M.js +742 -0
  146. package/dist/index-BovNbKxB.js +54 -0
  147. package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
  148. package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
  149. package/dist/index-D-3I_Ppj.cjs +16 -0
  150. package/dist/index-D0IYt1s3.cjs +20 -0
  151. package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
  152. package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
  153. package/dist/index-DFdPWO4O.js +133 -0
  154. package/dist/index-DFyV_EK2.cjs +305 -0
  155. package/dist/index-DxwIu0Wn.js +84 -0
  156. package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
  157. package/dist/index.js +1 -1
  158. package/dist/style-BAcV7F53.cjs +64 -0
  159. package/dist/style-CXMUA6cI.js +74 -0
  160. package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
  161. package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
  162. package/package.json +1 -1
  163. package/dist/index-1Dm1i6WK.js +0 -52
  164. package/dist/index-BGTtoLxz.cjs +0 -1
  165. package/dist/skeleton-BdbB-LdT.cjs +0 -97
  166. package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
  167. package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
  168. package/dist/suspense-large-BMO7JH52.js +0 -26
  169. package/dist/suspense-large-CFmcSzX-.cjs +0 -1
  170. package/dist/suspense-product-card-detailed-CxiFuUOT.js +0 -653
  171. package/dist/suspense-product-card-detailed-IR4sh-l4.cjs +0 -330
  172. package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
  173. package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
@@ -4,7 +4,7 @@ import { s as o } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as n } from "./consts-BuFChS64.js";
5
5
  import k from "./Button.js";
6
6
  import { u as C } from "./useDetectMobile-Bkvj0VMa.js";
7
- import { l as B } from "./utils-BdsZgOUE.js";
7
+ import { l as B } from "./utils-DHfRApMf.js";
8
8
  const I = o.div`
9
9
  display: flex;
10
10
  border-radius: 0.75rem;
@@ -3,7 +3,7 @@ import { forwardRef as p, Fragment as u } from "react";
3
3
  import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as s } from "./consts-BuFChS64.js";
5
5
  import x from "./Button.js";
6
- import { l as n } from "./utils-BdsZgOUE.js";
6
+ import { l as n } from "./utils-DHfRApMf.js";
7
7
  const y = m.div`
8
8
  padding-bottom: 1.38rem;
9
9
  text-align: center;
@@ -1,11 +1,11 @@
1
- "use strict";const r=require("react/jsx-runtime"),d=require("react"),l=require("./utils-Dl9xPH4c.cjs"),w=require("./Icon.cjs"),R=require("./style-Db3VFbfP.cjs"),x=require("./index-BueKsXT8.cjs"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./consts-goSZX3xP.cjs"),S=require("./suspense-large-CFmcSzX-.cjs"),z=require("./Button.cjs"),I=v.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),p=require("react"),s=require("./utils-Dl9xPH4c.cjs"),w=require("./Icon.cjs"),S=require("./style-Db3VFbfP.cjs"),R=require("./index-BueKsXT8.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),x=require("./Button.cjs"),z=require("./index-D0IYt1s3.cjs"),I=y.styled.div`
2
2
  display: flex;
3
3
  padding: 1rem;
4
4
  align-items: center;
5
5
  gap: 1.25rem;
6
6
  border-radius: 1.25rem;
7
7
  align-items: stretch;
8
- border: ${s=>s!=null&&s.isSponsored?"2px solid var(--yellow-500, #f59e0b)":"1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
8
+ border: ${t=>t!=null&&t.isSponsored?"2px solid var(--yellow-500, #f59e0b)":"1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
9
9
  background: var(--white, #fff);
10
10
  min-height: 10.5rem;
11
11
  position: relative;
@@ -63,7 +63,7 @@
63
63
  font-weight: 600;
64
64
  line-height: 1.5rem;
65
65
  letter-spacing: 0.1px;
66
- ${l.truncateTextInRows(2)}
66
+ ${s.truncateTextInRows(2)}
67
67
  }
68
68
 
69
69
  & .wrapper__tags {
@@ -95,7 +95,7 @@
95
95
  }
96
96
  }
97
97
 
98
- @media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
98
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
99
99
  flex-direction: column;
100
100
  padding: 0;
101
101
 
@@ -121,7 +121,7 @@
121
121
  }
122
122
  }
123
123
  }
124
- `,q=d.forwardRef(({title:s,imageUrl:m,options:n,publishedAt:_,timeToReadText:f="{0} min read",timeToRead:u=0,numberOfLikes:o=0,numberOfComments:c=0,isSponsored:p=!1,onSelectCard:h=()=>{},metadata:t},b)=>{const g=d.useRef();return r.jsxs(I,{ref:g,isSponsored:p,"data-accessor":t==null?void 0:t.accessor,name:t==null?void 0:t.name,onClick:i=>h(i,g),children:[p&&r.jsx("div",{className:"wrapper__sponsored",children:r.jsx(w,{icon:" mng-lnc-paw",sizeInUnits:"1.5rem"})}),r.jsx(x.ProductImageWrapper,{src:m,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:s}),r.jsx("div",{className:"wrapper__tags",children:n&&(n==null?void 0:n.map((i,a)=>r.jsx(R.BlogTag,{color:i==null?void 0:i.color,children:i==null?void 0:i.name},a)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"info__text",children:`${l.formatLocaleDateString(_)} • ${l.formatString(f,u)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),l.getRoundedNumber(o)]}),r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),l.getRoundedNumber(c)]})]})]})]})]})}),k=v.styled.div`
124
+ `,q=p.forwardRef(({title:t,imageUrl:m,options:l,publishedAt:g,timeToReadText:f="{0} min read",timeToRead:h=0,numberOfLikes:o=0,numberOfComments:d=0,isSponsored:c=!1,onSelectCard:_=()=>{},metadata:a},b)=>{const u=p.useRef();return r.jsxs(I,{ref:u,isSponsored:c,"data-accessor":a==null?void 0:a.accessor,name:a==null?void 0:a.name,onClick:i=>_(i,u),children:[c&&r.jsx("div",{className:"wrapper__sponsored",children:r.jsx(w,{icon:" mng-lnc-paw",sizeInUnits:"1.5rem"})}),r.jsx(R.ProductImageWrapper,{src:m,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:t}),r.jsx("div",{className:"wrapper__tags",children:l&&(l==null?void 0:l.map((i,n)=>r.jsx(S.BlogTag,{color:i==null?void 0:i.color,children:i==null?void 0:i.name},n)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"info__text",children:`${s.formatLocaleDateString(g)} • ${s.formatString(f,h)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),s.getRoundedNumber(o)]}),r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),s.getRoundedNumber(d)]})]})]})]})]})}),$=y.styled.div`
125
125
  display: flex;
126
126
  flex-direction: column;
127
127
  align-items: flex-start;
@@ -139,7 +139,7 @@
139
139
 
140
140
  & .title__text {
141
141
  color: var(--gray-950, #14161a);
142
- ${l.truncateTextInRows(2)}
142
+ ${s.truncateTextInRows(2)}
143
143
 
144
144
  font-size: 1.5rem;
145
145
  font-style: normal;
@@ -191,7 +191,7 @@
191
191
  width: 100%;
192
192
  }
193
193
 
194
- @media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
194
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
195
195
  gap: 1.25rem;
196
196
 
197
197
  & .wrapper__title {
@@ -205,4 +205,4 @@
205
205
  gap: 1.5rem;
206
206
  }
207
207
  }
208
- `,$=d.memo(q),L=d.forwardRef(({title:s,subtitle:m,icon:n,buttonText:_,buttonLink:f,timeToReadText:u="{0} min read",items:o,onButtonAction:c=()=>{},onSelectCard:p=()=>{},isLoading:h=!1,getImage:t=()=>{},componentName:b},g)=>{const i=d.useMemo(()=>{var a;return(a=o==null?void 0:o.slice(0,4))==null?void 0:a.map((e,j)=>r.jsx($,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:u,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:(O,N)=>p==null?void 0:p(e,N),imageUrl:t(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,metadata:{name:b,accessor:e==null?void 0:e.accessor}},`blog-card-sponsored__${j+1}`))},[o]);return r.jsxs(k,{ref:g,children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[s&&r.jsxs("div",{className:"title__text",children:[l.isDefinedNotEmptyString(n)&&r.jsx("i",{className:n}),r.jsx("span",{children:s})]}),c&&r.jsx(z,{text:_,borderRadius:"curved",btnType:"tinted",className:"title__action",color:"neutral",onClick:a=>{var e;(e=a==null?void 0:a.target)==null||e.blur(),c==null||c(f)}})]}),m&&r.jsx("div",{className:"wrapper__subtitle",children:m})]}),r.jsx("div",{className:"wrapper__cards",children:r.jsx(S.SuspenseBlogLarge,{isLoading:h,limit:4,keyPrefix:"blog-section",children:i})})]})});module.exports=L;
208
+ `,k=p.memo(q),E=p.forwardRef(({title:t,subtitle:m,icon:l,buttonText:g,buttonLink:f,timeToReadText:h="{0} min read",items:o,onButtonAction:d=()=>{},onSelectCard:c=()=>{},isLoading:_=!1,getImage:a=()=>{},componentName:b},u)=>{const i=p.useMemo(()=>{var n;return(n=o==null?void 0:o.slice(0,4))==null?void 0:n.map((e,j)=>r.jsx(k,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:h,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:(O,N)=>c==null?void 0:c(e,N),imageUrl:a(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,metadata:{name:b,accessor:e==null?void 0:e.accessor}},`blog-card-sponsored__${j+1}`))},[o]);return r.jsxs($,{ref:u,children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[t&&r.jsxs("div",{className:"title__text",children:[s.isDefinedNotEmptyString(l)&&r.jsx("i",{className:l}),r.jsx("span",{children:t})]}),s.isDefinedNotEmptyString(g)&&s.isDefinedNotEmptyString(f)&&!_&&r.jsx(x,{text:g,borderRadius:"curved",btnType:"tinted",className:"title__action",color:"neutral",onClick:n=>{var e;(e=n==null?void 0:n.target)==null||e.blur(),d==null||d(f)}})]}),m&&r.jsx("div",{className:"wrapper__subtitle",children:m})]}),r.jsx(z.SuspenseBlogCardsSponsored,{isLoading:_,keyPrefix:"blog-cards-sponsored-skeleton",children:r.jsx("div",{className:"wrapper__cards",children:i})})]})});module.exports=E;
@@ -1,14 +1,14 @@
1
1
  import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as v, useRef as $, memo as j, useMemo as I } from "react";
3
- import { p as y, s as R, v as L, w as b, k as O } from "./utils-BdsZgOUE.js";
4
- import w from "./Icon.js";
5
- import { B as T } from "./style-DKAOBWn3.js";
6
- import { P as U } from "./index-CF3HhgvN.js";
7
- import { s as N } from "./emotion-styled.browser.esm-BNN1dTl3.js";
2
+ import { forwardRef as y, useRef as j, memo as I, useMemo as R } from "react";
3
+ import { o as N, q as B, s as C, v, k as w } from "./utils-DHfRApMf.js";
4
+ import u from "./Icon.js";
5
+ import { B as O } from "./style-D3pIrH3v.js";
6
+ import { P as U } from "./index-BbltNcou.js";
7
+ import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
8
  import { M as z } from "./consts-BuFChS64.js";
9
- import { S as B } from "./suspense-large-BMO7JH52.js";
10
- import C from "./Button.js";
11
- const M = N.div`
9
+ import M from "./Button.js";
10
+ import { S as P } from "./index-BSpdEGFd.js";
11
+ const T = S.div`
12
12
  display: flex;
13
13
  padding: 1rem;
14
14
  align-items: center;
@@ -73,7 +73,7 @@ const M = N.div`
73
73
  font-weight: 600;
74
74
  line-height: 1.5rem;
75
75
  letter-spacing: 0.1px;
76
- ${y(2)}
76
+ ${N(2)}
77
77
  }
78
78
 
79
79
  & .wrapper__tags {
@@ -131,50 +131,50 @@ const M = N.div`
131
131
  }
132
132
  }
133
133
  }
134
- `, P = v(
134
+ `, E = y(
135
135
  ({
136
136
  title: t,
137
137
  imageUrl: d,
138
- options: l,
139
- publishedAt: f,
140
- timeToReadText: g = "{0} min read",
141
- timeToRead: _ = 0,
142
- numberOfLikes: o = 0,
143
- numberOfComments: p = 0,
144
- isSponsored: m = !1,
145
- onSelectCard: h = () => {
138
+ options: o,
139
+ publishedAt: c,
140
+ timeToReadText: f = "{0} min read",
141
+ timeToRead: h = 0,
142
+ numberOfLikes: l = 0,
143
+ numberOfComments: m = 0,
144
+ isSponsored: p = !1,
145
+ onSelectCard: g = () => {
146
146
  },
147
147
  metadata: s
148
- }, u) => {
149
- const c = $();
148
+ }, b) => {
149
+ const _ = j();
150
150
  return /* @__PURE__ */ i(
151
- M,
151
+ T,
152
152
  {
153
- ref: c,
154
- isSponsored: m,
153
+ ref: _,
154
+ isSponsored: p,
155
155
  "data-accessor": s == null ? void 0 : s.accessor,
156
156
  name: s == null ? void 0 : s.name,
157
- onClick: (a) => h(a, c),
157
+ onClick: (a) => g(a, _),
158
158
  children: [
159
- m && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(w, { icon: " mng-lnc-paw", sizeInUnits: "1.5rem" }) }),
159
+ p && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(u, { icon: " mng-lnc-paw", sizeInUnits: "1.5rem" }) }),
160
160
  /* @__PURE__ */ r(U, { src: d, className: "wrapper__image" }),
161
161
  /* @__PURE__ */ i("div", { className: "wrapper__content", children: [
162
162
  /* @__PURE__ */ i("div", { className: "wrapper__subcontent", children: [
163
163
  /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
164
- /* @__PURE__ */ r("div", { className: "wrapper__tags", children: l && (l == null ? void 0 : l.map((a, n) => /* @__PURE__ */ r(T, { color: a == null ? void 0 : a.color, children: a == null ? void 0 : a.name }, n))) })
164
+ /* @__PURE__ */ r("div", { className: "wrapper__tags", children: o && (o == null ? void 0 : o.map((a, n) => /* @__PURE__ */ r(O, { color: a == null ? void 0 : a.color, children: a == null ? void 0 : a.name }, n))) })
165
165
  ] }),
166
166
  /* @__PURE__ */ i("div", { className: "wrapper__info", children: [
167
- /* @__PURE__ */ r("div", { className: "info__text", children: `${R(
168
- f
169
- )} • ${L(g, _)}` }),
167
+ /* @__PURE__ */ r("div", { className: "info__text", children: `${B(
168
+ c
169
+ )} • ${C(f, h)}` }),
170
170
  /* @__PURE__ */ i("div", { className: "info__text", children: [
171
171
  /* @__PURE__ */ i("div", { children: [
172
- /* @__PURE__ */ r(w, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
173
- b(o)
172
+ /* @__PURE__ */ r(u, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
173
+ v(l)
174
174
  ] }),
175
175
  /* @__PURE__ */ i("div", { children: [
176
- /* @__PURE__ */ r(w, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
177
- b(p)
176
+ /* @__PURE__ */ r(u, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
177
+ v(m)
178
178
  ] })
179
179
  ] })
180
180
  ] })
@@ -183,7 +183,7 @@ const M = N.div`
183
183
  }
184
184
  );
185
185
  }
186
- ), E = N.div`
186
+ ), W = S.div`
187
187
  display: flex;
188
188
  flex-direction: column;
189
189
  align-items: flex-start;
@@ -201,7 +201,7 @@ const M = N.div`
201
201
 
202
202
  & .title__text {
203
203
  color: var(--gray-950, #14161a);
204
- ${y(2)}
204
+ ${N(2)}
205
205
 
206
206
  font-size: 1.5rem;
207
207
  font-style: normal;
@@ -267,78 +267,77 @@ const M = N.div`
267
267
  gap: 1.5rem;
268
268
  }
269
269
  }
270
- `, W = j(P), Y = v(
270
+ `, D = I(E), Y = y(
271
271
  ({
272
272
  title: t,
273
273
  subtitle: d,
274
- icon: l,
275
- buttonText: f,
276
- buttonLink: g,
277
- timeToReadText: _ = "{0} min read",
278
- items: o,
279
- onButtonAction: p = () => {
274
+ icon: o,
275
+ buttonText: c,
276
+ buttonLink: f,
277
+ timeToReadText: h = "{0} min read",
278
+ items: l,
279
+ onButtonAction: m = () => {
280
280
  },
281
- onSelectCard: m = () => {
281
+ onSelectCard: p = () => {
282
282
  },
283
- isLoading: h = !1,
283
+ isLoading: g = !1,
284
284
  getImage: s = () => {
285
285
  },
286
- componentName: u
287
- }, c) => {
288
- const a = I(() => {
286
+ componentName: b
287
+ }, _) => {
288
+ const a = R(() => {
289
289
  var n;
290
- return (n = o == null ? void 0 : o.slice(0, 4)) == null ? void 0 : n.map((e, S) => /* @__PURE__ */ r(
291
- W,
290
+ return (n = l == null ? void 0 : l.slice(0, 4)) == null ? void 0 : n.map((e, k) => /* @__PURE__ */ r(
291
+ D,
292
292
  {
293
293
  title: e == null ? void 0 : e.title,
294
294
  titleSlug: e == null ? void 0 : e.titleSlug,
295
295
  options: e == null ? void 0 : e.options,
296
296
  publishedAt: e == null ? void 0 : e.publishedAt,
297
- timeToReadText: _,
297
+ timeToReadText: h,
298
298
  timeToRead: e == null ? void 0 : e.timeToRead,
299
299
  numberOfLikes: e == null ? void 0 : e.numberOfLikes,
300
300
  numberOfComments: e == null ? void 0 : e.numberOfComments,
301
301
  isSponsored: e == null ? void 0 : e.isSponsored,
302
- onSelectCard: (D, k) => m == null ? void 0 : m(e, k),
302
+ onSelectCard: (L, $) => p == null ? void 0 : p(e, $),
303
303
  imageUrl: s(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
304
- metadata: { name: u, accessor: e == null ? void 0 : e.accessor }
304
+ metadata: { name: b, accessor: e == null ? void 0 : e.accessor }
305
305
  },
306
- `blog-card-sponsored__${S + 1}`
306
+ `blog-card-sponsored__${k + 1}`
307
307
  ));
308
- }, [o]);
309
- return /* @__PURE__ */ i(E, { ref: c, children: [
308
+ }, [l]);
309
+ return /* @__PURE__ */ i(W, { ref: _, children: [
310
310
  /* @__PURE__ */ i("div", { className: "wrapper__heading", children: [
311
311
  /* @__PURE__ */ i("div", { className: "wrapper__title", children: [
312
312
  t && /* @__PURE__ */ i("div", { className: "title__text", children: [
313
- O(l) && /* @__PURE__ */ r("i", { className: l }),
313
+ w(o) && /* @__PURE__ */ r("i", { className: o }),
314
314
  /* @__PURE__ */ r("span", { children: t })
315
315
  ] }),
316
- p && /* @__PURE__ */ r(
317
- C,
316
+ w(c) && w(f) && !g && /* @__PURE__ */ r(
317
+ M,
318
318
  {
319
- text: f,
319
+ text: c,
320
320
  borderRadius: "curved",
321
321
  btnType: "tinted",
322
322
  className: "title__action",
323
323
  color: "neutral",
324
324
  onClick: (n) => {
325
325
  var e;
326
- (e = n == null ? void 0 : n.target) == null || e.blur(), p == null || p(g);
326
+ (e = n == null ? void 0 : n.target) == null || e.blur(), m == null || m(f);
327
327
  }
328
328
  }
329
329
  )
330
330
  ] }),
331
331
  d && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: d })
332
332
  ] }),
333
- /* @__PURE__ */ r("div", { className: "wrapper__cards", children: /* @__PURE__ */ r(
334
- B,
333
+ /* @__PURE__ */ r(
334
+ P,
335
335
  {
336
- isLoading: h,
337
- limit: 4,
338
- keyPrefix: "blog-section",
339
- children: a
336
+ isLoading: g,
337
+ keyPrefix: "blog-cards-sponsored-skeleton",
338
+ children: /* @__PURE__ */ r("div", { className: "wrapper__cards", children: a })
340
339
  }
341
- ) })
340
+ )
342
341
  ] });
343
342
  }
344
343
  );
@@ -1 +1 @@
1
- "use strict";const s=require("react/jsx-runtime"),a=require("react"),u=require("./suspense-categories-card-simple-CjGtzfzp.cjs"),m=require("./style-BTTXJFJN.cjs"),p=a.memo(u.CategorySimpleCard),C=a.forwardRef(({items:r,onSelectCard:i=()=>{},isLoading:n=!1,limit:t=4,isHighlight:c=!1},d)=>{const g=a.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,l)=>s.jsx(p,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},l))},[r]);return s.jsx(m.Wrapper,{ref:d,className:c?"highlight":"",children:s.jsx("div",{className:"wrapper__grid",children:s.jsx(u.SuspenseSimpleCategoryCard,{isLoading:n,limit:t,keyPrefix:"blog-section",children:g})})})});module.exports=C;
1
+ "use strict";const a=require("react/jsx-runtime"),s=require("react"),c=require("./CategorySimpleCard-Qe5QStrs.cjs"),d=require("./style-BTTXJFJN.cjs"),g=s.memo(c.CategorySimpleCard),l=s.forwardRef(({items:r,onSelectCard:i=()=>{},isLoading:p=!1,limit:C=4,isHighlight:t=!1},u)=>{const m=s.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,n)=>a.jsx(g,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},n))},[r]);return a.jsx(d.Wrapper,{ref:u,className:t?"highlight":"",children:a.jsx("div",{className:"wrapper__grid",children:m})})});module.exports=l;
@@ -1,38 +1,30 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { memo as t, forwardRef as u, useMemo as f } from "react";
3
- import { C as n, S as c } from "./suspense-categories-card-simple-BGj475Ca.js";
4
- import { W as C } from "./style-tw6KjI2J.js";
5
- const h = t(n), M = u(
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { memo as g, forwardRef as l, useMemo as t } from "react";
3
+ import { C as u } from "./CategorySimpleCard-laAY-RUT.js";
4
+ import { W as f } from "./style-tw6KjI2J.js";
5
+ const n = g(u), M = l(
6
6
  ({
7
- items: r,
8
- onSelectCard: o = () => {
7
+ items: a,
8
+ onSelectCard: e = () => {
9
9
  },
10
- isLoading: m = !1,
11
- limit: s = 4,
12
- isHighlight: p = !1
13
- }, d) => {
14
- const g = f(() => {
15
- var i;
16
- return (i = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : i.map((e, l) => /* @__PURE__ */ a(
17
- h,
10
+ isLoading: c = !1,
11
+ limit: h = 4,
12
+ isHighlight: m = !1
13
+ }, s) => {
14
+ const d = t(() => {
15
+ var o;
16
+ return (o = a == null ? void 0 : a.slice(0, 4)) == null ? void 0 : o.map((r, p) => /* @__PURE__ */ i(
17
+ n,
18
18
  {
19
- uuid: e == null ? void 0 : e.uuid,
20
- image: e == null ? void 0 : e.image,
21
- name: e == null ? void 0 : e.name,
22
- onSelectCard: () => o == null ? void 0 : o(e == null ? void 0 : e.uuid)
19
+ uuid: r == null ? void 0 : r.uuid,
20
+ image: r == null ? void 0 : r.image,
21
+ name: r == null ? void 0 : r.name,
22
+ onSelectCard: () => e == null ? void 0 : e(r == null ? void 0 : r.uuid)
23
23
  },
24
- l
24
+ p
25
25
  ));
26
- }, [r]);
27
- return /* @__PURE__ */ a(C, { ref: d, className: p ? "highlight" : "", children: /* @__PURE__ */ a("div", { className: "wrapper__grid", children: /* @__PURE__ */ a(
28
- c,
29
- {
30
- isLoading: m,
31
- limit: s,
32
- keyPrefix: "blog-section",
33
- children: g
34
- }
35
- ) }) });
26
+ }, [a]);
27
+ return /* @__PURE__ */ i(f, { ref: s, className: m ? "highlight" : "", children: /* @__PURE__ */ i("div", { className: "wrapper__grid", children: d }) });
36
28
  }
37
29
  );
38
30
  export {
@@ -2,7 +2,7 @@ import { jsxs as o, jsx as t, Fragment as j } from "react/jsx-runtime";
2
2
  import { forwardRef as V, useRef as ce, useState as le, useEffect as se, Fragment as de } from "react";
3
3
  import { P as n } from "./index-CblbdqjE.js";
4
4
  import { u as me } from "./useDetectMobile-Bkvj0VMa.js";
5
- import { p as he, s as fe } from "./utils-BdsZgOUE.js";
5
+ import { o as he, q as fe } from "./utils-DHfRApMf.js";
6
6
  import _e from "./TextInput.js";
7
7
  import C from "./Icon.js";
8
8
  import ue from "./Link.js";
@@ -11,11 +11,11 @@ import W from "./DropdownMenu.js";
11
11
  import E from "./DropdownItem.js";
12
12
  import { F as ge } from "./tag-BtS5lWJ0.js";
13
13
  import pe from "./BlogProductCardsSection.js";
14
- import { s as R } from "./emotion-styled.browser.esm-BNN1dTl3.js";
15
- import { P as ve } from "./index-CF3HhgvN.js";
14
+ import { s as q } from "./emotion-styled.browser.esm-BNN1dTl3.js";
15
+ import { P as ve } from "./index-BbltNcou.js";
16
16
  import F from "./BlogListSection.js";
17
17
  import { M as xe } from "./consts-BuFChS64.js";
18
- const ye = R.div`
18
+ const ye = q.div`
19
19
  display: flex;
20
20
  justify-content: space-between;
21
21
  align-items: center;
@@ -182,7 +182,7 @@ const ye = R.div`
182
182
  ] })
183
183
  ] });
184
184
  }
185
- ), we = R.div`
185
+ ), we = q.div`
186
186
  display: flex;
187
187
  align-items: flex-start;
188
188
  gap: 2rem;
@@ -484,8 +484,8 @@ const ye = R.div`
484
484
  handleShareBlog: z = () => {
485
485
  },
486
486
  // handleBookmarkBlog = () => {},
487
- showAllButtonLink: U,
488
- showAllButtonText: q = "Show all products",
487
+ showAllButtonLink: R,
488
+ showAllButtonText: U = "Show all products",
489
489
  viewAllButtonText: H = "View all (11)",
490
490
  // viewAllButtonLink,
491
491
  handleViewAll: X = () => {
@@ -641,8 +641,8 @@ const ye = R.div`
641
641
  g && (g == null ? void 0 : g.length) > 0 && /* @__PURE__ */ t(
642
642
  pe,
643
643
  {
644
- buttonText: q,
645
- buttonLink: U,
644
+ buttonText: U,
645
+ buttonLink: R,
646
646
  onButtonAction: Z,
647
647
  onSelectCard: G,
648
648
  items: g,
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),a=require("react"),k=require("./Icon.cjs"),N=require("./IconButton.cjs"),o=require("./utils-Dl9xPH4c.cjs"),q=require("./index-BueKsXT8.cjs"),I=require("./style-Db3VFbfP.cjs"),B=require("./emotion-styled.browser.esm-BtEseadx.cjs"),$=require("./consts-goSZX3xP.cjs"),C=require("./suspense-large-CFmcSzX-.cjs"),L=B.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("react"),L=require("./Icon.cjs"),P=require("./IconButton.cjs"),d=require("./utils-Dl9xPH4c.cjs"),W=require("./index-BueKsXT8.cjs"),N=require("./style-Db3VFbfP.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),t=require("./style-BAcV7F53.cjs"),$=b.styled.div`
2
2
  display: flex;
3
3
  padding: 1rem;
4
4
  align-items: center;
@@ -50,7 +50,7 @@
50
50
  font-weight: 600;
51
51
  line-height: 1.5rem;
52
52
  letter-spacing: 0.1px;
53
- ${o.truncateTextInRows(3)}
53
+ ${d.truncateTextInRows(3)}
54
54
  }
55
55
 
56
56
  & .wrapper__tags {
@@ -93,7 +93,7 @@
93
93
  }
94
94
  }
95
95
 
96
- @media (max-width: ${$.MOBILE_SIZE_PX+"px"}) {
96
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
97
97
  flex-direction: column;
98
98
  padding: 0;
99
99
  background: transparent;
@@ -144,7 +144,7 @@
144
144
  }
145
145
  }
146
146
  }
147
- `,z=a.forwardRef(({blogUuid:c,title:s,imageUrl:l,options:i,publishedAt:g,timeToReadText:f="{0} min read",timeToRead:u=0,numberOfLikes:_=0,numberOfComments:h=0,isBookmarked:d=!1,onSelectCard:w=()=>{},onBookmark:b=()=>{},onShare:e=()=>{},bookmarkComponent:p=r.jsx(r.Fragment,{}),metadata:t},j)=>{const m=()=>o.isDefined(p)?a.cloneElement(p,{key:`bookmark_blog__${c}__${d}`,isBookmarked:d,blogUuid:c,onBookmark:(y,R)=>b(y,R),ref:j,componentName:"ExploreBlogSectionCard"}):r.jsx(r.Fragment,{}),v=a.useRef();return r.jsxs(L,{ref:v,name:t==null?void 0:t.name,"data-accessor":t==null?void 0:t.accessor,onClick:n=>w(n,v),className:"blog-card-item",children:[r.jsx(q.ProductImageWrapper,{src:l,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:s}),r.jsxs("div",{className:"wrapper__tags-action",children:[r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((n,y)=>r.jsx(I.BlogTag,{color:n==null?void 0:n.color,children:n==null?void 0:n.name},`blog-card-sponsored-option__${y+1}`)))}),r.jsxs("div",{className:"info__content mobile-only",children:[r.jsx(m,{}),r.jsx(N,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:n=>{n==null||n.stopPropagation(),e()}})]})]})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsxs("div",{className:"info__content",children:[r.jsx("div",{className:"info__text",children:`${o.formatLocaleDateString(g)} • ${o.formatString(f,u)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(k,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),o.getRoundedNumber(_)]}),r.jsxs("div",{children:[r.jsx(k,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),o.getRoundedNumber(h)]})]})]}),r.jsxs("div",{className:"info__content desktop-only",children:[r.jsx(m,{}),r.jsx(N,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:n=>{n==null||n.stopPropagation(),e()}})]})]})]})]})}),T=B.styled.div`
147
+ `,C=a.forwardRef(({blogUuid:i,title:s,imageUrl:c,options:o,publishedAt:h,timeToReadText:u="{0} min read",timeToRead:j=0,numberOfLikes:w=0,numberOfComments:f=0,isBookmarked:m=!1,onSelectCard:_=()=>{},onBookmark:k=()=>{},onShare:r=()=>{},bookmarkComponent:p=e.jsx(e.Fragment,{}),metadata:l},y)=>{const g=()=>d.isDefined(p)?a.cloneElement(p,{key:`bookmark_blog__${i}__${m}`,isBookmarked:m,blogUuid:i,onBookmark:(S,R)=>k(S,R),ref:y,componentName:"ExploreBlogSectionCard"}):e.jsx(e.Fragment,{}),x=a.useRef();return e.jsxs($,{ref:x,name:l==null?void 0:l.name,"data-accessor":l==null?void 0:l.accessor,onClick:n=>_(n,x),className:"blog-card-item",children:[e.jsx(W.ProductImageWrapper,{src:c,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__content",children:[e.jsxs("div",{className:"wrapper__subcontent",children:[e.jsx("div",{className:"wrapper__title",children:s}),e.jsxs("div",{className:"wrapper__tags-action",children:[e.jsx("div",{className:"wrapper__tags",children:o&&(o==null?void 0:o.map((n,S)=>e.jsx(N.BlogTag,{color:n==null?void 0:n.color,children:n==null?void 0:n.name},`blog-card-sponsored-option__${S+1}`)))}),e.jsxs("div",{className:"info__content mobile-only",children:[e.jsx(g,{}),e.jsx(P,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:n=>{n==null||n.stopPropagation(),r()}})]})]})]}),e.jsxs("div",{className:"wrapper__info",children:[e.jsxs("div",{className:"info__content",children:[e.jsx("div",{className:"info__text",children:`${d.formatLocaleDateString(h)} • ${d.formatString(u,j)}`}),e.jsxs("div",{className:"info__text",children:[e.jsxs("div",{children:[e.jsx(L,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),d.getRoundedNumber(w)]}),e.jsxs("div",{children:[e.jsx(L,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),d.getRoundedNumber(f)]})]})]}),e.jsxs("div",{className:"info__content desktop-only",children:[e.jsx(g,{}),e.jsx(P,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:n=>{n==null||n.stopPropagation(),r()}})]})]})]})]})}),q=b.styled.div`
148
148
  display: flex;
149
149
  flex-direction: column;
150
150
  align-items: flex-start;
@@ -168,4 +168,10 @@
168
168
  bottom: -1.25rem;
169
169
  }
170
170
  }
171
- `,O=a.memo(z),P=a.forwardRef(({timeToReadText:c="{0} min read",items:s,onSelectCard:l=()=>{},onShare:i=()=>{},onBookmark:g=()=>{},isLoading:f=!1,getImage:u=()=>{},isSeparated:_=!0,bookmarkComponent:h=r.jsx(r.Fragment,{}),componentName:d},w)=>{const b=a.useMemo(()=>s==null?void 0:s.map((e,p)=>{var t;return r.jsx(O,{blogUuid:e==null?void 0:e.uuid,title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:c,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,isBookmarked:e==null?void 0:e.isBookmarked,onSelectCard:(j,m)=>l==null?void 0:l(e,m),onShare:()=>i==null?void 0:i(e),onBookmark:g,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,bookmarkComponent:h,metadata:{name:d,accessor:e==null?void 0:e.accessor}},`blog-card-item__${p+1}__${(t=e==null?void 0:e.isBookmarked)==null?void 0:t.toString()}`)}),[s]);return r.jsx(T,{ref:w,className:_?"separated":"",children:r.jsx(C.SuspenseBlogLarge,{isLoading:f,limit:5,keyPrefix:"blog-section",children:b})})});module.exports=P;
171
+ `,B=b.styled(t.SkeletonColumnWrapper)`
172
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
173
+ & > div {
174
+ flex-direction: column;
175
+ }
176
+ }
177
+ `,I=({keyPrefix:i})=>e.jsxs(B,{children:[e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-1`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-2`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-3`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-4`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-5`)]}),G=({keyPrefix:i,isLoading:s=!1,fallbackComponent:c=e.jsx(e.Fragment,{}),children:o})=>e.jsx(a.Suspense,{fallbackComponent:c,children:s===!0?e.jsx(I,{keyPrefix:i}):o}),z=a.memo(C),E=a.forwardRef(({timeToReadText:i="{0} min read",items:s,isLoading:c=!1,onSelectCard:o=()=>{},onShare:h=()=>{},onBookmark:u=()=>{},getImage:j=()=>{},isSeparated:w=!0,bookmarkComponent:f=e.jsx(e.Fragment,{}),componentName:m},_)=>{const k=a.useMemo(()=>s==null?void 0:s.map((r,p)=>{var l;return e.jsx(z,{blogUuid:r==null?void 0:r.uuid,title:r==null?void 0:r.title,titleSlug:r==null?void 0:r.titleSlug,options:r==null?void 0:r.options,publishedAt:r==null?void 0:r.publishedAt,timeToReadText:i,timeToRead:r==null?void 0:r.timeToRead,numberOfLikes:r==null?void 0:r.numberOfLikes,numberOfComments:r==null?void 0:r.numberOfComments,isSponsored:r==null?void 0:r.isSponsored,isBookmarked:r==null?void 0:r.isBookmarked,onSelectCard:(y,g)=>o==null?void 0:o(r,g),onShare:()=>h==null?void 0:h(r),onBookmark:u,imageUrl:j(r==null?void 0:r.imageUrl,r==null?void 0:r.uuid)||null,bookmarkComponent:f,metadata:{name:m,accessor:r==null?void 0:r.accessor}},`blog-card-item__${p+1}__${(l=r==null?void 0:r.isBookmarked)==null?void 0:l.toString()}`)}),[s]);return e.jsx(G,{isLoading:c,keyPrefix:"blog-list-skeleton",children:e.jsx(q,{ref:_,className:w?"separated":"",children:k})})});module.exports=E;