@lanaco/lnc-react-ui 4.0.219 → 4.0.221
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/BlogListSection.cjs +30 -8
- package/dist/BlogListSection.js +211 -130
- package/package.json +1 -1
package/dist/BlogListSection.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),a=require("react"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("react"),W=require("./Icon.cjs"),f=require("./IconButton.cjs"),c=require("./utils-CITgSxXe.cjs"),G=require("./index-DsINTjQk.cjs"),I=require("./style-DC05rdyx.cjs"),R=require("./emotion-styled.browser.esm-BtEseadx.cjs"),$=require("./breakpoints-CcVm-gVm.cjs"),n=require("./style-BAcV7F53.cjs"),T=R.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
5
|
-
padding: 1rem;
|
|
5
|
+
padding: 1rem 0 1rem 1rem;
|
|
6
6
|
align-items: center;
|
|
7
7
|
gap: 1.25rem;
|
|
8
8
|
border-radius: 1.25rem;
|
|
@@ -13,6 +13,21 @@
|
|
|
13
13
|
position: relative;
|
|
14
14
|
width: 100%;
|
|
15
15
|
|
|
16
|
+
& .image-container {
|
|
17
|
+
position: relative;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.image-container .action {
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: -0.5rem;
|
|
24
|
+
right: -0.5rem;
|
|
25
|
+
|
|
26
|
+
& .mobile-only {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
16
31
|
& .mobile-only {
|
|
17
32
|
display: none;
|
|
18
33
|
}
|
|
@@ -52,7 +67,7 @@
|
|
|
52
67
|
font-weight: 600;
|
|
53
68
|
line-height: 1.5rem;
|
|
54
69
|
letter-spacing: 0.1px;
|
|
55
|
-
${
|
|
70
|
+
${c.truncateTextInRows(3)}
|
|
56
71
|
}
|
|
57
72
|
|
|
58
73
|
& .wrapper__tags {
|
|
@@ -67,10 +82,17 @@
|
|
|
67
82
|
justify-content: space-between;
|
|
68
83
|
align-items: center;
|
|
69
84
|
width: 100%;
|
|
85
|
+
& .action {
|
|
86
|
+
align-self: flex-start;
|
|
87
|
+
& > button {
|
|
88
|
+
min-height: 1rem;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
70
91
|
|
|
71
92
|
& .info__content {
|
|
72
93
|
display: flex;
|
|
73
94
|
align-items: center;
|
|
95
|
+
padding-right: 1rem;
|
|
74
96
|
|
|
75
97
|
&:first-of-type {
|
|
76
98
|
flex-grow: 1;
|
|
@@ -95,7 +117,7 @@
|
|
|
95
117
|
}
|
|
96
118
|
}
|
|
97
119
|
|
|
98
|
-
@media ${
|
|
120
|
+
@media ${$.down("S")} {
|
|
99
121
|
flex-direction: column;
|
|
100
122
|
padding: 0;
|
|
101
123
|
background: transparent;
|
|
@@ -146,7 +168,7 @@
|
|
|
146
168
|
}
|
|
147
169
|
}
|
|
148
170
|
}
|
|
149
|
-
`,
|
|
171
|
+
`,z=a.forwardRef(({blogUuid:i,title:l,imageUrl:m,options:o,publishedAt:h,timeToReadText:k="{0} min read",timeToRead:_=0,numberOfLikes:b=0,numberOfComments:S=0,isBookmarked:g=!1,onSelectCard:y=()=>{},onBookmark:v=()=>{},onShare:u=()=>{},bookmarkComponent:d=e.jsx(e.Fragment,{}),metadata:s,titleSlug:j,LinkComponent:r,hasShare:w=!0,hasDelete:p=!1,onDelete:x=()=>{}},P)=>{const q=r||"a",C=()=>c.isDefined(d)?a.cloneElement(d,{key:`bookmark_blog__${i}__${g}`,isBookmarked:g,blogUuid:i,onBookmark:(L,B)=>v(L,B),ref:P,componentName:"ExploreBlogSectionCard"}):e.jsx(e.Fragment,{}),N=a.useRef();return e.jsxs(T,{ref:N,name:s==null?void 0:s.name,"data-accessor":s==null?void 0:s.accessor,onClick:t=>y(t,N),className:"blog-card-item",as:q,...r?{to:`/blog/${j}`}:{href:`/blog/${j}`},children:[e.jsxs("div",{className:"image-container",children:[p&&e.jsx("div",{className:"action mobile-only",onClick:t=>{t==null||t.preventDefault(),t==null||t.stopPropagation()},children:e.jsx(f,{icon:" mng-lnc-close",borderRadius:"curved",type:"button",btnType:"filled",color:"neutral",size:"medium",onClick:()=>{x()}})}),e.jsx(G.ProductImageWrapper,{src:m,className:"wrapper__image"})]}),e.jsxs("div",{className:"wrapper__content",children:[e.jsxs("div",{className:"wrapper__subcontent",children:[e.jsxs("div",{className:"wrapper__info",children:[e.jsx("div",{className:"wrapper__title",children:l}),p&&e.jsx("div",{className:"action desktop-only",onClick:t=>{t==null||t.preventDefault(),t==null||t.stopPropagation()},children:e.jsx(f,{icon:" mng-lnc-close",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{x()}})})]}),e.jsxs("div",{className:"wrapper__tags-action",children:[e.jsx("div",{className:"wrapper__tags",children:o&&(o==null?void 0:o.map((t,L)=>e.jsx(I.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},`blog-card-sponsored-option__${L+1}`)))}),e.jsxs("div",{className:"info__content mobile-only",onClick:t=>{t.stopPropagation(),t.preventDefault()},children:[e.jsx(C,{}),w&&e.jsx(f,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{u()}})]})]})]}),e.jsxs("div",{className:"wrapper__info",children:[e.jsxs("div",{className:"info__content",children:[e.jsx("div",{className:"info__text",children:`${c.formatLocaleDateString(h)} • ${c.formatString(k,_)}`}),e.jsxs("div",{className:"info__text",children:[e.jsxs("div",{children:[e.jsx(W,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),c.getRoundedNumber(b)]}),e.jsxs("div",{children:[e.jsx(W,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),c.getRoundedNumber(S)]})]})]}),e.jsxs("div",{className:"info__content desktop-only",onClick:t=>{t==null||t.preventDefault(),t==null||t.stopPropagation()},children:[e.jsx(C,{}),w&&e.jsx(f,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{u()}})]})]})]})]})}),F=R.styled.div`
|
|
150
172
|
display: flex;
|
|
151
173
|
flex-direction: column;
|
|
152
174
|
align-items: flex-start;
|
|
@@ -170,10 +192,10 @@
|
|
|
170
192
|
bottom: -1.25rem;
|
|
171
193
|
}
|
|
172
194
|
}
|
|
173
|
-
`,
|
|
174
|
-
@media ${
|
|
195
|
+
`,O=R.styled(n.SkeletonColumnWrapper)`
|
|
196
|
+
@media ${$.down("S")} {
|
|
175
197
|
& > div {
|
|
176
198
|
flex-direction: column;
|
|
177
199
|
}
|
|
178
200
|
}
|
|
179
|
-
`,
|
|
201
|
+
`,U=({keyPrefix:i})=>e.jsxs(O,{children:[e.jsxs(n.SkeletonRowWrapper,{children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(n.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-1`),e.jsxs(n.SkeletonRowWrapper,{children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(n.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-2`),e.jsxs(n.SkeletonRowWrapper,{children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(n.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-3`),e.jsxs(n.SkeletonRowWrapper,{children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(n.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-4`),e.jsxs(n.SkeletonRowWrapper,{children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(n.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-5`)]}),A=({keyPrefix:i,isLoading:l=!1,fallbackComponent:m=e.jsx(e.Fragment,{}),children:o})=>e.jsx(a.Suspense,{fallbackComponent:m,children:l===!0?e.jsx(U,{keyPrefix:i}):o}),E=a.memo(z),M=a.forwardRef(({timeToReadText:i="{0} min read",items:l,isLoading:m=!1,onSelectCard:o=()=>{},onShare:h=()=>{},onBookmark:k=()=>{},getImage:_=()=>{},isSeparated:b=!0,bookmarkComponent:S=e.jsx(e.Fragment,{}),componentName:g,LinkComponent:y,hasShare:v=!0,hasDelete:u=!1,onDelete:d=()=>{}},s)=>{const j=a.useMemo(()=>l==null?void 0:l.map((r,w)=>{var p;return e.jsx(E,{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:(x,P)=>o==null?void 0:o(r,P),hasShare:v,hasDelete:u,onDelete:()=>d==null?void 0:d(r),onShare:()=>h==null?void 0:h(r),onBookmark:k,imageUrl:_(r==null?void 0:r.imageUrl,r==null?void 0:r.uuid)||null,bookmarkComponent:S,metadata:{name:g,accessor:r==null?void 0:r.accessor},LinkComponent:y},`blog-card-item__${w+1}__${(p=r==null?void 0:r.isBookmarked)==null?void 0:p.toString()}`)}),[l]);return e.jsx(A,{isLoading:m,keyPrefix:"blog-list-skeleton",children:e.jsx(F,{ref:s,className:b?"separated":"",children:j})})});module.exports=M;
|
package/dist/BlogListSection.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as t, jsx as e, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { n as
|
|
6
|
-
import { P as
|
|
7
|
-
import { B as
|
|
8
|
-
import { s as
|
|
9
|
-
import { d as
|
|
10
|
-
import { b as
|
|
11
|
-
const
|
|
1
|
+
import { jsxs as t, jsx as e, Fragment as y } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as W, useRef as A, cloneElement as E, Suspense as M, memo as D, useMemo as F } from "react";
|
|
3
|
+
import L from "./Icon.js";
|
|
4
|
+
import v from "./IconButton.js";
|
|
5
|
+
import { n as H, q as J, s as K, v as P, m as Q } from "./utils-B2fsQ6PS.js";
|
|
6
|
+
import { P as V } from "./index-BvMY2TbK.js";
|
|
7
|
+
import { B as X } from "./style-BUyFad_y.js";
|
|
8
|
+
import { s as T } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
9
|
+
import { d as O } from "./breakpoints-ff0SIcV3.js";
|
|
10
|
+
import { b as c, S as l, c as f, a as n } from "./style-BwQ4djFC.js";
|
|
11
|
+
const Y = T.a`
|
|
12
12
|
text-decoration: none;
|
|
13
13
|
color: var(--gray-950);
|
|
14
14
|
display: flex;
|
|
15
|
-
padding: 1rem;
|
|
15
|
+
padding: 1rem 0 1rem 1rem;
|
|
16
16
|
align-items: center;
|
|
17
17
|
gap: 1.25rem;
|
|
18
18
|
border-radius: 1.25rem;
|
|
@@ -23,6 +23,21 @@ const Q = S.a`
|
|
|
23
23
|
position: relative;
|
|
24
24
|
width: 100%;
|
|
25
25
|
|
|
26
|
+
& .image-container {
|
|
27
|
+
position: relative;
|
|
28
|
+
display: inline-block;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.image-container .action {
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: -0.5rem;
|
|
34
|
+
right: -0.5rem;
|
|
35
|
+
|
|
36
|
+
& .mobile-only {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
26
41
|
& .mobile-only {
|
|
27
42
|
display: none;
|
|
28
43
|
}
|
|
@@ -62,7 +77,7 @@ const Q = S.a`
|
|
|
62
77
|
font-weight: 600;
|
|
63
78
|
line-height: 1.5rem;
|
|
64
79
|
letter-spacing: 0.1px;
|
|
65
|
-
${
|
|
80
|
+
${H(3)}
|
|
66
81
|
}
|
|
67
82
|
|
|
68
83
|
& .wrapper__tags {
|
|
@@ -77,10 +92,17 @@ const Q = S.a`
|
|
|
77
92
|
justify-content: space-between;
|
|
78
93
|
align-items: center;
|
|
79
94
|
width: 100%;
|
|
95
|
+
& .action {
|
|
96
|
+
align-self: flex-start;
|
|
97
|
+
& > button {
|
|
98
|
+
min-height: 1rem;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
80
101
|
|
|
81
102
|
& .info__content {
|
|
82
103
|
display: flex;
|
|
83
104
|
align-items: center;
|
|
105
|
+
padding-right: 1rem;
|
|
84
106
|
|
|
85
107
|
&:first-of-type {
|
|
86
108
|
flex-grow: 1;
|
|
@@ -105,7 +127,7 @@ const Q = S.a`
|
|
|
105
127
|
}
|
|
106
128
|
}
|
|
107
129
|
|
|
108
|
-
@media ${
|
|
130
|
+
@media ${O("S")} {
|
|
109
131
|
flex-direction: column;
|
|
110
132
|
padding: 0;
|
|
111
133
|
background: transparent;
|
|
@@ -156,79 +178,131 @@ const Q = S.a`
|
|
|
156
178
|
}
|
|
157
179
|
}
|
|
158
180
|
}
|
|
159
|
-
`,
|
|
181
|
+
`, Z = W(
|
|
160
182
|
({
|
|
161
183
|
blogUuid: o,
|
|
162
184
|
title: m,
|
|
163
|
-
imageUrl:
|
|
185
|
+
imageUrl: h,
|
|
164
186
|
options: a,
|
|
165
|
-
publishedAt:
|
|
166
|
-
timeToReadText:
|
|
167
|
-
timeToRead:
|
|
168
|
-
numberOfLikes:
|
|
169
|
-
numberOfComments:
|
|
170
|
-
isBookmarked:
|
|
171
|
-
onSelectCard:
|
|
187
|
+
publishedAt: p,
|
|
188
|
+
timeToReadText: k = "{0} min read",
|
|
189
|
+
timeToRead: N = 0,
|
|
190
|
+
numberOfLikes: $ = 0,
|
|
191
|
+
numberOfComments: C = 0,
|
|
192
|
+
isBookmarked: u = !1,
|
|
193
|
+
onSelectCard: B = () => {
|
|
172
194
|
},
|
|
173
|
-
onBookmark:
|
|
195
|
+
onBookmark: R = () => {
|
|
174
196
|
},
|
|
175
|
-
onShare:
|
|
197
|
+
onShare: w = () => {
|
|
176
198
|
},
|
|
177
|
-
bookmarkComponent:
|
|
199
|
+
bookmarkComponent: s = /* @__PURE__ */ e(y, {}),
|
|
178
200
|
metadata: d,
|
|
179
|
-
titleSlug:
|
|
180
|
-
LinkComponent:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
201
|
+
titleSlug: _,
|
|
202
|
+
LinkComponent: r,
|
|
203
|
+
hasShare: b = !0,
|
|
204
|
+
hasDelete: g = !1,
|
|
205
|
+
onDelete: S = () => {
|
|
206
|
+
}
|
|
207
|
+
}, G) => {
|
|
208
|
+
const U = r || "a", z = () => Q(s) ? E(s, {
|
|
209
|
+
key: `bookmark_blog__${o}__${u}`,
|
|
210
|
+
isBookmarked: u,
|
|
185
211
|
blogUuid: o,
|
|
186
|
-
onBookmark: (
|
|
187
|
-
ref:
|
|
212
|
+
onBookmark: (j, q) => R(j, q),
|
|
213
|
+
ref: G,
|
|
188
214
|
componentName: "ExploreBlogSectionCard"
|
|
189
|
-
}) : /* @__PURE__ */ e(
|
|
215
|
+
}) : /* @__PURE__ */ e(y, {}), I = A();
|
|
190
216
|
return /* @__PURE__ */ t(
|
|
191
|
-
|
|
217
|
+
Y,
|
|
192
218
|
{
|
|
193
|
-
ref:
|
|
219
|
+
ref: I,
|
|
194
220
|
name: d == null ? void 0 : d.name,
|
|
195
221
|
"data-accessor": d == null ? void 0 : d.accessor,
|
|
196
|
-
onClick: (
|
|
222
|
+
onClick: (i) => B(i, I),
|
|
197
223
|
className: "blog-card-item",
|
|
198
|
-
as:
|
|
199
|
-
...
|
|
224
|
+
as: U,
|
|
225
|
+
...r ? { to: `/blog/${_}` } : { href: `/blog/${_}` },
|
|
200
226
|
children: [
|
|
201
|
-
/* @__PURE__ */
|
|
227
|
+
/* @__PURE__ */ t("div", { className: "image-container", children: [
|
|
228
|
+
g && /* @__PURE__ */ e(
|
|
229
|
+
"div",
|
|
230
|
+
{
|
|
231
|
+
className: "action mobile-only",
|
|
232
|
+
onClick: (i) => {
|
|
233
|
+
i == null || i.preventDefault(), i == null || i.stopPropagation();
|
|
234
|
+
},
|
|
235
|
+
children: /* @__PURE__ */ e(
|
|
236
|
+
v,
|
|
237
|
+
{
|
|
238
|
+
icon: " mng-lnc-close",
|
|
239
|
+
borderRadius: "curved",
|
|
240
|
+
type: "button",
|
|
241
|
+
btnType: "filled",
|
|
242
|
+
color: "neutral",
|
|
243
|
+
size: "medium",
|
|
244
|
+
onClick: () => {
|
|
245
|
+
S();
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
)
|
|
249
|
+
}
|
|
250
|
+
),
|
|
251
|
+
/* @__PURE__ */ e(V, { src: h, className: "wrapper__image" })
|
|
252
|
+
] }),
|
|
202
253
|
/* @__PURE__ */ t("div", { className: "wrapper__content", children: [
|
|
203
254
|
/* @__PURE__ */ t("div", { className: "wrapper__subcontent", children: [
|
|
204
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ t("div", { className: "wrapper__info", children: [
|
|
256
|
+
/* @__PURE__ */ e("div", { className: "wrapper__title", children: m }),
|
|
257
|
+
g && /* @__PURE__ */ e(
|
|
258
|
+
"div",
|
|
259
|
+
{
|
|
260
|
+
className: "action desktop-only",
|
|
261
|
+
onClick: (i) => {
|
|
262
|
+
i == null || i.preventDefault(), i == null || i.stopPropagation();
|
|
263
|
+
},
|
|
264
|
+
children: /* @__PURE__ */ e(
|
|
265
|
+
v,
|
|
266
|
+
{
|
|
267
|
+
icon: " mng-lnc-close",
|
|
268
|
+
borderRadius: "curved",
|
|
269
|
+
btnType: "basic",
|
|
270
|
+
color: "neutral",
|
|
271
|
+
onClick: () => {
|
|
272
|
+
S();
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
)
|
|
276
|
+
}
|
|
277
|
+
)
|
|
278
|
+
] }),
|
|
205
279
|
/* @__PURE__ */ t("div", { className: "wrapper__tags-action", children: [
|
|
206
|
-
/* @__PURE__ */ e("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((
|
|
207
|
-
|
|
280
|
+
/* @__PURE__ */ e("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((i, j) => /* @__PURE__ */ e(
|
|
281
|
+
X,
|
|
208
282
|
{
|
|
209
|
-
color:
|
|
210
|
-
children:
|
|
283
|
+
color: i == null ? void 0 : i.color,
|
|
284
|
+
children: i == null ? void 0 : i.name
|
|
211
285
|
},
|
|
212
|
-
`blog-card-sponsored-option__${
|
|
286
|
+
`blog-card-sponsored-option__${j + 1}`
|
|
213
287
|
))) }),
|
|
214
288
|
/* @__PURE__ */ t(
|
|
215
289
|
"div",
|
|
216
290
|
{
|
|
217
291
|
className: "info__content mobile-only",
|
|
218
|
-
onClick: (
|
|
219
|
-
|
|
292
|
+
onClick: (i) => {
|
|
293
|
+
i.stopPropagation(), i.preventDefault();
|
|
220
294
|
},
|
|
221
295
|
children: [
|
|
222
|
-
/* @__PURE__ */ e(
|
|
223
|
-
/* @__PURE__ */ e(
|
|
224
|
-
|
|
296
|
+
/* @__PURE__ */ e(z, {}),
|
|
297
|
+
b && /* @__PURE__ */ e(
|
|
298
|
+
v,
|
|
225
299
|
{
|
|
226
300
|
icon: " mng-lnc-share",
|
|
227
301
|
borderRadius: "curved",
|
|
228
302
|
btnType: "basic",
|
|
229
303
|
color: "neutral",
|
|
230
304
|
onClick: () => {
|
|
231
|
-
|
|
305
|
+
w();
|
|
232
306
|
}
|
|
233
307
|
}
|
|
234
308
|
)
|
|
@@ -239,17 +313,17 @@ const Q = S.a`
|
|
|
239
313
|
] }),
|
|
240
314
|
/* @__PURE__ */ t("div", { className: "wrapper__info", children: [
|
|
241
315
|
/* @__PURE__ */ t("div", { className: "info__content", children: [
|
|
242
|
-
/* @__PURE__ */ e("div", { className: "info__text", children: `${
|
|
243
|
-
|
|
244
|
-
)} • ${
|
|
316
|
+
/* @__PURE__ */ e("div", { className: "info__text", children: `${J(
|
|
317
|
+
p
|
|
318
|
+
)} • ${K(k, N)}` }),
|
|
245
319
|
/* @__PURE__ */ t("div", { className: "info__text", children: [
|
|
246
320
|
/* @__PURE__ */ t("div", { children: [
|
|
247
|
-
/* @__PURE__ */ e(
|
|
248
|
-
|
|
321
|
+
/* @__PURE__ */ e(L, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
|
|
322
|
+
P($)
|
|
249
323
|
] }),
|
|
250
324
|
/* @__PURE__ */ t("div", { children: [
|
|
251
|
-
/* @__PURE__ */ e(
|
|
252
|
-
|
|
325
|
+
/* @__PURE__ */ e(L, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
|
|
326
|
+
P(C)
|
|
253
327
|
] })
|
|
254
328
|
] })
|
|
255
329
|
] }),
|
|
@@ -257,20 +331,20 @@ const Q = S.a`
|
|
|
257
331
|
"div",
|
|
258
332
|
{
|
|
259
333
|
className: "info__content desktop-only",
|
|
260
|
-
onClick: (
|
|
261
|
-
|
|
334
|
+
onClick: (i) => {
|
|
335
|
+
i == null || i.preventDefault(), i == null || i.stopPropagation();
|
|
262
336
|
},
|
|
263
337
|
children: [
|
|
264
|
-
/* @__PURE__ */ e(
|
|
265
|
-
/* @__PURE__ */ e(
|
|
266
|
-
|
|
338
|
+
/* @__PURE__ */ e(z, {}),
|
|
339
|
+
b && /* @__PURE__ */ e(
|
|
340
|
+
v,
|
|
267
341
|
{
|
|
268
342
|
icon: " mng-lnc-share",
|
|
269
343
|
borderRadius: "curved",
|
|
270
344
|
btnType: "basic",
|
|
271
345
|
color: "neutral",
|
|
272
346
|
onClick: () => {
|
|
273
|
-
|
|
347
|
+
w();
|
|
274
348
|
}
|
|
275
349
|
}
|
|
276
350
|
)
|
|
@@ -283,7 +357,7 @@ const Q = S.a`
|
|
|
283
357
|
}
|
|
284
358
|
);
|
|
285
359
|
}
|
|
286
|
-
),
|
|
360
|
+
), x = T.div`
|
|
287
361
|
display: flex;
|
|
288
362
|
flex-direction: column;
|
|
289
363
|
align-items: flex-start;
|
|
@@ -307,100 +381,104 @@ const Q = S.a`
|
|
|
307
381
|
bottom: -1.25rem;
|
|
308
382
|
}
|
|
309
383
|
}
|
|
310
|
-
`,
|
|
311
|
-
@media ${
|
|
384
|
+
`, ee = T(c)`
|
|
385
|
+
@media ${O("S")} {
|
|
312
386
|
& > div {
|
|
313
387
|
flex-direction: column;
|
|
314
388
|
}
|
|
315
389
|
}
|
|
316
|
-
`,
|
|
390
|
+
`, re = ({ keyPrefix: o }) => /* @__PURE__ */ t(ee, { children: [
|
|
317
391
|
/* @__PURE__ */ t(l, { children: [
|
|
318
|
-
/* @__PURE__ */ e(
|
|
319
|
-
/* @__PURE__ */ t(
|
|
320
|
-
/* @__PURE__ */ e(
|
|
392
|
+
/* @__PURE__ */ e(f, { height: "9.5rem", width: "17.75rem" }),
|
|
393
|
+
/* @__PURE__ */ t(c, { noGradient: !0, children: [
|
|
394
|
+
/* @__PURE__ */ e(n, { height: "1.5rem" }),
|
|
321
395
|
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
322
|
-
/* @__PURE__ */ e(
|
|
323
|
-
/* @__PURE__ */ e(
|
|
324
|
-
/* @__PURE__ */ e(
|
|
325
|
-
/* @__PURE__ */ e(
|
|
396
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
397
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
398
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
399
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" })
|
|
326
400
|
] })
|
|
327
401
|
] })
|
|
328
402
|
] }, `${o}-1`),
|
|
329
403
|
/* @__PURE__ */ t(l, { children: [
|
|
330
|
-
/* @__PURE__ */ e(
|
|
331
|
-
/* @__PURE__ */ t(
|
|
332
|
-
/* @__PURE__ */ e(
|
|
404
|
+
/* @__PURE__ */ e(f, { height: "9.5rem", width: "17.75rem" }),
|
|
405
|
+
/* @__PURE__ */ t(c, { noGradient: !0, children: [
|
|
406
|
+
/* @__PURE__ */ e(n, { height: "1.5rem" }),
|
|
333
407
|
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
334
|
-
/* @__PURE__ */ e(
|
|
335
|
-
/* @__PURE__ */ e(
|
|
336
|
-
/* @__PURE__ */ e(
|
|
337
|
-
/* @__PURE__ */ e(
|
|
408
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
409
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
410
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
411
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" })
|
|
338
412
|
] })
|
|
339
413
|
] })
|
|
340
414
|
] }, `${o}-2`),
|
|
341
415
|
/* @__PURE__ */ t(l, { children: [
|
|
342
|
-
/* @__PURE__ */ e(
|
|
343
|
-
/* @__PURE__ */ t(
|
|
344
|
-
/* @__PURE__ */ e(
|
|
416
|
+
/* @__PURE__ */ e(f, { height: "9.5rem", width: "17.75rem" }),
|
|
417
|
+
/* @__PURE__ */ t(c, { noGradient: !0, children: [
|
|
418
|
+
/* @__PURE__ */ e(n, { height: "1.5rem" }),
|
|
345
419
|
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
346
|
-
/* @__PURE__ */ e(
|
|
347
|
-
/* @__PURE__ */ e(
|
|
348
|
-
/* @__PURE__ */ e(
|
|
349
|
-
/* @__PURE__ */ e(
|
|
420
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
421
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
422
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
423
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" })
|
|
350
424
|
] })
|
|
351
425
|
] })
|
|
352
426
|
] }, `${o}-3`),
|
|
353
427
|
/* @__PURE__ */ t(l, { children: [
|
|
354
|
-
/* @__PURE__ */ e(
|
|
355
|
-
/* @__PURE__ */ t(
|
|
356
|
-
/* @__PURE__ */ e(
|
|
428
|
+
/* @__PURE__ */ e(f, { height: "9.5rem", width: "17.75rem" }),
|
|
429
|
+
/* @__PURE__ */ t(c, { noGradient: !0, children: [
|
|
430
|
+
/* @__PURE__ */ e(n, { height: "1.5rem" }),
|
|
357
431
|
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
358
|
-
/* @__PURE__ */ e(
|
|
359
|
-
/* @__PURE__ */ e(
|
|
360
|
-
/* @__PURE__ */ e(
|
|
361
|
-
/* @__PURE__ */ e(
|
|
432
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
433
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
434
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
435
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" })
|
|
362
436
|
] })
|
|
363
437
|
] })
|
|
364
438
|
] }, `${o}-4`),
|
|
365
439
|
/* @__PURE__ */ t(l, { children: [
|
|
366
|
-
/* @__PURE__ */ e(
|
|
367
|
-
/* @__PURE__ */ t(
|
|
368
|
-
/* @__PURE__ */ e(
|
|
440
|
+
/* @__PURE__ */ e(f, { height: "9.5rem", width: "17.75rem" }),
|
|
441
|
+
/* @__PURE__ */ t(c, { noGradient: !0, children: [
|
|
442
|
+
/* @__PURE__ */ e(n, { height: "1.5rem" }),
|
|
369
443
|
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
370
|
-
/* @__PURE__ */ e(
|
|
371
|
-
/* @__PURE__ */ e(
|
|
372
|
-
/* @__PURE__ */ e(
|
|
373
|
-
/* @__PURE__ */ e(
|
|
444
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
445
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
446
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
|
|
447
|
+
/* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" })
|
|
374
448
|
] })
|
|
375
449
|
] })
|
|
376
450
|
] }, `${o}-5`)
|
|
377
|
-
] }),
|
|
451
|
+
] }), ie = ({
|
|
378
452
|
keyPrefix: o,
|
|
379
453
|
isLoading: m = !1,
|
|
380
|
-
fallbackComponent:
|
|
454
|
+
fallbackComponent: h = /* @__PURE__ */ e(y, {}),
|
|
381
455
|
children: a
|
|
382
|
-
}) => /* @__PURE__ */ e(
|
|
456
|
+
}) => /* @__PURE__ */ e(M, { fallbackComponent: h, children: m === !0 ? /* @__PURE__ */ e(re, { keyPrefix: o }) : a }), te = D(Z), ge = W(
|
|
383
457
|
({
|
|
384
458
|
timeToReadText: o = "{0} min read",
|
|
385
459
|
items: m,
|
|
386
|
-
isLoading:
|
|
460
|
+
isLoading: h = !1,
|
|
387
461
|
onSelectCard: a = () => {
|
|
388
462
|
},
|
|
389
|
-
onShare:
|
|
463
|
+
onShare: p = () => {
|
|
390
464
|
},
|
|
391
|
-
onBookmark:
|
|
465
|
+
onBookmark: k = () => {
|
|
392
466
|
},
|
|
393
|
-
getImage:
|
|
467
|
+
getImage: N = () => {
|
|
394
468
|
},
|
|
395
|
-
isSeparated:
|
|
396
|
-
bookmarkComponent:
|
|
397
|
-
componentName:
|
|
398
|
-
LinkComponent:
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
469
|
+
isSeparated: $ = !0,
|
|
470
|
+
bookmarkComponent: C = /* @__PURE__ */ e(y, {}),
|
|
471
|
+
componentName: u,
|
|
472
|
+
LinkComponent: B,
|
|
473
|
+
hasShare: R = !0,
|
|
474
|
+
hasDelete: w = !1,
|
|
475
|
+
onDelete: s = () => {
|
|
476
|
+
}
|
|
477
|
+
}, d) => {
|
|
478
|
+
const _ = F(() => m == null ? void 0 : m.map((r, b) => {
|
|
479
|
+
var g;
|
|
402
480
|
return /* @__PURE__ */ e(
|
|
403
|
-
|
|
481
|
+
te,
|
|
404
482
|
{
|
|
405
483
|
blogUuid: r == null ? void 0 : r.uuid,
|
|
406
484
|
title: r == null ? void 0 : r.title,
|
|
@@ -413,20 +491,23 @@ const Q = S.a`
|
|
|
413
491
|
numberOfComments: r == null ? void 0 : r.numberOfComments,
|
|
414
492
|
isSponsored: r == null ? void 0 : r.isSponsored,
|
|
415
493
|
isBookmarked: r == null ? void 0 : r.isBookmarked,
|
|
416
|
-
onSelectCard: (
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
494
|
+
onSelectCard: (S, G) => a == null ? void 0 : a(r, G),
|
|
495
|
+
hasShare: R,
|
|
496
|
+
hasDelete: w,
|
|
497
|
+
onDelete: () => s == null ? void 0 : s(r),
|
|
498
|
+
onShare: () => p == null ? void 0 : p(r),
|
|
499
|
+
onBookmark: k,
|
|
500
|
+
imageUrl: N(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
|
|
501
|
+
bookmarkComponent: C,
|
|
502
|
+
metadata: { name: u, accessor: r == null ? void 0 : r.accessor },
|
|
503
|
+
LinkComponent: B
|
|
423
504
|
},
|
|
424
|
-
`blog-card-item__${
|
|
505
|
+
`blog-card-item__${b + 1}__${(g = r == null ? void 0 : r.isBookmarked) == null ? void 0 : g.toString()}`
|
|
425
506
|
);
|
|
426
507
|
}), [m]);
|
|
427
|
-
return /* @__PURE__ */ e(
|
|
508
|
+
return /* @__PURE__ */ e(ie, { isLoading: h, keyPrefix: "blog-list-skeleton", children: /* @__PURE__ */ e(x, { ref: d, className: $ ? "separated" : "", children: _ }) });
|
|
428
509
|
}
|
|
429
510
|
);
|
|
430
511
|
export {
|
|
431
|
-
|
|
512
|
+
ge as default
|
|
432
513
|
};
|