@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.
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +9 -48
- package/dist/BannerSectionCarousel.js +208 -249
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +67 -68
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +22 -30
- package/dist/BlogExploreSection.js +9 -9
- package/dist/BlogListSection.cjs +11 -5
- package/dist/BlogListSection.js +187 -123
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +28 -37
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +40 -67
- package/dist/BlogSingleSection.cjs +16 -1
- package/dist/BlogSingleSection.js +47 -45
- package/dist/BlogsSectionDetailed.cjs +8 -27
- package/dist/BlogsSectionDetailed.js +111 -159
- package/dist/BlogsSectionLarge.cjs +19 -4
- package/dist/BlogsSectionLarge.js +73 -37
- package/dist/BlogsSectionSimple.cjs +9 -9
- package/dist/BlogsSectionSimple.js +81 -107
- package/dist/BlogsSectionSimpleCentered.cjs +25 -23
- package/dist/BlogsSectionSimpleCentered.js +103 -96
- package/dist/BlogsSectionWithFilters.cjs +31 -29
- package/dist/BlogsSectionWithFilters.js +173 -134
- package/dist/BrandHitsSection.cjs +10 -14
- package/dist/BrandHitsSection.js +93 -45
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
- package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +35 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +62 -63
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
- package/dist/FieldOfInterestsMasonrySection.js +228 -154
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
- package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +11 -27
- package/dist/GeneralWithTagsCardsSection.js +87 -99
- package/dist/GiftCardsSection.cjs +18 -23
- package/dist/GiftCardsSection.js +146 -77
- package/dist/Icon.js +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +33 -19
- package/dist/MasonryGeneralCardsSection.js +114 -68
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +54 -40
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +15 -20
- package/dist/ProductsWithBannerSection.js +176 -104
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +6 -6
- package/dist/QuattroCardsSection.js +42 -34
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -30
- package/dist/ReviewsSection.js +170 -137
- package/dist/SalesCampaignsSection.cjs +46 -130
- package/dist/SalesCampaignsSection.js +354 -433
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +18 -5
- package/dist/ShopCardsSection.js +145 -88
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +10 -4
- package/dist/SimpleCategoriesSection.js +79 -51
- package/dist/SimpleProductsSection.cjs +16 -3
- package/dist/SimpleProductsSection.js +172 -70
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.js +4 -4
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +62 -61
- package/dist/index-BAJkosVg.cjs +11 -0
- package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
- package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
- package/dist/index-BSpdEGFd.js +42 -0
- package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
- package/dist/index-BhBRZf4M.js +742 -0
- package/dist/index-BovNbKxB.js +54 -0
- package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
- package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
- package/dist/index-D-3I_Ppj.cjs +16 -0
- package/dist/index-D0IYt1s3.cjs +20 -0
- package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
- package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
- package/dist/index-DFdPWO4O.js +133 -0
- package/dist/index-DFyV_EK2.cjs +305 -0
- package/dist/index-DxwIu0Wn.js +84 -0
- package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
- package/dist/index.js +1 -1
- package/dist/style-BAcV7F53.cjs +64 -0
- package/dist/style-CXMUA6cI.js +74 -0
- package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
- package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
- package/package.json +1 -1
- package/dist/index-1Dm1i6WK.js +0 -52
- package/dist/index-BGTtoLxz.cjs +0 -1
- package/dist/skeleton-BdbB-LdT.cjs +0 -97
- package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
- package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
- package/dist/suspense-large-BMO7JH52.js +0 -26
- package/dist/suspense-large-CFmcSzX-.cjs +0 -1
- package/dist/suspense-product-card-detailed-CxiFuUOT.js +0 -653
- package/dist/suspense-product-card-detailed-IR4sh-l4.cjs +0 -330
- package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
- 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-
|
|
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-
|
|
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"),
|
|
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: ${
|
|
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
|
-
${
|
|
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: ${
|
|
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=
|
|
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
|
-
${
|
|
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: ${
|
|
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
|
-
|
|
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
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { B as
|
|
6
|
-
import { P as U } from "./index-
|
|
7
|
-
import { s as
|
|
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
|
|
10
|
-
import
|
|
11
|
-
const
|
|
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
|
-
${
|
|
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
|
-
`,
|
|
134
|
+
`, E = y(
|
|
135
135
|
({
|
|
136
136
|
title: t,
|
|
137
137
|
imageUrl: d,
|
|
138
|
-
options:
|
|
139
|
-
publishedAt:
|
|
140
|
-
timeToReadText:
|
|
141
|
-
timeToRead:
|
|
142
|
-
numberOfLikes:
|
|
143
|
-
numberOfComments:
|
|
144
|
-
isSponsored:
|
|
145
|
-
onSelectCard:
|
|
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
|
-
},
|
|
149
|
-
const
|
|
148
|
+
}, b) => {
|
|
149
|
+
const _ = j();
|
|
150
150
|
return /* @__PURE__ */ i(
|
|
151
|
-
|
|
151
|
+
T,
|
|
152
152
|
{
|
|
153
|
-
ref:
|
|
154
|
-
isSponsored:
|
|
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) =>
|
|
157
|
+
onClick: (a) => g(a, _),
|
|
158
158
|
children: [
|
|
159
|
-
|
|
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:
|
|
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: `${
|
|
168
|
-
|
|
169
|
-
)} • ${
|
|
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(
|
|
173
|
-
|
|
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(
|
|
177
|
-
|
|
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
|
-
),
|
|
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
|
-
${
|
|
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
|
-
`,
|
|
270
|
+
`, D = I(E), Y = y(
|
|
271
271
|
({
|
|
272
272
|
title: t,
|
|
273
273
|
subtitle: d,
|
|
274
|
-
icon:
|
|
275
|
-
buttonText:
|
|
276
|
-
buttonLink:
|
|
277
|
-
timeToReadText:
|
|
278
|
-
items:
|
|
279
|
-
onButtonAction:
|
|
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:
|
|
281
|
+
onSelectCard: p = () => {
|
|
282
282
|
},
|
|
283
|
-
isLoading:
|
|
283
|
+
isLoading: g = !1,
|
|
284
284
|
getImage: s = () => {
|
|
285
285
|
},
|
|
286
|
-
componentName:
|
|
287
|
-
},
|
|
288
|
-
const a =
|
|
286
|
+
componentName: b
|
|
287
|
+
}, _) => {
|
|
288
|
+
const a = R(() => {
|
|
289
289
|
var n;
|
|
290
|
-
return (n =
|
|
291
|
-
|
|
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: (
|
|
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:
|
|
304
|
+
metadata: { name: b, accessor: e == null ? void 0 : e.accessor }
|
|
305
305
|
},
|
|
306
|
-
`blog-card-sponsored__${
|
|
306
|
+
`blog-card-sponsored__${k + 1}`
|
|
307
307
|
));
|
|
308
|
-
}, [
|
|
309
|
-
return /* @__PURE__ */ i(
|
|
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
|
-
|
|
313
|
+
w(o) && /* @__PURE__ */ r("i", { className: o }),
|
|
314
314
|
/* @__PURE__ */ r("span", { children: t })
|
|
315
315
|
] }),
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
w(c) && w(f) && !g && /* @__PURE__ */ r(
|
|
317
|
+
M,
|
|
318
318
|
{
|
|
319
|
-
text:
|
|
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(),
|
|
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(
|
|
334
|
-
|
|
333
|
+
/* @__PURE__ */ r(
|
|
334
|
+
P,
|
|
335
335
|
{
|
|
336
|
-
isLoading:
|
|
337
|
-
|
|
338
|
-
|
|
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
|
|
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
|
|
2
|
-
import { memo as
|
|
3
|
-
import { C as
|
|
4
|
-
import { W as
|
|
5
|
-
const
|
|
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:
|
|
8
|
-
onSelectCard:
|
|
7
|
+
items: a,
|
|
8
|
+
onSelectCard: e = () => {
|
|
9
9
|
},
|
|
10
|
-
isLoading:
|
|
11
|
-
limit:
|
|
12
|
-
isHighlight:
|
|
13
|
-
},
|
|
14
|
-
const
|
|
15
|
-
var
|
|
16
|
-
return (
|
|
17
|
-
|
|
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:
|
|
20
|
-
image:
|
|
21
|
-
name:
|
|
22
|
-
onSelectCard: () =>
|
|
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
|
-
|
|
24
|
+
p
|
|
25
25
|
));
|
|
26
|
-
}, [
|
|
27
|
-
return /* @__PURE__ */
|
|
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 {
|
|
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
|
|
15
|
-
import { P as ve } from "./index-
|
|
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 =
|
|
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 =
|
|
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:
|
|
488
|
-
showAllButtonText:
|
|
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:
|
|
645
|
-
buttonLink:
|
|
644
|
+
buttonText: U,
|
|
645
|
+
buttonLink: R,
|
|
646
646
|
onButtonAction: Z,
|
|
647
647
|
onSelectCard: G,
|
|
648
648
|
items: g,
|
package/dist/BlogListSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
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
|
-
${
|
|
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: ${
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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;
|