@lanaco/lnc-react-ui 4.0.170 → 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-BU6DPCvJ.js +0 -652
  171. package/dist/suspense-product-card-detailed-BbvQuPOP.cjs +0 -329
  172. package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
  173. package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
@@ -1 +1,16 @@
1
- "use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./index-BGTtoLxz.cjs"),a=require("./skeleton-BdbB-LdT.cjs"),c=({limit:t=1,isLoading:l=!1,keyPrefix:n})=>r.jsx(r.Fragment,{children:Array.from({length:t},(e,s)=>r.jsx(a.BlogCardLargeSkeleton,{isLoading:l},`${n}-skeleton-product-card-${s}`))}),x=({children:t,fallbackComponent:l=r.jsx(r.Fragment,{}),isLoading:n=!1,limit:e,keyPrefix:s})=>r.jsx(o.Suspense,{fallbackComponent:l,children:n===!0?r.jsx(c,{isLoading:n,limit:e,keyPrefix:s}):t}),d=o.forwardRef((t,l)=>{const{isLoading:n,item:e,onSelectCard:s=()=>{},getImage:u=()=>{}}=t;return r.jsx(x,{isLoading:n,limit:1,keyPrefix:"explore-landing",children:r.jsx(g.BlogCardLarge,{ref:l,title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>s(e==null?void 0:e.titleSlug)})})});module.exports=d;
1
+ "use strict";const r=require("react/jsx-runtime"),s=require("react"),u=require("./index-D69SKc-n.cjs"),l=require("./style-BAcV7F53.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),c=require("./consts-goSZX3xP.cjs"),d=g.styled(l.SkeletonColumnWrapper)`
2
+ @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
3
+ & > div {
4
+ height: 13.25rem;
5
+
6
+ background: linear-gradient(
7
+ to right,
8
+ transparent 0%,
9
+ #f4f6fb 40%,
10
+ #f4f6fb 100%
11
+ );
12
+
13
+ box-shadow: none;
14
+ }
15
+ }
16
+ `,x=({keyPrefix:n})=>r.jsx(d,{children:r.jsx(l.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${n}-1`)}),S=({keyPrefix:n,isLoading:t=!1,fallbackComponent:o=r.jsx(r.Fragment,{}),children:e})=>r.jsx(s.Suspense,{fallbackComponent:o,children:t===!0?r.jsx(x,{keyPrefix:n}):e}),h=s.forwardRef((n,t)=>{const{isLoading:o,item:e,onSelectCard:i=()=>{},getImage:a=()=>{}}=n;return r.jsx(S,{isLoading:o,keyPrefix:"blogs-single-skeleton",children:r.jsx(u.BlogCardLarge,{ref:t,title:e==null?void 0:e.title,imageUrl:a(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>i(e==null?void 0:e.titleSlug)})})});module.exports=h;
@@ -1,56 +1,58 @@
1
- import { jsx as e, Fragment as a } from "react/jsx-runtime";
2
- import { Suspense as s, forwardRef as u } from "react";
3
- import { B as d } from "./index-1Dm1i6WK.js";
4
- import { B as c } from "./skeleton-CQPwIEP0.js";
5
- const f = ({ limit: o = 1, isLoading: t = !1, keyPrefix: l }) => /* @__PURE__ */ e(a, { children: Array.from({ length: o }, (r, n) => /* @__PURE__ */ e(
6
- c,
7
- {
8
- isLoading: t
9
- },
10
- `${l}-skeleton-product-card-${n}`
11
- )) }), i = ({
12
- children: o,
13
- fallbackComponent: t = /* @__PURE__ */ e(a, {}),
14
- isLoading: l = !1,
15
- limit: r,
16
- keyPrefix: n
17
- }) => /* @__PURE__ */ e(s, { fallbackComponent: t, children: l === !0 ? /* @__PURE__ */ e(
1
+ import { jsx as r, Fragment as s } from "react/jsx-runtime";
2
+ import { Suspense as i, forwardRef as g } from "react";
3
+ import { B as d } from "./index-DFdPWO4O.js";
4
+ import { S as u, b as f } from "./style-CXMUA6cI.js";
5
+ import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
+ import { M as p } from "./consts-BuFChS64.js";
7
+ const S = c(u)`
8
+ @media (max-width: ${p + "px"}) {
9
+ & > div {
10
+ height: 13.25rem;
11
+
12
+ background: linear-gradient(
13
+ to right,
14
+ transparent 0%,
15
+ #f4f6fb 40%,
16
+ #f4f6fb 100%
17
+ );
18
+
19
+ box-shadow: none;
20
+ }
21
+ }
22
+ `, h = ({ keyPrefix: o }) => /* @__PURE__ */ r(S, { children: /* @__PURE__ */ r(
18
23
  f,
19
24
  {
20
- isLoading: l,
21
- limit: r,
22
- keyPrefix: n
23
- }
24
- ) : o }), k = u((o, t) => {
25
+ height: "11.25rem",
26
+ borderRadius: "0.75rem"
27
+ },
28
+ `${o}-1`
29
+ ) }), b = ({
30
+ keyPrefix: o,
31
+ isLoading: t = !1,
32
+ fallbackComponent: n = /* @__PURE__ */ r(s, {}),
33
+ children: e
34
+ }) => /* @__PURE__ */ r(i, { fallbackComponent: n, children: t === !0 ? /* @__PURE__ */ r(h, { keyPrefix: o }) : e }), w = g((o, t) => {
25
35
  const {
26
- isLoading: l,
27
- item: r,
28
- onSelectCard: n = () => {
36
+ isLoading: n,
37
+ item: e,
38
+ onSelectCard: l = () => {
29
39
  },
30
- getImage: g = () => {
40
+ getImage: a = () => {
31
41
  }
32
42
  } = o;
33
- return /* @__PURE__ */ e(
34
- i,
43
+ return /* @__PURE__ */ r(b, { isLoading: n, keyPrefix: "blogs-single-skeleton", children: /* @__PURE__ */ r(
44
+ d,
35
45
  {
36
- isLoading: l,
37
- limit: 1,
38
- keyPrefix: "explore-landing",
39
- children: /* @__PURE__ */ e(
40
- d,
41
- {
42
- ref: t,
43
- title: r == null ? void 0 : r.title,
44
- imageUrl: g(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
45
- text: r == null ? void 0 : r.description,
46
- titleSlug: r == null ? void 0 : r.titleSlug,
47
- buttonText: r == null ? void 0 : r.buttonText,
48
- onCardClick: () => n(r == null ? void 0 : r.titleSlug)
49
- }
50
- )
46
+ ref: t,
47
+ title: e == null ? void 0 : e.title,
48
+ imageUrl: a(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
49
+ text: e == null ? void 0 : e.description,
50
+ titleSlug: e == null ? void 0 : e.titleSlug,
51
+ buttonText: e == null ? void 0 : e.buttonText,
52
+ onCardClick: () => l(e == null ? void 0 : e.titleSlug)
51
53
  }
52
- );
54
+ ) });
53
55
  });
54
56
  export {
55
- k as default
57
+ w as default
56
58
  };
@@ -1,12 +1,12 @@
1
- "use strict";const t=require("react/jsx-runtime"),d=require("react"),k=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),A=require("./useDetectMobile-zkbzoOGV.cjs"),i=require("./utils-Dl9xPH4c.cjs"),R=require("./style-Db3VFbfP.cjs"),$=require("./Button.cjs"),B=require("./index-BueKsXT8.cjs"),D=k.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),u=require("react"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./consts-goSZX3xP.cjs"),T=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./utils-Dl9xPH4c.cjs"),C=require("./style-Db3VFbfP.cjs"),O=require("./Button.cjs"),q=require("./index-BueKsXT8.cjs"),L=require("./index-D-3I_Ppj.cjs"),B=N.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${o=>`repeat(${o.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,C=k.styled.div`
9
+ `,D=N.styled.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  width: 100%;
@@ -37,24 +37,17 @@
37
37
  width: 100%;
38
38
  }
39
39
 
40
- & .skeleton-img {
41
- width: 100%;
42
- max-height: 12.5rem;
43
- min-height: 12.5rem;
44
- background-color: ${i.linearGradientAnimation("-90deg")};
45
- }
46
-
47
40
  & .tags-wr {
48
41
  display: flex;
49
42
  flex-wrap: wrap;
50
43
  gap: 0.5rem;
51
44
  }
52
45
 
53
- @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
46
+ @media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
54
47
  max-height: 100%;
55
48
  min-height: 100%;
56
49
  }
57
- `,T=k.styled.div`
50
+ `,A=N.styled.div`
58
51
  display: flex;
59
52
  flex-direction: column;
60
53
  gap: 0;
@@ -65,24 +58,12 @@
65
58
  font-size: 1rem;
66
59
  }
67
60
 
68
- & .info-wr-skeleton {
69
- background-color: ${i.linearGradientAnimation("-90deg")};
70
- height: 1rem;
71
- width: 100%;
72
- }
73
-
74
- & .skeleton-title {
75
- background-color: ${i.linearGradientAnimation("-90deg")};
76
- height: 1.5rem;
77
- width: 70%;
78
- }
79
-
80
61
  & .text-wr {
81
62
  font-weight: 400;
82
63
  font-size: 0.875rem;
83
64
  flex: 1;
84
65
  color: var(--gray-700, #4e555f);
85
- ${i.truncateTextInRows(2)}
66
+ ${a.truncateTextInRows(2)}
86
67
  }
87
68
 
88
69
  & .info-wr {
@@ -111,4 +92,4 @@
111
92
  align-items: center;
112
93
  gap: 1rem;
113
94
  }
114
- `,q=d.forwardRef((s,m)=>{const{title:n,imageUrl:g,text:c,numberOfLikes:a,numberOfComments:j,timeToRead:f,publishedAt:u,tags:o,onCardClick:w,timeToReadText:h="{0} min read",metadata:l}=s,b=d.useRef();return t.jsxs(C,{ref:b,className:"blog-card","data-accessor":l==null?void 0:l.accessor,name:l==null?void 0:l.name,onClick:r=>w(r,b),children:[t.jsx(B.ProductImageWrapper,{src:g}),t.jsxs("div",{className:"blog-card-content",children:[t.jsxs(T,{children:[t.jsxs("div",{className:"info-wr",children:[t.jsxs("div",{className:"info-wr-1",children:[t.jsxs("span",{children:[i.formatLocaleDateString(u)," "]}),t.jsx("span",{className:"small-dot",children:"●"}),f&&h?`${i.formatString(h,f)}`:"N/A"]}),t.jsxs("div",{className:"info-wr-2",children:[t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),t.jsx("span",{children:i.getRoundedNumber(a)})]}),t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-messages-filled"}),t.jsx("span",{children:i.getRoundedNumber(j)})]})]})]}),t.jsx("div",{className:"text-wr-title",children:n}),t.jsx("div",{className:"text-wr",children:c})]}),o&&t.jsx("div",{className:"tags-wr",children:o==null?void 0:o.map((r,N)=>t.jsx(R.BlogTag,{color:r==null?void 0:r.color,children:r==null?void 0:r.name},N))})]})]})}),L=d.forwardRef(({},s)=>t.jsxs(C,{className:"blog-card",children:[t.jsx("div",{className:"skeleton-img"}),t.jsxs(T,{children:[t.jsx("div",{className:"info-wr"}),t.jsx("div",{className:"skeleton-title"}),t.jsx("div",{className:"info-wr-skeleton"})]})]})),E=({limit:s=3,isLoading:m=!1,keyPrefix:n})=>t.jsx(t.Fragment,{children:Array.from({length:s},(g,c)=>t.jsx(L,{isLoading:m},`${n}-skeleton-product-card-${c}`))}),I=({children:s,fallbackComponent:m=t.jsx(t.Fragment,{}),isLoading:n=!1,limit:g,keyPrefix:c})=>t.jsx(d.Suspense,{fallbackComponent:m,children:n===!0?t.jsx(E,{isLoading:n,limit:g,keyPrefix:c}):s}),v=d.memo(q),M=d.forwardRef((s,m)=>{const{icon:n,title:g,onButtonAction:c,items:a,buttonText:j,timeToReadText:f,limit:u=3,onSelectCard:o=()=>{},isLoading:w=!1,buttonLink:h,getImage:l=()=>{},componentName:b}=s,r=A.useDetectMobile(),N=d.useMemo(()=>t.jsx(t.Fragment,{children:r===!0?a==null?void 0:a.map((e,p)=>t.jsx(v,{title:e==null?void 0:e.title,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:f,tags:e==null?void 0:e.tags,onCardClick:(O,y)=>o(e==null?void 0:e.titleSlug,y),imageUrl:l(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,metadata:{name:b,accessor:e==null?void 0:e.accessor}},p)):a==null?void 0:a.slice(0,u).map((e,p)=>t.jsx(v,{title:e==null?void 0:e.title,imageUrl:l(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,tags:e==null?void 0:e.tags,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:f,onCardClick:(O,y)=>o(e==null?void 0:e.titleSlug,y),metadata:{name:b,accessor:e==null?void 0:e.accessor}},p))}),[a,r,u,o]);return t.jsxs(R.RegulatTitleSectionWrapper,{ref:m,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[i.isDefinedNotEmptyString(n)&&t.jsx("i",{className:n}),t.jsx("span",{children:g})]}),i.isDefinedNotEmptyString(j)&&i.isDefinedNotEmptyString(h)&&t.jsx($,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var p;(p=e==null?void 0:e.target)==null||p.blur(),c(h)},borderRadius:"curved",className:"button-link",children:j})]}),t.jsx(D,{limit:u,children:t.jsx(I,{isLoading:w,limit:u,keyPrefix:"explore-landing",children:N})})]})});module.exports=M;
95
+ `,E=u.forwardRef((o,v)=>{const{title:p,imageUrl:b,text:j,numberOfLikes:i,numberOfComments:f,timeToRead:c,publishedAt:d,tags:n,onCardClick:h,timeToReadText:m="{0} min read",metadata:s}=o,g=u.useRef();return t.jsxs(D,{ref:g,className:"blog-card","data-accessor":s==null?void 0:s.accessor,name:s==null?void 0:s.name,onClick:r=>h(r,g),children:[t.jsx(q.ProductImageWrapper,{src:b}),t.jsxs("div",{className:"blog-card-content",children:[t.jsxs(A,{children:[t.jsxs("div",{className:"info-wr",children:[t.jsxs("div",{className:"info-wr-1",children:[t.jsxs("span",{children:[a.formatLocaleDateString(d)," "]}),t.jsx("span",{className:"small-dot",children:"●"}),c&&m?`${a.formatString(m,c)}`:"N/A"]}),t.jsxs("div",{className:"info-wr-2",children:[t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),t.jsx("span",{children:a.getRoundedNumber(i)})]}),t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-messages-filled"}),t.jsx("span",{children:a.getRoundedNumber(f)})]})]})]}),t.jsx("div",{className:"text-wr-title",children:p}),t.jsx("div",{className:"text-wr",children:j})]}),n&&t.jsx("div",{className:"tags-wr",children:n==null?void 0:n.map((r,w)=>t.jsx(C.BlogTag,{color:r==null?void 0:r.color,children:r==null?void 0:r.name},w))})]})]})}),S=u.memo(E),I=u.forwardRef((o,v)=>{const{icon:p,title:b,onButtonAction:j,items:i,buttonText:f,timeToReadText:c,limit:d=3,onSelectCard:n=()=>{},isLoading:h=!1,buttonLink:m,getImage:s=()=>{},componentName:g}=o,r=T.useDetectMobile(),w=u.useMemo(()=>t.jsx(t.Fragment,{children:r===!0?i==null?void 0:i.map((e,l)=>t.jsx(S,{title:e==null?void 0:e.title,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:c,tags:e==null?void 0:e.tags,onCardClick:(k,y)=>n(e==null?void 0:e.titleSlug,y),imageUrl:s(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,metadata:{name:g,accessor:e==null?void 0:e.accessor}},l)):i==null?void 0:i.slice(0,d).map((e,l)=>t.jsx(S,{title:e==null?void 0:e.title,imageUrl:s(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,tags:e==null?void 0:e.tags,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:c,onCardClick:(k,y)=>n(e==null?void 0:e.titleSlug,y),metadata:{name:g,accessor:e==null?void 0:e.accessor}},l))}),[i,r,d,n]);return t.jsxs(C.RegulatTitleSectionWrapper,{ref:v,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(p)&&t.jsx("i",{className:p}),t.jsx("span",{children:b})]}),a.isDefinedNotEmptyString(f)&&a.isDefinedNotEmptyString(m)&&!h&&t.jsx(O,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var l;(l=e==null?void 0:e.target)==null||l.blur(),j(m)},borderRadius:"curved",className:"button-link",children:f})]}),t.jsx(L.SuspenseBlogsSectionDetailed,{isLoading:h,keyPrefix:"blogs-detailed-skeleton",children:t.jsx(B,{limit:d,children:w})})]})});module.exports=I;
@@ -1,21 +1,22 @@
1
- import { jsxs as t, jsx as r, Fragment as C } from "react/jsx-runtime";
2
- import { forwardRef as S, useRef as D, Suspense as z, memo as M, useMemo as P } from "react";
3
- import { s as R } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as $ } from "./consts-BuFChS64.js";
5
- import { u as j } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { o as y, p as I, v as U, s as W, w as T, k as N } from "./utils-BdsZgOUE.js";
7
- import { B as E, R as _ } from "./style-DKAOBWn3.js";
8
- import G from "./Button.js";
9
- import { P as F } from "./index-CF3HhgvN.js";
10
- const X = R.div`
1
+ import { jsxs as r, jsx as t, Fragment as B } from "react/jsx-runtime";
2
+ import { forwardRef as R, useRef as L, memo as A, useMemo as z } from "react";
3
+ import { s as N } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as T } from "./consts-BuFChS64.js";
5
+ import { u as D } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { o as M, s as $, q as j, v as C, k as y } from "./utils-DHfRApMf.js";
7
+ import { B as I, R as P } from "./style-D3pIrH3v.js";
8
+ import U from "./Button.js";
9
+ import { P as W } from "./index-BbltNcou.js";
10
+ import { S as E } from "./index-BovNbKxB.js";
11
+ const _ = N.div`
11
12
  display: grid;
12
- grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
13
+ grid-template-columns: ${(s) => `repeat(${s.limit}, minmax(0, 1fr))`};
13
14
  gap: 1.25rem;
14
15
 
15
- @media (max-width: ${$ + "px"}) {
16
+ @media (max-width: ${T + "px"}) {
16
17
  grid-template-columns: repeat(1, 1fr);
17
18
  }
18
- `, B = R.div`
19
+ `, q = N.div`
19
20
  display: flex;
20
21
  flex-direction: column;
21
22
  width: 100%;
@@ -46,24 +47,17 @@ const X = R.div`
46
47
  width: 100%;
47
48
  }
48
49
 
49
- & .skeleton-img {
50
- width: 100%;
51
- max-height: 12.5rem;
52
- min-height: 12.5rem;
53
- background-color: ${y("-90deg")};
54
- }
55
-
56
50
  & .tags-wr {
57
51
  display: flex;
58
52
  flex-wrap: wrap;
59
53
  gap: 0.5rem;
60
54
  }
61
55
 
62
- @media (max-width: ${$ + "px"}) {
56
+ @media (max-width: ${T + "px"}) {
63
57
  max-height: 100%;
64
58
  min-height: 100%;
65
59
  }
66
- `, A = R.div`
60
+ `, F = N.div`
67
61
  display: flex;
68
62
  flex-direction: column;
69
63
  gap: 0;
@@ -74,24 +68,12 @@ const X = R.div`
74
68
  font-size: 1rem;
75
69
  }
76
70
 
77
- & .info-wr-skeleton {
78
- background-color: ${y("-90deg")};
79
- height: 1rem;
80
- width: 100%;
81
- }
82
-
83
- & .skeleton-title {
84
- background-color: ${y("-90deg")};
85
- height: 1.5rem;
86
- width: 70%;
87
- }
88
-
89
71
  & .text-wr {
90
72
  font-weight: 400;
91
73
  font-size: 0.875rem;
92
74
  flex: 1;
93
75
  color: var(--gray-700, #4e555f);
94
- ${I(2)}
76
+ ${M(2)}
95
77
  }
96
78
 
97
79
  & .info-wr {
@@ -120,107 +102,78 @@ const X = R.div`
120
102
  align-items: center;
121
103
  gap: 1rem;
122
104
  }
123
- `, Z = S((a, c) => {
105
+ `, G = R((s, k) => {
124
106
  const {
125
- title: n,
126
- imageUrl: d,
127
- text: m,
128
- numberOfLikes: l,
129
- numberOfComments: b,
130
- timeToRead: f,
131
- publishedAt: g,
132
- tags: s,
133
- onCardClick: w,
134
- timeToReadText: u = "{0} min read",
135
- metadata: o
136
- } = a, h = D();
137
- return (
138
- // <BlogCardDetailedSkeleton />
139
- /* @__PURE__ */ t(
140
- B,
141
- {
142
- ref: h,
143
- className: "blog-card",
144
- "data-accessor": o == null ? void 0 : o.accessor,
145
- name: o == null ? void 0 : o.name,
146
- onClick: (i) => w(i, h),
147
- children: [
148
- /* @__PURE__ */ r(F, { src: d }),
149
- /* @__PURE__ */ t("div", { className: "blog-card-content", children: [
150
- /* @__PURE__ */ t(A, { children: [
151
- /* @__PURE__ */ t("div", { className: "info-wr", children: [
152
- /* @__PURE__ */ t("div", { className: "info-wr-1", children: [
153
- /* @__PURE__ */ t("span", { children: [
154
- W(g),
155
- " "
156
- ] }),
157
- /* @__PURE__ */ r("span", { className: "small-dot", children: "●" }),
158
- f && u ? `${U(u, f)}` : "N/A"
107
+ title: g,
108
+ imageUrl: h,
109
+ text: b,
110
+ numberOfLikes: a,
111
+ numberOfComments: f,
112
+ timeToRead: m,
113
+ publishedAt: c,
114
+ tags: n,
115
+ onCardClick: u,
116
+ timeToReadText: d = "{0} min read",
117
+ metadata: l
118
+ } = s, p = L();
119
+ return /* @__PURE__ */ r(
120
+ q,
121
+ {
122
+ ref: p,
123
+ className: "blog-card",
124
+ "data-accessor": l == null ? void 0 : l.accessor,
125
+ name: l == null ? void 0 : l.name,
126
+ onClick: (i) => u(i, p),
127
+ children: [
128
+ /* @__PURE__ */ t(W, { src: h }),
129
+ /* @__PURE__ */ r("div", { className: "blog-card-content", children: [
130
+ /* @__PURE__ */ r(F, { children: [
131
+ /* @__PURE__ */ r("div", { className: "info-wr", children: [
132
+ /* @__PURE__ */ r("div", { className: "info-wr-1", children: [
133
+ /* @__PURE__ */ r("span", { children: [
134
+ j(c),
135
+ " "
159
136
  ] }),
160
- /* @__PURE__ */ t("div", { className: "info-wr-2", children: [
161
- /* @__PURE__ */ t("span", { className: "info-wr-1", children: [
162
- /* @__PURE__ */ r("i", { className: "mng mng-lnc-thumbs-up--filled" }),
163
- /* @__PURE__ */ r("span", { children: T(l) })
164
- ] }),
165
- /* @__PURE__ */ t("span", { className: "info-wr-1", children: [
166
- /* @__PURE__ */ r("i", { className: "mng mng-lnc-messages-filled" }),
167
- /* @__PURE__ */ r("span", { children: T(b) })
168
- ] })
169
- ] })
137
+ /* @__PURE__ */ t("span", { className: "small-dot", children: "●" }),
138
+ m && d ? `${$(d, m)}` : "N/A"
170
139
  ] }),
171
- /* @__PURE__ */ r("div", { className: "text-wr-title", children: n }),
172
- /* @__PURE__ */ r("div", { className: "text-wr", children: m })
140
+ /* @__PURE__ */ r("div", { className: "info-wr-2", children: [
141
+ /* @__PURE__ */ r("span", { className: "info-wr-1", children: [
142
+ /* @__PURE__ */ t("i", { className: "mng mng-lnc-thumbs-up--filled" }),
143
+ /* @__PURE__ */ t("span", { children: C(a) })
144
+ ] }),
145
+ /* @__PURE__ */ r("span", { className: "info-wr-1", children: [
146
+ /* @__PURE__ */ t("i", { className: "mng mng-lnc-messages-filled" }),
147
+ /* @__PURE__ */ t("span", { children: C(f) })
148
+ ] })
149
+ ] })
173
150
  ] }),
174
- s && /* @__PURE__ */ r("div", { className: "tags-wr", children: s == null ? void 0 : s.map((i, k) => /* @__PURE__ */ r(E, { color: i == null ? void 0 : i.color, children: i == null ? void 0 : i.name }, k)) })
175
- ] })
176
- ]
177
- }
178
- )
151
+ /* @__PURE__ */ t("div", { className: "text-wr-title", children: g }),
152
+ /* @__PURE__ */ t("div", { className: "text-wr", children: b })
153
+ ] }),
154
+ n && /* @__PURE__ */ t("div", { className: "tags-wr", children: n == null ? void 0 : n.map((i, w) => /* @__PURE__ */ t(I, { color: i == null ? void 0 : i.color, children: i == null ? void 0 : i.name }, w)) })
155
+ ] })
156
+ ]
157
+ }
179
158
  );
180
- }), q = S(({}, a) => /* @__PURE__ */ t(B, { className: "blog-card", children: [
181
- /* @__PURE__ */ r("div", { className: "skeleton-img" }),
182
- /* @__PURE__ */ t(A, { children: [
183
- /* @__PURE__ */ r("div", { className: "info-wr" }),
184
- /* @__PURE__ */ r("div", { className: "skeleton-title" }),
185
- /* @__PURE__ */ r("div", { className: "info-wr-skeleton" })
186
- ] })
187
- ] })), H = ({ limit: a = 3, isLoading: c = !1, keyPrefix: n }) => /* @__PURE__ */ r(C, { children: Array.from({ length: a }, (d, m) => /* @__PURE__ */ r(
188
- q,
189
- {
190
- isLoading: c
191
- },
192
- `${n}-skeleton-product-card-${m}`
193
- )) }), J = ({
194
- children: a,
195
- fallbackComponent: c = /* @__PURE__ */ r(C, {}),
196
- isLoading: n = !1,
197
- limit: d,
198
- keyPrefix: m
199
- }) => /* @__PURE__ */ r(z, { fallbackComponent: c, children: n === !0 ? /* @__PURE__ */ r(
200
- H,
201
- {
202
- isLoading: n,
203
- limit: d,
204
- keyPrefix: m
205
- }
206
- ) : a }), O = M(Z), ae = S((a, c) => {
159
+ }), S = A(G), te = R((s, k) => {
207
160
  const {
208
- icon: n,
209
- title: d,
210
- onButtonAction: m,
211
- items: l,
212
- buttonText: b,
213
- timeToReadText: f,
214
- limit: g = 3,
215
- onSelectCard: s = () => {
161
+ icon: g,
162
+ title: h,
163
+ onButtonAction: b,
164
+ items: a,
165
+ buttonText: f,
166
+ timeToReadText: m,
167
+ limit: c = 3,
168
+ onSelectCard: n = () => {
216
169
  },
217
- isLoading: w = !1,
218
- buttonLink: u,
219
- getImage: o = () => {
170
+ isLoading: u = !1,
171
+ buttonLink: d,
172
+ getImage: l = () => {
220
173
  },
221
- componentName: h
222
- } = a, i = j(), k = P(() => /* @__PURE__ */ r(C, { children: i === !0 ? l == null ? void 0 : l.map((e, p) => /* @__PURE__ */ r(
223
- O,
174
+ componentName: p
175
+ } = s, i = D(), w = z(() => /* @__PURE__ */ t(B, { children: i === !0 ? a == null ? void 0 : a.map((e, o) => /* @__PURE__ */ t(
176
+ S,
224
177
  {
225
178
  title: e == null ? void 0 : e.title,
226
179
  text: e == null ? void 0 : e.description,
@@ -229,18 +182,18 @@ const X = R.div`
229
182
  numberOfComments: e == null ? void 0 : e.numberOfComments,
230
183
  publishedAt: e == null ? void 0 : e.publishedAt,
231
184
  timeToRead: e == null ? void 0 : e.timeToRead,
232
- timeToReadText: f,
185
+ timeToReadText: m,
233
186
  tags: e == null ? void 0 : e.tags,
234
- onCardClick: (L, v) => s(e == null ? void 0 : e.titleSlug, v),
235
- imageUrl: o(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
236
- metadata: { name: h, accessor: e == null ? void 0 : e.accessor }
187
+ onCardClick: (O, v) => n(e == null ? void 0 : e.titleSlug, v),
188
+ imageUrl: l(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
189
+ metadata: { name: p, accessor: e == null ? void 0 : e.accessor }
237
190
  },
238
- p
239
- )) : l == null ? void 0 : l.slice(0, g).map((e, p) => /* @__PURE__ */ r(
240
- O,
191
+ o
192
+ )) : a == null ? void 0 : a.slice(0, c).map((e, o) => /* @__PURE__ */ t(
193
+ S,
241
194
  {
242
195
  title: e == null ? void 0 : e.title,
243
- imageUrl: o(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
196
+ imageUrl: l(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
244
197
  text: e == null ? void 0 : e.description,
245
198
  titleSlug: e == null ? void 0 : e.titleSlug,
246
199
  tags: e == null ? void 0 : e.tags,
@@ -248,45 +201,44 @@ const X = R.div`
248
201
  numberOfComments: e == null ? void 0 : e.numberOfComments,
249
202
  publishedAt: e == null ? void 0 : e.publishedAt,
250
203
  timeToRead: e == null ? void 0 : e.timeToRead,
251
- timeToReadText: f,
252
- onCardClick: (L, v) => s(e == null ? void 0 : e.titleSlug, v),
253
- metadata: { name: h, accessor: e == null ? void 0 : e.accessor }
204
+ timeToReadText: m,
205
+ onCardClick: (O, v) => n(e == null ? void 0 : e.titleSlug, v),
206
+ metadata: { name: p, accessor: e == null ? void 0 : e.accessor }
254
207
  },
255
- p
256
- )) }), [l, i, g, s]);
257
- return /* @__PURE__ */ t(_, { ref: c, children: [
258
- /* @__PURE__ */ t("div", { className: "regular-title", children: [
259
- /* @__PURE__ */ t("div", { className: "regular-title-text", children: [
260
- N(n) && /* @__PURE__ */ r("i", { className: n }),
261
- /* @__PURE__ */ r("span", { children: d })
208
+ o
209
+ )) }), [a, i, c, n]);
210
+ return /* @__PURE__ */ r(P, { ref: k, children: [
211
+ /* @__PURE__ */ r("div", { className: "regular-title", children: [
212
+ /* @__PURE__ */ r("div", { className: "regular-title-text", children: [
213
+ y(g) && /* @__PURE__ */ t("i", { className: g }),
214
+ /* @__PURE__ */ t("span", { children: h })
262
215
  ] }),
263
- N(b) && N(u) && /* @__PURE__ */ r(
264
- G,
216
+ y(f) && y(d) && !u && /* @__PURE__ */ t(
217
+ U,
265
218
  {
266
219
  type: "button",
267
220
  btnType: "tinted",
268
221
  color: "neutral",
269
222
  onClick: (e) => {
270
- var p;
271
- (p = e == null ? void 0 : e.target) == null || p.blur(), m(u);
223
+ var o;
224
+ (o = e == null ? void 0 : e.target) == null || o.blur(), b(d);
272
225
  },
273
226
  borderRadius: "curved",
274
227
  className: "button-link",
275
- children: b
228
+ children: f
276
229
  }
277
230
  )
278
231
  ] }),
279
- /* @__PURE__ */ r(X, { limit: g, children: /* @__PURE__ */ r(
280
- J,
232
+ /* @__PURE__ */ t(
233
+ E,
281
234
  {
282
- isLoading: w,
283
- limit: g,
284
- keyPrefix: "explore-landing",
285
- children: k
235
+ isLoading: u,
236
+ keyPrefix: "blogs-detailed-skeleton",
237
+ children: /* @__PURE__ */ t(_, { limit: c, children: w })
286
238
  }
287
- ) })
239
+ )
288
240
  ] });
289
241
  });
290
242
  export {
291
- ae as default
243
+ te as default
292
244
  };
@@ -1,9 +1,24 @@
1
- "use strict";const r=require("react/jsx-runtime"),a=require("react"),q=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),f=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./index-BGTtoLxz.cjs"),L=require("./suspense-large-CFmcSzX-.cjs"),M=q.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),n=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),k=require("./index-D69SKc-n.cjs"),d=require("./style-BAcV7F53.cjs"),C=S.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${o=>`repeat(${o.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media (max-width: ${C.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,m=a.memo(j.BlogCardLarge),B=a.forwardRef((o,g)=>{const{items:t,onSelectCard:s=()=>{},limit:i=2,isLoading:p=!1,getImage:c=()=>{},componentName:u}=o,d=f.useDetectMobile(),S=a.useMemo(()=>r.jsx(r.Fragment,{children:d===!0?t==null?void 0:t.map((e,l)=>r.jsx(m,{title:e==null?void 0:e.title,imageUrl:c(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(b,n)=>s(e==null?void 0:e.titleSlug,n),metadata:{name:u,accessor:e==null?void 0:e.accessor}},l)):t==null?void 0:t.slice(0,i).map((e,l)=>r.jsx(m,{title:e==null?void 0:e.title,imageUrl:c(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(b,n)=>s(e==null?void 0:e.titleSlug,n),metadata:{name:u,accessor:e==null?void 0:e.accessor}},l))}),[t,d,i,s]);return r.jsx(M,{ref:g,limit:i,children:r.jsx(L.SuspenseBlogLarge,{isLoading:p,limit:i,keyPrefix:"explore-landing",children:S})})});module.exports=B;
9
+ `,q=S.styled(d.SkeletonRowWrapper)`
10
+ @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
11
+ flex-direction: column;
12
+
13
+ & > div {
14
+ background: linear-gradient(
15
+ to right,
16
+ transparent 0%,
17
+ #f4f6fb 40%,
18
+ #f4f6fb 100%
19
+ );
20
+
21
+ box-shadow: none;
22
+ }
23
+ }
24
+ `,B=({keyPrefix:i})=>t.jsxs(q,{children:[t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${i}-1`),t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${i}-2`)]}),M=({keyPrefix:i,isLoading:s=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:o})=>t.jsx(n.Suspense,{fallbackComponent:r,children:s===!0?t.jsx(B,{keyPrefix:i}):o}),p=n.memo(k.BlogCardLarge),w=n.forwardRef((i,s)=>{const{items:r,onSelectCard:o=()=>{},limit:l=2,isLoading:h=!1,getImage:u=()=>{},componentName:m}=i,g=L.useDetectMobile(),f=n.useMemo(()=>t.jsx(t.Fragment,{children:g===!0?r==null?void 0:r.map((e,a)=>t.jsx(p,{title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(j,c)=>o(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor}},a)):r==null?void 0:r.slice(0,l).map((e,a)=>t.jsx(p,{title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(j,c)=>o(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor}},a))}),[r,g,l,o]);return t.jsx(M,{isLoading:h,keyPrefix:"blogs-large-skeleton",children:t.jsx(C,{ref:s,limit:l,children:f})})});module.exports=w;