@lanaco/lnc-react-ui 4.0.54 → 4.0.56
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/BannerSectionSimple.cjs +5 -9
- package/dist/BannerSectionSimple.js +27 -31
- package/dist/GeneralWithTagsCardsSection.cjs +8 -8
- package/dist/GeneralWithTagsCardsSection.js +55 -53
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +8 -7
- package/dist/MasonryGeneralCardsSection.js +46 -43
- package/dist/OverlayGeneralCardsSection.cjs +9 -9
- package/dist/OverlayGeneralCardsSection.js +75 -64
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),j=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./consts-CtNoHdBj.cjs"),y=require("./Button.cjs"),M=require("./useDetectMobile-D6d5LpdL.cjs"),v=i.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
background-color: ${e=>e.bgcolor||"transparent"};
|
|
@@ -11,11 +11,6 @@
|
|
|
11
11
|
width: fit-content;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
15
|
-
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
|
|
16
|
-
|
|
17
|
-
`}
|
|
18
|
-
|
|
19
14
|
& img {
|
|
20
15
|
object-fit: cover;
|
|
21
16
|
max-width: ${e=>e.imgW||"22.5rem"};
|
|
@@ -34,6 +29,7 @@
|
|
|
34
29
|
flex-direction: column;
|
|
35
30
|
min-height: unset;
|
|
36
31
|
max-height: unset;
|
|
32
|
+
border: none;
|
|
37
33
|
|
|
38
34
|
& button {
|
|
39
35
|
width: fit-content;
|
|
@@ -46,7 +42,7 @@
|
|
|
46
42
|
min-height: ${e=>e.imgHMob||"12.1rem"};
|
|
47
43
|
}
|
|
48
44
|
}
|
|
49
|
-
`,
|
|
45
|
+
`,H=i.styled.div`
|
|
50
46
|
padding: ${e=>e.smallPadding===!0?"2rem":"4rem 5rem"};
|
|
51
47
|
display: flex;
|
|
52
48
|
gap: 2rem;
|
|
@@ -59,7 +55,7 @@
|
|
|
59
55
|
padding: 0;
|
|
60
56
|
flex-direction: column;
|
|
61
57
|
}
|
|
62
|
-
`,
|
|
58
|
+
`,B=i.styled.div`
|
|
63
59
|
display: flex;
|
|
64
60
|
flex-direction: column;
|
|
65
61
|
gap: 0.25rem;
|
|
@@ -78,4 +74,4 @@
|
|
|
78
74
|
@media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
|
|
79
75
|
flex-direction: column;
|
|
80
76
|
}
|
|
81
|
-
`,_=
|
|
77
|
+
`,_=j.forwardRef((e,m)=>{const{title:d,subtitle:l,buttonText:h,buttonLink:c,onButtonAction:g=()=>{},imageUrl:o,imagePosition:n="right",hideImageForMobile:s=!1,sectionHeight:u="12.65625rem",imageWidth:x,imageHeightMobile:b,smallPadding:p=!1,isHorizontalContent:f=!1,backgroundColor:w,hasBorder:$=!1}=e,a=M.useDetectMobile();return t.jsxs(v,{ref:m,bgcolor:w,height:u,imgW:x,imgHMob:b,hasBorder:$,children:[n!=="right"&&!(s===!0&&a===!0)&&t.jsx("img",{src:o}),t.jsxs(H,{isHorizontalContent:f,smallPadding:p,children:[t.jsxs(B,{children:[t.jsx("div",{className:"header-title",children:d}),t.jsx("div",{className:"header-subitle",children:l})]}),t.jsx(y,{size:"medium",color:"neutral",type:"button",onClick:()=>g(c),children:h})]}),n==="right"&&!(s===!0&&a===!0)&&t.jsx("img",{src:o})]})});module.exports=_;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as t, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as H } from "react";
|
|
3
3
|
import { s as r } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as o } from "./consts-C1uHV4xc.js";
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
7
|
-
const
|
|
5
|
+
import M from "./Button.js";
|
|
6
|
+
import { u as y } from "./useDetectMobile-BC6EGaBc.js";
|
|
7
|
+
const C = r.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
border-radius: 0.75rem;
|
|
10
10
|
background-color: ${(e) => e.bgcolor || "transparent"};
|
|
@@ -17,11 +17,6 @@ const B = r.div`
|
|
|
17
17
|
width: fit-content;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
${(e) => e.hasBorder === !0 && `border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
21
|
-
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
|
|
22
|
-
|
|
23
|
-
`}
|
|
24
|
-
|
|
25
20
|
& img {
|
|
26
21
|
object-fit: cover;
|
|
27
22
|
max-width: ${(e) => e.imgW || "22.5rem"};
|
|
@@ -40,6 +35,7 @@ const B = r.div`
|
|
|
40
35
|
flex-direction: column;
|
|
41
36
|
min-height: unset;
|
|
42
37
|
max-height: unset;
|
|
38
|
+
border: none;
|
|
43
39
|
|
|
44
40
|
& button {
|
|
45
41
|
width: fit-content;
|
|
@@ -52,7 +48,7 @@ const B = r.div`
|
|
|
52
48
|
min-height: ${(e) => e.imgHMob || "12.1rem"};
|
|
53
49
|
}
|
|
54
50
|
}
|
|
55
|
-
`,
|
|
51
|
+
`, z = r.div`
|
|
56
52
|
padding: ${(e) => e.smallPadding === !0 ? "2rem" : "4rem 5rem"};
|
|
57
53
|
display: flex;
|
|
58
54
|
gap: 2rem;
|
|
@@ -65,7 +61,7 @@ const B = r.div`
|
|
|
65
61
|
padding: 0;
|
|
66
62
|
flex-direction: column;
|
|
67
63
|
}
|
|
68
|
-
`,
|
|
64
|
+
`, B = r.div`
|
|
69
65
|
display: flex;
|
|
70
66
|
flex-direction: column;
|
|
71
67
|
gap: 0.25rem;
|
|
@@ -84,54 +80,54 @@ const B = r.div`
|
|
|
84
80
|
@media (max-width: ${o + "px"}) {
|
|
85
81
|
flex-direction: column;
|
|
86
82
|
}
|
|
87
|
-
`, E =
|
|
83
|
+
`, E = H((e, l) => {
|
|
88
84
|
const {
|
|
89
85
|
title: h,
|
|
90
|
-
subtitle:
|
|
91
|
-
buttonText:
|
|
86
|
+
subtitle: s,
|
|
87
|
+
buttonText: g,
|
|
92
88
|
buttonLink: c,
|
|
93
|
-
onButtonAction:
|
|
89
|
+
onButtonAction: u = () => {
|
|
94
90
|
},
|
|
95
91
|
imageUrl: n,
|
|
96
92
|
imagePosition: a = "right",
|
|
97
93
|
hideImageForMobile: m = !1,
|
|
98
|
-
sectionHeight:
|
|
99
|
-
imageWidth:
|
|
100
|
-
imageHeightMobile:
|
|
101
|
-
smallPadding:
|
|
94
|
+
sectionHeight: x = "12.65625rem",
|
|
95
|
+
imageWidth: p,
|
|
96
|
+
imageHeightMobile: f,
|
|
97
|
+
smallPadding: b = !1,
|
|
102
98
|
isHorizontalContent: $ = !1,
|
|
103
99
|
backgroundColor: w,
|
|
104
100
|
hasBorder: v = !1
|
|
105
|
-
} = e, d =
|
|
101
|
+
} = e, d = y();
|
|
106
102
|
return /* @__PURE__ */ t(
|
|
107
|
-
|
|
103
|
+
C,
|
|
108
104
|
{
|
|
109
105
|
ref: l,
|
|
110
106
|
bgcolor: w,
|
|
111
|
-
height:
|
|
112
|
-
imgW:
|
|
113
|
-
imgHMob:
|
|
107
|
+
height: x,
|
|
108
|
+
imgW: p,
|
|
109
|
+
imgHMob: f,
|
|
114
110
|
hasBorder: v,
|
|
115
111
|
children: [
|
|
116
112
|
a !== "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: n }),
|
|
117
113
|
/* @__PURE__ */ t(
|
|
118
|
-
|
|
114
|
+
z,
|
|
119
115
|
{
|
|
120
116
|
isHorizontalContent: $,
|
|
121
|
-
smallPadding:
|
|
117
|
+
smallPadding: b,
|
|
122
118
|
children: [
|
|
123
|
-
/* @__PURE__ */ t(
|
|
119
|
+
/* @__PURE__ */ t(B, { children: [
|
|
124
120
|
/* @__PURE__ */ i("div", { className: "header-title", children: h }),
|
|
125
|
-
/* @__PURE__ */ i("div", { className: "header-subitle", children:
|
|
121
|
+
/* @__PURE__ */ i("div", { className: "header-subitle", children: s })
|
|
126
122
|
] }),
|
|
127
123
|
/* @__PURE__ */ i(
|
|
128
|
-
|
|
124
|
+
M,
|
|
129
125
|
{
|
|
130
126
|
size: "medium",
|
|
131
127
|
color: "neutral",
|
|
132
128
|
type: "button",
|
|
133
|
-
onClick: () =>
|
|
134
|
-
children:
|
|
129
|
+
onClick: () => u(c),
|
|
130
|
+
children: g
|
|
135
131
|
}
|
|
136
132
|
)
|
|
137
133
|
]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-CtNoHdBj.cjs"),m=require("./utils-NZLCh-J5.cjs"),j=require("./Icon.cjs"),k=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),$=o.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
`,I=o.styled.div`
|
|
78
78
|
width: 100%;
|
|
79
79
|
height: 11.625rem;
|
|
80
80
|
border-radius: 0.75rem;
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
height: 5rem;
|
|
86
86
|
border-radius: 999px;
|
|
87
87
|
}
|
|
88
|
-
`,
|
|
88
|
+
`,N=o.styled.div`
|
|
89
89
|
display: flex;
|
|
90
90
|
padding: 0 0.5rem 0 0;
|
|
91
91
|
align-items: center;
|
|
@@ -125,12 +125,12 @@
|
|
|
125
125
|
white-space: nowrap;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
`,C=
|
|
128
|
+
`,C=o.styled.div`
|
|
129
129
|
width: 7rem;
|
|
130
130
|
height: 3rem;
|
|
131
131
|
border-radius: 999px;
|
|
132
132
|
background: ${m.linearGradientAnimation("-90deg")};
|
|
133
|
-
`,E=
|
|
133
|
+
`,E=l.forwardRef(({},t)=>r.jsx(C,{})),W=l.forwardRef(({text:t,icon:i,onSelectCard:a=()=>{}},p)=>r.jsxs(N,{onClick:a,children:[r.jsx(j,{icon:` ${i}`,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),G=l.forwardRef(({image:t,imageComponent:i,title:a,onSelectCard:p=()=>{}},w)=>{const{theme:c}=k.useTheme();return r.jsxs($,{theme:c,onClick:p,children:[m.isDefined(i)?i:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsx("div",{className:"wrapper__content",children:r.jsx("div",{className:"wrapper__title",children:a})})]})}),R=l.forwardRef(({},t)=>r.jsx(I,{})),q=o.styled.div`
|
|
134
134
|
display: flex;
|
|
135
135
|
flex-direction: column;
|
|
136
136
|
align-items: center;
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
|
|
173
173
|
& .wrapper__cards {
|
|
174
174
|
display: grid;
|
|
175
|
-
grid-template-columns: ${
|
|
175
|
+
grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCards}, minmax(0, 1fr))`};
|
|
176
176
|
justify-content: center;
|
|
177
177
|
align-items: center;
|
|
178
178
|
gap: 1.5rem;
|
|
@@ -203,8 +203,8 @@
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
& .wrapper__cards {
|
|
206
|
-
grid-template-columns: ${
|
|
206
|
+
grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
207
207
|
gap: 1rem;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
`,
|
|
210
|
+
`,z=l.forwardRef(({title:t,subtitle:i,options:a=[],limitTags:p=7,limitTagsForMobile:w=2,limit:c=3,limitForMobile:b=3,items:n=[],onSelectTag:h=()=>{},onSelectCard:_=()=>{},isLoading:y},v)=>{var f,u;const x=e=>{h==null||h(e==null?void 0:e.uuid)},g=e=>{_==null||_(e==null?void 0:e.uuid)};return r.jsxs(q,{ref:v,limitTags:p,limitTagsForMobile:w,limitCards:c,limitCardsForMobile:b,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),i&&r.jsx("div",{className:"wrapper__subtitle",children:i})]}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,s)=>r.jsx(G,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,onSelectCard:()=>g==null?void 0:g(e==null?void 0:e.uuid)},`general-with-tags-card__${s+1}`)):(f=Array.from("123"))==null?void 0:f.map((e,s)=>r.jsx(R,{},`general-with-tags-card-skeleton__${s+1}`))}),(a==null?void 0:a.length)>0&&r.jsx("div",{className:"wrapper__tags",children:a==null?void 0:a.map((e,s)=>r.jsx(W,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.text,onSelectCard:()=>x==null?void 0:x(e)},`general-with-tags-card-tag__${s+1}`))}),y===!0&&!((a==null?void 0:a.length)>0)&&r.jsx("div",{className:"wrapper__tags",children:(u=Array.from("123"))==null?void 0:u.map((e,s)=>r.jsx(E,{},`general-with-tags-card-tag-skeleton__${s+1}`))})]})});module.exports=z;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s
|
|
1
|
+
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as o } from "react";
|
|
3
|
+
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as d } from "./consts-C1uHV4xc.js";
|
|
5
|
-
import { t as
|
|
5
|
+
import { t as $, m as b, l as N } from "./utils-DtRLzzTZ.js";
|
|
6
6
|
import C from "./Icon.js";
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
7
|
+
import { u as W } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
const j = s.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: flex-start;
|
|
@@ -44,7 +44,7 @@ const W = p.div`
|
|
|
44
44
|
font-style: normal;
|
|
45
45
|
font-weight: 500;
|
|
46
46
|
line-height: 1.5rem;
|
|
47
|
-
${
|
|
47
|
+
${$(2)}
|
|
48
48
|
transition: var(--transition, all 0.2s ease);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -81,7 +81,7 @@ const W = p.div`
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`, G = s.div`
|
|
85
85
|
width: 100%;
|
|
86
86
|
height: 11.625rem;
|
|
87
87
|
border-radius: 0.75rem;
|
|
@@ -92,7 +92,7 @@ const W = p.div`
|
|
|
92
92
|
height: 5rem;
|
|
93
93
|
border-radius: 999px;
|
|
94
94
|
}
|
|
95
|
-
`,
|
|
95
|
+
`, z = s.div`
|
|
96
96
|
display: flex;
|
|
97
97
|
padding: 0 0.5rem 0 0;
|
|
98
98
|
align-items: center;
|
|
@@ -132,27 +132,27 @@ const W = p.div`
|
|
|
132
132
|
white-space: nowrap;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
`,
|
|
135
|
+
`, T = s.div`
|
|
136
136
|
width: 7rem;
|
|
137
137
|
height: 3rem;
|
|
138
138
|
border-radius: 999px;
|
|
139
139
|
background: ${b("-90deg")};
|
|
140
|
-
`,
|
|
141
|
-
({ text: r, icon:
|
|
142
|
-
} },
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */
|
|
140
|
+
`, I = o(({}, r) => /* @__PURE__ */ a(T, {})), M = o(
|
|
141
|
+
({ text: r, icon: i, onSelectCard: t = () => {
|
|
142
|
+
} }, p) => /* @__PURE__ */ m(z, { onClick: t, children: [
|
|
143
|
+
/* @__PURE__ */ a(C, { icon: ` ${i}`, className: "wrapper__icon" }),
|
|
144
|
+
/* @__PURE__ */ a("div", { className: "wrapper__text", children: r })
|
|
145
145
|
] })
|
|
146
|
-
),
|
|
147
|
-
({ image: r, imageComponent:
|
|
148
|
-
} },
|
|
149
|
-
const { theme: c } =
|
|
150
|
-
return /* @__PURE__ */ m(
|
|
151
|
-
|
|
152
|
-
/* @__PURE__ */
|
|
146
|
+
), A = o(
|
|
147
|
+
({ image: r, imageComponent: i, title: t, onSelectCard: p = () => {
|
|
148
|
+
} }, f) => {
|
|
149
|
+
const { theme: c } = W();
|
|
150
|
+
return /* @__PURE__ */ m(j, { theme: c, onClick: p, children: [
|
|
151
|
+
N(i) ? i : /* @__PURE__ */ a("img", { src: r, className: "wrapper__image" }),
|
|
152
|
+
/* @__PURE__ */ a("div", { className: "wrapper__content", children: /* @__PURE__ */ a("div", { className: "wrapper__title", children: t }) })
|
|
153
153
|
] });
|
|
154
154
|
}
|
|
155
|
-
),
|
|
155
|
+
), E = o(({}, r) => /* @__PURE__ */ a(G, {})), F = s.div`
|
|
156
156
|
display: flex;
|
|
157
157
|
flex-direction: column;
|
|
158
158
|
align-items: center;
|
|
@@ -229,66 +229,68 @@ const W = p.div`
|
|
|
229
229
|
gap: 1rem;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
`,
|
|
232
|
+
`, Z = o(
|
|
233
233
|
({
|
|
234
234
|
title: r,
|
|
235
|
-
subtitle:
|
|
236
|
-
|
|
237
|
-
limitTags:
|
|
238
|
-
limitTagsForMobile:
|
|
235
|
+
subtitle: i,
|
|
236
|
+
options: t = [],
|
|
237
|
+
limitTags: p = 7,
|
|
238
|
+
limitTagsForMobile: f = 2,
|
|
239
239
|
limit: c = 3,
|
|
240
240
|
limitForMobile: v = 3,
|
|
241
241
|
items: n = [],
|
|
242
242
|
onSelectTag: h = () => {
|
|
243
243
|
},
|
|
244
|
-
onSelectCard:
|
|
245
|
-
}
|
|
246
|
-
|
|
244
|
+
onSelectCard: g = () => {
|
|
245
|
+
},
|
|
246
|
+
isLoading: y
|
|
247
|
+
}, k) => {
|
|
247
248
|
var x, u;
|
|
248
|
-
const
|
|
249
|
+
const w = (e) => {
|
|
249
250
|
h == null || h(e == null ? void 0 : e.uuid);
|
|
250
251
|
}, _ = (e) => {
|
|
251
|
-
|
|
252
|
+
g == null || g(e == null ? void 0 : e.uuid);
|
|
252
253
|
};
|
|
253
254
|
return /* @__PURE__ */ m(
|
|
254
|
-
|
|
255
|
+
F,
|
|
255
256
|
{
|
|
256
|
-
ref:
|
|
257
|
-
limitTags:
|
|
258
|
-
limitTagsForMobile:
|
|
257
|
+
ref: k,
|
|
258
|
+
limitTags: p,
|
|
259
|
+
limitTagsForMobile: f,
|
|
259
260
|
limitCards: c,
|
|
260
261
|
limitCardsForMobile: v,
|
|
261
262
|
children: [
|
|
262
263
|
/* @__PURE__ */ m("div", { className: "wrapper__heading", children: [
|
|
263
|
-
r && /* @__PURE__ */
|
|
264
|
-
|
|
264
|
+
r && /* @__PURE__ */ a("div", { className: "wrapper__title", children: r }),
|
|
265
|
+
i && /* @__PURE__ */ a("div", { className: "wrapper__subtitle", children: i })
|
|
265
266
|
] }),
|
|
266
|
-
/* @__PURE__ */
|
|
267
|
-
|
|
267
|
+
/* @__PURE__ */ a("div", { className: "wrapper__cards", children: n && (n == null ? void 0 : n.length) > 0 ? n == null ? void 0 : n.map((e, l) => /* @__PURE__ */ a(
|
|
268
|
+
A,
|
|
268
269
|
{
|
|
269
270
|
image: e == null ? void 0 : e.image,
|
|
270
271
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
271
272
|
title: e == null ? void 0 : e.title,
|
|
272
273
|
onSelectCard: () => _ == null ? void 0 : _(e == null ? void 0 : e.uuid)
|
|
273
274
|
},
|
|
274
|
-
`general-with-tags-card__${
|
|
275
|
-
)) : (x = Array.from("123")) == null ? void 0 : x.map((e,
|
|
276
|
-
|
|
275
|
+
`general-with-tags-card__${l + 1}`
|
|
276
|
+
)) : (x = Array.from("123")) == null ? void 0 : x.map((e, l) => /* @__PURE__ */ a(
|
|
277
|
+
E,
|
|
277
278
|
{},
|
|
278
|
-
`general-with-tags-card-skeleton__${
|
|
279
|
+
`general-with-tags-card-skeleton__${l + 1}`
|
|
279
280
|
)) }),
|
|
280
|
-
/* @__PURE__ */
|
|
281
|
-
|
|
281
|
+
(t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ a("div", { className: "wrapper__tags", children: t == null ? void 0 : t.map((e, l) => /* @__PURE__ */ a(
|
|
282
|
+
M,
|
|
282
283
|
{
|
|
283
284
|
icon: e == null ? void 0 : e.icon,
|
|
284
285
|
text: e == null ? void 0 : e.text,
|
|
285
|
-
onSelectCard: () =>
|
|
286
|
+
onSelectCard: () => w == null ? void 0 : w(e)
|
|
286
287
|
},
|
|
287
|
-
`general-with-tags-card-tag__${
|
|
288
|
-
))
|
|
289
|
-
|
|
288
|
+
`general-with-tags-card-tag__${l + 1}`
|
|
289
|
+
)) }),
|
|
290
|
+
y === !0 && !((t == null ? void 0 : t.length) > 0) && /* @__PURE__ */ a("div", { className: "wrapper__tags", children: (u = Array.from("123")) == null ? void 0 : u.map((e, l) => /* @__PURE__ */ a(
|
|
291
|
+
I,
|
|
290
292
|
{},
|
|
291
|
-
`general-with-tags-card-tag-skeleton__${
|
|
293
|
+
`general-with-tags-card-tag-skeleton__${l + 1}`
|
|
292
294
|
)) })
|
|
293
295
|
]
|
|
294
296
|
}
|
|
@@ -296,5 +298,5 @@ const W = p.div`
|
|
|
296
298
|
}
|
|
297
299
|
);
|
|
298
300
|
export {
|
|
299
|
-
|
|
301
|
+
Z as default
|
|
300
302
|
};
|
package/dist/GiftCardsSection.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),g=require("react"),f=require("./Button.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-NZLCh-J5.cjs"),u=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),p=require("./consts-CtNoHdBj.cjs"),_=c.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
`,
|
|
117
|
+
`,w=g.forwardRef(({title:t,image:e,description:n,buttonText:a,onSelectCard:l=()=>{},className:o,position:s,selectAction:d,tag:m},x)=>{const h=u.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(_,{ref:x,theme:h,className:o,onClick:l,position:s,children:[r.jsx("img",{src:e,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__text",children:[m&&r.jsx("div",{className:"text__tag",children:m}),r.jsx("div",{className:"text__title",children:t}),i.isDefinedNotEmptyString(n)&&r.jsx("div",{className:"text__description",children:n}),i.isDefinedNotEmptyString(a)&&r.jsx(f,{text:a,onClick:()=>l(d),className:"text__action"})]})]})})}),b=c.styled.div`
|
|
118
118
|
display: flex;
|
|
119
119
|
flex-direction: column;
|
|
120
120
|
gap: 1.5rem;
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
@media (max-width: ${
|
|
141
|
+
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
142
142
|
gap: 1.25rem;
|
|
143
143
|
|
|
144
144
|
& .regular-title {
|
|
@@ -149,16 +149,17 @@
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
`,
|
|
152
|
+
`,v=c.styled.div`
|
|
153
153
|
display: grid;
|
|
154
|
-
grid-template-columns: repeat(12, 1fr);
|
|
154
|
+
grid-template-columns: ${t=>"repeat(12, minmax(0, 1fr))"};
|
|
155
|
+
|
|
155
156
|
grid-template-rows: 15rem 15rem;
|
|
156
157
|
grid-column-gap: 1.25rem;
|
|
157
158
|
grid-row-gap: 1.25rem;
|
|
158
159
|
height: 30rem;
|
|
159
160
|
max-height: 30rem;
|
|
160
161
|
|
|
161
|
-
@media (max-width: ${
|
|
162
|
+
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
162
163
|
display: flex;
|
|
163
164
|
flex-direction: column;
|
|
164
165
|
gap: 1rem;
|
|
@@ -167,4 +168,4 @@
|
|
|
167
168
|
max-height: 100%;
|
|
168
169
|
padding: 0 1rem;
|
|
169
170
|
}
|
|
170
|
-
`,
|
|
171
|
+
`,y=g.forwardRef(({title:t,items:e,limit:n=3,onSelectCard:a=()=>{}},l)=>r.jsxs(b,{children:[r.jsx("div",{className:"regular-title",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:t})})}),r.jsx(v,{limit:n,children:e&&(e==null?void 0:e.map((o,s)=>r.jsx(w,{...o,onSelectCard:d=>a(d,o)},`landing-page-masonry-general-card__${s+1}`)))})]}));module.exports=y;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
1
|
+
import { jsx as t, Fragment as w, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
|
-
import
|
|
4
|
-
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { m as n, t as
|
|
6
|
-
import { u as
|
|
7
|
-
import { M as
|
|
8
|
-
const
|
|
3
|
+
import b from "./Button.js";
|
|
4
|
+
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
+
import { m as n, t as p, k as h } from "./utils-DtRLzzTZ.js";
|
|
6
|
+
import { u as v } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
import { M as x } from "./consts-C1uHV4xc.js";
|
|
8
|
+
const y = c.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: flex-start;
|
|
@@ -70,7 +70,7 @@ const b = s.div`
|
|
|
70
70
|
font-style: normal;
|
|
71
71
|
font-weight: 500;
|
|
72
72
|
line-height: 1.5rem;
|
|
73
|
-
${
|
|
73
|
+
${p(2)}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
& .text__tag {
|
|
@@ -92,7 +92,7 @@ const b = s.div`
|
|
|
92
92
|
font-style: normal;
|
|
93
93
|
font-weight: 400;
|
|
94
94
|
line-height: 1.25rem;
|
|
95
|
-
${
|
|
95
|
+
${p(2)}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
& .text__action {
|
|
@@ -133,37 +133,39 @@ const b = s.div`
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
`,
|
|
136
|
+
`, k = f(
|
|
137
137
|
({
|
|
138
138
|
title: r,
|
|
139
139
|
image: e,
|
|
140
|
-
description:
|
|
141
|
-
|
|
140
|
+
description: i,
|
|
141
|
+
buttonText: a,
|
|
142
142
|
onSelectCard: l = () => {
|
|
143
143
|
},
|
|
144
|
-
className:
|
|
145
|
-
position:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
144
|
+
className: o,
|
|
145
|
+
position: m,
|
|
146
|
+
selectAction: d,
|
|
147
|
+
tag: g
|
|
148
|
+
}, u) => {
|
|
149
|
+
const _ = v();
|
|
150
|
+
return /* @__PURE__ */ t(w, { children: /* @__PURE__ */ s(
|
|
151
|
+
y,
|
|
151
152
|
{
|
|
152
|
-
|
|
153
|
-
|
|
153
|
+
ref: u,
|
|
154
|
+
theme: _,
|
|
155
|
+
className: o,
|
|
154
156
|
onClick: l,
|
|
155
|
-
position:
|
|
157
|
+
position: m,
|
|
156
158
|
children: [
|
|
157
159
|
/* @__PURE__ */ t("img", { src: e, className: "wrapper__image" }),
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
-
|
|
160
|
+
/* @__PURE__ */ s("div", { className: "wrapper__text", children: [
|
|
161
|
+
g && /* @__PURE__ */ t("div", { className: "text__tag", children: g }),
|
|
160
162
|
/* @__PURE__ */ t("div", { className: "text__title", children: r }),
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
163
|
+
h(i) && /* @__PURE__ */ t("div", { className: "text__description", children: i }),
|
|
164
|
+
h(a) && /* @__PURE__ */ t(
|
|
165
|
+
b,
|
|
164
166
|
{
|
|
165
|
-
text:
|
|
166
|
-
onClick: l,
|
|
167
|
+
text: a,
|
|
168
|
+
onClick: () => l(d),
|
|
167
169
|
className: "text__action"
|
|
168
170
|
}
|
|
169
171
|
)
|
|
@@ -172,7 +174,7 @@ const b = s.div`
|
|
|
172
174
|
}
|
|
173
175
|
) });
|
|
174
176
|
}
|
|
175
|
-
),
|
|
177
|
+
), $ = c.div`
|
|
176
178
|
display: flex;
|
|
177
179
|
flex-direction: column;
|
|
178
180
|
gap: 1.5rem;
|
|
@@ -196,7 +198,7 @@ const b = s.div`
|
|
|
196
198
|
}
|
|
197
199
|
}
|
|
198
200
|
|
|
199
|
-
@media (max-width: ${
|
|
201
|
+
@media (max-width: ${x + "px"}) {
|
|
200
202
|
gap: 1.25rem;
|
|
201
203
|
|
|
202
204
|
& .regular-title {
|
|
@@ -207,16 +209,17 @@ const b = s.div`
|
|
|
207
209
|
}
|
|
208
210
|
}
|
|
209
211
|
}
|
|
210
|
-
`,
|
|
212
|
+
`, N = c.div`
|
|
211
213
|
display: grid;
|
|
212
|
-
grid-template-columns: repeat(12, 1fr);
|
|
214
|
+
grid-template-columns: ${(r) => "repeat(12, minmax(0, 1fr))"};
|
|
215
|
+
|
|
213
216
|
grid-template-rows: 15rem 15rem;
|
|
214
217
|
grid-column-gap: 1.25rem;
|
|
215
218
|
grid-row-gap: 1.25rem;
|
|
216
219
|
height: 30rem;
|
|
217
220
|
max-height: 30rem;
|
|
218
221
|
|
|
219
|
-
@media (max-width: ${
|
|
222
|
+
@media (max-width: ${x + "px"}) {
|
|
220
223
|
display: flex;
|
|
221
224
|
flex-direction: column;
|
|
222
225
|
gap: 1rem;
|
|
@@ -225,20 +228,20 @@ const b = s.div`
|
|
|
225
228
|
max-height: 100%;
|
|
226
229
|
padding: 0 1rem;
|
|
227
230
|
}
|
|
228
|
-
`,
|
|
229
|
-
({ title: r, items: e, limit:
|
|
230
|
-
} }, l) => /* @__PURE__ */
|
|
231
|
+
`, I = f(
|
|
232
|
+
({ title: r, items: e, limit: i = 3, onSelectCard: a = () => {
|
|
233
|
+
} }, l) => /* @__PURE__ */ s($, { children: [
|
|
231
234
|
/* @__PURE__ */ t("div", { className: "regular-title", children: /* @__PURE__ */ t("div", { className: "regular-title-text", children: /* @__PURE__ */ t("span", { children: r }) }) }),
|
|
232
|
-
/* @__PURE__ */ t(
|
|
233
|
-
|
|
235
|
+
/* @__PURE__ */ t(N, { limit: i, children: e && (e == null ? void 0 : e.map((o, m) => /* @__PURE__ */ t(
|
|
236
|
+
k,
|
|
234
237
|
{
|
|
235
|
-
...
|
|
236
|
-
onSelectCard: () =>
|
|
238
|
+
...o,
|
|
239
|
+
onSelectCard: (d) => a(d, o)
|
|
237
240
|
},
|
|
238
|
-
`landing-page-masonry-general-card__${
|
|
241
|
+
`landing-page-masonry-general-card__${m + 1}`
|
|
239
242
|
))) })
|
|
240
243
|
] })
|
|
241
244
|
);
|
|
242
245
|
export {
|
|
243
|
-
|
|
246
|
+
I as default
|
|
244
247
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-CtNoHdBj.cjs"),f=require("./style-C571ywKV.cjs"),u=require("./utils-NZLCh-J5.cjs"),j=require("./Button.cjs"),v=require("./ThemeProvider.cjs"),y=x.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${n=>`repeat(${n.limit}, 1fr)`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
justify-items: center;
|
|
6
6
|
|
|
7
|
-
@media (max-width: ${
|
|
7
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
gap: 1rem;
|
|
11
11
|
}
|
|
12
|
-
`,
|
|
12
|
+
`,h=x.styled.div`
|
|
13
13
|
width: 100%;
|
|
14
14
|
overflow: hidden;
|
|
15
15
|
position: relative;
|
|
16
16
|
|
|
17
17
|
border-radius: 0.75rem;
|
|
18
|
-
background: ${
|
|
18
|
+
background: ${n=>n==null?void 0:n.overlay};
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
|
|
21
21
|
& .content-wrapper {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
& .content-text-title {
|
|
52
52
|
font-weight: 600;
|
|
53
|
-
${
|
|
53
|
+
${u.truncateTextInRows(2)}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
& .img-skeleton {
|
|
65
|
-
background-color: ${
|
|
65
|
+
background-color: ${u.linearGradientAnimation("-90deg")};
|
|
66
66
|
min-height: 28.75rem;
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
@media (max-width: ${
|
|
75
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
76
76
|
& img,
|
|
77
77
|
.img.skeleton {
|
|
78
78
|
aspect-ratio: unset;
|
|
@@ -80,4 +80,4 @@
|
|
|
80
80
|
max-height: 28.75rem;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
`,
|
|
83
|
+
`,m=l.forwardRef(({},n)=>e.jsx(h,{ref:n,children:e.jsx("div",{className:"img-skeleton"})})),w=({limit:n=2,isLoading:t=!1,keyPrefix:o})=>e.jsx(e.Fragment,{children:Array.from({length:n},(a,s)=>e.jsx(m,{isLoading:t},`${o}-skeleton-product-card-${s}`))}),k=({children:n,fallbackComponent:t=e.jsx(e.Fragment,{}),isLoading:o=!1,limit:a,keyPrefix:s})=>e.jsx(l.Suspense,{fallbackComponent:t,children:o===!0?e.jsx(w,{isLoading:o,limit:a,keyPrefix:s}):n}),b=l.forwardRef(({title:n,image:t,backgroundColor:o,description:a,buttonText:s,handleClick:c=()=>{},onButtonAction:i=()=>{}},d)=>{const{theme:r}=v.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(h,{ref:d,theme:r,overlay:o,onClick:c,children:[e.jsx("img",{src:t}),e.jsxs("div",{className:"content-wrapper",children:[e.jsxs("div",{className:"content-text",children:[e.jsx("div",{children:n}),e.jsx("div",{className:"content-text-title",children:a})]}),u.isDefinedNotEmptyString(s)&&e.jsx(j,{text:s,onClick:i,className:"text__action",size:"medium",color:"gray"})]})]})})}),_=l.memo(b),$=l.forwardRef(({title:n,items:t,limit:o=2,onSelectCard:a=()=>{},isLoading:s=!1,onButtonAction:c=()=>{}},i)=>{const d=l.useMemo(()=>e.jsx(e.Fragment,{children:t&&(t==null?void 0:t.map((r,p)=>e.jsx(_,{title:r==null?void 0:r.title,image:r==null?void 0:r.imageUrl,description:r==null?void 0:r.description,buttonText:r==null?void 0:r.buttonText,backgroundColor:r==null?void 0:r.backgroundColor,handleClick:()=>a(r==null?void 0:r.selectAction,r),onButtonAction:()=>c(r==null?void 0:r.buttonLink,r)},`landing-page-overlay-general-card__${p+1}`)))}),[t,a]);return e.jsxs(f.RegulatTitleSectionWrapper,{ref:i,children:[e.jsx("div",{className:"regular-title center",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:n})})}),e.jsx(y,{limit:o,children:e.jsx(k,{isLoading:s,limit:o,keyPrefix:"explore-landing",children:d})})]})});module.exports=$;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as r, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { R as
|
|
6
|
-
import { t as w, m as k } from "./utils-DtRLzzTZ.js";
|
|
7
|
-
import
|
|
8
|
-
import { useTheme as
|
|
9
|
-
const
|
|
1
|
+
import { jsx as r, Fragment as i, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, Suspense as x, memo as v, useMemo as y } from "react";
|
|
3
|
+
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as u } from "./consts-C1uHV4xc.js";
|
|
5
|
+
import { R as k } from "./style-CsMpu4iC.js";
|
|
6
|
+
import { t as w, m as b, k as $ } from "./utils-DtRLzzTZ.js";
|
|
7
|
+
import C from "./Button.js";
|
|
8
|
+
import { useTheme as N } from "./ThemeProvider.js";
|
|
9
|
+
const P = h.div`
|
|
10
10
|
display: grid;
|
|
11
|
-
grid-template-columns: ${(
|
|
11
|
+
grid-template-columns: ${(n) => `repeat(${n.limit}, 1fr)`};
|
|
12
12
|
gap: 1.25rem;
|
|
13
13
|
justify-items: center;
|
|
14
14
|
|
|
15
|
-
@media (max-width: ${
|
|
15
|
+
@media (max-width: ${u + "px"}) {
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
gap: 1rem;
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`, f = h.div`
|
|
21
21
|
width: 100%;
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
position: relative;
|
|
24
24
|
|
|
25
25
|
border-radius: 0.75rem;
|
|
26
|
-
background: ${(
|
|
26
|
+
background: ${(n) => n == null ? void 0 : n.overlay};
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
|
|
29
29
|
& .content-wrapper {
|
|
@@ -70,7 +70,7 @@ const N = g.div`
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
& .img-skeleton {
|
|
73
|
-
background-color: ${
|
|
73
|
+
background-color: ${b("-90deg")};
|
|
74
74
|
min-height: 28.75rem;
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -80,7 +80,7 @@ const N = g.div`
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
@media (max-width: ${
|
|
83
|
+
@media (max-width: ${u + "px"}) {
|
|
84
84
|
& img,
|
|
85
85
|
.img.skeleton {
|
|
86
86
|
aspect-ratio: unset;
|
|
@@ -88,48 +88,57 @@ const N = g.div`
|
|
|
88
88
|
max-height: 28.75rem;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
`,
|
|
92
|
-
|
|
91
|
+
`, S = g(({}, n) => /* @__PURE__ */ r(f, { ref: n, children: /* @__PURE__ */ r("div", { className: "img-skeleton" }) })), _ = ({ limit: n = 2, isLoading: o = !1, keyPrefix: t }) => /* @__PURE__ */ r(i, { children: Array.from({ length: n }, (l, a) => /* @__PURE__ */ r(
|
|
92
|
+
S,
|
|
93
93
|
{
|
|
94
|
-
isLoading:
|
|
94
|
+
isLoading: o
|
|
95
95
|
},
|
|
96
|
-
`${
|
|
97
|
-
)) }),
|
|
98
|
-
children:
|
|
99
|
-
fallbackComponent:
|
|
100
|
-
isLoading:
|
|
101
|
-
limit:
|
|
102
|
-
keyPrefix:
|
|
103
|
-
}) => /* @__PURE__ */ r(
|
|
96
|
+
`${t}-skeleton-product-card-${a}`
|
|
97
|
+
)) }), j = ({
|
|
98
|
+
children: n,
|
|
99
|
+
fallbackComponent: o = /* @__PURE__ */ r(i, {}),
|
|
100
|
+
isLoading: t = !1,
|
|
101
|
+
limit: l,
|
|
102
|
+
keyPrefix: a
|
|
103
|
+
}) => /* @__PURE__ */ r(x, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ r(
|
|
104
104
|
_,
|
|
105
105
|
{
|
|
106
|
-
isLoading:
|
|
107
|
-
limit:
|
|
108
|
-
keyPrefix:
|
|
106
|
+
isLoading: t,
|
|
107
|
+
limit: l,
|
|
108
|
+
keyPrefix: a
|
|
109
109
|
}
|
|
110
|
-
) :
|
|
111
|
-
({
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
) : n }), G = g(
|
|
111
|
+
({
|
|
112
|
+
title: n,
|
|
113
|
+
image: o,
|
|
114
|
+
backgroundColor: t,
|
|
115
|
+
description: l,
|
|
116
|
+
buttonText: a,
|
|
117
|
+
handleClick: d = () => {
|
|
118
|
+
},
|
|
119
|
+
onButtonAction: s = () => {
|
|
120
|
+
}
|
|
121
|
+
}, p) => {
|
|
122
|
+
const { theme: e } = N();
|
|
123
|
+
return /* @__PURE__ */ r(i, { children: /* @__PURE__ */ c(
|
|
124
|
+
f,
|
|
116
125
|
{
|
|
117
|
-
ref:
|
|
126
|
+
ref: p,
|
|
118
127
|
theme: e,
|
|
119
|
-
overlay:
|
|
120
|
-
onClick:
|
|
128
|
+
overlay: t,
|
|
129
|
+
onClick: d,
|
|
121
130
|
children: [
|
|
122
|
-
/* @__PURE__ */ r("img", { src:
|
|
131
|
+
/* @__PURE__ */ r("img", { src: o }),
|
|
123
132
|
/* @__PURE__ */ c("div", { className: "content-wrapper", children: [
|
|
124
133
|
/* @__PURE__ */ c("div", { className: "content-text", children: [
|
|
125
|
-
/* @__PURE__ */ r("div", { children:
|
|
126
|
-
/* @__PURE__ */ r("div", { className: "content-text-title", children:
|
|
134
|
+
/* @__PURE__ */ r("div", { children: n }),
|
|
135
|
+
/* @__PURE__ */ r("div", { className: "content-text-title", children: l })
|
|
127
136
|
] }),
|
|
128
|
-
/* @__PURE__ */ r(
|
|
129
|
-
|
|
137
|
+
$(a) && /* @__PURE__ */ r(
|
|
138
|
+
C,
|
|
130
139
|
{
|
|
131
|
-
text:
|
|
132
|
-
onClick:
|
|
140
|
+
text: a,
|
|
141
|
+
onClick: s,
|
|
133
142
|
className: "text__action",
|
|
134
143
|
size: "medium",
|
|
135
144
|
color: "gray"
|
|
@@ -140,35 +149,37 @@ const N = g.div`
|
|
|
140
149
|
}
|
|
141
150
|
) });
|
|
142
151
|
}
|
|
143
|
-
),
|
|
144
|
-
({ title:
|
|
145
|
-
}, isLoading:
|
|
146
|
-
|
|
147
|
-
|
|
152
|
+
), O = v(G), L = g(
|
|
153
|
+
({ title: n, items: o, limit: t = 2, onSelectCard: l = () => {
|
|
154
|
+
}, isLoading: a = !1, onButtonAction: d = () => {
|
|
155
|
+
} }, s) => {
|
|
156
|
+
const p = y(() => /* @__PURE__ */ r(i, { children: o && (o == null ? void 0 : o.map((e, m) => /* @__PURE__ */ r(
|
|
157
|
+
O,
|
|
148
158
|
{
|
|
149
159
|
title: e == null ? void 0 : e.title,
|
|
150
|
-
image: e == null ? void 0 : e.
|
|
160
|
+
image: e == null ? void 0 : e.imageUrl,
|
|
151
161
|
description: e == null ? void 0 : e.description,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
handleClick: () =>
|
|
162
|
+
buttonText: e == null ? void 0 : e.buttonText,
|
|
163
|
+
backgroundColor: e == null ? void 0 : e.backgroundColor,
|
|
164
|
+
handleClick: () => l(e == null ? void 0 : e.selectAction, e),
|
|
165
|
+
onButtonAction: () => d(e == null ? void 0 : e.buttonLink, e)
|
|
155
166
|
},
|
|
156
|
-
`landing-page-overlay-general-card__${
|
|
157
|
-
))) }), [
|
|
158
|
-
return /* @__PURE__ */ c(
|
|
159
|
-
/* @__PURE__ */ r("div", { className: "regular-title center", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children:
|
|
160
|
-
/* @__PURE__ */ r(
|
|
161
|
-
|
|
167
|
+
`landing-page-overlay-general-card__${m + 1}`
|
|
168
|
+
))) }), [o, l]);
|
|
169
|
+
return /* @__PURE__ */ c(k, { ref: s, children: [
|
|
170
|
+
/* @__PURE__ */ r("div", { className: "regular-title center", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children: n }) }) }),
|
|
171
|
+
/* @__PURE__ */ r(P, { limit: t, children: /* @__PURE__ */ r(
|
|
172
|
+
j,
|
|
162
173
|
{
|
|
163
|
-
isLoading:
|
|
164
|
-
limit:
|
|
174
|
+
isLoading: a,
|
|
175
|
+
limit: t,
|
|
165
176
|
keyPrefix: "explore-landing",
|
|
166
|
-
children:
|
|
177
|
+
children: p
|
|
167
178
|
}
|
|
168
179
|
) })
|
|
169
180
|
] });
|
|
170
181
|
}
|
|
171
182
|
);
|
|
172
183
|
export {
|
|
173
|
-
|
|
184
|
+
L as default
|
|
174
185
|
};
|