@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.
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/Modal.cjs +14 -13
- package/dist/Modal.js +88 -86
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{index-BeVjdODO.cjs → index-CaAhRJ2-.cjs} +6 -6
- package/dist/{index-DrtxDu6u.js → index-DxZ71UZ1.js} +121 -110
- package/package.json +1 -1
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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"),
|
|
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
|
-
`,
|
|
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=>
|
|
18
|
-
max-width: ${e=>
|
|
19
|
-
box-shadow:
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
49
|
+
${e=>e.scrollOverlay==!1&&`max-height: ${X(e.size.toUpperCase(),e.header,e.footer)};`}
|
|
49
50
|
overflow: auto;
|
|
50
|
-
margin: ${e=>
|
|
51
|
-
padding: 0 ${
|
|
51
|
+
margin: ${e=>K(e.size,e.header,e.footer)};
|
|
52
|
+
padding: 0 ${l} 0 ${l};
|
|
52
53
|
}
|
|
53
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
|
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
|
|
5
|
+
import P from "./Icon.js";
|
|
6
6
|
import { b as w } from "./utils-Dc5zIpaz.js";
|
|
7
|
-
import { r as
|
|
7
|
+
import { r as Q } from "./index-B1vKwsDE.js";
|
|
8
8
|
import { m as M } from "./motion-Ckekul_K.js";
|
|
9
|
-
import { u as
|
|
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
|
|
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
|
-
`,
|
|
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) =>
|
|
28
|
-
max-width: ${(e) =>
|
|
29
|
-
box-shadow:
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
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) =>
|
|
65
|
+
margin: ${(e) => oe(e.size, e.header, e.footer)};
|
|
65
66
|
padding: 0 ${l} 0 ${l};
|
|
66
67
|
}
|
|
67
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
119
|
+
`, le = z((e, n) => {
|
|
119
120
|
const {
|
|
120
|
-
|
|
121
|
+
preventDefault: a = !1,
|
|
122
|
+
portalElement: m = document.body,
|
|
121
123
|
isOpen: s = !1,
|
|
122
|
-
header:
|
|
123
|
-
footer:
|
|
124
|
-
scrollOverlay:
|
|
125
|
-
overlay:
|
|
126
|
-
overlayColor:
|
|
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:
|
|
130
|
+
onOpen: x = () => {
|
|
129
131
|
},
|
|
130
|
-
onClose:
|
|
132
|
+
onClose: U = () => {
|
|
131
133
|
},
|
|
132
|
-
zIndex:
|
|
133
|
-
size:
|
|
134
|
-
clickOutsideToClose:
|
|
135
|
-
className:
|
|
136
|
-
style:
|
|
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 =
|
|
159
|
-
let
|
|
160
|
-
const
|
|
161
|
-
r == null || r.preventDefault(), r == null || r.stopPropagation(), r.target === r.currentTarget &&
|
|
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
|
-
|
|
165
|
+
J(n, () => ({
|
|
164
166
|
open() {
|
|
165
|
-
|
|
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
|
|
175
|
-
N(!0),
|
|
176
|
+
const X = (r) => {
|
|
177
|
+
N(!0), x(r);
|
|
176
178
|
}, O = (r) => {
|
|
177
|
-
N(!1),
|
|
179
|
+
N(!1), U(r);
|
|
178
180
|
};
|
|
179
|
-
return
|
|
180
|
-
v === !0 &&
|
|
181
|
-
}, [v]), /* @__PURE__ */ t(L, { children: v && /* @__PURE__ */ t(L, { children:
|
|
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
|
-
|
|
185
|
+
A,
|
|
184
186
|
{
|
|
185
187
|
ref: E,
|
|
186
|
-
overlay:
|
|
187
|
-
scrollOverlay:
|
|
188
|
-
onClickOutsideModal:
|
|
189
|
-
overlayColor:
|
|
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:
|
|
195
|
+
themeProps: D,
|
|
194
196
|
showCloseButton: u,
|
|
195
197
|
close: O,
|
|
196
|
-
header:
|
|
197
|
-
footer:
|
|
198
|
+
header: i,
|
|
199
|
+
footer: c,
|
|
198
200
|
isOpen: s,
|
|
199
201
|
...I,
|
|
200
202
|
children: T
|
|
201
203
|
}
|
|
202
204
|
),
|
|
203
|
-
|
|
205
|
+
m
|
|
204
206
|
) }) : /* @__PURE__ */ t(
|
|
205
|
-
|
|
207
|
+
A,
|
|
206
208
|
{
|
|
207
209
|
ref: E,
|
|
208
|
-
overlay:
|
|
209
|
-
scrollOverlay:
|
|
210
|
-
onClickOutsideModal:
|
|
211
|
-
overlayColor:
|
|
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:
|
|
217
|
+
themeProps: D,
|
|
216
218
|
showCloseButton: u,
|
|
217
219
|
close: O,
|
|
218
|
-
header:
|
|
219
|
-
footer:
|
|
220
|
+
header: i,
|
|
221
|
+
footer: c,
|
|
220
222
|
isOpen: s,
|
|
221
223
|
...I,
|
|
222
224
|
children: T
|
|
223
225
|
}
|
|
224
226
|
) }) });
|
|
225
|
-
}),
|
|
227
|
+
}), A = z(
|
|
226
228
|
({
|
|
227
229
|
overlay: e,
|
|
228
230
|
scrollOverlay: n,
|
|
229
231
|
onClickOutsideModal: a,
|
|
230
|
-
overlayColor:
|
|
231
|
-
overlayProps:
|
|
232
|
+
overlayColor: m,
|
|
233
|
+
overlayProps: s,
|
|
232
234
|
overlayAnimation: i,
|
|
233
235
|
modalAnimation: c,
|
|
234
236
|
themeProps: d,
|
|
235
237
|
showCloseButton: p,
|
|
236
|
-
header:
|
|
237
|
-
footer:
|
|
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
|
-
|
|
246
|
+
ae,
|
|
245
247
|
{
|
|
246
248
|
scrollOverlay: n,
|
|
247
249
|
onClick: a,
|
|
248
|
-
overlayColor:
|
|
249
|
-
...
|
|
250
|
+
overlayColor: m,
|
|
251
|
+
...s,
|
|
250
252
|
...i
|
|
251
253
|
}
|
|
252
254
|
),
|
|
253
255
|
/* @__PURE__ */ t(
|
|
254
|
-
|
|
256
|
+
te,
|
|
255
257
|
{
|
|
256
258
|
...d,
|
|
257
259
|
onClick: a,
|
|
258
260
|
scrollOverlay: n,
|
|
259
|
-
overlayColor:
|
|
261
|
+
overlayColor: m,
|
|
260
262
|
isOpen: U,
|
|
261
|
-
...
|
|
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:
|
|
273
|
-
footer:
|
|
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:
|
|
289
|
-
footer:
|
|
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:
|
|
300
|
-
close:
|
|
301
|
+
showCloseButton: m,
|
|
302
|
+
close: s,
|
|
301
303
|
header: i,
|
|
302
304
|
footer: c,
|
|
303
305
|
children: d,
|
|
304
306
|
...p
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
+
}, f) => /* @__PURE__ */ t(S, { children: /* @__PURE__ */ R(
|
|
308
|
+
re,
|
|
307
309
|
{
|
|
308
|
-
ref:
|
|
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
|
-
|
|
318
|
-
|
|
319
|
+
m && /* @__PURE__ */ t(
|
|
320
|
+
ne,
|
|
319
321
|
{
|
|
320
322
|
...e,
|
|
321
323
|
className: "modal-lnc-times",
|
|
322
|
-
onClick:
|
|
323
|
-
children: /* @__PURE__ */ t(
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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"),
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
|
3
|
-
import { s as
|
|
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
|
|
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
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { a as f, S as p, c as
|
|
13
|
-
const
|
|
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
|
-
${
|
|
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
|
-
`,
|
|
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) =>
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
] })),
|
|
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
|
-
},
|
|
415
|
+
}, pr = ne((a, $) => {
|
|
416
416
|
const {
|
|
417
|
-
uuid:
|
|
418
|
-
sellerUuid:
|
|
417
|
+
uuid: b,
|
|
418
|
+
sellerUuid: O,
|
|
419
419
|
name: te,
|
|
420
|
-
price:
|
|
421
|
-
sellingPrice:
|
|
422
|
-
currency:
|
|
423
|
-
isNegotiable:
|
|
424
|
-
isFree:
|
|
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:
|
|
434
|
+
categoryCode: V,
|
|
435
|
+
categoryName: me,
|
|
435
436
|
condition: j,
|
|
436
|
-
quantity:
|
|
437
|
+
quantity: B,
|
|
437
438
|
trade: D,
|
|
438
|
-
sponsoredText:
|
|
439
|
-
forCart:
|
|
440
|
-
forOrder:
|
|
441
|
-
contactSeller:
|
|
442
|
-
hasVariants:
|
|
443
|
-
hasQuantities:
|
|
444
|
-
status:
|
|
445
|
-
onBookmark:
|
|
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:
|
|
448
|
+
actionComponent: C,
|
|
448
449
|
bookmarked: U,
|
|
449
|
-
bookmarkLists:
|
|
450
|
-
metadata:
|
|
450
|
+
bookmarkLists: we,
|
|
451
|
+
metadata: v,
|
|
451
452
|
sellerName: L
|
|
452
|
-
} = a, W =
|
|
453
|
+
} = a, W = Fe(), ye = () => {
|
|
453
454
|
var d;
|
|
454
|
-
if (!ee(
|
|
455
|
-
const r =
|
|
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:
|
|
459
|
-
onAddToBookmark: () =>
|
|
460
|
-
onRemoveFromBookmark: () =>
|
|
461
|
-
bookmarkedUuidList:
|
|
462
|
-
sellerUuid:
|
|
463
|
-
handleBookmarking:
|
|
464
|
-
forCart:
|
|
465
|
-
forOrder:
|
|
466
|
-
contactSeller:
|
|
467
|
-
hasVariants:
|
|
468
|
-
status:
|
|
469
|
-
quantity:
|
|
470
|
-
hasQuantities:
|
|
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) =>
|
|
484
|
-
), [
|
|
494
|
+
(r) => V == null ? void 0 : V.includes(r)
|
|
495
|
+
), [ke, q] = Q(!1), _e = () => {
|
|
485
496
|
q(!0);
|
|
486
|
-
},
|
|
497
|
+
}, Ce = () => {
|
|
487
498
|
q(!1);
|
|
488
|
-
}, l = Z(null), u = Z([]), [
|
|
489
|
-
var d,
|
|
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 = (
|
|
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 = ((
|
|
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
|
-
|
|
517
|
+
Ve(() => {
|
|
507
518
|
const r = l == null ? void 0 : l.current;
|
|
508
519
|
if (!r) return;
|
|
509
520
|
const o = new ResizeObserver(() => {
|
|
510
|
-
|
|
521
|
+
Ne();
|
|
511
522
|
});
|
|
512
523
|
return o.observe(r), () => {
|
|
513
524
|
o.disconnect();
|
|
514
525
|
};
|
|
515
526
|
}, [i, W]);
|
|
516
|
-
const
|
|
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,
|
|
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) ?? "",
|
|
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
|
-
|
|
533
|
+
E,
|
|
523
534
|
{
|
|
524
|
-
ref: (
|
|
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
|
-
},
|
|
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) ?? "",
|
|
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:
|
|
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
|
-
}) }),
|
|
542
|
-
j && /* @__PURE__ */ e(
|
|
543
|
-
|
|
544
|
-
D && /* @__PURE__ */ e(
|
|
545
|
-
] }), Y =
|
|
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
|
-
|
|
560
|
+
Ie,
|
|
550
561
|
{
|
|
551
562
|
ref: l,
|
|
552
563
|
className: "product-card",
|
|
553
|
-
"data-accessor":
|
|
554
|
-
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(
|
|
558
|
-
/* @__PURE__ */ e(
|
|
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:
|
|
571
|
-
onMouseLeave:
|
|
581
|
+
onMouseEnter: _e,
|
|
582
|
+
onMouseLeave: Ce
|
|
572
583
|
},
|
|
573
|
-
children: /* @__PURE__ */ t(
|
|
574
|
-
/* @__PURE__ */ e(
|
|
575
|
-
/* @__PURE__ */ 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 &&
|
|
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
|
-
|
|
584
|
-
Y && /* @__PURE__ */ e("div", { className: `${
|
|
585
|
-
|
|
586
|
-
|
|
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(
|
|
601
|
+
se === !0 && /* @__PURE__ */ e(Le, { sponsoredText: he })
|
|
591
602
|
]
|
|
592
603
|
}
|
|
593
604
|
)
|
|
594
605
|
);
|
|
595
|
-
}),
|
|
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
|
-
`,
|
|
614
|
+
`, Je = ({ keyPrefix: a }) => /* @__PURE__ */ t(Ze, { children: [
|
|
604
615
|
/* @__PURE__ */ t(p, { gap: "0.5rem", children: [
|
|
605
616
|
/* @__PURE__ */ e(
|
|
606
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
] }),
|
|
751
|
+
] }), ur = ({
|
|
741
752
|
keyPrefix: a,
|
|
742
|
-
isLoading:
|
|
743
|
-
fallbackComponent:
|
|
744
|
-
children:
|
|
745
|
-
}) => /* @__PURE__ */ e(
|
|
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
|
-
|
|
748
|
-
|
|
758
|
+
pr as D,
|
|
759
|
+
ur as S
|
|
749
760
|
};
|