@lanaco/lnc-react-ui 4.0.150 → 4.0.152
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/AdBannerSection.cjs +3 -3
- package/dist/AdBannerSection.js +16 -16
- package/dist/BannerSectionBasic.cjs +4 -4
- package/dist/BannerSectionBasic.js +33 -32
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +33 -33
- package/dist/BlogCardsSponsoredSection.cjs +3 -3
- package/dist/BlogCardsSponsoredSection.js +15 -15
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -12
- package/dist/BlogExploreSection.cjs +4 -4
- package/dist/BlogExploreSection.js +30 -30
- package/dist/BlogListSection.cjs +2 -2
- package/dist/BlogListSection.js +28 -28
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +20 -19
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +22 -22
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +24 -24
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{DailyMotion-CPQ6kDJJ.cjs → DailyMotion-BaFUcQKQ.cjs} +1 -1
- package/dist/{DailyMotion-BrbMSyj1.js → DailyMotion-ByXblnua.js} +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +53 -84
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/{Facebook-Dw3my9_4.js → Facebook-BCqiOWZO.js} +1 -1
- package/dist/{Facebook-DKhRiODC.cjs → Facebook-D9wwecSW.cjs} +1 -1
- package/dist/FaqSection.cjs +2 -2
- package/dist/FaqSection.js +2 -2
- package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
- package/dist/FieldOfInterestsMasonrySection.js +65 -48
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +3 -3
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +27 -25
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +40 -32
- package/dist/{FilePlayer-DlCyGLHB.cjs → FilePlayer-DB6jnpeC.cjs} +1 -1
- package/dist/{FilePlayer-Ckx8dmB0.js → FilePlayer-ktaNhf3p.js} +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +9 -9
- package/dist/GeneralWithTagsCardsSection.js +15 -15
- package/dist/{Kaltura-31Xm8S1J.cjs → Kaltura-CCdXLzOa.cjs} +1 -1
- package/dist/{Kaltura-qHdDvnjZ.js → Kaltura-CvlN0HDg.js} +1 -1
- package/dist/LoanCalculatorSection.cjs +2 -2
- package/dist/LoanCalculatorSection.js +89 -88
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/{Mixcloud-DvH0vfg5.js → Mixcloud-Bb8MTclI.js} +1 -1
- package/dist/{Mixcloud-CP9Zq_TX.cjs → Mixcloud-nG_VyBNt.cjs} +1 -1
- package/dist/{Mux-BlblTeid.cjs → Mux-BgB2a8kM.cjs} +1 -1
- package/dist/{Mux--JeF6dPG.js → Mux-DfYpGTiP.js} +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +11 -11
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- package/dist/QuattroCardsSection.cjs +5 -5
- package/dist/QuattroCardsSection.js +7 -7
- package/dist/QuizSection.cjs +7 -7
- package/dist/QuizSection.js +51 -51
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +2 -1
- package/dist/SearchSection-BcbHP6QF.cjs +161 -0
- package/dist/{SearchSection-CsfURtvf.js → SearchSection-DDQ_K98T.js} +52 -52
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/{SoundCloud-1hd9TBSO.cjs → SoundCloud-C86xwUG6.cjs} +1 -1
- package/dist/{SoundCloud-CKaavZky.js → SoundCloud-DG91z39R.js} +1 -1
- package/dist/StatsSection.cjs +5 -5
- package/dist/StatsSection.js +22 -22
- package/dist/{Streamable-DLxq1ZNX.cjs → Streamable-4uAnb3WN.cjs} +1 -1
- package/dist/{Streamable-CZEPghiG.js → Streamable-BAIWLgyD.js} +1 -1
- package/dist/ToggleSection.cjs +3 -3
- package/dist/ToggleSection.js +10 -10
- package/dist/{Twitch-Bb8e342z.cjs → Twitch-CVAj24ti.cjs} +1 -1
- package/dist/{Twitch-BJeGquex.js → Twitch-DfXeW5Xs.js} +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{Vidyard-WNQdOeK1.cjs → Vidyard-DaCcaaH4.cjs} +1 -1
- package/dist/{Vidyard-CuGoX_VE.js → Vidyard-De3pges0.js} +1 -1
- package/dist/{Vimeo-Da2vBv-V.cjs → Vimeo-8wXdCXGs.cjs} +1 -1
- package/dist/{Vimeo-B9eKoxWn.js → Vimeo-N6I2qi_h.js} +1 -1
- package/dist/{Wistia-ZPcGhh1L.cjs → Wistia-BrUzHQoq.cjs} +1 -1
- package/dist/{Wistia-BB50IUif.js → Wistia-dlV6n6tO.js} +1 -1
- package/dist/{YouTube-4RMnpdLL.cjs → YouTube-Cfsj4ZaP.cjs} +1 -1
- package/dist/{YouTube-CG6JL2_w.js → YouTube-DNJxWqRm.js} +1 -1
- package/dist/{index-DzYKmmn2.js → index-BGY3PSA-.js} +18 -18
- package/dist/{index-Djw_s9eq.js → index-C0SKNFzP.js} +15 -15
- package/dist/{index-cd9auaNr.cjs → index-CLoINIGC.cjs} +3 -3
- package/dist/{index-GxCvHDwv.cjs → index-ELUMKl0N.cjs} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{suspense-categories-card-simple-DuKEj9IU.js → suspense-categories-card-simple-BGj475Ca.js} +11 -10
- package/dist/{suspense-categories-card-simple-DaA0JGJJ.cjs → suspense-categories-card-simple-CjGtzfzp.cjs} +1 -1
- package/dist/suspense-product-card-detailed-BJ-HBkBc.js +577 -0
- package/dist/suspense-product-card-detailed-wPRUytSf.cjs +263 -0
- package/dist/{suspense-product-card-simple-D2m3NcrV.js → suspense-product-card-simple-CLJjab5B.js} +1 -1
- package/dist/{suspense-product-card-simple-BWxWMag0.cjs → suspense-product-card-simple-CrqjSxHI.cjs} +1 -1
- package/dist/{tag-CtleOqEC.js → tag-cRMfP-SZ.js} +9 -9
- package/dist/{tag-Bov1gw34.cjs → tag-yputMSpE.cjs} +4 -4
- package/package.json +1 -1
- package/dist/SearchSection-BGK1Fxaj.cjs +0 -161
- package/dist/suspense-product-card-detailed-C-ZCjG5p.js +0 -538
- package/dist/suspense-product-card-detailed-FuxsUusc.cjs +0 -260
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as l, jsx as n, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as A, Fragment as
|
|
2
|
+
import { forwardRef as A, Fragment as Y } from "react";
|
|
3
3
|
import { P as e } from "./index-CblbdqjE.js";
|
|
4
|
-
import { p as
|
|
5
|
-
import
|
|
4
|
+
import { p as B, s as O } from "./utils-BdsZgOUE.js";
|
|
5
|
+
import P from "./TextInput.js";
|
|
6
6
|
import S from "./Icon.js";
|
|
7
|
-
import
|
|
7
|
+
import ee from "./Link.js";
|
|
8
8
|
import j from "./DropdownMenu.js";
|
|
9
9
|
import F from "./DropdownItem.js";
|
|
10
|
-
import { F as
|
|
11
|
-
import
|
|
10
|
+
import { F as ne } from "./tag-cRMfP-SZ.js";
|
|
11
|
+
import te from "./BlogProductCardsSection.js";
|
|
12
12
|
import { s as E } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
13
|
-
import { P as
|
|
13
|
+
import { P as re } from "./index-CF3HhgvN.js";
|
|
14
14
|
import L from "./BlogListSection.js";
|
|
15
|
-
import { M as
|
|
16
|
-
const
|
|
15
|
+
import { M as ie } from "./consts-BuFChS64.js";
|
|
16
|
+
const ae = E.div`
|
|
17
17
|
display: flex;
|
|
18
18
|
justify-content: space-between;
|
|
19
19
|
align-items: center;
|
|
@@ -94,7 +94,7 @@ const ie = E.div`
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`, ce = A(
|
|
98
98
|
({
|
|
99
99
|
perPageOptions: o = [
|
|
100
100
|
{ code: 10, name: "Show 10 items" },
|
|
@@ -138,7 +138,7 @@ const ie = E.div`
|
|
|
138
138
|
`pagination-page__${v}`
|
|
139
139
|
));
|
|
140
140
|
};
|
|
141
|
-
return /* @__PURE__ */ l(
|
|
141
|
+
return /* @__PURE__ */ l(ae, { className: "pagination", children: [
|
|
142
142
|
/* @__PURE__ */ n(
|
|
143
143
|
j,
|
|
144
144
|
{
|
|
@@ -180,7 +180,7 @@ const ie = E.div`
|
|
|
180
180
|
] })
|
|
181
181
|
] });
|
|
182
182
|
}
|
|
183
|
-
),
|
|
183
|
+
), oe = E.div`
|
|
184
184
|
display: flex;
|
|
185
185
|
align-items: flex-start;
|
|
186
186
|
gap: 2rem;
|
|
@@ -356,7 +356,7 @@ const ie = E.div`
|
|
|
356
356
|
font-style: normal;
|
|
357
357
|
font-weight: 500;
|
|
358
358
|
line-height: 1.25rem;
|
|
359
|
-
${
|
|
359
|
+
${B(2)}
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
& .item__description {
|
|
@@ -371,7 +371,7 @@ const ie = E.div`
|
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
@media (max-width: ${
|
|
374
|
+
@media (max-width: ${ie + "px"}) {
|
|
375
375
|
flex-direction: column;
|
|
376
376
|
|
|
377
377
|
& .landing__main-content {
|
|
@@ -418,7 +418,7 @@ const ie = E.div`
|
|
|
418
418
|
display: none;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
`,
|
|
421
|
+
`, le = A(
|
|
422
422
|
({
|
|
423
423
|
mainTitle: o,
|
|
424
424
|
sideTitle: f,
|
|
@@ -450,7 +450,7 @@ const ie = E.div`
|
|
|
450
450
|
showAllButtonLink: M,
|
|
451
451
|
showAllButtonText: D = "Show all products",
|
|
452
452
|
viewAllButtonText: R = "View all (11)",
|
|
453
|
-
viewAllButtonLink:
|
|
453
|
+
viewAllButtonLink: se,
|
|
454
454
|
handleViewAll: U = () => {
|
|
455
455
|
},
|
|
456
456
|
handleShowAll: V = () => {
|
|
@@ -472,15 +472,15 @@ const ie = E.div`
|
|
|
472
472
|
onBookmark: I = () => {
|
|
473
473
|
},
|
|
474
474
|
bookmarkComponent: $ = /* @__PURE__ */ n(z, { children: " " })
|
|
475
|
-
},
|
|
476
|
-
const
|
|
475
|
+
}, K) => {
|
|
476
|
+
const Q = (r) => {
|
|
477
477
|
document.getElementById("landing__container").scrollIntoView({ behavior: "smooth", block: "start" }), b == null || b(r);
|
|
478
478
|
};
|
|
479
|
-
return /* @__PURE__ */ l(
|
|
479
|
+
return /* @__PURE__ */ l(oe, { ref: K, id: "landing__container", children: [
|
|
480
480
|
/* @__PURE__ */ l("div", { className: "landing__main-content", children: [
|
|
481
481
|
o && /* @__PURE__ */ n("div", { className: "main-content__title", children: o }),
|
|
482
482
|
g && /* @__PURE__ */ n(
|
|
483
|
-
|
|
483
|
+
ne,
|
|
484
484
|
{
|
|
485
485
|
tags: g,
|
|
486
486
|
allTagText: a,
|
|
@@ -490,7 +490,7 @@ const ie = E.div`
|
|
|
490
490
|
),
|
|
491
491
|
/* @__PURE__ */ l("div", { className: "main-content__actions", children: [
|
|
492
492
|
/* @__PURE__ */ n(
|
|
493
|
-
|
|
493
|
+
P,
|
|
494
494
|
{
|
|
495
495
|
className: "main-content__search",
|
|
496
496
|
placeholder: v,
|
|
@@ -544,7 +544,7 @@ const ie = E.div`
|
|
|
544
544
|
),
|
|
545
545
|
/* @__PURE__ */ n("div", { className: "main-content__divider" }),
|
|
546
546
|
h && (h == null ? void 0 : h.length) > 0 && /* @__PURE__ */ n(
|
|
547
|
-
|
|
547
|
+
te,
|
|
548
548
|
{
|
|
549
549
|
buttonText: D,
|
|
550
550
|
buttonLink: M,
|
|
@@ -573,13 +573,13 @@ const ie = E.div`
|
|
|
573
573
|
)
|
|
574
574
|
] }),
|
|
575
575
|
N && N > 1 && /* @__PURE__ */ n(
|
|
576
|
-
|
|
576
|
+
ce,
|
|
577
577
|
{
|
|
578
578
|
perPageOptions: G,
|
|
579
579
|
perPage: X,
|
|
580
580
|
handlePerPage: Z,
|
|
581
581
|
page: W,
|
|
582
|
-
handlePage:
|
|
582
|
+
handlePage: Q,
|
|
583
583
|
totalPage: N
|
|
584
584
|
}
|
|
585
585
|
)
|
|
@@ -587,14 +587,14 @@ const ie = E.div`
|
|
|
587
587
|
/* @__PURE__ */ l("div", { className: "landing__side-content", children: [
|
|
588
588
|
f && /* @__PURE__ */ n("div", { className: "side-content__title", children: f }),
|
|
589
589
|
m && (m == null ? void 0 : m.length) > 0 && /* @__PURE__ */ l(z, { children: [
|
|
590
|
-
/* @__PURE__ */ n("div", { className: "side-content__items", children: m == null ? void 0 : m.map((r, u) => /* @__PURE__ */ n(
|
|
590
|
+
/* @__PURE__ */ n("div", { className: "side-content__items", children: m == null ? void 0 : m.map((r, u) => /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ l(
|
|
591
591
|
"div",
|
|
592
592
|
{
|
|
593
593
|
className: "side-content__item",
|
|
594
594
|
onClick: () => w(r),
|
|
595
595
|
children: [
|
|
596
596
|
/* @__PURE__ */ n(
|
|
597
|
-
|
|
597
|
+
re,
|
|
598
598
|
{
|
|
599
599
|
src: y(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
|
|
600
600
|
alt: `Mini blog ${u + 1}`,
|
|
@@ -603,18 +603,18 @@ const ie = E.div`
|
|
|
603
603
|
),
|
|
604
604
|
/* @__PURE__ */ l("div", { className: "item__content", children: [
|
|
605
605
|
/* @__PURE__ */ n("div", { className: "item__title", children: r == null ? void 0 : r.title }),
|
|
606
|
-
/* @__PURE__ */ n("div", { className: "item__description", children:
|
|
606
|
+
/* @__PURE__ */ n("div", { className: "item__description", children: O(r == null ? void 0 : r.publishedAt) })
|
|
607
607
|
] })
|
|
608
608
|
]
|
|
609
609
|
}
|
|
610
610
|
) }, `mini_blg_${u}`)) }),
|
|
611
|
-
/* @__PURE__ */ n(
|
|
611
|
+
/* @__PURE__ */ n(ee, { onClick: U, className: "side-content__link", children: R })
|
|
612
612
|
] })
|
|
613
613
|
] })
|
|
614
614
|
] });
|
|
615
615
|
}
|
|
616
616
|
);
|
|
617
|
-
|
|
617
|
+
le.propTypes = {
|
|
618
618
|
mainTitle: e.string,
|
|
619
619
|
sideTitle: e.string,
|
|
620
620
|
tags: e.array,
|
|
@@ -651,5 +651,5 @@ oe.propTypes = {
|
|
|
651
651
|
handleSearch: e.func
|
|
652
652
|
};
|
|
653
653
|
export {
|
|
654
|
-
|
|
654
|
+
le as default
|
|
655
655
|
};
|
package/dist/BlogListSection.cjs
CHANGED
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`,C=l.forwardRef(({blogUuid:c,title:n,imageUrl:o,options:i,publishedAt:
|
|
147
|
+
`,C=l.forwardRef(({blogUuid:c,title:n,imageUrl:o,options:i,publishedAt:p,timeToReadText:g="{0} min read",timeToRead:u=0,numberOfLikes:f=0,numberOfComments:_=0,isBookmarked:d=!1,onSelectCard:h=()=>{},onBookmark:e=()=>{},onShare:m=()=>{},bookmarkComponent:a=r.jsx(r.Fragment,{})},k)=>{const b=()=>s.isDefined(a)?l.cloneElement(a,{key:`bookmark_blog__${c}__${d}`,isBookmarked:d,blogUuid:c,onBookmark:(w,N)=>e(w,N),ref:k,componentName:"ExploreBlogSectionCard"}):r.jsx(r.Fragment,{});return r.jsxs($,{onClick:h,className:"blog-card-item",children:[r.jsx(B.ProductImageWrapper,{src:o,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:n}),r.jsxs("div",{className:"wrapper__tags-action",children:[r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((t,w)=>r.jsx(R.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},`blog-card-sponsored-option__${w+1}`)))}),r.jsxs("div",{className:"info__content mobile-only",children:[r.jsx(b,{}),r.jsx(j,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),m()}})]})]})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsxs("div",{className:"info__content",children:[r.jsx("div",{className:"info__text",children:`${s.formatLocaleDateString(p)} • ${s.formatString(g,u)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(y,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),s.getRoundedNumber(f)]}),r.jsxs("div",{children:[r.jsx(y,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),s.getRoundedNumber(_)]})]})]}),r.jsxs("div",{className:"info__content desktop-only",children:[r.jsx(b,{}),r.jsx(j,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),m()}})]})]})]})]})}),L=v.styled.div`
|
|
148
148
|
display: flex;
|
|
149
149
|
flex-direction: column;
|
|
150
150
|
align-items: flex-start;
|
|
@@ -168,4 +168,4 @@
|
|
|
168
168
|
bottom: -1.25rem;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
`,z=l.memo(C),T=l.forwardRef(({timeToReadText:c="{0} min read",items:n,onSelectCard:o=()=>{},onShare:i=()=>{},onBookmark:
|
|
171
|
+
`,z=l.memo(C),T=l.forwardRef(({timeToReadText:c="{0} min read",items:n,onSelectCard:o=()=>{},onShare:i=()=>{},onBookmark:p=()=>{},isLoading:g=!1,getImage:u=()=>{},isSeparated:f=!0,bookmarkComponent:_=r.jsx(r.Fragment,{})},d)=>{const h=l.useMemo(()=>n==null?void 0:n.map((e,m)=>{var a;return r.jsx(z,{blogUuid:e==null?void 0:e.uuid,title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:c,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,isBookmarked:e==null?void 0:e.isBookmarked,onSelectCard:()=>o==null?void 0:o(e),onShare:()=>i==null?void 0:i(e),onBookmark:p,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,bookmarkComponent:_},`blog-card-item__${m+1}__${(a=e==null?void 0:e.isBookmarked)==null?void 0:a.toString()}`)}),[n]);return r.jsx(L,{ref:d,className:f?"separated":"",children:r.jsx(I.SuspenseBlogLarge,{isLoading:g,limit:5,keyPrefix:"blog-section",children:h})})});module.exports=T;
|
package/dist/BlogListSection.js
CHANGED
|
@@ -160,23 +160,23 @@ const U = B.div`
|
|
|
160
160
|
title: n,
|
|
161
161
|
imageUrl: o,
|
|
162
162
|
options: a,
|
|
163
|
-
publishedAt:
|
|
164
|
-
timeToReadText:
|
|
165
|
-
timeToRead:
|
|
166
|
-
numberOfLikes:
|
|
167
|
-
numberOfComments:
|
|
168
|
-
isBookmarked:
|
|
163
|
+
publishedAt: c,
|
|
164
|
+
timeToReadText: p = "{0} min read",
|
|
165
|
+
timeToRead: f = 0,
|
|
166
|
+
numberOfLikes: g = 0,
|
|
167
|
+
numberOfComments: _ = 0,
|
|
168
|
+
isBookmarked: m = !1,
|
|
169
169
|
onSelectCard: u = () => {
|
|
170
170
|
},
|
|
171
171
|
onBookmark: e = () => {
|
|
172
172
|
},
|
|
173
|
-
onShare:
|
|
173
|
+
onShare: d = () => {
|
|
174
174
|
},
|
|
175
175
|
bookmarkComponent: l = /* @__PURE__ */ r(w, {})
|
|
176
176
|
}, $) => {
|
|
177
177
|
const b = () => T(l) ? j(l, {
|
|
178
|
-
key: `bookmark_blog__${s}__${
|
|
179
|
-
isBookmarked:
|
|
178
|
+
key: `bookmark_blog__${s}__${m}`,
|
|
179
|
+
isBookmarked: m,
|
|
180
180
|
blogUuid: s,
|
|
181
181
|
onBookmark: (h, I) => e(h, I),
|
|
182
182
|
ref: $,
|
|
@@ -206,7 +206,7 @@ const U = B.div`
|
|
|
206
206
|
btnType: "basic",
|
|
207
207
|
color: "neutral",
|
|
208
208
|
onClick: (t) => {
|
|
209
|
-
t == null || t.stopPropagation(),
|
|
209
|
+
t == null || t.stopPropagation(), d();
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
)
|
|
@@ -216,16 +216,16 @@ const U = B.div`
|
|
|
216
216
|
/* @__PURE__ */ i("div", { className: "wrapper__info", children: [
|
|
217
217
|
/* @__PURE__ */ i("div", { className: "info__content", children: [
|
|
218
218
|
/* @__PURE__ */ r("div", { className: "info__text", children: `${L(
|
|
219
|
-
|
|
220
|
-
)} • ${P(
|
|
219
|
+
c
|
|
220
|
+
)} • ${P(p, f)}` }),
|
|
221
221
|
/* @__PURE__ */ i("div", { className: "info__text", children: [
|
|
222
222
|
/* @__PURE__ */ i("div", { children: [
|
|
223
223
|
/* @__PURE__ */ r(y, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
|
|
224
|
-
k(
|
|
224
|
+
k(g)
|
|
225
225
|
] }),
|
|
226
226
|
/* @__PURE__ */ i("div", { children: [
|
|
227
227
|
/* @__PURE__ */ r(y, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
|
|
228
|
-
k(
|
|
228
|
+
k(_)
|
|
229
229
|
] })
|
|
230
230
|
] })
|
|
231
231
|
] }),
|
|
@@ -239,7 +239,7 @@ const U = B.div`
|
|
|
239
239
|
btnType: "basic",
|
|
240
240
|
color: "neutral",
|
|
241
241
|
onClick: (t) => {
|
|
242
|
-
t == null || t.stopPropagation(),
|
|
242
|
+
t == null || t.stopPropagation(), d();
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
)
|
|
@@ -280,15 +280,15 @@ const U = B.div`
|
|
|
280
280
|
},
|
|
281
281
|
onShare: a = () => {
|
|
282
282
|
},
|
|
283
|
-
onBookmark:
|
|
283
|
+
onBookmark: c = () => {
|
|
284
284
|
},
|
|
285
|
-
isLoading:
|
|
286
|
-
getImage:
|
|
285
|
+
isLoading: p = !1,
|
|
286
|
+
getImage: f = () => {
|
|
287
287
|
},
|
|
288
|
-
isSeparated:
|
|
289
|
-
bookmarkComponent:
|
|
290
|
-
},
|
|
291
|
-
const u = R(() => n == null ? void 0 : n.map((e,
|
|
288
|
+
isSeparated: g = !0,
|
|
289
|
+
bookmarkComponent: _ = /* @__PURE__ */ r(w, {})
|
|
290
|
+
}, m) => {
|
|
291
|
+
const u = R(() => n == null ? void 0 : n.map((e, d) => {
|
|
292
292
|
var l;
|
|
293
293
|
return /* @__PURE__ */ r(
|
|
294
294
|
D,
|
|
@@ -306,17 +306,17 @@ const U = B.div`
|
|
|
306
306
|
isBookmarked: e == null ? void 0 : e.isBookmarked,
|
|
307
307
|
onSelectCard: () => o == null ? void 0 : o(e),
|
|
308
308
|
onShare: () => a == null ? void 0 : a(e),
|
|
309
|
-
onBookmark:
|
|
310
|
-
imageUrl:
|
|
311
|
-
bookmarkComponent:
|
|
309
|
+
onBookmark: c,
|
|
310
|
+
imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
311
|
+
bookmarkComponent: _
|
|
312
312
|
},
|
|
313
|
-
`blog-card-item__${
|
|
313
|
+
`blog-card-item__${d + 1}__${(l = e == null ? void 0 : e.isBookmarked) == null ? void 0 : l.toString()}`
|
|
314
314
|
);
|
|
315
315
|
}), [n]);
|
|
316
|
-
return /* @__PURE__ */ r(A, { className:
|
|
316
|
+
return /* @__PURE__ */ r(A, { ref: m, className: g ? "separated" : "", children: /* @__PURE__ */ r(
|
|
317
317
|
M,
|
|
318
318
|
{
|
|
319
|
-
isLoading:
|
|
319
|
+
isLoading: p,
|
|
320
320
|
limit: 5,
|
|
321
321
|
keyPrefix: "blog-section",
|
|
322
322
|
children: u
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),u=require("react"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),u=require("react"),P=require("./useDetectMobile-zkbzoOGV.cjs"),h=require("./index-CLoINIGC.cjs"),j=require("./suspense-product-card-simple-CrqjSxHI.cjs"),f=require("./Button.cjs"),y=require("./style-BTTXJFJN.cjs"),M=u.memo(h.SimpleProductCard),N=u.forwardRef(({buttonText:o,buttonLink:t,items:i,onButtonAction:l=()=>{},onSelectCard:s=()=>{},isLoading:n=!1,limit:d=4,getImage:a=()=>{},isHighlight:p=!1},m)=>{const b=P.useDetectMobile(),g=u.useMemo(()=>{var c;return(c=i==null?void 0:i.slice(0,4))==null?void 0:c.map((e,q)=>r.jsx(M,{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:()=>s==null?void 0:s(e==null?void 0:e.uuid),image:a(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null},q))},[i]);return r.jsxs(y.Wrapper,{ref:m,className:`blog-product-cards-section ${p?"highlight":""}`,children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(j.SuspenseSimpleProductCard,{isLoading:n,limit:d,keyPrefix:"blog-section",children:g})}),r.jsx(f,{text:o,borderRadius:"curved",btnType:b?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>l(t)})]})});module.exports=N;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { u as
|
|
4
|
-
import { S as
|
|
5
|
-
import { S
|
|
6
|
-
import
|
|
7
|
-
import { W as
|
|
8
|
-
const
|
|
1
|
+
import { jsx as i, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { memo as h, forwardRef as P, useMemo as N } from "react";
|
|
3
|
+
import { u as y } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
+
import { S as M } from "./index-BGY3PSA-.js";
|
|
5
|
+
import { S } from "./suspense-product-card-simple-CLJjab5B.js";
|
|
6
|
+
import _ from "./Button.js";
|
|
7
|
+
import { W as w } from "./style-tw6KjI2J.js";
|
|
8
|
+
const U = h(M), R = P(
|
|
9
9
|
({
|
|
10
10
|
buttonText: u,
|
|
11
11
|
buttonLink: l,
|
|
@@ -19,11 +19,11 @@ const w = b(y), R = h(
|
|
|
19
19
|
getImage: d = () => {
|
|
20
20
|
},
|
|
21
21
|
isHighlight: m = !1
|
|
22
|
-
},
|
|
23
|
-
const
|
|
22
|
+
}, p) => {
|
|
23
|
+
const n = y(), f = N(() => {
|
|
24
24
|
var s;
|
|
25
|
-
return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e,
|
|
26
|
-
|
|
25
|
+
return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e, g) => /* @__PURE__ */ i(
|
|
26
|
+
U,
|
|
27
27
|
{
|
|
28
28
|
title: e == null ? void 0 : e.name,
|
|
29
29
|
price: e == null ? void 0 : e.price,
|
|
@@ -35,29 +35,30 @@ const w = b(y), R = h(
|
|
|
35
35
|
onSelectCard: () => o == null ? void 0 : o(e == null ? void 0 : e.uuid),
|
|
36
36
|
image: d(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null
|
|
37
37
|
},
|
|
38
|
-
|
|
38
|
+
g
|
|
39
39
|
));
|
|
40
40
|
}, [r]);
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
|
|
41
|
+
return /* @__PURE__ */ b(
|
|
42
|
+
w,
|
|
43
43
|
{
|
|
44
|
+
ref: p,
|
|
44
45
|
className: `blog-product-cards-section ${m ? "highlight" : ""}`,
|
|
45
46
|
children: [
|
|
46
47
|
/* @__PURE__ */ i("div", { className: "wrapper__grid", children: /* @__PURE__ */ i(
|
|
47
|
-
|
|
48
|
+
S,
|
|
48
49
|
{
|
|
49
50
|
isLoading: a,
|
|
50
51
|
limit: c,
|
|
51
52
|
keyPrefix: "blog-section",
|
|
52
|
-
children:
|
|
53
|
+
children: f
|
|
53
54
|
}
|
|
54
55
|
) }),
|
|
55
56
|
/* @__PURE__ */ i(
|
|
56
|
-
|
|
57
|
+
_,
|
|
57
58
|
{
|
|
58
59
|
text: u,
|
|
59
60
|
borderRadius: "curved",
|
|
60
|
-
btnType:
|
|
61
|
+
btnType: n ? "basic" : "outline",
|
|
61
62
|
color: "neutral",
|
|
62
63
|
className: "wrapper__action",
|
|
63
64
|
onClick: () => t(l)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),u=require("react"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),u=require("react"),S=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./skeleton-CWPYgHom.cjs"),b=require("./Button.cjs"),_=require("./style-BTTXJFJN.cjs"),k=({limit:o=4,isLoading:n=!1,keyPrefix:s})=>r.jsx(r.Fragment,{children:Array.from({length:o},(i,t)=>r.jsx(a.ShopCardSkeleton,{isLoading:n},`${s}-skeleton-shop-card-${t}`))}),q=({children:o,fallbackComponent:n=r.jsx(r.Fragment,{}),isLoading:s=!1,limit:i,keyPrefix:t})=>r.jsx(u.Suspense,{fallbackComponent:n,children:s===!0?r.jsx(k,{isLoading:s,limit:i,keyPrefix:t}):o}),C=u.memo(a.ShopCard),w=u.forwardRef(({buttonText:o,buttonLink:n,items:s,onButtonAction:i=()=>{},onSelectCard:t=()=>{},isLoading:l=!1,limit:d=4,getImage:p=()=>{},isHighlight:h=!1},m)=>{const g=S.useDetectMobile(),j=u.useMemo(()=>{var c;return(c=s==null?void 0:s.slice(0,4))==null?void 0:c.map((e,f)=>r.jsx(C,{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:()=>t==null?void 0:t(e==null?void 0:e.uuid),image:p(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0},`shop-card__${f+1}`))},[s]);return r.jsxs(_.Wrapper,{ref:m,className:h?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(q,{isLoading:l,limit:d,keyPrefix:"blog-section",children:j})}),r.jsx(b,{text:o,borderRadius:"curved",btnType:g?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>i(n)})]})});module.exports=w;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as o, Fragment as u, jsxs as
|
|
2
|
-
import { Suspense as
|
|
3
|
-
import { u as
|
|
4
|
-
import { a as
|
|
5
|
-
import
|
|
6
|
-
import { W as
|
|
7
|
-
const
|
|
8
|
-
|
|
1
|
+
import { jsx as o, Fragment as u, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as b, memo as _, forwardRef as C, useMemo as k } from "react";
|
|
3
|
+
import { u as w } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
+
import { a as v, S as M } from "./skeleton-Bil8w1A7.js";
|
|
5
|
+
import y from "./Button.js";
|
|
6
|
+
import { W as N } from "./style-tw6KjI2J.js";
|
|
7
|
+
const $ = ({ limit: s = 4, isLoading: a = !1, keyPrefix: r }) => /* @__PURE__ */ o(u, { children: Array.from({ length: s }, (i, t) => /* @__PURE__ */ o(
|
|
8
|
+
v,
|
|
9
9
|
{
|
|
10
10
|
isLoading: a
|
|
11
11
|
},
|
|
12
12
|
`${r}-skeleton-shop-card-${t}`
|
|
13
|
-
)) }),
|
|
13
|
+
)) }), j = ({
|
|
14
14
|
children: s,
|
|
15
15
|
fallbackComponent: a = /* @__PURE__ */ o(u, {}),
|
|
16
16
|
isLoading: r = !1,
|
|
17
17
|
limit: i,
|
|
18
18
|
keyPrefix: t
|
|
19
|
-
}) => /* @__PURE__ */ o(
|
|
20
|
-
|
|
19
|
+
}) => /* @__PURE__ */ o(b, { fallbackComponent: a, children: r === !0 ? /* @__PURE__ */ o(
|
|
20
|
+
$,
|
|
21
21
|
{
|
|
22
22
|
isLoading: r,
|
|
23
23
|
limit: i,
|
|
24
24
|
keyPrefix: t
|
|
25
25
|
}
|
|
26
|
-
) : s }),
|
|
26
|
+
) : s }), z = _(M), F = C(
|
|
27
27
|
({
|
|
28
28
|
buttonText: s,
|
|
29
29
|
buttonLink: a,
|
|
@@ -37,11 +37,11 @@ const N = ({ limit: s = 4, isLoading: a = !1, keyPrefix: r }) => /* @__PURE__ */
|
|
|
37
37
|
getImage: c = () => {
|
|
38
38
|
},
|
|
39
39
|
isHighlight: d = !1
|
|
40
|
-
},
|
|
41
|
-
const
|
|
40
|
+
}, m) => {
|
|
41
|
+
const h = w(), f = k(() => {
|
|
42
42
|
var n;
|
|
43
|
-
return (n = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : n.map((e,
|
|
44
|
-
|
|
43
|
+
return (n = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : n.map((e, g) => /* @__PURE__ */ o(
|
|
44
|
+
z,
|
|
45
45
|
{
|
|
46
46
|
uuid: e == null ? void 0 : e.uuid,
|
|
47
47
|
title: e == null ? void 0 : e.name,
|
|
@@ -52,25 +52,25 @@ const N = ({ limit: s = 4, isLoading: a = !1, keyPrefix: r }) => /* @__PURE__ */
|
|
|
52
52
|
image: c(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
|
|
53
53
|
hideProducts: !0
|
|
54
54
|
},
|
|
55
|
-
`shop-card__${
|
|
55
|
+
`shop-card__${g + 1}`
|
|
56
56
|
));
|
|
57
57
|
}, [r]);
|
|
58
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ S(N, { ref: m, className: d ? "highlight" : "", children: [
|
|
59
59
|
/* @__PURE__ */ o("div", { className: "wrapper__grid", children: /* @__PURE__ */ o(
|
|
60
|
-
|
|
60
|
+
j,
|
|
61
61
|
{
|
|
62
62
|
isLoading: l,
|
|
63
63
|
limit: p,
|
|
64
64
|
keyPrefix: "blog-section",
|
|
65
|
-
children:
|
|
65
|
+
children: f
|
|
66
66
|
}
|
|
67
67
|
) }),
|
|
68
68
|
/* @__PURE__ */ o(
|
|
69
|
-
|
|
69
|
+
y,
|
|
70
70
|
{
|
|
71
71
|
text: s,
|
|
72
72
|
borderRadius: "curved",
|
|
73
|
-
btnType:
|
|
73
|
+
btnType: h ? "basic" : "outline",
|
|
74
74
|
color: "neutral",
|
|
75
75
|
className: "wrapper__action",
|
|
76
76
|
onClick: () => i(a)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),o=require("react"),m=require("./utils-Dl9xPH4c.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./consts-goSZX3xP.cjs"),_=d.styled.div`
|
|
2
2
|
width: 7.5rem;
|
|
3
3
|
height: auto;
|
|
4
4
|
max-height: 7.5rem;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
height: auto;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
@media (max-width: ${
|
|
15
|
+
@media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
|
|
16
16
|
width: 4.5rem;
|
|
17
17
|
height: auto;
|
|
18
18
|
max-height: 4.5rem;
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
height: auto;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,g=d.styled.div`
|
|
26
26
|
width: 7.5rem;
|
|
27
27
|
height: 3.5rem;
|
|
28
28
|
background: ${m.linearGradientAnimation("-90deg")};
|
|
29
29
|
|
|
30
|
-
@media (max-width: ${
|
|
30
|
+
@media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
|
|
31
31
|
width: 4.5rem;
|
|
32
32
|
height: 4.5rem;
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`,w=o.forwardRef(({imageComponent:t,image:i,onSelectCard:a},n)=>e.jsx(_,{ref:n,children:m.isDefined(t)?t:e.jsx("img",{src:i,className:"wrapper__image",onClick:a})})),x=o.forwardRef(({},t)=>e.jsx(g,{})),f=d.styled.div`
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
37
|
align-items: flex-start;
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
@media (max-width: ${
|
|
83
|
+
@media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
|
|
84
84
|
& .wrapper__content {
|
|
85
85
|
align-content: center;
|
|
86
86
|
gap: 1rem;
|
|
@@ -91,4 +91,4 @@
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
`,
|
|
94
|
+
`,u=o.forwardRef(({title:t,subtitle:i,items:a=[],isLoading:n=!1,onSelectCard:s=()=>{}},h)=>{var c;return e.jsxs(f,{ref:h,children:[e.jsxs("div",{className:"wrapper__heading",children:[t&&e.jsx("div",{className:"wrapper__title",children:t}),i&&e.jsx("div",{className:"wrapper__subtitle",children:i})]}),e.jsx("div",{className:"wrapper__content",children:n?(c=Array.from("12345"))==null?void 0:c.map((r,p)=>e.jsx(x,{},`brand-hit-card-skeleton__${p+1}`)):a==null?void 0:a.map((r,p)=>e.jsx(w,{image:r==null?void 0:r.image,imageComponent:r==null?void 0:r.imageComponent,onSelectCard:()=>s==null?void 0:s(r),className:"wrapper__item"},`brand-hit-card__${p+1}`))})]})});module.exports=u;
|