@lanaco/lnc-react-ui 4.0.133 → 4.0.135
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/BannerSectionCarousel.cjs +157 -87
- package/dist/BannerSectionCarousel.js +510 -414
- package/dist/BlogCardsSponsoredSection.cjs +6 -4
- package/dist/BlogCardsSponsoredSection.js +11 -9
- package/dist/BlogListSection.cjs +3 -1
- package/dist/BlogListSection.js +15 -13
- package/dist/BlogsSectionDetailed.cjs +4 -4
- package/dist/BlogsSectionDetailed.js +2 -2
- package/dist/BlogsSectionSimple.cjs +2 -5
- package/dist/BlogsSectionSimple.js +2 -5
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- package/dist/SalesCampaignsSection.cjs +29 -29
- package/dist/SalesCampaignsSection.js +261 -257
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/{style-XXDQBreL.js → style-DAn9Ifqe.js} +9 -7
- package/dist/{style-C_BRvopE.cjs → style-DaT7Beup.cjs} +7 -5
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),c=require("react"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),c=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./utils-DmMdPm9O.cjs"),M=require("./consts-goSZX3xP.cjs"),oe=require("./motion-B_VPZaJq.cjs"),s=require("./index-BpbMKBf_.cjs"),ie=require("./Icon.cjs"),ee=require("./ShopAvatar-CV3lj34D.cjs"),ve=require("./Badge.cjs"),H=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),re=require("./IconButton.cjs"),le=require("./useDetectMobile-zkbzoOGV.cjs"),_e=h.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: ${M.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
|
+
`,Te=h.styled.div`
|
|
17
|
+
border-radius: ${e=>w.getBorderRadiusValueWithUnits(e.theme,"edged")};
|
|
18
18
|
height: 13.75rem;
|
|
19
19
|
width: 13.75rem;
|
|
20
20
|
min-width: 13.75rem;
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
@media (max-width: ${
|
|
40
|
+
@media (max-width: ${M.MOBILE_SIZE_PX+"px"}) {
|
|
41
41
|
width: 100%;
|
|
42
42
|
max-width: 100dvh;
|
|
43
43
|
height: 23.438rem;
|
|
44
44
|
}
|
|
45
|
-
`,
|
|
45
|
+
`,je=h.styled.div`
|
|
46
46
|
flex: 1;
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: column;
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
background-color: transparent;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
@media (max-width: ${
|
|
117
|
+
@media (max-width: ${M.MOBILE_SIZE_PX+"px"}) {
|
|
118
118
|
padding: 1.25rem;
|
|
119
119
|
|
|
120
120
|
& .campaign-title {
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
${n?"":"flex-wrap: nowrap;"}
|
|
135
135
|
${e?"align-items: center;":""}
|
|
136
136
|
${a?"justify-content: center;":""}
|
|
137
|
-
`,
|
|
137
|
+
`,Se=h.styled(oe.motion.div)`
|
|
138
138
|
text-decoration: none;
|
|
139
139
|
${e=>e.hasPermission===!0&&"cursor: pointer"};
|
|
140
140
|
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
font-weight: 500;
|
|
159
159
|
font-size: 0.875rem;
|
|
160
160
|
line-height: 1.25rem;
|
|
161
|
-
border-radius: ${e=>
|
|
161
|
+
border-radius: ${e=>w.getBorderRadiusValueWithUnits(e.theme,"slight")};
|
|
162
162
|
transition: all 0.25s ease;
|
|
163
163
|
& .description {
|
|
164
164
|
font-size: 0.85rem;
|
|
@@ -205,14 +205,14 @@
|
|
|
205
205
|
cursor: pointer;
|
|
206
206
|
background-color: var(--gray-95080, #14161acc);
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
`,$e=h.styled.div`
|
|
209
209
|
position: absolute;
|
|
210
210
|
top: 0.5rem;
|
|
211
211
|
${e=>e.alignToLeft===!0?"left: 0.5rem;":"right: 0.5rem;"}
|
|
212
212
|
display: flex;
|
|
213
213
|
gap: 0.25rem;
|
|
214
|
-
|
|
215
|
-
border-radius: ${e=>
|
|
214
|
+
`,Pe=h.styled.div`
|
|
215
|
+
border-radius: ${e=>w.getBorderRadiusValueWithUnits(e.theme,e.borderRadius||"slight")};
|
|
216
216
|
background-color: ${e=>e==null?void 0:e.color};
|
|
217
217
|
color: white;
|
|
218
218
|
height: 1.5rem;
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
& i {
|
|
228
228
|
font-size: 0.813rem;
|
|
229
229
|
}
|
|
230
|
-
`,
|
|
230
|
+
`,Ce=c.forwardRef(({src:e,...n},a)=>{const o=c.useRef();return c.useEffect(()=>{var d;const u=g=>{g.target.src=ee.DefaultShopImage,g.onerror=null};return(d=o==null?void 0:o.current)==null||d.addEventListener("error",u),()=>{var g;(g=o==null?void 0:o.current)==null||g.removeEventListener("error",u)}},[]),t.jsx(c.Fragment,{ref:a,children:w.isDefinedNotEmptyString(e)?t.jsx("img",{ref:o,src:e,...n}):t.jsx("img",{src:ee.DefaultShopImage,...n})})}),ce=e=>{const{uuid:n,hasPermission:a=!0,isUser:o,image:u,imageComponent:d,name:g,notifications:l=0,color:m="primary",size:p="large",style:I,disabled:T,onClick:v=()=>{},isActive:j,className:S,shopCategory:_,themeData:b}=e,D={theme:H.useTheme(),color:m,size:p,style:I,disabled:T};return c.createElement(Se,{onClick:P=>{P.stopPropagation(),a===!0&&(v==null||v())},...D,key:g,className:`profile-item ${S}`,hasPermission:a,isActive:j,themeColor:(b==null?void 0:b.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:w.isDefined(d)?d:u}),t.jsxs("div",{children:[t.jsx("div",{className:"name",children:g}),!o&&t.jsx("div",{className:"description",children:_}),l>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(ve,{className:"badge",color:"danger",size:"small",children:l>99?"99+":l})})]}))};ce.propTypes={id:s.PropTypes.any,isUserProfile:s.PropTypes.bool,themeColor:s.PropTypes.string,image:s.PropTypes.any,name:s.PropTypes.string,notifications:s.PropTypes.number,style:s.PropTypes.object,className:s.PropTypes.string,color:s.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:s.PropTypes.oneOf(["large"]),onSelect:s.PropTypes.func,hasPermission:s.PropTypes.bool};const ne=(e,n)=>{if(!e||!n)return null;const a=e.getTime()-n.getTime(),o=24*60*60*1e3;return a>=0?Math.ceil(a/o):Math.floor(a/o)},se=e=>{if(e!==void 0){const n=new Date(e),a=n.getFullYear(),o=n.getMonth()+1;return`${String(n.getDate()).padStart(2)}. ${o}. ${a}.`}},de=c.forwardRef((e,n)=>{var Q;const a=H.useTheme(),{shopUuid:o,title:u="",coverPhoto:d,onSelect:g,startDate:l,endDate:m,salesPackages:p,shopName:I,shopCategory:T,shopImage:v,shopImageComponent:j,className:S,onSelectCard:_=()=>{},onSelectShop:b=()=>{},upcoming:$=!1,upcomingCampaignText:D,campaignSingleText:P,salesCampaignTypes:x=[],startsInPrefixTextPlural:L,startsinSuffixTextPlural:R,startsInPrefixTextSingular:z,startsinSuffixTextSingular:i,endsInPrefixTextPlural:f,endsinSuffixTextPlural:X,endsInPrefixTextSingular:F,endsinSuffixTextSingular:O,themeData:A,numberOfListings:k,numberOfListingsTextSingular:r,numberOfListingsTextPlural:Z,...me}=e,Y=l?new Date(l)<=new Date:!1,pe=ne(l?new Date(l):null,new Date),U=ne(m?new Date(m):null,new Date),he=U!==null&&U<=2&&U>0,J=m?new Date(m).getTime():null,fe=Date.now(),G=J!==null?J-fe:null,B=G!==null&&G>0&&G<24*60*60*1e3,K=(C,W,y,E,N)=>y===1?`${C} ${y} ${E}`:`${W} ${y} ${N}`,xe=()=>{if(!m)return null;const C=ye,y=new Date(m).getTime()-C.getTime();if(y<=0)return null;const E=Math.floor(y/(1e3*60*60)),N=Math.floor(y%(1e3*60*60)/(1e3*60)),be=Math.floor(y%(1e3*60)/1e3);return{hours:E,minutes:N,seconds:be}},[ye,we]=c.useState(new Date);c.useEffect(()=>{if(!B)return;const C=setInterval(()=>{we(new Date)},1e3);return()=>clearInterval(C)},[B]);const q=B?xe():null;return t.jsxs(_e,{ref:n,theme:a,className:S,onClick:_,...me,children:[t.jsxs(Te,{theme:a,onClick:()=>g==null?void 0:g(),children:[t.jsx("img",{src:d}),t.jsx($e,{children:p==null?void 0:p.map((C,W)=>{var y,E;return t.jsx(Pe,{color:(y=x==null?void 0:x.find(N=>N.value===C))==null?void 0:y.color,theme:a,children:t.jsx(ie,{icon:(E=x==null?void 0:x.find(N=>N.value===C))==null?void 0:E.icon})},`package__${W}`)})})]}),t.jsxs(je,{theme:a,children:[t.jsx("div",{className:"text-block-wrapper",children:t.jsxs("div",{className:"title-block-wrapper",children:[t.jsx("div",{className:"campaign-title",children:(Q=$?D:P)==null?void 0:Q.toUpperCase()}),t.jsx("div",{className:"campaign-title-text",children:u}),m&&l&&t.jsxs("div",{children:[se(l)," - ",se(m)]}),t.jsxs("div",{className:"timestamp-text",children:[k>0&&t.jsxs("span",{className:"listings-text",children:[k," ",k===1?r:Z," ","∙"," "]}),t.jsx("span",{className:`duration-text ${he?"urgent":""} ${Y?"":"starts-in"}`,children:B&&q?t.jsxs("div",{className:"countdown-timer",children:[F," ",q.hours.toString().padStart(2,"0"),":",q.minutes.toString().padStart(2,"0"),":",q.seconds.toString().padStart(2,"0")]}):Y?K(F,f,U,O,X):K(z,L,pe,i,R)})]})]})}),t.jsx(ce,{hasPermission:!0,image:t.jsx(Ce,{src:v}),imageComponent:j,themeData:A,isActive:!0,isUser:!1,name:I,shopCategory:T,onClick:()=>b(o)})]})]})});de.propTypes={title:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.element]),numberOfListings:s.PropTypes.number,dropdown:s.PropTypes.any,color:s.PropTypes.string};h.styled.div`
|
|
231
231
|
display: flex;
|
|
232
232
|
flex-direction: column;
|
|
233
233
|
gap: 1.5rem;
|
|
@@ -258,26 +258,26 @@
|
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
@media (max-width: ${
|
|
261
|
+
@media (max-width: ${M.MOBILE_SIZE_PX+"px"}) {
|
|
262
262
|
& .campaign-item {
|
|
263
263
|
min-width: 100%;
|
|
264
264
|
width: 100%;
|
|
265
265
|
margin-right: 0;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
`;const
|
|
268
|
+
`;const V=h.styled.div`
|
|
269
269
|
width: ${e=>e.width||"100%"};
|
|
270
270
|
height: ${e=>(e.heightCoeff||1)*1.125}rem;
|
|
271
271
|
background-color: var(--gray-200, #dddfe4);
|
|
272
272
|
|
|
273
|
-
${
|
|
274
|
-
`,
|
|
273
|
+
${w.linearGradientAnimation("-90deg")}
|
|
274
|
+
`,Ie=h.styled.div`
|
|
275
275
|
display: flex;
|
|
276
276
|
flex-direction: ${e=>e!=null&&e.row?"row":"column"};
|
|
277
277
|
gap: ${e=>(e==null?void 0:e.gap)??"0.5rem"};
|
|
278
278
|
width: ${e=>(e==null?void 0:e.width)??"100%"};
|
|
279
|
-
`,ae=
|
|
280
|
-
border-radius: ${e=>
|
|
279
|
+
`,ae=h.styled.div`
|
|
280
|
+
border-radius: ${e=>w.getBorderRadiusValueWithUnits(e.theme,(e==null?void 0:e.borderRadius)??"regular")};
|
|
281
281
|
background: var(--gray-200, #dddfe4);
|
|
282
282
|
position: relative;
|
|
283
283
|
max-height: ${e=>(e==null?void 0:e.height)??"5rem"};
|
|
@@ -286,10 +286,10 @@
|
|
|
286
286
|
width: ${e=>(e==null?void 0:e.width)??"5rem"};
|
|
287
287
|
flex-shrink: 0;
|
|
288
288
|
|
|
289
|
-
${
|
|
290
|
-
`,
|
|
289
|
+
${w.linearGradientAnimation()}
|
|
290
|
+
`,De=h.styled.div`
|
|
291
291
|
background: var(--white, #fff);
|
|
292
|
-
border-radius: ${e=>
|
|
292
|
+
border-radius: ${e=>w.getBorderRadiusValueWithUnits(e.theme,"edged")};
|
|
293
293
|
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
|
|
294
294
|
border: 1px solid var(--gray-95012, #14161a1f);
|
|
295
295
|
|
|
@@ -316,17 +316,17 @@
|
|
|
316
316
|
gap: 0.5rem;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
@media (max-width: ${
|
|
319
|
+
@media (max-width: ${M.MOBILE_SIZE_PX+"px"}) {
|
|
320
320
|
flex-direction: column;
|
|
321
321
|
|
|
322
322
|
& .campaign__user {
|
|
323
323
|
margin-top: 1rem;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
`,
|
|
326
|
+
`,Ne=h.styled.div`
|
|
327
327
|
display: flex;
|
|
328
328
|
gap: 1.5rem;
|
|
329
|
-
`,
|
|
329
|
+
`,ke=c.forwardRef(({},e)=>{const n=H.useTheme();return t.jsxs(De,{ref:e,theme:n,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(ae,{theme:n,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(Ie,{theme:n,children:[t.jsx(V,{heightCoeff:.75,theme:n,width:"35%"}),t.jsx(V,{heightCoeff:1.25,theme:n}),t.jsx(V,{heightCoeff:3,theme:n})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(ae,{theme:n,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(V,{theme:n,width:"75%"})]})]})]})}),Ee=({itemsCount:e=5,keyPrefix:n})=>t.jsx(Ne,{children:Array.from({length:e},(a,o)=>t.jsx(ke,{},`${n}-skeleton-campaign-card-${o}`))}),Me=({children:e,fallbackComponent:n=t.jsx(t.Fragment,{}),isLoading:a=!1,itemsCount:o=5,keyPrefix:u})=>t.jsx(c.Suspense,{fallback:n,children:a===!0?t.jsx(Ee,{itemsCount:o,keyPrefix:u}):e}),Le=h.styled.div`
|
|
330
330
|
margin: 0 auto;
|
|
331
331
|
display: flex;
|
|
332
332
|
flex-direction: column;
|
|
@@ -367,16 +367,16 @@
|
|
|
367
367
|
top: 0;
|
|
368
368
|
right: 0;
|
|
369
369
|
}
|
|
370
|
-
`,
|
|
370
|
+
`,Re=h.styled(oe.motion.div)`
|
|
371
371
|
display: grid;
|
|
372
372
|
grid-template-columns: repeat(${e=>e==null?void 0:e.numOfColumns}, 1fr);
|
|
373
373
|
gap: 1.5rem;
|
|
374
374
|
width: 100%;
|
|
375
375
|
|
|
376
|
-
@media (max-width: ${
|
|
376
|
+
@media (max-width: ${M.MOBILE_SIZE_PX+"px"}) {
|
|
377
377
|
grid-template-columns: repeat(${e=>e==null?void 0:e.numOfColumnsForMobile}, 1fr);
|
|
378
378
|
}
|
|
379
|
-
`,ge=c.forwardRef(({icon:e,title:n,numOfSlides:a=2,numOfSlidesForMobile:o=1,showNavigation:u=!0,children:
|
|
379
|
+
`,ge=c.forwardRef(({icon:e,title:n,numOfSlides:a=2,numOfSlidesForMobile:o=1,showNavigation:u=!0,children:d},g)=>{const[l,m]=c.useState(0),[p,I]=c.useState(1),[T,v]=c.useState(null),[j,S]=c.useState(null),_=le.useDetectMobile(),b=50,$=(d==null?void 0:d.length)??1;c.useEffect(()=>{const i=()=>{I(_?o:a)};return window.addEventListener("resize",i),i(),()=>window.removeEventListener("resize",i)},[]);const D=d==null?void 0:d.slice(l,l+p),P=i=>{var f;(f=i==null?void 0:i.target)==null||f.blur(),l+p<$&&m(l+p)},x=i=>{var f;(f=i==null?void 0:i.target)==null||f.blur(),l-p>=0&&m(l-p)},L=i=>{var f;S(null),v((f=i==null?void 0:i.targetTouches["0"])==null?void 0:f.clientX)},R=i=>{var f;S((f=i==null?void 0:i.targetTouches["0"])==null?void 0:f.clientX)},z=()=>{if(!T||!j)return;const i=T-j;i>b&&P(),i<-b&&x()};return t.jsxs(Le,{ref:g,..._?{onTouchStart:L,onTouchMove:R,onTouchEnd:z}:{},children:[t.jsx("div",{className:"scrollable-section__header",children:t.jsxs("div",{className:"scrollable-section__title",children:[w.isDefinedNotEmptyString(e)&&t.jsx(ie,{icon:e,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),w.isDefinedNotEmptyString(n)&&t.jsx("div",{className:"title__text",children:n})]})}),t.jsx(Re,{numOfColumns:a,numOfColumnsForMobile:o,animate:{x:0,opacity:1},initial:{x:10,opacity:0},children:D},`scrollable-section__content-${l}`),u&&$>p&&!_&&t.jsxs("div",{className:"scrollable-section__navigation",children:[t.jsx(re,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:l===0,onClick:x}),t.jsx(re,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:l+p>=$,onClick:P})]})]})});ge.propTypes={icon:s.PropTypes.string,title:s.PropTypes.string,numOfSlides:s.PropTypes.number,numOfSlidesForMobile:s.PropTypes.number,showNavigation:s.PropTypes.bool};const ze=h.styled.div`
|
|
380
380
|
display: flex;
|
|
381
381
|
flex: 1;
|
|
382
382
|
width: 100%;
|
|
@@ -393,4 +393,4 @@
|
|
|
393
393
|
border-radius: 1.25rem;
|
|
394
394
|
object-fit: cover;
|
|
395
395
|
}
|
|
396
|
-
`,ue=c.forwardRef(({sectionName:e,imageUrl:n,maxHeight:a="16.25rem",className:o="",handleClick:u=()=>{}})=>t.jsx(
|
|
396
|
+
`,ue=c.forwardRef(({sectionName:e,imageUrl:n,maxHeight:a="16.25rem",className:o="",handleClick:u=()=>{}})=>t.jsx(ze,{maxHeight:a,onClick:u,className:`itemless-banner ${o}`,children:t.jsx("img",{src:n,alt:`itemless-banner__${e}`})}));ue.propTypes={sectionName:s.PropTypes.string,imageUrl:s.PropTypes.string,maxHeight:s.PropTypes.string,className:s.PropTypes.string,handleClick:s.PropTypes.func};const Oe=c.memo(de),Ue=c.forwardRef(({sellerType:e="Shop",items:n=[],title:a,icon:o,isLoading:u,onSelectCard:d=()=>{},onSelectShop:g=()=>{},getImage:l=()=>{},campaignSingleText:m,upcomingCampaignText:p,salesCampaignTypes:I=[],startsInPrefixTextPlural:T,startsinSuffixTextPlural:v,startsInPrefixTextSingular:j,startsinSuffixTextSingular:S,endsInPrefixTextPlural:_,endsinSuffixTextPlural:b,endsInPrefixTextSingular:$,endsinSuffixTextSingular:D,numOfSlides:P=2,numOfSlidesForMobile:x=1,showNavigation:L=!0,numberOfListingsTextSingular:R,numberOfListingsTextPlural:z,itemlessImageUrl:i,itemlessLink:f,handleItemlessLink:X=()=>{}},F)=>{const O=le.useDetectMobile(),A=c.useMemo(()=>{let k=n==null?void 0:n.map((r,Z)=>t.jsx(Oe,{className:"campaign-item",coverPhoto:l(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,shopImageComponent:r==null?void 0:r.profileImageComponent,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:()=>d(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>g(r==null?void 0:r.shopUuid),campaignSingleText:m,upcomingCampaignText:p,upcoming:r==null?void 0:r.upcoming,salesCampaignTypes:I,startsInPrefixTextPlural:T,startsinSuffixTextPlural:v,startsInPrefixTextSingular:j,startsinSuffixTextSingular:S,endsInPrefixTextPlural:_,endsinSuffixTextPlural:b,endsInPrefixTextSingular:$,endsinSuffixTextSingular:D,themeData:r==null?void 0:r.themeData,numberOfListings:r==null?void 0:r.numberOfListings,numberOfListingsTextSingular:R,numberOfListingsTextPlural:z},`campaign__item__${Z}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}`));return(n==null?void 0:n.length)<2&&!O?[...k,t.jsx(ue,{imageUrl:i,className:"campaign-item",handleClick:X})]:k},[n]);return t.jsx(Me,{isLoading:u,itemsCount:O?1:2,keyPrefix:"sales-camp",children:t.jsx(ge,{icon:o,title:a,numOfSlides:P,numOfSlidesForMobile:x,showNavigation:L,children:A})})});module.exports=Ue;
|