@lanaco/lnc-react-ui 4.0.37 → 4.0.39

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 (32) hide show
  1. package/dist/BlogsSectionDetailed.cjs +11 -11
  2. package/dist/BlogsSectionDetailed.js +124 -87
  3. package/dist/BlogsSectionLarge.cjs +10 -10
  4. package/dist/BlogsSectionLarge.js +87 -60
  5. package/dist/BlogsSectionSimple.cjs +8 -8
  6. package/dist/BlogsSectionSimple.js +98 -72
  7. package/dist/BlogsSectionSimpleCentered.cjs +9 -9
  8. package/dist/BlogsSectionSimpleCentered.js +75 -45
  9. package/dist/BlogsSectionWithFilters.cjs +10 -10
  10. package/dist/BlogsSectionWithFilters.js +105 -77
  11. package/dist/DetailedProductsSection.cjs +4 -4
  12. package/dist/DetailedProductsSection.js +66 -57
  13. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  14. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
  15. package/dist/OverlayGeneralCardsSection.cjs +20 -20
  16. package/dist/OverlayGeneralCardsSection.js +99 -59
  17. package/dist/ProductsWithBannerSection.cjs +10 -10
  18. package/dist/ProductsWithBannerSection.js +87 -56
  19. package/dist/QuizSection.cjs +1 -1
  20. package/dist/QuizSection.js +25 -25
  21. package/dist/SimpleCategoriesSection.cjs +9 -9
  22. package/dist/SimpleCategoriesSection.js +89 -58
  23. package/dist/SimpleProductsSection.cjs +3 -3
  24. package/dist/SimpleProductsSection.js +86 -55
  25. package/dist/UrgentSaleProductsSection.cjs +5 -5
  26. package/dist/UrgentSaleProductsSection.js +41 -30
  27. package/dist/{index-CHkb_Sj6.js → index-BN8qgFbe.js} +15 -15
  28. package/dist/{index-Dj5wZCVs.cjs → index-_Db92CJE.cjs} +3 -3
  29. package/dist/suspense-product-card-detailed-BETmfKMT.js +189 -0
  30. package/dist/{index-vXmvgZ2Y.cjs → suspense-product-card-detailed-DtzOxHaH.cjs} +4 -4
  31. package/package.json +2 -2
  32. package/dist/index-D6g5ZqyJ.js +0 -159
@@ -1,8 +1,8 @@
1
- import { jsxs as e, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as f } from "react";
3
- import { n as a } from "./emotion-styled.browser.esm-CjCaF13H.js";
3
+ import { n as o } from "./emotion-styled.browser.esm-CjCaF13H.js";
4
4
  import { m as u, l as h, n as b, G as x } from "./utils-DtRLzzTZ.js";
5
- a.div`
5
+ const C = o.div`
6
6
  background-color: var(--gray-200, #dddfe4);
7
7
  border-radius: 0.75rem;
8
8
  min-width: 11.625rem;
@@ -10,8 +10,7 @@ a.div`
10
10
  max-width: 11.625rem;
11
11
  max-height: 11.625rem;
12
12
  ${u("-90deg")}
13
- `;
14
- const v = a.div`
13
+ `, v = o.div`
15
14
  display: flex;
16
15
  flex-direction: column;
17
16
  justify-content: end;
@@ -89,14 +88,14 @@ const v = a.div`
89
88
  color: var(--primary-500, #F59E0B);
90
89
  }
91
90
  }
92
- `, S = f((d, y) => {
91
+ `, F = f((n, y) => {
93
92
  const {
94
93
  uuid: w,
95
- title: n,
94
+ title: d,
96
95
  price: r,
97
96
  currency: i,
98
- isNegotiable: m,
99
- isFree: l,
97
+ isNegotiable: l,
98
+ isFree: m,
100
99
  image: c,
101
100
  sellerUuid: k,
102
101
  onSelectCard: s = () => {
@@ -104,19 +103,20 @@ const v = a.div`
104
103
  imageComponent: t,
105
104
  negotiableText: p = "Negotiable",
106
105
  freeText: g = "Free"
107
- } = d;
106
+ } = n;
108
107
  return /* @__PURE__ */ e(v, { className: "simple-product-card", onClick: s, children: [
109
- h(t) ? t : /* @__PURE__ */ o("img", { src: c }),
108
+ h(t) ? t : /* @__PURE__ */ a("img", { src: c }),
110
109
  /* @__PURE__ */ e("div", { className: "text-block", children: [
111
- /* @__PURE__ */ o("div", { className: "title-simple-product-card", children: n }),
110
+ /* @__PURE__ */ a("div", { className: "title-simple-product-card", children: d }),
112
111
  /* @__PURE__ */ e("div", { className: "price-chip", children: [
113
112
  r && i && `${b(r)} ${x(i)}`,
114
- m && p,
115
- l && g
113
+ l && p,
114
+ m && g
116
115
  ] })
117
116
  ] })
118
117
  ] });
119
118
  });
120
119
  export {
121
- S
120
+ C as S,
121
+ F as a
122
122
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),p=require("react"),a=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),r=require("./utils-NZLCh-J5.cjs");a.newStyled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),u=require("react"),a=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),r=require("./utils-NZLCh-J5.cjs"),f=a.newStyled.div`
2
2
  background-color: var(--gray-200, #dddfe4);
3
3
  border-radius: 0.75rem;
4
4
  min-width: 11.625rem;
@@ -6,7 +6,7 @@
6
6
  max-width: 11.625rem;
7
7
  max-height: 11.625rem;
8
8
  ${r.linearGradientAnimation("-90deg")}
9
- `;const f=a.newStyled.div`
9
+ `,h=a.newStyled.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  justify-content: end;
@@ -84,4 +84,4 @@
84
84
  color: var(--primary-500, #F59E0B);
85
85
  }
86
86
  }
87
- `,h=p.forwardRef((d,b)=>{const{uuid:x,title:n,price:i,currency:t,isNegotiable:c,isFree:l,image:s,sellerUuid:y,onSelectCard:m=()=>{},imageComponent:o,negotiableText:g="Negotiable",freeText:u="Free"}=d;return e.jsxs(f,{className:"simple-product-card",onClick:m,children:[r.isDefined(o)?o:e.jsx("img",{src:s}),e.jsxs("div",{className:"text-block",children:[e.jsx("div",{className:"title-simple-product-card",children:n}),e.jsxs("div",{className:"price-chip",children:[i&&t&&`${r.formatPrice(i)} ${r.GetCurrencySymbol(t)}`,c&&g,l&&u]})]})]})});exports.SimpleProductCard=h;
87
+ `,b=u.forwardRef((n,x)=>{const{uuid:y,title:d,price:i,currency:t,isNegotiable:c,isFree:l,image:s,sellerUuid:v,onSelectCard:m=()=>{},imageComponent:o,negotiableText:p="Negotiable",freeText:g="Free"}=n;return e.jsxs(h,{className:"simple-product-card",onClick:m,children:[r.isDefined(o)?o:e.jsx("img",{src:s}),e.jsxs("div",{className:"text-block",children:[e.jsx("div",{className:"title-simple-product-card",children:d}),e.jsxs("div",{className:"price-chip",children:[i&&t&&`${r.formatPrice(i)} ${r.GetCurrencySymbol(t)}`,c&&p,l&&g]})]})]})});exports.SimpleProductCard=b;exports.SkeletonWrapper=f;
@@ -0,0 +1,189 @@
1
+ import { jsxs as t, jsx as e, Fragment as p } from "react/jsx-runtime";
2
+ import { forwardRef as c, Suspense as $ } from "react";
3
+ import { t as y, o as m, m as s, l as S, n as C, G as z } from "./utils-DtRLzzTZ.js";
4
+ import { n as g } from "./emotion-styled.browser.esm-CjCaF13H.js";
5
+ import { M as P } from "./consts-C1uHV4xc.js";
6
+ const h = g.div`
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: 0.5rem;
10
+ cursor: pointer;
11
+
12
+ & .wrapper-card-1 {
13
+ display: flex;
14
+ flex-direction: column;
15
+ gap: 0.38rem;
16
+ }
17
+
18
+ & .wrapper-card-2 {
19
+ display: flex;
20
+ flex-direction: column;
21
+ gap: 0;
22
+ }
23
+
24
+ & img {
25
+ width: 100%;
26
+ aspect-ratio: 1 / 1; /* defining the aspect ratio of the image */
27
+ object-fit: cover; /* making sure the image isn't distorted */
28
+ border-radius: 0.75rem;
29
+ }
30
+
31
+ & .card-title {
32
+ font-size: 0.875rem;
33
+ font-weight: 600;
34
+ ${y(2)}
35
+ }
36
+
37
+ & .price-text {
38
+ font-size: 1rem;
39
+ font-weight: 600;
40
+ ${m()}
41
+ }
42
+
43
+ & .location-text {
44
+ font-size: 0.75rem;
45
+ font-weight: 400;
46
+ color: var(--gray-600, #676e79);
47
+ ${m()}
48
+ }
49
+
50
+ & .tags-wrapper {
51
+ display: flex;
52
+ gap: 0.5rem;
53
+ }
54
+
55
+ &:hover {
56
+ & .card-title {
57
+ color: var(--primary-500, #f59e0b);
58
+ }
59
+ }
60
+
61
+ & .skeleton-img {
62
+ background-color: ${s("-90deg")};
63
+ border-radius: 0.75rem;
64
+ border: 1px solid white;
65
+ }
66
+
67
+ & .skeleton-title {
68
+ background-color: ${s("-90deg")};
69
+ width: 100%;
70
+ height: 2.5rem;
71
+ }
72
+
73
+ & .skeleton-tags {
74
+ background-color: ${s("-90deg")};
75
+ width: 80%;
76
+ height: 1.5rem;
77
+ }
78
+
79
+ & .skeleton-price {
80
+ background-color: ${s("-90deg")};
81
+ width: 50%;
82
+ height: 2.5rem;
83
+ }
84
+
85
+ & .skeleton-sponsored {
86
+ background-color: ${s("-90deg")};
87
+ width: 50%;
88
+ height: 1rem;
89
+ }
90
+
91
+ @media (max-width: ${P + "px"}) {
92
+ & img {
93
+ width: 8.875rem;
94
+ height: 8.875rem;
95
+ min-width: 8.875rem;
96
+ min-height: 8.875rem;
97
+ min-width: 8.875rem;
98
+ min-height: 8.875rem;
99
+ object-fit: cover;
100
+ }
101
+
102
+ & .price-text {
103
+ font-size: 0.875rem;
104
+ font-weight: 600;
105
+ }
106
+ }
107
+ `, D = g.div`
108
+ display: flex;
109
+ align-items: center;
110
+ gap: 0.25rem;
111
+ color: var(--gray-500);
112
+ font-size: 0.75rem;
113
+ font-weight: 500;
114
+
115
+ & i {
116
+ font-size: 1rem;
117
+ color: var(--warning-500, #F59E0B);
118
+ }
119
+ `, j = c(({ sponsoredText: r = "Sponsored" }, i) => /* @__PURE__ */ t(D, { ref: i, className: "sponsored-line", children: [
120
+ /* @__PURE__ */ e("i", { className: "mng-lnc-paw2" }),
121
+ /* @__PURE__ */ e("span", { children: r })
122
+ ] })), M = c((r, i) => {
123
+ const {
124
+ uuid: o,
125
+ title: n,
126
+ price: a,
127
+ currency: d,
128
+ isNegotiable: f,
129
+ isFree: u,
130
+ image: w,
131
+ sellerUuid: E,
132
+ location: x,
133
+ isSponsored: k,
134
+ imageComponent: l,
135
+ onSelectCard: v = () => {
136
+ },
137
+ freeText: N = "Free",
138
+ negotiableText: b = "Negotiable"
139
+ } = r;
140
+ return (
141
+ // <LandingPageProductCardSkeleton />
142
+ /* @__PURE__ */ t(h, { className: "product-card", onClick: v, children: [
143
+ S(l) ? l : /* @__PURE__ */ e("img", { src: w }),
144
+ /* @__PURE__ */ e("div", { className: "wrapper-card-1", children: /* @__PURE__ */ e("div", { className: "card-title", children: n }) }),
145
+ /* @__PURE__ */ t("div", { className: "wrapper-card-2", children: [
146
+ /* @__PURE__ */ t("div", { className: "price-text", children: [
147
+ a && d && `${C(a)} ${z(d)}`,
148
+ f && { negotiableText: b },
149
+ u && { freeText: N }
150
+ ] }),
151
+ /* @__PURE__ */ e("div", { className: "location-text", children: x })
152
+ ] }),
153
+ k === !0 && /* @__PURE__ */ e(j, {})
154
+ ] })
155
+ );
156
+ }), F = c(({}, r) => /* @__PURE__ */ t(h, { className: "product-card", children: [
157
+ /* @__PURE__ */ e("img", { className: "skeleton-img" }),
158
+ /* @__PURE__ */ t("div", { className: "wrapper-card-1", children: [
159
+ /* @__PURE__ */ e("div", { className: "skeleton-title" }),
160
+ /* @__PURE__ */ e("div", { className: "skeleton-tags" })
161
+ ] }),
162
+ /* @__PURE__ */ t("div", { className: "wrapper-card-1", children: [
163
+ /* @__PURE__ */ e("div", { className: "skeleton-price" }),
164
+ /* @__PURE__ */ e("div", { className: "skeleton-sponsored" })
165
+ ] })
166
+ ] })), T = ({ limit: r = 5, isLoading: i = !1, keyPrefix: o }) => /* @__PURE__ */ e(p, { children: Array.from({ length: r }, (n, a) => /* @__PURE__ */ e(
167
+ F,
168
+ {
169
+ isLoading: i
170
+ },
171
+ `${o}-skeleton-product-card-${a}`
172
+ )) }), R = ({
173
+ children: r,
174
+ fallbackComponent: i = /* @__PURE__ */ e(p, {}),
175
+ isLoading: o = !1,
176
+ limit: n,
177
+ keyPrefix: a
178
+ }) => /* @__PURE__ */ e($, { fallbackComponent: i, children: o === !0 ? /* @__PURE__ */ e(
179
+ T,
180
+ {
181
+ isLoading: o,
182
+ limit: n,
183
+ keyPrefix: a
184
+ }
185
+ ) : r });
186
+ export {
187
+ M as D,
188
+ R as S
189
+ };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),s=require("react"),c=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),w=require("./consts-CtNoHdBj.cjs"),r=require("./utils-NZLCh-J5.cjs"),b=c.newStyled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),o=require("react"),r=require("./utils-NZLCh-J5.cjs"),l=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),k=require("./consts-CtNoHdBj.cjs"),m=l.newStyled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 0.5rem;
@@ -83,7 +83,7 @@
83
83
  height: 1rem;
84
84
  }
85
85
 
86
- @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
86
+ @media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
87
87
  & img {
88
88
  width: 8.875rem;
89
89
  height: 8.875rem;
@@ -99,7 +99,7 @@
99
99
  font-weight: 600;
100
100
  }
101
101
  }
102
- `,j=c.newStyled.div`
102
+ `,v=l.newStyled.div`
103
103
  display: flex;
104
104
  align-items: center;
105
105
  gap: 0.25rem;
@@ -111,4 +111,4 @@
111
111
  font-size: 1rem;
112
112
  color: var(--warning-500, #F59E0B);
113
113
  }
114
- `,v=s.forwardRef(({sponsoredText:i="Sponsored"},t)=>e.jsxs(j,{ref:t,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:i})]})),y=s.forwardRef((i,t)=>{const{uuid:k,title:d,price:n,currency:o,isNegotiable:l,isFree:m,image:g,sellerUuid:$,location:p,isSponsored:h,imageComponent:a,onSelectCard:u=()=>{},freeText:x="Free",negotiableText:f="Negotiable"}=i;return e.jsxs(b,{className:"product-card",onClick:u,children:[r.isDefined(a)?a:e.jsx("img",{src:g}),e.jsx("div",{className:"wrapper-card-1",children:e.jsx("div",{className:"card-title",children:d})}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:"price-text",children:[n&&o&&`${r.formatPrice(n)} ${r.GetCurrencySymbol(o)}`,l&&{negotiableText:f},m&&{freeText:x}]}),e.jsx("div",{className:"location-text",children:p})]}),h===!0&&e.jsx(v,{})]})});exports.DetailedProductCard=y;
114
+ `,N=o.forwardRef(({sponsoredText:t="Sponsored"},i)=>e.jsxs(v,{ref:i,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:t})]})),b=o.forwardRef((t,i)=>{const{uuid:a,title:n,price:s,currency:c,isNegotiable:p,isFree:g,image:h,sellerUuid:C,location:u,isSponsored:x,imageComponent:d,onSelectCard:f=()=>{},freeText:w="Free",negotiableText:j="Negotiable"}=t;return e.jsxs(m,{className:"product-card",onClick:f,children:[r.isDefined(d)?d:e.jsx("img",{src:h}),e.jsx("div",{className:"wrapper-card-1",children:e.jsx("div",{className:"card-title",children:n})}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:"price-text",children:[s&&c&&`${r.formatPrice(s)} ${r.GetCurrencySymbol(c)}`,p&&{negotiableText:j},g&&{freeText:w}]}),e.jsx("div",{className:"location-text",children:u})]}),x===!0&&e.jsx(N,{})]})}),y=o.forwardRef(({},t)=>e.jsxs(m,{className:"product-card",children:[e.jsx("img",{className:"skeleton-img"}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"skeleton-title"}),e.jsx("div",{className:"skeleton-tags"})]}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"skeleton-price"}),e.jsx("div",{className:"skeleton-sponsored"})]})]})),S=({limit:t=5,isLoading:i=!1,keyPrefix:a})=>e.jsx(e.Fragment,{children:Array.from({length:t},(n,s)=>e.jsx(y,{isLoading:i},`${a}-skeleton-product-card-${s}`))}),$=({children:t,fallbackComponent:i=e.jsx(e.Fragment,{}),isLoading:a=!1,limit:n,keyPrefix:s})=>e.jsx(o.Suspense,{fallbackComponent:i,children:a===!0?e.jsx(S,{isLoading:a,limit:n,keyPrefix:s}):t});exports.DetailedProductCard=b;exports.SuspenseDetailedProductCard=$;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.37",
3
+ "version": "4.0.39",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -139,7 +139,7 @@
139
139
  "./FieldOfInterestsWithAvatarsCardsSection": "./dist/FieldOfInterestsWithAvatarsCardsSection.js",
140
140
  "./FieldOfInterestsWithTagsCardsSection": "./dist/FieldOfInterestsWithTagsCardsSection.js",
141
141
  "./GeneralWithTagsCardsSection": "./dist/GeneralWithTagsCardsSection.js",
142
- "./QuizSection": "./dist/QuizSection.jsx",
142
+ "./QuizSection": "./dist/QuizSection.js",
143
143
  "./OverlayGeneralCardsSection": "./dist/OverlayGeneralCardsSection.js",
144
144
  "./ShopCardsSection": "./dist/ShopCardsSection.js",
145
145
  "./LocationSearchSection": "./dist/LocationSearchSection.js",
@@ -1,159 +0,0 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as s } from "react";
3
- import { n as l } from "./emotion-styled.browser.esm-CjCaF13H.js";
4
- import { M as v } from "./consts-C1uHV4xc.js";
5
- import { t as k, o as d, m as r, l as y, n as $, G as N } from "./utils-DtRLzzTZ.js";
6
- const S = l.div`
7
- display: flex;
8
- flex-direction: column;
9
- gap: 0.5rem;
10
- cursor: pointer;
11
-
12
- & .wrapper-card-1 {
13
- display: flex;
14
- flex-direction: column;
15
- gap: 0.38rem;
16
- }
17
-
18
- & .wrapper-card-2 {
19
- display: flex;
20
- flex-direction: column;
21
- gap: 0;
22
- }
23
-
24
- & img {
25
- width: 100%;
26
- aspect-ratio: 1 / 1; /* defining the aspect ratio of the image */
27
- object-fit: cover; /* making sure the image isn't distorted */
28
- border-radius: 0.75rem;
29
- }
30
-
31
- & .card-title {
32
- font-size: 0.875rem;
33
- font-weight: 600;
34
- ${k(2)}
35
- }
36
-
37
- & .price-text {
38
- font-size: 1rem;
39
- font-weight: 600;
40
- ${d()}
41
- }
42
-
43
- & .location-text {
44
- font-size: 0.75rem;
45
- font-weight: 400;
46
- color: var(--gray-600, #676e79);
47
- ${d()}
48
- }
49
-
50
- & .tags-wrapper {
51
- display: flex;
52
- gap: 0.5rem;
53
- }
54
-
55
- &:hover {
56
- & .card-title {
57
- color: var(--primary-500, #f59e0b);
58
- }
59
- }
60
-
61
- & .skeleton-img {
62
- background-color: ${r("-90deg")};
63
- border-radius: 0.75rem;
64
- border: 1px solid white;
65
- }
66
-
67
- & .skeleton-title {
68
- background-color: ${r("-90deg")};
69
- width: 100%;
70
- height: 2.5rem;
71
- }
72
-
73
- & .skeleton-tags {
74
- background-color: ${r("-90deg")};
75
- width: 80%;
76
- height: 1.5rem;
77
- }
78
-
79
- & .skeleton-price {
80
- background-color: ${r("-90deg")};
81
- width: 50%;
82
- height: 2.5rem;
83
- }
84
-
85
- & .skeleton-sponsored {
86
- background-color: ${r("-90deg")};
87
- width: 50%;
88
- height: 1rem;
89
- }
90
-
91
- @media (max-width: ${v + "px"}) {
92
- & img {
93
- width: 8.875rem;
94
- height: 8.875rem;
95
- min-width: 8.875rem;
96
- min-height: 8.875rem;
97
- min-width: 8.875rem;
98
- min-height: 8.875rem;
99
- object-fit: cover;
100
- }
101
-
102
- & .price-text {
103
- font-size: 0.875rem;
104
- font-weight: 600;
105
- }
106
- }
107
- `, z = l.div`
108
- display: flex;
109
- align-items: center;
110
- gap: 0.25rem;
111
- color: var(--gray-500);
112
- font-size: 0.75rem;
113
- font-weight: 500;
114
-
115
- & i {
116
- font-size: 1rem;
117
- color: var(--warning-500, #F59E0B);
118
- }
119
- `, C = s(({ sponsoredText: t = "Sponsored" }, o) => /* @__PURE__ */ i(z, { ref: o, className: "sponsored-line", children: [
120
- /* @__PURE__ */ e("i", { className: "mng-lnc-paw2" }),
121
- /* @__PURE__ */ e("span", { children: t })
122
- ] })), P = s((t, o) => {
123
- const {
124
- uuid: j,
125
- title: m,
126
- price: a,
127
- currency: n,
128
- isNegotiable: p,
129
- isFree: g,
130
- image: h,
131
- sellerUuid: T,
132
- location: f,
133
- isSponsored: w,
134
- imageComponent: c,
135
- onSelectCard: u = () => {
136
- },
137
- freeText: x = "Free",
138
- negotiableText: b = "Negotiable"
139
- } = t;
140
- return (
141
- // <LandingPageProductCardSkeleton />
142
- /* @__PURE__ */ i(S, { className: "product-card", onClick: u, children: [
143
- y(c) ? c : /* @__PURE__ */ e("img", { src: h }),
144
- /* @__PURE__ */ e("div", { className: "wrapper-card-1", children: /* @__PURE__ */ e("div", { className: "card-title", children: m }) }),
145
- /* @__PURE__ */ i("div", { className: "wrapper-card-2", children: [
146
- /* @__PURE__ */ i("div", { className: "price-text", children: [
147
- a && n && `${$(a)} ${N(n)}`,
148
- p && { negotiableText: b },
149
- g && { freeText: x }
150
- ] }),
151
- /* @__PURE__ */ e("div", { className: "location-text", children: f })
152
- ] }),
153
- w === !0 && /* @__PURE__ */ e(C, {})
154
- ] })
155
- );
156
- });
157
- export {
158
- P as D
159
- };