@lanaco/lnc-react-ui 4.0.38 → 4.0.39
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/BlogsSectionDetailed.cjs +11 -11
- package/dist/BlogsSectionDetailed.js +124 -87
- package/dist/BlogsSectionLarge.cjs +10 -10
- package/dist/BlogsSectionLarge.js +87 -60
- package/dist/BlogsSectionSimple.cjs +8 -8
- package/dist/BlogsSectionSimple.js +98 -72
- package/dist/BlogsSectionSimpleCentered.cjs +9 -9
- package/dist/BlogsSectionSimpleCentered.js +75 -45
- package/dist/BlogsSectionWithFilters.cjs +10 -10
- package/dist/BlogsSectionWithFilters.js +105 -77
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +66 -57
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +20 -20
- package/dist/OverlayGeneralCardsSection.js +99 -59
- package/dist/ProductsWithBannerSection.cjs +10 -10
- package/dist/ProductsWithBannerSection.js +87 -56
- package/dist/SimpleCategoriesSection.cjs +9 -9
- package/dist/SimpleCategoriesSection.js +89 -58
- package/dist/SimpleProductsSection.cjs +3 -3
- package/dist/SimpleProductsSection.js +86 -55
- package/dist/UrgentSaleProductsSection.cjs +5 -5
- package/dist/UrgentSaleProductsSection.js +41 -30
- package/dist/{index-CHkb_Sj6.js → index-BN8qgFbe.js} +15 -15
- package/dist/{index-Dj5wZCVs.cjs → index-_Db92CJE.cjs} +3 -3
- package/dist/suspense-product-card-detailed-BETmfKMT.js +189 -0
- package/dist/{index-vXmvgZ2Y.cjs → suspense-product-card-detailed-DtzOxHaH.cjs} +4 -4
- package/package.json +1 -1
- package/dist/index-D6g5ZqyJ.js +0 -159
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { n as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { m as
|
|
7
|
-
import { T } from "./style-6tSw9aqK.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
1
|
+
import { jsxs as l, jsx as t, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h, Suspense as B, memo as M, useMemo as W } from "react";
|
|
3
|
+
import { n as u } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
|
+
import { M as w } from "./consts-C1uHV4xc.js";
|
|
5
|
+
import { u as z } from "./useDetectMobile-BC6EGaBc.js";
|
|
6
|
+
import { m as g, t as P, k as b } from "./utils-DtRLzzTZ.js";
|
|
7
|
+
import { T as R } from "./style-6tSw9aqK.js";
|
|
8
|
+
import j from "./Button.js";
|
|
9
|
+
import A from "./Link.js";
|
|
10
|
+
import { S as E } from "./index-CT6_7UFb.js";
|
|
11
|
+
const F = u.div`
|
|
12
12
|
display: grid;
|
|
13
|
-
grid-template-columns: ${(
|
|
13
|
+
grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
|
|
14
14
|
gap: 1.25rem;
|
|
15
15
|
|
|
16
|
-
@media (max-width: ${
|
|
16
|
+
@media (max-width: ${w + "px"}) {
|
|
17
17
|
grid-template-columns: repeat(1, 1fr);
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`, S = u.div`
|
|
20
20
|
display: flex;
|
|
21
21
|
width: 100%;
|
|
22
22
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
@@ -45,16 +45,16 @@ const M = p.div`
|
|
|
45
45
|
min-height: 3.3125rem;
|
|
46
46
|
max-height: 3.3125rem;
|
|
47
47
|
border-radius: 0.75rem;
|
|
48
|
-
background-color: ${
|
|
48
|
+
background-color: ${g("-90deg")};
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
& a {
|
|
52
52
|
margin-top: auto;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
@media (max-width: ${
|
|
55
|
+
@media (max-width: ${w + "px"}) {
|
|
56
56
|
}
|
|
57
|
-
`,
|
|
57
|
+
`, v = u.div`
|
|
58
58
|
display: flex;
|
|
59
59
|
flex-direction: column;
|
|
60
60
|
gap: 0.5rem;
|
|
@@ -68,114 +68,142 @@ const M = p.div`
|
|
|
68
68
|
& .skeleton-title {
|
|
69
69
|
height: 1.5rem;
|
|
70
70
|
width: 80%;
|
|
71
|
-
background-color: ${
|
|
71
|
+
background-color: ${g("-90deg")};
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
& .skeleton-action {
|
|
75
75
|
height: 1.25rem;
|
|
76
76
|
width: 20%;
|
|
77
|
-
background-color: ${
|
|
77
|
+
background-color: ${g("-90deg")};
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
& .text-wr {
|
|
81
81
|
font-weight: 400;
|
|
82
82
|
font-size: 0.875rem;
|
|
83
83
|
color: var(--gray-700, #4e555f);
|
|
84
|
-
${
|
|
84
|
+
${P(3)}
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
/* @__PURE__ */ i(k, { children: [
|
|
86
|
+
`, I = h(({}, i) => /* @__PURE__ */ l(S, { className: "blog-card", children: [
|
|
87
|
+
/* @__PURE__ */ l(v, { children: [
|
|
89
88
|
/* @__PURE__ */ t("div", { className: "skeleton-title" }),
|
|
90
89
|
/* @__PURE__ */ t("div", { className: "text-wr" }),
|
|
91
90
|
/* @__PURE__ */ t("div", { className: "skeleton-action" })
|
|
92
91
|
] }),
|
|
93
92
|
/* @__PURE__ */ t("div", { className: "skeleton-img" })
|
|
94
|
-
] }))
|
|
95
|
-
const
|
|
96
|
-
const { title: l, image: m, text: r, buttonText: d, onCardClick: a } = o;
|
|
93
|
+
] })), O = h((i, m) => {
|
|
94
|
+
const { title: o, image: a, text: r, buttonText: c, onCardClick: n } = i;
|
|
97
95
|
return (
|
|
98
96
|
// <SimpleBlogCardHorizontalSkeleton />
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */ t("div", { className: "text-wr-title", children:
|
|
97
|
+
/* @__PURE__ */ l(S, { className: "blog-card", onClick: n, children: [
|
|
98
|
+
/* @__PURE__ */ l(v, { children: [
|
|
99
|
+
/* @__PURE__ */ t("div", { className: "text-wr-title", children: o }),
|
|
102
100
|
/* @__PURE__ */ t("div", { className: "text-wr", children: r }),
|
|
103
|
-
/* @__PURE__ */ t(
|
|
101
|
+
/* @__PURE__ */ t(A, { color: "gray", onClick: n, children: c })
|
|
104
102
|
] }),
|
|
105
|
-
/* @__PURE__ */ t("img", { src:
|
|
103
|
+
/* @__PURE__ */ t("img", { src: a })
|
|
106
104
|
] })
|
|
107
105
|
);
|
|
108
|
-
}),
|
|
106
|
+
}), _ = ({ limit: i = 3, isLoading: m = !1, keyPrefix: o }) => /* @__PURE__ */ t(p, { children: Array.from({ length: i }, (a, r) => /* @__PURE__ */ t(
|
|
107
|
+
I,
|
|
108
|
+
{
|
|
109
|
+
isLoading: m
|
|
110
|
+
},
|
|
111
|
+
`${o}-skeleton-product-card-${r}`
|
|
112
|
+
)) }), D = ({
|
|
113
|
+
children: i,
|
|
114
|
+
fallbackComponent: m = /* @__PURE__ */ t(p, {}),
|
|
115
|
+
isLoading: o = !1,
|
|
116
|
+
limit: a,
|
|
117
|
+
keyPrefix: r
|
|
118
|
+
}) => /* @__PURE__ */ t(B, { fallbackComponent: m, children: o === !0 ? /* @__PURE__ */ t(
|
|
119
|
+
_,
|
|
120
|
+
{
|
|
121
|
+
isLoading: o,
|
|
122
|
+
limit: a,
|
|
123
|
+
keyPrefix: r
|
|
124
|
+
}
|
|
125
|
+
) : i }), k = M(O), V = h((i, m) => {
|
|
109
126
|
const {
|
|
110
|
-
icon:
|
|
111
|
-
title:
|
|
127
|
+
icon: o,
|
|
128
|
+
title: a,
|
|
112
129
|
items: r,
|
|
113
|
-
buttonText:
|
|
114
|
-
limit:
|
|
115
|
-
options:
|
|
116
|
-
onActionClick:
|
|
130
|
+
buttonText: c,
|
|
131
|
+
limit: n = 3,
|
|
132
|
+
options: d,
|
|
133
|
+
onActionClick: y = () => {
|
|
134
|
+
},
|
|
135
|
+
onSelectOption: f = () => {
|
|
117
136
|
},
|
|
118
|
-
|
|
137
|
+
isLoading: C = !1,
|
|
138
|
+
onSectionClick: N = () => {
|
|
119
139
|
}
|
|
120
|
-
} =
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
140
|
+
} = i, T = z(), $ = W(() => /* @__PURE__ */ t(p, { children: T === !0 ? r == null ? void 0 : r.map((e, s) => /* @__PURE__ */ t(
|
|
141
|
+
k,
|
|
142
|
+
{
|
|
143
|
+
title: e == null ? void 0 : e.title,
|
|
144
|
+
image: e == null ? void 0 : e.image,
|
|
145
|
+
text: e == null ? void 0 : e.text,
|
|
146
|
+
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
147
|
+
buttonText: e == null ? void 0 : e.buttonText,
|
|
148
|
+
onCardClick: () => onSelectCard(e == null ? void 0 : e.uuid)
|
|
149
|
+
},
|
|
150
|
+
s
|
|
151
|
+
)) : r == null ? void 0 : r.slice(0, n).map((e, s) => /* @__PURE__ */ t(
|
|
152
|
+
k,
|
|
153
|
+
{
|
|
154
|
+
title: e == null ? void 0 : e.title,
|
|
155
|
+
image: e == null ? void 0 : e.image,
|
|
156
|
+
text: e == null ? void 0 : e.text,
|
|
157
|
+
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
158
|
+
buttonText: e == null ? void 0 : e.buttonText,
|
|
159
|
+
onCardClick: () => onSelectCard(e == null ? void 0 : e.uuid)
|
|
160
|
+
},
|
|
161
|
+
s
|
|
162
|
+
)) }), [r]);
|
|
163
|
+
return /* @__PURE__ */ l(R, { children: [
|
|
164
|
+
/* @__PURE__ */ l("div", { className: "regular-title", children: [
|
|
165
|
+
/* @__PURE__ */ l("div", { className: "regular-title-text", children: [
|
|
166
|
+
b(o) && /* @__PURE__ */ t("i", { className: o }),
|
|
167
|
+
/* @__PURE__ */ t("span", { children: a })
|
|
126
168
|
] }),
|
|
127
|
-
|
|
128
|
-
|
|
169
|
+
b(N) && /* @__PURE__ */ t(
|
|
170
|
+
j,
|
|
129
171
|
{
|
|
130
172
|
type: "button",
|
|
131
173
|
btnType: "tinted",
|
|
132
174
|
color: "gray",
|
|
133
|
-
onClick:
|
|
175
|
+
onClick: y,
|
|
134
176
|
borderRadius: "curved",
|
|
135
|
-
children:
|
|
177
|
+
children: c
|
|
136
178
|
}
|
|
137
179
|
)
|
|
138
180
|
] }),
|
|
139
|
-
(
|
|
140
|
-
|
|
181
|
+
(d == null ? void 0 : d.length) > 0 && /* @__PURE__ */ t(
|
|
182
|
+
E,
|
|
141
183
|
{
|
|
142
|
-
items:
|
|
184
|
+
items: d,
|
|
143
185
|
onRemove: (e) => {
|
|
144
|
-
|
|
186
|
+
f(e);
|
|
145
187
|
},
|
|
146
188
|
onSelect: (e) => {
|
|
147
|
-
|
|
189
|
+
f(e);
|
|
148
190
|
},
|
|
149
191
|
labelKey: "name",
|
|
150
192
|
valueKey: "code",
|
|
151
193
|
noMargin: !0
|
|
152
194
|
}
|
|
153
195
|
),
|
|
154
|
-
/* @__PURE__ */ t(
|
|
155
|
-
|
|
156
|
-
{
|
|
157
|
-
title: e == null ? void 0 : e.title,
|
|
158
|
-
image: e == null ? void 0 : e.image,
|
|
159
|
-
text: e == null ? void 0 : e.text,
|
|
160
|
-
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
161
|
-
buttonText: e == null ? void 0 : e.buttonText,
|
|
162
|
-
onCardClick: () => onSelectCard(e == null ? void 0 : e.uuid)
|
|
163
|
-
},
|
|
164
|
-
c
|
|
165
|
-
)) : r == null ? void 0 : r.slice(0, a).map((e, c) => /* @__PURE__ */ t(
|
|
166
|
-
f,
|
|
196
|
+
/* @__PURE__ */ t(F, { limit: n, children: /* @__PURE__ */ t(
|
|
197
|
+
D,
|
|
167
198
|
{
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
c
|
|
176
|
-
)) })
|
|
199
|
+
isLoading: C,
|
|
200
|
+
limit: n,
|
|
201
|
+
keyPrefix: "explore-landing",
|
|
202
|
+
children: $
|
|
203
|
+
}
|
|
204
|
+
) })
|
|
177
205
|
] });
|
|
178
206
|
});
|
|
179
207
|
export {
|
|
180
|
-
|
|
208
|
+
V as default
|
|
181
209
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),h=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),j=require("./consts-CtNoHdBj.cjs"),w=require("./Button.cjs"),a=require("./utils-NZLCh-J5.cjs"),q=require("./useDetectMobile-D6d5LpdL.cjs"),D=require("./style-BR3tIhP1.cjs"),m=require("./suspense-product-card-detailed-DtzOxHaH.cjs"),P=h.newStyled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
display: flex;
|
|
8
8
|
gap: 1rem;
|
|
9
9
|
overflow-x: auto;
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
/* Safari and Chrome */
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,u=s.memo(m.DetailedProductCard),k=s.forwardRef((i,p)=>{const{icon:l,title:g,buttonLink:c,items:t,buttonText:y,limit:o=4,onSelectCard:d=()=>{},onButtonAction:b=()=>{},isLoading:S=!1}=i,C=q.useDetectMobile(),f=s.useMemo(()=>r.jsx(r.Fragment,{children:C===!0?t==null?void 0:t.map((e,n)=>r.jsx(u,{title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>d(e==null?void 0:e.uuid)},n)):t==null?void 0:t.slice(0,o).map((e,n)=>r.jsx(u,{title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>d(e==null?void 0:e.uuid)},n))}),[t]);return r.jsxs(D.RegulatTitleSectionWrapper,{ref:p,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(l)&&r.jsx("i",{className:l}),r.jsx("span",{children:g})]}),a.isDefinedNotEmptyString(c)&&r.jsx(w,{type:"button",btnType:"tinted",color:"gray",onClick:()=>b(c),borderRadius:"curved",children:y})]}),r.jsx(P,{limit:o,children:r.jsx(m.SuspenseDetailedProductCard,{isLoading:S,itemsCount:o,keyPrefix:"explore-landing",children:f})})]})});module.exports=k;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { n as
|
|
4
|
-
import { M as
|
|
5
|
-
import
|
|
6
|
-
import { k as
|
|
7
|
-
import { u as
|
|
8
|
-
import { R as
|
|
9
|
-
import { D as
|
|
10
|
-
const
|
|
1
|
+
import { jsx as r, Fragment as C, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { memo as h, forwardRef as w, useMemo as k } from "react";
|
|
3
|
+
import { n as v } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
|
+
import { M as P } from "./consts-C1uHV4xc.js";
|
|
5
|
+
import D from "./Button.js";
|
|
6
|
+
import { k as c } from "./utils-DtRLzzTZ.js";
|
|
7
|
+
import { u as M } from "./useDetectMobile-BC6EGaBc.js";
|
|
8
|
+
import { R as E } from "./style-6tSw9aqK.js";
|
|
9
|
+
import { D as N, S as R } from "./suspense-product-card-detailed-BETmfKMT.js";
|
|
10
|
+
const U = v.div`
|
|
11
11
|
display: grid;
|
|
12
12
|
grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
|
|
13
13
|
gap: 1.25rem;
|
|
14
14
|
|
|
15
|
-
@media (max-width: ${
|
|
15
|
+
@media (max-width: ${P + "px"}) {
|
|
16
16
|
display: flex;
|
|
17
17
|
gap: 1rem;
|
|
18
18
|
overflow-x: auto;
|
|
@@ -31,69 +31,78 @@ const v = S.div`
|
|
|
31
31
|
/* Safari and Chrome */
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`, m = h(N), _ = w((o, u) => {
|
|
35
35
|
const {
|
|
36
36
|
icon: l,
|
|
37
|
-
title:
|
|
38
|
-
buttonLink:
|
|
39
|
-
items:
|
|
37
|
+
title: p,
|
|
38
|
+
buttonLink: d,
|
|
39
|
+
items: i,
|
|
40
40
|
buttonText: f,
|
|
41
|
-
limit:
|
|
42
|
-
onSelectCard:
|
|
41
|
+
limit: t = 4,
|
|
42
|
+
onSelectCard: s = () => {
|
|
43
43
|
},
|
|
44
44
|
onButtonAction: g = () => {
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
},
|
|
46
|
+
isLoading: S = !1
|
|
47
|
+
} = o, b = M(), y = k(() => /* @__PURE__ */ r(C, { children: b === !0 ? i == null ? void 0 : i.map((e, n) => /* @__PURE__ */ r(
|
|
48
|
+
m,
|
|
49
|
+
{
|
|
50
|
+
title: e == null ? void 0 : e.title,
|
|
51
|
+
price: e == null ? void 0 : e.price,
|
|
52
|
+
currency: e == null ? void 0 : e.currency,
|
|
53
|
+
image: e == null ? void 0 : e.image,
|
|
54
|
+
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
55
|
+
uuid: e == null ? void 0 : e.uuid,
|
|
56
|
+
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
57
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
58
|
+
onSelectCard: () => s(e == null ? void 0 : e.uuid)
|
|
59
|
+
},
|
|
60
|
+
n
|
|
61
|
+
)) : i == null ? void 0 : i.slice(0, t).map((e, n) => /* @__PURE__ */ r(
|
|
62
|
+
m,
|
|
63
|
+
{
|
|
64
|
+
title: e == null ? void 0 : e.title,
|
|
65
|
+
price: e == null ? void 0 : e.price,
|
|
66
|
+
currency: e == null ? void 0 : e.currency,
|
|
67
|
+
image: e == null ? void 0 : e.image,
|
|
68
|
+
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
69
|
+
uuid: e == null ? void 0 : e.uuid,
|
|
70
|
+
location: e == null ? void 0 : e.location,
|
|
71
|
+
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
72
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
73
|
+
onSelectCard: () => s(e == null ? void 0 : e.uuid)
|
|
74
|
+
},
|
|
75
|
+
n
|
|
76
|
+
)) }), [i]);
|
|
77
|
+
return /* @__PURE__ */ a(E, { ref: u, children: [
|
|
78
|
+
/* @__PURE__ */ a("div", { className: "regular-title", children: [
|
|
79
|
+
/* @__PURE__ */ a("div", { className: "regular-title-text", children: [
|
|
80
|
+
c(l) && /* @__PURE__ */ r("i", { className: l }),
|
|
81
|
+
/* @__PURE__ */ r("span", { children: p })
|
|
52
82
|
] }),
|
|
53
|
-
|
|
54
|
-
|
|
83
|
+
c(d) && /* @__PURE__ */ r(
|
|
84
|
+
D,
|
|
55
85
|
{
|
|
56
86
|
type: "button",
|
|
57
87
|
btnType: "tinted",
|
|
58
88
|
color: "gray",
|
|
59
|
-
onClick: () => g(
|
|
89
|
+
onClick: () => g(d),
|
|
60
90
|
borderRadius: "curved",
|
|
61
91
|
children: f
|
|
62
92
|
}
|
|
63
93
|
)
|
|
64
94
|
] }),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
67
|
-
{
|
|
68
|
-
title: e == null ? void 0 : e.title,
|
|
69
|
-
price: e == null ? void 0 : e.price,
|
|
70
|
-
currency: e == null ? void 0 : e.currency,
|
|
71
|
-
image: e == null ? void 0 : e.image,
|
|
72
|
-
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
73
|
-
uuid: e == null ? void 0 : e.uuid,
|
|
74
|
-
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
75
|
-
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
76
|
-
onSelectCard: () => c(e == null ? void 0 : e.uuid)
|
|
77
|
-
},
|
|
78
|
-
t
|
|
79
|
-
)) : r == null ? void 0 : r.slice(0, d).map((e, t) => /* @__PURE__ */ i(
|
|
80
|
-
m,
|
|
95
|
+
/* @__PURE__ */ r(U, { limit: t, children: /* @__PURE__ */ r(
|
|
96
|
+
R,
|
|
81
97
|
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
location: e == null ? void 0 : e.location,
|
|
89
|
-
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
90
|
-
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
91
|
-
onSelectCard: () => c(e == null ? void 0 : e.uuid)
|
|
92
|
-
},
|
|
93
|
-
t
|
|
94
|
-
)) })
|
|
98
|
+
isLoading: S,
|
|
99
|
+
itemsCount: t,
|
|
100
|
+
keyPrefix: "explore-landing",
|
|
101
|
+
children: y
|
|
102
|
+
}
|
|
103
|
+
) })
|
|
95
104
|
] });
|
|
96
105
|
});
|
|
97
106
|
export {
|
|
98
|
-
|
|
107
|
+
_ as default
|
|
99
108
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),f=require("react"),u=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),w=require("./consts-CtNoHdBj.cjs"),d=require("./utils-NZLCh-J5.cjs"),$=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),f=require("react"),u=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),w=require("./consts-CtNoHdBj.cjs"),d=require("./utils-NZLCh-J5.cjs"),$=require("./index-_Db92CJE.cjs"),c=u.newStyled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 11.625rem;
|
|
4
4
|
border-radius: 0.75rem;
|
|
@@ -3,7 +3,7 @@ import { forwardRef as f } from "react";
|
|
|
3
3
|
import { n as _ } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
4
|
import { M as d } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import { m as C, l as F } from "./utils-DtRLzzTZ.js";
|
|
6
|
-
import {
|
|
6
|
+
import { a as N } from "./index-BN8qgFbe.js";
|
|
7
7
|
const k = _.div`
|
|
8
8
|
width: 100%;
|
|
9
9
|
height: 11.625rem;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("react"),x=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),p=require("./consts-CtNoHdBj.cjs"),u=require("./style-BR3tIhP1.cjs"),m=require("./ThemeProvider.cjs"),i=require("./utils-NZLCh-J5.cjs"),g=require("./Button.cjs"),f=x.newStyled.div`
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: ${t=>`repeat(${t.limit}, 1fr)`};
|
|
4
|
+
gap: 1.25rem;
|
|
5
|
+
justify-items: center;
|
|
6
|
+
|
|
7
|
+
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: 1rem;
|
|
11
|
+
}
|
|
12
|
+
`,h=x.newStyled.div`
|
|
2
13
|
display: flex;
|
|
3
14
|
flex-direction: column;
|
|
4
15
|
align-items: flex-start;
|
|
@@ -29,7 +40,7 @@
|
|
|
29
40
|
& .wrapper__image--skeleton {
|
|
30
41
|
width: 100%;
|
|
31
42
|
border-radius: 0.75rem;
|
|
32
|
-
background-color: ${
|
|
43
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
33
44
|
}
|
|
34
45
|
|
|
35
46
|
& .wrapper__text {
|
|
@@ -47,7 +58,7 @@
|
|
|
47
58
|
font-style: normal;
|
|
48
59
|
font-weight: 500;
|
|
49
60
|
line-height: 1.5rem;
|
|
50
|
-
${
|
|
61
|
+
${i.truncateTextInRows(2)}
|
|
51
62
|
}
|
|
52
63
|
|
|
53
64
|
& .text__description {
|
|
@@ -56,17 +67,17 @@
|
|
|
56
67
|
font-style: normal;
|
|
57
68
|
font-weight: 600;
|
|
58
69
|
line-height: 1.75rem;
|
|
59
|
-
${
|
|
70
|
+
${i.truncateTextInRows(2)}
|
|
60
71
|
}
|
|
61
72
|
|
|
62
73
|
& .text__title--skeleton {
|
|
63
|
-
background-color: ${
|
|
74
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
64
75
|
height: 1rem;
|
|
65
76
|
width: 9rem;
|
|
66
77
|
}
|
|
67
78
|
|
|
68
79
|
& .text__description--skeleton {
|
|
69
|
-
background-color: ${
|
|
80
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
70
81
|
height: 1rem;
|
|
71
82
|
width: 12rem;
|
|
72
83
|
}
|
|
@@ -86,7 +97,7 @@
|
|
|
86
97
|
}
|
|
87
98
|
|
|
88
99
|
& .text__action--skeleton {
|
|
89
|
-
background-color: ${
|
|
100
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
90
101
|
height: 2rem;
|
|
91
102
|
width: 9rem;
|
|
92
103
|
position: absolute;
|
|
@@ -94,7 +105,7 @@
|
|
|
94
105
|
left: 1rem;
|
|
95
106
|
}
|
|
96
107
|
|
|
97
|
-
@media (max-width: ${
|
|
108
|
+
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
98
109
|
max-height: 100%;
|
|
99
110
|
|
|
100
111
|
& .wrapper__overlay {
|
|
@@ -113,15 +124,4 @@
|
|
|
113
124
|
left: 2rem;
|
|
114
125
|
}
|
|
115
126
|
}
|
|
116
|
-
`,
|
|
117
|
-
display: grid;
|
|
118
|
-
grid-template-columns: ${t=>`repeat(${t.limit}, 1fr)`};
|
|
119
|
-
gap: 1.25rem;
|
|
120
|
-
justify-items: center;
|
|
121
|
-
|
|
122
|
-
@media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
|
|
123
|
-
display: flex;
|
|
124
|
-
flex-direction: column;
|
|
125
|
-
gap: 1rem;
|
|
126
|
-
}
|
|
127
|
-
`,w=c.forwardRef(({title:t,items:a,limit:n=2,onSelectCard:l=()=>{}},s)=>r.jsxs(g.RegulatTitleSectionWrapper,{children:[r.jsx("div",{className:"regular-title center",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:t})})}),r.jsx(f,{limit:n,children:a&&(a==null?void 0:a.map((e,i)=>r.jsx(u,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,description:e==null?void 0:e.description,actionText:e==null?void 0:e.actionText,overlay:e==null?void 0:e.overlay,handleClick:()=>l(e==null?void 0:e.uuid)},`landing-page-overlay-general-card__${i+1}`)))})]}));module.exports=w;
|
|
127
|
+
`,v=l.forwardRef(({},t)=>{const{theme:a}=m.useTheme();return e.jsxs(h,{theme:a,children:[e.jsx("div",{className:"wrapper__image--skeleton"}),e.jsxs("div",{className:"wrapper__text",children:[e.jsx("div",{className:"text__title--skeleton"}),e.jsx("div",{className:"text__description--skeleton"})]}),e.jsx("div",{className:"text__action--skeleton"})]})}),w=({limit:t=2,isLoading:a=!1,keyPrefix:n})=>e.jsx(e.Fragment,{children:Array.from({length:t},(s,o)=>e.jsx(v,{isLoading:a},`${n}-skeleton-product-card-${o}`))}),j=({children:t,fallbackComponent:a=e.jsx(e.Fragment,{}),isLoading:n=!1,limit:s,keyPrefix:o})=>e.jsx(l.Suspense,{fallbackComponent:a,children:n===!0?e.jsx(w,{isLoading:n,limit:s,keyPrefix:o}):t}),y=l.forwardRef(({title:t,image:a,overlay:n,description:s,actionText:o,actionLink:_,handleClick:c=()=>{}},r)=>{const{theme:d}=m.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(h,{theme:d,overlay:n,onClick:c,children:[e.jsx("div",{className:"wrapper__overlay",children:e.jsx("img",{src:a,className:"wrapper__image"})}),e.jsxs("div",{className:"wrapper__text",children:[e.jsx("div",{className:"text__title",children:t}),e.jsx("div",{className:"text__description",children:s})]}),e.jsx(g,{text:o,onClick:c,className:"text__action"})]})})}),k=l.memo(y),b=l.forwardRef(({title:t,items:a,limit:n=2,onSelectCard:s=()=>{},isLoading:o=!1},_)=>{const c=l.useMemo(()=>e.jsx(e.Fragment,{children:a&&(a==null?void 0:a.map((r,d)=>e.jsx(k,{title:r==null?void 0:r.title,image:r==null?void 0:r.image,description:r==null?void 0:r.description,actionText:r==null?void 0:r.actionText,overlay:r==null?void 0:r.overlay,handleClick:()=>s(r==null?void 0:r.uuid)},`landing-page-overlay-general-card__${d+1}`)))}),[a]);return e.jsxs(u.RegulatTitleSectionWrapper,{children:[e.jsx("div",{className:"regular-title center",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:t})})}),e.jsx(f,{limit:n,children:e.jsx(j,{isLoading:o,limit:n,keyPrefix:"explore-landing",children:c})})]})});module.exports=b;
|