@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.
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),h=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./utils-CZynEOC_.cjs"),I=require("./consts-goSZX3xP.cjs"),H=require("./motion-B_VPZaJq.cjs"),a=require("./index-BpbMKBf_.cjs"),J=require("./Icon.cjs"),pe=require("./Badge.cjs"),q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),X=require("./IconButton.cjs"),K=require("./useDetectMobile-zkbzoOGV.cjs"),ue=p.styled.div`
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: ${I.MOBILE_SIZE_PX+"px"}) {
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
- `,he=p.styled.div`
17
- border-radius: ${e=>v.getBorderRadiusValueWithUnits(e.theme,"edged")};
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: ${I.MOBILE_SIZE_PX+"px"}) {
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
- `,me=p.styled.div`
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
- font-size: 0.975rem;
81
- font-weight: 500;
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: ${I.MOBILE_SIZE_PX+"px"}) {
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
- `,fe={"#ADE3EB":"#76D0DB","#DDD6FE":"#C4B5FD","#FDE68A":"#FCD34D","#A7F3D0":"#6EE7B7","#BADFFF":"#87C6FA","#FECDD3":"#FDA4AF","#EFE2CF":"#EAD2AF","#DDDFE4":"#C4C8CF","#E7E5E4":"#D6D3D1","#FED7AA":"#FDBA74",default:"#C4C8CF"},Z=(e=!1,n=!1,o=!1)=>`
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
- `,xe=p.styled(H.motion.div)`
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
- ${Z(!0)}
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=>v.getBorderRadiusValueWithUnits(e.theme,"slight")};
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
- ${Z(!0,!1,!0)}
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)":fe[e.themeColor]??"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
- `,ye=p.styled.div`
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
- `,we=p.styled.div`
197
- border-radius: ${e=>v.getBorderRadiusValueWithUnits(e.theme,e.borderRadius||"slight")};
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
- `,Q=e=>{const{uuid:n,hasPermission:o=!0,isUser:l,image:f,name:u,notifications:_=0,color:g="primary",size:$="large",style:c,disabled:P,onClick:i=()=>{},isActive:m,className:y,shopCategory:j,themeData:x}=e,b={theme:q.useTheme(),color:g,size:$,style:c,disabled:P};return h.createElement(xe,{onClick:T=>{T.stopPropagation(),o===!0&&(i==null||i())},...b,key:u,className:`profile-item ${y}`,hasPermission:o,isActive:m,themeColor:(x==null?void 0:x.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:f}),t.jsxs("div",{children:[t.jsx("div",{className:"name",children:u}),!l&&t.jsx("div",{className:"description",children:j}),_>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(pe,{className:"badge",color:"danger",size:"small",children:_>99?"99+":_})})]}))};Q.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 L=(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.ceil(o/l)},G=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}.`}},ee=h.forwardRef((e,n)=>{var V;const o=q.useTheme(),{uuid:l,shopUuid:f,title:u="",description:_,badges:g,coverPhoto:$,onSelect:c,status:P,startDate:i,endDate:m,salesPackages:y,shopName:j,shopCategory:x,shopImage:D,className:b,onSelectCard:T=()=>{},onSelectShop:C=()=>{},upcoming:S=!1,upcomingCampaignText:k,campaignSingleText:N,salesCampaignTypes:w=[],startsInPrefixTextPlural:s,startsinSuffixTextPlural:d,startsInPrefixTextSingular:R,startsinSuffixTextSingular:r,endsInPrefixTextPlural:A,endsinSuffixTextPlural:te,endsInPrefixTextSingular:ne,endsinSuffixTextSingular:se,themeData:ae,numberOfListings:M,numberOfListingsTextSingular:oe,numberOfListingsTextPlural:ie,...le}=e,ce=i?new Date(i)<=new Date:!1;L(m?new Date(m):null,i?new Date(i):null);const de=L(i?new Date(i):null,new Date),ge=L(m?new Date(m):null,new Date),W=(B,U,E,z,F)=>E===1?`${B} ${E} ${z}`:`${U} ${E} ${F}`;return t.jsxs(ue,{ref:n,theme:o,className:b,onClick:T,...le,children:[t.jsxs(he,{theme:o,onClick:()=>c==null?void 0:c(),children:[t.jsx("img",{src:$}),t.jsx(ye,{children:y==null?void 0:y.map((B,U)=>{var E,z;return t.jsx(we,{color:(E=w==null?void 0:w.find(F=>F.value===B))==null?void 0:E.color,theme:o,children:t.jsx(J,{icon:(z=w==null?void 0:w.find(F=>F.value===B))==null?void 0:z.icon})},`package__${U}`)})})]}),t.jsxs(me,{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:(V=S?k:N)==null?void 0:V.toUpperCase()}),t.jsx("div",{className:"campaign-title-text",children:u}),m&&i&&t.jsxs("div",{children:[G(i)," - ",G(m)]}),t.jsxs("div",{className:"timestamp-text",children:[M>0&&`${M} ${M===1?oe:ie} ∙ `,ce?W(ne,A,ge,se,te):W(R,s,de,r,d)]})]})}),t.jsx(Q,{hasPermission:!0,image:t.jsx("img",{src:D,className:`${D?"":"no-image"}`}),themeData:ae,isActive:!0,isUser:!1,name:j,shopCategory:x,onClick:()=>C(f)})]})]})});ee.propTypes={title:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.element]),numberOfListings:a.PropTypes.number,dropdown:a.PropTypes.any,color:a.PropTypes.string};p.styled.div`
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: ${I.MOBILE_SIZE_PX+"px"}) {
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 O=p.styled.div`
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
- ${v.linearGradientAnimation("-90deg")}
256
- `,be=p.styled.div`
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
- `,Y=p.styled.div`
262
- border-radius: ${e=>v.getBorderRadiusValueWithUnits(e.theme,(e==null?void 0:e.borderRadius)??"regular")};
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
- ${v.linearGradientAnimation()}
272
- `,ve=p.styled.div`
293
+ ${_.linearGradientAnimation()}
294
+ `,je=u.styled.div`
273
295
  background: var(--white, #fff);
274
- border-radius: ${e=>v.getBorderRadiusValueWithUnits(e.theme,"edged")};
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: ${I.MOBILE_SIZE_PX+"px"}) {
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
- `,_e=p.styled.div`
330
+ `,$e=u.styled.div`
309
331
  display: flex;
310
332
  gap: 1.5rem;
311
- `,$e=h.forwardRef(({},e)=>{const n=q.useTheme();return t.jsxs(ve,{ref:e,theme:n,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(Y,{theme:n,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(be,{theme:n,children:[t.jsx(O,{heightCoeff:.75,theme:n,width:"35%"}),t.jsx(O,{heightCoeff:1.25,theme:n}),t.jsx(O,{heightCoeff:3,theme:n})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(Y,{theme:n,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(O,{theme:n,width:"75%"})]})]})]})}),je=({itemsCount:e=5,keyPrefix:n})=>t.jsx(_e,{children:Array.from({length:e},(o,l)=>t.jsx($e,{},`${n}-skeleton-campaign-card-${l}`))}),De=({children:e,fallbackComponent:n=t.jsx(t.Fragment,{}),isLoading:o=!1,itemsCount:l=5,keyPrefix:f})=>t.jsx(h.Suspense,{fallback:n,children:o===!0?t.jsx(je,{itemsCount:l,keyPrefix:f}):e}),Te=p.styled.div`
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
- `,Pe=p.styled(H.motion.div)`
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: ${I.MOBILE_SIZE_PX+"px"}) {
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
- `,re=h.forwardRef(({icon:e,title:n,numOfSlides:o=2,numOfSlidesForMobile:l=1,showNavigation:f=!0,children:u},_)=>{const[g,$]=h.useState(0),[c,P]=h.useState(1),[i,m]=h.useState(null),[y,j]=h.useState(null),x=K.useDetectMobile(),D=50,b=(u==null?void 0:u.length)??1;h.useEffect(()=>{const s=()=>{P(x?l:o)};return window.addEventListener("resize",s),s(),()=>window.removeEventListener("resize",s)},[]);const T=u==null?void 0:u.slice(g,g+c),C=s=>{var d;(d=s==null?void 0:s.target)==null||d.blur(),g+c<b&&$(g+c)},S=s=>{var d;(d=s==null?void 0:s.target)==null||d.blur(),g-c>=0&&$(g-c)},k=s=>{var d;j(null),m((d=s==null?void 0:s.targetTouches["0"])==null?void 0:d.clientX)},N=s=>{var d;j((d=s==null?void 0:s.targetTouches["0"])==null?void 0:d.clientX)},w=()=>{if(!i||!y)return;const s=i-y;s>D&&C(),s<-D&&S()};return t.jsxs(Te,{ref:_,...x?{onTouchStart:k,onTouchMove:N,onTouchEnd:w}:{},children:[t.jsx("div",{className:"scrollable-section__header",children:t.jsxs("div",{className:"scrollable-section__title",children:[v.isDefinedNotEmptyString(e)&&t.jsx(J,{icon:e,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),v.isDefinedNotEmptyString(n)&&t.jsx("div",{className:"title__text",children:n})]})}),t.jsx(Pe,{numOfColumns:o,numOfColumnsForMobile:l,animate:{x:0,opacity:1},initial:{x:10,opacity:0},children:T},`scrollable-section__content-${g}`),f&&b>c&&!x&&t.jsxs("div",{className:"scrollable-section__navigation",children:[t.jsx(X,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:g===0,onClick:S}),t.jsx(X,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:g+c>=b,onClick:C})]})]})});re.propTypes={icon:a.PropTypes.string,title:a.PropTypes.string,numOfSlides:a.PropTypes.number,numOfSlidesForMobile:a.PropTypes.number,showNavigation:a.PropTypes.bool};const Ce=h.memo(ee),Se=h.forwardRef(({sellerType:e="Shop",items:n=[],title:o,icon:l,isLoading:f,onSelectCard:u=()=>{},onSelectShop:_=()=>{},getImage:g=()=>{},campaignSingleText:$,upcomingCampaignText:c,salesCampaignTypes:P=[],startsInPrefixTextPlural:i,startsinSuffixTextPlural:m,startsInPrefixTextSingular:y,startsinSuffixTextSingular:j,endsInPrefixTextPlural:x,endsinSuffixTextPlural:D,endsInPrefixTextSingular:b,endsinSuffixTextSingular:T,numOfSlides:C=2,numOfSlidesForMobile:S=1,showNavigation:k=!0,numberOfListingsTextSingular:N,numberOfListingsTextPlural:w},s)=>{const d=K.useDetectMobile(),R=h.useMemo(()=>n==null?void 0:n.map((r,A)=>t.jsx(Ce,{className:"campaign-item",coverPhoto:g(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:()=>u(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>_(r==null?void 0:r.shopUuid),campaignSingleText:$,upcomingCampaignText:c,upcoming:r==null?void 0:r.upcoming,salesCampaignTypes:P,startsInPrefixTextPlural:i,startsinSuffixTextPlural:m,startsInPrefixTextSingular:y,startsinSuffixTextSingular:j,endsInPrefixTextPlural:x,endsinSuffixTextPlural:D,endsInPrefixTextSingular:b,endsinSuffixTextSingular:T,themeData:r==null?void 0:r.themeData,numberOfListings:r==null?void 0:r.numberOfListings,numberOfListingsTextSingular:N,numberOfListingsTextPlural:w},`campaign__item__${A}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}`)),[n]);return t.jsx(De,{isLoading:f,itemsCount:d?1:2,keyPrefix:"sales-camp",children:t.jsx(re,{icon:l,title:o,numOfSlides:C,numOfSlidesForMobile:S,showNavigation:k,children:R})})});module.exports=Se;
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 m, Fragment as pe } from "react/jsx-runtime";
2
- import { createElement as xe, forwardRef as B, Suspense as be, useState as M, useEffect as we, memo as ve, useMemo as ye } from "react";
3
- import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { a as F, o as Q, k as Z } from "./utils-BbgAIA9N.js";
5
- import { M as P } from "./consts-BuFChS64.js";
6
- import { m as ee } from "./motion-Ckekul_K.js";
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 re from "./Icon.js";
9
- import $e from "./Badge.js";
10
- import { u as X } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
11
- import q from "./IconButton.js";
12
- import { u as ae } from "./useDetectMobile-Bkvj0VMa.js";
13
- const _e = h.div`
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: ${P + "px"}) {
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
- `, Ce = h.div`
29
- border-radius: ${(e) => F(e.theme, "edged")};
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: ${P + "px"}) {
52
+ @media (max-width: ${F + "px"}) {
53
53
  width: 100%;
54
54
  max-width: 100dvh;
55
55
  height: 23.438rem;
56
56
  }
57
- `, De = h.div`
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
- font-size: 0.975rem;
93
- font-weight: 500;
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: ${P + "px"}) {
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
- `, Se = {
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
- }, H = (e = !1, a = !1, i = !1) => `
150
+ }, K = (e = !1, n = !1, i = !1) => `
129
151
  display: flex;
130
- ${a ? "flex-wrap: wrap;" : ""}
131
- ${a ? "" : "flex-wrap: nowrap;"}
152
+ ${n ? "flex-wrap: wrap;" : ""}
153
+ ${n ? "" : "flex-wrap: nowrap;"}
132
154
  ${e ? "align-items: center;" : ""}
133
155
  ${i ? "justify-content: center;" : ""}
134
- `, Te = h(ee.div)`
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
- ${H(!0)}
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) => F(e.theme, "slight")};
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
- ${H(!0, !1, !0)}
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)" : Se[e.themeColor] ?? "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
- `, ke = h.div`
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
- `, Ne = h.div`
221
- border-radius: ${(e) => F(e.theme, e.borderRadius || "slight")};
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
- `, te = (e) => {
258
+ `, se = (e) => {
237
259
  const {
238
- uuid: a,
260
+ uuid: n,
239
261
  hasPermission: i = !0,
240
262
  isUser: l,
241
- image: p,
242
- name: u,
243
- notifications: y = 0,
244
- color: g = "primary",
245
- size: $ = "large",
246
- style: c,
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: s = () => {
270
+ onClick: b = () => {
249
271
  },
250
- isActive: f,
251
- className: b,
252
- shopCategory: _,
272
+ isActive: $,
273
+ className: D,
274
+ shopCategory: C,
253
275
  // new
254
276
  themeData: x
255
- } = e, w = {
256
- theme: X(),
257
- color: g,
258
- size: $,
259
- style: c,
277
+ } = e, y = {
278
+ theme: Y(),
279
+ color: s,
280
+ size: u,
281
+ style: d,
260
282
  disabled: S
261
283
  };
262
- return /* @__PURE__ */ xe(
263
- Te,
284
+ return /* @__PURE__ */ ye(
285
+ Ie,
264
286
  {
265
- onClick: (D) => {
266
- D.stopPropagation(), i === !0 && (s == null || s());
287
+ onClick: (k) => {
288
+ k.stopPropagation(), i === !0 && (b == null || b());
267
289
  },
268
- ...w,
269
- key: u,
270
- className: `profile-item ${b}`,
290
+ ...y,
291
+ key: h,
292
+ className: `profile-item ${D}`,
271
293
  hasPermission: i,
272
- isActive: f,
294
+ isActive: $,
273
295
  themeColor: (x == null ? void 0 : x.code) || "transparent"
274
296
  },
275
- /* @__PURE__ */ t("div", { className: "logo-wrapper", children: p }),
276
- /* @__PURE__ */ m("div", { children: [
277
- /* @__PURE__ */ t("div", { className: "name", children: u }),
278
- !l && /* @__PURE__ */ t("div", { className: "description", children: _ }),
279
- y > 0 && /* @__PURE__ */ t("div", { className: "notifications-number", children: /* @__PURE__ */ t($e, { className: "badge", color: "danger", size: "small", children: y > 99 ? "99+" : y }) })
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
- te.propTypes = {
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 V = (e, a) => {
306
- if (!e || !a) return null;
307
- let i = Math.floor((e == null ? void 0 : e.getTime()) - (a == null ? void 0 : a.getTime())), l = 1e3 * 60 * 60 * 24;
308
- return Math.ceil(i / l);
309
- }, J = (e) => {
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 a = new Date(e), i = a.getFullYear(), l = a.getMonth() + 1;
312
- return `${String(a.getDate()).padStart(2)}. ${l}. ${i}.`;
313
- }
314
- }, ne = B((e, a) => {
315
- var Y;
316
- const i = X(), {
317
- uuid: l,
318
- shopUuid: p,
319
- title: u = "",
320
- description: y,
321
- badges: g,
322
- coverPhoto: $,
323
- onSelect: c,
324
- status: S,
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: f,
327
- salesPackages: b,
328
- shopName: _,
329
- shopCategory: x,
330
- shopImage: C,
331
- className: w,
332
- onSelectCard: D = () => {
348
+ endDate: u,
349
+ salesPackages: d,
350
+ shopName: S,
351
+ shopCategory: b,
352
+ shopImage: $,
353
+ className: D,
354
+ onSelectCard: C = () => {
333
355
  },
334
- onSelectShop: T = () => {
356
+ onSelectShop: x = () => {
335
357
  },
336
- upcoming: k = !1,
337
- upcomingCampaignText: I,
338
- campaignSingleText: z,
358
+ upcoming: T = !1,
359
+ upcomingCampaignText: y,
360
+ campaignSingleText: k,
339
361
  salesCampaignTypes: v = [],
340
- startsInPrefixTextPlural: n,
341
- startsinSuffixTextPlural: d,
342
- startsInPrefixTextSingular: L,
343
- startsinSuffixTextSingular: r,
344
- endsInPrefixTextPlural: R,
345
- endsinSuffixTextPlural: ie,
346
- endsInPrefixTextSingular: se,
347
- endsinSuffixTextSingular: le,
348
- themeData: ce,
349
- numberOfListings: j,
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
- ), fe = V(
362
- f ? new Date(f) : null,
378
+ ), N = Q(
379
+ u ? new Date(u) : null,
363
380
  /* @__PURE__ */ new Date()
364
- ), G = (A, W, N, O, E) => N === 1 ? `${A} ${N} ${O}` : `${W} ${N} ${E}`;
365
- return /* @__PURE__ */ m(
366
- _e,
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: a,
399
+ ref: n,
369
400
  theme: i,
370
- className: w,
371
- onClick: D,
401
+ className: D,
402
+ onClick: C,
372
403
  ...me,
373
404
  children: [
374
- /* @__PURE__ */ m(Ce, { theme: i, onClick: () => c == null ? void 0 : c(), children: [
375
- /* @__PURE__ */ t("img", { src: $ }),
376
- /* @__PURE__ */ t(ke, { children: b == null ? void 0 : b.map((A, W) => {
377
- var N, O;
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
- Ne,
410
+ Ee,
380
411
  {
381
- color: (N = v == null ? void 0 : v.find((E) => E.value === A)) == null ? void 0 : N.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
- re,
415
+ oe,
385
416
  {
386
- icon: (O = v == null ? void 0 : v.find((E) => E.value === A)) == null ? void 0 : O.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__${W}`
421
+ `package__${j}`
391
422
  );
392
423
  }) })
393
424
  ] }),
394
- /* @__PURE__ */ m(De, { theme: i, children: [
395
- /* @__PURE__ */ t("div", { className: "text-block-wrapper", children: /* @__PURE__ */ m("div", { className: "title-block-wrapper", children: [
396
- /* @__PURE__ */ t("div", { className: "campaign-title", children: (Y = k ? I : z) == null ? void 0 : Y.toUpperCase() }),
397
- /* @__PURE__ */ t("div", { className: "campaign-title-text", children: u }),
398
- f && s && /* @__PURE__ */ m("div", { children: [
399
- J(s),
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
- J(f)
432
+ ee(u)
402
433
  ] }),
403
- /* @__PURE__ */ m("div", { className: "timestamp-text", children: [
404
- j > 0 && `${j} ${j === 1 ? de : ge} `,
405
- he ? G(
406
- se,
407
- R,
408
- fe,
409
- le,
410
- ie
411
- ) : G(
412
- L,
413
- n,
414
- ue,
415
- r,
416
- d
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
- te,
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: C,
435
- className: `${C ? "" : "no-image"}`
486
+ src: $,
487
+ className: `${$ ? "" : "no-image"}`
436
488
  }
437
489
  )
438
490
  ),
439
- themeData: ce,
491
+ themeData: X,
440
492
  isActive: !0,
441
493
  isUser: !1,
442
- name: _,
443
- shopCategory: x,
444
- onClick: () => T(p)
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
- ne.propTypes = {
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
- h.div`
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: ${P + "px"}) {
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 U = h.div`
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
- ${Q("-90deg")}
503
- `, Pe = h.div`
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
- `, K = h.div`
509
- border-radius: ${(e) => F(e.theme, (e == null ? void 0 : e.borderRadius) ?? "regular")};
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
- ${Q()}
519
- `, Ee = h.div`
570
+ ${ne()}
571
+ `, ze = m.div`
520
572
  background: var(--white, #fff);
521
- border-radius: ${(e) => F(e.theme, "edged")};
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: ${P + "px"}) {
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
- `, Fe = h.div`
607
+ `, Ae = m.div`
556
608
  display: flex;
557
609
  gap: 1.5rem;
558
- `, Ie = B(({}, e) => {
559
- const a = X();
560
- return /* @__PURE__ */ m(Ee, { ref: e, theme: a, children: [
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
- K,
614
+ re,
563
615
  {
564
- theme: a,
616
+ theme: n,
565
617
  width: "15rem",
566
618
  height: "15rem",
567
619
  borderRadius: "edged"
568
620
  }
569
621
  ) }),
570
- /* @__PURE__ */ m("div", { className: "campaign__right-section", children: [
571
- /* @__PURE__ */ m(Pe, { theme: a, children: [
572
- /* @__PURE__ */ t(U, { heightCoeff: 0.75, theme: a, width: "35%" }),
573
- /* @__PURE__ */ t(U, { heightCoeff: 1.25, theme: a }),
574
- /* @__PURE__ */ t(U, { heightCoeff: 3, theme: a })
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__ */ m("div", { className: "campaign__user", children: [
628
+ /* @__PURE__ */ c("div", { className: "campaign__user", children: [
577
629
  /* @__PURE__ */ t(
578
- K,
630
+ re,
579
631
  {
580
- theme: a,
632
+ theme: n,
581
633
  width: "2.5rem",
582
634
  height: "2.5rem",
583
635
  borderRadius: "curved"
584
636
  }
585
637
  ),
586
- /* @__PURE__ */ t(U, { theme: a, width: "75%" })
638
+ /* @__PURE__ */ t(W, { theme: n, width: "75%" })
587
639
  ] })
588
640
  ] })
589
641
  ] });
590
- }), ze = ({ itemsCount: e = 5, keyPrefix: a }) => /* @__PURE__ */ t(Fe, { children: Array.from({ length: e }, (i, l) => /* @__PURE__ */ t(
591
- Ie,
642
+ }), Oe = ({ itemsCount: e = 5, keyPrefix: n }) => /* @__PURE__ */ t(Ae, { children: Array.from({ length: e }, (i, l) => /* @__PURE__ */ t(
643
+ Me,
592
644
  {},
593
- `${a}-skeleton-campaign-card-${l}`
594
- )) }), Ae = ({
645
+ `${n}-skeleton-campaign-card-${l}`
646
+ )) }), Le = ({
595
647
  children: e,
596
- fallbackComponent: a = /* @__PURE__ */ t(pe, {}),
648
+ fallbackComponent: n = /* @__PURE__ */ t(be, {}),
597
649
  isLoading: i = !1,
598
650
  itemsCount: l = 5,
599
- keyPrefix: p
600
- }) => /* @__PURE__ */ t(be, { fallback: a, children: i === !0 ? /* @__PURE__ */ t(ze, { itemsCount: l, keyPrefix: p }) : e }), Oe = h.div`
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
- `, Me = h(ee.div)`
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: ${P + "px"}) {
698
+ @media (max-width: ${F + "px"}) {
647
699
  grid-template-columns: repeat(${(e) => e == null ? void 0 : e.numOfColumnsForMobile}, 1fr);
648
700
  }
649
- `, oe = B(
701
+ `, ce = V(
650
702
  ({
651
703
  icon: e,
652
- title: a,
704
+ title: n,
653
705
  numOfSlides: i = 2,
654
706
  numOfSlidesForMobile: l = 1,
655
- showNavigation: p = !0,
656
- children: u
657
- }, y) => {
658
- const [g, $] = M(0), [c, S] = M(1), [s, f] = M(null), [b, _] = M(null), x = ae(), C = 50, w = (u == null ? void 0 : u.length) ?? 1;
659
- we(() => {
660
- const n = () => {
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", n), n(), () => window.removeEventListener("resize", n);
715
+ return window.addEventListener("resize", a), a(), () => window.removeEventListener("resize", a);
664
716
  }, []);
665
- const D = u == null ? void 0 : u.slice(g, g + c), T = (n) => {
666
- var d;
667
- (d = n == null ? void 0 : n.target) == null || d.blur(), g + c < w && $(g + c);
668
- }, k = (n) => {
669
- var d;
670
- (d = n == null ? void 0 : n.target) == null || d.blur(), g - c >= 0 && $(g - c);
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__ */ m(
673
- Oe,
724
+ return /* @__PURE__ */ c(
725
+ Ue,
674
726
  {
675
- ref: y,
676
- ...x ? { onTouchStart: (n) => {
677
- var d;
678
- _(null), f((d = n == null ? void 0 : n.targetTouches["0"]) == null ? void 0 : d.clientX);
679
- }, onTouchMove: (n) => {
680
- var d;
681
- _((d = n == null ? void 0 : n.targetTouches["0"]) == null ? void 0 : d.clientX);
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 (!s || !b) return;
684
- const n = s - b;
685
- n > C && T(), n < -C && k();
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__ */ m("div", { className: "scrollable-section__title", children: [
689
- Z(e) && /* @__PURE__ */ t(
690
- re,
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
- Z(a) && /* @__PURE__ */ t("div", { className: "title__text", children: a })
750
+ H(n) && /* @__PURE__ */ t("div", { className: "title__text", children: n })
699
751
  ] }) }),
700
752
  /* @__PURE__ */ t(
701
- Me,
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: D
765
+ children: k
714
766
  },
715
- `scrollable-section__content-${g}`
767
+ `scrollable-section__content-${s}`
716
768
  ),
717
- p && w > c && !x && /* @__PURE__ */ m("div", { className: "scrollable-section__navigation", children: [
769
+ f && y > d && !x && /* @__PURE__ */ c("div", { className: "scrollable-section__navigation", children: [
718
770
  /* @__PURE__ */ t(
719
- q,
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: g === 0,
727
- onClick: k
778
+ disabled: s === 0,
779
+ onClick: P
728
780
  }
729
781
  ),
730
782
  /* @__PURE__ */ t(
731
- q,
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: g + c >= w,
739
- onClick: T
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
- oe.propTypes = {
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 Ue = ve(ne), Je = B(
807
+ const Re = De(le), er = V(
756
808
  ({
757
809
  sellerType: e = "Shop",
758
- items: a = [],
810
+ items: n = [],
759
811
  title: i,
760
812
  icon: l,
761
- isLoading: p,
762
- onSelectCard: u = () => {
813
+ isLoading: f,
814
+ onSelectCard: h = () => {
763
815
  },
764
- onSelectShop: y = () => {
816
+ onSelectShop: p = () => {
765
817
  },
766
- getImage: g = () => {
818
+ getImage: s = () => {
767
819
  },
768
- campaignSingleText: $,
769
- upcomingCampaignText: c,
820
+ campaignSingleText: u,
821
+ upcomingCampaignText: d,
770
822
  salesCampaignTypes: S = [],
771
- startsInPrefixTextPlural: s,
772
- startsinSuffixTextPlural: f,
773
- startsInPrefixTextSingular: b,
774
- startsinSuffixTextSingular: _,
823
+ startsInPrefixTextPlural: b,
824
+ startsinSuffixTextPlural: $,
825
+ startsInPrefixTextSingular: D,
826
+ startsinSuffixTextSingular: C,
775
827
  endsInPrefixTextPlural: x,
776
- endsinSuffixTextPlural: C,
777
- endsInPrefixTextSingular: w,
778
- endsinSuffixTextSingular: D,
779
- numOfSlides: T = 2,
780
- numOfSlidesForMobile: k = 1,
781
- showNavigation: I = !0,
782
- numberOfListingsTextSingular: z,
783
- numberOfListingsTextPlural: v
784
- }, n) => {
785
- const d = ae(), L = ye(() => a == null ? void 0 : a.map((r, R) => /* @__PURE__ */ t(
786
- Ue,
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: g(
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: () => u(r == null ? void 0 : r.campaignUuid, r == null ? void 0 : r.shopUuid),
805
- onSelectShop: () => y(r == null ? void 0 : r.shopUuid),
806
- campaignSingleText: $,
807
- upcomingCampaignText: c,
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: s,
811
- startsinSuffixTextPlural: f,
812
- startsInPrefixTextSingular: b,
813
- startsinSuffixTextSingular: _,
862
+ startsInPrefixTextPlural: b,
863
+ startsinSuffixTextPlural: $,
864
+ startsInPrefixTextSingular: D,
865
+ startsinSuffixTextSingular: C,
814
866
  endsInPrefixTextPlural: x,
815
- endsinSuffixTextPlural: C,
816
- endsInPrefixTextSingular: w,
817
- endsinSuffixTextSingular: D,
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: z,
821
- numberOfListingsTextPlural: v
872
+ numberOfListingsTextSingular: O,
873
+ numberOfListingsTextPlural: L
822
874
  },
823
- `campaign__item__${R}__${r == null ? void 0 : r.startDate}___${r == null ? void 0 : r.endDate}`
824
- )), [a]);
875
+ `campaign__item__${X}__${r == null ? void 0 : r.startDate}___${r == null ? void 0 : r.endDate}`
876
+ )), [n]);
825
877
  return /* @__PURE__ */ t(
826
- Ae,
878
+ Le,
827
879
  {
828
- isLoading: p,
829
- itemsCount: d ? 1 : 2,
880
+ isLoading: f,
881
+ itemsCount: g ? 1 : 2,
830
882
  keyPrefix: "sales-camp",
831
883
  children: /* @__PURE__ */ t(
832
- oe,
884
+ ce,
833
885
  {
834
886
  icon: l,
835
887
  title: i,
836
- numOfSlides: T,
837
- numOfSlidesForMobile: k,
838
- showNavigation: I,
839
- children: L
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
- Je as default
899
+ er as default
848
900
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.118",
3
+ "version": "4.0.120",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [