@lanaco/lnc-react-ui 4.0.181 → 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;
package/dist/Modal.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),y=require("react"),o=require("./index-BpbMKBf_.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=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,r,n)=>r&&n?e=="FULL"?`calc(100dvh - ${h} - ${x})`:`calc(100dvh - ${h} - ${x} - ${i})`:r?e=="FULL"?`calc(100dvh - ${h})`:`calc(100dvh - ${h} - ${i})`:n?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,r,n)=>e=="FULL"?"0":`${r?"0":"16px"} 0 ${n?"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"),_=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)`
2
2
  position: ${e=>e.scrollOverlay==!0?"absolute":"fixed"};
3
3
  top: 0;
4
4
  left: 0;
@@ -81,4 +81,4 @@
81
81
  width: 100%;
82
82
  background-color: ${e=>e.overlayColor};
83
83
  z-index: 3;
84
- `,A=y.forwardRef((e,r)=>{const{portalElement:n=document.body,isOpen:s=!1,header:d,footer:l,scrollOverlay:a=!1,overlay:c=!0,overlayColor:p="rgba(0, 0, 0, 0.3)",showCloseButton:u=!0,onOpen:f=()=>{},onClose:g=()=>{},zIndex:O=1e3,size:$="fluid",clickOutsideToClose:v=!0,className:b="",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(),[T,k]=y.useState(s);let B={theme:G.useTheme(),size:$,zIndex:O,className:b,style:H};const q=m=>{m.target===m.currentTarget&&v&&j(m)};y.useImperativeHandle(r,()=>({open(){_()},close(){j()},isOpen(){return T}}));const _=m=>{k(!0),f(m)},j=m=>{k(!1),g(m)};return y.useEffect(()=>{T===!0&&S()},[T]),t.jsx(t.Fragment,{children:T&&t.jsx(t.Fragment,{children:n?t.jsx(t.Fragment,{children:V.reactDomExports.createPortal(t.jsx(E,{ref:R,overlay:c,scrollOverlay:a,onClickOutsideModal:q,overlayColor:p,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:u,close:j,header:d,footer:l,isOpen:s,...M,children:z}),n)}):t.jsx(E,{ref:R,overlay:c,scrollOverlay:a,onClickOutsideModal:q,overlayColor:p,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:u,close:j,header:d,footer:l,isOpen:s,...M,children:z})})})}),E=y.forwardRef(({overlay:e,scrollOverlay:r,onClickOutsideModal:n,overlayColor:s,overlayProps:d,overlayAnimation:l,modalAnimation:a,themeProps:c,showCloseButton:p,header:u,footer:f,close:g,isOpen:O,children:$,...v},b)=>t.jsx(N.AnimatePresence,{children:e?t.jsxs(t.Fragment,{children:[t.jsx(Z,{scrollOverlay:r,onClick:n,overlayColor:s,...d,...l}),t.jsx(K,{...c,onClick:n,scrollOverlay:r,overlayColor:s,isOpen:O,...d,...l,children:t.jsx(I,{ref:b,themeProps:c,scrollOverlay:r,modalAnimation:a,showCloseButton:p,close:g,header:u,footer:f,...v,children:$})})]}):t.jsx(I,{ref:b,themeProps:c,modalAnimation:a,showCloseButton:p,close:g,header:u,footer:f,...v,children:$})})),I=y.forwardRef(({themeProps:e,scrollOverlay:r,modalAnimation:n,showCloseButton:s,close:d,header:l,footer:a,children:c,...p},u)=>t.jsx(N.AnimatePresence,{children:t.jsxs(Q,{ref:u,...e,...n,header:l,footer:a,scrollOverlay:r,...p,className:`modal-lnc-container ${e==null?void 0:e.className}`,children:[s&&t.jsx(Y,{...e,className:"modal-lnc-times",onClick:d,children:t.jsx(D,{icon:"times"})}),l&&t.jsx("div",{className:"lnc-modal-header",children:l}),t.jsx("div",{className:"lnc-modal-content",children:c}),a&&t.jsx("div",{className:"lnc-modal-footer",children:a})]})}));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;
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;
package/dist/Modal.js CHANGED
@@ -4,11 +4,11 @@ import { P as o } from "./index-CblbdqjE.js";
4
4
  import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import K from "./Icon.js";
6
6
  import { b as w } from "./utils-Dc5zIpaz.js";
7
- import { r as Q } from "./index-B1vKwsDE.js";
7
+ import { r as P } from "./index-B1vKwsDE.js";
8
8
  import { m as M } from "./motion-Ckekul_K.js";
9
- import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
+ import { u as Q } 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", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FULL" ? `calc(100dvh - ${h} - ${f})` : `calc(100dvh - ${h} - ${f} - ${a})` : r ? e == "FULL" ? `calc(100dvh - ${h})` : `calc(100dvh - ${h} - ${a})` : n ? e == "FULL" ? `calc(100dvh - ${f})` : `calc(100dvh - ${f} - ${a})` : e == "FULL" ? "100dvh" : `calc(100dvh - ${a})`, P = (e) => e == "FULL" ? "100vw" : `calc(100vw - ${a})`, ee = (e, r, n) => e == "FULL" ? "0" : `${r ? "0" : "16px"} 0 ${n ? "0" : "16px"} 0`, oe = C(M.div)`
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)`
12
12
  position: ${(e) => e.scrollOverlay == !0 ? "absolute" : "fixed"};
13
13
  top: 0;
14
14
  left: 0;
@@ -25,7 +25,7 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
25
25
  background-color: ${(e) => w(e.theme, "Modal", "default", "enabled", "bg")};
26
26
  z-index: ${(e) => e.zIndex};
27
27
  width: ${(e) => le[e.size.toUpperCase()]};
28
- max-width: ${(e) => P(e.size.toUpperCase())};
28
+ max-width: ${(e) => Z(e.size.toUpperCase())};
29
29
  box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
30
30
  0px 10px 10px -5px rgba(0, 0, 0, 0.04);
31
31
  border-radius: ${(e) => e.size.toUpperCase() != "FULL" ? "16px" : "0"};
@@ -36,7 +36,7 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
36
36
  & .lnc-modal-header {
37
37
  max-height: ${h};
38
38
  overflow: hidden;
39
- padding: ${a} ${a} 0 ${a};
39
+ padding: ${l} ${l} 0 ${l};
40
40
  }
41
41
  & .lnc-modal-header > h1,
42
42
  h2,
@@ -55,14 +55,14 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
55
55
  flex-direction: column;
56
56
  justify-content: space-between;
57
57
  scrollbar-width: thin;
58
- ${(e) => e.scrollOverlay == !1 && `max-height: ${Z(
58
+ ${(e) => e.scrollOverlay == !1 && `max-height: ${Y(
59
59
  e.size.toUpperCase(),
60
60
  e.header,
61
61
  e.footer
62
62
  )};`}
63
63
  overflow: auto;
64
64
  margin: ${(e) => ee(e.size, e.header, e.footer)};
65
- padding: 0 ${a} 0 ${a};
65
+ padding: 0 ${l} 0 ${l};
66
66
  }
67
67
  `, re = C.div`
68
68
  position: absolute;
@@ -115,16 +115,16 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
115
115
  width: 100%;
116
116
  background-color: ${(e) => e.overlayColor};
117
117
  z-index: 3;
118
- `, ae = z((e, r) => {
118
+ `, ae = z((e, n) => {
119
119
  const {
120
- portalElement: n = document.body,
121
- isOpen: c = !1,
122
- header: d,
123
- footer: l,
124
- scrollOverlay: i = !1,
125
- overlay: s = !0,
126
- overlayColor: m = "rgba(0, 0, 0, 0.3)",
127
- showCloseButton: p = !0,
120
+ portalElement: a = document.body,
121
+ 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)",
127
+ showCloseButton: u = !0,
128
128
  onOpen: g = () => {
129
129
  },
130
130
  onClose: x = () => {
@@ -132,7 +132,7 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
132
132
  zIndex: U = 1e3,
133
133
  size: y = "fluid",
134
134
  clickOutsideToClose: $ = !0,
135
- className: v = "",
135
+ className: b = "",
136
136
  style: G = {},
137
137
  overlayProps: F,
138
138
  overlayAnimation: k = {
@@ -155,12 +155,12 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
155
155
  },
156
156
  children: T,
157
157
  rest: I
158
- } = e, E = X(), [b, N] = V(c);
159
- let j = { theme: Y(), size: y, zIndex: U, className: v, style: G };
160
- const A = (u) => {
161
- u.target === u.currentTarget && $ && O(u);
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);
162
162
  };
163
- q(r, () => ({
163
+ q(n, () => ({
164
164
  open() {
165
165
  W();
166
166
  },
@@ -168,108 +168,108 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
168
168
  O();
169
169
  },
170
170
  isOpen() {
171
- return b;
171
+ return v;
172
172
  }
173
173
  }));
174
- const W = (u) => {
175
- N(!0), g(u);
176
- }, O = (u) => {
177
- N(!1), x(u);
174
+ const W = (r) => {
175
+ N(!0), g(r);
176
+ }, O = (r) => {
177
+ N(!1), x(r);
178
178
  };
179
179
  return J(() => {
180
- b === !0 && _();
181
- }, [b]), /* @__PURE__ */ t(L, { children: b && /* @__PURE__ */ t(L, { children: n ? /* @__PURE__ */ t(L, { children: Q.createPortal(
180
+ v === !0 && _();
181
+ }, [v]), /* @__PURE__ */ t(L, { children: v && /* @__PURE__ */ t(L, { children: a ? /* @__PURE__ */ t(L, { children: P.createPortal(
182
182
  /* @__PURE__ */ t(
183
- H,
183
+ D,
184
184
  {
185
185
  ref: E,
186
- overlay: s,
187
- scrollOverlay: i,
186
+ overlay: d,
187
+ scrollOverlay: c,
188
188
  onClickOutsideModal: A,
189
- overlayColor: m,
189
+ overlayColor: p,
190
190
  overlayProps: F,
191
191
  overlayAnimation: k,
192
192
  modalAnimation: B,
193
193
  themeProps: j,
194
- showCloseButton: p,
194
+ showCloseButton: u,
195
195
  close: O,
196
- header: d,
197
- footer: l,
198
- isOpen: c,
196
+ header: m,
197
+ footer: i,
198
+ isOpen: s,
199
199
  ...I,
200
200
  children: T
201
201
  }
202
202
  ),
203
- n
203
+ a
204
204
  ) }) : /* @__PURE__ */ t(
205
- H,
205
+ D,
206
206
  {
207
207
  ref: E,
208
- overlay: s,
209
- scrollOverlay: i,
208
+ overlay: d,
209
+ scrollOverlay: c,
210
210
  onClickOutsideModal: A,
211
- overlayColor: m,
211
+ overlayColor: p,
212
212
  overlayProps: F,
213
213
  overlayAnimation: k,
214
214
  modalAnimation: B,
215
215
  themeProps: j,
216
- showCloseButton: p,
216
+ showCloseButton: u,
217
217
  close: O,
218
- header: d,
219
- footer: l,
220
- isOpen: c,
218
+ header: m,
219
+ footer: i,
220
+ isOpen: s,
221
221
  ...I,
222
222
  children: T
223
223
  }
224
224
  ) }) });
225
- }), H = z(
225
+ }), D = z(
226
226
  ({
227
227
  overlay: e,
228
- scrollOverlay: r,
229
- onClickOutsideModal: n,
230
- overlayColor: c,
231
- overlayProps: d,
232
- overlayAnimation: l,
233
- modalAnimation: i,
234
- themeProps: s,
235
- showCloseButton: m,
236
- header: p,
228
+ scrollOverlay: n,
229
+ onClickOutsideModal: a,
230
+ overlayColor: s,
231
+ overlayProps: m,
232
+ overlayAnimation: i,
233
+ modalAnimation: c,
234
+ themeProps: d,
235
+ showCloseButton: p,
236
+ header: u,
237
237
  footer: g,
238
238
  close: x,
239
239
  isOpen: U,
240
240
  children: y,
241
241
  ...$
242
- }, v) => /* @__PURE__ */ t(S, { children: e ? /* @__PURE__ */ R(L, { children: [
242
+ }, b) => /* @__PURE__ */ t(S, { children: e ? /* @__PURE__ */ R(L, { children: [
243
243
  /* @__PURE__ */ t(
244
244
  ne,
245
245
  {
246
- scrollOverlay: r,
247
- onClick: n,
248
- overlayColor: c,
249
- ...d,
250
- ...l
246
+ scrollOverlay: n,
247
+ onClick: a,
248
+ overlayColor: s,
249
+ ...m,
250
+ ...i
251
251
  }
252
252
  ),
253
253
  /* @__PURE__ */ t(
254
254
  oe,
255
255
  {
256
- ...s,
257
- onClick: n,
258
- scrollOverlay: r,
259
- overlayColor: c,
260
- isOpen: U,
261
256
  ...d,
262
- ...l,
257
+ onClick: a,
258
+ scrollOverlay: n,
259
+ overlayColor: s,
260
+ isOpen: U,
261
+ ...m,
262
+ ...i,
263
263
  children: /* @__PURE__ */ t(
264
- D,
264
+ H,
265
265
  {
266
- ref: v,
267
- themeProps: s,
268
- scrollOverlay: r,
269
- modalAnimation: i,
270
- showCloseButton: m,
266
+ ref: b,
267
+ themeProps: d,
268
+ scrollOverlay: n,
269
+ modalAnimation: c,
270
+ showCloseButton: p,
271
271
  close: x,
272
- header: p,
272
+ header: u,
273
273
  footer: g,
274
274
  ...$,
275
275
  children: y
@@ -278,54 +278,54 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, r, n) => r && n ? e == "FU
278
278
  }
279
279
  )
280
280
  ] }) : /* @__PURE__ */ t(
281
- D,
281
+ H,
282
282
  {
283
- ref: v,
284
- themeProps: s,
285
- modalAnimation: i,
286
- showCloseButton: m,
283
+ ref: b,
284
+ themeProps: d,
285
+ modalAnimation: c,
286
+ showCloseButton: p,
287
287
  close: x,
288
- header: p,
288
+ header: u,
289
289
  footer: g,
290
290
  ...$,
291
291
  children: y
292
292
  }
293
293
  ) })
294
- ), D = z(
294
+ ), H = z(
295
295
  ({
296
296
  themeProps: e,
297
- scrollOverlay: r,
298
- modalAnimation: n,
299
- showCloseButton: c,
300
- close: d,
301
- header: l,
302
- footer: i,
303
- children: s,
304
- ...m
305
- }, p) => /* @__PURE__ */ t(S, { children: /* @__PURE__ */ R(
297
+ scrollOverlay: n,
298
+ modalAnimation: a,
299
+ showCloseButton: s,
300
+ close: m,
301
+ header: i,
302
+ footer: c,
303
+ children: d,
304
+ ...p
305
+ }, u) => /* @__PURE__ */ t(S, { children: /* @__PURE__ */ R(
306
306
  te,
307
307
  {
308
- ref: p,
308
+ ref: u,
309
309
  ...e,
310
- ...n,
311
- header: l,
312
- footer: i,
313
- scrollOverlay: r,
314
- ...m,
310
+ ...a,
311
+ header: i,
312
+ footer: c,
313
+ scrollOverlay: n,
314
+ ...p,
315
315
  className: `modal-lnc-container ${e == null ? void 0 : e.className}`,
316
316
  children: [
317
- c && /* @__PURE__ */ t(
317
+ s && /* @__PURE__ */ t(
318
318
  re,
319
319
  {
320
320
  ...e,
321
321
  className: "modal-lnc-times",
322
- onClick: d,
322
+ onClick: m,
323
323
  children: /* @__PURE__ */ t(K, { icon: "times" })
324
324
  }
325
325
  ),
326
- l && /* @__PURE__ */ t("div", { className: "lnc-modal-header", children: l }),
327
- /* @__PURE__ */ t("div", { className: "lnc-modal-content", children: s }),
328
- i && /* @__PURE__ */ t("div", { className: "lnc-modal-footer", children: i })
326
+ i && /* @__PURE__ */ t("div", { className: "lnc-modal-header", children: i }),
327
+ /* @__PURE__ */ t("div", { className: "lnc-modal-content", children: d }),
328
+ c && /* @__PURE__ */ t("div", { className: "lnc-modal-footer", children: c })
329
329
  ]
330
330
  }
331
331
  ) })
@@ -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.181",
3
+ "version": "4.0.183",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [