@lanaco/lnc-react-ui 4.0.132 → 4.0.134
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 +110 -86
- package/dist/BannerSectionCarousel.js +124 -99
- package/dist/BlogCardsSponsoredSection.cjs +6 -4
- package/dist/BlogCardsSponsoredSection.js +12 -10
- package/dist/BlogExploreSection.js +1 -1
- package/dist/BlogListSection.cjs +3 -1
- package/dist/BlogListSection.js +16 -14
- package/dist/BlogProductCardsSection.js +2 -2
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +2 -2
- package/dist/BlogsSectionLarge.js +1 -1
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +2 -2
- package/dist/BlogsSectionSimpleCentered.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +2 -2
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +2 -2
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +2 -2
- package/dist/ReviewsSection.js +1 -1
- package/dist/SalesCampaignsSection.cjs +27 -27
- package/dist/SalesCampaignsSection.js +346 -343
- package/dist/ShopAvatar-4-fCYGEc.js +4 -0
- package/dist/ShopAvatar-CV3lj34D.cjs +1 -0
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{index-CU0KClNt.js → index-B7pgRoP5.js} +1 -1
- package/dist/{index-3TFXgZHA.js → index-DRP1yTKe.js} +13 -18
- package/dist/{index-DJ545v7b.js → index-DiPwx53C.js} +1 -1
- package/dist/{skeleton-fVxknFUi.js → skeleton-ChyJLfsR.js} +36 -35
- package/dist/skeleton-Dw2U9XhS.cjs +168 -0
- package/dist/{style-XXDQBreL.js → style-DAn9Ifqe.js} +9 -7
- package/dist/{style-C_BRvopE.cjs → style-DaT7Beup.cjs} +7 -5
- package/dist/{suspense-product-card-detailed-BP1opdKD.js → suspense-product-card-detailed-CFZchhUK.js} +1 -1
- package/dist/{suspense-product-card-simple-BT5gv-kY.js → suspense-product-card-simple-BuJtwiwA.js} +1 -1
- package/package.json +1 -1
- package/dist/skeleton-Bl1q9Yqe.cjs +0 -168
|
@@ -11,12 +11,80 @@
|
|
|
11
11
|
align-items: center;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
& .carousel-container {
|
|
15
|
-
padding-bottom: 1.25rem;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
14
|
& .carousel-item {
|
|
19
15
|
padding-right: 0;
|
|
16
|
+
|
|
17
|
+
&:not(.react-multi-carousel-item--active) {
|
|
18
|
+
& .section__card {
|
|
19
|
+
height: 22.5rem;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
& .section__card {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
flex: 1 0 0;
|
|
29
|
+
align-self: stretch;
|
|
30
|
+
border-radius: 0.75rem;
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 22.5rem;
|
|
33
|
+
position: relative;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
|
|
36
|
+
& .section__image {
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
object-fit: cover;
|
|
40
|
+
display: block;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
& .card__content {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 0;
|
|
46
|
+
left: 0;
|
|
47
|
+
padding: 3rem;
|
|
48
|
+
height: 100%;
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
& .card__text {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
align-items: flex-start;
|
|
58
|
+
gap: 0.25rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
& .card__title {
|
|
62
|
+
color: var(--white, #fff);
|
|
63
|
+
font-size: 1.75rem;
|
|
64
|
+
font-style: normal;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
line-height: 2.25rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& .card__description {
|
|
70
|
+
color: var(--white, #fff);
|
|
71
|
+
font-size: 1rem;
|
|
72
|
+
font-style: normal;
|
|
73
|
+
font-weight: 400;
|
|
74
|
+
line-height: 1.5rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
& .card__action {
|
|
78
|
+
padding: 0.625rem 0.75rem;
|
|
79
|
+
background: var(--white, #fff);
|
|
80
|
+
color: var(--gray-950, #14161a);
|
|
81
|
+
font-size: 0.875rem;
|
|
82
|
+
font-style: normal;
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
line-height: 1.25rem;
|
|
85
|
+
width: fit-content;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
20
88
|
}
|
|
21
89
|
|
|
22
90
|
& .react-multiple-carousel__arrow {
|
|
@@ -46,101 +114,57 @@
|
|
|
46
114
|
right: 1rem;
|
|
47
115
|
}
|
|
48
116
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
justify-content: space-between;
|
|
53
|
-
align-items: flex-start;
|
|
54
|
-
flex: 1 0 0;
|
|
55
|
-
align-self: stretch;
|
|
56
|
-
border-radius: 0.75rem;
|
|
57
|
-
width: 100%;
|
|
58
|
-
height: 22.5rem;
|
|
59
|
-
position: relative;
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
|
|
62
|
-
& .section__image {
|
|
63
|
-
width: 100%;
|
|
64
|
-
height: 100%;
|
|
65
|
-
object-fit: cover;
|
|
66
|
-
display: block;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
& .card__content {
|
|
70
|
-
position: absolute;
|
|
71
|
-
top: 0;
|
|
72
|
-
left: 0;
|
|
73
|
-
padding: 3rem;
|
|
74
|
-
height: 100%;
|
|
75
|
-
display: flex;
|
|
76
|
-
flex-direction: column;
|
|
77
|
-
justify-content: space-between;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
& .card__text {
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: column;
|
|
83
|
-
align-items: flex-start;
|
|
84
|
-
gap: 0.25rem;
|
|
117
|
+
@media (max-width: 464px) {
|
|
118
|
+
& .carousel-container {
|
|
119
|
+
min-height: 23.4375rem;
|
|
85
120
|
}
|
|
86
121
|
|
|
87
|
-
& .
|
|
88
|
-
|
|
89
|
-
font-size: 1.75rem;
|
|
90
|
-
font-style: normal;
|
|
91
|
-
font-weight: 600;
|
|
92
|
-
line-height: 2.25rem;
|
|
93
|
-
}
|
|
122
|
+
& .carousel-item {
|
|
123
|
+
padding-right: 1rem;
|
|
94
124
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
font-weight: 400;
|
|
100
|
-
line-height: 1.5rem;
|
|
101
|
-
}
|
|
125
|
+
&:last-of-type {
|
|
126
|
+
padding-left: 1rem;
|
|
127
|
+
padding-right: 0;
|
|
128
|
+
}
|
|
102
129
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
color: var(--gray-950, #14161a);
|
|
107
|
-
font-size: 0.875rem;
|
|
108
|
-
font-style: normal;
|
|
109
|
-
font-weight: 500;
|
|
110
|
-
line-height: 1.25rem;
|
|
111
|
-
width: fit-content;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
130
|
+
&:nth-last-child(2) {
|
|
131
|
+
padding-right: 0;
|
|
132
|
+
}
|
|
114
133
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
134
|
+
&:not(.react-multi-carousel-item--active) {
|
|
135
|
+
& .section__card {
|
|
136
|
+
height: 20.625rem;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
120
139
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
140
|
+
&.react-multi-carousel-item--active:not([data-index="0"]) {
|
|
141
|
+
& .section__card {
|
|
142
|
+
animation: scaleCarouselItem 500ms forwards;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
125
145
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
146
|
+
& .section__card {
|
|
147
|
+
height: 23.4375rem;
|
|
148
|
+
border-radius: 0.5rem;
|
|
129
149
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
150
|
+
& .section__image {
|
|
151
|
+
object-fit: fill;
|
|
152
|
+
}
|
|
133
153
|
|
|
134
|
-
|
|
135
|
-
|
|
154
|
+
& .card__content {
|
|
155
|
+
display: none;
|
|
156
|
+
}
|
|
136
157
|
}
|
|
137
158
|
}
|
|
138
159
|
|
|
139
|
-
|
|
140
|
-
|
|
160
|
+
@keyframes scaleCarouselItem {
|
|
161
|
+
from {
|
|
141
162
|
height: 20.625rem;
|
|
142
|
-
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
top {
|
|
166
|
+
height: 23.4375rem;
|
|
143
167
|
}
|
|
144
168
|
}
|
|
145
169
|
}
|
|
146
|
-
`,pt=x.forwardRef(({items:o=[],onSelectItem:i=()=>{},onButtonAction:t=()=>{}},e)=>{const r={desktop:{breakpoint:{max:3e3,min:1024},items:1,partialVisibilityGutter:0},tablet:{breakpoint:{max:1024,min:464},items:1,partialVisibilityGutter:0},mobile:{breakpoint:{max:464,min:0},items:1,partialVisibilityGutter:64}},a=mt.useDetectMobile();return P.jsx(oe,{ref:e,children:P.jsx(ie,{responsive:r,removeArrowOnDeviceType:["tablet","mobile"],infinite:!a,keyBoardControl:!0,autoPlay:!0,partialVisible:!0,customTransition:"transform 500ms ease-in-out",
|
|
170
|
+
`,pt=x.forwardRef(({items:o=[],onSelectItem:i=()=>{},onButtonAction:t=()=>{}},e)=>{const r={desktop:{breakpoint:{max:3e3,min:1024},items:1,partialVisibilityGutter:0},tablet:{breakpoint:{max:1024,min:464},items:1,partialVisibilityGutter:0},mobile:{breakpoint:{max:464,min:0},items:1,partialVisibilityGutter:64}},a=mt.useDetectMobile();return P.jsx(oe,{ref:e,children:P.jsx(ie,{responsive:r,removeArrowOnDeviceType:["tablet","mobile"],infinite:!a,keyBoardControl:!0,autoPlay:!0,partialVisible:!0,customTransition:"transform 500ms ease-in-out",sliderClass:"carousel-slider",itemClass:"carousel-item",containerClass:"carousel-container",rewind:!0,rewindWithAnimation:!0,children:o==null?void 0:o.map((n,s)=>P.jsxs("div",{className:"section__card",onClick:()=>i(n),children:[P.jsx("img",{src:n==null?void 0:n.imageUrl,alt:`Slide ${s+1}`,className:"section__image"}),P.jsxs("div",{className:"card__content",children:[P.jsxs("div",{className:"card__text",children:[(n==null?void 0:n.title)&&P.jsx("div",{className:"card__title",children:n==null?void 0:n.title}),(n==null?void 0:n.title)&&P.jsx("div",{className:"card__description",children:n==null?void 0:n.description})]}),(n==null?void 0:n.buttonText)&&P.jsx(ft,{text:n==null?void 0:n.buttonText,className:"card__action",size:"medium",onClick:l=>{l==null||l.stopPropagation(),t(n)}})]})]},`banner-section-carousel-item__${s+1}`))})},`banner-section-carousel__${a}`)});pt.propTypes={items:z.PropTypes.array,onSelectItem:z.PropTypes.func,onButtonAction:z.PropTypes.func};module.exports=pt;
|
|
@@ -139,12 +139,12 @@ H.populateNextSlides = Rt;
|
|
|
139
139
|
var tt = {};
|
|
140
140
|
Object.defineProperty(tt, "__esModule", { value: !0 });
|
|
141
141
|
var xt = A, Ot = S, At = S;
|
|
142
|
-
function
|
|
142
|
+
function Wt(o, i, t) {
|
|
143
143
|
t === void 0 && (t = 0);
|
|
144
144
|
var e, r, a = o.currentSlide, n = o.itemWidth, s = o.slidesToShow, l = i.children, u = i.showDots, h = i.infinite, c = Ot.getSlidesToSlide(o, i), d = a - t - (0 < t ? 0 : c), p = (xt.Children.toArray(l).length - s) % c;
|
|
145
145
|
return r = 0 <= d ? (e = d, u && !h && 0 < p && At.isInRightEnd(o) && (e = a - p), -n * e) : e = d < 0 && a !== 0 ? 0 : void 0, { nextSlides: e, nextPosition: r };
|
|
146
146
|
}
|
|
147
|
-
tt.populatePreviousSlides =
|
|
147
|
+
tt.populatePreviousSlides = Wt;
|
|
148
148
|
var pt = {};
|
|
149
149
|
(function(o) {
|
|
150
150
|
function i(t, e, r, a, n, s) {
|
|
@@ -165,8 +165,8 @@ var X = O;
|
|
|
165
165
|
m.getWidthFromDeviceType = X.getWidthFromDeviceType, m.getPartialVisibilityGutter = X.getPartialVisibilityGutter, m.getItemClientSideWidth = X.getItemClientSideWidth;
|
|
166
166
|
var P = S;
|
|
167
167
|
m.getInitialState = P.getInitialState, m.getIfSlideIsVisbile = P.getIfSlideIsVisbile, m.getTransformForCenterMode = P.getTransformForCenterMode, m.getTransformForPartialVsibile = P.getTransformForPartialVsibile, m.isInLeftEnd = P.isInLeftEnd, m.isInRightEnd = P.isInRightEnd, m.notEnoughChildren = P.notEnoughChildren, m.getSlidesToSlide = P.getSlidesToSlide;
|
|
168
|
-
var
|
|
169
|
-
m.throttle =
|
|
168
|
+
var Dt = Z;
|
|
169
|
+
m.throttle = Dt.default;
|
|
170
170
|
var Lt = ct;
|
|
171
171
|
m.throwError = Lt.default;
|
|
172
172
|
var kt = H;
|
|
@@ -219,25 +219,25 @@ function Ut(o, i, t, e) {
|
|
|
219
219
|
}
|
|
220
220
|
it.getLookupTableForNextSlides = Ut;
|
|
221
221
|
Object.defineProperty(et, "__esModule", { value: !0 });
|
|
222
|
-
var
|
|
222
|
+
var D = A, Xt = B, Yt = it, nt = S, Kt = function(o) {
|
|
223
223
|
var i = o.props, t = o.state, e = o.goToSlide, r = o.getState, a = i.showDots, n = i.customDot, s = i.dotListClass, l = i.infinite, u = i.children;
|
|
224
224
|
if (!a || nt.notEnoughChildren(t)) return null;
|
|
225
|
-
var h, c = t.currentSlide, d = t.slidesToShow, p = nt.getSlidesToSlide(t, i), f =
|
|
225
|
+
var h, c = t.currentSlide, d = t.slidesToShow, p = nt.getSlidesToSlide(t, i), f = D.Children.toArray(u);
|
|
226
226
|
h = l ? Math.ceil(f.length / p) : Math.ceil((f.length - d) / p) + 1;
|
|
227
227
|
var g = Yt.getLookupTableForNextSlides(h, t, i, f), w = Xt.getOriginalIndexLookupTableByClones(d, f), b = w[c];
|
|
228
|
-
return
|
|
228
|
+
return D.createElement("ul", { className: "react-multi-carousel-dot-list " + s }, Array(h).fill(0).map(function(_, y) {
|
|
229
229
|
var I, C;
|
|
230
230
|
if (l) {
|
|
231
231
|
C = g[y];
|
|
232
232
|
var R = w[C];
|
|
233
233
|
I = b === R || R <= b && b < R + p;
|
|
234
234
|
} else {
|
|
235
|
-
var
|
|
236
|
-
I = (C =
|
|
235
|
+
var W = f.length - d, L = y * p;
|
|
236
|
+
I = (C = W < L ? W : L) === c || C < c && c < C + p && c < f.length - d;
|
|
237
237
|
}
|
|
238
|
-
return n ?
|
|
238
|
+
return n ? D.cloneElement(n, { index: y, active: I, key: y, onClick: function() {
|
|
239
239
|
return e(C);
|
|
240
|
-
}, carouselState: r() }) :
|
|
240
|
+
}, carouselState: r() }) : D.createElement("li", { "data-index": y, key: y, className: "react-multi-carousel-dot " + (I ? "react-multi-carousel-dot--active" : "") }, D.createElement("button", { "aria-label": "Go to slide " + (y + 1), onClick: function() {
|
|
241
241
|
return e(C);
|
|
242
242
|
} }));
|
|
243
243
|
}));
|
|
@@ -487,8 +487,8 @@ var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transfo
|
|
|
487
487
|
}, i.prototype.render = function() {
|
|
488
488
|
var t = this.props, e = t.deviceType, r = t.arrows, a = t.renderArrowsWhenDisabled, n = t.removeArrowOnDeviceType, s = t.infinite, l = t.containerClass, u = t.sliderClass, h = t.customTransition, c = t.additionalTransfrom, d = t.renderDotsOutside, p = t.renderButtonGroupOutside, f = t.className, g = t.rtl;
|
|
489
489
|
process.env.NODE_ENV !== "production" && v.throwError(this.state, this.props);
|
|
490
|
-
var w = v.getInitialState(this.state, this.props), b = w.shouldRenderOnSSR, _ = w.shouldRenderAtAll, y = v.isInLeftEnd(this.state), I = v.isInRightEnd(this.state), C = r && !(n && (e && -1 < n.indexOf(e) || this.state.deviceType && -1 < n.indexOf(this.state.deviceType))) && !v.notEnoughChildren(this.state) && _, R = !s && y,
|
|
491
|
-
return T.createElement(T.Fragment, null, T.createElement("div", { className: "react-multi-carousel-list " + l + " " + f, dir: g ? "rtl" : "ltr", ref: this.containerRef }, T.createElement("ul", { ref: this.listRef, className: "react-multi-carousel-track " + u, style: { transition: this.isAnimationAllowed ? h || at : "none", overflow: b ? "hidden" : "unset", transform: "translate3d(" + (L + c) + "px,0,0)" }, onMouseMove: this.handleMove, onMouseDown: this.handleDown, onMouseUp: this.handleOut, onMouseEnter: this.handleEnter, onMouseLeave: this.handleOut, onTouchStart: this.handleDown, onTouchMove: this.handleMove, onTouchEnd: this.handleOut }, this.renderCarouselItems()), C && (!R || a) && this.renderLeftArrow(R), C && (!
|
|
490
|
+
var w = v.getInitialState(this.state, this.props), b = w.shouldRenderOnSSR, _ = w.shouldRenderAtAll, y = v.isInLeftEnd(this.state), I = v.isInRightEnd(this.state), C = r && !(n && (e && -1 < n.indexOf(e) || this.state.deviceType && -1 < n.indexOf(this.state.deviceType))) && !v.notEnoughChildren(this.state) && _, R = !s && y, W = !s && I, L = j.getTransform(this.state, this.props);
|
|
491
|
+
return T.createElement(T.Fragment, null, T.createElement("div", { className: "react-multi-carousel-list " + l + " " + f, dir: g ? "rtl" : "ltr", ref: this.containerRef }, T.createElement("ul", { ref: this.listRef, className: "react-multi-carousel-track " + u, style: { transition: this.isAnimationAllowed ? h || at : "none", overflow: b ? "hidden" : "unset", transform: "translate3d(" + (L + c) + "px,0,0)" }, onMouseMove: this.handleMove, onMouseDown: this.handleDown, onMouseUp: this.handleOut, onMouseEnter: this.handleEnter, onMouseLeave: this.handleOut, onTouchStart: this.handleDown, onTouchMove: this.handleMove, onTouchEnd: this.handleOut }, this.renderCarouselItems()), C && (!R || a) && this.renderLeftArrow(R), C && (!W || a) && this.renderRightArrow(W), _ && !p && this.renderButtonGroups(), _ && !d && this.renderDotsList()), _ && d && this.renderDotsList(), _ && p && this.renderButtonGroups());
|
|
492
492
|
}, i.defaultProps = { slidesToSlide: 1, infinite: !1, draggable: !0, swipeable: !0, arrows: !0, renderArrowsWhenDisabled: !1, containerClass: "", sliderClass: "", itemClass: "", keyBoardControl: !0, autoPlaySpeed: 3e3, showDots: !1, renderDotsOutside: !1, renderButtonGroupOutside: !1, minimumTouchDrag: 80, className: "", dotListClass: "", focusOnSelect: !1, centerMode: !1, additionalTransfrom: 0, pauseOnHover: !0, shouldResetAutoplay: !0, rewind: !1, rtl: !1, rewindWithAnimation: !1 }, i;
|
|
493
493
|
}(T.Component);
|
|
494
494
|
J.default = ee;
|
|
@@ -509,12 +509,80 @@ const re = /* @__PURE__ */ mt(oe), ne = yt.div`
|
|
|
509
509
|
align-items: center;
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
-
& .carousel-container {
|
|
513
|
-
padding-bottom: 1.25rem;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
512
|
& .carousel-item {
|
|
517
513
|
padding-right: 0;
|
|
514
|
+
|
|
515
|
+
&:not(.react-multi-carousel-item--active) {
|
|
516
|
+
& .section__card {
|
|
517
|
+
height: 22.5rem;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
& .section__card {
|
|
522
|
+
display: flex;
|
|
523
|
+
flex-direction: column;
|
|
524
|
+
justify-content: space-between;
|
|
525
|
+
align-items: flex-start;
|
|
526
|
+
flex: 1 0 0;
|
|
527
|
+
align-self: stretch;
|
|
528
|
+
border-radius: 0.75rem;
|
|
529
|
+
width: 100%;
|
|
530
|
+
height: 22.5rem;
|
|
531
|
+
position: relative;
|
|
532
|
+
overflow: hidden;
|
|
533
|
+
|
|
534
|
+
& .section__image {
|
|
535
|
+
width: 100%;
|
|
536
|
+
height: 100%;
|
|
537
|
+
object-fit: cover;
|
|
538
|
+
display: block;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
& .card__content {
|
|
542
|
+
position: absolute;
|
|
543
|
+
top: 0;
|
|
544
|
+
left: 0;
|
|
545
|
+
padding: 3rem;
|
|
546
|
+
height: 100%;
|
|
547
|
+
display: flex;
|
|
548
|
+
flex-direction: column;
|
|
549
|
+
justify-content: space-between;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
& .card__text {
|
|
553
|
+
display: flex;
|
|
554
|
+
flex-direction: column;
|
|
555
|
+
align-items: flex-start;
|
|
556
|
+
gap: 0.25rem;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
& .card__title {
|
|
560
|
+
color: var(--white, #fff);
|
|
561
|
+
font-size: 1.75rem;
|
|
562
|
+
font-style: normal;
|
|
563
|
+
font-weight: 600;
|
|
564
|
+
line-height: 2.25rem;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
& .card__description {
|
|
568
|
+
color: var(--white, #fff);
|
|
569
|
+
font-size: 1rem;
|
|
570
|
+
font-style: normal;
|
|
571
|
+
font-weight: 400;
|
|
572
|
+
line-height: 1.5rem;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
& .card__action {
|
|
576
|
+
padding: 0.625rem 0.75rem;
|
|
577
|
+
background: var(--white, #fff);
|
|
578
|
+
color: var(--gray-950, #14161a);
|
|
579
|
+
font-size: 0.875rem;
|
|
580
|
+
font-style: normal;
|
|
581
|
+
font-weight: 500;
|
|
582
|
+
line-height: 1.25rem;
|
|
583
|
+
width: fit-content;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
518
586
|
}
|
|
519
587
|
|
|
520
588
|
& .react-multiple-carousel__arrow {
|
|
@@ -544,100 +612,56 @@ const re = /* @__PURE__ */ mt(oe), ne = yt.div`
|
|
|
544
612
|
right: 1rem;
|
|
545
613
|
}
|
|
546
614
|
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
justify-content: space-between;
|
|
551
|
-
align-items: flex-start;
|
|
552
|
-
flex: 1 0 0;
|
|
553
|
-
align-self: stretch;
|
|
554
|
-
border-radius: 0.75rem;
|
|
555
|
-
width: 100%;
|
|
556
|
-
height: 22.5rem;
|
|
557
|
-
position: relative;
|
|
558
|
-
overflow: hidden;
|
|
559
|
-
|
|
560
|
-
& .section__image {
|
|
561
|
-
width: 100%;
|
|
562
|
-
height: 100%;
|
|
563
|
-
object-fit: cover;
|
|
564
|
-
display: block;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
& .card__content {
|
|
568
|
-
position: absolute;
|
|
569
|
-
top: 0;
|
|
570
|
-
left: 0;
|
|
571
|
-
padding: 3rem;
|
|
572
|
-
height: 100%;
|
|
573
|
-
display: flex;
|
|
574
|
-
flex-direction: column;
|
|
575
|
-
justify-content: space-between;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
& .card__text {
|
|
579
|
-
display: flex;
|
|
580
|
-
flex-direction: column;
|
|
581
|
-
align-items: flex-start;
|
|
582
|
-
gap: 0.25rem;
|
|
615
|
+
@media (max-width: 464px) {
|
|
616
|
+
& .carousel-container {
|
|
617
|
+
min-height: 23.4375rem;
|
|
583
618
|
}
|
|
584
619
|
|
|
585
|
-
& .
|
|
586
|
-
|
|
587
|
-
font-size: 1.75rem;
|
|
588
|
-
font-style: normal;
|
|
589
|
-
font-weight: 600;
|
|
590
|
-
line-height: 2.25rem;
|
|
591
|
-
}
|
|
620
|
+
& .carousel-item {
|
|
621
|
+
padding-right: 1rem;
|
|
592
622
|
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
font-weight: 400;
|
|
598
|
-
line-height: 1.5rem;
|
|
599
|
-
}
|
|
623
|
+
&:last-of-type {
|
|
624
|
+
padding-left: 1rem;
|
|
625
|
+
padding-right: 0;
|
|
626
|
+
}
|
|
600
627
|
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
color: var(--gray-950, #14161a);
|
|
605
|
-
font-size: 0.875rem;
|
|
606
|
-
font-style: normal;
|
|
607
|
-
font-weight: 500;
|
|
608
|
-
line-height: 1.25rem;
|
|
609
|
-
width: fit-content;
|
|
610
|
-
}
|
|
611
|
-
}
|
|
628
|
+
&:nth-last-child(2) {
|
|
629
|
+
padding-right: 0;
|
|
630
|
+
}
|
|
612
631
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
632
|
+
&:not(.react-multi-carousel-item--active) {
|
|
633
|
+
& .section__card {
|
|
634
|
+
height: 20.625rem;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
618
637
|
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
638
|
+
&.react-multi-carousel-item--active:not([data-index="0"]) {
|
|
639
|
+
& .section__card {
|
|
640
|
+
animation: scaleCarouselItem 500ms forwards;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
623
643
|
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
644
|
+
& .section__card {
|
|
645
|
+
height: 23.4375rem;
|
|
646
|
+
border-radius: 0.5rem;
|
|
627
647
|
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
648
|
+
& .section__image {
|
|
649
|
+
object-fit: fill;
|
|
650
|
+
}
|
|
631
651
|
|
|
632
|
-
|
|
633
|
-
|
|
652
|
+
& .card__content {
|
|
653
|
+
display: none;
|
|
654
|
+
}
|
|
634
655
|
}
|
|
635
656
|
}
|
|
636
657
|
|
|
637
|
-
|
|
638
|
-
|
|
658
|
+
@keyframes scaleCarouselItem {
|
|
659
|
+
from {
|
|
639
660
|
height: 20.625rem;
|
|
640
|
-
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
top {
|
|
664
|
+
height: 23.4375rem;
|
|
641
665
|
}
|
|
642
666
|
}
|
|
643
667
|
}
|
|
@@ -672,10 +696,11 @@ const re = /* @__PURE__ */ mt(oe), ne = yt.div`
|
|
|
672
696
|
autoPlay: !0,
|
|
673
697
|
partialVisible: !0,
|
|
674
698
|
customTransition: "transform 500ms ease-in-out",
|
|
675
|
-
transitionDuration: 1e3,
|
|
676
699
|
sliderClass: "carousel-slider",
|
|
677
700
|
itemClass: "carousel-item",
|
|
678
701
|
containerClass: "carousel-container",
|
|
702
|
+
rewind: !0,
|
|
703
|
+
rewindWithAnimation: !0,
|
|
679
704
|
children: o == null ? void 0 : o.map((n, s) => /* @__PURE__ */ z(
|
|
680
705
|
"div",
|
|
681
706
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),m=require("react"),s=require("./utils-DmMdPm9O.cjs"),h=require("./Icon.cjs"),j=require("./style-DaT7Beup.cjs"),N=require("./index-DiIeF_76.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),x=require("./suspense-large-PHdzP1Ln.cjs"),S=require("./Button.cjs"),z=b.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
|
5
5
|
gap: 1.25rem;
|
|
6
6
|
border-radius: 1.25rem;
|
|
7
7
|
align-items: stretch;
|
|
8
|
-
border: ${
|
|
8
|
+
border: ${i=>i!=null&&i.isSponsored?"2px solid var(--yellow-500, #f59e0b)":"1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
|
|
9
9
|
background: var(--white, #fff);
|
|
10
10
|
min-height: 10.5rem;
|
|
11
11
|
position: relative;
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
object-fit: cover;
|
|
39
39
|
height: auto;
|
|
40
40
|
max-width: 12.5rem;
|
|
41
|
+
min-width: 12.5rem;
|
|
41
42
|
max-height: 9rem;
|
|
42
43
|
border-radius: 0.75rem;
|
|
43
44
|
}
|
|
@@ -102,6 +103,7 @@
|
|
|
102
103
|
border-bottom-left-radius: 0;
|
|
103
104
|
border-bottom-right-radius: 0;
|
|
104
105
|
max-width: 100%;
|
|
106
|
+
min-width: 100%;
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
& .wrapper__content {
|
|
@@ -119,7 +121,7 @@
|
|
|
119
121
|
}
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
|
-
`,I=
|
|
124
|
+
`,I=m.forwardRef(({title:i,imageUrl:p,options:t,publishedAt:c,timeToReadText:g="{0} min read",timeToRead:_=0,numberOfLikes:n=0,numberOfComments:l=0,isSponsored:o=!1,onSelectCard:f=()=>{}},w)=>r.jsxs(z,{isSponsored:o,onClick:f,children:[o&&r.jsx("div",{className:"wrapper__sponsored",children:r.jsx(h,{icon:" mng-lnc-paw",sizeInUnits:"1.5rem"})}),r.jsx(N.ProductImageWrapper,{src:p,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:i}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.map((a,u)=>r.jsx(j.BlogTag,{color:a==null?void 0:a.color,children:a==null?void 0:a.name},u)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"info__text",children:`${s.formatLocaleDateString(c)} • ${s.formatString(g,_)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(h,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),s.getRoundedNumber(n)]}),r.jsxs("div",{children:[r.jsx(h,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),s.getRoundedNumber(l)]})]})]})]})]})),R=b.styled.div`
|
|
123
125
|
display: flex;
|
|
124
126
|
flex-direction: column;
|
|
125
127
|
align-items: flex-start;
|
|
@@ -201,4 +203,4 @@
|
|
|
201
203
|
gap: 1rem;
|
|
202
204
|
}
|
|
203
205
|
}
|
|
204
|
-
`,q=
|
|
206
|
+
`,q=m.memo(I),k=m.forwardRef(({title:i,subtitle:p,icon:t,buttonText:c,buttonLink:g,timeToReadText:_="{0} min read",items:n,onButtonAction:l=()=>{},onSelectCard:o=()=>{},isLoading:f=!1,getImage:w=()=>{}},a)=>{const u=m.useMemo(()=>{var d;return(d=n==null?void 0:n.slice(0,4))==null?void 0:d.map((e,y)=>r.jsx(q,{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:_,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>o==null?void 0:o(e),imageUrl:w(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-sponsored__${y+1}`))},[n]);return r.jsxs(R,{children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[i&&r.jsxs("div",{className:"title__text",children:[s.isDefinedNotEmptyString(t)&&r.jsx("i",{className:t}),r.jsx("span",{children:i})]}),l&&r.jsx(S,{text:c,borderRadius:"curved",btnType:"tinted",className:"title__action",color:"neutral",onClick:d=>{var e;(e=d==null?void 0:d.target)==null||e.blur(),l==null||l(g)}})]}),p&&r.jsx("div",{className:"wrapper__subtitle",children:p})]}),r.jsx("div",{className:"wrapper__cards",children:r.jsx(x.SuspenseBlogLarge,{isLoading:f,limit:4,keyPrefix:"blog-section",children:u})})]})});module.exports=k;
|
|
@@ -2,8 +2,8 @@ import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as b, memo as S, useMemo as k } from "react";
|
|
3
3
|
import { p as v, s as $, v as j, w as u, k as I } from "./utils-BPdU4_1q.js";
|
|
4
4
|
import h from "./Icon.js";
|
|
5
|
-
import { B as R } from "./style-
|
|
6
|
-
import { P as L } from "./index-
|
|
5
|
+
import { B as R } from "./style-DAn9Ifqe.js";
|
|
6
|
+
import { P as L } from "./index-DRP1yTKe.js";
|
|
7
7
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
8
|
import { M as N } from "./consts-BuFChS64.js";
|
|
9
9
|
import { S as O } from "./suspense-large-DrD8xVZi.js";
|
|
@@ -48,6 +48,7 @@ const U = y.div`
|
|
|
48
48
|
object-fit: cover;
|
|
49
49
|
height: auto;
|
|
50
50
|
max-width: 12.5rem;
|
|
51
|
+
min-width: 12.5rem;
|
|
51
52
|
max-height: 9rem;
|
|
52
53
|
border-radius: 0.75rem;
|
|
53
54
|
}
|
|
@@ -112,6 +113,7 @@ const U = y.div`
|
|
|
112
113
|
border-bottom-left-radius: 0;
|
|
113
114
|
border-bottom-right-radius: 0;
|
|
114
115
|
max-width: 100%;
|
|
116
|
+
min-width: 100%;
|
|
115
117
|
}
|
|
116
118
|
|
|
117
119
|
& .wrapper__content {
|
|
@@ -132,7 +134,7 @@ const U = y.div`
|
|
|
132
134
|
`, B = b(
|
|
133
135
|
({
|
|
134
136
|
title: i,
|
|
135
|
-
imageUrl:
|
|
137
|
+
imageUrl: p,
|
|
136
138
|
options: t,
|
|
137
139
|
publishedAt: d,
|
|
138
140
|
timeToReadText: c = "{0} min read",
|
|
@@ -144,7 +146,7 @@ const U = y.div`
|
|
|
144
146
|
}
|
|
145
147
|
}, w) => /* @__PURE__ */ a(U, { isSponsored: o, onClick: f, children: [
|
|
146
148
|
o && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(h, { icon: " mng-lnc-paw", sizeInUnits: "1.5rem" }) }),
|
|
147
|
-
/* @__PURE__ */ r(L, { src:
|
|
149
|
+
/* @__PURE__ */ r(L, { src: p, className: "wrapper__image" }),
|
|
148
150
|
/* @__PURE__ */ a("div", { className: "wrapper__content", children: [
|
|
149
151
|
/* @__PURE__ */ a("div", { className: "wrapper__subcontent", children: [
|
|
150
152
|
/* @__PURE__ */ r("div", { className: "wrapper__title", children: i }),
|
|
@@ -252,7 +254,7 @@ const U = y.div`
|
|
|
252
254
|
`, M = S(B), J = b(
|
|
253
255
|
({
|
|
254
256
|
title: i,
|
|
255
|
-
subtitle:
|
|
257
|
+
subtitle: p,
|
|
256
258
|
icon: t,
|
|
257
259
|
buttonText: d,
|
|
258
260
|
buttonLink: c,
|
|
@@ -267,8 +269,8 @@ const U = y.div`
|
|
|
267
269
|
}
|
|
268
270
|
}, l) => {
|
|
269
271
|
const _ = k(() => {
|
|
270
|
-
var
|
|
271
|
-
return (
|
|
272
|
+
var m;
|
|
273
|
+
return (m = n == null ? void 0 : n.slice(0, 4)) == null ? void 0 : m.map((e, z) => /* @__PURE__ */ r(
|
|
272
274
|
M,
|
|
273
275
|
{
|
|
274
276
|
title: e == null ? void 0 : e.title,
|
|
@@ -301,14 +303,14 @@ const U = y.div`
|
|
|
301
303
|
btnType: "tinted",
|
|
302
304
|
className: "title__action",
|
|
303
305
|
color: "neutral",
|
|
304
|
-
onClick: (
|
|
306
|
+
onClick: (m) => {
|
|
305
307
|
var e;
|
|
306
|
-
(e =
|
|
308
|
+
(e = m == null ? void 0 : m.target) == null || e.blur(), s == null || s(c);
|
|
307
309
|
}
|
|
308
310
|
}
|
|
309
311
|
)
|
|
310
312
|
] }),
|
|
311
|
-
|
|
313
|
+
p && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: p })
|
|
312
314
|
] }),
|
|
313
315
|
/* @__PURE__ */ r("div", { className: "wrapper__cards", children: /* @__PURE__ */ r(
|
|
314
316
|
O,
|