@lanaco/lnc-react-ui 4.0.182 → 4.0.183

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.
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),a=require("react"),M=require("./emotion-styled.browser.esm-BtEseadx.cjs"),B=require("./consts-goSZX3xP.cjs"),E=require("./IconButton.cjs"),I=require("./Button.cjs"),r=require("./utils-RnrgDDZP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),g=require("./index-BeVjdODO.cjs"),T=M.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),a=require("react"),M=require("./emotion-styled.browser.esm-BtEseadx.cjs"),B=require("./consts-goSZX3xP.cjs"),E=require("./IconButton.cjs"),I=require("./Button.cjs"),r=require("./utils-RnrgDDZP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),g=require("./index-CaAhRJ2-.cjs"),T=M.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 1.5rem;
@@ -6,7 +6,7 @@ import E from "./IconButton.js";
6
6
  import U from "./Button.js";
7
7
  import { k as r } from "./utils-Dc5zIpaz.js";
8
8
  import { u as $ } from "./useDetectMobile-Bkvj0VMa.js";
9
- import { D as j, S as A } from "./index-DrtxDu6u.js";
9
+ import { D as j, S as A } from "./index-DxZ71UZ1.js";
10
10
  const F = T.div`
11
11
  display: flex;
12
12
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),c=require("react"),T=require("./emotion-styled.browser.esm-BtEseadx.cjs"),E=require("./consts-goSZX3xP.cjs"),F=require("./Button.cjs"),l=require("./utils-RnrgDDZP.cjs"),B=require("./useDetectMobile-zkbzoOGV.cjs"),R=require("./style-CkcozOY6.cjs"),w=require("./index-BeVjdODO.cjs"),I=require("./index-CSNxZFTX.cjs"),Q=T.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),c=require("react"),T=require("./emotion-styled.browser.esm-BtEseadx.cjs"),E=require("./consts-goSZX3xP.cjs"),F=require("./Button.cjs"),l=require("./utils-RnrgDDZP.cjs"),B=require("./useDetectMobile-zkbzoOGV.cjs"),R=require("./style-CkcozOY6.cjs"),w=require("./index-CaAhRJ2-.cjs"),I=require("./index-CSNxZFTX.cjs"),Q=T.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -6,7 +6,7 @@ import O from "./Button.js";
6
6
  import { k as m } from "./utils-Dc5zIpaz.js";
7
7
  import { u as R } from "./useDetectMobile-Bkvj0VMa.js";
8
8
  import { T as W } from "./style-C7FUSHmS.js";
9
- import { D as $, S as j } from "./index-DrtxDu6u.js";
9
+ import { D as $, S as j } from "./index-DxZ71UZ1.js";
10
10
  import { S as z } from "./index-BGiZlEQt.js";
11
11
  const A = I.div`
12
12
  display: grid;
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),s=require("react"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),$=require("./useDetectMobile-zkbzoOGV.cjs"),T=require("./Button.cjs"),N=require("./index-BeVjdODO.cjs"),F=_.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),s=require("react"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),$=require("./useDetectMobile-zkbzoOGV.cjs"),T=require("./Button.cjs"),N=require("./index-CaAhRJ2-.cjs"),F=_.styled.div`
2
2
  padding: 1.75rem 3rem;
3
3
  display: grid;
4
4
  grid-template-columns: ${a=>`repeat(${a.limit||5}, minmax(0, 1fr))`};
@@ -4,7 +4,7 @@ import { s as q } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as B, S as D } from "./consts-BuFChS64.js";
5
5
  import { u as E } from "./useDetectMobile-Bkvj0VMa.js";
6
6
  import Q from "./Button.js";
7
- import { D as j, S as z } from "./index-DrtxDu6u.js";
7
+ import { D as j, S as z } from "./index-DxZ71UZ1.js";
8
8
  const A = q.div`
9
9
  padding: 1.75rem 3rem;
10
10
  display: grid;
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),c=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./consts-goSZX3xP.cjs"),l=require("./utils-RnrgDDZP.cjs"),we=require("./index-uwl7BjRF.cjs"),P=require("./Badge.cjs"),ve=require("./Popover.cjs"),je=require("./PopoverTrigger.cjs"),xe=require("./PopoverContent.cjs"),ke=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./style-BAcV7F53.cjs"),Se=x.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),c=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./consts-goSZX3xP.cjs"),l=require("./utils-RnrgDDZP.cjs"),ve=require("./index-uwl7BjRF.cjs"),L=require("./Badge.cjs"),je=require("./Popover.cjs"),xe=require("./PopoverTrigger.cjs"),ke=require("./PopoverContent.cjs"),Se=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./style-BAcV7F53.cjs"),ye=S.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 0.5rem;
@@ -166,7 +166,7 @@
166
166
  &:hover .product-image-wrapper img {
167
167
  transform: scale(1.1);
168
168
  }
169
- `,ye=x.styled.div`
169
+ `,Pe=S.styled.div`
170
170
  position: relative;
171
171
  overflow: hidden;
172
172
  border-radius: 0.75rem;
@@ -234,7 +234,7 @@
234
234
  top: unset;
235
235
  }
236
236
  }
237
- `,Pe=x.styled.div`
237
+ `,_e=S.styled.div`
238
238
  background: var(--white, #fff);
239
239
  z-index: 1;
240
240
 
@@ -284,7 +284,7 @@
284
284
  color: var(--gray-950, #14161a);
285
285
  }
286
286
  }
287
- `,_e=x.styled.div`
287
+ `,Ce=S.styled.div`
288
288
  display: flex;
289
289
  align-items: center;
290
290
  gap: 0.25rem;
@@ -296,7 +296,7 @@
296
296
  font-size: 1rem;
297
297
  color: var(--warning-500, #F59E0B);
298
298
  }
299
- `,Ce=c.forwardRef(({sponsoredText:i="Sponsored"},k)=>e.jsxs(_e,{ref:k,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:i})]})),Re="Vehicles_Cars",Le="Vehicles_Motorcycles",Ne="Vehicles_Trucks",We="Vehicles_AgriculturalMachines_Tractors",$e="Vehicles_ConstructionMachines",Ee="Vehicles_Bus",Te="Vehicles_Campers",qe="RealEstates_",s={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:""}},Oe=c.forwardRef((i,k)=>{const{uuid:w,sellerUuid:_,name:Y,price:C=0,sellingPrice:S,currency:y,isNegotiable:R,isFree:L,imageUrl:Z,location:A,sponsored:K,imageComponent:q,onSelectCard:H=()=>{},freeText:Q="Free",negotiableText:J="Negotiable",tags:t=[],categoryCode:N,condition:O,quantity:W,trade:V,sponsoredText:ee,forCart:re,forOrder:oe,contactSeller:ne,hasVariants:te,hasQuantities:ie,status:se,onBookmark:$=()=>{},actionComponent:v,bookmarked:B,bookmarkLists:ae,metadata:f,sellerName:z}=i,E=ke.useDetectMobile(),le=()=>{var m;if(!l.isDefined(v))return e.jsx(e.Fragment,{});const o=v,n=(m=v==null?void 0:v.props)==null?void 0:m.children,d=c.cloneElement(n,{key:`bookmark_pr__${B}`,bookmarked:B,productUuid:w,onAddToBookmark:()=>$(!0,w),onRemoveFromBookmark:()=>$(!1,w),bookmarkedUuidList:ae,sellerUuid:_,handleBookmarking:$,forCart:re,forOrder:oe,contactSeller:ne,hasVariants:te,status:se,quantity:W,hasQuantities:ie});return c.cloneElement(o,void 0,d)},M=[Re,Le,Ne,We,$e,Ee,Te,qe].some(o=>N==null?void 0:N.includes(o)),[ce,F]=c.useState(!1),de=()=>{F(!0)},me=()=>{F(!1)},a=c.useRef(null),p=c.useRef([]),[he,G]=c.useState(t==null?void 0:t.length),ue=()=>{var m,b,j;if(!(a!=null&&a.current)||((m=p==null?void 0:p.current)==null?void 0:m.length)===0)return;if(E){G(t==null?void 0:t.length);return}const o=(b=a==null?void 0:a.current)==null?void 0:b.offsetWidth;let n=0,d=0;for(let h=0;h<(t==null?void 0:t.length);h++){const g=((j=p==null?void 0:p.current[h])==null?void 0:j.offsetWidth)||0,u=n+g+4;if(u<=o)n+=u,d++;else break}G(d)};c.useEffect(()=>{const o=a==null?void 0:a.current;if(!o)return;const n=new ResizeObserver(()=>{ue()});return n.observe(o),()=>{n.disconnect()}},[t,E]);const pe=()=>{var o;return e.jsx("div",{className:"tags-popover__trigger",children:(o=t==null?void 0:t.slice(0,he))==null?void 0:o.map((n,d)=>{var g,u,D,U,X;const m=((g=s==null?void 0:s[n==null?void 0:n.code])==null?void 0:g.icon)??((u=s==null?void 0:s.default)==null?void 0:u.icon)??"",b=((D=n==null?void 0:n.measurementUnit)==null?void 0:D.symbol)??((U=s==null?void 0:s[n==null?void 0:n.code])==null?void 0:U.measure)??"",h=[(n==null?void 0:n.value)??((X=n==null?void 0:n.multiOptions)==null?void 0:X[0])??"",b].filter(Boolean).join(" ");return e.jsxs(P,{ref:be=>p.current[d]=be,className:"tag",children:[e.jsx("i",{className:m}),h]},`detailed-products-section-tag__${d+1}`)})})},ge=()=>e.jsx("div",{className:"tags-popover__content",children:t==null?void 0:t.map((o,n)=>{var h,g,u;const d=((h=o==null?void 0:o.measurementUnit)==null?void 0:h.symbol)??((g=s==null?void 0:s[o==null?void 0:o.code])==null?void 0:g.measure)??"",b=[(o==null?void 0:o.value)??((u=o==null?void 0:o.multiOptions)==null?void 0:u[0])??"",d].filter(Boolean).join(" "),j=o==null?void 0:o.name;return e.jsxs("div",{children:[e.jsx("span",{className:"tags-popover__name",children:`${j}: `}),e.jsx("span",{className:"tags-popover__value",children:b})]},`detailed-products-section-tag-dropdown__${n+1}`)})}),fe=()=>e.jsxs(e.Fragment,{children:[O&&e.jsx(P,{className:"tag",children:O},"detailed-products-section-tag__condition"),W&&e.jsx(P,{className:"tag",children:W},"detailed-products-section-tag__quantity"),V&&e.jsx(P,{className:"tag",children:V},"detailed-products-section-tag__trade")]}),I=C>0&&y&&R!==!0&&L!==!0&&C!==S;return e.jsxs(Se,{ref:a,className:"product-card","data-accessor":f==null?void 0:f.accessor,name:f==null?void 0:f.name,onClick:o=>H(o,a),children:[e.jsxs(ye,{className:"product-image-wrapper",children:[e.jsx(le,{}),l.isDefined(q)?q:e.jsx(we.ProductImageWrapper,{src:Z})]}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"seller",title:z,children:z}),e.jsx("div",{className:"card-title",children:Y})]}),e.jsxs("div",{className:"wrapper-card-3",children:[M&&e.jsx("div",{...E?{}:{onMouseEnter:de,onMouseLeave:me},children:e.jsxs(ve,{placement:"bottom",open:ce,children:[e.jsx(je,{children:pe()}),e.jsx(xe,{style:{all:"unset"},children:e.jsx(Pe,{children:ge()})})]})}),!M&&fe()]}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:`price-text ${I?"new-price":""}`,children:[S>0&&y&&R!==!0&&L!==!0&&e.jsx("div",{children:`${l.formatPrice(S)} ${l.GetCurrencySymbol(y)}`}),I&&e.jsx("div",{className:`${S>0?"full-price":""}`,children:`${l.formatPrice(C)} ${l.GetCurrencySymbol(y)}`}),R&&J,L&&Q]}),e.jsx("div",{className:"location-text",children:A})]}),K===!0&&e.jsx(Ce,{sponsoredText:ee})]})}),Ve=x.styled(r.SkeletonRowWrapper)`
299
+ `,Re=c.forwardRef(({sponsoredText:i="Sponsored"},y)=>e.jsxs(Ce,{ref:y,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:i})]})),Le="Vehicles_Cars",Ne="Vehicles_Motorcycles",We="Vehicles_Trucks",$e="Vehicles_AgriculturalMachines_Tractors",Ee="Vehicles_ConstructionMachines",Te="Vehicles_Bus",qe="Vehicles_Campers",Oe="RealEstates_",a={Mileage:{icon:"mng-lnc-road",measure:"km"},YearOfProduction:{icon:"mng-lnc-calendar",measure:""},Fuel:{icon:"mng-lnc-gas-station",measure:""},EnginePowerKW:{icon:"mng-lnc-engine",measure:"kW"},Transmission:{icon:"mng-lnc-transmission",measure:""},Model:{icon:"mng-lnc-application",measure:""},Brand:{icon:"mng-lnc-car--front",measure:""},SurfaceArea:{icon:"mng-lnc-right-angle",measure:""},Floor:{icon:"mng-lnc-elevator",measure:""},FurnishedCondition:{icon:"mng-lnc-sofa-01",measure:""},AdType:{icon:"mng-lnc-notes",measure:""},NumberOfRooms:{icon:"mng-lnc-meeting-room",measure:""},HeatingType:{icon:"mng-lnc-heat",measure:""},AirConditioning:{icon:"mng-lnc-air-conditioner",measure:""},Type:{icon:"mng-lnc-house-building",measure:""},Parking:{icon:"mng-lnc-parking-area-circle",measure:""},Internet:{icon:"mng-lnc-wifi-02",measure:""},State:{icon:"mng-lnc-settings-1",measure:""},NumberOfPremises:{icon:"mng-lnc-meeting-room",measure:""},Pool:{icon:"mng-lnc-pool",measure:""},Approach:{icon:"mng-lnc-driveway",measure:""},NumberOfBeds:{icon:"mng-lnc-bed",measure:""},Kitchen:{icon:"mng-lnc-fridge",measure:""},BathroomToilet:{icon:"mng-lnc-bath",measure:""},default:{icon:" mng-lnc-clock--filled",measure:""}},Ve=c.forwardRef((i,y)=>{const{uuid:f,sellerUuid:N,name:Y,price:P=0,sellingPrice:v,currency:j,isNegotiable:_,isFree:C,imageUrl:Z,location:A,sponsored:K,imageComponent:q,onSelectCard:H=()=>{},freeText:Q="Free",negotiableText:J="Negotiable",tags:t=[],categoryCode:R,categoryName:ee,condition:O,quantity:W,trade:V,sponsoredText:re,forCart:oe,forOrder:ne,contactSeller:te,hasVariants:ie,hasQuantities:ae,status:se,onBookmark:$=()=>{},actionComponent:x,bookmarked:B,bookmarkLists:le,metadata:b,sellerName:z}=i,E=Se.useDetectMobile(),ce=()=>{var m;if(!l.isDefined(x))return e.jsx(e.Fragment,{});const o=x,n=(m=x==null?void 0:x.props)==null?void 0:m.children,d=c.cloneElement(n,{key:`bookmark_pr__${B}`,bookmarked:B,productUuid:f,onAddToBookmark:()=>$(!0,f),onRemoveFromBookmark:()=>$(!1,f),bookmarkedUuidList:le,sellerUuid:N,handleBookmarking:$,forCart:oe,forOrder:ne,contactSeller:te,hasVariants:ie,status:se,quantity:W,hasQuantities:ae,productBasicInfo:{uuid:f,price:P,sellingPrice:v,categoryCode:R,categoryName:ee,currency:j,isNegotiable:_,isFree:C}});return c.cloneElement(o,void 0,d)},I=[Le,Ne,We,$e,Ee,Te,qe,Oe].some(o=>R==null?void 0:R.includes(o)),[de,M]=c.useState(!1),me=()=>{M(!0)},he=()=>{M(!1)},s=c.useRef(null),p=c.useRef([]),[ue,F]=c.useState(t==null?void 0:t.length),pe=()=>{var m,w,k;if(!(s!=null&&s.current)||((m=p==null?void 0:p.current)==null?void 0:m.length)===0)return;if(E){F(t==null?void 0:t.length);return}const o=(w=s==null?void 0:s.current)==null?void 0:w.offsetWidth;let n=0,d=0;for(let h=0;h<(t==null?void 0:t.length);h++){const g=((k=p==null?void 0:p.current[h])==null?void 0:k.offsetWidth)||0,u=n+g+4;if(u<=o)n+=u,d++;else break}F(d)};c.useEffect(()=>{const o=s==null?void 0:s.current;if(!o)return;const n=new ResizeObserver(()=>{pe()});return n.observe(o),()=>{n.disconnect()}},[t,E]);const ge=()=>{var o;return e.jsx("div",{className:"tags-popover__trigger",children:(o=t==null?void 0:t.slice(0,ue))==null?void 0:o.map((n,d)=>{var g,u,D,U,X;const m=((g=a==null?void 0:a[n==null?void 0:n.code])==null?void 0:g.icon)??((u=a==null?void 0:a.default)==null?void 0:u.icon)??"",w=((D=n==null?void 0:n.measurementUnit)==null?void 0:D.symbol)??((U=a==null?void 0:a[n==null?void 0:n.code])==null?void 0:U.measure)??"",h=[(n==null?void 0:n.value)??((X=n==null?void 0:n.multiOptions)==null?void 0:X[0])??"",w].filter(Boolean).join(" ");return e.jsxs(L,{ref:we=>p.current[d]=we,className:"tag",children:[e.jsx("i",{className:m}),h]},`detailed-products-section-tag__${d+1}`)})})},fe=()=>e.jsx("div",{className:"tags-popover__content",children:t==null?void 0:t.map((o,n)=>{var h,g,u;const d=((h=o==null?void 0:o.measurementUnit)==null?void 0:h.symbol)??((g=a==null?void 0:a[o==null?void 0:o.code])==null?void 0:g.measure)??"",w=[(o==null?void 0:o.value)??((u=o==null?void 0:o.multiOptions)==null?void 0:u[0])??"",d].filter(Boolean).join(" "),k=o==null?void 0:o.name;return e.jsxs("div",{children:[e.jsx("span",{className:"tags-popover__name",children:`${k}: `}),e.jsx("span",{className:"tags-popover__value",children:w})]},`detailed-products-section-tag-dropdown__${n+1}`)})}),be=()=>e.jsxs(e.Fragment,{children:[O&&e.jsx(L,{className:"tag",children:O},"detailed-products-section-tag__condition"),W&&e.jsx(L,{className:"tag",children:W},"detailed-products-section-tag__quantity"),V&&e.jsx(L,{className:"tag",children:V},"detailed-products-section-tag__trade")]}),G=P>0&&j&&_!==!0&&C!==!0&&P!==v;return e.jsxs(ye,{ref:s,className:"product-card","data-accessor":b==null?void 0:b.accessor,name:b==null?void 0:b.name,onClick:o=>H(o,s),children:[e.jsxs(Pe,{className:"product-image-wrapper",children:[e.jsx(ce,{}),l.isDefined(q)?q:e.jsx(ve.ProductImageWrapper,{src:Z})]}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"seller",title:z,children:z}),e.jsx("div",{className:"card-title",children:Y})]}),e.jsxs("div",{className:"wrapper-card-3",children:[I&&e.jsx("div",{...E?{}:{onMouseEnter:me,onMouseLeave:he},children:e.jsxs(je,{placement:"bottom",open:de,children:[e.jsx(xe,{children:ge()}),e.jsx(ke,{style:{all:"unset"},children:e.jsx(_e,{children:fe()})})]})}),!I&&be()]}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:`price-text ${G?"new-price":""}`,children:[v>0&&j&&_!==!0&&C!==!0&&e.jsx("div",{children:`${l.formatPrice(v)} ${l.GetCurrencySymbol(j)}`}),G&&e.jsx("div",{className:`${v>0?"full-price":""}`,children:`${l.formatPrice(P)} ${l.GetCurrencySymbol(j)}`}),_&&J,C&&Q]}),e.jsx("div",{className:"location-text",children:A})]}),K===!0&&e.jsx(Re,{sponsoredText:re})]})}),Be=S.styled(r.SkeletonRowWrapper)`
300
300
  @media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
301
301
  & > div {
302
302
  &:nth-of-type(even) {
@@ -304,4 +304,4 @@
304
304
  }
305
305
  }
306
306
  }
307
- `,Be=({keyPrefix:i})=>e.jsxs(Ve,{children:[e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonColumnWrapper,{height:"1rem",children:e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonColumnWrapper,{height:"2rem",children:e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${i}-1`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-2`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-3`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-4`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-5`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-6`)]}),ze=({keyPrefix:i,isLoading:k=!1,fallbackComponent:w=e.jsx(e.Fragment,{}),children:_})=>e.jsx(c.Suspense,{fallbackComponent:w,children:k===!0?e.jsx(Be,{keyPrefix:i}):_});exports.DetailedProductCard=Oe;exports.SuspenseDetailedProductCard=ze;
307
+ `,ze=({keyPrefix:i})=>e.jsxs(Be,{children:[e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonColumnWrapper,{height:"1rem",children:e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonColumnWrapper,{height:"2rem",children:e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${i}-1`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-2`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-3`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-4`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-5`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-6`)]}),Ie=({keyPrefix:i,isLoading:y=!1,fallbackComponent:f=e.jsx(e.Fragment,{}),children:N})=>e.jsx(c.Suspense,{fallbackComponent:f,children:y===!0?e.jsx(ze,{keyPrefix:i}):N});exports.DetailedProductCard=Ve;exports.SuspenseDetailedProductCard=Ie;
@@ -1,16 +1,16 @@
1
1
  import { jsxs as t, jsx as e, Fragment as M } from "react/jsx-runtime";
2
- import { forwardRef as ne, useState as Q, useRef as Z, useEffect as Te, cloneElement as J, Suspense as Ve } from "react";
3
- import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
2
+ import { forwardRef as ne, useState as Q, useRef as Z, useEffect as Ve, cloneElement as J, Suspense as Ee } from "react";
3
+ import { s as N } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as F } from "./consts-BuFChS64.js";
5
- import { t as G, o as Ee, a as Oe, l as ee, p as re, G as oe } from "./utils-Dc5zIpaz.js";
5
+ import { t as G, o as Oe, a as Be, l as ee, p as re, G as oe } from "./utils-Dc5zIpaz.js";
6
6
  import { P as ze } from "./index-C_NnINik.js";
7
- import S from "./Badge.js";
8
- import Be from "./Popover.js";
9
- import We from "./PopoverTrigger.js";
10
- import Ge from "./PopoverContent.js";
11
- import { u as Me } from "./useDetectMobile-Bkvj0VMa.js";
12
- import { a as f, S as p, c as w, b as n } from "./style-CXMUA6cI.js";
13
- const Fe = C.div`
7
+ import E from "./Badge.js";
8
+ import We from "./Popover.js";
9
+ import Ge from "./PopoverTrigger.js";
10
+ import Me from "./PopoverContent.js";
11
+ import { u as Fe } from "./useDetectMobile-Bkvj0VMa.js";
12
+ import { a as f, S as p, c as y, b as n } from "./style-CXMUA6cI.js";
13
+ const Ie = N.div`
14
14
  display: flex;
15
15
  flex-direction: column;
16
16
  gap: 0.5rem;
@@ -73,7 +73,7 @@ const Fe = C.div`
73
73
  & .card-title {
74
74
  font-size: 0.875rem;
75
75
  font-weight: 600;
76
- ${Ee(2)}
76
+ ${Oe(2)}
77
77
  }
78
78
 
79
79
  & .price-text {
@@ -178,7 +178,7 @@ const Fe = C.div`
178
178
  &:hover .product-image-wrapper img {
179
179
  transform: scale(1.1);
180
180
  }
