@lanaco/lnc-react-ui 4.0.218 → 4.0.220

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.
@@ -79,7 +79,7 @@
79
79
  }
80
80
  }
81
81
  }
82
- `,fe=x.forwardRef(({perPageOptions:o=[{code:10,name:"Show 10 items"},{code:25,name:"Show 25 items"},{code:50,name:"Show 50 items"}],perPage:u,handlePerPage:g=()=>{},page:a=1,handlePage:l=()=>{},totalPage:t},_)=>{var d,b;const f=()=>{a>1&&(l==null||l(a-1))},p=()=>{a<t&&(l==null||l(a+1))},h=(()=>{const r=[];if(t<=7)for(let i=1;i<=t;i++)r.push(i);else a<=3?r.push(1,2,3,"...",t):a>=t-2?r.push(1,"...",t-2,t-1,t):r.push(1,2,3,"...",t);return r==null?void 0:r.map((i,v)=>i==="..."?e.jsx("div",{className:"pagination__page ellipsis",children:i},`pagination-ellipsis__${v}`):e.jsx("div",{onClick:()=>l(i),className:`pagination__page ${a===i?"active":""}`,children:i},`pagination-page__${v}`))})();return e.jsxs(ue,{className:"pagination",children:[e.jsx(V,{color:"neutral",control:((d=o==null?void 0:o.find(r=>(r==null?void 0:r.code)===u))==null?void 0:d.name)||((b=o[0])==null?void 0:b.name),placement:"bottom",zIndex:1001,className:"pagination__per-page",children:o==null?void 0:o.map((r,i)=>e.jsx(W,{active:(r==null?void 0:r.code)===(u==null?void 0:u.code),className:"sort-by__item",onClick:()=>g(r),children:r==null?void 0:r.name},`blog-epxlore-section-per-page-option__${i+1}`))}),(h==null?void 0:h.length)>0&&e.jsxs("div",{className:"pagination__pages",children:[e.jsx("div",{className:`pagination__page ${a===1?"disabled":""}`,onClick:f,children:e.jsx(S,{icon:" mng-lnc-chevron--left"})}),h,e.jsx("div",{className:`pagination__page ${a===t?"disabled":""}`,onClick:p,children:e.jsx(S,{icon:" mng-lnc-chevron--right"})})]})]})}),xe=F.styled.div`
82
+ `,fe=x.forwardRef(({perPageOptions:o=[{code:10,name:"Show 10 items"},{code:25,name:"Show 25 items"},{code:50,name:"Show 50 items"}],perPage:u,handlePerPage:g=()=>{},page:a=1,handlePage:l=()=>{},totalPage:t},_)=>{var d,b;const f=()=>{a>1&&(l==null||l(a-1))},p=()=>{a<t&&(l==null||l(a+1))},h=(()=>{const r=[];if(t<=7)for(let i=1;i<=t;i++)r.push(i);else a<=3?r.push(1,2,3,"...",t):a>=t-2?r.push(1,"...",t-2,t-1,t):r.push(1,2,3,"...",t);return r==null?void 0:r.map((i,v)=>i==="..."?e.jsx("div",{className:"pagination__page ellipsis",children:i},`pagination-ellipsis__${v}`):e.jsx("div",{onClick:()=>l(i),className:`pagination__page ${a===i?"active":""}`,children:i},`pagination-page__${v}`))})();return e.jsxs(ue,{className:"pagination",children:[e.jsx(V,{color:"neutral",control:((d=o==null?void 0:o.find(r=>(r==null?void 0:r.code)===u))==null?void 0:d.name)||((b=o[0])==null?void 0:b.name),placement:"bottom",zIndex:1001,className:"pagination__per-page",children:o==null?void 0:o.map((r,i)=>e.jsx(W,{active:(r==null?void 0:r.code)===(u==null?void 0:u.code),className:"sort-by__item",onClick:()=>g(r),children:r==null?void 0:r.name},`blog-epxlore-section-per-page-option__${i+1}`))}),(h==null?void 0:h.length)>1&&e.jsxs("div",{className:"pagination__pages",children:[e.jsx("div",{className:`pagination__page ${a===1?"disabled":""}`,onClick:f,children:e.jsx(S,{icon:" mng-lnc-chevron--left"})}),h,e.jsx("div",{className:`pagination__page ${a===t?"disabled":""}`,onClick:p,children:e.jsx(S,{icon:" mng-lnc-chevron--right"})})]})]})}),xe=F.styled.div`
83
83
  display: flex;
84
84
  align-items: flex-start;
85
85
  gap: 2rem;
@@ -160,7 +160,7 @@ const be = E.div`
160
160
  ))
161
161
  }
162
162
  ),
163
- (f == null ? void 0 : f.length) > 0 && /* @__PURE__ */ a("div", { className: "pagination__pages", children: [
163
+ (f == null ? void 0 : f.length) > 1 && /* @__PURE__ */ a("div", { className: "pagination__pages", children: [
164
164
  /* @__PURE__ */ n(
165
165
  "div",
166
166
  {
@@ -1,8 +1,8 @@
1
- "use strict";const e=require("react/jsx-runtime"),a=require("react"),P=require("./Icon.cjs"),R=require("./IconButton.cjs"),d=require("./utils-CITgSxXe.cjs"),N=require("./index-DsINTjQk.cjs"),q=require("./style-DC05rdyx.cjs"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),W=require("./breakpoints-CcVm-gVm.cjs"),t=require("./style-BAcV7F53.cjs"),B=v.styled.a`
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("react"),W=require("./Icon.cjs"),f=require("./IconButton.cjs"),d=require("./utils-CITgSxXe.cjs"),G=require("./index-DsINTjQk.cjs"),I=require("./style-DC05rdyx.cjs"),R=require("./emotion-styled.browser.esm-BtEseadx.cjs"),$=require("./breakpoints-CcVm-gVm.cjs"),n=require("./style-BAcV7F53.cjs"),T=R.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  display: flex;
5
- padding: 1rem;
5
+ padding: 1rem 0 1rem 1rem;
6
6
  align-items: center;
7
7
  gap: 1.25rem;
8
8
  border-radius: 1.25rem;
@@ -13,6 +13,21 @@
13
13
  position: relative;
14
14
  width: 100%;
15
15
 
16
+ & .image-container {
17
+ position: relative;
18
+ display: inline-block;
19
+ }
20
+
21
+ .image-container .action {
22
+ position: absolute;
23
+ top: -0.5rem;
24
+ right: -0.5rem;
25
+
26
+ & .mobile-only {
27
+ display: none;
28
+ }
29
+ }
30
+
16
31
  & .mobile-only {
17
32
  display: none;
18
33
  }
@@ -67,10 +82,17 @@
67
82
  justify-content: space-between;
68
83
  align-items: center;
69
84
  width: 100%;
85
+ & .action {
86
+ align-self: flex-start;
87
+ & > button {
88
+ min-height: 1rem;
89
+ }
90
+ }
70
91
 
71
92
  & .info__content {
72
93
  display: flex;
73
94
  align-items: center;
95
+ padding-right: 1rem;
74
96
 
75
97
  &:first-of-type {
76
98
  flex-grow: 1;
@@ -95,7 +117,7 @@
95
117
  }
96
118
  }
97
119
 
98
- @media ${W.down("S")} {
120
+ @media ${$.down("S")} {
99
121
  flex-direction: column;
100
122
  padding: 0;
101
123
  background: transparent;
@@ -146,7 +168,7 @@
146
168
  }
147
169
  }
148
170
  }
149
- `,G=a.forwardRef(({blogUuid:i,title:l,imageUrl:c,options:o,publishedAt:h,timeToReadText:u="{0} min read",timeToRead:j=0,numberOfLikes:w=0,numberOfComments:f=0,isBookmarked:p=!1,onSelectCard:k=()=>{},onBookmark:_=()=>{},onShare:g=()=>{},bookmarkComponent:r=e.jsx(e.Fragment,{}),metadata:s,titleSlug:m,LinkComponent:S},b)=>{const $=S||"a",x=()=>d.isDefined(r)?a.cloneElement(r,{key:`bookmark_blog__${i}__${p}`,isBookmarked:p,blogUuid:i,onBookmark:(y,C)=>_(y,C),ref:b,componentName:"ExploreBlogSectionCard"}):e.jsx(e.Fragment,{}),L=a.useRef();return e.jsxs(B,{ref:L,name:s==null?void 0:s.name,"data-accessor":s==null?void 0:s.accessor,onClick:n=>k(n,L),className:"blog-card-item",as:$,...S?{to:`/blog/${m}`}:{href:`/blog/${m}`},children:[e.jsx(N.ProductImageWrapper,{src:c,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__content",children:[e.jsxs("div",{className:"wrapper__subcontent",children:[e.jsx("div",{className:"wrapper__title",children:l}),e.jsxs("div",{className:"wrapper__tags-action",children:[e.jsx("div",{className:"wrapper__tags",children:o&&(o==null?void 0:o.map((n,y)=>e.jsx(q.BlogTag,{color:n==null?void 0:n.color,children:n==null?void 0:n.name},`blog-card-sponsored-option__${y+1}`)))}),e.jsxs("div",{className:"info__content mobile-only",onClick:n=>{n.stopPropagation(),n.preventDefault()},children:[e.jsx(x,{}),e.jsx(R,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{g()}})]})]})]}),e.jsxs("div",{className:"wrapper__info",children:[e.jsxs("div",{className:"info__content",children:[e.jsx("div",{className:"info__text",children:`${d.formatLocaleDateString(h)} • ${d.formatString(u,j)}`}),e.jsxs("div",{className:"info__text",children:[e.jsxs("div",{children:[e.jsx(P,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),d.getRoundedNumber(w)]}),e.jsxs("div",{children:[e.jsx(P,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),d.getRoundedNumber(f)]})]})]}),e.jsxs("div",{className:"info__content desktop-only",onClick:n=>{n==null||n.preventDefault(),n==null||n.stopPropagation()},children:[e.jsx(x,{}),e.jsx(R,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{g()}})]})]})]})]})}),I=v.styled.div`
171
+ `,z=a.forwardRef(({blogUuid:i,title:l,imageUrl:c,options:o,publishedAt:m,timeToReadText:k="{0} min read",timeToRead:_=0,numberOfLikes:b=0,numberOfComments:S=0,isBookmarked:p=!1,onSelectCard:y=()=>{},onBookmark:v=()=>{},onShare:g=()=>{},bookmarkComponent:u=e.jsx(e.Fragment,{}),metadata:s,titleSlug:j,LinkComponent:r,hasShare:w=!0,hasDelete:h=!1,onDelete:x=()=>{}},P)=>{const q=r||"a",C=()=>d.isDefined(u)?a.cloneElement(u,{key:`bookmark_blog__${i}__${p}`,isBookmarked:p,blogUuid:i,onBookmark:(L,B)=>v(L,B),ref:P,componentName:"ExploreBlogSectionCard"}):e.jsx(e.Fragment,{}),N=a.useRef();return e.jsxs(T,{ref:N,name:s==null?void 0:s.name,"data-accessor":s==null?void 0:s.accessor,onClick:t=>y(t,N),className:"blog-card-item",as:q,...r?{to:`/blog/${j}`}:{href:`/blog/${j}`},children:[e.jsxs("div",{className:"image-container",children:[h&&e.jsx("div",{className:"action mobile-only",onClick:t=>{t==null||t.preventDefault(),t==null||t.stopPropagation()},children:e.jsx(f,{icon:" mng-lnc-close",borderRadius:"curved",type:"button",btnType:"filled",color:"neutral",size:"large",onClick:()=>{x()}})}),e.jsx(G.ProductImageWrapper,{src:c,className:"wrapper__image"})]}),e.jsxs("div",{className:"wrapper__content",children:[e.jsxs("div",{className:"wrapper__subcontent",children:[e.jsxs("div",{className:"wrapper__info",children:[e.jsx("div",{className:"wrapper__title",children:l}),h&&e.jsx("div",{className:"action desktop-only",onClick:t=>{t==null||t.preventDefault(),t==null||t.stopPropagation()},children:e.jsx(f,{icon:" mng-lnc-close",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{x()}})})]}),e.jsxs("div",{className:"wrapper__tags-action",children:[e.jsx("div",{className:"wrapper__tags",children:o&&(o==null?void 0:o.map((t,L)=>e.jsx(I.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},`blog-card-sponsored-option__${L+1}`)))}),e.jsxs("div",{className:"info__content mobile-only",onClick:t=>{t.stopPropagation(),t.preventDefault()},children:[e.jsx(C,{}),w&&e.jsx(f,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{g()}})]})]})]}),e.jsxs("div",{className:"wrapper__info",children:[e.jsxs("div",{className:"info__content",children:[e.jsx("div",{className:"info__text",children:`${d.formatLocaleDateString(m)} • ${d.formatString(k,_)}`}),e.jsxs("div",{className:"info__text",children:[e.jsxs("div",{children:[e.jsx(W,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),d.getRoundedNumber(b)]}),e.jsxs("div",{children:[e.jsx(W,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),d.getRoundedNumber(S)]})]})]}),e.jsxs("div",{className:"info__content desktop-only",onClick:t=>{t==null||t.preventDefault(),t==null||t.stopPropagation()},children:[e.jsx(C,{}),w&&e.jsx(f,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:()=>{g()}})]})]})]})]})}),D=R.styled.div`
150
172
  display: flex;
151
173
  flex-direction: column;
152
174
  align-items: flex-start;
@@ -170,10 +192,10 @@
170
192
  bottom: -1.25rem;
171
193
  }
172
194
  }
173
- `,z=v.styled(t.SkeletonColumnWrapper)`
174
- @media ${W.down("S")} {
195
+ `,F=R.styled(n.SkeletonColumnWrapper)`
196
+ @media ${$.down("S")} {
175
197
  & > div {
176
198
  flex-direction: column;
177
199
  }
178
200
  }
179
- `,T=({keyPrefix:i})=>e.jsxs(z,{children:[e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-1`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-2`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-3`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-4`),e.jsxs(t.SkeletonRowWrapper,{children:[e.jsx(t.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(t.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(t.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(t.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-5`)]}),D=({keyPrefix:i,isLoading:l=!1,fallbackComponent:c=e.jsx(e.Fragment,{}),children:o})=>e.jsx(a.Suspense,{fallbackComponent:c,children:l===!0?e.jsx(T,{keyPrefix:i}):o}),F=a.memo(G),O=a.forwardRef(({timeToReadText:i="{0} min read",items:l,isLoading:c=!1,onSelectCard:o=()=>{},onShare:h=()=>{},onBookmark:u=()=>{},getImage:j=()=>{},isSeparated:w=!0,bookmarkComponent:f=e.jsx(e.Fragment,{}),componentName:p,LinkComponent:k},_)=>{const g=a.useMemo(()=>l==null?void 0:l.map((r,s)=>{var m;return e.jsx(F,{blogUuid:r==null?void 0:r.uuid,title:r==null?void 0:r.title,titleSlug:r==null?void 0:r.titleSlug,options:r==null?void 0:r.options,publishedAt:r==null?void 0:r.publishedAt,timeToReadText:i,timeToRead:r==null?void 0:r.timeToRead,numberOfLikes:r==null?void 0:r.numberOfLikes,numberOfComments:r==null?void 0:r.numberOfComments,isSponsored:r==null?void 0:r.isSponsored,isBookmarked:r==null?void 0:r.isBookmarked,onSelectCard:(S,b)=>o==null?void 0:o(r,b),onShare:()=>h==null?void 0:h(r),onBookmark:u,imageUrl:j(r==null?void 0:r.imageUrl,r==null?void 0:r.uuid)||null,bookmarkComponent:f,metadata:{name:p,accessor:r==null?void 0:r.accessor},LinkComponent:k},`blog-card-item__${s+1}__${(m=r==null?void 0:r.isBookmarked)==null?void 0:m.toString()}`)}),[l]);return e.jsx(D,{isLoading:c,keyPrefix:"blog-list-skeleton",children:e.jsx(I,{ref:_,className:w?"separated":"",children:g})})});module.exports=O;
201
+ `,O=({keyPrefix:i})=>e.jsxs(F,{children:[e.jsxs(n.SkeletonRowWrapper,{children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(n.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-1`),e.jsxs(n.SkeletonRowWrapper,{children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(n.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-2`),e.jsxs(n.SkeletonRowWrapper,{children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(n.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-3`),e.jsxs(n.SkeletonRowWrapper,{children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(n.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-4`),e.jsxs(n.SkeletonRowWrapper,{children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"9.5rem",width:"17.75rem"}),e.jsxs(n.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem"}),e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"}),e.jsx(n.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]},`${i}-5`)]}),U=({keyPrefix:i,isLoading:l=!1,fallbackComponent:c=e.jsx(e.Fragment,{}),children:o})=>e.jsx(a.Suspense,{fallbackComponent:c,children:l===!0?e.jsx(O,{keyPrefix:i}):o}),A=a.memo(z),E=a.forwardRef(({timeToReadText:i="{0} min read",items:l,isLoading:c=!1,onSelectCard:o=()=>{},onShare:m=()=>{},onBookmark:k=()=>{},getImage:_=()=>{},isSeparated:b=!0,bookmarkComponent:S=e.jsx(e.Fragment,{}),componentName:p,LinkComponent:y,hasShare:v=!0,hasDelete:g=!1,onDelete:u=()=>{}},s)=>{const j=a.useMemo(()=>l==null?void 0:l.map((r,w)=>{var h;return e.jsx(A,{blogUuid:r==null?void 0:r.uuid,title:r==null?void 0:r.title,titleSlug:r==null?void 0:r.titleSlug,options:r==null?void 0:r.options,publishedAt:r==null?void 0:r.publishedAt,timeToReadText:i,timeToRead:r==null?void 0:r.timeToRead,numberOfLikes:r==null?void 0:r.numberOfLikes,numberOfComments:r==null?void 0:r.numberOfComments,isSponsored:r==null?void 0:r.isSponsored,isBookmarked:r==null?void 0:r.isBookmarked,onSelectCard:(x,P)=>o==null?void 0:o(r,P),hasShare:v,hasDelete:g,onDelete:u,onShare:()=>m==null?void 0:m(r),onBookmark:k,imageUrl:_(r==null?void 0:r.imageUrl,r==null?void 0:r.uuid)||null,bookmarkComponent:S,metadata:{name:p,accessor:r==null?void 0:r.accessor},LinkComponent:y},`blog-card-item__${w+1}__${(h=r==null?void 0:r.isBookmarked)==null?void 0:h.toString()}`)}),[l]);return e.jsx(U,{isLoading:c,keyPrefix:"blog-list-skeleton",children:e.jsx(D,{ref:s,className:b?"separated":"",children:j})})});module.exports=E;
@@ -1,18 +1,18 @@
1
- import { jsxs as t, jsx as e, Fragment as w } from "react/jsx-runtime";
2
- import { forwardRef as L, useRef as O, cloneElement as U, Suspense as P, memo as q, useMemo as A } from "react";
3
- import j from "./Icon.js";
4
- import I from "./IconButton.js";
5
- import { n as E, q as M, s as F, v as z, m as H } from "./utils-B2fsQ6PS.js";
6
- import { P as J } from "./index-BvMY2TbK.js";
7
- import { B as K } from "./style-BUyFad_y.js";
8
- import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
- import { d as T } from "./breakpoints-ff0SIcV3.js";
10
- import { b as s, S as l, c as g, a as i } from "./style-BwQ4djFC.js";
11
- const Q = S.a`
1
+ import { jsxs as t, jsx as e, Fragment as y } from "react/jsx-runtime";
2
+ import { forwardRef as W, useRef as q, cloneElement as A, Suspense as E, memo as M, useMemo as F } from "react";
3
+ import L from "./Icon.js";
4
+ import v from "./IconButton.js";
5
+ import { n as H, q as J, s as K, v as P, m as Q } from "./utils-B2fsQ6PS.js";
6
+ import { P as V } from "./index-BvMY2TbK.js";
7
+ import { B as X } from "./style-BUyFad_y.js";
8
+ import { s as T } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
+ import { d as D } from "./breakpoints-ff0SIcV3.js";
10
+ import { b as m, S as l, c as g, a as n } from "./style-BwQ4djFC.js";
11
+ const Y = T.a`
12
12
  text-decoration: none;
13
13
  color: var(--gray-950);
14
14
  display: flex;
15
- padding: 1rem;
15
+ padding: 1rem 0 1rem 1rem;
16
16
  align-items: center;
17
17
  gap: 1.25rem;
18
18
  border-radius: 1.25rem;
@@ -23,6 +23,21 @@ const Q = S.a`
23
23
  position: relative;
24
24
  width: 100%;
25
25
 
26
+ & .image-container {
27
+ position: relative;
28
+ display: inline-block;
29
+ }
30
+
31
+ .image-container .action {
32
+ position: absolute;
33
+ top: -0.5rem;
34
+ right: -0.5rem;
35
+
36
+ & .mobile-only {
37
+ display: none;
38
+ }
39
+ }
40
+
26
41
  & .mobile-only {
27
42
  display: none;
28
43
  }
@@ -62,7 +77,7 @@ const Q = S.a`
62
77
  font-weight: 600;
63
78
  line-height: 1.5rem;
64
79
  letter-spacing: 0.1px;
65
- ${E(3)}
80
+ ${H(3)}
66
81
  }
67
82
 
68
83
  & .wrapper__tags {
@@ -77,10 +92,17 @@ const Q = S.a`
77
92
  justify-content: space-between;
78
93
  align-items: center;
79
94
  width: 100%;
95
+ & .action {
96
+ align-self: flex-start;
97
+ & > button {
98
+ min-height: 1rem;
99
+ }
100
+ }
80
101
 
81
102
  & .info__content {
82
103
  display: flex;
83
104
  align-items: center;
105
+ padding-right: 1rem;
84
106
 
85
107
  &:first-of-type {
86
108
  flex-grow: 1;
@@ -105,7 +127,7 @@ const Q = S.a`
105
127
  }
106
128
  }
107
129
 
108
- @media ${T("S")} {
130
+ @media ${D("S")} {
109
131
  flex-direction: column;
110
132
  padding: 0;
111
133
  background: transparent;
@@ -156,72 +178,124 @@ const Q = S.a`
156
178
  }
157
179
  }
158
180
  }
159
- `, V = L(
181
+ `, Z = W(
160
182
  ({
161
183
  blogUuid: o,
162
- title: m,
184
+ title: s,
163
185
  imageUrl: c,
164
186
  options: a,
165
187
  publishedAt: h,
166
- timeToReadText: _ = "{0} min read",
167
- timeToRead: b = 0,
168
- numberOfLikes: v = 0,
169
- numberOfComments: y = 0,
188
+ timeToReadText: k = "{0} min read",
189
+ timeToRead: N = 0,
190
+ numberOfLikes: $ = 0,
191
+ numberOfComments: C = 0,
170
192
  isBookmarked: f = !1,
171
- onSelectCard: k = () => {
193
+ onSelectCard: B = () => {
172
194
  },
173
- onBookmark: $ = () => {
195
+ onBookmark: R = () => {
174
196
  },
175
197
  onShare: u = () => {
176
198
  },
177
- bookmarkComponent: r = /* @__PURE__ */ e(w, {}),
199
+ bookmarkComponent: w = /* @__PURE__ */ e(y, {}),
178
200
  metadata: d,
179
- titleSlug: p,
180
- LinkComponent: N
181
- }, B) => {
182
- const W = N || "a", G = () => H(r) ? U(r, {
201
+ titleSlug: _,
202
+ LinkComponent: r,
203
+ hasShare: b = !0,
204
+ hasDelete: p = !1,
205
+ onDelete: S = () => {
206
+ }
207
+ }, G) => {
208
+ const O = r || "a", z = () => Q(w) ? A(w, {
183
209
  key: `bookmark_blog__${o}__${f}`,
184
210
  isBookmarked: f,
185
211
  blogUuid: o,
186
- onBookmark: (C, D) => $(C, D),
187
- ref: B,
212
+ onBookmark: (j, U) => R(j, U),
213
+ ref: G,
188
214
  componentName: "ExploreBlogSectionCard"
189
- }) : /* @__PURE__ */ e(w, {}), R = O();
215
+ }) : /* @__PURE__ */ e(y, {}), I = q();
190
216
  return /* @__PURE__ */ t(
191
- Q,
217
+ Y,
192
218
  {
193
- ref: R,
219
+ ref: I,
194
220
  name: d == null ? void 0 : d.name,
195
221
  "data-accessor": d == null ? void 0 : d.accessor,
196
- onClick: (n) => k(n, R),
222
+ onClick: (i) => B(i, I),
197
223
  className: "blog-card-item",
198
- as: W,
199
- ...N ? { to: `/blog/${p}` } : { href: `/blog/${p}` },
224
+ as: O,
225
+ ...r ? { to: `/blog/${_}` } : { href: `/blog/${_}` },
200
226
  children: [
201
- /* @__PURE__ */ e(J, { src: c, className: "wrapper__image" }),
227
+ /* @__PURE__ */ t("div", { className: "image-container", children: [
228
+ p && /* @__PURE__ */ e(
229
+ "div",
230
+ {
231
+ className: "action mobile-only",
232
+ onClick: (i) => {
233
+ i == null || i.preventDefault(), i == null || i.stopPropagation();
234
+ },
235
+ children: /* @__PURE__ */ e(
236
+ v,
237
+ {
238
+ icon: " mng-lnc-close",
239
+ borderRadius: "curved",
240
+ type: "button",
241
+ btnType: "filled",
242
+ color: "neutral",
243
+ size: "large",
244
+ onClick: () => {
245
+ S();
246
+ }
247
+ }
248
+ )
249
+ }
250
+ ),
251
+ /* @__PURE__ */ e(V, { src: c, className: "wrapper__image" })
252
+ ] }),
202
253
  /* @__PURE__ */ t("div", { className: "wrapper__content", children: [
203
254
  /* @__PURE__ */ t("div", { className: "wrapper__subcontent", children: [
204
- /* @__PURE__ */ e("div", { className: "wrapper__title", children: m }),
255
+ /* @__PURE__ */ t("div", { className: "wrapper__info", children: [
256
+ /* @__PURE__ */ e("div", { className: "wrapper__title", children: s }),
257
+ p && /* @__PURE__ */ e(
258
+ "div",
259
+ {
260
+ className: "action desktop-only",
261
+ onClick: (i) => {
262
+ i == null || i.preventDefault(), i == null || i.stopPropagation();
263
+ },
264
+ children: /* @__PURE__ */ e(
265
+ v,
266
+ {
267
+ icon: " mng-lnc-close",
268
+ borderRadius: "curved",
269
+ btnType: "basic",
270
+ color: "neutral",
271
+ onClick: () => {
272
+ S();
273
+ }
274
+ }
275
+ )
276
+ }
277
+ )
278
+ ] }),
205
279
  /* @__PURE__ */ t("div", { className: "wrapper__tags-action", children: [
206
- /* @__PURE__ */ e("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((n, C) => /* @__PURE__ */ e(
207
- K,
280
+ /* @__PURE__ */ e("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((i, j) => /* @__PURE__ */ e(
281
+ X,
208
282
  {
209
- color: n == null ? void 0 : n.color,
210
- children: n == null ? void 0 : n.name
283
+ color: i == null ? void 0 : i.color,
284
+ children: i == null ? void 0 : i.name
211
285
  },
212
- `blog-card-sponsored-option__${C + 1}`
286
+ `blog-card-sponsored-option__${j + 1}`
213
287
  ))) }),
214
288
  /* @__PURE__ */ t(
215
289
  "div",
216
290
  {
217
291
  className: "info__content mobile-only",
218
- onClick: (n) => {
219
- n.stopPropagation(), n.preventDefault();
292
+ onClick: (i) => {
293
+ i.stopPropagation(), i.preventDefault();
220
294
  },
221
295
  children: [
222
- /* @__PURE__ */ e(G, {}),
223
- /* @__PURE__ */ e(
224
- I,
296
+ /* @__PURE__ */ e(z, {}),
297
+ b && /* @__PURE__ */ e(
298
+ v,
225
299
  {
226
300
  icon: " mng-lnc-share",
227
301
  borderRadius: "curved",
@@ -239,17 +313,17 @@ const Q = S.a`
239
313
  ] }),
240
314
  /* @__PURE__ */ t("div", { className: "wrapper__info", children: [
241
315
  /* @__PURE__ */ t("div", { className: "info__content", children: [
242
- /* @__PURE__ */ e("div", { className: "info__text", children: `${M(
316
+ /* @__PURE__ */ e("div", { className: "info__text", children: `${J(
243
317
  h
244
- )} • ${F(_, b)}` }),
318
+ )} • ${K(k, N)}` }),
245
319
  /* @__PURE__ */ t("div", { className: "info__text", children: [
246
320
  /* @__PURE__ */ t("div", { children: [
247
- /* @__PURE__ */ e(j, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
248
- z(v)
321
+ /* @__PURE__ */ e(L, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
322
+ P($)
249
323
  ] }),
250
324
  /* @__PURE__ */ t("div", { children: [
251
- /* @__PURE__ */ e(j, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
252
- z(y)
325
+ /* @__PURE__ */ e(L, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
326
+ P(C)
253
327
  ] })
254
328
  ] })
255
329
  ] }),
@@ -257,13 +331,13 @@ const Q = S.a`
257
331
  "div",
258
332
  {
259
333
  className: "info__content desktop-only",
260
- onClick: (n) => {
261
- n == null || n.preventDefault(), n == null || n.stopPropagation();
334
+ onClick: (i) => {
335
+ i == null || i.preventDefault(), i == null || i.stopPropagation();
262
336
  },
263
337
  children: [
264
- /* @__PURE__ */ e(G, {}),
265
- /* @__PURE__ */ e(
266
- I,
338
+ /* @__PURE__ */ e(z, {}),
339
+ b && /* @__PURE__ */ e(
340
+ v,
267
341
  {
268
342
  icon: " mng-lnc-share",
269
343
  borderRadius: "curved",
@@ -283,7 +357,7 @@ const Q = S.a`
283
357
  }
284
358
  );
285
359
  }
286
- ), X = S.div`
360
+ ), x = T.div`
287
361
  display: flex;
288
362
  flex-direction: column;
289
363
  align-items: flex-start;
@@ -307,100 +381,104 @@ const Q = S.a`
307
381
  bottom: -1.25rem;
308
382
  }
309
383
  }
310
- `, Y = S(s)`
311
- @media ${T("S")} {
384
+ `, ee = T(m)`
385
+ @media ${D("S")} {
312
386
  & > div {
313
387
  flex-direction: column;
314
388
  }
315
389
  }
316
- `, Z = ({ keyPrefix: o }) => /* @__PURE__ */ t(Y, { children: [
390
+ `, re = ({ keyPrefix: o }) => /* @__PURE__ */ t(ee, { children: [
317
391
  /* @__PURE__ */ t(l, { children: [
318
392
  /* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
319
- /* @__PURE__ */ t(s, { noGradient: !0, children: [
320
- /* @__PURE__ */ e(i, { height: "1.5rem" }),
393
+ /* @__PURE__ */ t(m, { noGradient: !0, children: [
394
+ /* @__PURE__ */ e(n, { height: "1.5rem" }),
321
395
  /* @__PURE__ */ t(l, { noGradient: !0, children: [
322
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
323
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
324
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
325
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" })
396
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
397
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
398
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
399
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" })
326
400
  ] })
327
401
  ] })
328
402
  ] }, `${o}-1`),
329
403
  /* @__PURE__ */ t(l, { children: [
330
404
  /* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
331
- /* @__PURE__ */ t(s, { noGradient: !0, children: [
332
- /* @__PURE__ */ e(i, { height: "1.5rem" }),
405
+ /* @__PURE__ */ t(m, { noGradient: !0, children: [
406
+ /* @__PURE__ */ e(n, { height: "1.5rem" }),
333
407
  /* @__PURE__ */ t(l, { noGradient: !0, children: [
334
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
335
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
336
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
337
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" })
408
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
409
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
410
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
411
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" })
338
412
  ] })
339
413
  ] })
340
414
  ] }, `${o}-2`),
341
415
  /* @__PURE__ */ t(l, { children: [
342
416
  /* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
343
- /* @__PURE__ */ t(s, { noGradient: !0, children: [
344
- /* @__PURE__ */ e(i, { height: "1.5rem" }),
417
+ /* @__PURE__ */ t(m, { noGradient: !0, children: [
418
+ /* @__PURE__ */ e(n, { height: "1.5rem" }),
345
419
  /* @__PURE__ */ t(l, { noGradient: !0, children: [
346
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
347
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
348
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
349
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" })
420
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
421
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
422
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
423
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" })
350
424
  ] })
351
425
  ] })
352
426
  ] }, `${o}-3`),
353
427
  /* @__PURE__ */ t(l, { children: [
354
428
  /* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
355
- /* @__PURE__ */ t(s, { noGradient: !0, children: [
356
- /* @__PURE__ */ e(i, { height: "1.5rem" }),
429
+ /* @__PURE__ */ t(m, { noGradient: !0, children: [
430
+ /* @__PURE__ */ e(n, { height: "1.5rem" }),
357
431
  /* @__PURE__ */ t(l, { noGradient: !0, children: [
358
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
359
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
360
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
361
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" })
432
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
433
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
434
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
435
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" })
362
436
  ] })
363
437
  ] })
364
438
  ] }, `${o}-4`),
365
439
  /* @__PURE__ */ t(l, { children: [
366
440
  /* @__PURE__ */ e(g, { height: "9.5rem", width: "17.75rem" }),
367
- /* @__PURE__ */ t(s, { noGradient: !0, children: [
368
- /* @__PURE__ */ e(i, { height: "1.5rem" }),
441
+ /* @__PURE__ */ t(m, { noGradient: !0, children: [
442
+ /* @__PURE__ */ e(n, { height: "1.5rem" }),
369
443
  /* @__PURE__ */ t(l, { noGradient: !0, children: [
370
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
371
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
372
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" }),
373
- /* @__PURE__ */ e(i, { width: "5rem", height: "1.25rem" })
444
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
445
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
446
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" }),
447
+ /* @__PURE__ */ e(n, { width: "5rem", height: "1.25rem" })
374
448
  ] })
375
449
  ] })
376
450
  ] }, `${o}-5`)
377
- ] }), x = ({
451
+ ] }), ie = ({
378
452
  keyPrefix: o,
379
- isLoading: m = !1,
380
- fallbackComponent: c = /* @__PURE__ */ e(w, {}),
453
+ isLoading: s = !1,
454
+ fallbackComponent: c = /* @__PURE__ */ e(y, {}),
381
455
  children: a
382
- }) => /* @__PURE__ */ e(P, { fallbackComponent: c, children: m === !0 ? /* @__PURE__ */ e(Z, { keyPrefix: o }) : a }), ee = q(V), ce = L(
456
+ }) => /* @__PURE__ */ e(E, { fallbackComponent: c, children: s === !0 ? /* @__PURE__ */ e(re, { keyPrefix: o }) : a }), te = M(Z), ge = W(
383
457
  ({
384
458
  timeToReadText: o = "{0} min read",
385
- items: m,
459
+ items: s,
386
460
  isLoading: c = !1,
387
461
  onSelectCard: a = () => {
388
462
  },
389
463
  onShare: h = () => {
390
464
  },
391
- onBookmark: _ = () => {
465
+ onBookmark: k = () => {
392
466
  },
393
- getImage: b = () => {
467
+ getImage: N = () => {
394
468
  },
395
- isSeparated: v = !0,
396
- bookmarkComponent: y = /* @__PURE__ */ e(w, {}),
469
+ isSeparated: $ = !0,
470
+ bookmarkComponent: C = /* @__PURE__ */ e(y, {}),
397
471
  componentName: f,
398
- LinkComponent: k
399
- }, $) => {
400
- const u = A(() => m == null ? void 0 : m.map((r, d) => {
472
+ LinkComponent: B,
473
+ hasShare: R = !0,
474
+ hasDelete: u = !1,
475
+ onDelete: w = () => {
476
+ }
477
+ }, d) => {
478
+ const _ = F(() => s == null ? void 0 : s.map((r, b) => {
401
479
  var p;
402
480
  return /* @__PURE__ */ e(
403
- ee,
481
+ te,
404
482
  {
405
483
  blogUuid: r == null ? void 0 : r.uuid,
406
484
  title: r == null ? void 0 : r.title,
@@ -413,20 +491,23 @@ const Q = S.a`
413
491
  numberOfComments: r == null ? void 0 : r.numberOfComments,
414
492
  isSponsored: r == null ? void 0 : r.isSponsored,
415
493
  isBookmarked: r == null ? void 0 : r.isBookmarked,
416
- onSelectCard: (N, B) => a == null ? void 0 : a(r, B),
494
+ onSelectCard: (S, G) => a == null ? void 0 : a(r, G),
495
+ hasShare: R,
496
+ hasDelete: u,
497
+ onDelete: w,
417
498
  onShare: () => h == null ? void 0 : h(r),
418
- onBookmark: _,
419
- imageUrl: b(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
420
- bookmarkComponent: y,
499
+ onBookmark: k,
500
+ imageUrl: N(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
501
+ bookmarkComponent: C,
421
502
  metadata: { name: f, accessor: r == null ? void 0 : r.accessor },
422
- LinkComponent: k
503
+ LinkComponent: B
423
504
  },
424
- `blog-card-item__${d + 1}__${(p = r == null ? void 0 : r.isBookmarked) == null ? void 0 : p.toString()}`
505
+ `blog-card-item__${b + 1}__${(p = r == null ? void 0 : r.isBookmarked) == null ? void 0 : p.toString()}`
425
506
  );
426
- }), [m]);
427
- return /* @__PURE__ */ e(x, { isLoading: c, keyPrefix: "blog-list-skeleton", children: /* @__PURE__ */ e(X, { ref: $, className: v ? "separated" : "", children: u }) });
507
+ }), [s]);
508
+ return /* @__PURE__ */ e(ie, { isLoading: c, keyPrefix: "blog-list-skeleton", children: /* @__PURE__ */ e(x, { ref: d, className: $ ? "separated" : "", children: _ }) });
428
509
  }
429
510
  );
430
511
  export {
431
- ce as default
512
+ ge as default
432
513
  };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),l=require("react"),K=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./breakpoints-CcVm-gVm.cjs"),Q=require("./IconButton.cjs"),G=require("./Button.cjs"),r=require("./utils-CITgSxXe.cjs"),H=require("./useDetectMobile-DYV6V1yw.cjs"),f=require("./index-BEgD9vNo.cjs"),J=require("./index-vQOR22Py.cjs"),W=require("./index-oYE1Pl7q.cjs"),X=K.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),l=require("react"),K=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./breakpoints-CcVm-gVm.cjs"),Q=require("./IconButton.cjs"),G=require("./Button.cjs"),r=require("./utils-CITgSxXe.cjs"),H=require("./useDetectMobile-DYV6V1yw.cjs"),f=require("./index-DZFKpq77.cjs"),J=require("./index-vQOR22Py.cjs"),W=require("./index-oYE1Pl7q.cjs"),X=K.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 1.5rem;
@@ -6,7 +6,7 @@ import H from "./IconButton.js";
6
6
  import J from "./Button.js";
7
7
  import { l as n } from "./utils-B2fsQ6PS.js";
8
8
  import { u as W } from "./useDetectMobile-CcVo3PNi.js";
9
- import { D as X, S as Y } from "./index-rYUwBlpp.js";
9
+ import { D as X, S as Y } from "./index-DDShXLaW.js";
10
10
  import { S as Z } from "./index-BzSWu-7v.js";
11
11
  import { S as x } from "./index-4wvppFLx.js";
12
12
  const ee = G.div`
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),c=require("react"),K=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./breakpoints-CcVm-gVm.cjs"),W=require("./Button.cjs"),l=require("./utils-CITgSxXe.cjs"),z=require("./useDetectMobile-DYV6V1yw.cjs"),G=require("./style-DC05rdyx.cjs"),P=require("./index-BEgD9vNo.cjs"),V=require("./index-vQOR22Py.cjs"),H=require("./index-oYE1Pl7q.cjs"),J=K.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),c=require("react"),K=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./breakpoints-CcVm-gVm.cjs"),W=require("./Button.cjs"),l=require("./utils-CITgSxXe.cjs"),z=require("./useDetectMobile-DYV6V1yw.cjs"),G=require("./style-DC05rdyx.cjs"),P=require("./index-DZFKpq77.cjs"),V=require("./index-vQOR22Py.cjs"),H=require("./index-oYE1Pl7q.cjs"),J=K.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -6,7 +6,7 @@ import V from "./Button.js";
6
6
  import { l as c } from "./utils-B2fsQ6PS.js";
7
7
  import { u as H } from "./useDetectMobile-CcVo3PNi.js";
8
8
  import { T as J } from "./style-BUyFad_y.js";
9
- import { D as X, S as Y } from "./index-rYUwBlpp.js";
9
+ import { D as X, S as Y } from "./index-DDShXLaW.js";
10
10
  import { S as Z } from "./index-BzSWu-7v.js";
11
11
  import { S as x } from "./index-4wvppFLx.js";
12
12
  const ee = G.div`
@@ -1,4 +1,4 @@
1
- "use strict";const a=require("react/jsx-runtime"),s=require("react"),L=require("./emotion-styled.browser.esm-BtEseadx.cjs"),u=require("./breakpoints-CcVm-gVm.cjs"),T=require("./useDetectMobile-DYV6V1yw.cjs"),D=require("./Button.cjs"),j=require("./index-BEgD9vNo.cjs"),Q=L.styled.div`
1
+ "use strict";const a=require("react/jsx-runtime"),s=require("react"),L=require("./emotion-styled.browser.esm-BtEseadx.cjs"),u=require("./breakpoints-CcVm-gVm.cjs"),T=require("./useDetectMobile-DYV6V1yw.cjs"),D=require("./Button.cjs"),j=require("./index-DZFKpq77.cjs"),Q=L.styled.div`
2
2
  padding: 1.75rem 3rem;
3
3
  display: grid;
4
4
  grid-template-columns: ${t=>`repeat(${t.limit||5}, minmax(0, 1fr))`};
@@ -4,7 +4,7 @@ import { s as z } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { d as c } from "./breakpoints-ff0SIcV3.js";
5
5
  import { u as A } from "./useDetectMobile-CcVo3PNi.js";
6
6
  import B from "./Button.js";
7
- import { D as G, S as R } from "./index-rYUwBlpp.js";
7
+ import { D as G, S as R } from "./index-DDShXLaW.js";
8
8
  const I = z.div`
9
9
  padding: 1.75rem 3rem;
10
10
  display: grid;
@@ -1,10 +1,10 @@
1
- import { jsxs as n, jsx as e, Fragment as O } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as e, Fragment as U } from "react/jsx-runtime";
2
2
  import { forwardRef as ce, useState as ne, useRef as ie, useEffect as Me, cloneElement as te, Suspense as Le } from "react";
3
3
  import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { d as L } from "./breakpoints-ff0SIcV3.js";
5
- import { t as j, n as xe, b as Te, m as M, p as ae, G as se, l as le } from "./utils-B2fsQ6PS.js";
5
+ import { t as I, n as xe, b as Te, m as M, p as ae, G as se, l as le } from "./utils-B2fsQ6PS.js";
6
6
  import { P as qe } from "./index-BvMY2TbK.js";
7
- import I from "./Badge.js";
7
+ import O from "./Badge.js";
8
8
  import Ae from "./Popover.js";
9
9
  import Xe from "./PopoverTrigger.js";
10
10
  import Ye from "./PopoverContent.js";
@@ -28,7 +28,7 @@ const Ke = S.a`
28
28
  }
29
29
  & .seller {
30
30
  text-transform: uppercase;
31
- ${j()}
31
+ ${I()}
32
32
  color: var(--gray-500);
33
33
  font-size: 0.625rem;
34
34
  font-weight: 400;
@@ -87,7 +87,7 @@ const Ke = S.a`
87
87
  & .price-text {
88
88
  font-size: 1rem;
89
89
  font-weight: 600;
90
- ${j()}
90
+ ${I()}
91
91
  display: flex;
92
92
  align-items: end;
93
93
  gap: 0.5rem;
@@ -103,6 +103,7 @@ const Ke = S.a`
103
103
  font-weight: 400;
104
104
  padding-bottom: 0.125rem;
105
105
  color: var(--gray-600, #676e79);
106
+ ${I()}
106
107
  }
107
108
  }
108
109
 
@@ -110,7 +111,7 @@ const Ke = S.a`
110
111
  font-size: 0.75rem;
111
112
  font-weight: 400;
112
113
  color: var(--gray-600, #676e79);
113
- ${j()}
114
+ ${I()}
114
115
  }
115
116
 
116
117
  & .tags-wrapper {
@@ -482,7 +483,7 @@ const Ke = S.a`
482
483
  }, kr = ce((a, P) => {
483
484
  const {
484
485
  uuid: m,
485
- sellerUuid: U,
486
+ sellerUuid: B,
486
487
  name: me,
487
488
  price: E = 0,
488
489
  sellingPrice: R,
@@ -499,7 +500,7 @@ const Ke = S.a`
499
500
  categoryCode: V,
500
501
  categoryName: be,
501
502
  condition: T,
502
- quantity: B,
503
+ quantity: W,
503
504
  trade: q,
504
505
  sponsoredText: ve,
505
506
  forCart: we,
@@ -508,7 +509,7 @@ const Ke = S.a`
508
509
  hasVariants: _e,
509
510
  hasQuantities: Ne,
510
511
  status: Re,
511
- onBookmark: W = () => {
512
+ onBookmark: D = () => {
512
513
  },
513
514
  actionComponent: w,
514
515
  bookmarked: A,
@@ -522,24 +523,24 @@ const Ke = S.a`
522
523
  urgentText: Se = "Urgent",
523
524
  LinkComponent: Y,
524
525
  hasFreeShipping: Pe
525
- } = a, Ee = Y || "a", D = He(), Fe = () => {
526
+ } = a, Ee = Y || "a", j = He(), Fe = () => {
526
527
  var c;
527
- if (!M(w)) return /* @__PURE__ */ e(O, {});
528
+ if (!M(w)) return /* @__PURE__ */ e(U, {});
528
529
  const r = w, o = (c = w == null ? void 0 : w.props) == null ? void 0 : c.children, s = te(o, {
529
530
  key: `bookmark_pr__${A}`,
530
531
  bookmarked: A,
531
532
  productUuid: m,
532
- onAddToBookmark: () => W(!0, m),
533
- onRemoveFromBookmark: () => W(!1, m),
533
+ onAddToBookmark: () => D(!0, m),
534
+ onRemoveFromBookmark: () => D(!1, m),
534
535
  bookmarkedUuidList: ke,
535
- sellerUuid: U,
536
- handleBookmarking: W,
536
+ sellerUuid: B,
537
+ handleBookmarking: D,
537
538
  forCart: we,
538
539
  forOrder: Ce,
539
540
  contactSeller: ye,
540
541
  hasVariants: _e,
541
542
  status: Re,
542
- quantity: B,
543
+ quantity: W,
543
544
  hasQuantities: Ne,
544
545
  productBasicInfo: {
545
546
  uuid: m,
@@ -571,7 +572,7 @@ const Ke = S.a`
571
572
  }, d = ie(null), f = ie([]), [Ie, Q] = ne(t == null ? void 0 : t.length), Oe = () => {
572
573
  var c, y, $;
573
574
  if (!(d != null && d.current) || ((c = f == null ? void 0 : f.current) == null ? void 0 : c.length) === 0) return;
574
- if (D) {
575
+ if (j) {
575
576
  Q(t == null ? void 0 : t.length);
576
577
  return;
577
578
  }
@@ -595,14 +596,14 @@ const Ke = S.a`
595
596
  return o.observe(r), () => {
596
597
  o.disconnect();
597
598
  };
598
- }, [t, D]);
599
+ }, [t, j]);
599
600
  const Ue = () => {
600
601
  var r;
601
602
  return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = t == null ? void 0 : t.slice(0, Ie)) == null ? void 0 : r.map((o, s) => {
602
603
  var b, p, ee, re, oe;
603
604
  const c = ((b = l == null ? void 0 : l[o == null ? void 0 : o.code]) == null ? void 0 : b.icon) ?? ((p = l == null ? void 0 : l.default) == null ? void 0 : p.icon) ?? "", y = ((ee = o == null ? void 0 : o.measurementUnit) == null ? void 0 : ee.symbol) ?? ((re = l == null ? void 0 : l[o == null ? void 0 : o.code]) == null ? void 0 : re.measure) ?? "", g = [(o == null ? void 0 : o.value) ?? ((oe = o == null ? void 0 : o.multiOptions) == null ? void 0 : oe[0]) ?? "", y].filter(Boolean).join(" ");
604
605
  return /* @__PURE__ */ n(
605
- I,
606
+ O,
606
607
  {
607
608
  ref: (je) => f.current[s] = je,
608
609
  className: "tag",
@@ -621,10 +622,10 @@ const Ke = S.a`
621
622
  /* @__PURE__ */ e("span", { className: "tags-popover__name", children: `${$}: ` }),
622
623
  /* @__PURE__ */ e("span", { className: "tags-popover__value", children: y })
623
624
  ] }, `detailed-products-section-tag-dropdown__${o + 1}`);
624
- }) }), We = () => /* @__PURE__ */ n(O, { children: [
625
- T && /* @__PURE__ */ e(I, { className: "tag", children: T }, "detailed-products-section-tag__condition"),
626
- B && /* @__PURE__ */ e(I, { className: "tag", children: B }, "detailed-products-section-tag__quantity"),
627
- q && /* @__PURE__ */ e(I, { className: "tag", children: q }, "detailed-products-section-tag__trade")
625
+ }) }), We = () => /* @__PURE__ */ n(U, { children: [
626
+ T && /* @__PURE__ */ e(O, { className: "tag", children: T }, "detailed-products-section-tag__condition"),
627
+ W && /* @__PURE__ */ e(O, { className: "tag", children: W }, "detailed-products-section-tag__quantity"),
628
+ q && /* @__PURE__ */ e(O, { className: "tag", children: q }, "detailed-products-section-tag__trade")
628
629
  ] }), J = E > 0 && k && F !== !0 && z !== !0 && E !== R, De = h == null ? void 0 : h.some(
629
630
  (r) => (r == null ? void 0 : r.salesPackageCode) === "FreeShipping"
630
631
  ), Z = Pe === !0 && !De;
@@ -674,7 +675,7 @@ const Ke = S.a`
674
675
  sizeInUnits: "1rem"
675
676
  }
676
677
  ),
677
- (r == null ? void 0 : r.salesPackageCode) === "Urgent" && /* @__PURE__ */ e(O, { children: Se })
678
+ (r == null ? void 0 : r.salesPackageCode) === "Urgent" && /* @__PURE__ */ e(U, { children: Se })
678
679
  ]
679
680
  },
680
681
  o
@@ -696,7 +697,7 @@ const Ke = S.a`
696
697
  H && /* @__PURE__ */ e(
697
698
  "div",
698
699
  {
699
- ...D ? {} : {
700
+ ...j ? {} : {
700
701
  onMouseEnter: Ve,
701
702
  onMouseLeave: Ge
702
703
  },
@@ -872,9 +873,9 @@ const Ke = S.a`
872
873
  ] }), $r = ({
873
874
  keyPrefix: a,
874
875
  isLoading: P = !1,
875
- fallbackComponent: m = /* @__PURE__ */ e(O, {}),
876
- children: U
877
- }) => /* @__PURE__ */ e(Le, { fallbackComponent: m, children: P === !0 ? /* @__PURE__ */ e(cr, { keyPrefix: a }) : U });
876
+ fallbackComponent: m = /* @__PURE__ */ e(U, {}),
877
+ children: B
878
+ }) => /* @__PURE__ */ e(Le, { fallbackComponent: m, children: P === !0 ? /* @__PURE__ */ e(cr, { keyPrefix: a }) : B });
878
879
  export {
879
880
  kr as D,
880
881
  $r as S
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),m=require("react"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./breakpoints-CcVm-gVm.cjs"),s=require("./utils-CITgSxXe.cjs"),Ne=require("./index-DsINTjQk.cjs"),W=require("./Badge.cjs"),$e=require("./Popover.cjs"),Le=require("./PopoverTrigger.cjs"),We=require("./PopoverContent.cjs"),Ee=require("./useDetectMobile-DYV6V1yw.cjs"),J=require("./Icon.cjs"),n=require("./style-BAcV7F53.cjs"),Fe=y.styled.a`
1
+ "use strict";const e=require("react/jsx-runtime"),m=require("react"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./breakpoints-CcVm-gVm.cjs"),i=require("./utils-CITgSxXe.cjs"),Ne=require("./index-DsINTjQk.cjs"),W=require("./Badge.cjs"),$e=require("./Popover.cjs"),Le=require("./PopoverTrigger.cjs"),We=require("./PopoverContent.cjs"),Ee=require("./useDetectMobile-DYV6V1yw.cjs"),J=require("./Icon.cjs"),n=require("./style-BAcV7F53.cjs"),Fe=y.styled.a`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 0.5rem;
@@ -15,7 +15,7 @@
15
15
  }
16
16
  & .seller {
17
17
  text-transform: uppercase;
18
- ${s.truncateText()}
18
+ ${i.truncateText()}
19
19
  color: var(--gray-500);
20
20
  font-size: 0.625rem;
21
21
  font-weight: 400;
@@ -68,13 +68,13 @@
68
68
  & .card-title {
69
69
  font-size: 0.875rem;
70
70
  font-weight: 600;
71
- ${s.truncateTextInRows(2)}
71
+ ${i.truncateTextInRows(2)}
72
72
  }
73
73
 
74
74
  & .price-text {
75
75
  font-size: 1rem;
76
76
  font-weight: 600;
77
- ${s.truncateText()}
77
+ ${i.truncateText()}
78
78
  display: flex;
79
79
  align-items: end;
80
80
  gap: 0.5rem;
@@ -90,6 +90,7 @@
90
90
  font-weight: 400;
91
91
  padding-bottom: 0.125rem;
92
92
  color: var(--gray-600, #676e79);
93
+ ${i.truncateText()}
93
94
  }
94
95
  }
95
96
 
@@ -97,7 +98,7 @@
97
98
  font-size: 0.75rem;
98
99
  font-weight: 400;
99
100
  color: var(--gray-600, #676e79);
100
- ${s.truncateText()}
101
+ ${i.truncateText()}
101
102
  }
102
103
 
103
104
  & .tags-wrapper {
@@ -247,7 +248,7 @@
247
248
 
248
249
  width: 2.25rem;
249
250
  height: 2.25rem;
250
- border-radius: ${i=>s.getBorderRadiusValueWithUnits(i.theme,"curved")};
251
+ border-radius: ${s=>i.getBorderRadiusValueWithUnits(s.theme,"curved")};
251
252
  border: 1px solid var(--gray-95008);
252
253
  background-color: white;
253
254
  color: var(--gray-950);
@@ -356,7 +357,7 @@
356
357
  font-size: 1rem;
357
358
  color: var(--warning-500, #F59E0B);
358
359
  }
359
- `,Ve=m.forwardRef(({sponsoredText:i="Sponsored"},P)=>e.jsxs(De,{ref:P,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:i})]})),Ge="Vehicles_Cars",Ie="Vehicles_Motorcycles",Oe="Vehicles_Trucks",Ue="Vehicles_AgriculturalMachines_Tractors",Be="Vehicles_ConstructionMachines",Me="Vehicles_Bus",Te="Vehicles_Campers",Ae="RealEstates_",l={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:""}},x={ADDDISCOUNT:" mng-lnc-percentage",URGENT:" mng-lnc-flash",FREEQUANTITY:" mng-lnc-3d-software",INCLUDEGIFTS:" mng-lnc-gift",FREESHIPPING:" mng-lnc-delivery--parcel"},Xe=m.forwardRef((i,P)=>{const{uuid:h,sellerUuid:E,name:Z,price:R=0,sellingPrice:S,currency:k,isNegotiable:_,isFree:N,imageUrl:ee,location:re,sponsored:ne,imageComponent:V,freeText:oe="Free",negotiableText:te="Negotiable",tags:t=[],categoryCode:$,categoryName:ie,condition:G,quantity:F,trade:I,sponsoredText:se,forCart:ae,forOrder:le,contactSeller:ce,hasVariants:de,hasQuantities:me,status:he,onBookmark:q=()=>{},actionComponent:w,bookmarked:O,bookmarkLists:ue,metadata:v,sellerName:U,nameSlug:L,onSelectCard:pe=()=>{},activeSalesPackages:u,urgentText:ge="Urgent",LinkComponent:B,hasFreeShipping:fe}=i,be=B||"a",z=Ee.useDetectMobile(),we=()=>{var d;if(!s.isDefined(w))return e.jsx(e.Fragment,{});const r=w,o=(d=w==null?void 0:w.props)==null?void 0:d.children,a=m.cloneElement(o,{key:`bookmark_pr__${O}`,bookmarked:O,productUuid:h,onAddToBookmark:()=>q(!0,h),onRemoveFromBookmark:()=>q(!1,h),bookmarkedUuidList:ue,sellerUuid:E,handleBookmarking:q,forCart:ae,forOrder:le,contactSeller:ce,hasVariants:de,status:he,quantity:F,hasQuantities:me,productBasicInfo:{uuid:h,price:R,sellingPrice:S,categoryCode:$,categoryName:ie,currency:k,isNegotiable:_,isFree:N}});return m.cloneElement(r,void 0,a)},M=[Ge,Ie,Oe,Ue,Be,Me,Te,Ae].some(r=>$==null?void 0:$.includes(r)),[ve,T]=m.useState(!1),je=()=>{T(!0)},xe=()=>{T(!1)},c=m.useRef(null),f=m.useRef([]),[Se,A]=m.useState(t==null?void 0:t.length),ke=()=>{var d,j,C;if(!(c!=null&&c.current)||((d=f==null?void 0:f.current)==null?void 0:d.length)===0)return;if(z){A(t==null?void 0:t.length);return}const r=(j=c==null?void 0:c.current)==null?void 0:j.offsetWidth;let o=0,a=0;for(let p=0;p<(t==null?void 0:t.length);p++){const b=((C=f==null?void 0:f.current[p])==null?void 0:C.offsetWidth)||0,g=o+b+4;if(g<=r)o+=g,a++;else break}A(a)};m.useEffect(()=>{const r=c==null?void 0:c.current;if(!r)return;const o=new ResizeObserver(()=>{ke()});return o.observe(r),()=>{o.disconnect()}},[t,z]);const Ce=()=>{var r;return e.jsx("div",{className:"tags-popover__trigger",children:(r=t==null?void 0:t.slice(0,Se))==null?void 0:r.map((o,a)=>{var b,g,H,K,Q;const d=((b=l==null?void 0:l[o==null?void 0:o.code])==null?void 0:b.icon)??((g=l==null?void 0:l.default)==null?void 0:g.icon)??"",j=((H=o==null?void 0:o.measurementUnit)==null?void 0:H.symbol)??((K=l==null?void 0:l[o==null?void 0:o.code])==null?void 0:K.measure)??"",p=[(o==null?void 0:o.value)??((Q=o==null?void 0:o.multiOptions)==null?void 0:Q[0])??"",j].filter(Boolean).join(" ");return e.jsxs(W,{ref:_e=>f.current[a]=_e,className:"tag",children:[e.jsx("i",{className:d}),p]},`detailed-products-section-tag__${a+1}`)})})},ye=()=>e.jsx("div",{className:"tags-popover__content",children:t==null?void 0:t.map((r,o)=>{var p,b,g;const a=((p=r==null?void 0:r.measurementUnit)==null?void 0:p.symbol)??((b=l==null?void 0:l[r==null?void 0:r.code])==null?void 0:b.measure)??"",j=[(r==null?void 0:r.value)??((g=r==null?void 0:r.multiOptions)==null?void 0:g[0])??"",a].filter(Boolean).join(" "),C=r==null?void 0:r.name;return e.jsxs("div",{children:[e.jsx("span",{className:"tags-popover__name",children:`${C}: `}),e.jsx("span",{className:"tags-popover__value",children:j})]},`detailed-products-section-tag-dropdown__${o+1}`)})}),Pe=()=>e.jsxs(e.Fragment,{children:[G&&e.jsx(W,{className:"tag",children:G},"detailed-products-section-tag__condition"),F&&e.jsx(W,{className:"tag",children:F},"detailed-products-section-tag__quantity"),I&&e.jsx(W,{className:"tag",children:I},"detailed-products-section-tag__trade")]}),X=R>0&&k&&_!==!0&&N!==!0&&R!==S,Re=u==null?void 0:u.some(r=>(r==null?void 0:r.salesPackageCode)==="FreeShipping"),Y=fe===!0&&!Re;return e.jsxs(Fe,{ref:c,className:"product-card","data-accessor":v==null?void 0:v.accessor,name:v==null?void 0:v.name,onClick:r=>pe(r,c),as:be,...B?{to:`/product/${s.isDefinedNotEmptyString(L)?`${L}-`:""}${h}`}:{href:`/product/${s.isDefinedNotEmptyString(L)?`${L}-`:""}${h}`},children:[e.jsxs(qe,{className:"product-image-wrapper",children:[s.isDefined(w)&&e.jsx("div",{className:"prevent-el",onClick:r=>{r==null||r.preventDefault(),r==null||r.stopPropagation()},children:e.jsx(we,{})}),s.isDefined(V)?V:e.jsx(Ne.ProductImageWrapper,{src:ee})]}),(Y||u&&u.length>0)&&e.jsxs("div",{className:"campaign-badges",children:[Y&&e.jsx("div",{className:"campaign-badge campaign-badge-freeshipping",children:e.jsx(J,{icon:x==null?void 0:x.FREESHIPPING,sizeInUnits:"1rem"})}),u==null?void 0:u.map((r,o)=>{var a,d;return e.jsxs("div",{className:`campaign-badge campaign-badge-${(a=r==null?void 0:r.salesPackageCode)==null?void 0:a.toLowerCase()}`,children:[(r==null?void 0:r.salesPackageCode)!=="Urgent"&&e.jsx(J,{icon:x==null?void 0:x[(d=r==null?void 0:r.salesPackageCode)==null?void 0:d.toUpperCase()],sizeInUnits:"1rem"}),(r==null?void 0:r.salesPackageCode)==="Urgent"&&e.jsx(e.Fragment,{children:ge})]},o)})]}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"seller",title:U,children:U}),e.jsx("div",{className:"card-title",children:Z})]}),e.jsxs("div",{className:"wrapper-card-3",onClick:r=>{r==null||r.preventDefault(),r==null||r.stopPropagation()},children:[M&&e.jsx("div",{...z?{}:{onMouseEnter:je,onMouseLeave:xe},children:e.jsxs($e,{placement:"bottom",open:ve,children:[e.jsx(Le,{children:Ce()}),e.jsx(We,{style:{all:"unset"},children:e.jsx(ze,{children:ye()})})]})}),!M&&Pe()]}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:`price-text ${X?"new-price":""}`,children:[S>0&&k&&_!==!0&&N!==!0&&e.jsx("div",{children:`${s.formatPrice(S)} ${s.GetCurrencySymbol(k)}`}),X&&e.jsx("div",{className:`${S>0?"full-price":""}`,children:`${s.formatPrice(R)} ${s.GetCurrencySymbol(k)}`}),_&&te,N&&oe]}),e.jsx("div",{className:"location-text",children:re})]}),ne===!0&&e.jsx(Ve,{sponsoredText:se})]})}),Ye=y.styled(n.SkeletonRowWrapper)`
360
+ `,Ve=m.forwardRef(({sponsoredText:s="Sponsored"},P)=>e.jsxs(De,{ref:P,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:s})]})),Ge="Vehicles_Cars",Ie="Vehicles_Motorcycles",Oe="Vehicles_Trucks",Ue="Vehicles_AgriculturalMachines_Tractors",Be="Vehicles_ConstructionMachines",Me="Vehicles_Bus",Te="Vehicles_Campers",Ae="RealEstates_",l={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:""}},x={ADDDISCOUNT:" mng-lnc-percentage",URGENT:" mng-lnc-flash",FREEQUANTITY:" mng-lnc-3d-software",INCLUDEGIFTS:" mng-lnc-gift",FREESHIPPING:" mng-lnc-delivery--parcel"},Xe=m.forwardRef((s,P)=>{const{uuid:h,sellerUuid:E,name:Z,price:R=0,sellingPrice:S,currency:k,isNegotiable:_,isFree:N,imageUrl:ee,location:re,sponsored:ne,imageComponent:V,freeText:oe="Free",negotiableText:te="Negotiable",tags:t=[],categoryCode:$,categoryName:ie,condition:G,quantity:F,trade:I,sponsoredText:se,forCart:ae,forOrder:le,contactSeller:ce,hasVariants:de,hasQuantities:me,status:he,onBookmark:q=()=>{},actionComponent:w,bookmarked:O,bookmarkLists:ue,metadata:v,sellerName:U,nameSlug:L,onSelectCard:pe=()=>{},activeSalesPackages:u,urgentText:ge="Urgent",LinkComponent:B,hasFreeShipping:fe}=s,be=B||"a",z=Ee.useDetectMobile(),we=()=>{var d;if(!i.isDefined(w))return e.jsx(e.Fragment,{});const r=w,o=(d=w==null?void 0:w.props)==null?void 0:d.children,a=m.cloneElement(o,{key:`bookmark_pr__${O}`,bookmarked:O,productUuid:h,onAddToBookmark:()=>q(!0,h),onRemoveFromBookmark:()=>q(!1,h),bookmarkedUuidList:ue,sellerUuid:E,handleBookmarking:q,forCart:ae,forOrder:le,contactSeller:ce,hasVariants:de,status:he,quantity:F,hasQuantities:me,productBasicInfo:{uuid:h,price:R,sellingPrice:S,categoryCode:$,categoryName:ie,currency:k,isNegotiable:_,isFree:N}});return m.cloneElement(r,void 0,a)},M=[Ge,Ie,Oe,Ue,Be,Me,Te,Ae].some(r=>$==null?void 0:$.includes(r)),[ve,T]=m.useState(!1),je=()=>{T(!0)},xe=()=>{T(!1)},c=m.useRef(null),f=m.useRef([]),[Se,A]=m.useState(t==null?void 0:t.length),ke=()=>{var d,j,C;if(!(c!=null&&c.current)||((d=f==null?void 0:f.current)==null?void 0:d.length)===0)return;if(z){A(t==null?void 0:t.length);return}const r=(j=c==null?void 0:c.current)==null?void 0:j.offsetWidth;let o=0,a=0;for(let p=0;p<(t==null?void 0:t.length);p++){const b=((C=f==null?void 0:f.current[p])==null?void 0:C.offsetWidth)||0,g=o+b+4;if(g<=r)o+=g,a++;else break}A(a)};m.useEffect(()=>{const r=c==null?void 0:c.current;if(!r)return;const o=new ResizeObserver(()=>{ke()});return o.observe(r),()=>{o.disconnect()}},[t,z]);const Ce=()=>{var r;return e.jsx("div",{className:"tags-popover__trigger",children:(r=t==null?void 0:t.slice(0,Se))==null?void 0:r.map((o,a)=>{var b,g,H,K,Q;const d=((b=l==null?void 0:l[o==null?void 0:o.code])==null?void 0:b.icon)??((g=l==null?void 0:l.default)==null?void 0:g.icon)??"",j=((H=o==null?void 0:o.measurementUnit)==null?void 0:H.symbol)??((K=l==null?void 0:l[o==null?void 0:o.code])==null?void 0:K.measure)??"",p=[(o==null?void 0:o.value)??((Q=o==null?void 0:o.multiOptions)==null?void 0:Q[0])??"",j].filter(Boolean).join(" ");return e.jsxs(W,{ref:_e=>f.current[a]=_e,className:"tag",children:[e.jsx("i",{className:d}),p]},`detailed-products-section-tag__${a+1}`)})})},ye=()=>e.jsx("div",{className:"tags-popover__content",children:t==null?void 0:t.map((r,o)=>{var p,b,g;const a=((p=r==null?void 0:r.measurementUnit)==null?void 0:p.symbol)??((b=l==null?void 0:l[r==null?void 0:r.code])==null?void 0:b.measure)??"",j=[(r==null?void 0:r.value)??((g=r==null?void 0:r.multiOptions)==null?void 0:g[0])??"",a].filter(Boolean).join(" "),C=r==null?void 0:r.name;return e.jsxs("div",{children:[e.jsx("span",{className:"tags-popover__name",children:`${C}: `}),e.jsx("span",{className:"tags-popover__value",children:j})]},`detailed-products-section-tag-dropdown__${o+1}`)})}),Pe=()=>e.jsxs(e.Fragment,{children:[G&&e.jsx(W,{className:"tag",children:G},"detailed-products-section-tag__condition"),F&&e.jsx(W,{className:"tag",children:F},"detailed-products-section-tag__quantity"),I&&e.jsx(W,{className:"tag",children:I},"detailed-products-section-tag__trade")]}),X=R>0&&k&&_!==!0&&N!==!0&&R!==S,Re=u==null?void 0:u.some(r=>(r==null?void 0:r.salesPackageCode)==="FreeShipping"),Y=fe===!0&&!Re;return e.jsxs(Fe,{ref:c,className:"product-card","data-accessor":v==null?void 0:v.accessor,name:v==null?void 0:v.name,onClick:r=>pe(r,c),as:be,...B?{to:`/product/${i.isDefinedNotEmptyString(L)?`${L}-`:""}${h}`}:{href:`/product/${i.isDefinedNotEmptyString(L)?`${L}-`:""}${h}`},children:[e.jsxs(qe,{className:"product-image-wrapper",children:[i.isDefined(w)&&e.jsx("div",{className:"prevent-el",onClick:r=>{r==null||r.preventDefault(),r==null||r.stopPropagation()},children:e.jsx(we,{})}),i.isDefined(V)?V:e.jsx(Ne.ProductImageWrapper,{src:ee})]}),(Y||u&&u.length>0)&&e.jsxs("div",{className:"campaign-badges",children:[Y&&e.jsx("div",{className:"campaign-badge campaign-badge-freeshipping",children:e.jsx(J,{icon:x==null?void 0:x.FREESHIPPING,sizeInUnits:"1rem"})}),u==null?void 0:u.map((r,o)=>{var a,d;return e.jsxs("div",{className:`campaign-badge campaign-badge-${(a=r==null?void 0:r.salesPackageCode)==null?void 0:a.toLowerCase()}`,children:[(r==null?void 0:r.salesPackageCode)!=="Urgent"&&e.jsx(J,{icon:x==null?void 0:x[(d=r==null?void 0:r.salesPackageCode)==null?void 0:d.toUpperCase()],sizeInUnits:"1rem"}),(r==null?void 0:r.salesPackageCode)==="Urgent"&&e.jsx(e.Fragment,{children:ge})]},o)})]}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"seller",title:U,children:U}),e.jsx("div",{className:"card-title",children:Z})]}),e.jsxs("div",{className:"wrapper-card-3",onClick:r=>{r==null||r.preventDefault(),r==null||r.stopPropagation()},children:[M&&e.jsx("div",{...z?{}:{onMouseEnter:je,onMouseLeave:xe},children:e.jsxs($e,{placement:"bottom",open:ve,children:[e.jsx(Le,{children:Ce()}),e.jsx(We,{style:{all:"unset"},children:e.jsx(ze,{children:ye()})})]})}),!M&&Pe()]}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:`price-text ${X?"new-price":""}`,children:[S>0&&k&&_!==!0&&N!==!0&&e.jsx("div",{children:`${i.formatPrice(S)} ${i.GetCurrencySymbol(k)}`}),X&&e.jsx("div",{className:`${S>0?"full-price":""}`,children:`${i.formatPrice(R)} ${i.GetCurrencySymbol(k)}`}),_&&te,N&&oe]}),e.jsx("div",{className:"location-text",children:re})]}),ne===!0&&e.jsx(Ve,{sponsoredText:se})]})}),Ye=y.styled(n.SkeletonRowWrapper)`
360
361
  @media ${D.down("S")} {
361
362
  & > div {
362
363
  &:nth-of-type(even) {
@@ -364,4 +365,4 @@
364
365
  }
365
366
  }
366
367
  }
367
- `,He=({keyPrefix:i})=>e.jsxs(Ye,{children:[e.jsxs(n.SkeletonColumnWrapper,{gap:"0.5rem",children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(n.SkeletonColumnWrapper,{height:"1rem",children:e.jsx(n.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),e.jsxs(n.SkeletonRowWrapper,{gap:"0.5rem",children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(n.SkeletonColumnWrapper,{height:"2rem",children:e.jsx(n.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${i}-1`),e.jsxs(n.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(n.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(n.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-2`),e.jsxs(n.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(n.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(n.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-3`),e.jsxs(n.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(n.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(n.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-4`),e.jsxs(n.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(n.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(n.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-5`),e.jsxs(n.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(n.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(n.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-6`)]}),Ke=({keyPrefix:i,isLoading:P=!1,fallbackComponent:h=e.jsx(e.Fragment,{}),children:E})=>e.jsx(m.Suspense,{fallbackComponent:h,children:P===!0?e.jsx(He,{keyPrefix:i}):E});exports.DetailedProductCard=Xe;exports.SuspenseDetailedProductCard=Ke;
368
+ `,He=({keyPrefix:s})=>e.jsxs(Ye,{children:[e.jsxs(n.SkeletonColumnWrapper,{gap:"0.5rem",children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(n.SkeletonColumnWrapper,{height:"1rem",children:e.jsx(n.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),e.jsxs(n.SkeletonRowWrapper,{gap:"0.5rem",children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(n.SkeletonColumnWrapper,{height:"2rem",children:e.jsx(n.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${s}-1`),e.jsxs(n.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(n.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(n.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${s}-2`),e.jsxs(n.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(n.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(n.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${s}-3`),e.jsxs(n.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(n.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(n.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${s}-4`),e.jsxs(n.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(n.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(n.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${s}-5`),e.jsxs(n.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(n.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(n.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${s}-6`)]}),Ke=({keyPrefix:s,isLoading:P=!1,fallbackComponent:h=e.jsx(e.Fragment,{}),children:E})=>e.jsx(m.Suspense,{fallbackComponent:h,children:P===!0?e.jsx(He,{keyPrefix:s}):E});exports.DetailedProductCard=Xe;exports.SuspenseDetailedProductCard=Ke;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.218",
3
+ "version": "4.0.220",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [