@lanaco/lnc-react-ui 4.0.182 → 4.0.184

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;
package/dist/Modal.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),y=require("react"),o=require("./index-BpbMKBf_.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),_=require("./Icon.cjs"),w=require("./utils-RnrgDDZP.cjs"),V=require("./index-41nUb2kP.cjs"),L=require("./motion-B_VPZaJq.cjs"),G=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),N=require("./index-DZoWlChs.cjs"),x="5rem",h="3.8rem",i="1.5rem",W=(e,n,a)=>n&&a?e=="FULL"?`calc(100dvh - ${h} - ${x})`:`calc(100dvh - ${h} - ${x} - ${i})`:n?e=="FULL"?`calc(100dvh - ${h})`:`calc(100dvh - ${h} - ${i})`:a?e=="FULL"?`calc(100dvh - ${x})`:`calc(100dvh - ${x} - ${i})`:e=="FULL"?"100dvh":`calc(100dvh - ${i})`,X=e=>e=="FULL"?"100vw":`calc(100vw - ${i})`,J=(e,n,a)=>e=="FULL"?"0":`${n?"0":"16px"} 0 ${a?"0":"16px"} 0`,K=C.styled(L.motion.div)`
1
+ "use strict";const r=require("react/jsx-runtime"),y=require("react"),o=require("./index-BpbMKBf_.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),V=require("./Icon.cjs"),w=require("./utils-RnrgDDZP.cjs"),G=require("./index-41nUb2kP.cjs"),L=require("./motion-B_VPZaJq.cjs"),W=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),N=require("./index-DZoWlChs.cjs"),f="5rem",h="3.8rem",l="1.5rem",X=(e,n,a)=>n&&a?e=="FULL"?`calc(100dvh - ${h} - ${f})`:`calc(100dvh - ${h} - ${f} - ${l})`:n?e=="FULL"?`calc(100dvh - ${h})`:`calc(100dvh - ${h} - ${l})`:a?e=="FULL"?`calc(100dvh - ${f})`:`calc(100dvh - ${f} - ${l})`:e=="FULL"?"100dvh":`calc(100dvh - ${l})`,J=e=>e=="FULL"?"100vw":`calc(100vw - ${l})`,K=(e,n,a)=>e=="FULL"?"0":`${n?"0":"16px"} 0 ${a?"0":"16px"} 0`,Q=C.styled(L.motion.div)`
2
2
  position: ${e=>e.scrollOverlay==!0?"absolute":"fixed"};
3
3
  top: 0;
4
4
  left: 0;
@@ -7,16 +7,17 @@
7
7
  background: ${e=>e.scrollOverlay===!0?"transparent":e.overlayColor};
8
8
  z-index: ${e=>e.zIndex};
9
9
  display: flex;
10
- `,Q=C.styled(L.motion.div)`
10
+ `,Y=C.styled(L.motion.div)`
11
11
  position: relative;
12
12
  width: 50%;
13
13
  background-color: white;
14
14
  ${e=>e.scrollOverlay==!1?"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);":"height: fit-content; margin-right: auto; margin-left: auto;"}
15
15
  background-color: ${e=>w.getColorRgbaValue(e.theme,"Modal","default","enabled","bg")};
16
16
  z-index: ${e=>e.zIndex};
17
- width: ${e=>ee[e.size.toUpperCase()]};
18
- max-width: ${e=>X(e.size.toUpperCase())};
19
- box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
17
+ width: ${e=>oe[e.size.toUpperCase()]};
18
+ max-width: ${e=>J(e.size.toUpperCase())};
19
+ box-shadow:
20
+ 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
20
21
  0px 10px 10px -5px rgba(0, 0, 0, 0.04);
21
22
  border-radius: ${e=>e.size.toUpperCase()!="FULL"?"16px":"0"};
22
23
  display: flex;
@@ -26,7 +27,7 @@
26
27
  & .lnc-modal-header {
27
28
  max-height: ${h};
28
29
  overflow: hidden;
29
- padding: ${i} ${i} 0 ${i};
30
+ padding: ${l} ${l} 0 ${l};
30
31
  }
31
32
  & .lnc-modal-header > h1,
32
33
  h2,
@@ -34,7 +35,7 @@
34
35
  margin: 0;
35
36
  }
36
37
  & .lnc-modal-footer {
37
- max-height: ${x};
38
+ max-height: ${f};
38
39
  overflow: hidden;
39
40
  padding-top: 1rem;
40
41
  }
@@ -45,12 +46,12 @@
45
46
  flex-direction: column;
46
47
  justify-content: space-between;
47
48
  scrollbar-width: thin;
48
- ${e=>e.scrollOverlay==!1&&`max-height: ${W(e.size.toUpperCase(),e.header,e.footer)};`}
49
+ ${e=>e.scrollOverlay==!1&&`max-height: ${X(e.size.toUpperCase(),e.header,e.footer)};`}
49
50
  overflow: auto;
50
- margin: ${e=>J(e.size,e.header,e.footer)};
51
- padding: 0 ${i} 0 ${i};
51
+ margin: ${e=>K(e.size,e.header,e.footer)};
52
+ padding: 0 ${l} 0 ${l};
52
53
  }
53
- `,Y=C.styled.div`
54
+ `,Z=C.styled.div`
54
55
  position: absolute;
55
56
  cursor: pointer;
56
57
  top: 1.375rem;
@@ -72,7 +73,7 @@
72
73
  &:focus {
73
74
  background-color: ${e=>w.getColorRgbaValue(e.theme,"Modal","primary","focus","cancelBtnBg","cancelBtnBgOpacity")};
74
75
  }
75
- `,Z=C.styled(L.motion.div)`
76
+ `,ee=C.styled(L.motion.div)`
76
77
  display: ${e=>e.scrollOverlay===!0?"block":"none"};
77
78
  position: fixed;
78
79
  top: 0;
@@ -81,4 +82,4 @@
81
82
  width: 100%;
82
83
  background-color: ${e=>e.overlayColor};
83
84
  z-index: 3;
84
- `,A=y.forwardRef((e,n)=>{const{portalElement:a=document.body,isOpen:c=!1,header:p,footer:l,scrollOverlay:s=!1,overlay:d=!0,overlayColor:u="rgba(0, 0, 0, 0.3)",showCloseButton:m=!0,onOpen:f=()=>{},onClose:g=()=>{},zIndex:O=1e3,size:$="fluid",clickOutsideToClose:b=!0,className:T="",style:D={},overlayProps:P,overlayAnimation:F={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},modalAnimation:U={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},onFinishOpen:H=()=>{},children:z,rest:M}=e,R=y.useRef(),[v,k]=y.useState(c);let B={theme:G.useTheme(),size:$,zIndex:O,className:T,style:D};const q=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),t.target===t.currentTarget&&b&&j(t)};y.useImperativeHandle(n,()=>({open(){S()},close(){j()},isOpen(){return v}}));const S=t=>{k(!0),f(t)},j=t=>{k(!1),g(t)};return y.useEffect(()=>{v===!0&&H()},[v]),r.jsx(r.Fragment,{children:v&&r.jsx(r.Fragment,{children:a?r.jsx(r.Fragment,{children:V.reactDomExports.createPortal(r.jsx(E,{ref:R,overlay:d,scrollOverlay:s,onClickOutsideModal:q,overlayColor:u,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:m,close:j,header:p,footer:l,isOpen:c,...M,children:z}),a)}):r.jsx(E,{ref:R,overlay:d,scrollOverlay:s,onClickOutsideModal:q,overlayColor:u,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:m,close:j,header:p,footer:l,isOpen:c,...M,children:z})})})}),E=y.forwardRef(({overlay:e,scrollOverlay:n,onClickOutsideModal:a,overlayColor:c,overlayProps:p,overlayAnimation:l,modalAnimation:s,themeProps:d,showCloseButton:u,header:m,footer:f,close:g,isOpen:O,children:$,...b},T)=>r.jsx(N.AnimatePresence,{children:e?r.jsxs(r.Fragment,{children:[r.jsx(Z,{scrollOverlay:n,onClick:a,overlayColor:c,...p,...l}),r.jsx(K,{...d,onClick:a,scrollOverlay:n,overlayColor:c,isOpen:O,...p,...l,children:r.jsx(I,{ref:T,themeProps:d,scrollOverlay:n,modalAnimation:s,showCloseButton:u,close:g,header:m,footer:f,...b,children:$})})]}):r.jsx(I,{ref:T,themeProps:d,modalAnimation:s,showCloseButton:u,close:g,header:m,footer:f,...b,children:$})})),I=y.forwardRef(({themeProps:e,scrollOverlay:n,modalAnimation:a,showCloseButton:c,close:p,header:l,footer:s,children:d,...u},m)=>r.jsx(N.AnimatePresence,{children:r.jsxs(Q,{ref:m,...e,...a,header:l,footer:s,scrollOverlay:n,...u,className:`modal-lnc-container ${e==null?void 0:e.className}`,children:[c&&r.jsx(Y,{...e,className:"modal-lnc-times",onClick:p,children:r.jsx(_,{icon:"times"})}),l&&r.jsx("div",{className:"lnc-modal-header",children:l}),r.jsx("div",{className:"lnc-modal-content",children:d}),s&&r.jsx("div",{className:"lnc-modal-footer",children:s})]})}));A.propTypes={portalElement:o.PropTypes.any,isOpen:o.PropTypes.bool,header:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),footer:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),showCloseButton:o.PropTypes.bool,overlay:o.PropTypes.bool,scrollOverlay:o.PropTypes.bool,onOpen:o.PropTypes.func,onClose:o.PropTypes.func,zIndex:o.PropTypes.number,clickOutsideToClose:o.PropTypes.bool,overlayColor:o.PropTypes.string,overlayAnimation:o.PropTypes.object,modalAnimation:o.PropTypes.object,className:o.PropTypes.string,style:o.PropTypes.object,size:o.PropTypes.oneOf(["fluid","xs","s","m","l","xl","full"]),overlayProps:o.PropTypes.any};const ee={FLUID:"max-content",XS:"320px",S:"412px",M:"672px",L:"1112px",XL:"1376px",FULL:"100vw"};module.exports=A;
85
+ `,D=y.forwardRef((e,n)=>{const{preventDefault:a=!1,portalElement:p=document.body,isOpen:c=!1,header:i,footer:s,scrollOverlay:d=!1,overlay:u=!0,overlayColor:m="rgba(0, 0, 0, 0.3)",showCloseButton:x=!0,onOpen:g=()=>{},onClose:O=()=>{},zIndex:$=1e3,size:b="fluid",clickOutsideToClose:T=!0,className:A="",style:H={},overlayProps:P,overlayAnimation:F={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},modalAnimation:U={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},onFinishOpen:S=()=>{},children:z,rest:M}=e,R=y.useRef(),[v,k]=y.useState(c);let B={theme:W.useTheme(),size:b,zIndex:$,className:A,style:H};const q=t=>{a&&(t==null||t.preventDefault(),t==null||t.stopPropagation()),t.target===t.currentTarget&&T&&j(t)};y.useImperativeHandle(n,()=>({open(){_()},close(){j()},isOpen(){return v}}));const _=t=>{k(!0),g(t)},j=t=>{k(!1),O(t)};return y.useEffect(()=>{v===!0&&S()},[v]),r.jsx(r.Fragment,{children:v&&r.jsx(r.Fragment,{children:p?r.jsx(r.Fragment,{children:G.reactDomExports.createPortal(r.jsx(E,{ref:R,overlay:u,scrollOverlay:d,onClickOutsideModal:q,overlayColor:m,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:x,close:j,header:i,footer:s,isOpen:c,...M,children:z}),p)}):r.jsx(E,{ref:R,overlay:u,scrollOverlay:d,onClickOutsideModal:q,overlayColor:m,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:x,close:j,header:i,footer:s,isOpen:c,...M,children:z})})})}),E=y.forwardRef(({overlay:e,scrollOverlay:n,onClickOutsideModal:a,overlayColor:p,overlayProps:c,overlayAnimation:i,modalAnimation:s,themeProps:d,showCloseButton:u,header:m,footer:x,close:g,isOpen:O,children:$,...b},T)=>r.jsx(N.AnimatePresence,{children:e?r.jsxs(r.Fragment,{children:[r.jsx(ee,{scrollOverlay:n,onClick:a,overlayColor:p,...c,...i}),r.jsx(Q,{...d,onClick:a,scrollOverlay:n,overlayColor:p,isOpen:O,...c,...i,children:r.jsx(I,{ref:T,themeProps:d,scrollOverlay:n,modalAnimation:s,showCloseButton:u,close:g,header:m,footer:x,...b,children:$})})]}):r.jsx(I,{ref:T,themeProps:d,modalAnimation:s,showCloseButton:u,close:g,header:m,footer:x,...b,children:$})})),I=y.forwardRef(({themeProps:e,scrollOverlay:n,modalAnimation:a,showCloseButton:p,close:c,header:i,footer:s,children:d,...u},m)=>r.jsx(N.AnimatePresence,{children:r.jsxs(Y,{ref:m,...e,...a,header:i,footer:s,scrollOverlay:n,...u,className:`modal-lnc-container ${e==null?void 0:e.className}`,children:[p&&r.jsx(Z,{...e,className:"modal-lnc-times",onClick:c,children:r.jsx(V,{icon:"times"})}),i&&r.jsx("div",{className:"lnc-modal-header",children:i}),r.jsx("div",{className:"lnc-modal-content",children:d}),s&&r.jsx("div",{className:"lnc-modal-footer",children:s})]})}));D.propTypes={portalElement:o.PropTypes.any,isOpen:o.PropTypes.bool,header:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),footer:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),showCloseButton:o.PropTypes.bool,overlay:o.PropTypes.bool,scrollOverlay:o.PropTypes.bool,onOpen:o.PropTypes.func,onClose:o.PropTypes.func,zIndex:o.PropTypes.number,clickOutsideToClose:o.PropTypes.bool,overlayColor:o.PropTypes.string,overlayAnimation:o.PropTypes.object,modalAnimation:o.PropTypes.object,className:o.PropTypes.string,style:o.PropTypes.object,size:o.PropTypes.oneOf(["fluid","xs","s","m","l","xl","full"]),overlayProps:o.PropTypes.any};const oe={FLUID:"max-content",XS:"320px",S:"412px",M:"672px",L:"1112px",XL:"1376px",FULL:"100vw"};module.exports=D;
package/dist/Modal.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { jsx as t, Fragment as L, jsxs as R } from "react/jsx-runtime";
2
- import { forwardRef as z, useRef as X, useState as V, useImperativeHandle as q, useEffect as J } from "react";
2
+ import { forwardRef as z, useRef as V, useState as q, useImperativeHandle as J, useEffect as K } from "react";
3
3
  import { P as o } from "./index-CblbdqjE.js";
4
4
  import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import K from "./Icon.js";
5
+ import P from "./Icon.js";
6
6
  import { b as w } from "./utils-Dc5zIpaz.js";
7
- import { r as P } from "./index-B1vKwsDE.js";
7
+ import { r as Q } from "./index-B1vKwsDE.js";
8
8
  import { m as M } from "./motion-Ckekul_K.js";
9
- import { u as Q } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
+ import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
10
10
  import { A as S } from "./index-D-c5IxDk.js";
11
- const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FULL" ? `calc(100dvh - ${h} - ${f})` : `calc(100dvh - ${h} - ${f} - ${l})` : n ? e == "FULL" ? `calc(100dvh - ${h})` : `calc(100dvh - ${h} - ${l})` : a ? e == "FULL" ? `calc(100dvh - ${f})` : `calc(100dvh - ${f} - ${l})` : e == "FULL" ? "100dvh" : `calc(100dvh - ${l})`, Z = (e) => e == "FULL" ? "100vw" : `calc(100vw - ${l})`, ee = (e, n, a) => e == "FULL" ? "0" : `${n ? "0" : "16px"} 0 ${a ? "0" : "16px"} 0`, oe = C(M.div)`
11
+ const h = "5rem", g = "3.8rem", l = "1.5rem", Z = (e, n, a) => n && a ? e == "FULL" ? `calc(100dvh - ${g} - ${h})` : `calc(100dvh - ${g} - ${h} - ${l})` : n ? e == "FULL" ? `calc(100dvh - ${g})` : `calc(100dvh - ${g} - ${l})` : a ? e == "FULL" ? `calc(100dvh - ${h})` : `calc(100dvh - ${h} - ${l})` : e == "FULL" ? "100dvh" : `calc(100dvh - ${l})`, ee = (e) => e == "FULL" ? "100vw" : `calc(100vw - ${l})`, oe = (e, n, a) => e == "FULL" ? "0" : `${n ? "0" : "16px"} 0 ${a ? "0" : "16px"} 0`, te = C(M.div)`
12
12
  position: ${(e) => e.scrollOverlay == !0 ? "absolute" : "fixed"};
13
13
  top: 0;
14
14
  left: 0;
@@ -17,16 +17,17 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
17
17
  background: ${(e) => e.scrollOverlay === !0 ? "transparent" : e.overlayColor};
18
18
  z-index: ${(e) => e.zIndex};
19
19
  display: flex;
20
- `, te = C(M.div)`
20
+ `, re = C(M.div)`
21
21
  position: relative;
22
22
  width: 50%;
23
23
  background-color: white;
24
24
  ${(e) => e.scrollOverlay == !1 ? "position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" : "height: fit-content; margin-right: auto; margin-left: auto;"}
25
25
  background-color: ${(e) => w(e.theme, "Modal", "default", "enabled", "bg")};
26
26
  z-index: ${(e) => e.zIndex};
27
- width: ${(e) => le[e.size.toUpperCase()]};
28
- max-width: ${(e) => Z(e.size.toUpperCase())};
29
- box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
27
+ width: ${(e) => ie[e.size.toUpperCase()]};
28
+ max-width: ${(e) => ee(e.size.toUpperCase())};
29
+ box-shadow:
30
+ 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
30
31
  0px 10px 10px -5px rgba(0, 0, 0, 0.04);
31
32
  border-radius: ${(e) => e.size.toUpperCase() != "FULL" ? "16px" : "0"};
32
33
  display: flex;
@@ -34,7 +35,7 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
34
35
  gap: 0.5rem;
35
36
 
36
37
  & .lnc-modal-header {
37
- max-height: ${h};
38
+ max-height: ${g};
38
39
  overflow: hidden;
39
40
  padding: ${l} ${l} 0 ${l};
40
41
  }
@@ -44,7 +45,7 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
44
45
  margin: 0;
45
46
  }
46
47
  & .lnc-modal-footer {
47
- max-height: ${f};
48
+ max-height: ${h};
48
49
  overflow: hidden;
49
50
  padding-top: 1rem;
50
51
  }
@@ -55,16 +56,16 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
55
56
  flex-direction: column;
56
57
  justify-content: space-between;
57
58
  scrollbar-width: thin;
58
- ${(e) => e.scrollOverlay == !1 && `max-height: ${Y(
59
+ ${(e) => e.scrollOverlay == !1 && `max-height: ${Z(
59
60
  e.size.toUpperCase(),
60
61
  e.header,
61
62
  e.footer
62
63
  )};`}
63
64
  overflow: auto;
64
- margin: ${(e) => ee(e.size, e.header, e.footer)};
65
+ margin: ${(e) => oe(e.size, e.header, e.footer)};
65
66
  padding: 0 ${l} 0 ${l};
66
67
  }
67
- `, re = C.div`
68
+ `, ne = C.div`
68
69
  position: absolute;
69
70
  cursor: pointer;
70
71
  top: 1.375rem;
@@ -106,7 +107,7 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
106
107
  "cancelBtnBgOpacity"
107
108
  )};