181
- `, Ie = C.div`
181
+ `, je = N.div`
182
182
  position: relative;
183
183
  overflow: hidden;
184
184
  border-radius: 0.75rem;
@@ -199,7 +199,7 @@ const Fe = C.div`
199
199
 
200
200
  width: 2.25rem;
201
201
  height: 2.25rem;
202
- border-radius: ${(a) => Oe(a.theme, "curved")};
202
+ border-radius: ${(a) => Be(a.theme, "curved")};
203
203
  border: 1px solid var(--gray-95008);
204
204
  background-color: white;
205
205
  color: var(--gray-950);
@@ -246,7 +246,7 @@ const Fe = C.div`
246
246
  top: unset;
247
247
  }
248
248
  }
249
- `, je = C.div`
249
+ `, De = N.div`
250
250
  background: var(--white, #fff);
251
251
  z-index: 1;
252
252
 
@@ -296,7 +296,7 @@ const Fe = C.div`
296
296
  color: var(--gray-950, #14161a);
297
297
  }
298
298
  }
299
- `, De = C.div`
299
+ `, Ue = N.div`
300
300
  display: flex;
301
301
  align-items: center;
302
302
  gap: 0.25rem;
@@ -308,10 +308,10 @@ const Fe = C.div`
308
308
  font-size: 1rem;
309
309
  color: var(--warning-500, #F59E0B);
310
310
  }
311
- `, Ue = ne(({ sponsoredText: a = "Sponsored" }, R) => /* @__PURE__ */ t(De, { ref: R, className: "sponsored-line", children: [
311
+ `, Le = ne(({ sponsoredText: a = "Sponsored" }, $) => /* @__PURE__ */ t(Ue, { ref: $, className: "sponsored-line", children: [
312
312
  /* @__PURE__ */ e("i", { className: "mng-lnc-paw2" }),
313
313
  /* @__PURE__ */ e("span", { children: a })
314
- ] })), Le = "Vehicles_Cars", Xe = "Vehicles_Motorcycles", qe = "Vehicles_Trucks", xe = "Vehicles_AgriculturalMachines_Tractors", Ye = "Vehicles_ConstructionMachines", Ae = "Vehicles_Bus", Ke = "Vehicles_Campers", He = "RealEstates_", s = {
314
+ ] })), Xe = "Vehicles_Cars", qe = "Vehicles_Motorcycles", xe = "Vehicles_Trucks", Ye = "Vehicles_AgriculturalMachines_Tractors", Ae = "Vehicles_ConstructionMachines", Ke = "Vehicles_Bus", He = "Vehicles_Campers", Qe = "RealEstates_", s = {
315
315
  Mileage: {
316
316
  icon: "mng-lnc-road",
317
317
  measure: "km"
@@ -412,16 +412,16 @@ const Fe = C.div`
412
412
  icon: " mng-lnc-clock--filled",
413
413
  measure: ""
414
414
  }
415
- }, hr = ne((a, R) => {
415
+ }, pr = ne((a, $) => {
416
416
  const {
417
- uuid: y,
418
- sellerUuid: P,
417
+ uuid: b,
418
+ sellerUuid: O,
419
419
  name: te,
420
- price: T = 0,
421
- sellingPrice: N,
422
- currency: $,
423
- isNegotiable: V,
424
- isFree: E,
420
+ price: S = 0,
421
+ sellingPrice: k,
422
+ currency: _,
423
+ isNegotiable: P,
424
+ isFree: T,
425
425
  imageUrl: ie,
426
426
  location: ae,
427
427
  sponsored: se,
@@ -431,71 +431,82 @@ const Fe = C.div`
431
431
  freeText: ce = "Free",
432
432
  negotiableText: de = "Negotiable",
433
433
  tags: i = [],
434
- categoryCode: O,
434
+ categoryCode: V,
435
+ categoryName: me,
435
436
  condition: j,
436
- quantity: z,
437
+ quantity: B,
437
438
  trade: D,
438
- sponsoredText: me,
439
- forCart: he,
440
- forOrder: pe,
441
- contactSeller: ue,
442
- hasVariants: ge,
443
- hasQuantities: fe,
444
- status: be,
445
- onBookmark: B = () => {
439
+ sponsoredText: he,
440
+ forCart: pe,
441
+ forOrder: ue,
442
+ contactSeller: ge,
443
+ hasVariants: fe,
444
+ hasQuantities: be,
445
+ status: ve,
446
+ onBookmark: z = () => {
446
447
  },
447
- actionComponent: k,
448
+ actionComponent: C,
448
449
  bookmarked: U,
449
- bookmarkLists: ve,
450
- metadata: b,
450
+ bookmarkLists: we,
451
+ metadata: v,
451
452
  sellerName: L
452
- } = a, W = Me(), we = () => {
453
+ } = a, W = Fe(), ye = () => {
453
454
  var d;
454
- if (!ee(k)) return /* @__PURE__ */ e(M, {});
455
- const r = k, o = (d = k == null ? void 0 : k.props) == null ? void 0 : d.children, c = J(o, {
455
+ if (!ee(C)) return /* @__PURE__ */ e(M, {});
456
+ const r = C, o = (d = C == null ? void 0 : C.props) == null ? void 0 : d.children, c = J(o, {
456
457
  key: `bookmark_pr__${U}`,
457
458
  bookmarked: U,
458
- productUuid: y,
459
- onAddToBookmark: () => B(!0, y),
460
- onRemoveFromBookmark: () => B(!1, y),
461
- bookmarkedUuidList: ve,
462
- sellerUuid: P,
463
- handleBookmarking: B,
464
- forCart: he,
465
- forOrder: pe,
466
- contactSeller: ue,
467
- hasVariants: ge,
468
- status: be,
469
- quantity: z,
470
- hasQuantities: fe
459
+ productUuid: b,
460
+ onAddToBookmark: () => z(!0, b),
461
+ onRemoveFromBookmark: () => z(!1, b),
462
+ bookmarkedUuidList: we,
463
+ sellerUuid: O,
464
+ handleBookmarking: z,
465
+ forCart: pe,
466
+ forOrder: ue,
467
+ contactSeller: ge,
468
+ hasVariants: fe,
469
+ status: ve,
470
+ quantity: B,
471
+ hasQuantities: be,
472
+ productBasicInfo: {
473
+ uuid: b,
474
+ price: S,
475
+ sellingPrice: k,
476
+ categoryCode: V,
477
+ categoryName: me,
478
+ currency: _,
479
+ isNegotiable: P,
480
+ isFree: T
481
+ }
471
482
  });
472
483
  return J(r, void 0, c);
473
484
  }, X = [
474
- Le,
475
485
  Xe,
476
486
  qe,
477
487
  xe,
478
488
  Ye,
479
489
  Ae,
480
490
  Ke,
481
- He
491
+ He,
492
+ Qe
482
493
  ].some(
483
- (r) => O == null ? void 0 : O.includes(r)
484
- ), [ye, q] = Q(!1), ke = () => {
494
+ (r) => V == null ? void 0 : V.includes(r)
495
+ ), [ke, q] = Q(!1), _e = () => {
485
496
  q(!0);
486
- }, _e = () => {
497
+ }, Ce = () => {
487
498
  q(!1);
488
- }, l = Z(null), u = Z([]), [Ce, x] = Q(i == null ? void 0 : i.length), Re = () => {
489
- var d, v, _;
499
+ }, l = Z(null), u = Z([]), [Re, x] = Q(i == null ? void 0 : i.length), Ne = () => {
500
+ var d, w, R;
490
501
  if (!(l != null && l.current) || ((d = u == null ? void 0 : u.current) == null ? void 0 : d.length) === 0) return;
491
502
  if (W) {
492
503
  x(i == null ? void 0 : i.length);
493
504
  return;
494
505
  }
495
- const r = (v = l == null ? void 0 : l.current) == null ? void 0 : v.offsetWidth;
506
+ const r = (w = l == null ? void 0 : l.current) == null ? void 0 : w.offsetWidth;
496
507
  let o = 0, c = 0;
497
508
  for (let m = 0; m < (i == null ? void 0 : i.length); m++) {
498
- const g = ((_ = u == null ? void 0 : u.current[m]) == null ? void 0 : _.offsetWidth) || 0, h = o + g + 4;
509
+ const g = ((R = u == null ? void 0 : u.current[m]) == null ? void 0 : R.offsetWidth) || 0, h = o + g + 4;
499
510
  if (h <= r)
500
511
  o += h, c++;
501
512
  else
@@ -503,25 +514,25 @@ const Fe = C.div`
503
514
  }
504
515
  x(c);
505
516
  };
506
- Te(() => {
517
+ Ve(() => {
507
518
  const r = l == null ? void 0 : l.current;
508
519
  if (!r) return;
509
520
  const o = new ResizeObserver(() => {
510
- Re();
521
+ Ne();
511
522
  });
512
523
  return o.observe(r), () => {
513
524
  o.disconnect();
514
525
  };
515
526
  }, [i, W]);
516
- const Ne = () => {
527
+ const $e = () => {
517
528
  var r;
518
- return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = i == null ? void 0 : i.slice(0, Ce)) == null ? void 0 : r.map((o, c) => {
529
+ return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = i == null ? void 0 : i.slice(0, Re)) == null ? void 0 : r.map((o, c) => {
519
530
  var g, h, A, K, H;
520
- const d = ((g = s == null ? void 0 : s[o == null ? void 0 : o.code]) == null ? void 0 : g.icon) ?? ((h = s == null ? void 0 : s.default) == null ? void 0 : h.icon) ?? "", v = ((A = o == null ? void 0 : o.measurementUnit) == null ? void 0 : A.symbol) ?? ((K = s == null ? void 0 : s[o == null ? void 0 : o.code]) == null ? void 0 : K.measure) ?? "", m = [(o == null ? void 0 : o.value) ?? ((H = o == null ? void 0 : o.multiOptions) == null ? void 0 : H[0]) ?? "", v].filter(Boolean).join(" ");
531
+ const d = ((g = s == null ? void 0 : s[o == null ? void 0 : o.code]) == null ? void 0 : g.icon) ?? ((h = s == null ? void 0 : s.default) == null ? void 0 : h.icon) ?? "", w = ((A = o == null ? void 0 : o.measurementUnit) == null ? void 0 : A.symbol) ?? ((K = s == null ? void 0 : s[o == null ? void 0 : o.code]) == null ? void 0 : K.measure) ?? "", m = [(o == null ? void 0 : o.value) ?? ((H = o == null ? void 0 : o.multiOptions) == null ? void 0 : H[0]) ?? "", w].filter(Boolean).join(" ");
521
532
  return /* @__PURE__ */ t(
522
- S,
533
+ E,
523
534
  {
524
- ref: (Pe) => u.current[c] = Pe,
535
+ ref: (Te) => u.current[c] = Te,
525
536
  className: "tag",
526
537
  children: [
527
538
  /* @__PURE__ */ e("i", { className: d }),
@@ -531,31 +542,31 @@ const Fe = C.div`
531
542
  `detailed-products-section-tag__${c + 1}`
532
543
  );
533
544
  }) });
534
- }, $e = () => /* @__PURE__ */ e("div", { className: "tags-popover__content", children: i == null ? void 0 : i.map((r, o) => {
545
+ }, Se = () => /* @__PURE__ */ e("div", { className: "tags-popover__content", children: i == null ? void 0 : i.map((r, o) => {
535
546
  var m, g, h;
536
- const c = ((m = r == null ? void 0 : r.measurementUnit) == null ? void 0 : m.symbol) ?? ((g = s == null ? void 0 : s[r == null ? void 0 : r.code]) == null ? void 0 : g.measure) ?? "", v = [(r == null ? void 0 : r.value) ?? ((h = r == null ? void 0 : r.multiOptions) == null ? void 0 : h[0]) ?? "", c].filter(Boolean).join(" "), _ = r == null ? void 0 : r.name;
547
+ const c = ((m = r == null ? void 0 : r.measurementUnit) == null ? void 0 : m.symbol) ?? ((g = s == null ? void 0 : s[r == null ? void 0 : r.code]) == null ? void 0 : g.measure) ?? "", w = [(r == null ? void 0 : r.value) ?? ((h = r == null ? void 0 : r.multiOptions) == null ? void 0 : h[0]) ?? "", c].filter(Boolean).join(" "), R = r == null ? void 0 : r.name;
537
548
  return /* @__PURE__ */ t("div", { children: [
538
- /* @__PURE__ */ e("span", { className: "tags-popover__name", children: `${_}: ` }),
539
- /* @__PURE__ */ e("span", { className: "tags-popover__value", children: v })
549
+ /* @__PURE__ */ e("span", { className: "tags-popover__name", children: `${R}: ` }),
550
+ /* @__PURE__ */ e("span", { className: "tags-popover__value", children: w })
540
551
  ] }, `detailed-products-section-tag-dropdown__${o + 1}`);
541
- }) }), Se = () => /* @__PURE__ */ t(M, { children: [
542
- j && /* @__PURE__ */ e(S, { className: "tag", children: j }, "detailed-products-section-tag__condition"),
543
- z && /* @__PURE__ */ e(S, { className: "tag", children: z }, "detailed-products-section-tag__quantity"),
544
- D && /* @__PURE__ */ e(S, { className: "tag", children: D }, "detailed-products-section-tag__trade")
545
- ] }), Y = T > 0 && $ && V !== !0 && E !== !0 && T !== N;
552
+ }) }), Pe = () => /* @__PURE__ */ t(M, { children: [
553
+ j && /* @__PURE__ */ e(E, { className: "tag", children: j }, "detailed-products-section-tag__condition"),
554
+ B && /* @__PURE__ */ e(E, { className: "tag", children: B }, "detailed-products-section-tag__quantity"),
555
+ D && /* @__PURE__ */ e(E, { className: "tag", children: D }, "detailed-products-section-tag__trade")
556
+ ] }), Y = S > 0 && _ && P !== !0 && T !== !0 && S !== k;
546
557
  return (
547
558
  // <LandingPageProductCardSkeleton />
548
559
  /* @__PURE__ */ t(
549
- Fe,
560
+ Ie,
550
561
  {
551
562
  ref: l,
552
563
  className: "product-card",
553
- "data-accessor": b == null ? void 0 : b.accessor,
554
- name: b == null ? void 0 : b.name,
564
+ "data-accessor": v == null ? void 0 : v.accessor,
565
+ name: v == null ? void 0 : v.name,
555
566
  onClick: (r) => le(r, l),
556
567
  children: [
557
- /* @__PURE__ */ t(Ie, { className: "product-image-wrapper", children: [
558
- /* @__PURE__ */ e(we, {}),
568
+ /* @__PURE__ */ t(je, { className: "product-image-wrapper", children: [
569
+ /* @__PURE__ */ e(ye, {}),
559
570
  ee(I) ? I : /* @__PURE__ */ e(ze, { src: ie })
560
571
  ] }),
561
572
  /* @__PURE__ */ t("div", { className: "wrapper-card-1", children: [
@@ -567,32 +578,32 @@ const Fe = C.div`
567
578
  "div",
568
579
  {
569
580
  ...W ? {} : {
570
- onMouseEnter: ke,
571
- onMouseLeave: _e
581
+ onMouseEnter: _e,
582
+ onMouseLeave: Ce
572
583
  },
573
- children: /* @__PURE__ */ t(Be, { placement: "bottom", open: ye, children: [
574
- /* @__PURE__ */ e(We, { children: Ne() }),
575
- /* @__PURE__ */ e(Ge, { style: { all: "unset" }, children: /* @__PURE__ */ e(je, { children: $e() }) })
584
+ children: /* @__PURE__ */ t(We, { placement: "bottom", open: ke, children: [
585
+ /* @__PURE__ */ e(Ge, { children: $e() }),
586
+ /* @__PURE__ */ e(Me, { style: { all: "unset" }, children: /* @__PURE__ */ e(De, { children: Se() }) })
576
587
  ] })
577
588
  }
578
589
  ),
579
- !X && Se()
590
+ !X && Pe()
580
591
  ] }),
581
592
  /* @__PURE__ */ t("div", { className: "wrapper-card-2", children: [
582
593
  /* @__PURE__ */ t("div", { className: `price-text ${Y ? "new-price" : ""}`, children: [
583
- N > 0 && $ && V !== !0 && E !== !0 && /* @__PURE__ */ e("div", { children: `${re(N)} ${oe($)}` }),
584
- Y && /* @__PURE__ */ e("div", { className: `${N > 0 ? "full-price" : ""}`, children: `${re(T)} ${oe($)}` }),
585
- V && de,
586
- E && ce
594
+ k > 0 && _ && P !== !0 && T !== !0 && /* @__PURE__ */ e("div", { children: `${re(k)} ${oe(_)}` }),
595
+ Y && /* @__PURE__ */ e("div", { className: `${k > 0 ? "full-price" : ""}`, children: `${re(S)} ${oe(_)}` }),
596
+ P && de,
597
+ T && ce
587
598
  ] }),
588
599
  /* @__PURE__ */ e("div", { className: "location-text", children: ae })
589
600
  ] }),
590
- se === !0 && /* @__PURE__ */ e(Ue, { sponsoredText: me })
601
+ se === !0 && /* @__PURE__ */ e(Le, { sponsoredText: he })
591
602
  ]
592
603
  }
593
604
  )
594
605
  );
595
- }), Qe = C(f)`
606
+ }), Ze = N(f)`
596
607
  @media (max-width: ${F + "px"}) {
597
608
  & > div {
598
609
  &:nth-of-type(even) {
@@ -600,10 +611,10 @@ const Fe = C.div`
600
611
  }
601
612
  }
602
613
  }
603
- `, Ze = ({ keyPrefix: a }) => /* @__PURE__ */ t(Qe, { children: [
614
+ `, Je = ({ keyPrefix: a }) => /* @__PURE__ */ t(Ze, { children: [
604
615
  /* @__PURE__ */ t(p, { gap: "0.5rem", children: [
605
616
  /* @__PURE__ */ e(
606
- w,
617
+ y,
607
618
  {
608
619
  height: "100%",
609
620
  width: "100%",
@@ -624,7 +635,7 @@ const Fe = C.div`
624
635
  noGradient: !0,
625
636
  children: [
626
637
  /* @__PURE__ */ e(
627
- w,
638
+ y,
628
639
  {
629
640
  height: "100%",
630
641
  width: "100%",
@@ -648,7 +659,7 @@ const Fe = C.div`
648
659
  noGradient: !0,
649
660
  children: [
650
661
  /* @__PURE__ */ e(
651
- w,
662
+ y,
652
663
  {
653
664
  height: "100%",
654
665
  width: "100%",
@@ -672,7 +683,7 @@ const Fe = C.div`
672
683
  noGradient: !0,
673
684
  children: [
674
685
  /* @__PURE__ */ e(
675
- w,
686
+ y,
676
687
  {
677
688
  height: "100%",
678
689
  width: "100%",
@@ -696,7 +707,7 @@ const Fe = C.div`
696
707
  noGradient: !0,
697
708
  children: [
698
709
  /* @__PURE__ */ e(
699
- w,
710
+ y,
700
711
  {
701
712
  height: "100%",
702
713
  width: "100%",
@@ -720,7 +731,7 @@ const Fe = C.div`
720
731
  noGradient: !0,
721
732
  children: [
722
733
  /* @__PURE__ */ e(
723
- w,
734
+ y,
724
735
  {
725
736
  height: "100%",
726
737
  width: "100%",
@@ -737,13 +748,13 @@ const Fe = C.div`
737
748
  },
738
749
  `${a}-6`
739
750
  )
740
- ] }), pr = ({
751
+ ] }), ur = ({
741
752
  keyPrefix: a,
742
- isLoading: R = !1,
743
- fallbackComponent: y = /* @__PURE__ */ e(M, {}),
744
- children: P
745
- }) => /* @__PURE__ */ e(Ve, { fallbackComponent: y, children: R === !0 ? /* @__PURE__ */ e(Ze, { keyPrefix: a }) : P });
753
+ isLoading: $ = !1,
754
+ fallbackComponent: b = /* @__PURE__ */ e(M, {}),
755
+ children: O
756
+ }) => /* @__PURE__ */ e(Ee, { fallbackComponent: b, children: $ === !0 ? /* @__PURE__ */ e(Je, { keyPrefix: a }) : O });
746
757
  export {
747
- hr as D,
748
- pr as S
758
+ pr as D,
759
+ ur as S
749
760
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.182",
3
+ "version": "4.0.183",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [