@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.
Files changed (75) hide show
  1. package/dist/BlogCardsSponsoredSection.cjs +5 -3
  2. package/dist/BlogCardsSponsoredSection.js +68 -64
  3. package/dist/BlogCategoryCardsSection.cjs +1 -1
  4. package/dist/BlogCategoryCardsSection.js +1 -1
  5. package/dist/BlogListSection.cjs +8 -6
  6. package/dist/BlogListSection.js +122 -114
  7. package/dist/BlogProductCardsSection.cjs +1 -1
  8. package/dist/BlogProductCardsSection.js +1 -1
  9. package/dist/BlogShopCardsSection.cjs +1 -1
  10. package/dist/BlogShopCardsSection.js +1 -1
  11. package/dist/BlogSingleSection.cjs +1 -1
  12. package/dist/BlogSingleSection.js +1 -1
  13. package/dist/BlogsSectionDetailed.cjs +5 -3
  14. package/dist/BlogsSectionDetailed.js +53 -49
  15. package/dist/BlogsSectionLarge.cjs +2 -2
  16. package/dist/BlogsSectionLarge.js +2 -2
  17. package/dist/BlogsSectionSimple.cjs +9 -7
  18. package/dist/BlogsSectionSimple.js +53 -47
  19. package/dist/BlogsSectionSimpleCentered.cjs +7 -5
  20. package/dist/BlogsSectionSimpleCentered.js +31 -26
  21. package/dist/BlogsSectionWithFilters.cjs +9 -7
  22. package/dist/BlogsSectionWithFilters.js +47 -42
  23. package/dist/BrandHitsSection.cjs +9 -7
  24. package/dist/BrandHitsSection.js +40 -35
  25. package/dist/{CategorySimpleCard-BNYjZQTH.cjs → CategorySimpleCard-D5N8cx0Z.cjs} +4 -3
  26. package/dist/{CategorySimpleCard-BA0S7TaN.js → CategorySimpleCard-DRQuoxXu.js} +17 -15
  27. package/dist/CheckBoxInput.cjs +27 -27
  28. package/dist/CheckBoxInput.js +61 -98
  29. package/dist/ColorInput.cjs +26 -26
  30. package/dist/ColorInput.js +127 -162
  31. package/dist/DetailedProductsInfinitiveSection.cjs +2 -2
  32. package/dist/DetailedProductsInfinitiveSection.js +6 -5
  33. package/dist/DetailedProductsSection.cjs +2 -2
  34. package/dist/DetailedProductsSection.js +12 -10
  35. package/dist/FieldOfInterestsMasonrySection.cjs +5 -3
  36. package/dist/FieldOfInterestsMasonrySection.js +90 -85
  37. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +4 -4
  38. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +49 -46
  39. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +8 -6
  40. package/dist/FieldOfInterestsWithTagsCardsSection.js +44 -40
  41. package/dist/GeneralWithTagsCardsSection.cjs +12 -8
  42. package/dist/GeneralWithTagsCardsSection.js +50 -44
  43. package/dist/GiftCardsSection.cjs +7 -5
  44. package/dist/GiftCardsSection.js +46 -40
  45. package/dist/MasonryGeneralCardsSection.cjs +6 -5
  46. package/dist/MasonryGeneralCardsSection.js +26 -23
  47. package/dist/Modal.cjs +14 -13
  48. package/dist/Modal.js +88 -86
  49. package/dist/OverlayGeneralCardsSection.cjs +7 -5
  50. package/dist/OverlayGeneralCardsSection.js +30 -35
  51. package/dist/ProductsWithBannerSection.cjs +8 -6
  52. package/dist/ProductsWithBannerSection.js +71 -77
  53. package/dist/QuattroCardsSection.cjs +8 -6
  54. package/dist/QuattroCardsSection.js +31 -28
  55. package/dist/ReviewsSection.cjs +11 -9
  56. package/dist/ReviewsSection.js +38 -36
  57. package/dist/SalesCampaignsSection.cjs +22 -19
  58. package/dist/SalesCampaignsSection.js +299 -300
  59. package/dist/ShopCardsSection.cjs +1 -1
  60. package/dist/ShopCardsSection.js +1 -1
  61. package/dist/SimpleCategoriesSection.cjs +2 -2
  62. package/dist/SimpleCategoriesSection.js +7 -3
  63. package/dist/SimpleProductsSection.cjs +5 -5
  64. package/dist/SimpleProductsSection.js +62 -72
  65. package/dist/UrgentSaleProductsSection.cjs +6 -6
  66. package/dist/UrgentSaleProductsSection.js +9 -7
  67. package/dist/{index-DoKMLSVY.cjs → index-0p_3g3pT.cjs} +4 -2
  68. package/dist/{index-Bhfq_YpE.js → index-BipuzfLW.js} +28 -25
  69. package/dist/{index-CaAhRJ2-.cjs → index-Bmr3IeZ_.cjs} +12 -11
  70. package/dist/{index-DWLKvVyZ.js → index-C8QkdNHi.js} +27 -23
  71. package/dist/{index-B8I1mHMA.js → index-CA59z2ge.js} +29 -26
  72. package/dist/{index-BnYqZk-h.cjs → index-DHV9awrE.cjs} +4 -2
  73. package/dist/{index-DxZ71UZ1.js → index-DZ8515cZ.js} +144 -137
  74. package/dist/{index-D55MR8tU.cjs → index-MiN854X_.cjs} +6 -4
  75. package/package.json +1 -1
