@lanaco/lnc-react-ui 4.0.185 → 4.0.188
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 +4 -4
- package/dist/BannerSectionCarousel.js +150 -158
- package/dist/BlogCardsSponsoredSection.cjs +5 -5
- package/dist/BlogCardsSponsoredSection.js +55 -51
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +182 -215
- package/dist/BlogListSection.cjs +6 -6
- package/dist/BlogListSection.js +134 -116
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +26 -24
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +3 -3
- package/dist/BlogSingleSection.js +21 -19
- package/dist/BlogsSectionDetailed.cjs +4 -4
- package/dist/BlogsSectionDetailed.js +81 -76
- package/dist/BlogsSectionLarge.cjs +6 -6
- package/dist/BlogsSectionLarge.js +34 -31
- package/dist/BlogsSectionSimple.cjs +8 -8
- package/dist/BlogsSectionSimple.js +68 -63
- package/dist/BlogsSectionSimpleCentered.cjs +9 -9
- package/dist/BlogsSectionSimpleCentered.js +67 -54
- package/dist/BlogsSectionWithFilters.cjs +9 -9
- package/dist/BlogsSectionWithFilters.js +98 -84
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +50 -32
- package/dist/{CategorySimpleCard-DRQuoxXu.js → CategorySimpleCard-CEzArySG.js} +18 -17
- package/dist/{CategorySimpleCard-D5N8cx0Z.cjs → CategorySimpleCard-COGlTj06.cjs} +5 -5
- package/dist/DetailedProductsInfinitiveSection.cjs +4 -4
- package/dist/DetailedProductsInfinitiveSection.js +23 -21
- package/dist/DetailedProductsSection.cjs +3 -3
- package/dist/DetailedProductsSection.js +38 -35
- package/dist/FieldOfInterestsMasonrySection.cjs +12 -12
- package/dist/FieldOfInterestsMasonrySection.js +87 -83
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +7 -7
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +47 -43
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +87 -62
- package/dist/GeneralWithTagsCardsSection.cjs +4 -4
- package/dist/GeneralWithTagsCardsSection.js +83 -46
- package/dist/GiftCardsSection.cjs +7 -7
- package/dist/GiftCardsSection.js +56 -47
- package/dist/MasonryGeneralCardsSection.cjs +16 -15
- package/dist/MasonryGeneralCardsSection.js +83 -68
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +58 -50
- package/dist/ProductsWithBannerSection.cjs +10 -10
- package/dist/ProductsWithBannerSection.js +79 -70
- package/dist/QuattroCardsSection.cjs +8 -8
- package/dist/QuattroCardsSection.js +62 -40
- package/dist/ReviewsSection.cjs +8 -8
- package/dist/ReviewsSection.js +92 -67
- package/dist/SalesCampaignsSection.cjs +18 -18
- package/dist/SalesCampaignsSection.js +304 -298
- package/dist/ShopCardsSection.cjs +3 -3
- package/dist/ShopCardsSection.js +25 -23
- package/dist/SimpleCategoriesSection.cjs +4 -4
- package/dist/SimpleCategoriesSection.js +25 -22
- package/dist/SimpleProductsSection.cjs +3 -3
- package/dist/SimpleProductsSection.js +53 -50
- package/dist/UrgentSaleProductsSection.cjs +4 -4
- package/dist/UrgentSaleProductsSection.js +41 -38
- package/dist/{index-CA59z2ge.js → index-9inVkeN6.js} +46 -40
- package/dist/{index-C8QkdNHi.js → index-BB63Jo6p.js} +42 -36
- package/dist/{index-DHV9awrE.cjs → index-BFc3nxYZ.cjs} +3 -3
- package/dist/{index-MiN854X_.cjs → index-BWE-RCPy.cjs} +6 -6
- package/dist/{index-Bmr3IeZ_.cjs → index-DBokGIps.cjs} +14 -14
- package/dist/{index-BipuzfLW.js → index-DMHtIdm-.js} +39 -29
- package/dist/{index-0p_3g3pT.cjs → index-D_5jNP-o.cjs} +3 -3
- package/dist/{index-DZ8515cZ.js → index-DdUC0zgY.js} +211 -192
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { memo as D, forwardRef as I, useMemo as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import { memo as D, forwardRef as I, useMemo as T } from "react";
|
|
3
|
+
import { s as z } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as E } from "./consts-BuFChS64.js";
|
|
5
|
+
import U from "./IconButton.js";
|
|
6
|
+
import $ from "./Button.js";
|
|
7
7
|
import { k as r } from "./utils-Dc5zIpaz.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { D as
|
|
10
|
-
const
|
|
8
|
+
import { u as j } from "./useDetectMobile-Bkvj0VMa.js";
|
|
9
|
+
import { D as A, S as F } from "./index-DdUC0zgY.js";
|
|
10
|
+
const O = z.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
gap: 1.5rem;
|
|
@@ -56,7 +56,7 @@ const F = T.div`
|
|
|
56
56
|
white-space: nowrap;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
@media (max-width: ${
|
|
59
|
+
@media (max-width: ${E + "px"}) {
|
|
60
60
|
gap: 1.25rem;
|
|
61
61
|
|
|
62
62
|
& .section__items {
|
|
@@ -79,7 +79,7 @@ const F = T.div`
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`,
|
|
82
|
+
`, R = D(A), Y = I((a, p) => {
|
|
83
83
|
const {
|
|
84
84
|
title: l,
|
|
85
85
|
icon: c,
|
|
@@ -104,9 +104,10 @@ const F = T.div`
|
|
|
104
104
|
},
|
|
105
105
|
actionComponent: S,
|
|
106
106
|
componentName: N,
|
|
107
|
-
hasNextPage: P = !1
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
hasNextPage: P = !1,
|
|
108
|
+
LinkComponent: M
|
|
109
|
+
} = a, u = j(), B = T(() => t == null ? void 0 : t.map((e, i) => /* @__PURE__ */ o(
|
|
110
|
+
R,
|
|
110
111
|
{
|
|
111
112
|
name: e == null ? void 0 : e.name,
|
|
112
113
|
price: e == null ? void 0 : e.price,
|
|
@@ -117,7 +118,7 @@ const F = T.div`
|
|
|
117
118
|
uuid: e == null ? void 0 : e.uuid,
|
|
118
119
|
sponsored: e == null ? void 0 : e.sponsored,
|
|
119
120
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
120
|
-
onSelectCard: (
|
|
121
|
+
onSelectCard: (V, L) => g({ uuid: e == null ? void 0 : e.uuid, nameSlug: e == null ? void 0 : e.nameSlug, cardRef: L }),
|
|
121
122
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
122
123
|
imageUrl: w(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
123
124
|
isFree: e == null ? void 0 : e.isFree,
|
|
@@ -141,11 +142,12 @@ const F = T.div`
|
|
|
141
142
|
forCart: e == null ? void 0 : e.forCart,
|
|
142
143
|
forOrder: e == null ? void 0 : e.forOrder,
|
|
143
144
|
contactSeller: e == null ? void 0 : e.contactSeller,
|
|
144
|
-
hasVariants: e == null ? void 0 : e.hasVariants
|
|
145
|
+
hasVariants: e == null ? void 0 : e.hasVariants,
|
|
146
|
+
LinkComponent: M
|
|
145
147
|
},
|
|
146
148
|
i
|
|
147
149
|
)), [t]);
|
|
148
|
-
return /* @__PURE__ */ s(
|
|
150
|
+
return /* @__PURE__ */ s(O, { ref: p, limit: f, children: [
|
|
149
151
|
/* @__PURE__ */ s("div", { className: "section__heading", children: [
|
|
150
152
|
r(l) && /* @__PURE__ */ s("div", { className: "section__title", children: [
|
|
151
153
|
r(c) && /* @__PURE__ */ o("i", { className: c }),
|
|
@@ -153,7 +155,7 @@ const F = T.div`
|
|
|
153
155
|
l
|
|
154
156
|
] }),
|
|
155
157
|
u && r(m) && r(d) && !n && /* @__PURE__ */ o(
|
|
156
|
-
|
|
158
|
+
$,
|
|
157
159
|
{
|
|
158
160
|
type: "button",
|
|
159
161
|
btnType: "tinted",
|
|
@@ -169,15 +171,15 @@ const F = T.div`
|
|
|
169
171
|
)
|
|
170
172
|
] }),
|
|
171
173
|
/* @__PURE__ */ o(
|
|
172
|
-
|
|
174
|
+
F,
|
|
173
175
|
{
|
|
174
176
|
isLoading: n,
|
|
175
177
|
keyPrefix: "detailed-product-card-skeleton",
|
|
176
|
-
children: /* @__PURE__ */ o("div", { className: "section__items", children:
|
|
178
|
+
children: /* @__PURE__ */ o("div", { className: "section__items", children: B })
|
|
177
179
|
}
|
|
178
180
|
),
|
|
179
181
|
!u && !n && P && /* @__PURE__ */ o(
|
|
180
|
-
|
|
182
|
+
U,
|
|
181
183
|
{
|
|
182
184
|
icon: k,
|
|
183
185
|
borderRadius: "curved",
|
|
@@ -190,5 +192,5 @@ const F = T.div`
|
|
|
190
192
|
] });
|
|
191
193
|
});
|
|
192
194
|
export {
|
|
193
|
-
|
|
195
|
+
Y as default
|
|
194
196
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),c=require("react"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),c=require("react"),E=require("./emotion-styled.browser.esm-BtEseadx.cjs"),F=require("./consts-goSZX3xP.cjs"),B=require("./Button.cjs"),l=require("./utils-RnrgDDZP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),I=require("./style-CkcozOY6.cjs"),P=require("./index-DBokGIps.cjs"),Q=require("./index-CSNxZFTX.cjs"),_=E.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
white-space: nowrap;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
@media (max-width: ${
|
|
10
|
+
@media (max-width: ${F.MOBILE_SIZE_PX+"px"}) {
|
|
11
11
|
display: flex;
|
|
12
12
|
gap: 1rem;
|
|
13
13
|
overflow-x: auto;
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
/* Safari and Chrome */
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`,w=c.memo(P.DetailedProductCard),$=c.forwardRef((a,v)=>{const{icon:u,title:D,buttonLink:d,items:i,buttonText:m,limit:n=4,onSelectCard:g=()=>{},onButtonAction:L=()=>{},isLoading:p=!1,getImage:b=()=>{},negotiableText:k,freeText:y,options:o,onSelectOption:S=()=>{},productsToolbarName:U="All",sponsoredText:C,onBookmark:f=()=>{},actionComponent:h,componentName:N,LinkComponent:q}=a,j=R.useDetectMobile(),M=c.useMemo(()=>t.jsx(t.Fragment,{children:j===!0?i==null?void 0:i.map((e,r)=>t.jsx(w,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,nameSlug:e==null?void 0:e.nameSlug,onSelectCard:(T,s)=>g({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:s}),sellerName:e==null?void 0:e.sellerName,imageUrl:b(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:k,freeText:y,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,hasQuantities:e==null?void 0:e.hasQuantities,status:e==null?void 0:e.status,trade:e==null?void 0:e.trade,forCart:e==null?void 0:e.forCart,sponsoredText:C,onBookmark:f,actionComponent:h,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{accessor:e==null?void 0:e.accessor,name:N},LinkComponent:q},r)):i==null?void 0:i.slice(0,n).map((e,r)=>t.jsx(w,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(T,s)=>g({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:s}),nameSlug:e==null?void 0:e.nameSlug,imageUrl:b(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:k,freeText:y,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,hasQuantities:e==null?void 0:e.hasQuantities,status:e==null?void 0:e.status,trade:e==null?void 0:e.trade,forCart:e==null?void 0:e.forCart,sponsoredText:C,onBookmark:f,actionComponent:h,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{accessor:e==null?void 0:e.accessor,name:N},sellerName:e==null?void 0:e.sellerName,LinkComponent:q},r))}),[i,j,n]);return t.jsxs(I.TitleWithOptionsSectionWrapper,{ref:v,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[l.isDefinedNotEmptyString(u)&&t.jsx("i",{className:u}),t.jsx("span",{children:D})]}),l.isDefinedNotEmptyString(d)&&l.isDefinedNotEmptyString(m)&&!p&&t.jsx(B,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var r;(r=e==null?void 0:e.target)==null||r.blur(),L(d)},borderRadius:"curved",className:"button-link",children:m})]}),(o==null?void 0:o.length)>0&&t.jsx(Q.SelectBar,{items:o,onRemove:e=>{S(e)},onSelect:e=>{S(e)},labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:U}),t.jsx(P.SuspenseDetailedProductCard,{isLoading:p,keyPrefix:"detailed-products-skeleton",children:t.jsx(_,{limit:n,children:M})})]})});module.exports=$;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import
|
|
1
|
+
import { jsx as t, Fragment as B, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { memo as q, forwardRef as E, useMemo as I } from "react";
|
|
3
|
+
import { s as Q } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as O } from "./consts-BuFChS64.js";
|
|
5
|
+
import R from "./Button.js";
|
|
6
6
|
import { k as m } from "./utils-Dc5zIpaz.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { T as
|
|
9
|
-
import { D as
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
7
|
+
import { u as W } from "./useDetectMobile-Bkvj0VMa.js";
|
|
8
|
+
import { T as $ } from "./style-C7FUSHmS.js";
|
|
9
|
+
import { D as j, S as z } from "./index-DdUC0zgY.js";
|
|
10
|
+
import { S as A } from "./index-BGiZlEQt.js";
|
|
11
|
+
const K = Q.div`
|
|
12
12
|
display: grid;
|
|
13
13
|
grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
|
|
14
14
|
gap: 1.25rem;
|
|
@@ -17,7 +17,7 @@ const A = I.div`
|
|
|
17
17
|
white-space: nowrap;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
@media (max-width: ${
|
|
20
|
+
@media (max-width: ${O + "px"}) {
|
|
21
21
|
display: flex;
|
|
22
22
|
gap: 1rem;
|
|
23
23
|
overflow-x: auto;
|
|
@@ -36,7 +36,7 @@ const A = I.div`
|
|
|
36
36
|
/* Safari and Chrome */
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
`,
|
|
39
|
+
`, v = q(j), te = E((i, L) => {
|
|
40
40
|
const {
|
|
41
41
|
icon: d,
|
|
42
42
|
title: T,
|
|
@@ -56,14 +56,15 @@ const A = I.div`
|
|
|
56
56
|
options: a,
|
|
57
57
|
onSelectOption: y = () => {
|
|
58
58
|
},
|
|
59
|
-
productsToolbarName:
|
|
60
|
-
sponsoredText:
|
|
61
|
-
onBookmark:
|
|
59
|
+
productsToolbarName: M = "All",
|
|
60
|
+
sponsoredText: C,
|
|
61
|
+
onBookmark: S = () => {
|
|
62
62
|
},
|
|
63
63
|
actionComponent: h,
|
|
64
|
-
componentName: N
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
componentName: N,
|
|
65
|
+
LinkComponent: w
|
|
66
|
+
} = i, P = W(), D = I(() => /* @__PURE__ */ t(B, { children: P === !0 ? o == null ? void 0 : o.map((e, r) => /* @__PURE__ */ t(
|
|
67
|
+
v,
|
|
67
68
|
{
|
|
68
69
|
name: e == null ? void 0 : e.name,
|
|
69
70
|
price: e == null ? void 0 : e.price,
|
|
@@ -75,7 +76,7 @@ const A = I.div`
|
|
|
75
76
|
sponsored: e == null ? void 0 : e.sponsored,
|
|
76
77
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
77
78
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
78
|
-
onSelectCard: (
|
|
79
|
+
onSelectCard: (F, s) => p({
|
|
79
80
|
uuid: e == null ? void 0 : e.uuid,
|
|
80
81
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
81
82
|
cardRef: s
|
|
@@ -94,16 +95,17 @@ const A = I.div`
|
|
|
94
95
|
status: e == null ? void 0 : e.status,
|
|
95
96
|
trade: e == null ? void 0 : e.trade,
|
|
96
97
|
forCart: e == null ? void 0 : e.forCart,
|
|
97
|
-
sponsoredText:
|
|
98
|
-
onBookmark:
|
|
98
|
+
sponsoredText: C,
|
|
99
|
+
onBookmark: S,
|
|
99
100
|
actionComponent: h,
|
|
100
101
|
bookmarked: e == null ? void 0 : e.bookmarked,
|
|
101
102
|
bookmarkLists: e == null ? void 0 : e.bookmarkLists,
|
|
102
|
-
metadata: { accessor: e == null ? void 0 : e.accessor, name: N }
|
|
103
|
+
metadata: { accessor: e == null ? void 0 : e.accessor, name: N },
|
|
104
|
+
LinkComponent: w
|
|
103
105
|
},
|
|
104
106
|
r
|
|
105
107
|
)) : o == null ? void 0 : o.slice(0, n).map((e, r) => /* @__PURE__ */ t(
|
|
106
|
-
|
|
108
|
+
v,
|
|
107
109
|
{
|
|
108
110
|
name: e == null ? void 0 : e.name,
|
|
109
111
|
price: e == null ? void 0 : e.price,
|
|
@@ -115,7 +117,7 @@ const A = I.div`
|
|
|
115
117
|
location: e == null ? void 0 : e.location,
|
|
116
118
|
sponsored: e == null ? void 0 : e.sponsored,
|
|
117
119
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
118
|
-
onSelectCard: (
|
|
120
|
+
onSelectCard: (F, s) => p({
|
|
119
121
|
uuid: e == null ? void 0 : e.uuid,
|
|
120
122
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
121
123
|
cardRef: s
|
|
@@ -134,24 +136,25 @@ const A = I.div`
|
|
|
134
136
|
status: e == null ? void 0 : e.status,
|
|
135
137
|
trade: e == null ? void 0 : e.trade,
|
|
136
138
|
forCart: e == null ? void 0 : e.forCart,
|
|
137
|
-
sponsoredText:
|
|
138
|
-
onBookmark:
|
|
139
|
+
sponsoredText: C,
|
|
140
|
+
onBookmark: S,
|
|
139
141
|
actionComponent: h,
|
|
140
142
|
bookmarked: e == null ? void 0 : e.bookmarked,
|
|
141
143
|
bookmarkLists: e == null ? void 0 : e.bookmarkLists,
|
|
142
144
|
metadata: { accessor: e == null ? void 0 : e.accessor, name: N },
|
|
143
|
-
sellerName: e == null ? void 0 : e.sellerName
|
|
145
|
+
sellerName: e == null ? void 0 : e.sellerName,
|
|
146
|
+
LinkComponent: w
|
|
144
147
|
},
|
|
145
148
|
r
|
|
146
|
-
)) }), [o,
|
|
147
|
-
return /* @__PURE__ */ l(
|
|
149
|
+
)) }), [o, P, n]);
|
|
150
|
+
return /* @__PURE__ */ l($, { ref: L, children: [
|
|
148
151
|
/* @__PURE__ */ l("div", { className: "regular-title", children: [
|
|
149
152
|
/* @__PURE__ */ l("div", { className: "regular-title-text", children: [
|
|
150
153
|
m(d) && /* @__PURE__ */ t("i", { className: d }),
|
|
151
154
|
/* @__PURE__ */ t("span", { children: T })
|
|
152
155
|
] }),
|
|
153
156
|
m(c) && m(u) && !g && /* @__PURE__ */ t(
|
|
154
|
-
|
|
157
|
+
R,
|
|
155
158
|
{
|
|
156
159
|
type: "button",
|
|
157
160
|
btnType: "tinted",
|
|
@@ -167,7 +170,7 @@ const A = I.div`
|
|
|
167
170
|
)
|
|
168
171
|
] }),
|
|
169
172
|
(a == null ? void 0 : a.length) > 0 && /* @__PURE__ */ t(
|
|
170
|
-
|
|
173
|
+
A,
|
|
171
174
|
{
|
|
172
175
|
items: a,
|
|
173
176
|
onRemove: (e) => {
|
|
@@ -179,19 +182,19 @@ const A = I.div`
|
|
|
179
182
|
labelKey: "name",
|
|
180
183
|
valueKey: "code",
|
|
181
184
|
noMargin: !0,
|
|
182
|
-
productsToolbarName:
|
|
185
|
+
productsToolbarName: M
|
|
183
186
|
}
|
|
184
187
|
),
|
|
185
188
|
/* @__PURE__ */ t(
|
|
186
|
-
|
|
189
|
+
z,
|
|
187
190
|
{
|
|
188
191
|
isLoading: g,
|
|
189
192
|
keyPrefix: "detailed-products-skeleton",
|
|
190
|
-
children: /* @__PURE__ */ t(
|
|
193
|
+
children: /* @__PURE__ */ t(K, { limit: n, children: D })
|
|
191
194
|
}
|
|
192
195
|
)
|
|
193
196
|
] });
|
|
194
197
|
});
|
|
195
198
|
export {
|
|
196
|
-
|
|
199
|
+
te as default
|
|
197
200
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),p=require("react"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),p=require("react"),x=require("./utils-RnrgDDZP.cjs"),N=require("./Icon.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),P=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./style-BAcV7F53.cjs"),q=j.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
font-style: normal;
|
|
40
40
|
font-weight: 500;
|
|
41
41
|
line-height: 1.5rem;
|
|
42
|
-
${
|
|
42
|
+
${x.truncateTextInRows(2)}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
& .wrapper__description {
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
font-weight: 400;
|
|
50
50
|
line-height: 1rem;
|
|
51
51
|
letter-spacing: 0.025rem;
|
|
52
|
-
${
|
|
52
|
+
${x.truncateTextInRows(2)}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
@media (max-width: ${
|
|
56
|
+
@media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
|
|
57
57
|
& .wrapper__content {
|
|
58
58
|
& .wrapper__title {
|
|
59
59
|
font-size: 0.875rem;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,O=j.styled.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
align-items: center;
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
font-weight: 400;
|
|
107
107
|
line-height: 1.5rem;
|
|
108
108
|
max-width: 8rem;
|
|
109
|
-
${
|
|
109
|
+
${x.truncateTextInRows(2)}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
&.active {
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
@media (max-width: ${
|
|
119
|
+
@media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
|
|
120
120
|
max-width: unset;
|
|
121
121
|
min-width: unset;
|
|
122
122
|
flex-direction: row;
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
max-width: unset;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
`,
|
|
159
|
+
`,z=p.forwardRef(({text:t,isActive:o=!1,icon:i,onSelectCard:a=()=>{}},h)=>e.jsxs(O,{ref:h,className:o?"active":"",onClick:a,children:[e.jsx(N,{icon:i,className:"wrapper__icon"}),e.jsx("div",{className:"wrapper__text",children:t})]})),R=p.forwardRef(({image:t,imageComponent:o,title:i,description:a,className:h,onSelectCard:k=()=>{},link:f,LinkComponent:g},b)=>{const m=g||"a",{theme:w}=P.useTheme();return e.jsxs(q,{ref:b,theme:w,className:h,onClick:k,as:m,...g?{to:`/${f}`}:{href:`/${f}`},children:[x.isDefined(o)?o:e.jsx("img",{src:t,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__content",children:[i&&e.jsx("div",{className:"wrapper__title",children:i}),a&&e.jsx("div",{className:"wrapper__description",children:a})]})]})}),W=j.styled.div`
|
|
160
160
|
display: flex;
|
|
161
161
|
flex-direction: column;
|
|
162
162
|
align-items: center;
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
@media (max-width: ${
|
|
214
|
+
@media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
|
|
215
215
|
gap: 1rem;
|
|
216
216
|
|
|
217
217
|
& .wrapper__tags {
|
|
@@ -238,14 +238,14 @@
|
|
|
238
238
|
grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
`,I=
|
|
241
|
+
`,I=j.styled(n.SkeletonRowWrapper)`
|
|
242
242
|
&.skeleton__tags {
|
|
243
243
|
max-width: 50rem;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
@media (max-width: ${
|
|
246
|
+
@media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
|
|
247
247
|
&.skeleton__tags {
|
|
248
248
|
overflow-x: hidden;
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
`,
|
|
251
|
+
`,T=({keyPrefix:t})=>e.jsxs(I,{className:"skeleton__tags",children:[e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-1`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-2`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-3`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-4`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-5`)]}),B=({keyPrefix:t,isLoading:o=!1,fallbackComponent:i=e.jsx(e.Fragment,{}),children:a})=>e.jsx(p.Suspense,{fallbackComponent:i,children:o===!0?e.jsx(T,{keyPrefix:t}):a}),G=({keyPrefix:t})=>e.jsxs(I,{className:"skeleton__cards",children:[e.jsx(n.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-1`),e.jsx(n.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-2`),e.jsx(n.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-3`)]}),X=({keyPrefix:t,isLoading:o=!1,fallbackComponent:i=e.jsx(e.Fragment,{}),children:a})=>e.jsx(p.Suspense,{fallbackComponent:i,children:o===!0?e.jsx(G,{keyPrefix:t}):a}),Z=p.forwardRef(({title:t,subtitle:o,tags:i=[],items:a=[],limitTags:h=5,limitTagsForMobile:k=5,limit:f=3,limitForMobile:g=2,selectedTag:b,onSelectTag:m=()=>{},onSelectCard:w=()=>{},className:_,isLoadingTags:C=!1,isLoadingCards:$=!1,LinkComponent:E},L)=>(p.useLayoutEffect(()=>{if(!x.isDefinedNotEmptyString(_))return;const r=()=>{const c=document==null?void 0:document.querySelector(`.${_} .wrapper__cards`),l=c==null?void 0:c.querySelectorAll(".wrapper__card");l==null||l.forEach(y=>{const M=y.getBoundingClientRect().height,F=Math.ceil((M+10)/20);y.style.gridRowEnd=`span ${F}`});const S=l==null?void 0:l[(l==null?void 0:l.length)-1];if(S){const y=S.offsetTop+S.offsetHeight;c.style.height=`${y}px`}},d=document==null?void 0:document.querySelector(`.${_} .wrapper__cards`),s=d==null?void 0:d.querySelectorAll(".wrapper__image");let u=0;return(s==null?void 0:s.length)===0?r():(s==null||s.forEach(c=>{c.complete?u++:c.addEventListener("load",()=>{u++,u===(s==null?void 0:s.length)&&r()})}),u===(s==null?void 0:s.length)&&r()),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[_,a,$]),e.jsxs(W,{ref:L,limitTags:h,limitTagsForMobile:k,limitCards:f,limitCardsForMobile:g,className:_,numberOfTags:i==null?void 0:i.length,children:[e.jsxs("div",{className:"wrapper__heading",children:[t&&e.jsx("div",{className:"wrapper__title",children:t}),o&&e.jsx("div",{className:"wrapper__subtitle",children:o})]}),e.jsx(B,{isLoading:C,keyPrefix:"field-of-interests-masonry-tag",children:e.jsx("div",{className:"wrapper__tags__external",children:e.jsx("div",{className:"wrapper__tags",children:i==null?void 0:i.map((r,d)=>e.jsx(z,{icon:r==null?void 0:r.icon,text:r==null?void 0:r.title,isActive:(r==null?void 0:r.code)===b,onSelectCard:()=>m==null?void 0:m(r)},`field-of-interests-masonry-tag__${d+1}`))})})}),e.jsx(X,{isLoading:$,keyPrefix:"field-of-interests-masonry-card",children:e.jsx("div",{className:"wrapper__cards",children:a==null?void 0:a.map((r,d)=>e.jsx(R,{image:r==null?void 0:r.image,imageComponent:r==null?void 0:r.imageComponent,title:r==null?void 0:r.title,description:r==null?void 0:r.description,onSelectCard:()=>w==null?void 0:w(r),className:"wrapper__card",link:r==null?void 0:r.link,LinkComponent:E},`field-of-interests-with-tags-card__${d+1}`))})})]})));module.exports=Z;
|