@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.
Files changed (73) hide show
  1. package/dist/BannerSectionCarousel.cjs +4 -4
  2. package/dist/BannerSectionCarousel.js +150 -158
  3. package/dist/BlogCardsSponsoredSection.cjs +5 -5
  4. package/dist/BlogCardsSponsoredSection.js +55 -51
  5. package/dist/BlogCategoryCardsSection.cjs +1 -1
  6. package/dist/BlogCategoryCardsSection.js +1 -1
  7. package/dist/BlogExploreSection.cjs +5 -5
  8. package/dist/BlogExploreSection.js +182 -215
  9. package/dist/BlogListSection.cjs +6 -6
  10. package/dist/BlogListSection.js +134 -116
  11. package/dist/BlogProductCardsSection.cjs +1 -1
  12. package/dist/BlogProductCardsSection.js +26 -24
  13. package/dist/BlogShopCardsSection.cjs +1 -1
  14. package/dist/BlogShopCardsSection.js +1 -1
  15. package/dist/BlogSingleSection.cjs +3 -3
  16. package/dist/BlogSingleSection.js +21 -19
  17. package/dist/BlogsSectionDetailed.cjs +4 -4
  18. package/dist/BlogsSectionDetailed.js +81 -76
  19. package/dist/BlogsSectionLarge.cjs +6 -6
  20. package/dist/BlogsSectionLarge.js +34 -31
  21. package/dist/BlogsSectionSimple.cjs +8 -8
  22. package/dist/BlogsSectionSimple.js +68 -63
  23. package/dist/BlogsSectionSimpleCentered.cjs +9 -9
  24. package/dist/BlogsSectionSimpleCentered.js +67 -54
  25. package/dist/BlogsSectionWithFilters.cjs +9 -9
  26. package/dist/BlogsSectionWithFilters.js +98 -84
  27. package/dist/BrandHitsSection.cjs +7 -7
  28. package/dist/BrandHitsSection.js +50 -32
  29. package/dist/{CategorySimpleCard-DRQuoxXu.js → CategorySimpleCard-CEzArySG.js} +18 -17
  30. package/dist/{CategorySimpleCard-D5N8cx0Z.cjs → CategorySimpleCard-COGlTj06.cjs} +5 -5
  31. package/dist/DetailedProductsInfinitiveSection.cjs +4 -4
  32. package/dist/DetailedProductsInfinitiveSection.js +23 -21
  33. package/dist/DetailedProductsSection.cjs +3 -3
  34. package/dist/DetailedProductsSection.js +38 -35
  35. package/dist/FieldOfInterestsMasonrySection.cjs +12 -12
  36. package/dist/FieldOfInterestsMasonrySection.js +87 -83
  37. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +7 -7
  38. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +47 -43
  39. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -6
  40. package/dist/FieldOfInterestsWithTagsCardsSection.js +87 -62
  41. package/dist/GeneralWithTagsCardsSection.cjs +4 -4
  42. package/dist/GeneralWithTagsCardsSection.js +83 -46
  43. package/dist/GiftCardsSection.cjs +7 -7
  44. package/dist/GiftCardsSection.js +56 -47
  45. package/dist/MasonryGeneralCardsSection.cjs +16 -15
  46. package/dist/MasonryGeneralCardsSection.js +83 -68
  47. package/dist/OverlayGeneralCardsSection.cjs +5 -5
  48. package/dist/OverlayGeneralCardsSection.js +58 -50
  49. package/dist/ProductsWithBannerSection.cjs +10 -10
  50. package/dist/ProductsWithBannerSection.js +79 -70
  51. package/dist/QuattroCardsSection.cjs +8 -8
  52. package/dist/QuattroCardsSection.js +62 -40
  53. package/dist/ReviewsSection.cjs +8 -8
  54. package/dist/ReviewsSection.js +92 -67
  55. package/dist/SalesCampaignsSection.cjs +18 -18
  56. package/dist/SalesCampaignsSection.js +304 -298
  57. package/dist/ShopCardsSection.cjs +3 -3
  58. package/dist/ShopCardsSection.js +25 -23
  59. package/dist/SimpleCategoriesSection.cjs +4 -4
  60. package/dist/SimpleCategoriesSection.js +25 -22
  61. package/dist/SimpleProductsSection.cjs +3 -3
  62. package/dist/SimpleProductsSection.js +53 -50
  63. package/dist/UrgentSaleProductsSection.cjs +4 -4
  64. package/dist/UrgentSaleProductsSection.js +41 -38
  65. package/dist/{index-CA59z2ge.js → index-9inVkeN6.js} +46 -40
  66. package/dist/{index-C8QkdNHi.js → index-BB63Jo6p.js} +42 -36
  67. package/dist/{index-DHV9awrE.cjs → index-BFc3nxYZ.cjs} +3 -3
  68. package/dist/{index-MiN854X_.cjs → index-BWE-RCPy.cjs} +6 -6
  69. package/dist/{index-Bmr3IeZ_.cjs → index-DBokGIps.cjs} +14 -14
  70. package/dist/{index-BipuzfLW.js → index-DMHtIdm-.js} +39 -29
  71. package/dist/{index-0p_3g3pT.cjs → index-D_5jNP-o.cjs} +3 -3
  72. package/dist/{index-DZ8515cZ.js → index-DdUC0zgY.js} +211 -192
  73. 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 L } from "react";
3
- import { s as T } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as z } from "./consts-BuFChS64.js";
5
- import E from "./IconButton.js";
6
- import U from "./Button.js";
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 $ } from "./useDetectMobile-Bkvj0VMa.js";
9
- import { D as j, S as A } from "./index-DZ8515cZ.js";
10
- const F = T.div`
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: ${z + "px"}) {
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
- `, O = D(j), W = I((a, p) => {
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
- } = a, u = $(), M = L(() => t == null ? void 0 : t.map((e, i) => /* @__PURE__ */ o(
109
- O,
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: (R, B) => g({ uuid: e == null ? void 0 : e.uuid, nameSlug: e == null ? void 0 : e.nameSlug, cardRef: B }),
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(F, { ref: p, limit: f, children: [
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
- U,
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
- A,
174
+ F,
173
175
  {
174
176
  isLoading: n,
175
177
  keyPrefix: "detailed-product-card-skeleton",
176
- children: /* @__PURE__ */ o("div", { className: "section__items", children: M })
178
+ children: /* @__PURE__ */ o("div", { className: "section__items", children: B })
177
179
  }
178
180
  ),
179
181
  !u && !n && P && /* @__PURE__ */ o(
180
- E,
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
- W as default
195
+ Y as default
194
196
  };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),c=require("react"),T=require("./emotion-styled.browser.esm-BtEseadx.cjs"),E=require("./consts-goSZX3xP.cjs"),F=require("./Button.cjs"),l=require("./utils-RnrgDDZP.cjs"),B=require("./useDetectMobile-zkbzoOGV.cjs"),R=require("./style-CkcozOY6.cjs"),w=require("./index-Bmr3IeZ_.cjs"),I=require("./index-CSNxZFTX.cjs"),Q=T.styled.div`
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: ${E.MOBILE_SIZE_PX+"px"}) {
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
- `,j=c.memo(w.DetailedProductCard),_=c.forwardRef((a,P)=>{const{icon:u,title:v,buttonLink:d,items:i,buttonText:m,limit:n=4,onSelectCard:g=()=>{},onButtonAction:D=()=>{},isLoading:p=!1,getImage:b=()=>{},negotiableText:k,freeText:y,options:o,onSelectOption:S=()=>{},productsToolbarName:U="All",sponsoredText:C,onBookmark:f=()=>{},actionComponent:h,componentName:N}=a,q=B.useDetectMobile(),L=c.useMemo(()=>t.jsx(t.Fragment,{children:q===!0?i==null?void 0:i.map((e,r)=>t.jsx(j,{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:(M,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}},r)):i==null?void 0:i.slice(0,n).map((e,r)=>t.jsx(j,{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:(M,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},r))}),[i,q,n]);return t.jsxs(R.TitleWithOptionsSectionWrapper,{ref:P,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:v})]}),l.isDefinedNotEmptyString(d)&&l.isDefinedNotEmptyString(m)&&!p&&t.jsx(F,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var r;(r=e==null?void 0:e.target)==null||r.blur(),D(d)},borderRadius:"curved",className:"button-link",children:m})]}),(o==null?void 0:o.length)>0&&t.jsx(I.SelectBar,{items:o,onRemove:e=>{S(e)},onSelect:e=>{S(e)},labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:U}),t.jsx(w.SuspenseDetailedProductCard,{isLoading:p,keyPrefix:"detailed-products-skeleton",children:t.jsx(Q,{limit:n,children:L})})]})});module.exports=_;
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 F, jsxs as l } from "react/jsx-runtime";
2
- import { memo as B, forwardRef as q, useMemo as E } from "react";
3
- import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as Q } from "./consts-BuFChS64.js";
5
- import O from "./Button.js";
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 R } from "./useDetectMobile-Bkvj0VMa.js";
8
- import { T as W } from "./style-C7FUSHmS.js";
9
- import { D as $, S as j } from "./index-DZ8515cZ.js";
10
- import { S as z } from "./index-BGiZlEQt.js";
11
- const A = I.div`
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: ${Q + "px"}) {
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
- `, P = B($), ee = q((i, v) => {
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: L = "All",
60
- sponsoredText: S,
61
- onBookmark: C = () => {
59
+ productsToolbarName: M = "All",
60
+ sponsoredText: C,
61
+ onBookmark: S = () => {
62
62
  },
63
63
  actionComponent: h,
64
- componentName: N
65
- } = i, w = R(), M = E(() => /* @__PURE__ */ t(F, { children: w === !0 ? o == null ? void 0 : o.map((e, r) => /* @__PURE__ */ t(
66
- P,
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: (D, s) => p({
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: S,
98
- onBookmark: C,
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
- P,
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: (D, s) => p({
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: S,
138
- onBookmark: C,
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, w, n]);
147
- return /* @__PURE__ */ l(W, { ref: v, children: [
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
- O,
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
- z,
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: L
185
+ productsToolbarName: M
183
186
  }
184
187
  ),
185
188
  /* @__PURE__ */ t(
186
- j,
189
+ z,
187
190
  {
188
191
  isLoading: g,
189
192
  keyPrefix: "detailed-products-skeleton",
190
- children: /* @__PURE__ */ t(A, { limit: n, children: M })
193
+ children: /* @__PURE__ */ t(K, { limit: n, children: D })
191
194
  }
192
195
  )
193
196
  ] });
194
197
  });
195
198
  export {
196
- ee as default
199
+ te as default
197
200
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),p=require("react"),w=require("./utils-RnrgDDZP.cjs"),F=require("./Icon.cjs"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./style-BAcV7F53.cjs"),P=f.styled.a`
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
- ${w.truncateTextInRows(2)}
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
- ${w.truncateTextInRows(2)}
52
+ ${x.truncateTextInRows(2)}
53
53
  }
54
54
  }
55
55
 
56
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
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
- `,q=f.styled.div`
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
- ${w.truncateTextInRows(2)}
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: ${g.MOBILE_SIZE_PX+"px"}) {
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
- `,O=p.forwardRef(({text:t,isActive:o=!1,icon:i,onSelectCard:a=()=>{}},h)=>e.jsxs(q,{ref:h,className:o?"active":"",onClick:a,children:[e.jsx(F,{icon:i,className:"wrapper__icon"}),e.jsx("div",{className:"wrapper__text",children:t})]})),z=p.forwardRef(({image:t,imageComponent:o,title:i,description:a,className:h,onSelectCard:u=()=>{},link:y},j)=>{const{theme:v}=N.useTheme();return e.jsxs(P,{ref:j,theme:v,className:h,onClick:u,href:`/${y}`,children:[w.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})]})]})}),R=f.styled.div`
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: ${g.MOBILE_SIZE_PX+"px"}) {
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=f.styled(n.SkeletonRowWrapper)`
241
+ `,I=j.styled(n.SkeletonRowWrapper)`
242
242
  &.skeleton__tags {
243
243
  max-width: 50rem;
244
244
  }
245
245
 
246
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
246
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
247
247
  &.skeleton__tags {
248
248
  overflow-x: hidden;
249
249
  }
250
250
  }
251
- `,W=({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`)]}),T=({keyPrefix:t,isLoading:o=!1,fallbackComponent:i=e.jsx(e.Fragment,{}),children:a})=>e.jsx(p.Suspense,{fallbackComponent:i,children:o===!0?e.jsx(W,{keyPrefix:t}):a}),B=({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`)]}),G=({keyPrefix:t,isLoading:o=!1,fallbackComponent:i=e.jsx(e.Fragment,{}),children:a})=>e.jsx(p.Suspense,{fallbackComponent:i,children:o===!0?e.jsx(B,{keyPrefix:t}):a}),X=p.forwardRef(({title:t,subtitle:o,tags:i=[],items:a=[],limitTags:h=5,limitTagsForMobile:u=5,limit:y=3,limitForMobile:j=2,selectedTag:v,onSelectTag:k=()=>{},onSelectCard:b=()=>{},className:m,isLoadingTags:C=!1,isLoadingCards:$=!1},L)=>(p.useLayoutEffect(()=>{if(!w.isDefinedNotEmptyString(m))return;const r=()=>{const c=document==null?void 0:document.querySelector(`.${m} .wrapper__cards`),l=c==null?void 0:c.querySelectorAll(".wrapper__card");l==null||l.forEach(x=>{const E=x.getBoundingClientRect().height,M=Math.ceil((E+10)/20);x.style.gridRowEnd=`span ${M}`});const S=l==null?void 0:l[(l==null?void 0:l.length)-1];if(S){const x=S.offsetTop+S.offsetHeight;c.style.height=`${x}px`}},d=document==null?void 0:document.querySelector(`.${m} .wrapper__cards`),s=d==null?void 0:d.querySelectorAll(".wrapper__image");let _=0;return(s==null?void 0:s.length)===0?r():(s==null||s.forEach(c=>{c.complete?_++:c.addEventListener("load",()=>{_++,_===(s==null?void 0:s.length)&&r()})}),_===(s==null?void 0:s.length)&&r()),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[m,a,$]),e.jsxs(R,{ref:L,limitTags:h,limitTagsForMobile:u,limitCards:y,limitCardsForMobile:j,className:m,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(T,{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(O,{icon:r==null?void 0:r.icon,text:r==null?void 0:r.title,isActive:(r==null?void 0:r.code)===v,onSelectCard:()=>k==null?void 0:k(r)},`field-of-interests-masonry-tag__${d+1}`))})})}),e.jsx(G,{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(z,{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:()=>b==null?void 0:b(r),className:"wrapper__card",link:r==null?void 0:r.link},`field-of-interests-with-tags-card__${d+1}`))})})]})));module.exports=X;
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;