@lanaco/lnc-react-ui 4.0.183 → 4.0.185
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 +5 -3
- package/dist/BlogCardsSponsoredSection.js +68 -64
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogListSection.cjs +8 -6
- package/dist/BlogListSection.js +122 -114
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +1 -1
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +5 -3
- package/dist/BlogsSectionDetailed.js +53 -49
- package/dist/BlogsSectionLarge.cjs +2 -2
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +9 -7
- package/dist/BlogsSectionSimple.js +53 -47
- package/dist/BlogsSectionSimpleCentered.cjs +7 -5
- package/dist/BlogsSectionSimpleCentered.js +31 -26
- package/dist/BlogsSectionWithFilters.cjs +9 -7
- package/dist/BlogsSectionWithFilters.js +47 -42
- package/dist/BrandHitsSection.cjs +9 -7
- package/dist/BrandHitsSection.js +40 -35
- package/dist/{CategorySimpleCard-BNYjZQTH.cjs → CategorySimpleCard-D5N8cx0Z.cjs} +4 -3
- package/dist/{CategorySimpleCard-BA0S7TaN.js → CategorySimpleCard-DRQuoxXu.js} +17 -15
- package/dist/CheckBoxInput.cjs +27 -27
- package/dist/CheckBoxInput.js +61 -98
- package/dist/ColorInput.cjs +26 -26
- package/dist/ColorInput.js +127 -162
- package/dist/DetailedProductsInfinitiveSection.cjs +2 -2
- package/dist/DetailedProductsInfinitiveSection.js +6 -5
- package/dist/DetailedProductsSection.cjs +2 -2
- package/dist/DetailedProductsSection.js +12 -10
- package/dist/FieldOfInterestsMasonrySection.cjs +5 -3
- package/dist/FieldOfInterestsMasonrySection.js +90 -85
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +4 -4
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +49 -46
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +8 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +44 -40
- package/dist/GeneralWithTagsCardsSection.cjs +12 -8
- package/dist/GeneralWithTagsCardsSection.js +50 -44
- package/dist/GiftCardsSection.cjs +7 -5
- package/dist/GiftCardsSection.js +46 -40
- package/dist/MasonryGeneralCardsSection.cjs +6 -5
- package/dist/MasonryGeneralCardsSection.js +26 -23
- package/dist/Modal.cjs +14 -13
- package/dist/Modal.js +88 -86
- package/dist/OverlayGeneralCardsSection.cjs +7 -5
- package/dist/OverlayGeneralCardsSection.js +30 -35
- package/dist/ProductsWithBannerSection.cjs +8 -6
- package/dist/ProductsWithBannerSection.js +71 -77
- package/dist/QuattroCardsSection.cjs +8 -6
- package/dist/QuattroCardsSection.js +31 -28
- package/dist/ReviewsSection.cjs +11 -9
- package/dist/ReviewsSection.js +38 -36
- package/dist/SalesCampaignsSection.cjs +22 -19
- package/dist/SalesCampaignsSection.js +299 -300
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +7 -3
- package/dist/SimpleProductsSection.cjs +5 -5
- package/dist/SimpleProductsSection.js +62 -72
- package/dist/UrgentSaleProductsSection.cjs +6 -6
- package/dist/UrgentSaleProductsSection.js +9 -7
- package/dist/{index-DoKMLSVY.cjs → index-0p_3g3pT.cjs} +4 -2
- package/dist/{index-Bhfq_YpE.js → index-BipuzfLW.js} +28 -25
- package/dist/{index-CaAhRJ2-.cjs → index-Bmr3IeZ_.cjs} +12 -11
- package/dist/{index-DWLKvVyZ.js → index-C8QkdNHi.js} +27 -23
- package/dist/{index-B8I1mHMA.js → index-CA59z2ge.js} +29 -26
- package/dist/{index-BnYqZk-h.cjs → index-DHV9awrE.cjs} +4 -2
- package/dist/{index-DxZ71UZ1.js → index-DZ8515cZ.js} +144 -137
- package/dist/{index-D55MR8tU.cjs → index-MiN854X_.cjs} +6 -4
- package/package.json +1 -1
package/dist/BlogListSection.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { o as P, q as U, s as q, v as
|
|
6
|
-
import { P as
|
|
7
|
-
import { B as
|
|
1
|
+
import { jsxs as t, jsx as e, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as L, useRef as O, cloneElement as W, Suspense as D, memo as E, useMemo as M } from "react";
|
|
3
|
+
import R from "./Icon.js";
|
|
4
|
+
import I from "./IconButton.js";
|
|
5
|
+
import { o as P, q as U, s as q, v as j, l as A } from "./utils-Dc5zIpaz.js";
|
|
6
|
+
import { P as F } from "./index-C_NnINik.js";
|
|
7
|
+
import { B as X } from "./style-C7FUSHmS.js";
|
|
8
8
|
import { s as B } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
9
|
-
import { M as
|
|
10
|
-
import { S as s, a as l, c as p, b as
|
|
11
|
-
const
|
|
9
|
+
import { M as z } from "./consts-BuFChS64.js";
|
|
10
|
+
import { S as s, a as l, c as p, b as i } from "./style-CXMUA6cI.js";
|
|
11
|
+
const Z = B.a`
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
color: var(--gray-950);
|
|
12
14
|
display: flex;
|
|
13
15
|
padding: 1rem;
|
|
14
16
|
align-items: center;
|
|
@@ -103,7 +105,7 @@ const X = B.div`
|
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
|
|
106
|
-
@media (max-width: ${
|
|
108
|
+
@media (max-width: ${z + "px"}) {
|
|
107
109
|
flex-direction: column;
|
|
108
110
|
padding: 0;
|
|
109
111
|
background: transparent;
|
|
@@ -154,101 +156,107 @@ const X = B.div`
|
|
|
154
156
|
}
|
|
155
157
|
}
|
|
156
158
|
}
|
|
157
|
-
`,
|
|
159
|
+
`, H = L(
|
|
158
160
|
({
|
|
159
161
|
blogUuid: o,
|
|
160
162
|
title: d,
|
|
161
163
|
imageUrl: c,
|
|
162
164
|
options: a,
|
|
163
165
|
publishedAt: h,
|
|
164
|
-
timeToReadText:
|
|
165
|
-
timeToRead:
|
|
166
|
-
numberOfLikes:
|
|
166
|
+
timeToReadText: w = "{0} min read",
|
|
167
|
+
timeToRead: _ = 0,
|
|
168
|
+
numberOfLikes: b = 0,
|
|
167
169
|
numberOfComments: v = 0,
|
|
168
170
|
isBookmarked: g = !1,
|
|
169
|
-
onSelectCard:
|
|
171
|
+
onSelectCard: y = () => {
|
|
170
172
|
},
|
|
171
|
-
onBookmark:
|
|
173
|
+
onBookmark: k = () => {
|
|
172
174
|
},
|
|
173
175
|
onShare: r = () => {
|
|
174
176
|
},
|
|
175
|
-
bookmarkComponent: f = /* @__PURE__ */ e(
|
|
176
|
-
metadata: m
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
bookmarkComponent: f = /* @__PURE__ */ e(u, {}),
|
|
178
|
+
metadata: m,
|
|
179
|
+
titleSlug: C
|
|
180
|
+
}, $) => {
|
|
181
|
+
const S = () => A(f) ? W(f, {
|
|
179
182
|
key: `bookmark_blog__${o}__${g}`,
|
|
180
183
|
isBookmarked: g,
|
|
181
184
|
blogUuid: o,
|
|
182
|
-
onBookmark: (
|
|
183
|
-
ref:
|
|
185
|
+
onBookmark: (N, T) => k(N, T),
|
|
186
|
+
ref: $,
|
|
184
187
|
componentName: "ExploreBlogSectionCard"
|
|
185
|
-
}) : /* @__PURE__ */ e(
|
|
186
|
-
return /* @__PURE__ */
|
|
187
|
-
|
|
188
|
+
}) : /* @__PURE__ */ e(u, {}), G = O();
|
|
189
|
+
return /* @__PURE__ */ t(
|
|
190
|
+
Z,
|
|
188
191
|
{
|
|
189
|
-
ref:
|
|
192
|
+
ref: G,
|
|
190
193
|
name: m == null ? void 0 : m.name,
|
|
191
194
|
"data-accessor": m == null ? void 0 : m.accessor,
|
|
192
|
-
onClick: (n) =>
|
|
195
|
+
onClick: (n) => y(n, G),
|
|
193
196
|
className: "blog-card-item",
|
|
197
|
+
href: `/blog/${C}`,
|
|
194
198
|
children: [
|
|
195
|
-
/* @__PURE__ */ e(
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ e(F, { src: c, className: "wrapper__image" }),
|
|
200
|
+
/* @__PURE__ */ t("div", { className: "wrapper__content", children: [
|
|
201
|
+
/* @__PURE__ */ t("div", { className: "wrapper__subcontent", children: [
|
|
198
202
|
/* @__PURE__ */ e("div", { className: "wrapper__title", children: d }),
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
/* @__PURE__ */ e("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((n,
|
|
201
|
-
|
|
203
|
+
/* @__PURE__ */ t("div", { className: "wrapper__tags-action", children: [
|
|
204
|
+
/* @__PURE__ */ e("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((n, N) => /* @__PURE__ */ e(
|
|
205
|
+
X,
|
|
202
206
|
{
|
|
203
207
|
color: n == null ? void 0 : n.color,
|
|
204
208
|
children: n == null ? void 0 : n.name
|
|
205
209
|
},
|
|
206
|
-
`blog-card-sponsored-option__${
|
|
210
|
+
`blog-card-sponsored-option__${N + 1}`
|
|
207
211
|
))) }),
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
|
|
212
|
+
/* @__PURE__ */ t("div", { className: "info__content mobile-only", onClick: (n) => {
|
|
213
|
+
n.stopPropagation(), n.preventDefault();
|
|
214
|
+
}, children: [
|
|
215
|
+
/* @__PURE__ */ e(S, {}),
|
|
210
216
|
/* @__PURE__ */ e(
|
|
211
|
-
|
|
217
|
+
I,
|
|
212
218
|
{
|
|
213
219
|
icon: " mng-lnc-share",
|
|
214
220
|
borderRadius: "curved",
|
|
215
221
|
btnType: "basic",
|
|
216
222
|
color: "neutral",
|
|
217
|
-
onClick: (
|
|
218
|
-
|
|
223
|
+
onClick: () => {
|
|
224
|
+
r();
|
|
219
225
|
}
|
|
220
226
|
}
|
|
221
227
|
)
|
|
222
228
|
] })
|
|
223
229
|
] })
|
|
224
230
|
] }),
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ t("div", { className: "wrapper__info", children: [
|
|
232
|
+
/* @__PURE__ */ t("div", { className: "info__content", children: [
|
|
227
233
|
/* @__PURE__ */ e("div", { className: "info__text", children: `${U(
|
|
228
234
|
h
|
|
229
|
-
)} • ${q(
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
/* @__PURE__ */
|
|
232
|
-
/* @__PURE__ */ e(
|
|
233
|
-
|
|
235
|
+
)} • ${q(w, _)}` }),
|
|
236
|
+
/* @__PURE__ */ t("div", { className: "info__text", children: [
|
|
237
|
+
/* @__PURE__ */ t("div", { children: [
|
|
238
|
+
/* @__PURE__ */ e(R, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
|
|
239
|
+
j(b)
|
|
234
240
|
] }),
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
-
/* @__PURE__ */ e(
|
|
237
|
-
|
|
241
|
+
/* @__PURE__ */ t("div", { children: [
|
|
242
|
+
/* @__PURE__ */ e(R, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
|
|
243
|
+
j(v)
|
|
238
244
|
] })
|
|
239
245
|
] })
|
|
240
246
|
] }),
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
|
|
247
|
+
/* @__PURE__ */ t("div", { className: "info__content desktop-only", onClick: (n) => {
|
|
248
|
+
n == null || n.preventDefault(), n == null || n.stopPropagation();
|
|
249
|
+
}, children: [
|
|
250
|
+
/* @__PURE__ */ e(S, {}),
|
|
243
251
|
/* @__PURE__ */ e(
|
|
244
|
-
|
|
252
|
+
I,
|
|
245
253
|
{
|
|
246
254
|
icon: " mng-lnc-share",
|
|
247
255
|
borderRadius: "curved",
|
|
248
256
|
btnType: "basic",
|
|
249
257
|
color: "neutral",
|
|
250
|
-
onClick: (
|
|
251
|
-
|
|
258
|
+
onClick: () => {
|
|
259
|
+
r();
|
|
252
260
|
}
|
|
253
261
|
}
|
|
254
262
|
)
|
|
@@ -259,7 +267,7 @@ const X = B.div`
|
|
|
259
267
|
}
|
|
260
268
|
);
|
|
261
269
|
}
|
|
262
|
-
),
|
|
270
|
+
), J = B.div`
|
|
263
271
|
display: flex;
|
|
264
272
|
flex-direction: column;
|
|
265
273
|
align-items: flex-start;
|
|
@@ -283,79 +291,79 @@ const X = B.div`
|
|
|
283
291
|
bottom: -1.25rem;
|
|
284
292
|
}
|
|
285
293
|
}
|
|
286
|
-
`,
|
|
287
|
-
@media (max-width: ${
|
|
294
|
+
`, K = B(s)`
|
|
295
|
+
@media (max-width: ${z + "px"}) {
|
|
288
296
|
& > div {
|
|
289
297
|
flex-direction: column;
|
|
290
298
|
}
|
|
291
299
|
}
|
|
292
|
-
`,
|
|
293
|
-
/* @__PURE__ */
|
|
300
|
+
`, Q = ({ keyPrefix: o }) => /* @__PURE__ */ t(K, { children: [
|
|
301
|
+
/* @__PURE__ */ t(l, { children: [
|
|
294
302
|
/* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
-
/* @__PURE__ */ e(
|
|
297
|
-
/* @__PURE__ */
|
|
298
|
-
/* @__PURE__ */ e(
|
|
299
|
-
/* @__PURE__ */ e(
|
|
300
|
-
/* @__PURE__ */ e(
|
|
301
|
-
/* @__PURE__ */ e(
|
|
303
|
+
/* @__PURE__ */ t(s, { noGradient: !0, children: [
|
|
304
|
+
/* @__PURE__ */ e(i, { height: "1.5rem" }),
|
|
305
|
+
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
306
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
307
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
308
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
309
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" })
|
|
302
310
|
] })
|
|
303
311
|
] })
|
|
304
312
|
] }, `${o}-1`),
|
|
305
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ t(l, { children: [
|
|
306
314
|
/* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
-
/* @__PURE__ */ e(
|
|
309
|
-
/* @__PURE__ */
|
|
310
|
-
/* @__PURE__ */ e(
|
|
311
|
-
/* @__PURE__ */ e(
|
|
312
|
-
/* @__PURE__ */ e(
|
|
313
|
-
/* @__PURE__ */ e(
|
|
315
|
+
/* @__PURE__ */ t(s, { noGradient: !0, children: [
|
|
316
|
+
/* @__PURE__ */ e(i, { height: "1.5rem" }),
|
|
317
|
+
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
318
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
319
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
320
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
321
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" })
|
|
314
322
|
] })
|
|
315
323
|
] })
|
|
316
324
|
] }, `${o}-2`),
|
|
317
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ t(l, { children: [
|
|
318
326
|
/* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
/* @__PURE__ */ e(
|
|
321
|
-
/* @__PURE__ */
|
|
322
|
-
/* @__PURE__ */ e(
|
|
323
|
-
/* @__PURE__ */ e(
|
|
324
|
-
/* @__PURE__ */ e(
|
|
325
|
-
/* @__PURE__ */ e(
|
|
327
|
+
/* @__PURE__ */ t(s, { noGradient: !0, children: [
|
|
328
|
+
/* @__PURE__ */ e(i, { height: "1.5rem" }),
|
|
329
|
+
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
330
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
331
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
332
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
333
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" })
|
|
326
334
|
] })
|
|
327
335
|
] })
|
|
328
336
|
] }, `${o}-3`),
|
|
329
|
-
/* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ t(l, { children: [
|
|
330
338
|
/* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
|
|
331
|
-
/* @__PURE__ */
|
|
332
|
-
/* @__PURE__ */ e(
|
|
333
|
-
/* @__PURE__ */
|
|
334
|
-
/* @__PURE__ */ e(
|
|
335
|
-
/* @__PURE__ */ e(
|
|
336
|
-
/* @__PURE__ */ e(
|
|
337
|
-
/* @__PURE__ */ e(
|
|
339
|
+
/* @__PURE__ */ t(s, { noGradient: !0, children: [
|
|
340
|
+
/* @__PURE__ */ e(i, { height: "1.5rem" }),
|
|
341
|
+
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
342
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
343
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
344
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
345
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" })
|
|
338
346
|
] })
|
|
339
347
|
] })
|
|
340
348
|
] }, `${o}-4`),
|
|
341
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ t(l, { children: [
|
|
342
350
|
/* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
|
|
343
|
-
/* @__PURE__ */
|
|
344
|
-
/* @__PURE__ */ e(
|
|
345
|
-
/* @__PURE__ */
|
|
346
|
-
/* @__PURE__ */ e(
|
|
347
|
-
/* @__PURE__ */ e(
|
|
348
|
-
/* @__PURE__ */ e(
|
|
349
|
-
/* @__PURE__ */ e(
|
|
351
|
+
/* @__PURE__ */ t(s, { noGradient: !0, children: [
|
|
352
|
+
/* @__PURE__ */ e(i, { height: "1.5rem" }),
|
|
353
|
+
/* @__PURE__ */ t(l, { noGradient: !0, children: [
|
|
354
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
355
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
356
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
|
|
357
|
+
/* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" })
|
|
350
358
|
] })
|
|
351
359
|
] })
|
|
352
360
|
] }, `${o}-5`)
|
|
353
|
-
] }),
|
|
361
|
+
] }), V = ({
|
|
354
362
|
keyPrefix: o,
|
|
355
363
|
isLoading: d = !1,
|
|
356
|
-
fallbackComponent: c = /* @__PURE__ */ e(
|
|
364
|
+
fallbackComponent: c = /* @__PURE__ */ e(u, {}),
|
|
357
365
|
children: a
|
|
358
|
-
}) => /* @__PURE__ */ e(
|
|
366
|
+
}) => /* @__PURE__ */ e(D, { fallbackComponent: c, children: d === !0 ? /* @__PURE__ */ e(Q, { keyPrefix: o }) : a }), Y = E(H), de = L(
|
|
359
367
|
({
|
|
360
368
|
timeToReadText: o = "{0} min read",
|
|
361
369
|
items: d,
|
|
@@ -364,18 +372,18 @@ const X = B.div`
|
|
|
364
372
|
},
|
|
365
373
|
onShare: h = () => {
|
|
366
374
|
},
|
|
367
|
-
onBookmark:
|
|
375
|
+
onBookmark: w = () => {
|
|
368
376
|
},
|
|
369
|
-
getImage:
|
|
377
|
+
getImage: _ = () => {
|
|
370
378
|
},
|
|
371
|
-
isSeparated:
|
|
372
|
-
bookmarkComponent: v = /* @__PURE__ */ e(
|
|
379
|
+
isSeparated: b = !0,
|
|
380
|
+
bookmarkComponent: v = /* @__PURE__ */ e(u, {}),
|
|
373
381
|
componentName: g
|
|
374
|
-
},
|
|
375
|
-
const
|
|
382
|
+
}, y) => {
|
|
383
|
+
const k = M(() => d == null ? void 0 : d.map((r, f) => {
|
|
376
384
|
var m;
|
|
377
385
|
return /* @__PURE__ */ e(
|
|
378
|
-
|
|
386
|
+
Y,
|
|
379
387
|
{
|
|
380
388
|
blogUuid: r == null ? void 0 : r.uuid,
|
|
381
389
|
title: r == null ? void 0 : r.title,
|
|
@@ -388,19 +396,19 @@ const X = B.div`
|
|
|
388
396
|
numberOfComments: r == null ? void 0 : r.numberOfComments,
|
|
389
397
|
isSponsored: r == null ? void 0 : r.isSponsored,
|
|
390
398
|
isBookmarked: r == null ? void 0 : r.isBookmarked,
|
|
391
|
-
onSelectCard: (
|
|
399
|
+
onSelectCard: (C, $) => a == null ? void 0 : a(r, $),
|
|
392
400
|
onShare: () => h == null ? void 0 : h(r),
|
|
393
|
-
onBookmark:
|
|
394
|
-
imageUrl:
|
|
401
|
+
onBookmark: w,
|
|
402
|
+
imageUrl: _(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
|
|
395
403
|
bookmarkComponent: v,
|
|
396
404
|
metadata: { name: g, accessor: r == null ? void 0 : r.accessor }
|
|
397
405
|
},
|
|
398
406
|
`blog-card-item__${f + 1}__${(m = r == null ? void 0 : r.isBookmarked) == null ? void 0 : m.toString()}`
|
|
399
407
|
);
|
|
400
408
|
}), [d]);
|
|
401
|
-
return /* @__PURE__ */ e(
|
|
409
|
+
return /* @__PURE__ */ e(V, { isLoading: c, keyPrefix: "blog-list-skeleton", children: /* @__PURE__ */ e(J, { ref: y, className: b ? "separated" : "", children: k }) });
|
|
402
410
|
}
|
|
403
411
|
);
|
|
404
412
|
export {
|
|
405
|
-
|
|
413
|
+
de as default
|
|
406
414
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),c=require("react"),h=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),c=require("react"),h=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./index-DHV9awrE.cjs"),M=require("./Button.cjs"),N=require("./style-BTTXJFJN.cjs"),f=c.memo(j.SimpleProductCard),y=c.forwardRef(({buttonText:t,buttonLink:u,items:r,onButtonAction:a=()=>{},onSelectCard:s=()=>{},isLoading:P=!1,limit:R=4,getImage:l=()=>{},isHighlight:n=!1,componentName:d},m)=>{const p=h.useDetectMobile(),g=c.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,b)=>i.jsx(f,{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:(_,q)=>s==null?void 0:s(e==null?void 0:e.uuid,q),image:l(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:d,accessor:e==null?void 0:e.accessor}},b))},[r]);return i.jsxs(N.Wrapper,{ref:m,className:`blog-product-cards-section ${n?"highlight":""}`,children:[i.jsx("div",{className:"wrapper__grid",children:g}),i.jsx(M,{text:t,borderRadius:"curved",btnType:p?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>a(u)})]})});module.exports=y;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import { memo as h, forwardRef as N, useMemo as M } from "react";
|
|
3
3
|
import { u as P } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
-
import { S as _ } from "./index-
|
|
4
|
+
import { S as _ } from "./index-C8QkdNHi.js";
|
|
5
5
|
import w from "./Button.js";
|
|
6
6
|
import { W as y } from "./style-tw6KjI2J.js";
|
|
7
7
|
const U = h(_), D = N(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),o=require("react"),q=require("./useDetectMobile-zkbzoOGV.cjs"),_=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),o=require("react"),q=require("./useDetectMobile-zkbzoOGV.cjs"),_=require("./index-0p_3g3pT.cjs"),f=require("./Button.cjs"),j=require("./style-BTTXJFJN.cjs"),w=o.memo(_.ShopCard),M=o.forwardRef(({buttonText:u,buttonLink:a,items:r,onButtonAction:c=()=>{},onSelectCard:s=()=>{},isLoading:v=!1,limit:R=4,getImage:n=()=>{},isHighlight:l=!1,componentName:d},p)=>{const h=q.useDetectMobile(),m=o.useMemo(()=>{var t;return(t=r==null?void 0:r.slice(0,4))==null?void 0:t.map((e,g)=>i.jsx(w,{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:(C,b)=>s==null?void 0:s(e==null?void 0:e.uuid,b),image:n(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0,metadata:{name:d,accessor:e==null?void 0:e.accessor}},`shop-card__${g+1}`))},[r]);return i.jsxs(j.Wrapper,{ref:p,className:l?"highlight":"",children:[i.jsx("div",{className:"wrapper__grid",children:m}),i.jsx(f,{text:u,borderRadius:"curved",btnType:h?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>c(a)})]})});module.exports=M;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { memo as b, forwardRef as _, useMemo as w } from "react";
|
|
3
3
|
import { u as v } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
-
import { S as M } from "./index-
|
|
4
|
+
import { S as M } from "./index-CA59z2ge.js";
|
|
5
5
|
import C from "./Button.js";
|
|
6
6
|
import { W as N } from "./style-tw6KjI2J.js";
|
|
7
7
|
const S = b(M), L = _(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),s=require("react"),u=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),u=require("./index-MiN854X_.cjs"),l=require("./style-BAcV7F53.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),c=require("./consts-goSZX3xP.cjs"),d=g.styled(l.SkeletonColumnWrapper)`
|
|
2
2
|
@media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
|
|
3
3
|
& > div {
|
|
4
4
|
height: 13.25rem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, Fragment as s } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense as i, forwardRef as g } from "react";
|
|
3
|
-
import { B as d } from "./index-
|
|
3
|
+
import { B as d } from "./index-BipuzfLW.js";
|
|
4
4
|
import { S as u, b as f } from "./style-CXMUA6cI.js";
|
|
5
5
|
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
6
|
import { M as p } from "./consts-BuFChS64.js";
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
@media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,D=N.styled.
|
|
9
|
+
`,D=N.styled.a`
|
|
10
|
+
text-decoration: none;
|
|
11
|
+
color: var(--gray-950);
|
|
10
12
|
display: flex;
|
|
11
13
|
flex-direction: column;
|
|
12
14
|
width: 100%;
|
|
@@ -47,7 +49,7 @@
|
|
|
47
49
|
max-height: 100%;
|
|
48
50
|
min-height: 100%;
|
|
49
51
|
}
|
|
50
|
-
|
|
52
|
+
`,$=N.styled.div`
|
|
51
53
|
display: flex;
|
|
52
54
|
flex-direction: column;
|
|
53
55
|
gap: 0;
|
|
@@ -92,4 +94,4 @@
|
|
|
92
94
|
align-items: center;
|
|
93
95
|
gap: 1rem;
|
|
94
96
|
}
|
|
95
|
-
`,
|
|
97
|
+
`,A=u.forwardRef((o,v)=>{const{title:p,imageUrl:j,text:w,numberOfLikes:i,numberOfComments:f,timeToRead:c,publishedAt:d,tags:n,onCardClick:h,timeToReadText:m="{0} min read",metadata:s,titleSlug:b}=o,g=u.useRef();return t.jsxs(D,{ref:g,className:"blog-card","data-accessor":s==null?void 0:s.accessor,name:s==null?void 0:s.name,onClick:r=>h(r,g),href:`/blog/${b}`,children:[t.jsx(q.ProductImageWrapper,{src:j}),t.jsxs("div",{className:"blog-card-content",children:[t.jsxs($,{children:[t.jsxs("div",{className:"info-wr",children:[t.jsxs("div",{className:"info-wr-1",children:[t.jsxs("span",{children:[a.formatLocaleDateString(d)," "]}),t.jsx("span",{className:"small-dot",children:"●"}),c&&m?`${a.formatString(m,c)}`:"N/A"]}),t.jsxs("div",{className:"info-wr-2",children:[t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),t.jsx("span",{children:a.getRoundedNumber(i)})]}),t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-messages-filled"}),t.jsx("span",{children:a.getRoundedNumber(f)})]})]})]}),t.jsx("div",{className:"text-wr-title",children:p}),t.jsx("div",{className:"text-wr",children:w})]}),n&&t.jsx("div",{className:"tags-wr",children:n==null?void 0:n.map((r,e)=>t.jsx(C.BlogTag,{color:r==null?void 0:r.color,children:r==null?void 0:r.name},e))})]})]})}),S=u.memo(A),E=u.forwardRef((o,v)=>{const{icon:p,title:j,onButtonAction:w,items:i,buttonText:f,timeToReadText:c,limit:d=3,onSelectCard:n=()=>{},isLoading:h=!1,buttonLink:m,getImage:s=()=>{},componentName:b}=o,g=T.useDetectMobile(),r=u.useMemo(()=>t.jsx(t.Fragment,{children:g===!0?i==null?void 0:i.map((e,l)=>t.jsx(S,{title:e==null?void 0:e.title,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:c,tags:e==null?void 0:e.tags,onCardClick:(k,y)=>n(e==null?void 0:e.titleSlug,y),imageUrl:s(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,metadata:{name:b,accessor:e==null?void 0:e.accessor}},l)):i==null?void 0:i.slice(0,d).map((e,l)=>t.jsx(S,{title:e==null?void 0:e.title,imageUrl:s(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,tags:e==null?void 0:e.tags,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:c,onCardClick:(k,y)=>n(e==null?void 0:e.titleSlug,y),metadata:{name:b,accessor:e==null?void 0:e.accessor}},l))}),[i,g,d,n]);return t.jsxs(C.RegulatTitleSectionWrapper,{ref:v,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(p)&&t.jsx("i",{className:p}),t.jsx("span",{children:j})]}),a.isDefinedNotEmptyString(f)&&a.isDefinedNotEmptyString(m)&&!h&&t.jsx(O,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var l;(l=e==null?void 0:e.target)==null||l.blur(),w(m)},borderRadius:"curved",className:"button-link",children:f})]}),t.jsx(L.SuspenseBlogsSectionDetailed,{isLoading:h,keyPrefix:"blogs-detailed-skeleton",children:t.jsx(B,{limit:d,children:r})})]})});module.exports=E;
|