@lanaco/lnc-react-ui 4.0.226 → 4.0.227
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 +3 -3
- package/dist/BannerSectionCarousel.js +18 -11
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +1 -1
- package/dist/BlogListSection.cjs +7 -7
- package/dist/BlogListSection.js +157 -207
- package/dist/BlogSingleSection.cjs +2 -11
- package/dist/BlogSingleSection.js +19 -35
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionLarge.cjs +8 -16
- package/dist/BlogsSectionLarge.js +40 -58
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionSimpleCentered.cjs +12 -25
- package/dist/BlogsSectionSimpleCentered.js +64 -98
- package/dist/BlogsSectionWithFilters.cjs +10 -21
- package/dist/BlogsSectionWithFilters.js +106 -154
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +41 -87
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +2 -2
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +2 -2
- package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
- package/dist/FieldOfInterestsMasonrySection.js +105 -159
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +1 -1
- package/dist/GeneralWithTagsCardsSection.js +1 -1
- package/dist/GiftCardsSection.cjs +10 -14
- package/dist/GiftCardsSection.js +76 -146
- package/dist/MasonryGeneralCardsSection.cjs +10 -10
- package/dist/MasonryGeneralCardsSection.js +45 -44
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +13 -13
- package/dist/ProductsWithBannerSection.js +87 -168
- package/dist/QuattroCardsSection.cjs +1 -1
- package/dist/QuattroCardsSection.js +1 -1
- package/dist/ReviewsSection.cjs +18 -22
- package/dist/ReviewsSection.js +101 -163
- package/dist/SalesCampaignsSection.cjs +14 -14
- package/dist/SalesCampaignsSection.js +299 -330
- package/dist/ShopCardsSection.cjs +6 -19
- package/dist/ShopCardsSection.js +54 -100
- package/dist/SimpleCategoriesSection.cjs +3 -3
- package/dist/SimpleCategoriesSection.js +64 -67
- package/dist/SimpleProductsSection.cjs +7 -7
- package/dist/SimpleProductsSection.js +65 -138
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/index-B7fBsitY.js +45 -0
- package/dist/index-BMAvJQBG.cjs +9 -0
- package/dist/index-BUdvfHpp.cjs +5 -0
- package/dist/index-BXT1eY2D.js +753 -0
- package/dist/index-C6amCwRZ.js +25 -0
- package/dist/index-C8R9lsWG.cjs +1 -0
- package/dist/index-CeQvy566.cjs +11 -0
- package/dist/index-Cyt4EUZ6.js +20 -0
- package/dist/index-D3QZziO_.cjs +368 -0
- package/dist/index-VTkAaA-n.js +18 -0
- package/dist/style-BFPpppS9.js +73 -0
- package/dist/style-CQdEALKR.cjs +59 -0
- package/package.json +1 -1
- package/dist/index-BGNavrtB.cjs +0 -368
- package/dist/index-BHcrzV2G.js +0 -54
- package/dist/index-Bj1KWOV4.cjs +0 -11
- package/dist/index-BsAddfgC.cjs +0 -1
- package/dist/index-Cn4bq6ZX.js +0 -84
- package/dist/index-CuRcxKQH.js +0 -42
- package/dist/index-DB1J-G6Z.js +0 -38
- package/dist/index-DkPva6Gr.cjs +0 -20
- package/dist/index-fzBXDy05.cjs +0 -16
- package/dist/index-gFZSZLba.js +0 -882
- package/dist/style-DvkivBNg.js +0 -74
- package/dist/style-Ito6YFqi.cjs +0 -64
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { m as
|
|
4
|
-
import { s as
|
|
5
|
-
import { d as
|
|
6
|
-
import { S as
|
|
7
|
-
import { S
|
|
8
|
-
const
|
|
1
|
+
import { jsx as t, Fragment as C, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as $, Suspense as F } from "react";
|
|
3
|
+
import { m as k } from "./utils-MoGhNMmj.js";
|
|
4
|
+
import { s as v } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
5
|
+
import { d as g } from "./breakpoints-BubDitvo.js";
|
|
6
|
+
import { S as N } from "./index-jGcy-5M_.js";
|
|
7
|
+
import { S, f as W, a as j } from "./style-BFPpppS9.js";
|
|
8
|
+
const A = v.div`
|
|
9
9
|
width: 100%;
|
|
10
10
|
height: auto;
|
|
11
11
|
border-radius: 999px;
|
|
@@ -26,60 +26,60 @@ const I = b.div`
|
|
|
26
26
|
border: var(--yellow-600, #d97706);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
@media ${
|
|
29
|
+
@media ${g("S")} {
|
|
30
30
|
& .wrapper__image {
|
|
31
31
|
height: auto;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
35
|
-
({ isActive:
|
|
36
|
-
} }, l) => /* @__PURE__ */
|
|
37
|
-
|
|
34
|
+
`, I = $(
|
|
35
|
+
({ isActive: i, image: r, imageComponent: s, onSelectCard: n = () => {
|
|
36
|
+
} }, l) => /* @__PURE__ */ t(
|
|
37
|
+
A,
|
|
38
38
|
{
|
|
39
39
|
ref: l,
|
|
40
|
-
className:
|
|
40
|
+
className: i ? "active" : "",
|
|
41
41
|
onClick: n,
|
|
42
|
-
children:
|
|
42
|
+
children: k(s) ? s : /* @__PURE__ */ t("img", { src: r, className: "wrapper__image" })
|
|
43
43
|
}
|
|
44
44
|
)
|
|
45
|
-
),
|
|
45
|
+
), O = $(
|
|
46
46
|
({
|
|
47
|
-
uuid:
|
|
48
|
-
title:
|
|
49
|
-
price:
|
|
47
|
+
uuid: i,
|
|
48
|
+
title: r,
|
|
49
|
+
price: s,
|
|
50
50
|
currency: n,
|
|
51
51
|
isNegotiable: l,
|
|
52
|
-
isFree:
|
|
53
|
-
image:
|
|
52
|
+
isFree: f,
|
|
53
|
+
image: h,
|
|
54
54
|
sellerUuid: m,
|
|
55
55
|
onSelectCard: o = () => {
|
|
56
56
|
},
|
|
57
57
|
imageComponent: a,
|
|
58
|
-
negotiableText:
|
|
59
|
-
freeText:
|
|
60
|
-
nameSlug:
|
|
61
|
-
LinkComponent:
|
|
62
|
-
}, p) => /* @__PURE__ */
|
|
63
|
-
|
|
58
|
+
negotiableText: _ = "Negotiable",
|
|
59
|
+
freeText: u = "Free",
|
|
60
|
+
nameSlug: d,
|
|
61
|
+
LinkComponent: w
|
|
62
|
+
}, p) => /* @__PURE__ */ t(
|
|
63
|
+
N,
|
|
64
64
|
{
|
|
65
65
|
ref: p,
|
|
66
|
-
uuid:
|
|
67
|
-
title:
|
|
68
|
-
price:
|
|
66
|
+
uuid: i,
|
|
67
|
+
title: r,
|
|
68
|
+
price: s,
|
|
69
69
|
currency: n,
|
|
70
70
|
isNegotiable: l,
|
|
71
|
-
isFree:
|
|
72
|
-
image:
|
|
71
|
+
isFree: f,
|
|
72
|
+
image: h,
|
|
73
73
|
imageComponent: a,
|
|
74
74
|
sellerUuid: m,
|
|
75
75
|
onSelectCard: o,
|
|
76
|
-
negotiableText:
|
|
77
|
-
freeText:
|
|
78
|
-
nameSlug:
|
|
79
|
-
LinkComponent:
|
|
76
|
+
negotiableText: _,
|
|
77
|
+
freeText: u,
|
|
78
|
+
nameSlug: d,
|
|
79
|
+
LinkComponent: w
|
|
80
80
|
}
|
|
81
81
|
)
|
|
82
|
-
), T =
|
|
82
|
+
), T = v.div`
|
|
83
83
|
display: flex;
|
|
84
84
|
flex-direction: column;
|
|
85
85
|
align-items: center;
|
|
@@ -113,7 +113,7 @@ const I = b.div`
|
|
|
113
113
|
|
|
114
114
|
& .wrapper__avatars {
|
|
115
115
|
display: grid;
|
|
116
|
-
grid-template-columns: ${(
|
|
116
|
+
grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitAvatars}, minmax(0, 1fr))`};
|
|
117
117
|
gap: 2rem;
|
|
118
118
|
justify-items: center;
|
|
119
119
|
align-items: center;
|
|
@@ -121,36 +121,36 @@ const I = b.div`
|
|
|
121
121
|
|
|
122
122
|
& .wrapper__cards {
|
|
123
123
|
display: grid;
|
|
124
|
-
grid-template-columns: ${(
|
|
124
|
+
grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCards}, minmax(0, 1fr))`};
|
|
125
125
|
gap: 1.25rem;
|
|
126
126
|
justify-items: center;
|
|
127
127
|
align-items: center;
|
|
128
128
|
width: 100%;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
@media ${
|
|
131
|
+
@media ${g("M")} {
|
|
132
132
|
& .wrapper__cards {
|
|
133
133
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
@media ${
|
|
137
|
+
@media ${g("S")} {
|
|
138
138
|
& .wrapper__avatars {
|
|
139
|
-
grid-template-columns: ${(
|
|
139
|
+
grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitAvatarsForMobile}, minmax(0, 1fr))`};
|
|
140
140
|
gap: auto;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
& .wrapper__cards {
|
|
144
|
-
grid-template-columns: ${(
|
|
144
|
+
grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
145
145
|
gap: 1rem;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
`,
|
|
148
|
+
`, b = v(S)`
|
|
149
149
|
&.skeleton__tags {
|
|
150
150
|
max-width: 50rem;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
@media ${
|
|
153
|
+
@media ${g("S")} {
|
|
154
154
|
&.skeleton__tags {
|
|
155
155
|
overflow-x: hidden;
|
|
156
156
|
|
|
@@ -169,113 +169,82 @@ const I = b.div`
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
`, M = ({ keyPrefix:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
width: "9.875rem",
|
|
177
|
-
height: "9.875rem"
|
|
178
|
-
},
|
|
179
|
-
`${t}-1`
|
|
180
|
-
),
|
|
181
|
-
/* @__PURE__ */ i(
|
|
182
|
-
g,
|
|
183
|
-
{
|
|
184
|
-
width: "9.875rem",
|
|
185
|
-
height: "9.875rem"
|
|
186
|
-
},
|
|
187
|
-
`${t}-2`
|
|
188
|
-
),
|
|
189
|
-
/* @__PURE__ */ i(
|
|
190
|
-
g,
|
|
191
|
-
{
|
|
192
|
-
width: "9.875rem",
|
|
193
|
-
height: "9.875rem"
|
|
194
|
-
},
|
|
195
|
-
`${t}-3`
|
|
196
|
-
),
|
|
197
|
-
/* @__PURE__ */ i(
|
|
198
|
-
g,
|
|
199
|
-
{
|
|
200
|
-
width: "9.875rem",
|
|
201
|
-
height: "9.875rem"
|
|
202
|
-
},
|
|
203
|
-
`${t}-4`
|
|
204
|
-
)
|
|
205
|
-
] }), L = ({
|
|
206
|
-
keyPrefix: t,
|
|
207
|
-
isLoading: s = !1,
|
|
208
|
-
fallbackComponent: r = /* @__PURE__ */ i(y, {}),
|
|
172
|
+
`, M = ({ keyPrefix: i }) => /* @__PURE__ */ t(b, { className: "skeleton__tags", justifyContent: "center", children: [1, 2, 3, 4].map((r) => /* @__PURE__ */ t(W, { size: "9.875rem" }, `${i}-${r}`)) }), z = ({
|
|
173
|
+
keyPrefix: i,
|
|
174
|
+
isLoading: r = !1,
|
|
175
|
+
fallbackComponent: s = /* @__PURE__ */ t(C, {}),
|
|
209
176
|
children: n
|
|
210
|
-
}) => /* @__PURE__ */
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
177
|
+
}) => /* @__PURE__ */ t(F, { fallbackComponent: s, children: r === !0 ? /* @__PURE__ */ t(M, { keyPrefix: i }) : n }), P = ({ keyPrefix: i }) => /* @__PURE__ */ t(b, { className: "skeleton__cards", justifyContent: "center", children: [1, 2, 3, 4].map((r) => /* @__PURE__ */ t(
|
|
178
|
+
j,
|
|
179
|
+
{
|
|
180
|
+
width: "100%",
|
|
181
|
+
height: "13.75rem"
|
|
182
|
+
},
|
|
183
|
+
`${i}-${r}`
|
|
184
|
+
)) }), L = ({
|
|
185
|
+
keyPrefix: i,
|
|
186
|
+
isLoading: r = !1,
|
|
187
|
+
fallbackComponent: s = /* @__PURE__ */ t(C, {}),
|
|
219
188
|
children: n
|
|
220
|
-
}) => /* @__PURE__ */
|
|
189
|
+
}) => /* @__PURE__ */ t(F, { fallbackComponent: s, children: r === !0 ? /* @__PURE__ */ t(P, { keyPrefix: i }) : n }), H = $(
|
|
221
190
|
({
|
|
222
|
-
title:
|
|
223
|
-
subtitle:
|
|
224
|
-
avatars:
|
|
191
|
+
title: i,
|
|
192
|
+
subtitle: r,
|
|
193
|
+
avatars: s = [],
|
|
225
194
|
limitAvatars: n = 4,
|
|
226
195
|
limit: l = 6,
|
|
227
|
-
limitAvatarsForMobile:
|
|
228
|
-
limitForMobile:
|
|
196
|
+
limitAvatarsForMobile: f = 4,
|
|
197
|
+
limitForMobile: h = 2,
|
|
229
198
|
items: m = [],
|
|
230
199
|
onSelectAvatar: o = () => {
|
|
231
200
|
},
|
|
232
201
|
onSelectCard: a = () => {
|
|
233
202
|
},
|
|
234
|
-
isLoadingTags:
|
|
235
|
-
isLoadingCards:
|
|
236
|
-
LinkComponent:
|
|
237
|
-
},
|
|
203
|
+
isLoadingTags: _ = !1,
|
|
204
|
+
isLoadingCards: u = !1,
|
|
205
|
+
LinkComponent: d
|
|
206
|
+
}, w) => {
|
|
238
207
|
const p = (e) => {
|
|
239
208
|
o == null || o(e);
|
|
240
|
-
},
|
|
209
|
+
}, x = (e) => {
|
|
241
210
|
a == null || a(e);
|
|
242
211
|
};
|
|
243
|
-
return /* @__PURE__ */
|
|
212
|
+
return /* @__PURE__ */ c(
|
|
244
213
|
T,
|
|
245
214
|
{
|
|
246
|
-
ref:
|
|
215
|
+
ref: w,
|
|
247
216
|
limitAvatars: n,
|
|
248
|
-
limitAvatarsForMobile:
|
|
217
|
+
limitAvatarsForMobile: f,
|
|
249
218
|
limitCards: l,
|
|
250
|
-
limitCardsForMobile:
|
|
219
|
+
limitCardsForMobile: h,
|
|
251
220
|
children: [
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
|
|
254
|
-
|
|
221
|
+
/* @__PURE__ */ c("div", { className: "wrapper__heading", children: [
|
|
222
|
+
i && /* @__PURE__ */ t("div", { className: "wrapper__title", children: i }),
|
|
223
|
+
r && /* @__PURE__ */ t("div", { className: "wrapper__subtitle", children: r })
|
|
255
224
|
] }),
|
|
256
|
-
/* @__PURE__ */
|
|
257
|
-
|
|
225
|
+
/* @__PURE__ */ t(
|
|
226
|
+
z,
|
|
258
227
|
{
|
|
259
|
-
isLoading:
|
|
228
|
+
isLoading: _,
|
|
260
229
|
keyPrefix: "field-of-interests-with-avatars-tag",
|
|
261
|
-
children: /* @__PURE__ */
|
|
262
|
-
|
|
230
|
+
children: /* @__PURE__ */ t("div", { className: "wrapper__avatars", children: s == null ? void 0 : s.map((e, y) => /* @__PURE__ */ t(
|
|
231
|
+
I,
|
|
263
232
|
{
|
|
264
233
|
image: e == null ? void 0 : e.image,
|
|
265
234
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
266
235
|
onSelectCard: () => p == null ? void 0 : p(e)
|
|
267
236
|
},
|
|
268
|
-
`field-of-interests-with-avatars-card-avatar__${
|
|
237
|
+
`field-of-interests-with-avatars-card-avatar__${y + 1}`
|
|
269
238
|
)) })
|
|
270
239
|
}
|
|
271
240
|
),
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
|
|
241
|
+
/* @__PURE__ */ t(
|
|
242
|
+
L,
|
|
274
243
|
{
|
|
275
|
-
isLoading:
|
|
244
|
+
isLoading: u,
|
|
276
245
|
keyPrefix: "field-of-interests-with-avatars-card",
|
|
277
|
-
children: /* @__PURE__ */
|
|
278
|
-
|
|
246
|
+
children: /* @__PURE__ */ t("div", { className: "wrapper__cards", children: m == null ? void 0 : m.map((e, y) => /* @__PURE__ */ t(
|
|
247
|
+
O,
|
|
279
248
|
{
|
|
280
249
|
uuid: e == null ? void 0 : e.uuid,
|
|
281
250
|
title: e == null ? void 0 : e.title,
|
|
@@ -288,11 +257,11 @@ const I = b.div`
|
|
|
288
257
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
289
258
|
negotiableText: e == null ? void 0 : e.negotiableText,
|
|
290
259
|
freeText: e == null ? void 0 : e.freeText,
|
|
291
|
-
onSelectCard: () =>
|
|
260
|
+
onSelectCard: () => x == null ? void 0 : x(e),
|
|
292
261
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
293
|
-
LinkComponent:
|
|
262
|
+
LinkComponent: d
|
|
294
263
|
},
|
|
295
|
-
`field-of-interests-with-avatars-card__${
|
|
264
|
+
`field-of-interests-with-avatars-card__${y + 1}`
|
|
296
265
|
)) })
|
|
297
266
|
}
|
|
298
267
|
)
|
|
@@ -302,5 +271,5 @@ const I = b.div`
|
|
|
302
271
|
}
|
|
303
272
|
);
|
|
304
273
|
export {
|
|
305
|
-
|
|
274
|
+
H as default
|
|
306
275
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),g=require("react"),p=require("./utils-CITgSxXe.cjs"),$=require("./Icon.cjs"),_=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),c=require("./breakpoints-CcVm-gVm.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),v=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),g=require("react"),p=require("./utils-CITgSxXe.cjs"),$=require("./Icon.cjs"),_=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),c=require("./breakpoints-CcVm-gVm.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),v=require("./index-CeQvy566.cjs"),k=_.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
@@ -5,7 +5,7 @@ import C from "./Icon.js";
|
|
|
5
5
|
import { s as u } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
6
6
|
import { d } from "./breakpoints-BubDitvo.js";
|
|
7
7
|
import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
-
import { S as W, a as j } from "./index-
|
|
8
|
+
import { S as W, a as j } from "./index-B7fBsitY.js";
|
|
9
9
|
const F = u.a`
|
|
10
10
|
text-decoration: none;
|
|
11
11
|
color: var(--gray-950);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),f=require("react"),v=require("./Icon.cjs"),w=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),d=require("./breakpoints-CcVm-gVm.cjs"),x=require("./utils-CITgSxXe.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),f=require("react"),v=require("./Icon.cjs"),w=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),d=require("./breakpoints-CcVm-gVm.cjs"),x=require("./utils-CITgSxXe.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./index-CeQvy566.cjs"),$=w.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
@@ -5,7 +5,7 @@ import { s as w } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
|
5
5
|
import { d } from "./breakpoints-BubDitvo.js";
|
|
6
6
|
import { n as v, l as $, m as C } from "./utils-MoGhNMmj.js";
|
|
7
7
|
import { u as N } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
-
import { a as k, S as W } from "./index-
|
|
8
|
+
import { a as k, S as W } from "./index-B7fBsitY.js";
|
|
9
9
|
const j = w.a`
|
|
10
10
|
text-decoration: none;
|
|
11
11
|
color: var(--gray-950);
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),j=require("react"),v=require("./useDetectMobile-DYV6V1yw.cjs"),k=require("./style-Boz6dk5s.cjs"),m=require("./utils-CITgSxXe.cjs"),$=require("./Button.cjs"),h=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),f=require("./breakpoints-CcVm-gVm.cjs"),g=require("./style-CQdEALKR.cjs"),N=h.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media ${
|
|
6
|
+
@media ${f.down("M")} {
|
|
7
7
|
grid-template-columns: repeat(2, 1fr);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
@media ${
|
|
10
|
+
@media ${f.down("S")} {
|
|
11
11
|
grid-template-columns: repeat(2, 1fr);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
@media ${
|
|
14
|
+
@media ${f.down("XS")} {
|
|
15
15
|
grid-template-columns: repeat(1, 1fr);
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,R=h.styled.a`
|
|
18
18
|
text-decoration: none;
|
|
19
19
|
color: var(--gray-950);
|
|
20
20
|
display: flex;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
transform: scale(1.1);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`,q=h.styled.div`
|
|
41
41
|
width: 100%;
|
|
42
42
|
min-height: 11rem;
|
|
43
43
|
max-height: 11rem;
|
|
@@ -74,16 +74,12 @@
|
|
|
74
74
|
-webkit-transform: rotate(315deg);
|
|
75
75
|
transform: rotate(315deg);
|
|
76
76
|
}
|
|
77
|
-
`,
|
|
78
|
-
@media ${
|
|
77
|
+
`,b=j.forwardRef((r,n)=>{const{image:o,text:c,price:s,currency:i,onSelectGiftCard:u=()=>{},selectAction:l,LinkComponent:d}=r,p=d||"a";return t.jsxs(R,{ref:n,className:"simple-gift-card",onClick:()=>u(s),as:p,...d?{to:`${l}`}:{href:`${l}`},children:[t.jsxs(q,{children:[t.jsx("div",{className:"price-tag",children:s&&i&&`${m.formatPrice(s)} ${m.GetCurrencySymbol(i)}`}),t.jsx("img",{src:o})]}),t.jsx("div",{className:"text-wrap",children:c})]})}),G=h.styled(g.SkeletonAnimationContainer)`
|
|
78
|
+
@media ${f.down("S")} {
|
|
79
79
|
flex-direction: column;
|
|
80
80
|
|
|
81
81
|
& > div {
|
|
82
82
|
flex-direction: column;
|
|
83
|
-
|
|
84
|
-
& > div {
|
|
85
|
-
${t.skeletonGradientBackground}
|
|
86
|
-
}
|
|
87
83
|
}
|
|
88
84
|
}
|
|
89
|
-
`,
|
|
85
|
+
`,A=({keyPrefix:r})=>t.jsx(G,{children:[1,2,3,4].map(n=>t.jsxs(g.SkeletonColumnContainer,{alignItems:"center",children:[t.jsx(g.SkeletonRect,{width:"100%",height:"11rem",borderRadius:"0.75rem"}),t.jsx(g.SkeletonRect,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${r}-${n}`))}),D=({keyPrefix:r,isLoading:n=!1,fallbackComponent:o=t.jsx(t.Fragment,{}),children:c})=>t.jsx(j.Suspense,{fallbackComponent:o,children:n===!0?t.jsx(A,{keyPrefix:r}):c}),T=j.forwardRef((r,n)=>{const{icon:o,title:c,buttonLink:s,items:i,isLoading:u=!1,buttonText:l,limit:d=4,onSelectCard:p=()=>{},onButtonAction:w=()=>{},LinkComponent:y}=r,S=v.useDetectMobile();return t.jsxs(k.RegulatTitleSectionWrapper,{ref:n,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[m.isDefinedNotEmptyString(o)&&t.jsx("i",{className:o}),t.jsx("span",{children:c})]}),m.isDefinedNotEmptyString(l)&&m.isDefinedNotEmptyString(s)&&!u&&t.jsx($,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var a;(a=e==null?void 0:e.target)==null||a.blur(),w(s)},borderRadius:"curved",className:"button-link",children:l})]}),t.jsx(D,{isLoading:u,keyPrefix:"gift-cards-skeleton",children:t.jsx(N,{limit:d,children:S===!0?i==null?void 0:i.map((e,a)=>t.jsx(b,{text:e==null?void 0:e.text,price:e==null?void 0:e.priceTo,currency:e==null?void 0:e.currencyIsoCode,image:e==null?void 0:e.imageUrl,uuid:e==null?void 0:e.uuid,selectAction:e==null?void 0:e.selectAction,onSelectGiftCard:C=>p(e),LinkComponent:y},a)):i==null?void 0:i.slice(0,d).map((e,a)=>t.jsx(b,{text:e==null?void 0:e.text,price:e==null?void 0:e.priceTo,currency:e==null?void 0:e.currencyIsoCode,image:e==null?void 0:e.imageUrl,uuid:e==null?void 0:e.uuid,selectAction:e==null?void 0:e.selectAction,onSelectGiftCard:C=>p(e),LinkComponent:y},a))})})]})});module.exports=T;
|