@lanaco/lnc-react-ui 4.0.186 → 4.0.188
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/BannerSectionCarousel.cjs +4 -4
- package/dist/BannerSectionCarousel.js +150 -158
- package/dist/BlogCardsSponsoredSection.cjs +5 -5
- package/dist/BlogCardsSponsoredSection.js +55 -51
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +182 -215
- package/dist/BlogListSection.cjs +6 -6
- package/dist/BlogListSection.js +134 -116
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +26 -24
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +3 -3
- package/dist/BlogSingleSection.js +21 -19
- package/dist/BlogsSectionDetailed.cjs +4 -4
- package/dist/BlogsSectionDetailed.js +81 -76
- package/dist/BlogsSectionLarge.cjs +6 -6
- package/dist/BlogsSectionLarge.js +34 -31
- package/dist/BlogsSectionSimple.cjs +8 -8
- package/dist/BlogsSectionSimple.js +68 -63
- package/dist/BlogsSectionSimpleCentered.cjs +9 -9
- package/dist/BlogsSectionSimpleCentered.js +67 -54
- package/dist/BlogsSectionWithFilters.cjs +9 -9
- package/dist/BlogsSectionWithFilters.js +98 -84
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +50 -32
- package/dist/{CategorySimpleCard-DRQuoxXu.js → CategorySimpleCard-CEzArySG.js} +18 -17
- package/dist/{CategorySimpleCard-D5N8cx0Z.cjs → CategorySimpleCard-COGlTj06.cjs} +5 -5
- package/dist/DetailedProductsInfinitiveSection.cjs +4 -4
- package/dist/DetailedProductsInfinitiveSection.js +23 -21
- package/dist/DetailedProductsSection.cjs +3 -3
- package/dist/DetailedProductsSection.js +38 -35
- package/dist/FieldOfInterestsMasonrySection.cjs +12 -12
- package/dist/FieldOfInterestsMasonrySection.js +87 -83
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +7 -7
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +47 -43
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +87 -62
- package/dist/GeneralWithTagsCardsSection.cjs +4 -4
- package/dist/GeneralWithTagsCardsSection.js +83 -46
- package/dist/GiftCardsSection.cjs +7 -7
- package/dist/GiftCardsSection.js +56 -47
- package/dist/MasonryGeneralCardsSection.cjs +9 -9
- package/dist/MasonryGeneralCardsSection.js +82 -68
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +58 -50
- package/dist/ProductsWithBannerSection.cjs +10 -10
- package/dist/ProductsWithBannerSection.js +79 -70
- package/dist/QuattroCardsSection.cjs +8 -8
- package/dist/QuattroCardsSection.js +62 -40
- package/dist/ReviewsSection.cjs +8 -8
- package/dist/ReviewsSection.js +92 -67
- package/dist/SalesCampaignsSection.cjs +18 -18
- package/dist/SalesCampaignsSection.js +304 -298
- package/dist/ShopCardsSection.cjs +3 -3
- package/dist/ShopCardsSection.js +25 -23
- package/dist/SimpleCategoriesSection.cjs +4 -4
- package/dist/SimpleCategoriesSection.js +25 -22
- package/dist/SimpleProductsSection.cjs +3 -3
- package/dist/SimpleProductsSection.js +53 -50
- package/dist/UrgentSaleProductsSection.cjs +4 -4
- package/dist/UrgentSaleProductsSection.js +41 -38
- package/dist/{index-CA59z2ge.js → index-9inVkeN6.js} +46 -40
- package/dist/{index-C8QkdNHi.js → index-BB63Jo6p.js} +42 -36
- package/dist/{index-DHV9awrE.cjs → index-BFc3nxYZ.cjs} +3 -3
- package/dist/{index-MiN854X_.cjs → index-BWE-RCPy.cjs} +6 -6
- package/dist/{index-Bmr3IeZ_.cjs → index-DBokGIps.cjs} +14 -14
- package/dist/{index-BipuzfLW.js → index-DMHtIdm-.js} +39 -29
- package/dist/{index-0p_3g3pT.cjs → index-D_5jNP-o.cjs} +3 -3
- package/dist/{index-DZ8515cZ.js → index-DdUC0zgY.js} +211 -192
- package/package.json +1 -1
package/dist/BlogListSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),a=require("react"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("react"),P=require("./Icon.cjs"),R=require("./IconButton.cjs"),d=require("./utils-RnrgDDZP.cjs"),N=require("./index-uwl7BjRF.cjs"),q=require("./style-CkcozOY6.cjs"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),W=require("./consts-goSZX3xP.cjs"),t=require("./style-BAcV7F53.cjs"),B=x.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
@media (max-width: ${
|
|
98
|
+
@media (max-width: ${W.MOBILE_SIZE_PX+"px"}) {
|
|
99
99
|
flex-direction: column;
|
|
100
100
|
padding: 0;
|
|
101
101
|
background: transparent;
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
`,
|
|
149
|
+
`,I=a.forwardRef(({blogUuid:i,title:l,imageUrl:c,options:o,publishedAt:h,timeToReadText:u="{0} min read",timeToRead:j=0,numberOfLikes:w=0,numberOfComments:f=0,isBookmarked:p=!1,onSelectCard:_=()=>{},onBookmark:k=()=>{},onShare:g=()=>{},bookmarkComponent:r=e.jsx(e.Fragment,{}),metadata:s,titleSlug:m,LinkComponent:S},b)=>{const $=S||"a",v=()=>d.isDefined(r)?a.cloneElement(r,{key:`bookmark_blog__${i}__${p}`,isBookmarked:p,blogUuid:i,onBookmark:(y,C)=>k(y,C),ref:b,componentName:"ExploreBlogSectionCard"}):e.jsx(e.Fragment,{}),L=a.useRef();return e.jsxs(B,{ref:L,name:s==null?void 0:s.name,"data-accessor":s==null?void 0:s.accessor,onClick:n=>_(n,L),className:"blog-card-item",as:$,...S?{to:`/blog/${m}`}:{href:`/blog/${m}`},children:[e.jsx(N.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:l}),e.jsxs("div",{className:"wrapper__tags-action",children:[e.jsx("div",{className:"wrapper__tags",children:o&&(o==null?void 0:o.map((n,y)=>e.jsx(q.BlogTag,{color:n==null?void 0:n.color,children:n==null?void 0:n.name},`blog-card-sponsored-option__${y+1}`)))}),e.jsxs("div",{className:"info__content mobile-only",onClick:n=>{n.stopPropagation(),n.preventDefault()},children:[e.jsx(v,{}),e.jsx(R,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{g()}})]})]})]}),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(P,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),d.getRoundedNumber(w)]}),e.jsxs("div",{children:[e.jsx(P,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),d.getRoundedNumber(f)]})]})]}),e.jsxs("div",{className:"info__content desktop-only",onClick:n=>{n==null||n.preventDefault(),n==null||n.stopPropagation()},children:[e.jsx(v,{}),e.jsx(R,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{g()}})]})]})]})]})}),G=x.styled.div`
|
|
150
150
|
display: flex;
|
|
151
151
|
flex-direction: column;
|
|
152
152
|
align-items: flex-start;
|
|
@@ -170,10 +170,10 @@
|
|
|
170
170
|
bottom: -1.25rem;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
`,
|
|
174
|
-
@media (max-width: ${
|
|
173
|
+
`,z=x.styled(t.SkeletonColumnWrapper)`
|
|
174
|
+
@media (max-width: ${W.MOBILE_SIZE_PX+"px"}) {
|
|
175
175
|
& > div {
|
|
176
176
|
flex-direction: column;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
`,
|
|
179
|
+
`,E=({keyPrefix:i})=>e.jsxs(z,{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`)]}),O=({keyPrefix:i,isLoading:l=!1,fallbackComponent:c=e.jsx(e.Fragment,{}),children:o})=>e.jsx(a.Suspense,{fallbackComponent:c,children:l===!0?e.jsx(E,{keyPrefix:i}):o}),T=a.memo(I),D=a.forwardRef(({timeToReadText:i="{0} min read",items:l,isLoading:c=!1,onSelectCard:o=()=>{},onShare:h=()=>{},onBookmark:u=()=>{},getImage:j=()=>{},isSeparated:w=!0,bookmarkComponent:f=e.jsx(e.Fragment,{}),componentName:p,LinkComponent:_},k)=>{const g=a.useMemo(()=>l==null?void 0:l.map((r,s)=>{var m;return e.jsx(T,{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:(S,b)=>o==null?void 0:o(r,b),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:p,accessor:r==null?void 0:r.accessor},LinkComponent:_},`blog-card-item__${s+1}__${(m=r==null?void 0:r.isBookmarked)==null?void 0:m.toString()}`)}),[l]);return e.jsx(O,{isLoading:c,keyPrefix:"blog-list-skeleton",children:e.jsx(G,{ref:k,className:w?"separated":"",children:g})})});module.exports=D;
|
package/dist/BlogListSection.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as t, jsx as e, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { o as
|
|
6
|
-
import { P as
|
|
7
|
-
import { B as
|
|
8
|
-
import { s as
|
|
9
|
-
import { M as
|
|
10
|
-
import { S as s, a as l, c as
|
|
11
|
-
const
|
|
1
|
+
import { jsxs as t, jsx as e, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z, useRef as D, cloneElement as E, Suspense as M, memo as P, useMemo as U } from "react";
|
|
3
|
+
import I from "./Icon.js";
|
|
4
|
+
import j from "./IconButton.js";
|
|
5
|
+
import { o as q, q as A, s as F, v as L, l as X } from "./utils-Dc5zIpaz.js";
|
|
6
|
+
import { P as Z } from "./index-C_NnINik.js";
|
|
7
|
+
import { B as H } from "./style-C7FUSHmS.js";
|
|
8
|
+
import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
9
|
+
import { M as T } from "./consts-BuFChS64.js";
|
|
10
|
+
import { S as s, a as l, c as g, b as i } from "./style-CXMUA6cI.js";
|
|
11
|
+
const J = S.a`
|
|
12
12
|
text-decoration: none;
|
|
13
13
|
color: var(--gray-950);
|
|
14
14
|
display: flex;
|
|
@@ -62,7 +62,7 @@ const Z = B.a`
|
|
|
62
62
|
font-weight: 600;
|
|
63
63
|
line-height: 1.5rem;
|
|
64
64
|
letter-spacing: 0.1px;
|
|
65
|
-
${
|
|
65
|
+
${q(3)}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
& .wrapper__tags {
|
|
@@ -105,7 +105,7 @@ const Z = B.a`
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
@media (max-width: ${
|
|
108
|
+
@media (max-width: ${T + "px"}) {
|
|
109
109
|
flex-direction: column;
|
|
110
110
|
padding: 0;
|
|
111
111
|
background: transparent;
|
|
@@ -156,118 +156,134 @@ const Z = B.a`
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
`,
|
|
159
|
+
`, K = z(
|
|
160
160
|
({
|
|
161
161
|
blogUuid: o,
|
|
162
|
-
title:
|
|
162
|
+
title: m,
|
|
163
163
|
imageUrl: c,
|
|
164
164
|
options: a,
|
|
165
165
|
publishedAt: h,
|
|
166
|
-
timeToReadText:
|
|
167
|
-
timeToRead:
|
|
168
|
-
numberOfLikes:
|
|
169
|
-
numberOfComments:
|
|
170
|
-
isBookmarked:
|
|
171
|
-
onSelectCard:
|
|
166
|
+
timeToReadText: _ = "{0} min read",
|
|
167
|
+
timeToRead: b = 0,
|
|
168
|
+
numberOfLikes: v = 0,
|
|
169
|
+
numberOfComments: y = 0,
|
|
170
|
+
isBookmarked: f = !1,
|
|
171
|
+
onSelectCard: k = () => {
|
|
172
172
|
},
|
|
173
|
-
onBookmark:
|
|
173
|
+
onBookmark: $ = () => {
|
|
174
174
|
},
|
|
175
|
-
onShare:
|
|
175
|
+
onShare: u = () => {
|
|
176
176
|
},
|
|
177
|
-
bookmarkComponent:
|
|
178
|
-
metadata:
|
|
179
|
-
titleSlug:
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
177
|
+
bookmarkComponent: r = /* @__PURE__ */ e(w, {}),
|
|
178
|
+
metadata: d,
|
|
179
|
+
titleSlug: p,
|
|
180
|
+
LinkComponent: N
|
|
181
|
+
}, B) => {
|
|
182
|
+
const O = N || "a", G = () => X(r) ? E(r, {
|
|
183
|
+
key: `bookmark_blog__${o}__${f}`,
|
|
184
|
+
isBookmarked: f,
|
|
184
185
|
blogUuid: o,
|
|
185
|
-
onBookmark: (
|
|
186
|
-
ref:
|
|
186
|
+
onBookmark: (C, W) => $(C, W),
|
|
187
|
+
ref: B,
|
|
187
188
|
componentName: "ExploreBlogSectionCard"
|
|
188
|
-
}) : /* @__PURE__ */ e(
|
|
189
|
+
}) : /* @__PURE__ */ e(w, {}), R = D();
|
|
189
190
|
return /* @__PURE__ */ t(
|
|
190
|
-
|
|
191
|
+
J,
|
|
191
192
|
{
|
|
192
|
-
ref:
|
|
193
|
-
name:
|
|
194
|
-
"data-accessor":
|
|
195
|
-
onClick: (n) =>
|
|
193
|
+
ref: R,
|
|
194
|
+
name: d == null ? void 0 : d.name,
|
|
195
|
+
"data-accessor": d == null ? void 0 : d.accessor,
|
|
196
|
+
onClick: (n) => k(n, R),
|
|
196
197
|
className: "blog-card-item",
|
|
197
|
-
|
|
198
|
+
as: O,
|
|
199
|
+
...N ? { to: `/blog/${p}` } : { href: `/blog/${p}` },
|
|
198
200
|
children: [
|
|
199
|
-
/* @__PURE__ */ e(
|
|
201
|
+
/* @__PURE__ */ e(Z, { src: c, className: "wrapper__image" }),
|
|
200
202
|
/* @__PURE__ */ t("div", { className: "wrapper__content", children: [
|
|
201
203
|
/* @__PURE__ */ t("div", { className: "wrapper__subcontent", children: [
|
|
202
|
-
/* @__PURE__ */ e("div", { className: "wrapper__title", children:
|
|
204
|
+
/* @__PURE__ */ e("div", { className: "wrapper__title", children: m }),
|
|
203
205
|
/* @__PURE__ */ t("div", { className: "wrapper__tags-action", children: [
|
|
204
|
-
/* @__PURE__ */ e("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((n,
|
|
205
|
-
|
|
206
|
+
/* @__PURE__ */ e("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((n, C) => /* @__PURE__ */ e(
|
|
207
|
+
H,
|
|
206
208
|
{
|
|
207
209
|
color: n == null ? void 0 : n.color,
|
|
208
210
|
children: n == null ? void 0 : n.name
|
|
209
211
|
},
|
|
210
|
-
`blog-card-sponsored-option__${
|
|
212
|
+
`blog-card-sponsored-option__${C + 1}`
|
|
211
213
|
))) }),
|
|
212
|
-
/* @__PURE__ */ t(
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
214
|
+
/* @__PURE__ */ t(
|
|
215
|
+
"div",
|
|
216
|
+
{
|
|
217
|
+
className: "info__content mobile-only",
|
|
218
|
+
onClick: (n) => {
|
|
219
|
+
n.stopPropagation(), n.preventDefault();
|
|
220
|
+
},
|
|
221
|
+
children: [
|
|
222
|
+
/* @__PURE__ */ e(G, {}),
|
|
223
|
+
/* @__PURE__ */ e(
|
|
224
|
+
j,
|
|
225
|
+
{
|
|
226
|
+
icon: " mng-lnc-share",
|
|
227
|
+
borderRadius: "curved",
|
|
228
|
+
btnType: "basic",
|
|
229
|
+
color: "neutral",
|
|
230
|
+
onClick: () => {
|
|
231
|
+
u();
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
)
|
|
229
238
|
] })
|
|
230
239
|
] }),
|
|
231
240
|
/* @__PURE__ */ t("div", { className: "wrapper__info", children: [
|
|
232
241
|
/* @__PURE__ */ t("div", { className: "info__content", children: [
|
|
233
|
-
/* @__PURE__ */ e("div", { className: "info__text", children: `${
|
|
242
|
+
/* @__PURE__ */ e("div", { className: "info__text", children: `${A(
|
|
234
243
|
h
|
|
235
|
-
)} • ${
|
|
244
|
+
)} • ${F(_, b)}` }),
|
|
236
245
|
/* @__PURE__ */ t("div", { className: "info__text", children: [
|
|
237
246
|
/* @__PURE__ */ t("div", { children: [
|
|
238
|
-
/* @__PURE__ */ e(
|
|
239
|
-
|
|
247
|
+
/* @__PURE__ */ e(I, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
|
|
248
|
+
L(v)
|
|
240
249
|
] }),
|
|
241
250
|
/* @__PURE__ */ t("div", { children: [
|
|
242
|
-
/* @__PURE__ */ e(
|
|
243
|
-
|
|
251
|
+
/* @__PURE__ */ e(I, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
|
|
252
|
+
L(y)
|
|
244
253
|
] })
|
|
245
254
|
] })
|
|
246
255
|
] }),
|
|
247
|
-
/* @__PURE__ */ t(
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
256
|
+
/* @__PURE__ */ t(
|
|
257
|
+
"div",
|
|
258
|
+
{
|
|
259
|
+
className: "info__content desktop-only",
|
|
260
|
+
onClick: (n) => {
|
|
261
|
+
n == null || n.preventDefault(), n == null || n.stopPropagation();
|
|
262
|
+
},
|
|
263
|
+
children: [
|
|
264
|
+
/* @__PURE__ */ e(G, {}),
|
|
265
|
+
/* @__PURE__ */ e(
|
|
266
|
+
j,
|
|
267
|
+
{
|
|
268
|
+
icon: " mng-lnc-share",
|
|
269
|
+
borderRadius: "curved",
|
|
270
|
+
btnType: "basic",
|
|
271
|
+
color: "neutral",
|
|
272
|
+
onClick: () => {
|
|
273
|
+
u();
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
)
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
)
|
|
264
280
|
] })
|
|
265
281
|
] })
|
|
266
282
|
]
|
|
267
283
|
}
|
|
268
284
|
);
|
|
269
285
|
}
|
|
270
|
-
),
|
|
286
|
+
), Q = S.div`
|
|
271
287
|
display: flex;
|
|
272
288
|
flex-direction: column;
|
|
273
289
|
align-items: flex-start;
|
|
@@ -291,15 +307,15 @@ const Z = B.a`
|
|
|
291
307
|
bottom: -1.25rem;
|
|
292
308
|
}
|
|
293
309
|
}
|
|
294
|
-
`,
|
|
295
|
-
@media (max-width: ${
|
|
310
|
+
`, V = S(s)`
|
|
311
|
+
@media (max-width: ${T + "px"}) {
|
|
296
312
|
& > div {
|
|
297
313
|
flex-direction: column;
|
|
298
314
|
}
|
|
299
315
|
}
|
|
300
|
-
`,
|
|
316
|
+
`, Y = ({ keyPrefix: o }) => /* @__PURE__ */ t(V, { children: [
|
|
301
317
|
/* @__PURE__ */ t(l, { children: [
|
|
302
|
-
/* @__PURE__ */ e(
|
|
318
|
+
/* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
|
|
303
319
|
/* @__PURE__ */ t(s, { noGradient: !0, children: [
|
|
304
320
|
/* @__PURE__ */ e(i, { height: "1.5rem" }),
|
|
305
321
|
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
@@ -311,7 +327,7 @@ const Z = B.a`
|
|
|
311
327
|
] })
|
|
312
328
|
] }, `${o}-1`),
|
|
313
329
|
/* @__PURE__ */ t(l, { children: [
|
|
314
|
-
/* @__PURE__ */ e(
|
|
330
|
+
/* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
|
|
315
331
|
/* @__PURE__ */ t(s, { noGradient: !0, children: [
|
|
316
332
|
/* @__PURE__ */ e(i, { height: "1.5rem" }),
|
|
317
333
|
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
@@ -323,7 +339,7 @@ const Z = B.a`
|
|
|
323
339
|
] })
|
|
324
340
|
] }, `${o}-2`),
|
|
325
341
|
/* @__PURE__ */ t(l, { children: [
|
|
326
|
-
/* @__PURE__ */ e(
|
|
342
|
+
/* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
|
|
327
343
|
/* @__PURE__ */ t(s, { noGradient: !0, children: [
|
|
328
344
|
/* @__PURE__ */ e(i, { height: "1.5rem" }),
|
|
329
345
|
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
@@ -335,7 +351,7 @@ const Z = B.a`
|
|
|
335
351
|
] })
|
|
336
352
|
] }, `${o}-3`),
|
|
337
353
|
/* @__PURE__ */ t(l, { children: [
|
|
338
|
-
/* @__PURE__ */ e(
|
|
354
|
+
/* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
|
|
339
355
|
/* @__PURE__ */ t(s, { noGradient: !0, children: [
|
|
340
356
|
/* @__PURE__ */ e(i, { height: "1.5rem" }),
|
|
341
357
|
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
@@ -347,7 +363,7 @@ const Z = B.a`
|
|
|
347
363
|
] })
|
|
348
364
|
] }, `${o}-4`),
|
|
349
365
|
/* @__PURE__ */ t(l, { children: [
|
|
350
|
-
/* @__PURE__ */ e(
|
|
366
|
+
/* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
|
|
351
367
|
/* @__PURE__ */ t(s, { noGradient: !0, children: [
|
|
352
368
|
/* @__PURE__ */ e(i, { height: "1.5rem" }),
|
|
353
369
|
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
@@ -358,32 +374,33 @@ const Z = B.a`
|
|
|
358
374
|
] })
|
|
359
375
|
] })
|
|
360
376
|
] }, `${o}-5`)
|
|
361
|
-
] }),
|
|
377
|
+
] }), x = ({
|
|
362
378
|
keyPrefix: o,
|
|
363
|
-
isLoading:
|
|
364
|
-
fallbackComponent: c = /* @__PURE__ */ e(
|
|
379
|
+
isLoading: m = !1,
|
|
380
|
+
fallbackComponent: c = /* @__PURE__ */ e(w, {}),
|
|
365
381
|
children: a
|
|
366
|
-
}) => /* @__PURE__ */ e(
|
|
382
|
+
}) => /* @__PURE__ */ e(M, { fallbackComponent: c, children: m === !0 ? /* @__PURE__ */ e(Y, { keyPrefix: o }) : a }), ee = P(K), ce = z(
|
|
367
383
|
({
|
|
368
384
|
timeToReadText: o = "{0} min read",
|
|
369
|
-
items:
|
|
385
|
+
items: m,
|
|
370
386
|
isLoading: c = !1,
|
|
371
387
|
onSelectCard: a = () => {
|
|
372
388
|
},
|
|
373
389
|
onShare: h = () => {
|
|
374
390
|
},
|
|
375
|
-
onBookmark:
|
|
391
|
+
onBookmark: _ = () => {
|
|
376
392
|
},
|
|
377
|
-
getImage:
|
|
393
|
+
getImage: b = () => {
|
|
378
394
|
},
|
|
379
|
-
isSeparated:
|
|
380
|
-
bookmarkComponent:
|
|
381
|
-
componentName:
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
395
|
+
isSeparated: v = !0,
|
|
396
|
+
bookmarkComponent: y = /* @__PURE__ */ e(w, {}),
|
|
397
|
+
componentName: f,
|
|
398
|
+
LinkComponent: k
|
|
399
|
+
}, $) => {
|
|
400
|
+
const u = U(() => m == null ? void 0 : m.map((r, d) => {
|
|
401
|
+
var p;
|
|
385
402
|
return /* @__PURE__ */ e(
|
|
386
|
-
|
|
403
|
+
ee,
|
|
387
404
|
{
|
|
388
405
|
blogUuid: r == null ? void 0 : r.uuid,
|
|
389
406
|
title: r == null ? void 0 : r.title,
|
|
@@ -396,19 +413,20 @@ const Z = B.a`
|
|
|
396
413
|
numberOfComments: r == null ? void 0 : r.numberOfComments,
|
|
397
414
|
isSponsored: r == null ? void 0 : r.isSponsored,
|
|
398
415
|
isBookmarked: r == null ? void 0 : r.isBookmarked,
|
|
399
|
-
onSelectCard: (
|
|
416
|
+
onSelectCard: (N, B) => a == null ? void 0 : a(r, B),
|
|
400
417
|
onShare: () => h == null ? void 0 : h(r),
|
|
401
|
-
onBookmark:
|
|
402
|
-
imageUrl:
|
|
403
|
-
bookmarkComponent:
|
|
404
|
-
metadata: { name:
|
|
418
|
+
onBookmark: _,
|
|
419
|
+
imageUrl: b(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
|
|
420
|
+
bookmarkComponent: y,
|
|
421
|
+
metadata: { name: f, accessor: r == null ? void 0 : r.accessor },
|
|
422
|
+
LinkComponent: k
|
|
405
423
|
},
|
|
406
|
-
`blog-card-item__${
|
|
424
|
+
`blog-card-item__${d + 1}__${(p = r == null ? void 0 : r.isBookmarked) == null ? void 0 : p.toString()}`
|
|
407
425
|
);
|
|
408
|
-
}), [
|
|
409
|
-
return /* @__PURE__ */ e(
|
|
426
|
+
}), [m]);
|
|
427
|
+
return /* @__PURE__ */ e(x, { isLoading: c, keyPrefix: "blog-list-skeleton", children: /* @__PURE__ */ e(Q, { ref: $, className: v ? "separated" : "", children: u }) });
|
|
410
428
|
}
|
|
411
429
|
);
|
|
412
430
|
export {
|
|
413
|
-
|
|
431
|
+
ce as default
|
|
414
432
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),c=require("react"),
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),c=require("react"),j=require("./useDetectMobile-zkbzoOGV.cjs"),M=require("./index-BFc3nxYZ.cjs"),N=require("./Button.cjs"),f=require("./style-BTTXJFJN.cjs"),y=c.memo(M.SimpleProductCard),P=c.forwardRef(({buttonText:t,buttonLink:u,items:r,onButtonAction:a=()=>{},onSelectCard:s=()=>{},isLoading:R=!1,limit:_=4,getImage:l=()=>{},isHighlight:n=!1,componentName:d,LinkComponent:m},p)=>{const g=j.useDetectMobile(),b=c.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,q)=>i.jsx(y,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(w,h)=>s==null?void 0:s(e==null?void 0:e.uuid,h),image:l(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:d,accessor:e==null?void 0:e.accessor},LinkComponent:m},q))},[r]);return i.jsxs(f.Wrapper,{ref:p,className:`blog-product-cards-section ${n?"highlight":""}`,children:[i.jsx("div",{className:"wrapper__grid",children:b}),i.jsx(N,{text:t,borderRadius:"curved",btnType:g?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>a(u)})]})});module.exports=P;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { u as
|
|
4
|
-
import { S as
|
|
5
|
-
import
|
|
6
|
-
import { W as
|
|
7
|
-
const
|
|
1
|
+
import { jsx as o, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { memo as N, forwardRef as M, useMemo as P } from "react";
|
|
3
|
+
import { u as _ } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
+
import { S as w } from "./index-BB63Jo6p.js";
|
|
5
|
+
import y from "./Button.js";
|
|
6
|
+
import { W as U } from "./style-tw6KjI2J.js";
|
|
7
|
+
const j = N(w), L = M(
|
|
8
8
|
({
|
|
9
9
|
buttonText: a,
|
|
10
10
|
buttonLink: c,
|
|
@@ -13,17 +13,18 @@ const U = h(_), D = N(
|
|
|
13
13
|
},
|
|
14
14
|
onSelectCard: i = () => {
|
|
15
15
|
},
|
|
16
|
-
isLoading:
|
|
17
|
-
limit:
|
|
16
|
+
isLoading: v = !1,
|
|
17
|
+
limit: z = 4,
|
|
18
18
|
getImage: u = () => {
|
|
19
19
|
},
|
|
20
20
|
isHighlight: l = !1,
|
|
21
|
-
componentName: d
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
componentName: d,
|
|
22
|
+
LinkComponent: m
|
|
23
|
+
}, p) => {
|
|
24
|
+
const n = _(), f = P(() => {
|
|
24
25
|
var s;
|
|
25
|
-
return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e,
|
|
26
|
-
|
|
26
|
+
return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e, g) => /* @__PURE__ */ o(
|
|
27
|
+
j,
|
|
27
28
|
{
|
|
28
29
|
title: e == null ? void 0 : e.name,
|
|
29
30
|
price: e == null ? void 0 : e.price,
|
|
@@ -32,26 +33,27 @@ const U = h(_), D = N(
|
|
|
32
33
|
currency: e == null ? void 0 : e.currency,
|
|
33
34
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
34
35
|
uuid: e == null ? void 0 : e.uuid,
|
|
35
|
-
onSelectCard: (
|
|
36
|
+
onSelectCard: (B, b) => i == null ? void 0 : i(e == null ? void 0 : e.uuid, b),
|
|
36
37
|
image: u(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
37
|
-
metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
|
|
38
|
+
metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
|
|
39
|
+
LinkComponent: m
|
|
38
40
|
},
|
|
39
|
-
|
|
41
|
+
g
|
|
40
42
|
));
|
|
41
43
|
}, [r]);
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
|
|
44
|
+
return /* @__PURE__ */ h(
|
|
45
|
+
U,
|
|
44
46
|
{
|
|
45
|
-
ref:
|
|
47
|
+
ref: p,
|
|
46
48
|
className: `blog-product-cards-section ${l ? "highlight" : ""}`,
|
|
47
49
|
children: [
|
|
48
|
-
/* @__PURE__ */ o("div", { className: "wrapper__grid", children:
|
|
50
|
+
/* @__PURE__ */ o("div", { className: "wrapper__grid", children: f }),
|
|
49
51
|
/* @__PURE__ */ o(
|
|
50
|
-
|
|
52
|
+
y,
|
|
51
53
|
{
|
|
52
54
|
text: a,
|
|
53
55
|
borderRadius: "curved",
|
|
54
|
-
btnType:
|
|
56
|
+
btnType: n ? "basic" : "outline",
|
|
55
57
|
color: "neutral",
|
|
56
58
|
className: "wrapper__action",
|
|
57
59
|
onClick: () => t(c)
|
|
@@ -63,5 +65,5 @@ const U = h(_), D = N(
|
|
|
63
65
|
}
|
|
64
66
|
);
|
|
65
67
|
export {
|
|
66
|
-
|
|
68
|
+
L as default
|
|
67
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),o=require("react"),q=require("./useDetectMobile-zkbzoOGV.cjs"),_=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),o=require("react"),q=require("./useDetectMobile-zkbzoOGV.cjs"),_=require("./index-D_5jNP-o.cjs"),f=require("./Button.cjs"),j=require("./style-BTTXJFJN.cjs"),w=o.memo(_.ShopCard),M=o.forwardRef(({buttonText:u,buttonLink:a,items:r,onButtonAction:c=()=>{},onSelectCard:s=()=>{},isLoading:v=!1,limit:R=4,getImage:n=()=>{},isHighlight:l=!1,componentName:d},p)=>{const h=q.useDetectMobile(),m=o.useMemo(()=>{var t;return(t=r==null?void 0:r.slice(0,4))==null?void 0:t.map((e,g)=>i.jsx(w,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:(C,b)=>s==null?void 0:s(e==null?void 0:e.uuid,b),image:n(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0,metadata:{name:d,accessor:e==null?void 0:e.accessor}},`shop-card__${g+1}`))},[r]);return i.jsxs(j.Wrapper,{ref:p,className:l?"highlight":"",children:[i.jsx("div",{className:"wrapper__grid",children:m}),i.jsx(f,{text:u,borderRadius:"curved",btnType:h?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>c(a)})]})});module.exports=M;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { memo as b, forwardRef as _, useMemo as w } from "react";
|
|
3
3
|
import { u as v } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
-
import { S as M } from "./index-
|
|
4
|
+
import { S as M } from "./index-9inVkeN6.js";
|
|
5
5
|
import C from "./Button.js";
|
|
6
6
|
import { W as N } from "./style-tw6KjI2J.js";
|
|
7
7
|
const S = b(M), L = _(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
@media (max-width: ${
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),s=require("react"),g=require("./index-BWE-RCPy.cjs"),l=require("./style-BAcV7F53.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-goSZX3xP.cjs"),x=c.styled(l.SkeletonColumnWrapper)`
|
|
2
|
+
@media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
|
|
3
3
|
& > div {
|
|
4
4
|
height: 13.25rem;
|
|
5
5
|
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
box-shadow: none;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`,S=({keyPrefix:r})=>n.jsx(x,{children:n.jsx(l.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${r}-1`)}),h=({keyPrefix:r,isLoading:t=!1,fallbackComponent:o=n.jsx(n.Fragment,{}),children:e})=>n.jsx(s.Suspense,{fallbackComponent:o,children:t===!0?n.jsx(S,{keyPrefix:r}):e}),f=s.forwardRef((r,t)=>{const{isLoading:o,item:e,onSelectCard:i=()=>{},getImage:a=()=>{},LinkComponent:u}=r;return n.jsx(h,{isLoading:o,keyPrefix:"blogs-single-skeleton",children:n.jsx(g.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),LinkComponent:u})})});module.exports=f;
|