@@ -1,14 +1,15 @@
1
- "use strict";const e=require("react/jsx-runtime"),c=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./consts-goSZX3xP.cjs"),l=require("./utils-RnrgDDZP.cjs"),ve=require("./index-uwl7BjRF.cjs"),L=require("./Badge.cjs"),je=require("./Popover.cjs"),xe=require("./PopoverTrigger.cjs"),ke=require("./PopoverContent.cjs"),Se=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./style-BAcV7F53.cjs"),ye=S.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),c=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./consts-goSZX3xP.cjs"),s=require("./utils-RnrgDDZP.cjs"),je=require("./index-uwl7BjRF.cjs"),L=require("./Badge.cjs"),xe=require("./Popover.cjs"),ke=require("./PopoverTrigger.cjs"),Se=require("./PopoverContent.cjs"),ye=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./style-BAcV7F53.cjs"),Pe=S.styled.a`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 0.5rem;
5
5
  cursor: pointer;
6
6
  overflow: hidden;
7
7
  width: 100%;
8
-
8
+ text-decoration: none;
9
+ color: var(--gray-950, #14161a);
9
10
  & .seller {
10
11
  text-transform: uppercase;
11
- ${l.truncateText()}
12
+ ${s.truncateText()}
12
13
  color: var(--gray-500);
13
14
  font-size: 0.625rem;
14
15
  font-weight: 400;
@@ -61,13 +62,13 @@
61
62
  & .card-title {
62
63
  font-size: 0.875rem;
63
64
  font-weight: 600;
64
- ${l.truncateTextInRows(2)}
65
+ ${s.truncateTextInRows(2)}
65
66
  }
66
67
 
67
68
  & .price-text {
68
69
  font-size: 1rem;
69
70
  font-weight: 600;
70
- ${l.truncateText()}
71
+ ${s.truncateText()}
71
72
  display: flex;
72
73
  align-items: end;
73
74
  gap: 0.5rem;
@@ -90,7 +91,7 @@
90
91
  font-size: 0.75rem;
91
92
  font-weight: 400;
92
93
  color: var(--gray-600, #676e79);
93
- ${l.truncateText()}
94
+ ${s.truncateText()}
94
95
  }
95
96
 
96
97
  & .tags-wrapper {
@@ -166,7 +167,7 @@
166
167
  &:hover .product-image-wrapper img {
167
168
  transform: scale(1.1);
168
169
  }
169
- `,Pe=S.styled.div`
170
+ `,Ce=S.styled.div`
170
171
  position: relative;
171
172
  overflow: hidden;
172
173
  border-radius: 0.75rem;
@@ -187,7 +188,7 @@
187
188
 
188
189
  width: 2.25rem;
189
190
  height: 2.25rem;
190
- border-radius: ${i=>l.getBorderRadiusValueWithUnits(i.theme,"curved")};
191
+ border-radius: ${i=>s.getBorderRadiusValueWithUnits(i.theme,"curved")};
191
192
  border: 1px solid var(--gray-95008);
192
193
  background-color: white;
193
194
  color: var(--gray-950);
@@ -284,7 +285,7 @@
284
285
  color: var(--gray-950, #14161a);
285
286
  }
286
287
  }
287
- `,Ce=S.styled.div`
288
+ `,Re=S.styled.div`
288
289
  display: flex;
289
290
  align-items: center;
290
291
  gap: 0.25rem;
@@ -296,7 +297,7 @@
296
297
  font-size: 1rem;
297
298
  color: var(--warning-500, #F59E0B);
298
299
  }
299
- `,Re=c.forwardRef(({sponsoredText:i="Sponsored"},y)=>e.jsxs(Ce,{ref:y,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:i})]})),Le="Vehicles_Cars",Ne="Vehicles_Motorcycles",We="Vehicles_Trucks",$e="Vehicles_AgriculturalMachines_Tractors",Ee="Vehicles_ConstructionMachines",Te="Vehicles_Bus",qe="Vehicles_Campers",Oe="RealEstates_",a={Mileage:{icon:"mng-lnc-road",measure:"km"},YearOfProduction:{icon:"mng-lnc-calendar",measure:""},Fuel:{icon:"mng-lnc-gas-station",measure:""},EnginePowerKW:{icon:"mng-lnc-engine",measure:"kW"},Transmission:{icon:"mng-lnc-transmission",measure:""},Model:{icon:"mng-lnc-application",measure:""},Brand:{icon:"mng-lnc-car--front",measure:""},SurfaceArea:{icon:"mng-lnc-right-angle",measure:""},Floor:{icon:"mng-lnc-elevator",measure:""},FurnishedCondition:{icon:"mng-lnc-sofa-01",measure:""},AdType:{icon:"mng-lnc-notes",measure:""},NumberOfRooms:{icon:"mng-lnc-meeting-room",measure:""},HeatingType:{icon:"mng-lnc-heat",measure:""},AirConditioning:{icon:"mng-lnc-air-conditioner",measure:""},Type:{icon:"mng-lnc-house-building",measure:""},Parking:{icon:"mng-lnc-parking-area-circle",measure:""},Internet:{icon:"mng-lnc-wifi-02",measure:""},State:{icon:"mng-lnc-settings-1",measure:""},NumberOfPremises:{icon:"mng-lnc-meeting-room",measure:""},Pool:{icon:"mng-lnc-pool",measure:""},Approach:{icon:"mng-lnc-driveway",measure:""},NumberOfBeds:{icon:"mng-lnc-bed",measure:""},Kitchen:{icon:"mng-lnc-fridge",measure:""},BathroomToilet:{icon:"mng-lnc-bath",measure:""},default:{icon:" mng-lnc-clock--filled",measure:""}},Ve=c.forwardRef((i,y)=>{const{uuid:f,sellerUuid:N,name:Y,price:P=0,sellingPrice:v,currency:j,isNegotiable:_,isFree:C,imageUrl:Z,location:A,sponsored:K,imageComponent:q,onSelectCard:H=()=>{},freeText:Q="Free",negotiableText:J="Negotiable",tags:t=[],categoryCode:R,categoryName:ee,condition:O,quantity:W,trade:V,sponsoredText:re,forCart:oe,forOrder:ne,contactSeller:te,hasVariants:ie,hasQuantities:ae,status:se,onBookmark:$=()=>{},actionComponent:x,bookmarked:B,bookmarkLists:le,metadata:b,sellerName:z}=i,E=Se.useDetectMobile(),ce=()=>{var m;if(!l.isDefined(x))return e.jsx(e.Fragment,{});const o=x,n=(m=x==null?void 0:x.props)==null?void 0:m.children,d=c.cloneElement(n,{key:`bookmark_pr__${B}`,bookmarked:B,productUuid:f,onAddToBookmark:()=>$(!0,f),onRemoveFromBookmark:()=>$(!1,f),bookmarkedUuidList:le,sellerUuid:N,handleBookmarking:$,forCart:oe,forOrder:ne,contactSeller:te,hasVariants:ie,status:se,quantity:W,hasQuantities:ae,productBasicInfo:{uuid:f,price:P,sellingPrice:v,categoryCode:R,categoryName:ee,currency:j,isNegotiable:_,isFree:C}});return c.cloneElement(o,void 0,d)},I=[Le,Ne,We,$e,Ee,Te,qe,Oe].some(o=>R==null?void 0:R.includes(o)),[de,M]=c.useState(!1),me=()=>{M(!0)},he=()=>{M(!1)},s=c.useRef(null),p=c.useRef([]),[ue,F]=c.useState(t==null?void 0:t.length),pe=()=>{var m,w,k;if(!(s!=null&&s.current)||((m=p==null?void 0:p.current)==null?void 0:m.length)===0)return;if(E){F(t==null?void 0:t.length);return}const o=(w=s==null?void 0:s.current)==null?void 0:w.offsetWidth;let n=0,d=0;for(let h=0;h<(t==null?void 0:t.length);h++){const g=((k=p==null?void 0:p.current[h])==null?void 0:k.offsetWidth)||0,u=n+g+4;if(u<=o)n+=u,d++;else break}F(d)};c.useEffect(()=>{const o=s==null?void 0:s.current;if(!o)return;const n=new ResizeObserver(()=>{pe()});return n.observe(o),()=>{n.disconnect()}},[t,E]);const ge=()=>{var o;return e.jsx("div",{className:"tags-popover__trigger",children:(o=t==null?void 0:t.slice(0,ue))==null?void 0:o.map((n,d)=>{var g,u,D,U,X;const m=((g=a==null?void 0:a[n==null?void 0:n.code])==null?void 0:g.icon)??((u=a==null?void 0:a.default)==null?void 0:u.icon)??"",w=((D=n==null?void 0:n.measurementUnit)==null?void 0:D.symbol)??((U=a==null?void 0:a[n==null?void 0:n.code])==null?void 0:U.measure)??"",h=[(n==null?void 0:n.value)??((X=n==null?void 0:n.multiOptions)==null?void 0:X[0])??"",w].filter(Boolean).join(" ");return e.jsxs(L,{ref:we=>p.current[d]=we,className:"tag",children:[e.jsx("i",{className:m}),h]},`detailed-products-section-tag__${d+1}`)})})},fe=()=>e.jsx("div",{className:"tags-popover__content",children:t==null?void 0:t.map((o,n)=>{var h,g,u;const d=((h=o==null?void 0:o.measurementUnit)==null?void 0:h.symbol)??((g=a==null?void 0:a[o==null?void 0:o.code])==null?void 0:g.measure)??"",w=[(o==null?void 0:o.value)??((u=o==null?void 0:o.multiOptions)==null?void 0:u[0])??"",d].filter(Boolean).join(" "),k=o==null?void 0:o.name;return e.jsxs("div",{children:[e.jsx("span",{className:"tags-popover__name",children:`${k}: `}),e.jsx("span",{className:"tags-popover__value",children:w})]},`detailed-products-section-tag-dropdown__${n+1}`)})}),be=()=>e.jsxs(e.Fragment,{children:[O&&e.jsx(L,{className:"tag",children:O},"detailed-products-section-tag__condition"),W&&e.jsx(L,{className:"tag",children:W},"detailed-products-section-tag__quantity"),V&&e.jsx(L,{className:"tag",children:V},"detailed-products-section-tag__trade")]}),G=P>0&&j&&_!==!0&&C!==!0&&P!==v;return e.jsxs(ye,{ref:s,className:"product-card","data-accessor":b==null?void 0:b.accessor,name:b==null?void 0:b.name,onClick:o=>H(o,s),children:[e.jsxs(Pe,{className:"product-image-wrapper",children:[e.jsx(ce,{}),l.isDefined(q)?q:e.jsx(ve.ProductImageWrapper,{src:Z})]}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"seller",title:z,children:z}),e.jsx("div",{className:"card-title",children:Y})]}),e.jsxs("div",{className:"wrapper-card-3",children:[I&&e.jsx("div",{...E?{}:{onMouseEnter:me,onMouseLeave:he},children:e.jsxs(je,{placement:"bottom",open:de,children:[e.jsx(xe,{children:ge()}),e.jsx(ke,{style:{all:"unset"},children:e.jsx(_e,{children:fe()})})]})}),!I&&be()]}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:`price-text ${G?"new-price":""}`,children:[v>0&&j&&_!==!0&&C!==!0&&e.jsx("div",{children:`${l.formatPrice(v)} ${l.GetCurrencySymbol(j)}`}),G&&e.jsx("div",{className:`${v>0?"full-price":""}`,children:`${l.formatPrice(P)} ${l.GetCurrencySymbol(j)}`}),_&&J,C&&Q]}),e.jsx("div",{className:"location-text",children:A})]}),K===!0&&e.jsx(Re,{sponsoredText:re})]})}),Be=S.styled(r.SkeletonRowWrapper)`
300
+ `,Le=c.forwardRef(({sponsoredText:i="Sponsored"},y)=>e.jsxs(Re,{ref:y,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:i})]})),Ne="Vehicles_Cars",We="Vehicles_Motorcycles",$e="Vehicles_Trucks",Ee="Vehicles_AgriculturalMachines_Tractors",Te="Vehicles_ConstructionMachines",qe="Vehicles_Bus",Oe="Vehicles_Campers",Ve="RealEstates_",a={Mileage:{icon:"mng-lnc-road",measure:"km"},YearOfProduction:{icon:"mng-lnc-calendar",measure:""},Fuel:{icon:"mng-lnc-gas-station",measure:""},EnginePowerKW:{icon:"mng-lnc-engine",measure:"kW"},Transmission:{icon:"mng-lnc-transmission",measure:""},Model:{icon:"mng-lnc-application",measure:""},Brand:{icon:"mng-lnc-car--front",measure:""},SurfaceArea:{icon:"mng-lnc-right-angle",measure:""},Floor:{icon:"mng-lnc-elevator",measure:""},FurnishedCondition:{icon:"mng-lnc-sofa-01",measure:""},AdType:{icon:"mng-lnc-notes",measure:""},NumberOfRooms:{icon:"mng-lnc-meeting-room",measure:""},HeatingType:{icon:"mng-lnc-heat",measure:""},AirConditioning:{icon:"mng-lnc-air-conditioner",measure:""},Type:{icon:"mng-lnc-house-building",measure:""},Parking:{icon:"mng-lnc-parking-area-circle",measure:""},Internet:{icon:"mng-lnc-wifi-02",measure:""},State:{icon:"mng-lnc-settings-1",measure:""},NumberOfPremises:{icon:"mng-lnc-meeting-room",measure:""},Pool:{icon:"mng-lnc-pool",measure:""},Approach:{icon:"mng-lnc-driveway",measure:""},NumberOfBeds:{icon:"mng-lnc-bed",measure:""},Kitchen:{icon:"mng-lnc-fridge",measure:""},BathroomToilet:{icon:"mng-lnc-bath",measure:""},default:{icon:" mng-lnc-clock--filled",measure:""}},Be=c.forwardRef((i,y)=>{const{uuid:u,sellerUuid:N,name:Z,price:P=0,sellingPrice:w,currency:j,isNegotiable:C,isFree:_,imageUrl:A,location:K,sponsored:H,imageComponent:q,freeText:Q="Free",negotiableText:J="Negotiable",tags:t=[],categoryCode:R,categoryName:ee,condition:O,quantity:W,trade:V,sponsoredText:re,forCart:oe,forOrder:ne,contactSeller:te,hasVariants:ie,hasQuantities:ae,status:se,onBookmark:$=()=>{},actionComponent:x,bookmarked:B,bookmarkLists:le,metadata:b,sellerName:z,nameSlug:I,onSelectCard:ce=()=>{}}=i,E=ye.useDetectMobile(),de=()=>{var m;if(!s.isDefined(x))return e.jsx(e.Fragment,{});const o=x,n=(m=x==null?void 0:x.props)==null?void 0:m.children,d=c.cloneElement(n,{key:`bookmark_pr__${B}`,bookmarked:B,productUuid:u,onAddToBookmark:()=>$(!0,u),onRemoveFromBookmark:()=>$(!1,u),bookmarkedUuidList:le,sellerUuid:N,handleBookmarking:$,forCart:oe,forOrder:ne,contactSeller:te,hasVariants:ie,status:se,quantity:W,hasQuantities:ae,productBasicInfo:{uuid:u,price:P,sellingPrice:w,categoryCode:R,categoryName:ee,currency:j,isNegotiable:C,isFree:_}});return c.cloneElement(o,void 0,d)},M=[Ne,We,$e,Ee,Te,qe,Oe,Ve].some(o=>R==null?void 0:R.includes(o)),[me,F]=c.useState(!1),he=()=>{F(!0)},pe=()=>{F(!1)},l=c.useRef(null),g=c.useRef([]),[ue,G]=c.useState(t==null?void 0:t.length),ge=()=>{var m,v,k;if(!(l!=null&&l.current)||((m=g==null?void 0:g.current)==null?void 0:m.length)===0)return;if(E){G(t==null?void 0:t.length);return}const o=(v=l==null?void 0:l.current)==null?void 0:v.offsetWidth;let n=0,d=0;for(let h=0;h<(t==null?void 0:t.length);h++){const f=((k=g==null?void 0:g.current[h])==null?void 0:k.offsetWidth)||0,p=n+f+4;if(p<=o)n+=p,d++;else break}G(d)};c.useEffect(()=>{const o=l==null?void 0:l.current;if(!o)return;const n=new ResizeObserver(()=>{ge()});return n.observe(o),()=>{n.disconnect()}},[t,E]);const fe=()=>{var o;return e.jsx("div",{className:"tags-popover__trigger",children:(o=t==null?void 0:t.slice(0,ue))==null?void 0:o.map((n,d)=>{var f,p,U,X,Y;const m=((f=a==null?void 0:a[n==null?void 0:n.code])==null?void 0:f.icon)??((p=a==null?void 0:a.default)==null?void 0:p.icon)??"",v=((U=n==null?void 0:n.measurementUnit)==null?void 0:U.symbol)??((X=a==null?void 0:a[n==null?void 0:n.code])==null?void 0:X.measure)??"",h=[(n==null?void 0:n.value)??((Y=n==null?void 0:n.multiOptions)==null?void 0:Y[0])??"",v].filter(Boolean).join(" ");return e.jsxs(L,{ref:we=>g.current[d]=we,className:"tag",children:[e.jsx("i",{className:m}),h]},`detailed-products-section-tag__${d+1}`)})})},be=()=>e.jsx("div",{className:"tags-popover__content",children:t==null?void 0:t.map((o,n)=>{var h,f,p;const d=((h=o==null?void 0:o.measurementUnit)==null?void 0:h.symbol)??((f=a==null?void 0:a[o==null?void 0:o.code])==null?void 0:f.measure)??"",v=[(o==null?void 0:o.value)??((p=o==null?void 0:o.multiOptions)==null?void 0:p[0])??"",d].filter(Boolean).join(" "),k=o==null?void 0:o.name;return e.jsxs("div",{children:[e.jsx("span",{className:"tags-popover__name",children:`${k}: `}),e.jsx("span",{className:"tags-popover__value",children:v})]},`detailed-products-section-tag-dropdown__${n+1}`)})}),ve=()=>e.jsxs(e.Fragment,{children:[O&&e.jsx(L,{className:"tag",children:O},"detailed-products-section-tag__condition"),W&&e.jsx(L,{className:"tag",children:W},"detailed-products-section-tag__quantity"),V&&e.jsx(L,{className:"tag",children:V},"detailed-products-section-tag__trade")]}),D=P>0&&j&&C!==!0&&_!==!0&&P!==w;return e.jsxs(Pe,{ref:l,className:"product-card","data-accessor":b==null?void 0:b.accessor,name:b==null?void 0:b.name,onClick:o=>ce(o,l),href:`/product/${s.isDefinedNotEmptyString(I)?`${I}-`:""}${u}`,children:[e.jsxs(Ce,{className:"product-image-wrapper",children:[e.jsx("div",{onClick:o=>{o==null||o.preventDefault(),o==null||o.stopPropagation()},children:e.jsx(de,{})}),s.isDefined(q)?q:e.jsx(je.ProductImageWrapper,{src:A})]}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"seller",title:z,children:z}),e.jsx("div",{className:"card-title",children:Z})]}),e.jsxs("div",{className:"wrapper-card-3",onClick:o=>{o==null||o.preventDefault(),o==null||o.stopPropagation()},children:[M&&e.jsx("div",{...E?{}:{onMouseEnter:he,onMouseLeave:pe},children:e.jsxs(xe,{placement:"bottom",open:me,children:[e.jsx(ke,{children:fe()}),e.jsx(Se,{style:{all:"unset"},children:e.jsx(_e,{children:be()})})]})}),!M&&ve()]}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:`price-text ${D?"new-price":""}`,children:[w>0&&j&&C!==!0&&_!==!0&&e.jsx("div",{children:`${s.formatPrice(w)} ${s.GetCurrencySymbol(j)}`}),D&&e.jsx("div",{className:`${w>0?"full-price":""}`,children:`${s.formatPrice(P)} ${s.GetCurrencySymbol(j)}`}),C&&J,_&&Q]}),e.jsx("div",{className:"location-text",children:K})]}),H===!0&&e.jsx(Le,{sponsoredText:re})]})}),ze=S.styled(r.SkeletonRowWrapper)`
300
301
  @media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
301
302
  & > div {
302
303
  &:nth-of-type(even) {
@@ -304,4 +305,4 @@
304
305
  }
305
306
  }
306
307
  }
307
- `,ze=({keyPrefix:i})=>e.jsxs(Be,{children:[e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonColumnWrapper,{height:"1rem",children:e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonColumnWrapper,{height:"2rem",children:e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${i}-1`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-2`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-3`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-4`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-5`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-6`)]}),Ie=({keyPrefix:i,isLoading:y=!1,fallbackComponent:f=e.jsx(e.Fragment,{}),children:N})=>e.jsx(c.Suspense,{fallbackComponent:f,children:y===!0?e.jsx(ze,{keyPrefix:i}):N});exports.DetailedProductCard=Ve;exports.SuspenseDetailedProductCard=Ie;
308
+ `,Ie=({keyPrefix:i})=>e.jsxs(ze,{children:[e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonColumnWrapper,{height:"1rem",children:e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonColumnWrapper,{height:"2rem",children:e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${i}-1`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-2`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-3`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-4`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-5`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-6`)]}),Me=({keyPrefix:i,isLoading:y=!1,fallbackComponent:u=e.jsx(e.Fragment,{}),children:N})=>e.jsx(c.Suspense,{fallbackComponent:u,children:y===!0?e.jsx(Ie,{keyPrefix:i}):N});exports.DetailedProductCard=Be;exports.SuspenseDetailedProductCard=Me;
@@ -1,9 +1,11 @@
1
1
  import { jsxs as r, jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as b, useRef as h } from "react";
3
- import { s as x } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { o as y, l as v, p as w, G as k } from "./utils-Dc5zIpaz.js";
5
- import { P as z } from "./index-C_NnINik.js";
6
- const C = x.div`
2
+ import { forwardRef as x, useRef as y } from "react";
3
+ import { s as v } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { o as w, l as k, p as z, G as N, k as C } from "./utils-Dc5zIpaz.js";
5
+ import { P as S } from "./index-C_NnINik.js";
6
+ const $ = v.a`
7
+ text-decoration: none;
8
+ color: var(--gray-950);
7
9
  display: flex;
8
10
  flex-direction: column;
9
11
  justify-content: end;
@@ -74,7 +76,7 @@ const C = x.div`
74
76
  z-index: 1;
75
77
  color: var(--white, #fff);
76
78
  transition: all 0.2s ease;
77
- ${y(2)}
79
+ ${w(2)}
78
80
  }
79
81
 
80
82
  &:hover {
@@ -82,39 +84,41 @@ const C = x.div`
82
84
  z-index: 1;
83
85
  }
84
86
  }
85
- `, G = b((c, N) => {
87
+ `, I = x((l, j) => {
86
88
  const {
87
- uuid: j,
88
- title: l,
89
+ uuid: m,
90
+ title: p,
89
91
  price: i = 0,
90
92
  currency: t,
91
93
  isNegotiable: o,
92
94
  isFree: a,
93
- image: m,
95
+ image: f,
94
96
  sellerUuid: P,
95
- onSelectCard: p = () => {
97
+ nameSlug: n,
98
+ onSelectCard: g = () => {
96
99
  },
97
- imageComponent: n,
98
- negotiableText: f = "Negotiable",
99
- freeText: g = "Free",
100
+ imageComponent: c,
101
+ negotiableText: u = "Negotiable",
102
+ freeText: b = "Free",
100
103
  metadata: e
101
- } = c, d = h();
104
+ } = l, d = y();
102
105
  return /* @__PURE__ */ r(
103
- C,
106
+ $,
104
107
  {
105
108
  ref: d,
106
109
  className: "simple-product-card",
107
110
  "data-accessor": e == null ? void 0 : e.accessor,
108
111
  name: e == null ? void 0 : e.name,
109
- onClick: (u) => p(u, d),
112
+ onClick: (h) => g(h, d),
113
+ href: `/product/${C(n) ? `${n}-` : ""}${m}`,
110
114
  children: [
111
- v(n) ? n : /* @__PURE__ */ s(z, { src: m }),
115
+ k(c) ? c : /* @__PURE__ */ s(S, { src: f }),
112
116
  /* @__PURE__ */ r("div", { className: "text-block", children: [
113
- /* @__PURE__ */ s("div", { className: "title-simple-product-card", children: l }),
117
+ /* @__PURE__ */ s("div", { className: "title-simple-product-card", children: p }),
114
118
  /* @__PURE__ */ r("div", { className: "price-chip", children: [
115
- i > 0 && t && o !== !0 && a !== !0 && `${w(i)} ${k(t)}`,
116
- o && f,
117
- a && g
119
+ i > 0 && t && o !== !0 && a !== !0 && `${z(i)} ${N(t)}`,
120
+ o && u,
121
+ a && b
118
122
  ] })
119
123
  ] })
120
124
  ]
@@ -122,5 +126,5 @@ const C = x.div`
122
126
  );
123
127
  });
124
128
  export {
125
- G as S
129
+ I as S
126
130
  };
@@ -1,12 +1,14 @@
1
1
  import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as $, useRef as _, useEffect as k, Fragment as I } from "react";
3
- import g from "./Icon.js";
4
- import { o as f, l as h } from "./utils-Dc5zIpaz.js";
2
+ import { forwardRef as L, useRef as g, useEffect as k, Fragment as I } from "react";
3
+ import f from "./Icon.js";
4
+ import { o as h, l as w } from "./utils-Dc5zIpaz.js";
5
5
  import { s as P } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
6
  import { M as z } from "./consts-BuFChS64.js";
7
- import { D as w } from "./ShopAvatar-4-fCYGEc.js";
7
+ import { D as d } from "./ShopAvatar-4-fCYGEc.js";
8
8
  import { P as D } from "./index-C_NnINik.js";
9
- const M = P.div`
9
+ const M = P.a`
10
+ text-decoration: none;
11
+ color: var(--gray-950);
10
12
  display: flex;
11
13
  flex-direction: column;
12
14
  align-items: center;
@@ -59,7 +61,7 @@ const M = P.div`
59
61
  font-weight: 500;
60
62
  line-height: 1.5rem;
61
63
  letter-spacing: -0.0112rem;
62
- ${f(2)}
64
+ ${h(2)}
63
65
  text-align: center;
64
66
  }
65
67
 
@@ -71,7 +73,7 @@ const M = P.div`
71
73
  font-weight: 400;
72
74
  line-height: 1.25rem;
73
75
  letter-spacing: -0.0056rem;
74
- ${f(2)}
76
+ ${h(2)}
75
77
  }
76
78
 
77
79
  & .wrapper__badges {
@@ -145,31 +147,31 @@ const M = P.div`
145
147
  }
146
148
  }
147
149
  }
148
- `, X = $(
150
+ `, X = L(
149
151
  ({
150
- uuid: d,
151
- image: o,
152
- imageComponent: c,
152
+ uuid: m,
153
+ image: c,
154
+ imageComponent: p,
153
155
  title: x,
154
156
  subtitle: v,
155
157
  badges: y,
156
158
  rating: b,
157
- reviewCount: m,
159
+ reviewCount: o,
158
160
  products: t,
159
161
  onSelectCard: N = () => {
160
162
  },
161
163
  getProductImage: E = () => {
162
164
  },
163
165
  canAcceptPayments: S,
164
- hideProducts: j = !1,
165
- showRating: L = !0,
166
+ hideProducts: $ = !1,
167
+ showRating: j = !0,
166
168
  metadata: s = {}
167
169
  }, W) => {
168
- const i = _(), p = _();
170
+ const i = g(), _ = g();
169
171
  return k(() => {
170
172
  var n;
171
173
  const e = (a) => {
172
- a.target.src = w, a.onerror = null;
174
+ a.target.src = d, a.onerror = null;
173
175
  };
174
176
  return (n = i == null ? void 0 : i.current) == null || n.addEventListener("error", e), () => {
175
177
  var a;
@@ -178,24 +180,25 @@ const M = P.div`
178
180
  }, []), /* @__PURE__ */ l(
179
181
  M,
180
182
  {
181
- ref: p,
182
- onClick: (e) => N(e, p),
183
+ ref: _,
183
184
  name: s == null ? void 0 : s.name,
184
185
  "data-accessor": s == null ? void 0 : s.accessor,
186
+ onClick: (e) => N(e, _),
187
+ href: `/shop/${m}`,
185
188
  children: [
186
189
  /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
187
- h(c) ? c : o ? /* @__PURE__ */ r("img", { ref: i, src: o, className: "wrapper__image" }) : /* @__PURE__ */ r("img", { src: w, className: "wrapper__image" }),
190
+ w(p) ? p : c ? /* @__PURE__ */ r("img", { ref: i, src: c, className: "wrapper__image" }) : /* @__PURE__ */ r("img", { src: d, className: "wrapper__image" }),
188
191
  /* @__PURE__ */ l("div", { className: "wrapper__info", children: [
189
192
  /* @__PURE__ */ l("div", { className: "wrapper__title", children: [
190
193
  x,
191
194
  " ",
192
- S && /* @__PURE__ */ r(g, { color: "secondary", icon: "credit-card", className: "card" })
195
+ S && /* @__PURE__ */ r(f, { color: "secondary", icon: "credit-card", className: "card" })
193
196
  ] }),
194
197
  /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: v }),
195
198
  y && /* @__PURE__ */ r("div", { className: "wrapper__badges" }),
196
- L && /* @__PURE__ */ l("div", { className: "wrapper__rating", children: [
199
+ j && /* @__PURE__ */ l("div", { className: "wrapper__rating", children: [
197
200
  /* @__PURE__ */ r("div", { className: "wrapper_stars", children: [...Array(5).keys()].map((e, n) => /* @__PURE__ */ r(
198
- g,
201
+ f,
199
202
  {
200
203
  icon: " mng-lnc-star--filled",
201
204
  className: `wrapper__star ${e >= b ? "gold-star" : ""}`
@@ -204,13 +207,13 @@ const M = P.div`
204
207
  )) }),
205
208
  /* @__PURE__ */ l("div", { className: "wrapper__review-count", children: [
206
209
  "(",
207
- m == null ? void 0 : m.toLocaleString(),
210
+ o == null ? void 0 : o.toLocaleString(),
208
211
  ")"
209
212
  ] })
210
213
  ] })
211
214
  ] })
212
215
  ] }),
213
- j !== !0 && /* @__PURE__ */ r("div", { className: "wrapper__products", children: t && (t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ r(I, { children: /* @__PURE__ */ r(
216
+ $ !== !0 && /* @__PURE__ */ r("div", { className: "wrapper__products", children: t && (t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ r(I, { children: /* @__PURE__ */ r(
214
217
  "div",
215
218
  {
216
219
  className: "wrapper__product",
@@ -218,13 +221,13 @@ const M = P.div`
218
221
  var a;
219
222
  return (a = e == null ? void 0 : e.onSelectProduct) == null ? void 0 : a.call(e, e == null ? void 0 : e.uuid);
220
223
  },
221
- children: h(e == null ? void 0 : e.imageComponent) ? e == null ? void 0 : e.imageComponent : /* @__PURE__ */ r(
224
+ children: w(e == null ? void 0 : e.imageComponent) ? e == null ? void 0 : e.imageComponent : /* @__PURE__ */ r(
222
225
  D,
223
226
  {
224
227
  src: E(
225
228
  e == null ? void 0 : e.image,
226
229
  e == null ? void 0 : e.uuid,
227
- d
230
+ m
228
231
  ),
229
232
  className: "product__image"
230
233
  }
@@ -1,4 +1,6 @@
1
- "use strict";const r=require("react/jsx-runtime"),d=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-RnrgDDZP.cjs"),h=require("./index-uwl7BjRF.cjs"),y=b.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),l=require("react"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-RnrgDDZP.cjs"),v=require("./index-uwl7BjRF.cjs"),w=y.styled.a`
2
+ text-decoration: none;
3
+ color: var(--gray-950);
2
4
  display: flex;
3
5
  flex-direction: column;
4
6
  justify-content: end;
@@ -77,4 +79,4 @@
77
79
  z-index: 1;
78
80
  }
79
81
  }
80
- `,v=d.forwardRef((l,w)=>{const{uuid:j,title:m,price:t=0,currency:o,isNegotiable:n,isFree:s,image:u,sellerUuid:k,onSelectCard:p=()=>{},imageComponent:c,negotiableText:f="Negotiable",freeText:g="Free",metadata:e}=l,a=d.useRef();return r.jsxs(y,{ref:a,className:"simple-product-card","data-accessor":e==null?void 0:e.accessor,name:e==null?void 0:e.name,onClick:x=>p(x,a),children:[i.isDefined(c)?c:r.jsx(h.ProductImageWrapper,{src:u}),r.jsxs("div",{className:"text-block",children:[r.jsx("div",{className:"title-simple-product-card",children:m}),r.jsxs("div",{className:"price-chip",children:[t>0&&o&&n!==!0&&s!==!0&&`${i.formatPrice(t)} ${i.GetCurrencySymbol(o)}`,n&&f,s&&g]})]})]})});exports.SimpleProductCard=v;
82
+ `,j=l.forwardRef((m,k)=>{const{uuid:u,title:p,price:t=0,currency:o,isNegotiable:n,isFree:a,image:f,sellerUuid:z,nameSlug:c,onSelectCard:g=()=>{},imageComponent:s,negotiableText:x="Negotiable",freeText:b="Free",metadata:e}=m,d=l.useRef();return r.jsxs(w,{ref:d,className:"simple-product-card","data-accessor":e==null?void 0:e.accessor,name:e==null?void 0:e.name,onClick:h=>g(h,d),href:`/product/${i.isDefinedNotEmptyString(c)?`${c}-`:""}${u}`,children:[i.isDefined(s)?s:r.jsx(v.ProductImageWrapper,{src:f}),r.jsxs("div",{className:"text-block",children:[r.jsx("div",{className:"title-simple-product-card",children:p}),r.jsxs("div",{className:"price-chip",children:[t>0&&o&&n!==!0&&a!==!0&&`${i.formatPrice(t)} ${i.GetCurrencySymbol(o)}`,n&&x,a&&b]})]})]})});exports.SimpleProductCard=j;