@lanaco/lnc-react-ui 4.0.118 → 4.0.120
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/SalesCampaignsSection.cjs +56 -34
- package/dist/SalesCampaignsSection.js +332 -280
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),g=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),_=require("./utils-CZynEOC_.cjs"),F=require("./consts-goSZX3xP.cjs"),Q=require("./motion-B_VPZaJq.cjs"),a=require("./index-BpbMKBf_.cjs"),ee=require("./Icon.cjs"),he=require("./Badge.cjs"),V=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),G=require("./IconButton.cjs"),re=require("./useDetectMobile-zkbzoOGV.cjs"),fe=u.styled.div`
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
display: flex;
|
|
4
4
|
gap: 1rem;
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
border-radius: 20px;
|
|
7
7
|
border: 1px solid var(--gray-95008, #14161a14);
|
|
8
8
|
|
|
9
|
-
@media (max-width: ${
|
|
9
|
+
@media (max-width: ${F.MOBILE_SIZE_PX+"px"}) {
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
padding: 0;
|
|
12
12
|
gap: 0;
|
|
13
13
|
border: none;
|
|
14
14
|
border-radius: 0;
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
17
|
-
border-radius: ${e=>
|
|
16
|
+
`,xe=u.styled.div`
|
|
17
|
+
border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,"edged")};
|
|
18
18
|
height: 15rem;
|
|
19
19
|
width: 15rem;
|
|
20
20
|
min-width: 15rem;
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
@media (max-width: ${
|
|
40
|
+
@media (max-width: ${F.MOBILE_SIZE_PX+"px"}) {
|
|
41
41
|
width: 100%;
|
|
42
42
|
max-width: 100dvh;
|
|
43
43
|
height: 23.438rem;
|
|
44
44
|
}
|
|
45
|
-
`,
|
|
45
|
+
`,ye=u.styled.div`
|
|
46
46
|
flex: 1;
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: column;
|
|
@@ -77,17 +77,39 @@
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
& .timestamp-text {
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
font-size: 0.875rem;
|
|
83
|
+
font-style: normal;
|
|
84
|
+
font-weight: 400;
|
|
85
|
+
line-height: 1.25rem;
|
|
86
|
+
letter-spacing: 0.01563rem;
|
|
87
|
+
gap: 0.25rem;
|
|
82
88
|
padding-top: 0.75rem;
|
|
83
89
|
color: var(--gray-700, #4e555f);
|
|
90
|
+
|
|
91
|
+
& .listings-text {
|
|
92
|
+
color: var(--gray-700, #4e555f);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
& .duration-text {
|
|
96
|
+
color: var(--gray-700, #4e555f);
|
|
97
|
+
|
|
98
|
+
&.urgent {
|
|
99
|
+
color: var(--primary-500, #f59e0b);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
& .countdown-timer {
|
|
104
|
+
color: var(--primary-500, #f59e0b);
|
|
105
|
+
}
|
|
84
106
|
}
|
|
85
107
|
|
|
86
108
|
& .profile-item:hover {
|
|
87
109
|
background-color: transparent;
|
|
88
110
|
}
|
|
89
111
|
|
|
90
|
-
@media (max-width: ${
|
|
112
|
+
@media (max-width: ${F.MOBILE_SIZE_PX+"px"}) {
|
|
91
113
|
padding: 1.25rem;
|
|
92
114
|
|
|
93
115
|
& .campaign-title {
|
|
@@ -101,13 +123,13 @@
|
|
|
101
123
|
gap: 0.25rem;
|
|
102
124
|
}
|
|
103
125
|
}
|
|
104
|
-
`,
|
|
126
|
+
`,we={"#ADE3EB":"#76D0DB","#DDD6FE":"#C4B5FD","#FDE68A":"#FCD34D","#A7F3D0":"#6EE7B7","#BADFFF":"#87C6FA","#FECDD3":"#FDA4AF","#EFE2CF":"#EAD2AF","#DDDFE4":"#C4C8CF","#E7E5E4":"#D6D3D1","#FED7AA":"#FDBA74",default:"#C4C8CF"},Y=(e=!1,n=!1,o=!1)=>`
|
|
105
127
|
display: flex;
|
|
106
128
|
${n?"flex-wrap: wrap;":""}
|
|
107
129
|
${n?"":"flex-wrap: nowrap;"}
|
|
108
130
|
${e?"align-items: center;":""}
|
|
109
131
|
${o?"justify-content: center;":""}
|
|
110
|
-
`,
|
|
132
|
+
`,ve=u.styled(Q.motion.div)`
|
|
111
133
|
text-decoration: none;
|
|
112
134
|
${e=>e.hasPermission===!0&&"cursor: pointer"};
|
|
113
135
|
|
|
@@ -124,14 +146,14 @@
|
|
|
124
146
|
text-decoration: none;
|
|
125
147
|
}
|
|
126
148
|
|
|
127
|
-
${
|
|
149
|
+
${Y(!0)}
|
|
128
150
|
gap: 0.5rem;
|
|
129
151
|
padding: 0.5rem;
|
|
130
152
|
color: ${e=>e.isActive===!1?"var(--gray-900)":"var(--primary-600)"};
|
|
131
153
|
font-weight: 500;
|
|
132
154
|
font-size: 0.875rem;
|
|
133
155
|
line-height: 1.25rem;
|
|
134
|
-
border-radius: ${e=>
|
|
156
|
+
border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,"slight")};
|
|
135
157
|
transition: all 0.25s ease;
|
|
136
158
|
& .description {
|
|
137
159
|
font-size: 0.85rem;
|
|
@@ -140,11 +162,11 @@
|
|
|
140
162
|
font-weight: 400;
|
|
141
163
|
}
|
|
142
164
|
& .logo-wrapper {
|
|
143
|
-
${
|
|
165
|
+
${Y(!0,!1,!0)}
|
|
144
166
|
flex-shrink: 0;
|
|
145
167
|
border-radius: 999px;
|
|
146
168
|
border: 3px solid
|
|
147
|
-
${e=>e.isActive===!1?"var(--gray-300, #c4c8cf)":
|
|
169
|
+
${e=>e.isActive===!1?"var(--gray-300, #c4c8cf)":we[e.themeColor]??"var(--gray-300, #c4c8cf)"};
|
|
148
170
|
|
|
149
171
|
& img,
|
|
150
172
|
.img-placeholder {
|
|
@@ -187,14 +209,14 @@
|
|
|
187
209
|
background-color: var(--gray-95080, #14161acc);
|
|
188
210
|
color: var(--gray-600, #676e79);
|
|
189
211
|
}
|
|
190
|
-
`,
|
|
212
|
+
`,be=u.styled.div`
|
|
191
213
|
position: absolute;
|
|
192
214
|
top: 0.5rem;
|
|
193
215
|
${e=>e.alignToLeft===!0?"left: 0.5rem;":"right: 0.5rem;"}
|
|
194
216
|
display: flex;
|
|
195
217
|
gap: 0.25rem;
|
|
196
|
-
`,
|
|
197
|
-
border-radius: ${e=>
|
|
218
|
+
`,_e=u.styled.div`
|
|
219
|
+
border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,e.borderRadius||"slight")};
|
|
198
220
|
background-color: ${e=>e==null?void 0:e.color};
|
|
199
221
|
color: white;
|
|
200
222
|
height: 1.5rem;
|
|
@@ -209,7 +231,7 @@
|
|
|
209
231
|
& i {
|
|
210
232
|
font-size: 0.813rem;
|
|
211
233
|
}
|
|
212
|
-
`,
|
|
234
|
+
`,te=e=>{const{uuid:n,hasPermission:o=!0,isUser:l,image:h,name:m,notifications:f=0,color:i="primary",size:p="large",style:c,disabled:S,onClick:v=()=>{},isActive:T,className:j,shopCategory:$,themeData:x}=e,b={theme:V.useTheme(),color:i,size:p,style:c,disabled:S};return g.createElement(ve,{onClick:C=>{C.stopPropagation(),o===!0&&(v==null||v())},...b,key:m,className:`profile-item ${j}`,hasPermission:o,isActive:T,themeColor:(x==null?void 0:x.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:h}),t.jsxs("div",{children:[t.jsx("div",{className:"name",children:m}),!l&&t.jsx("div",{className:"description",children:$}),f>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(he,{className:"badge",color:"danger",size:"small",children:f>99?"99+":f})})]}))};te.propTypes={id:a.PropTypes.any,isUserProfile:a.PropTypes.bool,themeColor:a.PropTypes.string,image:a.PropTypes.any,name:a.PropTypes.string,notifications:a.PropTypes.number,style:a.PropTypes.object,className:a.PropTypes.string,color:a.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:a.PropTypes.oneOf(["large"]),onSelect:a.PropTypes.func,hasPermission:a.PropTypes.bool};const H=(e,n)=>{if(!e||!n)return null;let o=Math.floor((e==null?void 0:e.getTime())-(n==null?void 0:n.getTime())),l=1e3*60*60*24;return Math.floor(o/l)},J=e=>{if(e!==void 0){const n=new Date(e),o=n.getFullYear(),l=n.getMonth()+1;return`${String(n.getDate()).padStart(2)}. ${l}. ${o}.`}},ne=g.forwardRef((e,n)=>{var Z;const o=V.useTheme(),{shopUuid:l,title:h="",coverPhoto:m,onSelect:f,startDate:i,endDate:p,salesPackages:c,shopName:S,shopCategory:v,shopImage:T,className:j,onSelectCard:$=()=>{},onSelectShop:x=()=>{},upcoming:P=!1,upcomingCampaignText:b,campaignSingleText:C,salesCampaignTypes:y=[],startsInPrefixTextPlural:N,startsinSuffixTextPlural:B,startsInPrefixTextSingular:M,startsinSuffixTextSingular:R,endsInPrefixTextPlural:s,endsinSuffixTextPlural:d,endsInPrefixTextSingular:z,endsinSuffixTextSingular:r,themeData:q,numberOfListings:W,numberOfListingsTextSingular:ae,numberOfListingsTextPlural:oe,...ie}=e,le=i?new Date(i)<=new Date:!1,ce=H(i?new Date(i):null,new Date),I=H(p?new Date(p):null,new Date),de=I!==null&&I<=3&&I>0,O=I!==null&&I<=1&&I>=0,X=(D,L,w,k,E)=>w===1?`${D} ${w} ${k}`:`${L} ${w} ${E}`,ge=()=>{if(!p)return null;const D=ue,w=new Date(p).getTime()-D.getTime();if(w<=0)return null;const k=Math.floor(w/(1e3*60*60)),E=Math.floor(w%(1e3*60*60)/(1e3*60)),pe=Math.floor(w%(1e3*60)/1e3);return{hours:k,minutes:E,seconds:pe}},[ue,me]=g.useState(new Date);g.useEffect(()=>{if(!O)return;const D=setInterval(()=>{me(new Date)},1e3);return()=>clearInterval(D)},[O]);const A=O?ge():null;return t.jsxs(fe,{ref:n,theme:o,className:j,onClick:$,...ie,children:[t.jsxs(xe,{theme:o,onClick:()=>f==null?void 0:f(),children:[t.jsx("img",{src:m}),t.jsx(be,{children:c==null?void 0:c.map((D,L)=>{var w,k;return t.jsx(_e,{color:(w=y==null?void 0:y.find(E=>E.value===D))==null?void 0:w.color,theme:o,children:t.jsx(ee,{icon:(k=y==null?void 0:y.find(E=>E.value===D))==null?void 0:k.icon})},`package__${L}`)})})]}),t.jsxs(ye,{theme:o,children:[t.jsx("div",{className:"text-block-wrapper",children:t.jsxs("div",{className:"title-block-wrapper",children:[t.jsx("div",{className:"campaign-title",children:(Z=P?b:C)==null?void 0:Z.toUpperCase()}),t.jsx("div",{className:"campaign-title-text",children:h}),p&&i&&t.jsxs("div",{children:[J(i)," - ",J(p)]}),t.jsxs("div",{className:"timestamp-text",children:[W>0&&t.jsxs("span",{className:"listings-text",children:[W," ",W===1?ae:oe," ","∙"," "]}),t.jsx("span",{className:`duration-text ${de?"urgent":""}`,children:O&&A?t.jsxs("div",{className:"countdown-timer",children:[z," ",A.hours.toString().padStart(2,"0"),":",A.minutes.toString().padStart(2,"0"),":",A.seconds.toString().padStart(2,"0")]}):le?X(z,s,I,r,d):X(M,N,ce,R,B)})]})]})}),t.jsx(te,{hasPermission:!0,image:t.jsx("img",{src:T,className:`${T?"":"no-image"}`}),themeData:q,isActive:!0,isUser:!1,name:S,shopCategory:v,onClick:()=>x(l)})]})]})});ne.propTypes={title:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.element]),numberOfListings:a.PropTypes.number,dropdown:a.PropTypes.any,color:a.PropTypes.string};u.styled.div`
|
|
213
235
|
display: flex;
|
|
214
236
|
flex-direction: column;
|
|
215
237
|
gap: 1.5rem;
|
|
@@ -240,26 +262,26 @@
|
|
|
240
262
|
}
|
|
241
263
|
}
|
|
242
264
|
|
|
243
|
-
@media (max-width: ${
|
|
265
|
+
@media (max-width: ${F.MOBILE_SIZE_PX+"px"}) {
|
|
244
266
|
& .campaign-item {
|
|
245
267
|
min-width: 100%;
|
|
246
268
|
width: 100%;
|
|
247
269
|
margin-right: 0;
|
|
248
270
|
}
|
|
249
271
|
}
|
|
250
|
-
`;const
|
|
272
|
+
`;const U=u.styled.div`
|
|
251
273
|
width: ${e=>e.width||"100%"};
|
|
252
274
|
height: ${e=>(e.heightCoeff||1)*1.125}rem;
|
|
253
275
|
background-color: var(--gray-200, #dddfe4);
|
|
254
276
|
|
|
255
|
-
${
|
|
256
|
-
`,
|
|
277
|
+
${_.linearGradientAnimation("-90deg")}
|
|
278
|
+
`,Te=u.styled.div`
|
|
257
279
|
display: flex;
|
|
258
280
|
flex-direction: ${e=>e!=null&&e.row?"row":"column"};
|
|
259
281
|
gap: ${e=>(e==null?void 0:e.gap)??"0.5rem"};
|
|
260
282
|
width: ${e=>(e==null?void 0:e.width)??"100%"};
|
|
261
|
-
`,
|
|
262
|
-
border-radius: ${e=>
|
|
283
|
+
`,K=u.styled.div`
|
|
284
|
+
border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,(e==null?void 0:e.borderRadius)??"regular")};
|
|
263
285
|
background: var(--gray-200, #dddfe4);
|
|
264
286
|
position: relative;
|
|
265
287
|
max-height: ${e=>(e==null?void 0:e.height)??"5rem"};
|
|
@@ -268,10 +290,10 @@
|
|
|
268
290
|
width: ${e=>(e==null?void 0:e.width)??"5rem"};
|
|
269
291
|
flex-shrink: 0;
|
|
270
292
|
|
|
271
|
-
${
|
|
272
|
-
`,
|
|
293
|
+
${_.linearGradientAnimation()}
|
|
294
|
+
`,je=u.styled.div`
|
|
273
295
|
background: var(--white, #fff);
|
|
274
|
-
border-radius: ${e=>
|
|
296
|
+
border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,"edged")};
|
|
275
297
|
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
|
|
276
298
|
border: 1px solid var(--gray-95012, #14161a1f);
|
|
277
299
|
|
|
@@ -298,17 +320,17 @@
|
|
|
298
320
|
gap: 0.5rem;
|
|
299
321
|
}
|
|
300
322
|
|
|
301
|
-
@media (max-width: ${
|
|
323
|
+
@media (max-width: ${F.MOBILE_SIZE_PX+"px"}) {
|
|
302
324
|
flex-direction: column;
|
|
303
325
|
|
|
304
326
|
& .campaign__user {
|
|
305
327
|
margin-top: 1rem;
|
|
306
328
|
}
|
|
307
329
|
}
|
|
308
|
-
|
|
330
|
+
`,$e=u.styled.div`
|
|
309
331
|
display: flex;
|
|
310
332
|
gap: 1.5rem;
|
|
311
|
-
|
|
333
|
+
`,De=g.forwardRef(({},e)=>{const n=V.useTheme();return t.jsxs(je,{ref:e,theme:n,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(K,{theme:n,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(Te,{theme:n,children:[t.jsx(U,{heightCoeff:.75,theme:n,width:"35%"}),t.jsx(U,{heightCoeff:1.25,theme:n}),t.jsx(U,{heightCoeff:3,theme:n})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(K,{theme:n,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(U,{theme:n,width:"75%"})]})]})]})}),Se=({itemsCount:e=5,keyPrefix:n})=>t.jsx($e,{children:Array.from({length:e},(o,l)=>t.jsx(De,{},`${n}-skeleton-campaign-card-${l}`))}),Pe=({children:e,fallbackComponent:n=t.jsx(t.Fragment,{}),isLoading:o=!1,itemsCount:l=5,keyPrefix:h})=>t.jsx(g.Suspense,{fallback:n,children:o===!0?t.jsx(Se,{itemsCount:l,keyPrefix:h}):e}),Ce=u.styled.div`
|
|
312
334
|
margin: 0 auto;
|
|
313
335
|
display: flex;
|
|
314
336
|
flex-direction: column;
|
|
@@ -349,12 +371,12 @@
|
|
|
349
371
|
top: 0;
|
|
350
372
|
right: 0;
|
|
351
373
|
}
|
|
352
|
-
`,
|
|
374
|
+
`,Ie=u.styled(Q.motion.div)`
|
|
353
375
|
display: grid;
|
|
354
376
|
grid-template-columns: repeat(${e=>e==null?void 0:e.numOfColumns}, 1fr);
|
|
355
377
|
gap: 1.5rem;
|
|
356
378
|
|
|
357
|
-
@media (max-width: ${
|
|
379
|
+
@media (max-width: ${F.MOBILE_SIZE_PX+"px"}) {
|
|
358
380
|
grid-template-columns: repeat(${e=>e==null?void 0:e.numOfColumnsForMobile}, 1fr);
|
|
359
381
|
}
|
|
360
|
-
`,
|
|
382
|
+
`,se=g.forwardRef(({icon:e,title:n,numOfSlides:o=2,numOfSlidesForMobile:l=1,showNavigation:h=!0,children:m},f)=>{const[i,p]=g.useState(0),[c,S]=g.useState(1),[v,T]=g.useState(null),[j,$]=g.useState(null),x=re.useDetectMobile(),P=50,b=(m==null?void 0:m.length)??1;g.useEffect(()=>{const s=()=>{S(x?l:o)};return window.addEventListener("resize",s),s(),()=>window.removeEventListener("resize",s)},[]);const C=m==null?void 0:m.slice(i,i+c),y=s=>{var d;(d=s==null?void 0:s.target)==null||d.blur(),i+c<b&&p(i+c)},N=s=>{var d;(d=s==null?void 0:s.target)==null||d.blur(),i-c>=0&&p(i-c)},B=s=>{var d;$(null),T((d=s==null?void 0:s.targetTouches["0"])==null?void 0:d.clientX)},M=s=>{var d;$((d=s==null?void 0:s.targetTouches["0"])==null?void 0:d.clientX)},R=()=>{if(!v||!j)return;const s=v-j;s>P&&y(),s<-P&&N()};return t.jsxs(Ce,{ref:f,...x?{onTouchStart:B,onTouchMove:M,onTouchEnd:R}:{},children:[t.jsx("div",{className:"scrollable-section__header",children:t.jsxs("div",{className:"scrollable-section__title",children:[_.isDefinedNotEmptyString(e)&&t.jsx(ee,{icon:e,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),_.isDefinedNotEmptyString(n)&&t.jsx("div",{className:"title__text",children:n})]})}),t.jsx(Ie,{numOfColumns:o,numOfColumnsForMobile:l,animate:{x:0,opacity:1},initial:{x:10,opacity:0},children:C},`scrollable-section__content-${i}`),h&&b>c&&!x&&t.jsxs("div",{className:"scrollable-section__navigation",children:[t.jsx(G,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:i===0,onClick:N}),t.jsx(G,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:i+c>=b,onClick:y})]})]})});se.propTypes={icon:a.PropTypes.string,title:a.PropTypes.string,numOfSlides:a.PropTypes.number,numOfSlidesForMobile:a.PropTypes.number,showNavigation:a.PropTypes.bool};const Ee=g.memo(ne),Ne=g.forwardRef(({sellerType:e="Shop",items:n=[],title:o,icon:l,isLoading:h,onSelectCard:m=()=>{},onSelectShop:f=()=>{},getImage:i=()=>{},campaignSingleText:p,upcomingCampaignText:c,salesCampaignTypes:S=[],startsInPrefixTextPlural:v,startsinSuffixTextPlural:T,startsInPrefixTextSingular:j,startsinSuffixTextSingular:$,endsInPrefixTextPlural:x,endsinSuffixTextPlural:P,endsInPrefixTextSingular:b,endsinSuffixTextSingular:C,numOfSlides:y=2,numOfSlidesForMobile:N=1,showNavigation:B=!0,numberOfListingsTextSingular:M,numberOfListingsTextPlural:R},s)=>{const d=re.useDetectMobile(),z=g.useMemo(()=>n==null?void 0:n.map((r,q)=>t.jsx(Ee,{className:"campaign-item",coverPhoto:i(r==null?void 0:r.coverPhoto,(r==null?void 0:r.uuid)||(r==null?void 0:r.campaignUuid)),description:r==null?void 0:r.description,endDate:r==null?void 0:r.endDate,salesPackages:r==null?void 0:r.salesPackages,sellerType:e,shopImage:r==null?void 0:r.profileImage,shopName:r==null?void 0:r.shopName,shopUuid:r==null?void 0:r.shopUuid,shopCategory:r==null?void 0:r.shopCategory,startDate:r==null?void 0:r.startDate,title:r==null?void 0:r.name,uuid:r==null?void 0:r.campaignUuid,onSelectCard:()=>m(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>f(r==null?void 0:r.shopUuid),campaignSingleText:p,upcomingCampaignText:c,upcoming:r==null?void 0:r.upcoming,salesCampaignTypes:S,startsInPrefixTextPlural:v,startsinSuffixTextPlural:T,startsInPrefixTextSingular:j,startsinSuffixTextSingular:$,endsInPrefixTextPlural:x,endsinSuffixTextPlural:P,endsInPrefixTextSingular:b,endsinSuffixTextSingular:C,themeData:r==null?void 0:r.themeData,numberOfListings:r==null?void 0:r.numberOfListings,numberOfListingsTextSingular:M,numberOfListingsTextPlural:R},`campaign__item__${q}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}`)),[n]);return t.jsx(Pe,{isLoading:h,itemsCount:d?1:2,keyPrefix:"sales-camp",children:t.jsx(se,{icon:l,title:o,numOfSlides:y,numOfSlidesForMobile:N,showNavigation:B,children:z})})});module.exports=Ne;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { createElement as
|
|
3
|
-
import { s as
|
|
4
|
-
import { a as
|
|
5
|
-
import { M as
|
|
6
|
-
import { m as
|
|
1
|
+
import { jsx as t, jsxs as c, Fragment as be } from "react/jsx-runtime";
|
|
2
|
+
import { createElement as ye, forwardRef as V, useState as z, useEffect as te, Suspense as $e, memo as De, useMemo as Ce } from "react";
|
|
3
|
+
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { a as A, o as ne, k as H } from "./utils-BbgAIA9N.js";
|
|
5
|
+
import { M as F } from "./consts-BuFChS64.js";
|
|
6
|
+
import { m as ae } from "./motion-Ckekul_K.js";
|
|
7
7
|
import { P as o } from "./index-CblbdqjE.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
13
|
-
const
|
|
8
|
+
import oe from "./Icon.js";
|
|
9
|
+
import _e from "./Badge.js";
|
|
10
|
+
import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
11
|
+
import J from "./IconButton.js";
|
|
12
|
+
import { u as ie } from "./useDetectMobile-Bkvj0VMa.js";
|
|
13
|
+
const Se = m.div`
|
|
14
14
|
cursor: pointer;
|
|
15
15
|
display: flex;
|
|
16
16
|
gap: 1rem;
|
|
@@ -18,15 +18,15 @@ const _e = h.div`
|
|
|
18
18
|
border-radius: 20px;
|
|
19
19
|
border: 1px solid var(--gray-95008, #14161a14);
|
|
20
20
|
|
|
21
|
-
@media (max-width: ${
|
|
21
|
+
@media (max-width: ${F + "px"}) {
|
|
22
22
|
flex-direction: column;
|
|
23
23
|
padding: 0;
|
|
24
24
|
gap: 0;
|
|
25
25
|
border: none;
|
|
26
26
|
border-radius: 0;
|
|
27
27
|
}
|
|
28
|
-
`,
|
|
29
|
-
border-radius: ${(e) =>
|
|
28
|
+
`, Te = m.div`
|
|
29
|
+
border-radius: ${(e) => A(e.theme, "edged")};
|
|
30
30
|
height: 15rem;
|
|
31
31
|
width: 15rem;
|
|
32
32
|
min-width: 15rem;
|
|
@@ -49,12 +49,12 @@ const _e = h.div`
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
@media (max-width: ${
|
|
52
|
+
@media (max-width: ${F + "px"}) {
|
|
53
53
|
width: 100%;
|
|
54
54
|
max-width: 100dvh;
|
|
55
55
|
height: 23.438rem;
|
|
56
56
|
}
|
|
57
|
-
`,
|
|
57
|
+
`, ke = m.div`
|
|
58
58
|
flex: 1;
|
|
59
59
|
display: flex;
|
|
60
60
|
flex-direction: column;
|
|
@@ -89,17 +89,39 @@ const _e = h.div`
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
& .timestamp-text {
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
font-size: 0.875rem;
|
|
95
|
+
font-style: normal;
|
|
96
|
+
font-weight: 400;
|
|
97
|
+
line-height: 1.25rem;
|
|
98
|
+
letter-spacing: 0.01563rem;
|
|
99
|
+
gap: 0.25rem;
|
|
94
100
|
padding-top: 0.75rem;
|
|
95
101
|
color: var(--gray-700, #4e555f);
|
|
102
|
+
|
|
103
|
+
& .listings-text {
|
|
104
|
+
color: var(--gray-700, #4e555f);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
& .duration-text {
|
|
108
|
+
color: var(--gray-700, #4e555f);
|
|
109
|
+
|
|
110
|
+
&.urgent {
|
|
111
|
+
color: var(--primary-500, #f59e0b);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
& .countdown-timer {
|
|
116
|
+
color: var(--primary-500, #f59e0b);
|
|
117
|
+
}
|
|
96
118
|
}
|
|
97
119
|
|
|
98
120
|
& .profile-item:hover {
|
|
99
121
|
background-color: transparent;
|
|
100
122
|
}
|
|
101
123
|
|
|
102
|
-
@media (max-width: ${
|
|
124
|
+
@media (max-width: ${F + "px"}) {
|
|
103
125
|
padding: 1.25rem;
|
|
104
126
|
|
|
105
127
|
& .campaign-title {
|
|
@@ -113,7 +135,7 @@ const _e = h.div`
|
|
|
113
135
|
gap: 0.25rem;
|
|
114
136
|
}
|
|
115
137
|
}
|
|
116
|
-
`,
|
|
138
|
+
`, Ne = {
|
|
117
139
|
"#ADE3EB": "#76D0DB",
|
|
118
140
|
"#DDD6FE": "#C4B5FD",
|
|
119
141
|
"#FDE68A": "#FCD34D",
|
|
@@ -125,13 +147,13 @@ const _e = h.div`
|
|
|
125
147
|
"#E7E5E4": "#D6D3D1",
|
|
126
148
|
"#FED7AA": "#FDBA74",
|
|
127
149
|
default: "#C4C8CF"
|
|
128
|
-
},
|
|
150
|
+
}, K = (e = !1, n = !1, i = !1) => `
|
|
129
151
|
display: flex;
|
|
130
|
-
${
|
|
131
|
-
${
|
|
152
|
+
${n ? "flex-wrap: wrap;" : ""}
|
|
153
|
+
${n ? "" : "flex-wrap: nowrap;"}
|
|
132
154
|
${e ? "align-items: center;" : ""}
|
|
133
155
|
${i ? "justify-content: center;" : ""}
|
|
134
|
-
`,
|
|
156
|
+
`, Ie = m(ae.div)`
|
|
135
157
|
text-decoration: none;
|
|
136
158
|
${(e) => e.hasPermission === !0 && "cursor: pointer"};
|
|
137
159
|
|
|
@@ -148,14 +170,14 @@ const _e = h.div`
|
|
|
148
170
|
text-decoration: none;
|
|
149
171
|
}
|
|
150
172
|
|
|
151
|
-
${
|
|
173
|
+
${K(!0)}
|
|
152
174
|
gap: 0.5rem;
|
|
153
175
|
padding: 0.5rem;
|
|
154
176
|
color: ${(e) => e.isActive === !1 ? "var(--gray-900)" : "var(--primary-600)"};
|
|
155
177
|
font-weight: 500;
|
|
156
178
|
font-size: 0.875rem;
|
|
157
179
|
line-height: 1.25rem;
|
|
158
|
-
border-radius: ${(e) =>
|
|
180
|
+
border-radius: ${(e) => A(e.theme, "slight")};
|
|
159
181
|
transition: all 0.25s ease;
|
|
160
182
|
& .description {
|
|
161
183
|
font-size: 0.85rem;
|
|
@@ -164,11 +186,11 @@ const _e = h.div`
|
|
|
164
186
|
font-weight: 400;
|
|
165
187
|
}
|
|
166
188
|
& .logo-wrapper {
|
|
167
|
-
${
|
|
189
|
+
${K(!0, !1, !0)}
|
|
168
190
|
flex-shrink: 0;
|
|
169
191
|
border-radius: 999px;
|
|
170
192
|
border: 3px solid
|
|
171
|
-
${(e) => e.isActive === !1 ? "var(--gray-300, #c4c8cf)" :
|
|
193
|
+
${(e) => e.isActive === !1 ? "var(--gray-300, #c4c8cf)" : Ne[e.themeColor] ?? "var(--gray-300, #c4c8cf)"};
|
|
172
194
|
|
|
173
195
|
& img,
|
|
174
196
|
.img-placeholder {
|
|
@@ -211,14 +233,14 @@ const _e = h.div`
|
|
|
211
233
|
background-color: var(--gray-95080, #14161acc);
|
|
212
234
|
color: var(--gray-600, #676e79);
|
|
213
235
|
}
|
|
214
|
-
`,
|
|
236
|
+
`, Pe = m.div`
|
|
215
237
|
position: absolute;
|
|
216
238
|
top: 0.5rem;
|
|
217
239
|
${(e) => e.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
|
|
218
240
|
display: flex;
|
|
219
241
|
gap: 0.25rem;
|
|
220
|
-
`,
|
|
221
|
-
border-radius: ${(e) =>
|
|
242
|
+
`, Ee = m.div`
|
|
243
|
+
border-radius: ${(e) => A(e.theme, e.borderRadius || "slight")};
|
|
222
244
|
background-color: ${(e) => e == null ? void 0 : e.color};
|
|
223
245
|
color: white;
|
|
224
246
|
height: 1.5rem;
|
|
@@ -233,54 +255,54 @@ const _e = h.div`
|
|
|
233
255
|
& i {
|
|
234
256
|
font-size: 0.813rem;
|
|
235
257
|
}
|
|
236
|
-
`,
|
|
258
|
+
`, se = (e) => {
|
|
237
259
|
const {
|
|
238
|
-
uuid:
|
|
260
|
+
uuid: n,
|
|
239
261
|
hasPermission: i = !0,
|
|
240
262
|
isUser: l,
|
|
241
|
-
image:
|
|
242
|
-
name:
|
|
243
|
-
notifications:
|
|
244
|
-
color:
|
|
245
|
-
size:
|
|
246
|
-
style:
|
|
263
|
+
image: f,
|
|
264
|
+
name: h,
|
|
265
|
+
notifications: p = 0,
|
|
266
|
+
color: s = "primary",
|
|
267
|
+
size: u = "large",
|
|
268
|
+
style: d,
|
|
247
269
|
disabled: S,
|
|
248
|
-
onClick:
|
|
270
|
+
onClick: b = () => {
|
|
249
271
|
},
|
|
250
|
-
isActive:
|
|
251
|
-
className:
|
|
252
|
-
shopCategory:
|
|
272
|
+
isActive: $,
|
|
273
|
+
className: D,
|
|
274
|
+
shopCategory: C,
|
|
253
275
|
// new
|
|
254
276
|
themeData: x
|
|
255
|
-
} = e,
|
|
256
|
-
theme:
|
|
257
|
-
color:
|
|
258
|
-
size:
|
|
259
|
-
style:
|
|
277
|
+
} = e, y = {
|
|
278
|
+
theme: Y(),
|
|
279
|
+
color: s,
|
|
280
|
+
size: u,
|
|
281
|
+
style: d,
|
|
260
282
|
disabled: S
|
|
261
283
|
};
|
|
262
|
-
return /* @__PURE__ */
|
|
263
|
-
|
|
284
|
+
return /* @__PURE__ */ ye(
|
|
285
|
+
Ie,
|
|
264
286
|
{
|
|
265
|
-
onClick: (
|
|
266
|
-
|
|
287
|
+
onClick: (k) => {
|
|
288
|
+
k.stopPropagation(), i === !0 && (b == null || b());
|
|
267
289
|
},
|
|
268
|
-
...
|
|
269
|
-
key:
|
|
270
|
-
className: `profile-item ${
|
|
290
|
+
...y,
|
|
291
|
+
key: h,
|
|
292
|
+
className: `profile-item ${D}`,
|
|
271
293
|
hasPermission: i,
|
|
272
|
-
isActive:
|
|
294
|
+
isActive: $,
|
|
273
295
|
themeColor: (x == null ? void 0 : x.code) || "transparent"
|
|
274
296
|
},
|
|
275
|
-
/* @__PURE__ */ t("div", { className: "logo-wrapper", children:
|
|
276
|
-
/* @__PURE__ */
|
|
277
|
-
/* @__PURE__ */ t("div", { className: "name", children:
|
|
278
|
-
!l && /* @__PURE__ */ t("div", { className: "description", children:
|
|
279
|
-
|
|
297
|
+
/* @__PURE__ */ t("div", { className: "logo-wrapper", children: f }),
|
|
298
|
+
/* @__PURE__ */ c("div", { children: [
|
|
299
|
+
/* @__PURE__ */ t("div", { className: "name", children: h }),
|
|
300
|
+
!l && /* @__PURE__ */ t("div", { className: "description", children: C }),
|
|
301
|
+
p > 0 && /* @__PURE__ */ t("div", { className: "notifications-number", children: /* @__PURE__ */ t(_e, { className: "badge", color: "danger", size: "small", children: p > 99 ? "99+" : p }) })
|
|
280
302
|
] })
|
|
281
303
|
);
|
|
282
304
|
};
|
|
283
|
-
|
|
305
|
+
se.propTypes = {
|
|
284
306
|
id: o.any,
|
|
285
307
|
isUserProfile: o.bool,
|
|
286
308
|
themeColor: o.string,
|
|
@@ -302,123 +324,153 @@ te.propTypes = {
|
|
|
302
324
|
onSelect: o.func,
|
|
303
325
|
hasPermission: o.bool
|
|
304
326
|
};
|
|
305
|
-
const
|
|
306
|
-
if (!e || !
|
|
307
|
-
let i = Math.floor((e == null ? void 0 : e.getTime()) - (
|
|
308
|
-
return Math.
|
|
309
|
-
},
|
|
327
|
+
const Q = (e, n) => {
|
|
328
|
+
if (!e || !n) return null;
|
|
329
|
+
let i = Math.floor((e == null ? void 0 : e.getTime()) - (n == null ? void 0 : n.getTime())), l = 1e3 * 60 * 60 * 24;
|
|
330
|
+
return Math.floor(i / l);
|
|
331
|
+
}, ee = (e) => {
|
|
310
332
|
if (e !== void 0) {
|
|
311
|
-
const
|
|
312
|
-
return `${String(
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
var
|
|
316
|
-
const i =
|
|
317
|
-
uuid
|
|
318
|
-
shopUuid:
|
|
319
|
-
title:
|
|
320
|
-
description
|
|
321
|
-
badges
|
|
322
|
-
coverPhoto:
|
|
323
|
-
onSelect:
|
|
324
|
-
status
|
|
333
|
+
const n = new Date(e), i = n.getFullYear(), l = n.getMonth() + 1;
|
|
334
|
+
return `${String(n.getDate()).padStart(2)}. ${l}. ${i}.`;
|
|
335
|
+
}
|
|
336
|
+
}, le = V((e, n) => {
|
|
337
|
+
var q;
|
|
338
|
+
const i = Y(), {
|
|
339
|
+
// uuid,
|
|
340
|
+
shopUuid: l,
|
|
341
|
+
title: f = "",
|
|
342
|
+
// description,
|
|
343
|
+
// badges,
|
|
344
|
+
coverPhoto: h,
|
|
345
|
+
onSelect: p,
|
|
346
|
+
// status,
|
|
325
347
|
startDate: s,
|
|
326
|
-
endDate:
|
|
327
|
-
salesPackages:
|
|
328
|
-
shopName:
|
|
329
|
-
shopCategory:
|
|
330
|
-
shopImage:
|
|
331
|
-
className:
|
|
332
|
-
onSelectCard:
|
|
348
|
+
endDate: u,
|
|
349
|
+
salesPackages: d,
|
|
350
|
+
shopName: S,
|
|
351
|
+
shopCategory: b,
|
|
352
|
+
shopImage: $,
|
|
353
|
+
className: D,
|
|
354
|
+
onSelectCard: C = () => {
|
|
333
355
|
},
|
|
334
|
-
onSelectShop:
|
|
356
|
+
onSelectShop: x = () => {
|
|
335
357
|
},
|
|
336
|
-
upcoming:
|
|
337
|
-
upcomingCampaignText:
|
|
338
|
-
campaignSingleText:
|
|
358
|
+
upcoming: T = !1,
|
|
359
|
+
upcomingCampaignText: y,
|
|
360
|
+
campaignSingleText: k,
|
|
339
361
|
salesCampaignTypes: v = [],
|
|
340
|
-
startsInPrefixTextPlural:
|
|
341
|
-
startsinSuffixTextPlural:
|
|
342
|
-
startsInPrefixTextSingular:
|
|
343
|
-
startsinSuffixTextSingular:
|
|
344
|
-
endsInPrefixTextPlural:
|
|
345
|
-
endsinSuffixTextPlural:
|
|
346
|
-
endsInPrefixTextSingular:
|
|
347
|
-
endsinSuffixTextSingular:
|
|
348
|
-
themeData:
|
|
349
|
-
numberOfListings:
|
|
362
|
+
startsInPrefixTextPlural: P,
|
|
363
|
+
startsinSuffixTextPlural: M,
|
|
364
|
+
startsInPrefixTextSingular: O,
|
|
365
|
+
startsinSuffixTextSingular: L,
|
|
366
|
+
endsInPrefixTextPlural: a,
|
|
367
|
+
endsinSuffixTextPlural: g,
|
|
368
|
+
endsInPrefixTextSingular: U,
|
|
369
|
+
endsinSuffixTextSingular: r,
|
|
370
|
+
themeData: X,
|
|
371
|
+
numberOfListings: G,
|
|
350
372
|
numberOfListingsTextSingular: de,
|
|
351
373
|
numberOfListingsTextPlural: ge,
|
|
352
374
|
...me
|
|
353
|
-
} = e, he = s ? new Date(s) <= /* @__PURE__ */ new Date() : !1
|
|
354
|
-
V(
|
|
355
|
-
f ? new Date(f) : null,
|
|
356
|
-
s ? new Date(s) : null
|
|
357
|
-
);
|
|
358
|
-
const ue = V(
|
|
375
|
+
} = e, he = s ? new Date(s) <= /* @__PURE__ */ new Date() : !1, ue = Q(
|
|
359
376
|
s ? new Date(s) : null,
|
|
360
377
|
/* @__PURE__ */ new Date()
|
|
361
|
-
),
|
|
362
|
-
|
|
378
|
+
), N = Q(
|
|
379
|
+
u ? new Date(u) : null,
|
|
363
380
|
/* @__PURE__ */ new Date()
|
|
364
|
-
),
|
|
365
|
-
|
|
366
|
-
|
|
381
|
+
), fe = N !== null && N <= 3 && N > 0, B = N !== null && N <= 1 && N >= 0, Z = (_, j, w, E, I) => w === 1 ? `${_} ${w} ${E}` : `${j} ${w} ${I}`, pe = () => {
|
|
382
|
+
if (!u) return null;
|
|
383
|
+
const _ = xe, w = new Date(u).getTime() - _.getTime();
|
|
384
|
+
if (w <= 0) return null;
|
|
385
|
+
const E = Math.floor(w / (1e3 * 60 * 60)), I = Math.floor(w % (1e3 * 60 * 60) / (1e3 * 60)), we = Math.floor(w % (1e3 * 60) / 1e3);
|
|
386
|
+
return { hours: E, minutes: I, seconds: we };
|
|
387
|
+
}, [xe, ve] = z(/* @__PURE__ */ new Date());
|
|
388
|
+
te(() => {
|
|
389
|
+
if (!B) return;
|
|
390
|
+
const _ = setInterval(() => {
|
|
391
|
+
ve(/* @__PURE__ */ new Date());
|
|
392
|
+
}, 1e3);
|
|
393
|
+
return () => clearInterval(_);
|
|
394
|
+
}, [B]);
|
|
395
|
+
const R = B ? pe() : null;
|
|
396
|
+
return /* @__PURE__ */ c(
|
|
397
|
+
Se,
|
|
367
398
|
{
|
|
368
|
-
ref:
|
|
399
|
+
ref: n,
|
|
369
400
|
theme: i,
|
|
370
|
-
className:
|
|
371
|
-
onClick:
|
|
401
|
+
className: D,
|
|
402
|
+
onClick: C,
|
|
372
403
|
...me,
|
|
373
404
|
children: [
|
|
374
|
-
/* @__PURE__ */
|
|
375
|
-
/* @__PURE__ */ t("img", { src:
|
|
376
|
-
/* @__PURE__ */ t(
|
|
377
|
-
var
|
|
405
|
+
/* @__PURE__ */ c(Te, { theme: i, onClick: () => p == null ? void 0 : p(), children: [
|
|
406
|
+
/* @__PURE__ */ t("img", { src: h }),
|
|
407
|
+
/* @__PURE__ */ t(Pe, { children: d == null ? void 0 : d.map((_, j) => {
|
|
408
|
+
var w, E;
|
|
378
409
|
return /* @__PURE__ */ t(
|
|
379
|
-
|
|
410
|
+
Ee,
|
|
380
411
|
{
|
|
381
|
-
color: (
|
|
412
|
+
color: (w = v == null ? void 0 : v.find((I) => I.value === _)) == null ? void 0 : w.color,
|
|
382
413
|
theme: i,
|
|
383
414
|
children: /* @__PURE__ */ t(
|
|
384
|
-
|
|
415
|
+
oe,
|
|
385
416
|
{
|
|
386
|
-
icon: (
|
|
417
|
+
icon: (E = v == null ? void 0 : v.find((I) => I.value === _)) == null ? void 0 : E.icon
|
|
387
418
|
}
|
|
388
419
|
)
|
|
389
420
|
},
|
|
390
|
-
`package__${
|
|
421
|
+
`package__${j}`
|
|
391
422
|
);
|
|
392
423
|
}) })
|
|
393
424
|
] }),
|
|
394
|
-
/* @__PURE__ */
|
|
395
|
-
/* @__PURE__ */ t("div", { className: "text-block-wrapper", children: /* @__PURE__ */
|
|
396
|
-
/* @__PURE__ */ t("div", { className: "campaign-title", children: (
|
|
397
|
-
/* @__PURE__ */ t("div", { className: "campaign-title-text", children:
|
|
398
|
-
|
|
399
|
-
|
|
425
|
+
/* @__PURE__ */ c(ke, { theme: i, children: [
|
|
426
|
+
/* @__PURE__ */ t("div", { className: "text-block-wrapper", children: /* @__PURE__ */ c("div", { className: "title-block-wrapper", children: [
|
|
427
|
+
/* @__PURE__ */ t("div", { className: "campaign-title", children: (q = T ? y : k) == null ? void 0 : q.toUpperCase() }),
|
|
428
|
+
/* @__PURE__ */ t("div", { className: "campaign-title-text", children: f }),
|
|
429
|
+
u && s && /* @__PURE__ */ c("div", { children: [
|
|
430
|
+
ee(s),
|
|
400
431
|
" - ",
|
|
401
|
-
|
|
432
|
+
ee(u)
|
|
402
433
|
] }),
|
|
403
|
-
/* @__PURE__ */
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
)
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
434
|
+
/* @__PURE__ */ c("div", { className: "timestamp-text", children: [
|
|
435
|
+
G > 0 && /* @__PURE__ */ c("span", { className: "listings-text", children: [
|
|
436
|
+
G,
|
|
437
|
+
" ",
|
|
438
|
+
G === 1 ? de : ge,
|
|
439
|
+
" ",
|
|
440
|
+
"∙",
|
|
441
|
+
" "
|
|
442
|
+
] }),
|
|
443
|
+
/* @__PURE__ */ t(
|
|
444
|
+
"span",
|
|
445
|
+
{
|
|
446
|
+
className: `duration-text ${fe ? "urgent" : ""}`,
|
|
447
|
+
children: B && R ? /* @__PURE__ */ c("div", { className: "countdown-timer", children: [
|
|
448
|
+
U,
|
|
449
|
+
" ",
|
|
450
|
+
R.hours.toString().padStart(2, "0"),
|
|
451
|
+
":",
|
|
452
|
+
R.minutes.toString().padStart(2, "0"),
|
|
453
|
+
":",
|
|
454
|
+
R.seconds.toString().padStart(2, "0")
|
|
455
|
+
] }) : he ? Z(
|
|
456
|
+
U,
|
|
457
|
+
a,
|
|
458
|
+
N,
|
|
459
|
+
r,
|
|
460
|
+
g
|
|
461
|
+
) : Z(
|
|
462
|
+
O,
|
|
463
|
+
P,
|
|
464
|
+
ue,
|
|
465
|
+
L,
|
|
466
|
+
M
|
|
467
|
+
)
|
|
468
|
+
}
|
|
417
469
|
)
|
|
418
470
|
] })
|
|
419
471
|
] }) }),
|
|
420
472
|
/* @__PURE__ */ t(
|
|
421
|
-
|
|
473
|
+
se,
|
|
422
474
|
{
|
|
423
475
|
hasPermission: !0,
|
|
424
476
|
image: (
|
|
@@ -431,17 +483,17 @@ const V = (e, a) => {
|
|
|
431
483
|
/* @__PURE__ */ t(
|
|
432
484
|
"img",
|
|
433
485
|
{
|
|
434
|
-
src:
|
|
435
|
-
className: `${
|
|
486
|
+
src: $,
|
|
487
|
+
className: `${$ ? "" : "no-image"}`
|
|
436
488
|
}
|
|
437
489
|
)
|
|
438
490
|
),
|
|
439
|
-
themeData:
|
|
491
|
+
themeData: X,
|
|
440
492
|
isActive: !0,
|
|
441
493
|
isUser: !1,
|
|
442
|
-
name:
|
|
443
|
-
shopCategory:
|
|
444
|
-
onClick: () =>
|
|
494
|
+
name: S,
|
|
495
|
+
shopCategory: b,
|
|
496
|
+
onClick: () => x(l)
|
|
445
497
|
}
|
|
446
498
|
)
|
|
447
499
|
] })
|
|
@@ -449,13 +501,13 @@ const V = (e, a) => {
|
|
|
449
501
|
}
|
|
450
502
|
);
|
|
451
503
|
});
|
|
452
|
-
|
|
504
|
+
le.propTypes = {
|
|
453
505
|
title: o.oneOfType([o.string, o.element]),
|
|
454
506
|
numberOfListings: o.number,
|
|
455
507
|
dropdown: o.any,
|
|
456
508
|
color: o.string
|
|
457
509
|
};
|
|
458
|
-
|
|
510
|
+
m.div`
|
|
459
511
|
display: flex;
|
|
460
512
|
flex-direction: column;
|
|
461
513
|
gap: 1.5rem;
|
|
@@ -486,7 +538,7 @@ h.div`
|
|
|
486
538
|
}
|
|
487
539
|
}
|
|
488
540
|
|
|
489
|
-
@media (max-width: ${
|
|
541
|
+
@media (max-width: ${F + "px"}) {
|
|
490
542
|
& .campaign-item {
|
|
491
543
|
min-width: 100%;
|
|
492
544
|
width: 100%;
|
|
@@ -494,19 +546,19 @@ h.div`
|
|
|
494
546
|
}
|
|
495
547
|
}
|
|
496
548
|
`;
|
|
497
|
-
const
|
|
549
|
+
const W = m.div`
|
|
498
550
|
width: ${(e) => e.width || "100%"};
|
|
499
551
|
height: ${(e) => (e.heightCoeff || 1) * 1.125}rem;
|
|
500
552
|
background-color: var(--gray-200, #dddfe4);
|
|
501
553
|
|
|
502
|
-
${
|
|
503
|
-
`,
|
|
554
|
+
${ne("-90deg")}
|
|
555
|
+
`, Fe = m.div`
|
|
504
556
|
display: flex;
|
|
505
557
|
flex-direction: ${(e) => e != null && e.row ? "row" : "column"};
|
|
506
558
|
gap: ${(e) => (e == null ? void 0 : e.gap) ?? "0.5rem"};
|
|
507
559
|
width: ${(e) => (e == null ? void 0 : e.width) ?? "100%"};
|
|
508
|
-
`,
|
|
509
|
-
border-radius: ${(e) =>
|
|
560
|
+
`, re = m.div`
|
|
561
|
+
border-radius: ${(e) => A(e.theme, (e == null ? void 0 : e.borderRadius) ?? "regular")};
|
|
510
562
|
background: var(--gray-200, #dddfe4);
|
|
511
563
|
position: relative;
|
|
512
564
|
max-height: ${(e) => (e == null ? void 0 : e.height) ?? "5rem"};
|
|
@@ -515,10 +567,10 @@ const U = h.div`
|
|
|
515
567
|
width: ${(e) => (e == null ? void 0 : e.width) ?? "5rem"};
|
|
516
568
|
flex-shrink: 0;
|
|
517
569
|
|
|
518
|
-
${
|
|
519
|
-
`,
|
|
570
|
+
${ne()}
|
|
571
|
+
`, ze = m.div`
|
|
520
572
|
background: var(--white, #fff);
|
|
521
|
-
border-radius: ${(e) =>
|
|
573
|
+
border-radius: ${(e) => A(e.theme, "edged")};
|
|
522
574
|
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
|
|
523
575
|
border: 1px solid var(--gray-95012, #14161a1f);
|
|
524
576
|
|
|
@@ -545,59 +597,59 @@ const U = h.div`
|
|
|
545
597
|
gap: 0.5rem;
|
|
546
598
|
}
|
|
547
599
|
|
|
548
|
-
@media (max-width: ${
|
|
600
|
+
@media (max-width: ${F + "px"}) {
|
|
549
601
|
flex-direction: column;
|
|
550
602
|
|
|
551
603
|
& .campaign__user {
|
|
552
604
|
margin-top: 1rem;
|
|
553
605
|
}
|
|
554
606
|
}
|
|
555
|
-
`,
|
|
607
|
+
`, Ae = m.div`
|
|
556
608
|
display: flex;
|
|
557
609
|
gap: 1.5rem;
|
|
558
|
-
`,
|
|
559
|
-
const
|
|
560
|
-
return /* @__PURE__ */
|
|
610
|
+
`, Me = V(({}, e) => {
|
|
611
|
+
const n = Y();
|
|
612
|
+
return /* @__PURE__ */ c(ze, { ref: e, theme: n, children: [
|
|
561
613
|
/* @__PURE__ */ t("div", { className: "campaign__left-section", children: /* @__PURE__ */ t(
|
|
562
|
-
|
|
614
|
+
re,
|
|
563
615
|
{
|
|
564
|
-
theme:
|
|
616
|
+
theme: n,
|
|
565
617
|
width: "15rem",
|
|
566
618
|
height: "15rem",
|
|
567
619
|
borderRadius: "edged"
|
|
568
620
|
}
|
|
569
621
|
) }),
|
|
570
|
-
/* @__PURE__ */
|
|
571
|
-
/* @__PURE__ */
|
|
572
|
-
/* @__PURE__ */ t(
|
|
573
|
-
/* @__PURE__ */ t(
|
|
574
|
-
/* @__PURE__ */ t(
|
|
622
|
+
/* @__PURE__ */ c("div", { className: "campaign__right-section", children: [
|
|
623
|
+
/* @__PURE__ */ c(Fe, { theme: n, children: [
|
|
624
|
+
/* @__PURE__ */ t(W, { heightCoeff: 0.75, theme: n, width: "35%" }),
|
|
625
|
+
/* @__PURE__ */ t(W, { heightCoeff: 1.25, theme: n }),
|
|
626
|
+
/* @__PURE__ */ t(W, { heightCoeff: 3, theme: n })
|
|
575
627
|
] }),
|
|
576
|
-
/* @__PURE__ */
|
|
628
|
+
/* @__PURE__ */ c("div", { className: "campaign__user", children: [
|
|
577
629
|
/* @__PURE__ */ t(
|
|
578
|
-
|
|
630
|
+
re,
|
|
579
631
|
{
|
|
580
|
-
theme:
|
|
632
|
+
theme: n,
|
|
581
633
|
width: "2.5rem",
|
|
582
634
|
height: "2.5rem",
|
|
583
635
|
borderRadius: "curved"
|
|
584
636
|
}
|
|
585
637
|
),
|
|
586
|
-
/* @__PURE__ */ t(
|
|
638
|
+
/* @__PURE__ */ t(W, { theme: n, width: "75%" })
|
|
587
639
|
] })
|
|
588
640
|
] })
|
|
589
641
|
] });
|
|
590
|
-
}),
|
|
591
|
-
|
|
642
|
+
}), Oe = ({ itemsCount: e = 5, keyPrefix: n }) => /* @__PURE__ */ t(Ae, { children: Array.from({ length: e }, (i, l) => /* @__PURE__ */ t(
|
|
643
|
+
Me,
|
|
592
644
|
{},
|
|
593
|
-
`${
|
|
594
|
-
)) }),
|
|
645
|
+
`${n}-skeleton-campaign-card-${l}`
|
|
646
|
+
)) }), Le = ({
|
|
595
647
|
children: e,
|
|
596
|
-
fallbackComponent:
|
|
648
|
+
fallbackComponent: n = /* @__PURE__ */ t(be, {}),
|
|
597
649
|
isLoading: i = !1,
|
|
598
650
|
itemsCount: l = 5,
|
|
599
|
-
keyPrefix:
|
|
600
|
-
}) => /* @__PURE__ */ t(
|
|
651
|
+
keyPrefix: f
|
|
652
|
+
}) => /* @__PURE__ */ t($e, { fallback: n, children: i === !0 ? /* @__PURE__ */ t(Oe, { itemsCount: l, keyPrefix: f }) : e }), Ue = m.div`
|
|
601
653
|
margin: 0 auto;
|
|
602
654
|
display: flex;
|
|
603
655
|
flex-direction: column;
|
|
@@ -638,56 +690,56 @@ const U = h.div`
|
|
|
638
690
|
top: 0;
|
|
639
691
|
right: 0;
|
|
640
692
|
}
|
|
641
|
-
`,
|
|
693
|
+
`, Be = m(ae.div)`
|
|
642
694
|
display: grid;
|
|
643
695
|
grid-template-columns: repeat(${(e) => e == null ? void 0 : e.numOfColumns}, 1fr);
|
|
644
696
|
gap: 1.5rem;
|
|
645
697
|
|
|
646
|
-
@media (max-width: ${
|
|
698
|
+
@media (max-width: ${F + "px"}) {
|
|
647
699
|
grid-template-columns: repeat(${(e) => e == null ? void 0 : e.numOfColumnsForMobile}, 1fr);
|
|
648
700
|
}
|
|
649
|
-
`,
|
|
701
|
+
`, ce = V(
|
|
650
702
|
({
|
|
651
703
|
icon: e,
|
|
652
|
-
title:
|
|
704
|
+
title: n,
|
|
653
705
|
numOfSlides: i = 2,
|
|
654
706
|
numOfSlidesForMobile: l = 1,
|
|
655
|
-
showNavigation:
|
|
656
|
-
children:
|
|
657
|
-
},
|
|
658
|
-
const [
|
|
659
|
-
|
|
660
|
-
const
|
|
707
|
+
showNavigation: f = !0,
|
|
708
|
+
children: h
|
|
709
|
+
}, p) => {
|
|
710
|
+
const [s, u] = z(0), [d, S] = z(1), [b, $] = z(null), [D, C] = z(null), x = ie(), T = 50, y = (h == null ? void 0 : h.length) ?? 1;
|
|
711
|
+
te(() => {
|
|
712
|
+
const a = () => {
|
|
661
713
|
S(x ? l : i);
|
|
662
714
|
};
|
|
663
|
-
return window.addEventListener("resize",
|
|
715
|
+
return window.addEventListener("resize", a), a(), () => window.removeEventListener("resize", a);
|
|
664
716
|
}, []);
|
|
665
|
-
const
|
|
666
|
-
var
|
|
667
|
-
(
|
|
668
|
-
},
|
|
669
|
-
var
|
|
670
|
-
(
|
|
717
|
+
const k = h == null ? void 0 : h.slice(s, s + d), v = (a) => {
|
|
718
|
+
var g;
|
|
719
|
+
(g = a == null ? void 0 : a.target) == null || g.blur(), s + d < y && u(s + d);
|
|
720
|
+
}, P = (a) => {
|
|
721
|
+
var g;
|
|
722
|
+
(g = a == null ? void 0 : a.target) == null || g.blur(), s - d >= 0 && u(s - d);
|
|
671
723
|
};
|
|
672
|
-
return /* @__PURE__ */
|
|
673
|
-
|
|
724
|
+
return /* @__PURE__ */ c(
|
|
725
|
+
Ue,
|
|
674
726
|
{
|
|
675
|
-
ref:
|
|
676
|
-
...x ? { onTouchStart: (
|
|
677
|
-
var
|
|
678
|
-
|
|
679
|
-
}, onTouchMove: (
|
|
680
|
-
var
|
|
681
|
-
|
|
727
|
+
ref: p,
|
|
728
|
+
...x ? { onTouchStart: (a) => {
|
|
729
|
+
var g;
|
|
730
|
+
C(null), $((g = a == null ? void 0 : a.targetTouches["0"]) == null ? void 0 : g.clientX);
|
|
731
|
+
}, onTouchMove: (a) => {
|
|
732
|
+
var g;
|
|
733
|
+
C((g = a == null ? void 0 : a.targetTouches["0"]) == null ? void 0 : g.clientX);
|
|
682
734
|
}, onTouchEnd: () => {
|
|
683
|
-
if (!
|
|
684
|
-
const
|
|
685
|
-
|
|
735
|
+
if (!b || !D) return;
|
|
736
|
+
const a = b - D;
|
|
737
|
+
a > T && v(), a < -T && P();
|
|
686
738
|
} } : {},
|
|
687
739
|
children: [
|
|
688
|
-
/* @__PURE__ */ t("div", { className: "scrollable-section__header", children: /* @__PURE__ */
|
|
689
|
-
|
|
690
|
-
|
|
740
|
+
/* @__PURE__ */ t("div", { className: "scrollable-section__header", children: /* @__PURE__ */ c("div", { className: "scrollable-section__title", children: [
|
|
741
|
+
H(e) && /* @__PURE__ */ t(
|
|
742
|
+
oe,
|
|
691
743
|
{
|
|
692
744
|
icon: e,
|
|
693
745
|
color: "primary",
|
|
@@ -695,10 +747,10 @@ const U = h.div`
|
|
|
695
747
|
className: "title__icon"
|
|
696
748
|
}
|
|
697
749
|
),
|
|
698
|
-
|
|
750
|
+
H(n) && /* @__PURE__ */ t("div", { className: "title__text", children: n })
|
|
699
751
|
] }) }),
|
|
700
752
|
/* @__PURE__ */ t(
|
|
701
|
-
|
|
753
|
+
Be,
|
|
702
754
|
{
|
|
703
755
|
numOfColumns: i,
|
|
704
756
|
numOfColumnsForMobile: l,
|
|
@@ -710,33 +762,33 @@ const U = h.div`
|
|
|
710
762
|
x: 10,
|
|
711
763
|
opacity: 0
|
|
712
764
|
},
|
|
713
|
-
children:
|
|
765
|
+
children: k
|
|
714
766
|
},
|
|
715
|
-
`scrollable-section__content-${
|
|
767
|
+
`scrollable-section__content-${s}`
|
|
716
768
|
),
|
|
717
|
-
|
|
769
|
+
f && y > d && !x && /* @__PURE__ */ c("div", { className: "scrollable-section__navigation", children: [
|
|
718
770
|
/* @__PURE__ */ t(
|
|
719
|
-
|
|
771
|
+
J,
|
|
720
772
|
{
|
|
721
773
|
icon: "angle-left",
|
|
722
774
|
borderRadius: "curved",
|
|
723
775
|
btnType: "tinted",
|
|
724
776
|
color: "neutral",
|
|
725
777
|
className: "navigation__arrow",
|
|
726
|
-
disabled:
|
|
727
|
-
onClick:
|
|
778
|
+
disabled: s === 0,
|
|
779
|
+
onClick: P
|
|
728
780
|
}
|
|
729
781
|
),
|
|
730
782
|
/* @__PURE__ */ t(
|
|
731
|
-
|
|
783
|
+
J,
|
|
732
784
|
{
|
|
733
785
|
icon: "angle-right",
|
|
734
786
|
borderRadius: "curved",
|
|
735
787
|
btnType: "tinted",
|
|
736
788
|
color: "neutral",
|
|
737
789
|
className: "navigation__arrow",
|
|
738
|
-
disabled:
|
|
739
|
-
onClick:
|
|
790
|
+
disabled: s + d >= y,
|
|
791
|
+
onClick: v
|
|
740
792
|
}
|
|
741
793
|
)
|
|
742
794
|
] })
|
|
@@ -745,48 +797,48 @@ const U = h.div`
|
|
|
745
797
|
);
|
|
746
798
|
}
|
|
747
799
|
);
|
|
748
|
-
|
|
800
|
+
ce.propTypes = {
|
|
749
801
|
icon: o.string,
|
|
750
802
|
title: o.string,
|
|
751
803
|
numOfSlides: o.number,
|
|
752
804
|
numOfSlidesForMobile: o.number,
|
|
753
805
|
showNavigation: o.bool
|
|
754
806
|
};
|
|
755
|
-
const
|
|
807
|
+
const Re = De(le), er = V(
|
|
756
808
|
({
|
|
757
809
|
sellerType: e = "Shop",
|
|
758
|
-
items:
|
|
810
|
+
items: n = [],
|
|
759
811
|
title: i,
|
|
760
812
|
icon: l,
|
|
761
|
-
isLoading:
|
|
762
|
-
onSelectCard:
|
|
813
|
+
isLoading: f,
|
|
814
|
+
onSelectCard: h = () => {
|
|
763
815
|
},
|
|
764
|
-
onSelectShop:
|
|
816
|
+
onSelectShop: p = () => {
|
|
765
817
|
},
|
|
766
|
-
getImage:
|
|
818
|
+
getImage: s = () => {
|
|
767
819
|
},
|
|
768
|
-
campaignSingleText:
|
|
769
|
-
upcomingCampaignText:
|
|
820
|
+
campaignSingleText: u,
|
|
821
|
+
upcomingCampaignText: d,
|
|
770
822
|
salesCampaignTypes: S = [],
|
|
771
|
-
startsInPrefixTextPlural:
|
|
772
|
-
startsinSuffixTextPlural:
|
|
773
|
-
startsInPrefixTextSingular:
|
|
774
|
-
startsinSuffixTextSingular:
|
|
823
|
+
startsInPrefixTextPlural: b,
|
|
824
|
+
startsinSuffixTextPlural: $,
|
|
825
|
+
startsInPrefixTextSingular: D,
|
|
826
|
+
startsinSuffixTextSingular: C,
|
|
775
827
|
endsInPrefixTextPlural: x,
|
|
776
|
-
endsinSuffixTextPlural:
|
|
777
|
-
endsInPrefixTextSingular:
|
|
778
|
-
endsinSuffixTextSingular:
|
|
779
|
-
numOfSlides:
|
|
780
|
-
numOfSlidesForMobile:
|
|
781
|
-
showNavigation:
|
|
782
|
-
numberOfListingsTextSingular:
|
|
783
|
-
numberOfListingsTextPlural:
|
|
784
|
-
},
|
|
785
|
-
const
|
|
786
|
-
|
|
828
|
+
endsinSuffixTextPlural: T,
|
|
829
|
+
endsInPrefixTextSingular: y,
|
|
830
|
+
endsinSuffixTextSingular: k,
|
|
831
|
+
numOfSlides: v = 2,
|
|
832
|
+
numOfSlidesForMobile: P = 1,
|
|
833
|
+
showNavigation: M = !0,
|
|
834
|
+
numberOfListingsTextSingular: O,
|
|
835
|
+
numberOfListingsTextPlural: L
|
|
836
|
+
}, a) => {
|
|
837
|
+
const g = ie(), U = Ce(() => n == null ? void 0 : n.map((r, X) => /* @__PURE__ */ t(
|
|
838
|
+
Re,
|
|
787
839
|
{
|
|
788
840
|
className: "campaign-item",
|
|
789
|
-
coverPhoto:
|
|
841
|
+
coverPhoto: s(
|
|
790
842
|
r == null ? void 0 : r.coverPhoto,
|
|
791
843
|
(r == null ? void 0 : r.uuid) || (r == null ? void 0 : r.campaignUuid)
|
|
792
844
|
),
|
|
@@ -801,42 +853,42 @@ const Ue = ve(ne), Je = B(
|
|
|
801
853
|
startDate: r == null ? void 0 : r.startDate,
|
|
802
854
|
title: r == null ? void 0 : r.name,
|
|
803
855
|
uuid: r == null ? void 0 : r.campaignUuid,
|
|
804
|
-
onSelectCard: () =>
|
|
805
|
-
onSelectShop: () =>
|
|
806
|
-
campaignSingleText:
|
|
807
|
-
upcomingCampaignText:
|
|
856
|
+
onSelectCard: () => h(r == null ? void 0 : r.campaignUuid, r == null ? void 0 : r.shopUuid),
|
|
857
|
+
onSelectShop: () => p(r == null ? void 0 : r.shopUuid),
|
|
858
|
+
campaignSingleText: u,
|
|
859
|
+
upcomingCampaignText: d,
|
|
808
860
|
upcoming: r == null ? void 0 : r.upcoming,
|
|
809
861
|
salesCampaignTypes: S,
|
|
810
|
-
startsInPrefixTextPlural:
|
|
811
|
-
startsinSuffixTextPlural:
|
|
812
|
-
startsInPrefixTextSingular:
|
|
813
|
-
startsinSuffixTextSingular:
|
|
862
|
+
startsInPrefixTextPlural: b,
|
|
863
|
+
startsinSuffixTextPlural: $,
|
|
864
|
+
startsInPrefixTextSingular: D,
|
|
865
|
+
startsinSuffixTextSingular: C,
|
|
814
866
|
endsInPrefixTextPlural: x,
|
|
815
|
-
endsinSuffixTextPlural:
|
|
816
|
-
endsInPrefixTextSingular:
|
|
817
|
-
endsinSuffixTextSingular:
|
|
867
|
+
endsinSuffixTextPlural: T,
|
|
868
|
+
endsInPrefixTextSingular: y,
|
|
869
|
+
endsinSuffixTextSingular: k,
|
|
818
870
|
themeData: r == null ? void 0 : r.themeData,
|
|
819
871
|
numberOfListings: r == null ? void 0 : r.numberOfListings,
|
|
820
|
-
numberOfListingsTextSingular:
|
|
821
|
-
numberOfListingsTextPlural:
|
|
872
|
+
numberOfListingsTextSingular: O,
|
|
873
|
+
numberOfListingsTextPlural: L
|
|
822
874
|
},
|
|
823
|
-
`campaign__item__${
|
|
824
|
-
)), [
|
|
875
|
+
`campaign__item__${X}__${r == null ? void 0 : r.startDate}___${r == null ? void 0 : r.endDate}`
|
|
876
|
+
)), [n]);
|
|
825
877
|
return /* @__PURE__ */ t(
|
|
826
|
-
|
|
878
|
+
Le,
|
|
827
879
|
{
|
|
828
|
-
isLoading:
|
|
829
|
-
itemsCount:
|
|
880
|
+
isLoading: f,
|
|
881
|
+
itemsCount: g ? 1 : 2,
|
|
830
882
|
keyPrefix: "sales-camp",
|
|
831
883
|
children: /* @__PURE__ */ t(
|
|
832
|
-
|
|
884
|
+
ce,
|
|
833
885
|
{
|
|
834
886
|
icon: l,
|
|
835
887
|
title: i,
|
|
836
|
-
numOfSlides:
|
|
837
|
-
numOfSlidesForMobile:
|
|
838
|
-
showNavigation:
|
|
839
|
-
children:
|
|
888
|
+
numOfSlides: v,
|
|
889
|
+
numOfSlidesForMobile: P,
|
|
890
|
+
showNavigation: M,
|
|
891
|
+
children: U
|
|
840
892
|
}
|
|
841
893
|
)
|
|
842
894
|
}
|
|
@@ -844,5 +896,5 @@ const Ue = ve(ne), Je = B(
|
|
|
844
896
|
}
|
|
845
897
|
);
|
|
846
898
|
export {
|
|
847
|
-
|
|
899
|
+
er as default
|
|
848
900
|
};
|