108
109
  }
109
- `, ne = C(M.div)`
110
+ `, ae = C(M.div)`
110
111
  display: ${(e) => e.scrollOverlay === !0 ? "block" : "none"};
111
112
  position: fixed;
112
113
  top: 0;
@@ -115,25 +116,26 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
115
116
  width: 100%;
116
117
  background-color: ${(e) => e.overlayColor};
117
118
  z-index: 3;
118
- `, ae = z((e, n) => {
119
+ `, le = z((e, n) => {
119
120
  const {
120
- portalElement: a = document.body,
121
+ preventDefault: a = !1,
122
+ portalElement: m = document.body,
121
123
  isOpen: s = !1,
122
- header: m,
123
- footer: i,
124
- scrollOverlay: c = !1,
125
- overlay: d = !0,
126
- overlayColor: p = "rgba(0, 0, 0, 0.3)",
124
+ header: i,
125
+ footer: c,
126
+ scrollOverlay: d = !1,
127
+ overlay: p = !0,
128
+ overlayColor: f = "rgba(0, 0, 0, 0.3)",
127
129
  showCloseButton: u = !0,
128
- onOpen: g = () => {
130
+ onOpen: x = () => {
129
131
  },
130
- onClose: x = () => {
132
+ onClose: U = () => {
131
133
  },
132
- zIndex: U = 1e3,
133
- size: y = "fluid",
134
- clickOutsideToClose: $ = !0,
135
- className: b = "",
136
- style: G = {},
134
+ zIndex: y = 1e3,
135
+ size: $ = "fluid",
136
+ clickOutsideToClose: b = !0,
137
+ className: G = "",
138
+ style: _ = {},
137
139
  overlayProps: F,
138
140
  overlayAnimation: k = {
139
141
  animate: { opacity: 1 },
@@ -151,18 +153,18 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
151
153
  },
152
154
  transition: { type: "spring", duration: 0.6 }
153
155
  },
154
- onFinishOpen: _ = () => {
156
+ onFinishOpen: W = () => {
155
157
  },
156
158
  children: T,
157
159
  rest: I
158
- } = e, E = X(), [v, N] = V(s);
159
- let j = { theme: Q(), size: y, zIndex: U, className: b, style: G };
160
- const A = (r) => {
161
- r == null || r.preventDefault(), r == null || r.stopPropagation(), r.target === r.currentTarget && $ && O(r);
160
+ } = e, E = V(), [v, N] = q(s);
161
+ let D = { theme: Y(), size: $, zIndex: y, className: G, style: _ };
162
+ const j = (r) => {
163
+ a && (r == null || r.preventDefault(), r == null || r.stopPropagation()), r.target === r.currentTarget && b && O(r);
162
164
  };
163
- q(n, () => ({
165
+ J(n, () => ({
164
166
  open() {
165
- W();
167
+ X();
166
168
  },
167
169
  close() {
168
170
  O();
@@ -171,94 +173,94 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
171
173
  return v;
172
174
  }
173
175
  }));
174
- const W = (r) => {
175
- N(!0), g(r);
176
+ const X = (r) => {
177
+ N(!0), x(r);
176
178
  }, O = (r) => {
177
- N(!1), x(r);
179
+ N(!1), U(r);
178
180
  };
179
- return J(() => {
180
- v === !0 && _();
181
- }, [v]), /* @__PURE__ */ t(L, { children: v && /* @__PURE__ */ t(L, { children: a ? /* @__PURE__ */ t(L, { children: P.createPortal(
181
+ return K(() => {
182
+ v === !0 && W();
183
+ }, [v]), /* @__PURE__ */ t(L, { children: v && /* @__PURE__ */ t(L, { children: m ? /* @__PURE__ */ t(L, { children: Q.createPortal(
182
184
  /* @__PURE__ */ t(
183
- D,
185
+ A,
184
186
  {
185
187
  ref: E,
186
- overlay: d,
187
- scrollOverlay: c,
188
- onClickOutsideModal: A,
189
- overlayColor: p,
188
+ overlay: p,
189
+ scrollOverlay: d,
190
+ onClickOutsideModal: j,
191
+ overlayColor: f,
190
192
  overlayProps: F,
191
193
  overlayAnimation: k,
192
194
  modalAnimation: B,
193
- themeProps: j,
195
+ themeProps: D,
194
196
  showCloseButton: u,
195
197
  close: O,
196
- header: m,
197
- footer: i,
198
+ header: i,
199
+ footer: c,
198
200
  isOpen: s,
199
201
  ...I,
200
202
  children: T
201
203
  }
202
204
  ),
203
- a
205
+ m
204
206
  ) }) : /* @__PURE__ */ t(
205
- D,
207
+ A,
206
208
  {
207
209
  ref: E,
208
- overlay: d,
209
- scrollOverlay: c,
210
- onClickOutsideModal: A,
211
- overlayColor: p,
210
+ overlay: p,
211
+ scrollOverlay: d,
212
+ onClickOutsideModal: j,
213
+ overlayColor: f,
212
214
  overlayProps: F,
213
215
  overlayAnimation: k,
214
216
  modalAnimation: B,
215
- themeProps: j,
217
+ themeProps: D,
216
218
  showCloseButton: u,
217
219
  close: O,
218
- header: m,
219
- footer: i,
220
+ header: i,
221
+ footer: c,
220
222
  isOpen: s,
221
223
  ...I,
222
224
  children: T
223
225
  }
224
226
  ) }) });
225
- }), D = z(
227
+ }), A = z(
226
228
  ({
227
229
  overlay: e,
228
230
  scrollOverlay: n,
229
231
  onClickOutsideModal: a,
230
- overlayColor: s,
231
- overlayProps: m,
232
+ overlayColor: m,
233
+ overlayProps: s,
232
234
  overlayAnimation: i,
233
235
  modalAnimation: c,
234
236
  themeProps: d,
235
237
  showCloseButton: p,
236
- header: u,
237
- footer: g,
238
+ header: f,
239
+ footer: u,
238
240
  close: x,
239
241
  isOpen: U,
240
242
  children: y,
241
243
  ...$
242
244
  }, b) => /* @__PURE__ */ t(S, { children: e ? /* @__PURE__ */ R(L, { children: [
243
245
  /* @__PURE__ */ t(
244
- ne,
246
+ ae,
245
247
  {
246
248
  scrollOverlay: n,
247
249
  onClick: a,
248
- overlayColor: s,
249
- ...m,
250
+ overlayColor: m,
251
+ ...s,
250
252
  ...i
251
253
  }
252
254
  ),
253
255
  /* @__PURE__ */ t(
254
- oe,
256
+ te,
255
257
  {
256
258
  ...d,
257
259
  onClick: a,
258
260
  scrollOverlay: n,
259
- overlayColor: s,
261
+ overlayColor: m,
260
262
  isOpen: U,
261
- ...m,
263
+ ...s,
262
264
  ...i,
263
265
  children: /* @__PURE__ */ t(
264
266
  H,
@@ -269,8 +271,8 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
269
271
  modalAnimation: c,
270
272
  showCloseButton: p,
271
273
  close: x,
272
- header: u,
273
- footer: g,
274
+ header: f,
275
+ footer: u,
274
276
  ...$,
275
277
  children: y
276
278
  }
@@ -285,8 +287,8 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
285
287
  modalAnimation: c,
286
288
  showCloseButton: p,
287
289
  close: x,
288
- header: u,
289
- footer: g,
290
+ header: f,
291
+ footer: u,
290
292
  ...$,
291
293
  children: y
292
294
  }
@@ -296,16 +298,16 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
296
298
  themeProps: e,
297
299
  scrollOverlay: n,
298
300
  modalAnimation: a,
299
- showCloseButton: s,
300
- close: m,
301
+ showCloseButton: m,
302
+ close: s,
301
303
  header: i,
302
304
  footer: c,
303
305
  children: d,
304
306
  ...p
305
- }, u) => /* @__PURE__ */ t(S, { children: /* @__PURE__ */ R(
306
- te,
307
+ }, f) => /* @__PURE__ */ t(S, { children: /* @__PURE__ */ R(
308
+ re,
307
309
  {
308
- ref: u,
310
+ ref: f,
309
311
  ...e,
310
312
  ...a,
311
313
  header: i,
@@ -314,13 +316,13 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
314
316
  ...p,
315
317
  className: `modal-lnc-container ${e == null ? void 0 : e.className}`,
316
318
  children: [
317
- s && /* @__PURE__ */ t(
318
- re,
319
+ m && /* @__PURE__ */ t(
320
+ ne,
319
321
  {
320
322
  ...e,
321
323
  className: "modal-lnc-times",
322
- onClick: m,
323
- children: /* @__PURE__ */ t(K, { icon: "times" })
324
+ onClick: s,
325
+ children: /* @__PURE__ */ t(P, { icon: "times" })
324
326
  }
325
327
  ),
326
328
  i && /* @__PURE__ */ t("div", { className: "lnc-modal-header", children: i }),
@@ -330,7 +332,7 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
330
332
  }
331
333
  ) })
332
334
  );
333
- ae.propTypes = {
335
+ le.propTypes = {
334
336
  /**
335
337
  * If the value is given modal will use createPortal to be rendered in portalElement
336
338
  */
@@ -362,7 +364,7 @@ ae.propTypes = {
362
364
  size: o.oneOf(["fluid", "xs", "s", "m", "l", "xl", "full"]),
363
365
  overlayProps: o.any
364
366
  };
365
- const le = {
367
+ const ie = {
366
368
  FLUID: "max-content",
367
369
  XS: "320px",
368
370
  S: "412px",
@@ -372,5 +374,5 @@ const le = {
372
374
  FULL: "100vw"
373
375
  };
374
376
  export {
375
- ae as default
377
+ le as default
376
378
  };
@@ -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.184",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [