@lanaco/lnc-react-ui 4.0.157 → 4.0.160
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/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +105 -89
- package/dist/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +88 -84
- package/dist/BlogListSection.cjs +5 -5
- package/dist/BlogListSection.js +139 -126
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +37 -35
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +43 -41
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +9 -4
- package/dist/BlogsSectionDetailed.cjs +11 -11
- package/dist/BlogsSectionDetailed.js +122 -108
- package/dist/BlogsSectionLarge.cjs +4 -4
- package/dist/BlogsSectionLarge.js +43 -40
- package/dist/BlogsSectionSimple.cjs +8 -8
- package/dist/BlogsSectionSimple.js +100 -86
- package/dist/BlogsSectionSimpleCentered.cjs +9 -9
- package/dist/BlogsSectionSimpleCentered.js +81 -66
- package/dist/BlogsSectionWithFilters.cjs +11 -11
- package/dist/BlogsSectionWithFilters.js +108 -93
- package/dist/{CustomStyles-Ajyqx0cb.cjs → CustomStyles-BwHfr4iM.cjs} +1 -1
- package/dist/{CustomStyles-DVcu00ul.js → CustomStyles-iconSXFL.js} +0 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +29 -27
- package/dist/DetailedProductsSection.cjs +3 -3
- package/dist/DetailedProductsSection.js +76 -65
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +10 -10
- package/dist/ProductsWithBannerSection.js +81 -59
- package/dist/SalesCampaignsSection.cjs +27 -27
- package/dist/SalesCampaignsSection.js +245 -239
- package/dist/ShopCardsSection.cjs +3 -3
- package/dist/ShopCardsSection.js +27 -25
- package/dist/SimpleProductsSection.cjs +3 -3
- package/dist/SimpleProductsSection.js +62 -51
- package/dist/UrgentSaleProductsSection.cjs +6 -6
- package/dist/UrgentSaleProductsSection.js +67 -56
- package/dist/index-1Dm1i6WK.js +52 -0
- package/dist/index-BGTtoLxz.cjs +1 -0
- package/dist/{index-CLoINIGC.cjs → index-DicTpiG0.cjs} +5 -5
- package/dist/{index-BGY3PSA-.js → index-y6sKgrZC.js} +45 -34
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{skeleton-BWFqIToC.js → skeleton-5mO22c5S.js} +94 -84
- package/dist/{skeleton-CanJ6Gr6.cjs → skeleton-Ccd6EDeB.cjs} +8 -8
- package/dist/{suspense-product-card-detailed-BWoxabjZ.js → suspense-product-card-detailed-BZtObEfA.js} +126 -123
- package/dist/{suspense-product-card-detailed-DYyH_jf5.cjs → suspense-product-card-detailed-D-pjVe22.cjs} +7 -7
- package/dist/{suspense-product-card-simple-CrqjSxHI.cjs → suspense-product-card-simple-DJ8UYolb.cjs} +1 -1
- package/dist/{suspense-product-card-simple-CLJjab5B.js → suspense-product-card-simple-ziy0XcLp.js} +1 -1
- package/package.json +1 -1
- package/dist/index-Cm0f72Po.cjs +0 -1
- package/dist/index-DGp7FHms.js +0 -42
package/dist/BlogListSection.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { p as
|
|
6
|
-
import { P as
|
|
7
|
-
import { B as
|
|
8
|
-
import { s as
|
|
9
|
-
import { M as
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
1
|
+
import { jsxs as t, jsx as i, Fragment as y } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as C, useRef as j, cloneElement as z, memo as L, useMemo as P } from "react";
|
|
3
|
+
import N from "./Icon.js";
|
|
4
|
+
import B from "./IconButton.js";
|
|
5
|
+
import { p as T, s as O, v as S, w as $, l as E } from "./utils-BdsZgOUE.js";
|
|
6
|
+
import { P as M } from "./index-CF3HhgvN.js";
|
|
7
|
+
import { B as U } from "./style-BLuyU97E.js";
|
|
8
|
+
import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
9
|
+
import { M as W } from "./consts-BuFChS64.js";
|
|
10
|
+
import { S as A } from "./suspense-large-BMO7JH52.js";
|
|
11
|
+
const D = I.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
padding: 1rem;
|
|
14
14
|
align-items: center;
|
|
@@ -60,7 +60,7 @@ const U = B.div`
|
|
|
60
60
|
font-weight: 600;
|
|
61
61
|
line-height: 1.5rem;
|
|
62
62
|
letter-spacing: 0.1px;
|
|
63
|
-
${
|
|
63
|
+
${T(3)}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
& .wrapper__tags {
|
|
@@ -103,7 +103,7 @@ const U = B.div`
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
@media (max-width: ${
|
|
106
|
+
@media (max-width: ${W + "px"}) {
|
|
107
107
|
flex-direction: column;
|
|
108
108
|
padding: 0;
|
|
109
109
|
background: transparent;
|
|
@@ -154,101 +154,112 @@ const U = B.div`
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
`,
|
|
157
|
+
`, F = C(
|
|
158
158
|
({
|
|
159
|
-
blogUuid:
|
|
160
|
-
title:
|
|
161
|
-
imageUrl:
|
|
162
|
-
options:
|
|
163
|
-
publishedAt:
|
|
164
|
-
timeToReadText:
|
|
165
|
-
timeToRead:
|
|
166
|
-
numberOfLikes:
|
|
167
|
-
numberOfComments:
|
|
168
|
-
isBookmarked:
|
|
169
|
-
onSelectCard:
|
|
159
|
+
blogUuid: l,
|
|
160
|
+
title: a,
|
|
161
|
+
imageUrl: s,
|
|
162
|
+
options: n,
|
|
163
|
+
publishedAt: p,
|
|
164
|
+
timeToReadText: f = "{0} min read",
|
|
165
|
+
timeToRead: g = 0,
|
|
166
|
+
numberOfLikes: _ = 0,
|
|
167
|
+
numberOfComments: u = 0,
|
|
168
|
+
isBookmarked: c = !1,
|
|
169
|
+
onSelectCard: h = () => {
|
|
170
170
|
},
|
|
171
|
-
onBookmark:
|
|
171
|
+
onBookmark: w = () => {
|
|
172
172
|
},
|
|
173
|
-
onShare:
|
|
173
|
+
onShare: e = () => {
|
|
174
174
|
},
|
|
175
|
-
bookmarkComponent:
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
175
|
+
bookmarkComponent: m = /* @__PURE__ */ i(y, {}),
|
|
176
|
+
metadata: o
|
|
177
|
+
}, v) => {
|
|
178
|
+
const d = () => E(m) ? z(m, {
|
|
179
|
+
key: `bookmark_blog__${l}__${c}`,
|
|
180
|
+
isBookmarked: c,
|
|
181
|
+
blogUuid: l,
|
|
182
|
+
onBookmark: (b, R) => w(b, R),
|
|
183
|
+
ref: v,
|
|
183
184
|
componentName: "ExploreBlogSectionCard"
|
|
184
|
-
}) : /* @__PURE__ */
|
|
185
|
-
return /* @__PURE__ */
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
185
|
+
}) : /* @__PURE__ */ i(y, {}), k = j();
|
|
186
|
+
return /* @__PURE__ */ t(
|
|
187
|
+
D,
|
|
188
|
+
{
|
|
189
|
+
ref: k,
|
|
190
|
+
name: o == null ? void 0 : o.name,
|
|
191
|
+
"data-accessor": o == null ? void 0 : o.accessor,
|
|
192
|
+
onClick: (r) => h(r, k),
|
|
193
|
+
className: "blog-card-item",
|
|
194
|
+
children: [
|
|
195
|
+
/* @__PURE__ */ i(M, { src: s, className: "wrapper__image" }),
|
|
196
|
+
/* @__PURE__ */ t("div", { className: "wrapper__content", children: [
|
|
197
|
+
/* @__PURE__ */ t("div", { className: "wrapper__subcontent", children: [
|
|
198
|
+
/* @__PURE__ */ i("div", { className: "wrapper__title", children: a }),
|
|
199
|
+
/* @__PURE__ */ t("div", { className: "wrapper__tags-action", children: [
|
|
200
|
+
/* @__PURE__ */ i("div", { className: "wrapper__tags", children: n && (n == null ? void 0 : n.map((r, b) => /* @__PURE__ */ i(
|
|
201
|
+
U,
|
|
202
|
+
{
|
|
203
|
+
color: r == null ? void 0 : r.color,
|
|
204
|
+
children: r == null ? void 0 : r.name
|
|
205
|
+
},
|
|
206
|
+
`blog-card-sponsored-option__${b + 1}`
|
|
207
|
+
))) }),
|
|
208
|
+
/* @__PURE__ */ t("div", { className: "info__content mobile-only", children: [
|
|
209
|
+
/* @__PURE__ */ i(d, {}),
|
|
210
|
+
/* @__PURE__ */ i(
|
|
211
|
+
B,
|
|
212
|
+
{
|
|
213
|
+
icon: " mng-lnc-share",
|
|
214
|
+
borderRadius: "curved",
|
|
215
|
+
btnType: "basic",
|
|
216
|
+
color: "neutral",
|
|
217
|
+
onClick: (r) => {
|
|
218
|
+
r == null || r.stopPropagation(), e();
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
)
|
|
222
|
+
] })
|
|
223
|
+
] })
|
|
224
|
+
] }),
|
|
225
|
+
/* @__PURE__ */ t("div", { className: "wrapper__info", children: [
|
|
226
|
+
/* @__PURE__ */ t("div", { className: "info__content", children: [
|
|
227
|
+
/* @__PURE__ */ i("div", { className: "info__text", children: `${O(
|
|
228
|
+
p
|
|
229
|
+
)} • ${S(f, g)}` }),
|
|
230
|
+
/* @__PURE__ */ t("div", { className: "info__text", children: [
|
|
231
|
+
/* @__PURE__ */ t("div", { children: [
|
|
232
|
+
/* @__PURE__ */ i(N, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
|
|
233
|
+
$(_)
|
|
234
|
+
] }),
|
|
235
|
+
/* @__PURE__ */ t("div", { children: [
|
|
236
|
+
/* @__PURE__ */ i(N, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
|
|
237
|
+
$(u)
|
|
238
|
+
] })
|
|
239
|
+
] })
|
|
225
240
|
] }),
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
|
|
241
|
+
/* @__PURE__ */ t("div", { className: "info__content desktop-only", children: [
|
|
242
|
+
/* @__PURE__ */ i(d, {}),
|
|
243
|
+
/* @__PURE__ */ i(
|
|
244
|
+
B,
|
|
245
|
+
{
|
|
246
|
+
icon: " mng-lnc-share",
|
|
247
|
+
borderRadius: "curved",
|
|
248
|
+
btnType: "basic",
|
|
249
|
+
color: "neutral",
|
|
250
|
+
onClick: (r) => {
|
|
251
|
+
r == null || r.stopPropagation(), e();
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
)
|
|
229
255
|
] })
|
|
230
256
|
] })
|
|
231
|
-
] }),
|
|
232
|
-
/* @__PURE__ */ i("div", { className: "info__content desktop-only", children: [
|
|
233
|
-
/* @__PURE__ */ r(b, {}),
|
|
234
|
-
/* @__PURE__ */ r(
|
|
235
|
-
v,
|
|
236
|
-
{
|
|
237
|
-
icon: " mng-lnc-share",
|
|
238
|
-
borderRadius: "curved",
|
|
239
|
-
btnType: "basic",
|
|
240
|
-
color: "neutral",
|
|
241
|
-
onClick: (t) => {
|
|
242
|
-
t == null || t.stopPropagation(), d();
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
)
|
|
246
257
|
] })
|
|
247
|
-
]
|
|
248
|
-
|
|
249
|
-
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
);
|
|
250
261
|
}
|
|
251
|
-
),
|
|
262
|
+
), X = I.div`
|
|
252
263
|
display: flex;
|
|
253
264
|
flex-direction: column;
|
|
254
265
|
align-items: flex-start;
|
|
@@ -272,58 +283,60 @@ const U = B.div`
|
|
|
272
283
|
bottom: -1.25rem;
|
|
273
284
|
}
|
|
274
285
|
}
|
|
275
|
-
`,
|
|
286
|
+
`, Z = L(F), re = C(
|
|
276
287
|
({
|
|
277
|
-
timeToReadText:
|
|
278
|
-
items:
|
|
279
|
-
onSelectCard:
|
|
288
|
+
timeToReadText: l = "{0} min read",
|
|
289
|
+
items: a,
|
|
290
|
+
onSelectCard: s = () => {
|
|
280
291
|
},
|
|
281
|
-
onShare:
|
|
292
|
+
onShare: n = () => {
|
|
282
293
|
},
|
|
283
|
-
onBookmark:
|
|
294
|
+
onBookmark: p = () => {
|
|
284
295
|
},
|
|
285
|
-
isLoading:
|
|
286
|
-
getImage:
|
|
296
|
+
isLoading: f = !1,
|
|
297
|
+
getImage: g = () => {
|
|
287
298
|
},
|
|
288
|
-
isSeparated:
|
|
289
|
-
bookmarkComponent:
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
299
|
+
isSeparated: _ = !0,
|
|
300
|
+
bookmarkComponent: u = /* @__PURE__ */ i(y, {}),
|
|
301
|
+
componentName: c
|
|
302
|
+
}, h) => {
|
|
303
|
+
const w = P(() => a == null ? void 0 : a.map((e, m) => {
|
|
304
|
+
var o;
|
|
305
|
+
return /* @__PURE__ */ i(
|
|
306
|
+
Z,
|
|
295
307
|
{
|
|
296
308
|
blogUuid: e == null ? void 0 : e.uuid,
|
|
297
309
|
title: e == null ? void 0 : e.title,
|
|
298
310
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
299
311
|
options: e == null ? void 0 : e.options,
|
|
300
312
|
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
301
|
-
timeToReadText:
|
|
313
|
+
timeToReadText: l,
|
|
302
314
|
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
303
315
|
numberOfLikes: e == null ? void 0 : e.numberOfLikes,
|
|
304
316
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
305
317
|
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
306
318
|
isBookmarked: e == null ? void 0 : e.isBookmarked,
|
|
307
|
-
onSelectCard: () =>
|
|
308
|
-
onShare: () =>
|
|
309
|
-
onBookmark:
|
|
310
|
-
imageUrl:
|
|
311
|
-
bookmarkComponent:
|
|
319
|
+
onSelectCard: (v, d) => s == null ? void 0 : s(e, d),
|
|
320
|
+
onShare: () => n == null ? void 0 : n(e),
|
|
321
|
+
onBookmark: p,
|
|
322
|
+
imageUrl: g(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
323
|
+
bookmarkComponent: u,
|
|
324
|
+
metadata: { name: c, accessor: e == null ? void 0 : e.accessor }
|
|
312
325
|
},
|
|
313
|
-
`blog-card-item__${
|
|
326
|
+
`blog-card-item__${m + 1}__${(o = e == null ? void 0 : e.isBookmarked) == null ? void 0 : o.toString()}`
|
|
314
327
|
);
|
|
315
|
-
}), [
|
|
316
|
-
return /* @__PURE__ */
|
|
317
|
-
|
|
328
|
+
}), [a]);
|
|
329
|
+
return /* @__PURE__ */ i(X, { ref: h, className: _ ? "separated" : "", children: /* @__PURE__ */ i(
|
|
330
|
+
A,
|
|
318
331
|
{
|
|
319
|
-
isLoading:
|
|
332
|
+
isLoading: f,
|
|
320
333
|
limit: 5,
|
|
321
334
|
keyPrefix: "blog-section",
|
|
322
|
-
children:
|
|
335
|
+
children: w
|
|
323
336
|
}
|
|
324
337
|
) });
|
|
325
338
|
}
|
|
326
339
|
);
|
|
327
340
|
export {
|
|
328
|
-
|
|
341
|
+
re as default
|
|
329
342
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),c=require("react"),j=require("./useDetectMobile-zkbzoOGV.cjs"),f=require("./index-DicTpiG0.cjs"),y=require("./suspense-product-card-simple-DJ8UYolb.cjs"),M=require("./Button.cjs"),N=require("./style-BTTXJFJN.cjs"),R=c.memo(f.SimpleProductCard),_=c.forwardRef(({buttonText:o,buttonLink:t,items:s,onButtonAction:l=()=>{},onSelectCard:i=()=>{},isLoading:a=!1,limit:n=4,getImage:d=()=>{},isHighlight:p=!1,componentName:m},b)=>{const g=j.useDetectMobile(),q=c.useMemo(()=>{var u;return(u=s==null?void 0:s.slice(0,4))==null?void 0:u.map((e,P)=>r.jsx(R,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(w,h)=>i==null?void 0:i(e==null?void 0:e.uuid,h),image:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:m,accessor:e==null?void 0:e.accessor}},P))},[s]);return r.jsxs(N.Wrapper,{ref:b,className:`blog-product-cards-section ${p?"highlight":""}`,children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(y.SuspenseSimpleProductCard,{isLoading:a,limit:n,keyPrefix:"blog-section",children:q})}),r.jsx(M,{text:o,borderRadius:"curved",btnType:g?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>l(t)})]})});module.exports=_;
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { u as
|
|
4
|
-
import { S as
|
|
5
|
-
import { S } from "./suspense-product-card-simple-
|
|
6
|
-
import
|
|
7
|
-
import { W as
|
|
8
|
-
const
|
|
1
|
+
import { jsx as o, jsxs as P } from "react/jsx-runtime";
|
|
2
|
+
import { memo as N, forwardRef as y, useMemo as M } from "react";
|
|
3
|
+
import { u as S } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
+
import { S as _ } from "./index-y6sKgrZC.js";
|
|
5
|
+
import { S as w } from "./suspense-product-card-simple-ziy0XcLp.js";
|
|
6
|
+
import U from "./Button.js";
|
|
7
|
+
import { W as j } from "./style-tw6KjI2J.js";
|
|
8
|
+
const k = N(_), T = y(
|
|
9
9
|
({
|
|
10
|
-
buttonText:
|
|
11
|
-
buttonLink:
|
|
10
|
+
buttonText: a,
|
|
11
|
+
buttonLink: c,
|
|
12
12
|
items: r,
|
|
13
13
|
onButtonAction: t = () => {
|
|
14
14
|
},
|
|
15
|
-
onSelectCard:
|
|
15
|
+
onSelectCard: i = () => {
|
|
16
16
|
},
|
|
17
|
-
isLoading:
|
|
18
|
-
limit:
|
|
17
|
+
isLoading: u = !1,
|
|
18
|
+
limit: l = 4,
|
|
19
19
|
getImage: d = () => {
|
|
20
20
|
},
|
|
21
|
-
isHighlight: m = !1
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
isHighlight: m = !1,
|
|
22
|
+
componentName: p
|
|
23
|
+
}, n) => {
|
|
24
|
+
const f = S(), g = M(() => {
|
|
24
25
|
var s;
|
|
25
|
-
return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e,
|
|
26
|
-
|
|
26
|
+
return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e, b) => /* @__PURE__ */ o(
|
|
27
|
+
k,
|
|
27
28
|
{
|
|
28
29
|
title: e == null ? void 0 : e.name,
|
|
29
30
|
price: e == null ? void 0 : e.price,
|
|
@@ -32,36 +33,37 @@ const U = h(M), R = P(
|
|
|
32
33
|
currency: e == null ? void 0 : e.currency,
|
|
33
34
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
34
35
|
uuid: e == null ? void 0 : e.uuid,
|
|
35
|
-
onSelectCard: () =>
|
|
36
|
-
image: d(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null
|
|
36
|
+
onSelectCard: (v, h) => i == null ? void 0 : i(e == null ? void 0 : e.uuid, h),
|
|
37
|
+
image: d(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
38
|
+
metadata: { name: p, accessor: e == null ? void 0 : e.accessor }
|
|
37
39
|
},
|
|
38
|
-
|
|
40
|
+
b
|
|
39
41
|
));
|
|
40
42
|
}, [r]);
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
|
|
43
|
+
return /* @__PURE__ */ P(
|
|
44
|
+
j,
|
|
43
45
|
{
|
|
44
|
-
ref:
|
|
46
|
+
ref: n,
|
|
45
47
|
className: `blog-product-cards-section ${m ? "highlight" : ""}`,
|
|
46
48
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
49
|
+
/* @__PURE__ */ o("div", { className: "wrapper__grid", children: /* @__PURE__ */ o(
|
|
50
|
+
w,
|
|
49
51
|
{
|
|
50
|
-
isLoading:
|
|
51
|
-
limit:
|
|
52
|
+
isLoading: u,
|
|
53
|
+
limit: l,
|
|
52
54
|
keyPrefix: "blog-section",
|
|
53
|
-
children:
|
|
55
|
+
children: g
|
|
54
56
|
}
|
|
55
57
|
) }),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
58
|
+
/* @__PURE__ */ o(
|
|
59
|
+
U,
|
|
58
60
|
{
|
|
59
|
-
text:
|
|
61
|
+
text: a,
|
|
60
62
|
borderRadius: "curved",
|
|
61
|
-
btnType:
|
|
63
|
+
btnType: f ? "basic" : "outline",
|
|
62
64
|
color: "neutral",
|
|
63
65
|
className: "wrapper__action",
|
|
64
|
-
onClick: () => t(
|
|
66
|
+
onClick: () => t(c)
|
|
65
67
|
}
|
|
66
68
|
)
|
|
67
69
|
]
|
|
@@ -70,5 +72,5 @@ const U = h(M), R = P(
|
|
|
70
72
|
}
|
|
71
73
|
);
|
|
72
74
|
export {
|
|
73
|
-
|
|
75
|
+
T as default
|
|
74
76
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),a=require("react"),_=require("./useDetectMobile-zkbzoOGV.cjs"),u=require("./skeleton-Ccd6EDeB.cjs"),k=require("./Button.cjs"),q=require("./style-BTTXJFJN.cjs"),C=({limit:o=4,isLoading:n=!1,keyPrefix:s})=>r.jsx(r.Fragment,{children:Array.from({length:o},(i,t)=>r.jsx(u.ShopCardSkeleton,{isLoading:n},`${s}-skeleton-shop-card-${t}`))}),w=({children:o,fallbackComponent:n=r.jsx(r.Fragment,{}),isLoading:s=!1,limit:i,keyPrefix:t})=>r.jsx(a.Suspense,{fallbackComponent:n,children:s===!0?r.jsx(C,{isLoading:s,limit:i,keyPrefix:t}):o}),M=a.memo(u.ShopCard),v=a.forwardRef(({buttonText:o,buttonLink:n,items:s,onButtonAction:i=()=>{},onSelectCard:t=()=>{},isLoading:l=!1,limit:d=4,getImage:p=()=>{},isHighlight:h=!1,componentName:m},g)=>{const j=_.useDetectMobile(),f=a.useMemo(()=>{var c;return(c=s==null?void 0:s.slice(0,4))==null?void 0:c.map((e,S)=>r.jsx(M,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:(y,b)=>t==null?void 0:t(e==null?void 0:e.uuid,b),image:p(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0,metadata:{name:m,accessor:e==null?void 0:e.accessor}},`shop-card__${S+1}`))},[s]);return r.jsxs(q.Wrapper,{ref:g,className:h?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(w,{isLoading:l,limit:d,keyPrefix:"blog-section",children:f})}),r.jsx(k,{text:o,borderRadius:"curved",btnType:j?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>i(n)})]})});module.exports=v;
|
|
@@ -1,84 +1,86 @@
|
|
|
1
|
-
import { jsx as o, Fragment as u, jsxs as
|
|
2
|
-
import { Suspense as
|
|
3
|
-
import { u as
|
|
4
|
-
import { a as
|
|
5
|
-
import
|
|
6
|
-
import { W as
|
|
7
|
-
const
|
|
8
|
-
|
|
1
|
+
import { jsx as o, Fragment as u, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as C, memo as k, forwardRef as w, useMemo as v } from "react";
|
|
3
|
+
import { u as M } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
+
import { a as y, S as N } from "./skeleton-5mO22c5S.js";
|
|
5
|
+
import $ from "./Button.js";
|
|
6
|
+
import { W as j } from "./style-tw6KjI2J.js";
|
|
7
|
+
const z = ({ limit: a = 4, isLoading: t = !1, keyPrefix: r }) => /* @__PURE__ */ o(u, { children: Array.from({ length: a }, (i, s) => /* @__PURE__ */ o(
|
|
8
|
+
y,
|
|
9
9
|
{
|
|
10
|
-
isLoading:
|
|
10
|
+
isLoading: t
|
|
11
11
|
},
|
|
12
|
-
`${r}-skeleton-shop-card-${
|
|
13
|
-
)) }),
|
|
14
|
-
children:
|
|
15
|
-
fallbackComponent:
|
|
12
|
+
`${r}-skeleton-shop-card-${s}`
|
|
13
|
+
)) }), B = ({
|
|
14
|
+
children: a,
|
|
15
|
+
fallbackComponent: t = /* @__PURE__ */ o(u, {}),
|
|
16
16
|
isLoading: r = !1,
|
|
17
17
|
limit: i,
|
|
18
|
-
keyPrefix:
|
|
19
|
-
}) => /* @__PURE__ */ o(
|
|
20
|
-
|
|
18
|
+
keyPrefix: s
|
|
19
|
+
}) => /* @__PURE__ */ o(C, { fallbackComponent: t, children: r === !0 ? /* @__PURE__ */ o(
|
|
20
|
+
z,
|
|
21
21
|
{
|
|
22
22
|
isLoading: r,
|
|
23
23
|
limit: i,
|
|
24
|
-
keyPrefix:
|
|
24
|
+
keyPrefix: s
|
|
25
25
|
}
|
|
26
|
-
) :
|
|
26
|
+
) : a }), D = k(N), q = w(
|
|
27
27
|
({
|
|
28
|
-
buttonText:
|
|
29
|
-
buttonLink:
|
|
28
|
+
buttonText: a,
|
|
29
|
+
buttonLink: t,
|
|
30
30
|
items: r,
|
|
31
31
|
onButtonAction: i = () => {
|
|
32
32
|
},
|
|
33
|
-
onSelectCard:
|
|
33
|
+
onSelectCard: s = () => {
|
|
34
34
|
},
|
|
35
35
|
isLoading: l = !1,
|
|
36
|
-
limit:
|
|
37
|
-
getImage:
|
|
36
|
+
limit: c = 4,
|
|
37
|
+
getImage: p = () => {
|
|
38
38
|
},
|
|
39
|
-
isHighlight: d = !1
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
isHighlight: d = !1,
|
|
40
|
+
componentName: m
|
|
41
|
+
}, h) => {
|
|
42
|
+
const f = M(), g = v(() => {
|
|
42
43
|
var n;
|
|
43
|
-
return (n = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : n.map((e,
|
|
44
|
-
|
|
44
|
+
return (n = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : n.map((e, S) => /* @__PURE__ */ o(
|
|
45
|
+
D,
|
|
45
46
|
{
|
|
46
47
|
uuid: e == null ? void 0 : e.uuid,
|
|
47
48
|
title: e == null ? void 0 : e.name,
|
|
48
49
|
subtitle: e == null ? void 0 : e.shortDescription,
|
|
49
50
|
rating: e == null ? void 0 : e.rating,
|
|
50
51
|
reviewCount: e == null ? void 0 : e.reviewCount,
|
|
51
|
-
onSelectCard: () =>
|
|
52
|
-
image:
|
|
53
|
-
hideProducts: !0
|
|
52
|
+
onSelectCard: (P, b) => s == null ? void 0 : s(e == null ? void 0 : e.uuid, b),
|
|
53
|
+
image: p(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
|
|
54
|
+
hideProducts: !0,
|
|
55
|
+
metadata: { name: m, accessor: e == null ? void 0 : e.accessor }
|
|
54
56
|
},
|
|
55
|
-
`shop-card__${
|
|
57
|
+
`shop-card__${S + 1}`
|
|
56
58
|
));
|
|
57
59
|
}, [r]);
|
|
58
|
-
return /* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ _(j, { ref: h, className: d ? "highlight" : "", children: [
|
|
59
61
|
/* @__PURE__ */ o("div", { className: "wrapper__grid", children: /* @__PURE__ */ o(
|
|
60
|
-
|
|
62
|
+
B,
|
|
61
63
|
{
|
|
62
64
|
isLoading: l,
|
|
63
|
-
limit:
|
|
65
|
+
limit: c,
|
|
64
66
|
keyPrefix: "blog-section",
|
|
65
|
-
children:
|
|
67
|
+
children: g
|
|
66
68
|
}
|
|
67
69
|
) }),
|
|
68
70
|
/* @__PURE__ */ o(
|
|
69
|
-
|
|
71
|
+
$,
|
|
70
72
|
{
|
|
71
|
-
text:
|
|
73
|
+
text: a,
|
|
72
74
|
borderRadius: "curved",
|
|
73
|
-
btnType:
|
|
75
|
+
btnType: f ? "basic" : "outline",
|
|
74
76
|
color: "neutral",
|
|
75
77
|
className: "wrapper__action",
|
|
76
|
-
onClick: () => i(
|
|
78
|
+
onClick: () => i(t)
|
|
77
79
|
}
|
|
78
80
|
)
|
|
79
81
|
] });
|
|
80
82
|
}
|
|
81
83
|
);
|
|
82
84
|
export {
|
|
83
|
-
|
|
85
|
+
q as default
|
|
84
86
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./index-BGTtoLxz.cjs"),a=require("./skeleton-BdbB-LdT.cjs"),c=({limit:t=1,isLoading:l=!1,keyPrefix:n})=>r.jsx(r.Fragment,{children:Array.from({length:t},(e,s)=>r.jsx(a.BlogCardLargeSkeleton,{isLoading:l},`${n}-skeleton-product-card-${s}`))}),x=({children:t,fallbackComponent:l=r.jsx(r.Fragment,{}),isLoading:n=!1,limit:e,keyPrefix:s})=>r.jsx(o.Suspense,{fallbackComponent:l,children:n===!0?r.jsx(c,{isLoading:n,limit:e,keyPrefix:s}):t}),d=o.forwardRef((t,l)=>{const{isLoading:n,item:e,onSelectCard:s=()=>{},getImage:u=()=>{}}=t;return r.jsx(x,{isLoading:n,limit:1,keyPrefix:"explore-landing",children:r.jsx(g.BlogCardLarge,{ref:l,title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>s(e==null?void 0:e.titleSlug)})})});module.exports=d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense as s, forwardRef as u } from "react";
|
|
3
|
-
import { B as d } from "./index-
|
|
3
|
+
import { B as d } from "./index-1Dm1i6WK.js";
|
|
4
4
|
import { B as c } from "./skeleton-CQPwIEP0.js";
|
|
5
5
|
const f = ({ limit: o = 1, isLoading: t = !1, keyPrefix: l }) => /* @__PURE__ */ e(a, { children: Array.from({ length: o }, (r, n) => /* @__PURE__ */ e(
|
|
6
6
|
c,
|
|
@@ -22,9 +22,14 @@ const f = ({ limit: o = 1, isLoading: t = !1, keyPrefix: l }) => /* @__PURE__ */
|
|
|
22
22
|
keyPrefix: n
|
|
23
23
|
}
|
|
24
24
|
) : o }), k = u((o, t) => {
|
|
25
|
-
const {
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
const {
|
|
26
|
+
isLoading: l,
|
|
27
|
+
item: r,
|
|
28
|
+
onSelectCard: n = () => {
|
|
29
|
+
},
|
|
30
|
+
getImage: g = () => {
|
|
31
|
+
}
|
|
32
|
+
} = o;
|
|
28
33
|
return /* @__PURE__ */ e(
|
|
29
34
|
i,
|
|
30
35
|
{
|