@lanaco/lnc-react-ui 4.0.208 → 4.0.210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BannerSectionCarousel.cjs +9 -9
- package/dist/BannerSectionCarousel.js +37 -35
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +1 -1
- package/dist/{index-CUaeb_TU.cjs → index-B1-PjbTA.cjs} +6 -2
- package/dist/{index-yARaIaLj.js → index-BEUk0FDk.js} +14 -10
- package/package.json +1 -1
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),d=require("react"),x=require("./index-DeS-oqJB.cjs"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("react"),x=require("./index-DeS-oqJB.cjs"),u=require("./style-BAcV7F53.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./breakpoints-CcVm-gVm.cjs"),v=require("./Button.cjs"),y=require("./useDetectMobile-DYV6V1yw.cjs"),w=require("./utils-CITgSxXe.cjs"),j=h.styled(u.SkeletonColumnWrapper)`
|
|
2
|
+
@media ${t.down("S")} {
|
|
3
|
+
& > div {
|
|
4
|
+
height: 100%;
|
|
5
|
+
aspect-ratio: 1 / 1;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
`,k=({keyPrefix:i})=>r.jsx(j,{noGradient:!0,children:r.jsx(u.SkeletonLinePlaceholder,{keyPrefix:`${i}-1`,height:"22.5rem"})}),S=({keyPrefix:i,isLoading:o=!1,fallbackComponent:n=r.jsx(r.Fragment,{}),children:a})=>r.jsx(d.Suspense,{fallbackComponent:n,children:o===!0?r.jsx(k,{keyPrefix:i}):a}),C=h.styled.div`
|
|
2
9
|
&:hover {
|
|
3
10
|
cursor: pointer;
|
|
4
11
|
|
|
@@ -189,11 +196,4 @@
|
|
|
189
196
|
}
|
|
190
197
|
}
|
|
191
198
|
}
|
|
192
|
-
`,
|
|
193
|
-
@media ${t.down("S")} {
|
|
194
|
-
& > div {
|
|
195
|
-
height: 100%;
|
|
196
|
-
aspect-ratio: 1 / 1;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
`,k=({keyPrefix:i})=>r.jsx(j,{noGradient:!0,children:r.jsx(m.SkeletonLinePlaceholder,{keyPrefix:`${i}-1`,height:"22.5rem"})}),S=({keyPrefix:i,isLoading:o=!1,fallbackComponent:a=r.jsx(r.Fragment,{}),children:n})=>r.jsx(d.Suspense,{fallbackComponent:a,children:o===!0?r.jsx(k,{keyPrefix:i}):n}),C=d.forwardRef(({items:i=[],isLoading:o=!1,deviceType:a,partialVisible:n=!0,fallbackComponent:h=r.jsx(r.Fragment,{}),onSelectItem:_=()=>{},onButtonAction:p=()=>{},carouselProps:g},f)=>{const b={desktop:{breakpoint:{max:3e3,min:t.screenSizes.M.max},items:1,partialVisibilityGutter:0},tablet:{breakpoint:{max:t.screenSizes.M.max,min:t.screenSizes.S.min},items:1,partialVisibilityGutter:0},mobile:{breakpoint:{max:t.screenSizes.XS.max,min:0},items:1,partialVisibilityGutter:64}},c=w.useDetectMobile();return r.jsx(y,{ref:f,children:r.jsx(S,{fallbackComponent:h,keyPrefix:"banner-carousel-skeleton",isLoading:o,children:r.jsx(x.Carousel,{responsive:b,deviceType:a,removeArrowOnDeviceType:["tablet","mobile"],infinite:!c,keyBoardControl:!0,autoPlay:!0,partialVisible:n,customTransition:"transform 500ms ease-in-out",sliderClass:"carousel-slider",itemClass:"carousel-item",containerClass:"carousel-container",rewind:!0,rewindWithAnimation:!0,...g,children:i==null?void 0:i.map((e,l)=>r.jsxs("div",{className:"section__card",onClick:()=>_(e),children:[r.jsx("img",{src:e==null?void 0:e.imageUrl,alt:`Slide ${l+1}`,className:"section__image"}),r.jsxs("div",{className:"card__content",children:[r.jsxs("div",{className:"card__text",children:[(e==null?void 0:e.title)&&r.jsx("div",{className:"card__title",children:e==null?void 0:e.title}),(e==null?void 0:e.title)&&r.jsx("div",{className:"card__description",children:e==null?void 0:e.description})]}),(e==null?void 0:e.buttonText)&&r.jsx(v,{text:e==null?void 0:e.buttonText,className:"card__action",size:"medium",onClick:s=>{s==null||s.stopPropagation(),p(e)}})]})]},`banner-section-carousel-item__${l+1}`))})})},`banner-section-carousel__${c}`)});module.exports=C;
|
|
199
|
+
`,q=d.forwardRef(({items:i=[],isLoading:o=!1,deviceType:n,partialVisible:a=!0,fallbackComponent:m=r.jsx(r.Fragment,{}),onSelectItem:_=()=>{},onButtonAction:g=()=>{},carouselProps:p},f)=>{const b={desktop:{breakpoint:{max:3e3,min:t.screenSizes.M.max},items:1,partialVisibilityGutter:0},tablet:{breakpoint:{max:t.screenSizes.M.max,min:t.screenSizes.S.min},items:1,partialVisibilityGutter:0},mobile:{breakpoint:{max:t.screenSizes.XS.max,min:0},items:1,partialVisibilityGutter:64}},c=y.useDetectMobile();return r.jsx(C,{ref:f,children:r.jsx(S,{fallbackComponent:m,keyPrefix:"banner-carousel-skeleton",isLoading:o,children:r.jsx(x.Carousel,{responsive:b,deviceType:n,removeArrowOnDeviceType:["tablet","mobile"],infinite:!c,keyBoardControl:!0,autoPlay:!0,partialVisible:a,customTransition:"transform 500ms ease-in-out",sliderClass:"carousel-slider",itemClass:"carousel-item",containerClass:"carousel-container",rewind:!0,rewindWithAnimation:!0,...p,children:i==null?void 0:i.map((e,l)=>r.jsxs("div",{className:"section__card",onClick:()=>_(e),children:[w.isDefined(e==null?void 0:e.imageComponent)?e==null?void 0:e.imageComponent:r.jsx("img",{src:e==null?void 0:e.imageUrl,alt:`Slide ${l+1}`,loading:"lazy",className:"section__image"}),r.jsxs("div",{className:"card__content",children:[r.jsxs("div",{className:"card__text",children:[(e==null?void 0:e.title)&&r.jsx("div",{className:"card__title",children:e==null?void 0:e.title}),(e==null?void 0:e.title)&&r.jsx("div",{className:"card__description",children:e==null?void 0:e.description})]}),(e==null?void 0:e.buttonText)&&r.jsx(v,{text:e==null?void 0:e.buttonText,className:"card__action",size:"medium",onClick:s=>{s==null||s.stopPropagation(),g(e)}})]})]},`banner-section-carousel-item__${l+1}`))})})},`banner-section-carousel__${c}`)});module.exports=q;
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import { jsx as r, Fragment as u, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense as v, forwardRef as y } from "react";
|
|
3
3
|
import { C as w } from "./index-BppfjY8h.js";
|
|
4
|
-
import k from "./
|
|
5
|
-
import { u as C } from "./useDetectMobile-CcVo3PNi.js";
|
|
6
|
-
import { d as a, s as i } from "./breakpoints-ff0SIcV3.js";
|
|
4
|
+
import { b as k, a as C } from "./style-BwQ4djFC.js";
|
|
7
5
|
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
|
-
import {
|
|
9
|
-
|
|
6
|
+
import { d as o, s as i } from "./breakpoints-ff0SIcV3.js";
|
|
7
|
+
import S from "./Button.js";
|
|
8
|
+
import { u as j } from "./useDetectMobile-CcVo3PNi.js";
|
|
9
|
+
import { m as $ } from "./utils-B2fsQ6PS.js";
|
|
10
|
+
const N = h(k)`
|
|
11
|
+
@media ${o("S")} {
|
|
12
|
+
& > div {
|
|
13
|
+
height: 100%;
|
|
14
|
+
aspect-ratio: 1 / 1;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
`, z = ({ keyPrefix: t }) => /* @__PURE__ */ r(N, { noGradient: !0, children: /* @__PURE__ */ r(C, { keyPrefix: `${t}-1`, height: "22.5rem" }) }), B = ({
|
|
18
|
+
keyPrefix: t,
|
|
19
|
+
isLoading: a = !1,
|
|
20
|
+
fallbackComponent: n = /* @__PURE__ */ r(u, {}),
|
|
21
|
+
children: s
|
|
22
|
+
}) => /* @__PURE__ */ r(v, { fallbackComponent: n, children: a === !0 ? /* @__PURE__ */ r(z, { keyPrefix: t }) : s }), M = h.div`
|
|
10
23
|
&:hover {
|
|
11
24
|
cursor: pointer;
|
|
12
25
|
|
|
@@ -124,7 +137,7 @@ const $ = h.div`
|
|
|
124
137
|
right: 1rem;
|
|
125
138
|
}
|
|
126
139
|
|
|
127
|
-
@media ${
|
|
140
|
+
@media ${o("M")} {
|
|
128
141
|
& .carousel-item .section__card,
|
|
129
142
|
& .carousel-item:not(.react-multi-carousel-item--active) .section__card {
|
|
130
143
|
height: 100%;
|
|
@@ -136,14 +149,14 @@ const $ = h.div`
|
|
|
136
149
|
}
|
|
137
150
|
}
|
|
138
151
|
|
|
139
|
-
@media ${
|
|
152
|
+
@media ${o("S")} {
|
|
140
153
|
& .carousel-item .section__card .section__image {
|
|
141
154
|
object-fit: cover;
|
|
142
155
|
object-position: center;
|
|
143
156
|
}
|
|
144
157
|
}
|
|
145
158
|
|
|
146
|
-
@media ${
|
|
159
|
+
@media ${o("XS")} {
|
|
147
160
|
& .carousel-container {
|
|
148
161
|
min-height: 23.4375rem;
|
|
149
162
|
}
|
|
@@ -197,28 +210,16 @@ const $ = h.div`
|
|
|
197
210
|
}
|
|
198
211
|
}
|
|
199
212
|
}
|
|
200
|
-
`,
|
|
201
|
-
@media ${a("S")} {
|
|
202
|
-
& > div {
|
|
203
|
-
height: 100%;
|
|
204
|
-
aspect-ratio: 1 / 1;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
`, z = ({ keyPrefix: t }) => /* @__PURE__ */ r(N, { noGradient: !0, children: /* @__PURE__ */ r(j, { keyPrefix: `${t}-1`, height: "22.5rem" }) }), B = ({
|
|
208
|
-
keyPrefix: t,
|
|
209
|
-
isLoading: o = !1,
|
|
210
|
-
fallbackComponent: n = /* @__PURE__ */ r(u, {}),
|
|
211
|
-
children: c
|
|
212
|
-
}) => /* @__PURE__ */ r(v, { fallbackComponent: n, children: o === !0 ? /* @__PURE__ */ r(z, { keyPrefix: t }) : c }), W = y(
|
|
213
|
+
`, F = y(
|
|
213
214
|
({
|
|
214
215
|
items: t = [],
|
|
215
|
-
isLoading:
|
|
216
|
+
isLoading: a = !1,
|
|
216
217
|
deviceType: n,
|
|
217
|
-
partialVisible:
|
|
218
|
+
partialVisible: s = !0,
|
|
218
219
|
fallbackComponent: p = /* @__PURE__ */ r(u, {}),
|
|
219
|
-
onSelectItem:
|
|
220
|
+
onSelectItem: f = () => {
|
|
220
221
|
},
|
|
221
|
-
onButtonAction:
|
|
222
|
+
onButtonAction: _ = () => {
|
|
222
223
|
},
|
|
223
224
|
carouselProps: g
|
|
224
225
|
}, b) => {
|
|
@@ -238,13 +239,13 @@ const $ = h.div`
|
|
|
238
239
|
items: 1,
|
|
239
240
|
partialVisibilityGutter: 64
|
|
240
241
|
}
|
|
241
|
-
}, d =
|
|
242
|
-
return /* @__PURE__ */ r(
|
|
242
|
+
}, d = j();
|
|
243
|
+
return /* @__PURE__ */ r(M, { ref: b, children: /* @__PURE__ */ r(
|
|
243
244
|
B,
|
|
244
245
|
{
|
|
245
246
|
fallbackComponent: p,
|
|
246
247
|
keyPrefix: "banner-carousel-skeleton",
|
|
247
|
-
isLoading:
|
|
248
|
+
isLoading: a,
|
|
248
249
|
children: /* @__PURE__ */ r(
|
|
249
250
|
w,
|
|
250
251
|
{
|
|
@@ -254,7 +255,7 @@ const $ = h.div`
|
|
|
254
255
|
infinite: !d,
|
|
255
256
|
keyBoardControl: !0,
|
|
256
257
|
autoPlay: !0,
|
|
257
|
-
partialVisible:
|
|
258
|
+
partialVisible: s,
|
|
258
259
|
customTransition: "transform 500ms ease-in-out",
|
|
259
260
|
sliderClass: "carousel-slider",
|
|
260
261
|
itemClass: "carousel-item",
|
|
@@ -266,13 +267,14 @@ const $ = h.div`
|
|
|
266
267
|
"div",
|
|
267
268
|
{
|
|
268
269
|
className: "section__card",
|
|
269
|
-
onClick: () =>
|
|
270
|
+
onClick: () => f(e),
|
|
270
271
|
children: [
|
|
271
|
-
/* @__PURE__ */ r(
|
|
272
|
+
$(e == null ? void 0 : e.imageComponent) ? e == null ? void 0 : e.imageComponent : /* @__PURE__ */ r(
|
|
272
273
|
"img",
|
|
273
274
|
{
|
|
274
275
|
src: e == null ? void 0 : e.imageUrl,
|
|
275
276
|
alt: `Slide ${m + 1}`,
|
|
277
|
+
loading: "lazy",
|
|
276
278
|
className: "section__image"
|
|
277
279
|
}
|
|
278
280
|
),
|
|
@@ -282,13 +284,13 @@ const $ = h.div`
|
|
|
282
284
|
(e == null ? void 0 : e.title) && /* @__PURE__ */ r("div", { className: "card__description", children: e == null ? void 0 : e.description })
|
|
283
285
|
] }),
|
|
284
286
|
(e == null ? void 0 : e.buttonText) && /* @__PURE__ */ r(
|
|
285
|
-
|
|
287
|
+
S,
|
|
286
288
|
{
|
|
287
289
|
text: e == null ? void 0 : e.buttonText,
|
|
288
290
|
className: "card__action",
|
|
289
291
|
size: "medium",
|
|
290
|
-
onClick: (
|
|
291
|
-
|
|
292
|
+
onClick: (c) => {
|
|
293
|
+
c == null || c.stopPropagation(), _(e);
|
|
292
294
|
}
|
|
293
295
|
}
|
|
294
296
|
)
|
|
@@ -304,5 +306,5 @@ const $ = h.div`
|
|
|
304
306
|
}
|
|
305
307
|
);
|
|
306
308
|
export {
|
|
307
|
-
|
|
309
|
+
F as default
|
|
308
310
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),o=require("react"),q=require("./useDetectMobile-DYV6V1yw.cjs"),_=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),o=require("react"),q=require("./useDetectMobile-DYV6V1yw.cjs"),_=require("./index-B1-PjbTA.cjs"),f=require("./Button.cjs"),j=require("./style-AYc9hnFj.cjs"),w=o.memo(_.ShopCard),M=o.forwardRef(({buttonText:u,buttonLink:a,items:r,onButtonAction:c=()=>{},onSelectCard:s=()=>{},isLoading:v=!1,limit:R=4,getImage:n=()=>{},isHighlight:l=!1,componentName:d},p)=>{const h=q.useDetectMobile(),m=o.useMemo(()=>{var t;return(t=r==null?void 0:r.slice(0,4))==null?void 0:t.map((e,g)=>i.jsx(w,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:(C,b)=>s==null?void 0:s(e==null?void 0:e.uuid,b),image:n(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0,metadata:{name:d,accessor:e==null?void 0:e.accessor}},`shop-card__${g+1}`))},[r]);return i.jsxs(j.Wrapper,{ref:p,className:l?"highlight":"",children:[i.jsx("div",{className:"wrapper__grid",children:m}),i.jsx(f,{text:u,borderRadius:"curved",btnType:h?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>c(a)})]})});module.exports=M;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { memo as b, forwardRef as _, useMemo as w } from "react";
|
|
3
3
|
import { u as v } from "./useDetectMobile-CcVo3PNi.js";
|
|
4
|
-
import { S as M } from "./index-
|
|
4
|
+
import { S as M } from "./index-BEUk0FDk.js";
|
|
5
5
|
import C from "./Button.js";
|
|
6
6
|
import { W as N } from "./style-Bq3rMbnN.js";
|
|
7
7
|
const S = b(M), L = _(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),g=require("react"),h=require("./Button.cjs"),$=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),g=require("react"),h=require("./Button.cjs"),$=require("./index-B1-PjbTA.cjs"),R=require("./utils-CITgSxXe.cjs"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./breakpoints-CcVm-gVm.cjs"),s=require("./style-BAcV7F53.cjs"),N=f.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
package/dist/ShopCardsSection.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, jsx as r, Fragment as N } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense as R, forwardRef as j } from "react";
|
|
3
3
|
import u from "./Button.js";
|
|
4
|
-
import { S as z } from "./index-
|
|
4
|
+
import { S as z } from "./index-BEUk0FDk.js";
|
|
5
5
|
import { l as M } from "./utils-B2fsQ6PS.js";
|
|
6
6
|
import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
7
|
import { d as m } from "./breakpoints-ff0SIcV3.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),x=require("./Icon.cjs"),o=require("./utils-CITgSxXe.cjs"),$=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./breakpoints-CcVm-gVm.cjs"),d=require("./ShopAvatar-CV3lj34D.cjs"),k=require("./index-DsINTjQk.cjs"),D=$.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
@@ -119,6 +119,10 @@
|
|
|
119
119
|
border-radius: 0 0 1.25rem 0;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
&:only-child {
|
|
123
|
+
border-radius: 0 0 1.25rem 1.25rem;
|
|
124
|
+
}
|
|
125
|
+
|
|
122
126
|
& .product__image {
|
|
123
127
|
width: 100%;
|
|
124
128
|
aspect-ratio: 1 / 1;
|
|
@@ -139,4 +143,4 @@
|
|
|
139
143
|
}
|
|
140
144
|
}
|
|
141
145
|
}
|
|
142
|
-
`,E=
|
|
146
|
+
`,E=l.forwardRef(({uuid:c,image:p,imageComponent:g,title:f,subtitle:w,badges:v,rating:y,reviewCount:m,products:t,onSelectCard:j=()=>{},getProductImage:b=()=>{},canAcceptPayments:N,hideProducts:u=!1,showRating:S=!0,metadata:i={},LinkComponent:_},I)=>{const q=_||"a",s=l.useRef(),h=l.useRef();return l.useEffect(()=>{var n;const e=a=>{a.target.src=d.DefaultShopImage,a.onerror=null};return(n=s==null?void 0:s.current)==null||n.addEventListener("error",e),()=>{var a;(a=s==null?void 0:s.current)==null||a.removeEventListener("error",e)}},[]),r.jsxs(D,{ref:h,name:i==null?void 0:i.name,"data-accessor":i==null?void 0:i.accessor,onClick:e=>j(e,h),as:q,..._?{to:`/shop/${c}`}:{href:`/shop/${c}`},children:[r.jsxs("div",{className:"wrapper__content",children:[o.isDefined(g)?g:p?r.jsx("img",{ref:s,src:p,className:"wrapper__image"}):r.jsx("img",{src:d.DefaultShopImage,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__info",children:[r.jsxs("div",{className:"wrapper__title",children:[f," ",N&&r.jsx(x,{color:"secondary",icon:"credit-card",className:"card"})]}),r.jsx("div",{className:"wrapper__subtitle",children:w}),v&&r.jsx("div",{className:"wrapper__badges"}),S&&r.jsxs("div",{className:"wrapper__rating",children:[r.jsx("div",{className:"wrapper_stars",children:[...Array(5).keys()].map((e,n)=>r.jsx(x,{icon:" mng-lnc-star--filled",className:`wrapper__star ${e>=y?"gold-star":""}`},`shop-card-rating-star__${n+1}`))}),r.jsxs("div",{className:"wrapper__review-count",children:["(",m==null?void 0:m.toLocaleString(),")"]})]})]})]}),u!==!0&&r.jsx("div",{className:"wrapper__products",children:t&&(t==null?void 0:t.map((e,n)=>r.jsx(l.Fragment,{children:r.jsx("div",{className:"wrapper__product",onClick:()=>{var a;return(a=e==null?void 0:e.onSelectProduct)==null?void 0:a.call(e,e==null?void 0:e.uuid)},children:o.isDefined(e==null?void 0:e.imageComponent)?e==null?void 0:e.imageComponent:r.jsx(k.ProductImageWrapper,{src:b(e==null?void 0:e.image,e==null?void 0:e.uuid,c),className:"product__image"})})},n)))})]})});exports.ShopCard=E;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as D, useRef as
|
|
3
|
-
import
|
|
4
|
-
import { n as
|
|
2
|
+
import { forwardRef as D, useRef as h, useEffect as L, Fragment as P } from "react";
|
|
3
|
+
import f from "./Icon.js";
|
|
4
|
+
import { n as d, m as w } from "./utils-B2fsQ6PS.js";
|
|
5
5
|
import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
6
|
import { d as W } from "./breakpoints-ff0SIcV3.js";
|
|
7
7
|
import { D as x } from "./ShopAvatar-4-fCYGEc.js";
|
|
@@ -61,7 +61,7 @@ const C = I.a`
|
|
|
61
61
|
font-weight: 500;
|
|
62
62
|
line-height: 1.5rem;
|
|
63
63
|
letter-spacing: -0.0112rem;
|
|
64
|
-
${
|
|
64
|
+
${d(2)}
|
|
65
65
|
text-align: center;
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -73,7 +73,7 @@ const C = I.a`
|
|
|
73
73
|
font-weight: 400;
|
|
74
74
|
line-height: 1.25rem;
|
|
75
75
|
letter-spacing: -0.0056rem;
|
|
76
|
-
${
|
|
76
|
+
${d(2)}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
& .wrapper__badges {
|
|
@@ -127,6 +127,10 @@ const C = I.a`
|
|
|
127
127
|
border-radius: 0 0 1.25rem 0;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
&:only-child {
|
|
131
|
+
border-radius: 0 0 1.25rem 1.25rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
130
134
|
& .product__image {
|
|
131
135
|
width: 100%;
|
|
132
136
|
aspect-ratio: 1 / 1;
|
|
@@ -168,7 +172,7 @@ const C = I.a`
|
|
|
168
172
|
metadata: s = {},
|
|
169
173
|
LinkComponent: g
|
|
170
174
|
}, F) => {
|
|
171
|
-
const z = g || "a", i =
|
|
175
|
+
const z = g || "a", i = h(), _ = h();
|
|
172
176
|
return L(() => {
|
|
173
177
|
var n;
|
|
174
178
|
const e = (a) => {
|
|
@@ -193,18 +197,18 @@ const C = I.a`
|
|
|
193
197
|
},
|
|
194
198
|
children: [
|
|
195
199
|
/* @__PURE__ */ l("div", { className: "wrapper__content", children: [
|
|
196
|
-
|
|
200
|
+
w(p) ? p : c ? /* @__PURE__ */ r("img", { ref: i, src: c, className: "wrapper__image" }) : /* @__PURE__ */ r("img", { src: x, className: "wrapper__image" }),
|
|
197
201
|
/* @__PURE__ */ l("div", { className: "wrapper__info", children: [
|
|
198
202
|
/* @__PURE__ */ l("div", { className: "wrapper__title", children: [
|
|
199
203
|
v,
|
|
200
204
|
" ",
|
|
201
|
-
j && /* @__PURE__ */ r(
|
|
205
|
+
j && /* @__PURE__ */ r(f, { color: "secondary", icon: "credit-card", className: "card" })
|
|
202
206
|
] }),
|
|
203
207
|
/* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: y }),
|
|
204
208
|
b && /* @__PURE__ */ r("div", { className: "wrapper__badges" }),
|
|
205
209
|
k && /* @__PURE__ */ l("div", { className: "wrapper__rating", children: [
|
|
206
210
|
/* @__PURE__ */ r("div", { className: "wrapper_stars", children: [...Array(5).keys()].map((e, n) => /* @__PURE__ */ r(
|
|
207
|
-
|
|
211
|
+
f,
|
|
208
212
|
{
|
|
209
213
|
icon: " mng-lnc-star--filled",
|
|
210
214
|
className: `wrapper__star ${e >= N ? "gold-star" : ""}`
|
|
@@ -227,7 +231,7 @@ const C = I.a`
|
|
|
227
231
|
var a;
|
|
228
232
|
return (a = e == null ? void 0 : e.onSelectProduct) == null ? void 0 : a.call(e, e == null ? void 0 : e.uuid);
|
|
229
233
|
},
|
|
230
|
-
children:
|
|
234
|
+
children: w(e == null ? void 0 : e.imageComponent) ? e == null ? void 0 : e.imageComponent : /* @__PURE__ */ r(
|
|
231
235
|
A,
|
|
232
236
|
{
|
|
233
237
|
src: S(
|