@lanaco/lnc-react-ui 4.0.132 → 4.0.133

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.
Files changed (33) hide show
  1. package/dist/BlogCardsSponsoredSection.js +1 -1
  2. package/dist/BlogExploreSection.js +1 -1
  3. package/dist/BlogListSection.js +1 -1
  4. package/dist/BlogProductCardsSection.js +2 -2
  5. package/dist/BlogShopCardsSection.cjs +1 -1
  6. package/dist/BlogShopCardsSection.js +1 -1
  7. package/dist/BlogSingleSection.js +1 -1
  8. package/dist/BlogsSectionDetailed.js +1 -1
  9. package/dist/BlogsSectionLarge.js +1 -1
  10. package/dist/BlogsSectionSimple.js +1 -1
  11. package/dist/BlogsSectionSimpleCentered.js +1 -1
  12. package/dist/BlogsSectionWithFilters.js +1 -1
  13. package/dist/DetailedProductsSection.js +1 -1
  14. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
  15. package/dist/ProductsWithBannerSection.js +1 -1
  16. package/dist/ReviewsSection.js +1 -1
  17. package/dist/SalesCampaignsSection.cjs +33 -33
  18. package/dist/SalesCampaignsSection.js +274 -275
  19. package/dist/ShopAvatar-4-fCYGEc.js +4 -0
  20. package/dist/ShopAvatar-CV3lj34D.cjs +1 -0
  21. package/dist/ShopCardsSection.cjs +1 -1
  22. package/dist/ShopCardsSection.js +1 -1
  23. package/dist/SimpleProductsSection.js +2 -2
  24. package/dist/UrgentSaleProductsSection.js +1 -1
  25. package/dist/{index-CU0KClNt.js → index-B7pgRoP5.js} +1 -1
  26. package/dist/{index-3TFXgZHA.js → index-DRP1yTKe.js} +13 -18
  27. package/dist/{index-DJ545v7b.js → index-DiPwx53C.js} +1 -1
  28. package/dist/{skeleton-fVxknFUi.js → skeleton-ChyJLfsR.js} +36 -35
  29. package/dist/skeleton-Dw2U9XhS.cjs +168 -0
  30. package/dist/{suspense-product-card-detailed-BP1opdKD.js → suspense-product-card-detailed-CFZchhUK.js} +1 -1
  31. package/dist/{suspense-product-card-simple-BT5gv-kY.js → suspense-product-card-simple-BuJtwiwA.js} +1 -1
  32. package/package.json +1 -1
  33. package/dist/skeleton-Bl1q9Yqe.cjs +0 -168
@@ -3,7 +3,7 @@ import { forwardRef as b, memo as S, useMemo as k } from "react";
3
3
  import { p as v, s as $, v as j, w as u, k as I } from "./utils-BPdU4_1q.js";
4
4
  import h from "./Icon.js";
5
5
  import { B as R } from "./style-XXDQBreL.js";
6
- import { P as L } from "./index-3TFXgZHA.js";
6
+ import { P as L } from "./index-DRP1yTKe.js";
7
7
  import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
8
  import { M as N } from "./consts-BuFChS64.js";
9
9
  import { S as O } from "./suspense-large-DrD8xVZi.js";
@@ -10,7 +10,7 @@ import A from "./DropdownItem.js";
10
10
  import { F as O } from "./tag-CtleOqEC.js";
11
11
  import P from "./BlogProductCardsSection.js";
12
12
  import { s as j } from "./emotion-styled.browser.esm-BNN1dTl3.js";
13
- import { P as ee } from "./index-3TFXgZHA.js";
13
+ import { P as ee } from "./index-DRP1yTKe.js";
14
14
  import z from "./BlogListSection.js";
15
15
  import { M as ne } from "./consts-BuFChS64.js";
16
16
  const te = j.div`
@@ -3,7 +3,7 @@ import { forwardRef as h, memo as v, useMemo as k } from "react";
3
3
  import u from "./Icon.js";
4
4
  import c from "./IconButton.js";
5
5
  import { p as N, s as I, v as R, w as b } from "./utils-BPdU4_1q.js";
6
- import { P as j } from "./index-3TFXgZHA.js";
6
+ import { P as j } from "./index-DRP1yTKe.js";
7
7
  import { B as P } from "./style-XXDQBreL.js";
8
8
  import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
9
  import { M as T } from "./consts-BuFChS64.js";
@@ -1,8 +1,8 @@
1
1
  import { jsx as i, jsxs as g } from "react/jsx-runtime";
2
2
  import { memo as b, forwardRef as h, useMemo as P } from "react";
3
3
  import { u as N } from "./useDetectMobile-Bkvj0VMa.js";
4
- import { S as y } from "./index-CU0KClNt.js";
5
- import { S as M } from "./suspense-product-card-simple-BT5gv-kY.js";
4
+ import { S as y } from "./index-B7pgRoP5.js";
5
+ import { S as M } from "./suspense-product-card-simple-BuJtwiwA.js";
6
6
  import S from "./Button.js";
7
7
  import { W as _ } from "./style-tw6KjI2J.js";
8
8
  const w = b(y), R = h(
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),u=require("react"),f=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./skeleton-Bl1q9Yqe.cjs"),S=require("./Button.cjs"),b=require("./style-BTTXJFJN.cjs"),_=({limit:o=4,isLoading:n=!1,keyPrefix:s})=>r.jsx(r.Fragment,{children:Array.from({length:o},(i,t)=>r.jsx(a.ShopCardSkeleton,{isLoading:n},`${s}-skeleton-shop-card-${t}`))}),k=({children:o,fallbackComponent:n=r.jsx(r.Fragment,{}),isLoading:s=!1,limit:i,keyPrefix:t})=>r.jsx(u.Suspense,{fallbackComponent:n,children:s===!0?r.jsx(_,{isLoading:s,limit:i,keyPrefix:t}):o}),q=u.memo(a.ShopCard),C=u.forwardRef(({buttonText:o,buttonLink:n,items:s,onButtonAction:i=()=>{},onSelectCard:t=()=>{},isLoading:l=!1,limit:d=4,getImage:p=()=>{},isHighlight:h=!1},w)=>{const m=f.useDetectMobile(),g=u.useMemo(()=>{var c;return(c=s==null?void 0:s.slice(0,4))==null?void 0:c.map((e,j)=>r.jsx(q,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:()=>t==null?void 0:t(e==null?void 0:e.uuid),image:p(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0},`shop-card__${j+1}`))},[s]);return r.jsxs(b.Wrapper,{className:h?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(k,{isLoading:l,limit:d,keyPrefix:"blog-section",children:g})}),r.jsx(S,{text:o,borderRadius:"curved",btnType:m?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>i(n)})]})});module.exports=C;
1
+ "use strict";const r=require("react/jsx-runtime"),u=require("react"),f=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./skeleton-Dw2U9XhS.cjs"),S=require("./Button.cjs"),b=require("./style-BTTXJFJN.cjs"),_=({limit:o=4,isLoading:n=!1,keyPrefix:s})=>r.jsx(r.Fragment,{children:Array.from({length:o},(i,t)=>r.jsx(a.ShopCardSkeleton,{isLoading:n},`${s}-skeleton-shop-card-${t}`))}),k=({children:o,fallbackComponent:n=r.jsx(r.Fragment,{}),isLoading:s=!1,limit:i,keyPrefix:t})=>r.jsx(u.Suspense,{fallbackComponent:n,children:s===!0?r.jsx(_,{isLoading:s,limit:i,keyPrefix:t}):o}),q=u.memo(a.ShopCard),C=u.forwardRef(({buttonText:o,buttonLink:n,items:s,onButtonAction:i=()=>{},onSelectCard:t=()=>{},isLoading:l=!1,limit:d=4,getImage:p=()=>{},isHighlight:h=!1},w)=>{const m=f.useDetectMobile(),g=u.useMemo(()=>{var c;return(c=s==null?void 0:s.slice(0,4))==null?void 0:c.map((e,j)=>r.jsx(q,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:()=>t==null?void 0:t(e==null?void 0:e.uuid),image:p(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0},`shop-card__${j+1}`))},[s]);return r.jsxs(b.Wrapper,{className:h?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(k,{isLoading:l,limit:d,keyPrefix:"blog-section",children:g})}),r.jsx(S,{text:o,borderRadius:"curved",btnType:m?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>i(n)})]})});module.exports=C;
@@ -1,7 +1,7 @@
1
1
  import { jsx as o, Fragment as u, jsxs as g } from "react/jsx-runtime";
2
2
  import { Suspense as S, memo as b, forwardRef as _, useMemo as C } from "react";
3
3
  import { u as k } from "./useDetectMobile-Bkvj0VMa.js";
4
- import { a as w, S as v } from "./skeleton-fVxknFUi.js";
4
+ import { a as w, S as v } from "./skeleton-ChyJLfsR.js";
5
5
  import M from "./Button.js";
6
6
  import { W as y } from "./style-tw6KjI2J.js";
7
7
  const N = ({ limit: s = 4, isLoading: a = !1, keyPrefix: r }) => /* @__PURE__ */ o(u, { children: Array.from({ length: s }, (i, t) => /* @__PURE__ */ o(
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, Fragment as a } from "react/jsx-runtime";
2
2
  import { Suspense as s, forwardRef as u } from "react";
3
- import { B as d } from "./index-DJ545v7b.js";
3
+ import { B as d } from "./index-DiPwx53C.js";
4
4
  import { B as c } from "./skeleton-PMiYQLOs.js";
5
5
  const f = ({ limit: o = 1, isLoading: t = !1, keyPrefix: l }) => /* @__PURE__ */ e(a, { children: Array.from({ length: o }, (r, n) => /* @__PURE__ */ e(
6
6
  c,
@@ -6,7 +6,7 @@ import { u as D } from "./useDetectMobile-Bkvj0VMa.js";
6
6
  import { o as k, p as P, v as z, s as M, w as C, k as w } from "./utils-BPdU4_1q.js";
7
7
  import { B as I, R as U } from "./style-XXDQBreL.js";
8
8
  import W from "./Button.js";
9
- import { P as j } from "./index-3TFXgZHA.js";
9
+ import { P as j } from "./index-DRP1yTKe.js";
10
10
  const E = y.div`
11
11
  display: grid;
12
12
  grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
@@ -3,7 +3,7 @@ import { memo as c, forwardRef as f, useMemo as S } from "react";
3
3
  import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as b } from "./consts-BuFChS64.js";
5
5
  import { u as B } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { B as M } from "./index-DJ545v7b.js";
6
+ import { B as M } from "./index-DiPwx53C.js";
7
7
  import { S as L } from "./suspense-large-DrD8xVZi.js";
8
8
  const h = C.div`
9
9
  display: grid;
@@ -7,7 +7,7 @@ import { o as z, p as I, k as b } from "./utils-BPdU4_1q.js";
7
7
  import { B as U, R as W } from "./style-XXDQBreL.js";
8
8
  import j from "./Button.js";
9
9
  import A from "./Link.js";
10
- import { P as E } from "./index-3TFXgZHA.js";
10
+ import { P as E } from "./index-DRP1yTKe.js";
11
11
  const L = f.div`
12
12
  display: grid;
13
13
  grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
@@ -5,7 +5,7 @@ import { M as u } from "./consts-BuFChS64.js";
5
5
  import { u as C } from "./useDetectMobile-Bkvj0VMa.js";
6
6
  import { o as f, p as y } from "./utils-BPdU4_1q.js";
7
7
  import v from "./Button.js";
8
- import { P as S } from "./index-3TFXgZHA.js";
8
+ import { P as S } from "./index-DRP1yTKe.js";
9
9
  const x = g.div`
10
10
  display: grid;
11
11
  grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
@@ -7,7 +7,7 @@ import { o as u, p as j, k as S } from "./utils-BPdU4_1q.js";
7
7
  import { T as E } from "./style-XXDQBreL.js";
8
8
  import F from "./Button.js";
9
9
  import L from "./Link.js";
10
- import { P as U } from "./index-3TFXgZHA.js";
10
+ import { P as U } from "./index-DRP1yTKe.js";
11
11
  import { S as _ } from "./index-BRciSeV3.js";
12
12
  const D = b.div`
13
13
  display: grid;
@@ -6,7 +6,7 @@ import E from "./Button.js";
6
6
  import { k as f } from "./utils-BPdU4_1q.js";
7
7
  import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
8
8
  import { T as $ } from "./style-XXDQBreL.js";
9
- import { D as L, S as O } from "./suspense-product-card-detailed-BP1opdKD.js";
9
+ import { D as L, S as O } from "./suspense-product-card-detailed-CFZchhUK.js";
10
10
  import { S as R } from "./index-BRciSeV3.js";
11
11
  const W = F.div`
12
12
  display: grid;
@@ -3,7 +3,7 @@ import { forwardRef as g } from "react";
3
3
  import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as x } from "./consts-BuFChS64.js";
5
5
  import { o as v, l as C } from "./utils-BPdU4_1q.js";
6
- import { S as F } from "./index-CU0KClNt.js";
6
+ import { S as F } from "./index-B7pgRoP5.js";
7
7
  const N = _.div`
8
8
  width: 100%;
9
9
  height: 11.625rem;
@@ -5,7 +5,7 @@ import { M as k } from "./consts-BuFChS64.js";
5
5
  import { u as $ } from "./useDetectMobile-Bkvj0VMa.js";
6
6
  import { R as U } from "./style-XXDQBreL.js";
7
7
  import { p as I, o as b, l as M, k as W } from "./utils-BPdU4_1q.js";
8
- import { P as j } from "./index-3TFXgZHA.js";
8
+ import { P as j } from "./index-DRP1yTKe.js";
9
9
  const E = p.div`
10
10
  width: 100%;
11
11
  height: 22.5rem;
@@ -6,7 +6,7 @@ import { u as P } from "./useDetectMobile-Bkvj0VMa.js";
6
6
  import { t as R, p as M, o as I, b as j, g as E } from "./utils-BPdU4_1q.js";
7
7
  import { useTheme as T } from "./ThemeProvider.js";
8
8
  import { P as l } from "./index-CblbdqjE.js";
9
- import { P as A } from "./index-3TFXgZHA.js";
9
+ import { P as A } from "./index-DRP1yTKe.js";
10
10
  const W = d.div`
11
11
  display: flex;
12
12
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),c=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),_=require("./utils-DmMdPm9O.cjs"),M=require("./consts-goSZX3xP.cjs"),ae=require("./motion-B_VPZaJq.cjs"),s=require("./index-BpbMKBf_.cjs"),oe=require("./Icon.cjs"),we=require("./Badge.cjs"),G=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),ee=require("./IconButton.cjs"),ie=require("./useDetectMobile-zkbzoOGV.cjs"),be=u.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),c=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./utils-DmMdPm9O.cjs"),E=require("./consts-goSZX3xP.cjs"),oe=require("./motion-B_VPZaJq.cjs"),s=require("./index-BpbMKBf_.cjs"),ie=require("./Icon.cjs"),ee=require("./ShopAvatar-CV3lj34D.cjs"),be=require("./Badge.cjs"),G=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),re=require("./IconButton.cjs"),le=require("./useDetectMobile-zkbzoOGV.cjs"),ve=p.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: ${M.MOBILE_SIZE_PX+"px"}) {
9
+ @media (max-width: ${E.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
- `,ve=u.styled.div`
17
- border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,"edged")};
16
+ `,_e=p.styled.div`
17
+ border-radius: ${e=>v.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: ${M.MOBILE_SIZE_PX+"px"}) {
40
+ @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
41
41
  width: 100%;
42
42
  max-width: 100dvh;
43
43
  height: 23.438rem;
44
44
  }
45
- `,_e=u.styled.div`
45
+ `,Te=p.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: ${M.MOBILE_SIZE_PX+"px"}) {
117
+ @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
118
118
  padding: 1.25rem;
119
119
 
120
120
  & .campaign-title {
@@ -128,13 +128,13 @@
128
128
  gap: 0.25rem;
129
129
  }
130
130
  }
131
- `,re=(e=!1,n=!1,o=!1)=>`
131
+ `,te=(e=!1,n=!1,a=!1)=>`
132
132
  display: flex;
133
133
  ${n?"flex-wrap: wrap;":""}
134
134
  ${n?"":"flex-wrap: nowrap;"}
135
135
  ${e?"align-items: center;":""}
136
- ${o?"justify-content: center;":""}
137
- `,Te=u.styled(ae.motion.div)`
136
+ ${a?"justify-content: center;":""}
137
+ `,je=p.styled(oe.motion.div)`
138
138
  text-decoration: none;
139
139
  ${e=>e.hasPermission===!0&&"cursor: pointer"};
140
140
 
@@ -151,14 +151,14 @@
151
151
  text-decoration: none;
152
152
  }
153
153
 
154
- ${re(!0)}
154
+ ${te(!0)}
155
155
  gap: 0.5rem;
156
156
  padding: 0.5rem;
157
157
  color: var(--gray-950);
158
158
  font-weight: 500;
159
159
  font-size: 0.875rem;
160
160
  line-height: 1.25rem;
161
- border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,"slight")};
161
+ border-radius: ${e=>v.getBorderRadiusValueWithUnits(e.theme,"slight")};
162
162
  transition: all 0.25s ease;
163
163
  & .description {
164
164
  font-size: 0.85rem;
@@ -167,7 +167,7 @@
167
167
  font-weight: 400;
168
168
  }
169
169
  & .logo-wrapper {
170
- ${re(!0,!1,!0)}
170
+ ${te(!0,!1,!0)}
171
171
  flex-shrink: 0;
172
172
  border-radius: 999px;
173
173
 
@@ -205,14 +205,14 @@
205
205
  cursor: pointer;
206
206
  background-color: var(--gray-95080, #14161acc);
207
207
  }
208
- `,je=u.styled.div`
208
+ `,Se=p.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
- `,$e=u.styled.div`
215
- border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,e.borderRadius||"slight")};
214
+ `,$e=p.styled.div`
215
+ border-radius: ${e=>v.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
- `,le=e=>{const{uuid:n,hasPermission:o=!0,isUser:l,image:p,name:h,notifications:f=0,color:i="primary",size:d="large",style:g,disabled:S,onClick:b=()=>{},isActive:T,className:j,shopCategory:$,themeData:x}=e,v={theme:G.useTheme(),color:i,size:d,style:g,disabled:S};return c.createElement(Te,{onClick:I=>{I.stopPropagation(),o===!0&&(b==null||b())},...v,key:h,className:`profile-item ${j}`,hasPermission:o,isActive:T,themeColor:(x==null?void 0:x.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:p}),t.jsxs("div",{children:[t.jsx("div",{className:"name",children:h}),!l&&t.jsx("div",{className:"description",children:$}),f>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(we,{className:"badge",color:"danger",size:"small",children:f>99?"99+":f})})]}))};le.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 te=(e,n)=>{if(!e||!n)return null;const o=e.getTime()-n.getTime(),l=24*60*60*1e3;return o>=0?Math.ceil(o/l):Math.floor(o/l)},ne=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}.`}},ce=c.forwardRef((e,n)=>{var Q;const o=G.useTheme(),{shopUuid:l,title:p="",coverPhoto:h,onSelect:f,startDate:i,endDate:d,salesPackages:g,shopName:S,shopCategory:b,shopImage:T,className:j,onSelectCard:$=()=>{},onSelectShop:x=()=>{},upcoming:C=!1,upcomingCampaignText:v,campaignSingleText:I,salesCampaignTypes:y=[],startsInPrefixTextPlural:k,startsinSuffixTextPlural:E,startsInPrefixTextSingular:R,startsinSuffixTextSingular:z,endsInPrefixTextPlural:a,endsinSuffixTextPlural:m,endsInPrefixTextSingular:O,endsinSuffixTextSingular:H,themeData:U,numberOfListings:L,numberOfListingsTextSingular:B,numberOfListingsTextPlural:r,...Z}=e,Y=i?new Date(i)<=new Date:!1,ue=te(i?new Date(i):null,new Date),q=te(d?new Date(d):null,new Date),me=q!==null&&q<=2&&q>0,J=d?new Date(d).getTime():null,he=Date.now(),A=J!==null?J-he:null,W=A!==null&&A>0&&A<24*60*60*1e3,K=(P,X,w,D,N)=>w===1?`${P} ${w} ${D}`:`${X} ${w} ${N}`,pe=()=>{if(!d)return null;const P=fe,w=new Date(d).getTime()-P.getTime();if(w<=0)return null;const D=Math.floor(w/(1e3*60*60)),N=Math.floor(w%(1e3*60*60)/(1e3*60)),ye=Math.floor(w%(1e3*60)/1e3);return{hours:D,minutes:N,seconds:ye}},[fe,xe]=c.useState(new Date);c.useEffect(()=>{if(!W)return;const P=setInterval(()=>{xe(new Date)},1e3);return()=>clearInterval(P)},[W]);const V=W?pe():null;return t.jsxs(be,{ref:n,theme:o,className:j,onClick:$,...Z,children:[t.jsxs(ve,{theme:o,onClick:()=>f==null?void 0:f(),children:[t.jsx("img",{src:h}),t.jsx(je,{children:g==null?void 0:g.map((P,X)=>{var w,D;return t.jsx($e,{color:(w=y==null?void 0:y.find(N=>N.value===P))==null?void 0:w.color,theme:o,children:t.jsx(oe,{icon:(D=y==null?void 0:y.find(N=>N.value===P))==null?void 0:D.icon})},`package__${X}`)})})]}),t.jsxs(_e,{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:(Q=C?v:I)==null?void 0:Q.toUpperCase()}),t.jsx("div",{className:"campaign-title-text",children:p}),d&&i&&t.jsxs("div",{children:[ne(i)," - ",ne(d)]}),t.jsxs("div",{className:"timestamp-text",children:[L>0&&t.jsxs("span",{className:"listings-text",children:[L," ",L===1?B:r," ","∙"," "]}),t.jsx("span",{className:`duration-text ${me?"urgent":""} ${Y?"":"starts-in"}`,children:W&&V?t.jsxs("div",{className:"countdown-timer",children:[O," ",V.hours.toString().padStart(2,"0"),":",V.minutes.toString().padStart(2,"0"),":",V.seconds.toString().padStart(2,"0")]}):Y?K(O,a,q,H,m):K(R,k,ue,z,E)})]})]})}),t.jsx(le,{hasPermission:!0,image:t.jsx("img",{src:T,className:`${T?"":"no-image"}`}),themeData:U,isActive:!0,isUser:!1,name:S,shopCategory:b,onClick:()=>x(l)})]})]})});ce.propTypes={title:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.element]),numberOfListings:s.PropTypes.number,dropdown:s.PropTypes.any,color:s.PropTypes.string};u.styled.div`
230
+ `,Pe=c.forwardRef(({src:e,...n},a)=>{const o=c.useRef();return c.useEffect(()=>{var g;const u=d=>{d.target.src=ee.DefaultShopImage,d.onerror=null};return(g=o==null?void 0:o.current)==null||g.addEventListener("error",u),()=>{var d;(d=o==null?void 0:o.current)==null||d.removeEventListener("error",u)}},[]),t.jsx(c.Fragment,{ref:a,children:v.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,name:g,notifications:d=0,color:l="primary",size:m="large",style:h,disabled:$,onClick:b=()=>{},isActive:P,className:T,shopCategory:j,themeData:x}=e,_={theme:G.useTheme(),color:l,size:m,style:h,disabled:$};return c.createElement(je,{onClick:I=>{I.stopPropagation(),a===!0&&(b==null||b())},..._,key:g,className:`profile-item ${T}`,hasPermission:a,isActive:P,themeColor:(x==null?void 0:x.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:u}),t.jsxs("div",{children:[t.jsx("div",{className:"name",children:g}),!o&&t.jsx("div",{className:"description",children:j}),d>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(be,{className:"badge",color:"danger",size:"small",children:d>99?"99+":d})})]}))};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=G.useTheme(),{shopUuid:o,title:u="",coverPhoto:g,onSelect:d,startDate:l,endDate:m,salesPackages:h,shopName:$,shopCategory:b,shopImage:P,className:T,onSelectCard:j=()=>{},onSelectShop:x=()=>{},upcoming:C=!1,upcomingCampaignText:_,campaignSingleText:I,salesCampaignTypes:y=[],startsInPrefixTextPlural:N,startsinSuffixTextPlural:M,startsInPrefixTextSingular:L,startsinSuffixTextSingular:R,endsInPrefixTextPlural:i,endsinSuffixTextPlural:f,endsInPrefixTextSingular:O,endsinSuffixTextSingular:H,themeData:U,numberOfListings:z,numberOfListingsTextSingular:B,numberOfListingsTextPlural:r,...A}=e,Y=l?new Date(l)<=new Date:!1,me=ne(l?new Date(l):null,new Date),q=ne(m?new Date(m):null,new Date),he=q!==null&&q<=2&&q>0,J=m?new Date(m).getTime():null,pe=Date.now(),Z=J!==null?J-pe:null,W=Z!==null&&Z>0&&Z<24*60*60*1e3,K=(S,X,w,k,D)=>w===1?`${S} ${w} ${k}`:`${X} ${w} ${D}`,fe=()=>{if(!m)return null;const S=xe,w=new Date(m).getTime()-S.getTime();if(w<=0)return null;const k=Math.floor(w/(1e3*60*60)),D=Math.floor(w%(1e3*60*60)/(1e3*60)),we=Math.floor(w%(1e3*60)/1e3);return{hours:k,minutes:D,seconds:we}},[xe,ye]=c.useState(new Date);c.useEffect(()=>{if(!W)return;const S=setInterval(()=>{ye(new Date)},1e3);return()=>clearInterval(S)},[W]);const V=W?fe():null;return t.jsxs(ve,{ref:n,theme:a,className:T,onClick:j,...A,children:[t.jsxs(_e,{theme:a,onClick:()=>d==null?void 0:d(),children:[t.jsx("img",{src:g}),t.jsx(Se,{children:h==null?void 0:h.map((S,X)=>{var w,k;return t.jsx($e,{color:(w=y==null?void 0:y.find(D=>D.value===S))==null?void 0:w.color,theme:a,children:t.jsx(ie,{icon:(k=y==null?void 0:y.find(D=>D.value===S))==null?void 0:k.icon})},`package__${X}`)})})]}),t.jsxs(Te,{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=C?_:I)==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:[z>0&&t.jsxs("span",{className:"listings-text",children:[z," ",z===1?B:r," ","∙"," "]}),t.jsx("span",{className:`duration-text ${he?"urgent":""} ${Y?"":"starts-in"}`,children:W&&V?t.jsxs("div",{className:"countdown-timer",children:[O," ",V.hours.toString().padStart(2,"0"),":",V.minutes.toString().padStart(2,"0"),":",V.seconds.toString().padStart(2,"0")]}):Y?K(O,i,q,H,f):K(L,N,me,R,M)})]})]})}),t.jsx(ce,{hasPermission:!0,image:t.jsx(Pe,{src:P}),themeData:U,isActive:!0,isUser:!1,name:$,shopCategory:b,onClick:()=>x(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};p.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: ${M.MOBILE_SIZE_PX+"px"}) {
261
+ @media (max-width: ${E.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 F=u.styled.div`
268
+ `;const F=p.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
- ${_.linearGradientAnimation("-90deg")}
274
- `,Pe=u.styled.div`
273
+ ${v.linearGradientAnimation("-90deg")}
274
+ `,Ce=p.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
- `,se=u.styled.div`
280
- border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,(e==null?void 0:e.borderRadius)??"regular")};
279
+ `,ae=p.styled.div`
280
+ border-radius: ${e=>v.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
- ${_.linearGradientAnimation()}
290
- `,Se=u.styled.div`
289
+ ${v.linearGradientAnimation()}
290
+ `,Ie=p.styled.div`
291
291
  background: var(--white, #fff);
292
- border-radius: ${e=>_.getBorderRadiusValueWithUnits(e.theme,"edged")};
292
+ border-radius: ${e=>v.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: ${M.MOBILE_SIZE_PX+"px"}) {
319
+ @media (max-width: ${E.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
- `,Ce=u.styled.div`
326
+ `,De=p.styled.div`
327
327
  display: flex;
328
328
  gap: 1.5rem;
329
- `,Ie=c.forwardRef(({},e)=>{const n=G.useTheme();return t.jsxs(Se,{ref:e,theme:n,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(se,{theme:n,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(Pe,{theme:n,children:[t.jsx(F,{heightCoeff:.75,theme:n,width:"35%"}),t.jsx(F,{heightCoeff:1.25,theme:n}),t.jsx(F,{heightCoeff:3,theme:n})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(se,{theme:n,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(F,{theme:n,width:"75%"})]})]})]})}),Ne=({itemsCount:e=5,keyPrefix:n})=>t.jsx(Ce,{children:Array.from({length:e},(o,l)=>t.jsx(Ie,{},`${n}-skeleton-campaign-card-${l}`))}),ke=({children:e,fallbackComponent:n=t.jsx(t.Fragment,{}),isLoading:o=!1,itemsCount:l=5,keyPrefix:p})=>t.jsx(c.Suspense,{fallback:n,children:o===!0?t.jsx(Ne,{itemsCount:l,keyPrefix:p}):e}),De=u.styled.div`
329
+ `,Ne=c.forwardRef(({},e)=>{const n=G.useTheme();return t.jsxs(Ie,{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(Ce,{theme:n,children:[t.jsx(F,{heightCoeff:.75,theme:n,width:"35%"}),t.jsx(F,{heightCoeff:1.25,theme:n}),t.jsx(F,{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(F,{theme:n,width:"75%"})]})]})]})}),ke=({itemsCount:e=5,keyPrefix:n})=>t.jsx(De,{children:Array.from({length:e},(a,o)=>t.jsx(Ne,{},`${n}-skeleton-campaign-card-${o}`))}),Ee=({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(ke,{itemsCount:o,keyPrefix:u}):e}),Me=p.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
- `,Me=u.styled(ae.motion.div)`
370
+ `,Le=p.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: ${M.MOBILE_SIZE_PX+"px"}) {
376
+ @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
377
377
  grid-template-columns: repeat(${e=>e==null?void 0:e.numOfColumnsForMobile}, 1fr);
378
378
  }
379
- `,de=c.forwardRef(({icon:e,title:n,numOfSlides:o=2,numOfSlidesForMobile:l=1,showNavigation:p=!0,children:h},f)=>{const[i,d]=c.useState(0),[g,S]=c.useState(1),[b,T]=c.useState(null),[j,$]=c.useState(null),x=ie.useDetectMobile(),C=50,v=(h==null?void 0:h.length)??1;c.useEffect(()=>{const a=()=>{S(x?l:o)};return window.addEventListener("resize",a),a(),()=>window.removeEventListener("resize",a)},[]);const I=h==null?void 0:h.slice(i,i+g),y=a=>{var m;(m=a==null?void 0:a.target)==null||m.blur(),i+g<v&&d(i+g)},k=a=>{var m;(m=a==null?void 0:a.target)==null||m.blur(),i-g>=0&&d(i-g)},E=a=>{var m;$(null),T((m=a==null?void 0:a.targetTouches["0"])==null?void 0:m.clientX)},R=a=>{var m;$((m=a==null?void 0:a.targetTouches["0"])==null?void 0:m.clientX)},z=()=>{if(!b||!j)return;const a=b-j;a>C&&y(),a<-C&&k()};return t.jsxs(De,{ref:f,...x?{onTouchStart:E,onTouchMove:R,onTouchEnd:z}:{},children:[t.jsx("div",{className:"scrollable-section__header",children:t.jsxs("div",{className:"scrollable-section__title",children:[_.isDefinedNotEmptyString(e)&&t.jsx(oe,{icon:e,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),_.isDefinedNotEmptyString(n)&&t.jsx("div",{className:"title__text",children:n})]})}),t.jsx(Me,{numOfColumns:o,numOfColumnsForMobile:l,animate:{x:0,opacity:1},initial:{x:10,opacity:0},children:I},`scrollable-section__content-${i}`),p&&v>g&&!x&&t.jsxs("div",{className:"scrollable-section__navigation",children:[t.jsx(ee,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:i===0,onClick:k}),t.jsx(ee,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:i+g>=v,onClick:y})]})]})});de.propTypes={icon:s.PropTypes.string,title:s.PropTypes.string,numOfSlides:s.PropTypes.number,numOfSlidesForMobile:s.PropTypes.number,showNavigation:s.PropTypes.bool};const Ee=u.styled.div`
379
+ `,ge=c.forwardRef(({icon:e,title:n,numOfSlides:a=2,numOfSlidesForMobile:o=1,showNavigation:u=!0,children:g},d)=>{const[l,m]=c.useState(0),[h,$]=c.useState(1),[b,P]=c.useState(null),[T,j]=c.useState(null),x=le.useDetectMobile(),C=50,_=(g==null?void 0:g.length)??1;c.useEffect(()=>{const i=()=>{$(x?o:a)};return window.addEventListener("resize",i),i(),()=>window.removeEventListener("resize",i)},[]);const I=g==null?void 0:g.slice(l,l+h),y=i=>{var f;(f=i==null?void 0:i.target)==null||f.blur(),l+h<_&&m(l+h)},N=i=>{var f;(f=i==null?void 0:i.target)==null||f.blur(),l-h>=0&&m(l-h)},M=i=>{var f;j(null),P((f=i==null?void 0:i.targetTouches["0"])==null?void 0:f.clientX)},L=i=>{var f;j((f=i==null?void 0:i.targetTouches["0"])==null?void 0:f.clientX)},R=()=>{if(!b||!T)return;const i=b-T;i>C&&y(),i<-C&&N()};return t.jsxs(Me,{ref:d,...x?{onTouchStart:M,onTouchMove:L,onTouchEnd:R}:{},children:[t.jsx("div",{className:"scrollable-section__header",children:t.jsxs("div",{className:"scrollable-section__title",children:[v.isDefinedNotEmptyString(e)&&t.jsx(ie,{icon:e,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),v.isDefinedNotEmptyString(n)&&t.jsx("div",{className:"title__text",children:n})]})}),t.jsx(Le,{numOfColumns:a,numOfColumnsForMobile:o,animate:{x:0,opacity:1},initial:{x:10,opacity:0},children:I},`scrollable-section__content-${l}`),u&&_>h&&!x&&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:N}),t.jsx(re,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:l+h>=_,onClick:y})]})]})});ge.propTypes={icon:s.PropTypes.string,title:s.PropTypes.string,numOfSlides:s.PropTypes.number,numOfSlidesForMobile:s.PropTypes.number,showNavigation:s.PropTypes.bool};const Re=p.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
- `,ge=c.forwardRef(({sectionName:e,imageUrl:n,maxHeight:o="16.25rem",className:l="",handleClick:p=()=>{}})=>t.jsx(Ee,{maxHeight:o,onClick:p,className:`itemless-banner ${l}`,children:t.jsx("img",{src:n,alt:`itemless-banner__${e}`})}));ge.propTypes={sectionName:s.PropTypes.string,imageUrl:s.PropTypes.string,maxHeight:s.PropTypes.string,className:s.PropTypes.string,handleClick:s.PropTypes.func};const Re=c.memo(ce),ze=c.forwardRef(({sellerType:e="Shop",items:n=[],title:o,icon:l,isLoading:p,onSelectCard:h=()=>{},onSelectShop:f=()=>{},getImage:i=()=>{},campaignSingleText:d,upcomingCampaignText:g,salesCampaignTypes:S=[],startsInPrefixTextPlural:b,startsinSuffixTextPlural:T,startsInPrefixTextSingular:j,startsinSuffixTextSingular:$,endsInPrefixTextPlural:x,endsinSuffixTextPlural:C,endsInPrefixTextSingular:v,endsinSuffixTextSingular:I,numOfSlides:y=2,numOfSlidesForMobile:k=1,showNavigation:E=!0,numberOfListingsTextSingular:R,numberOfListingsTextPlural:z,itemlessImageUrl:a,itemlessLink:m,handleItemlessLink:O=()=>{}},H)=>{const U=ie.useDetectMobile(),L=c.useMemo(()=>{let B=n==null?void 0:n.map((r,Z)=>t.jsx(Re,{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:()=>h(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>f(r==null?void 0:r.shopUuid),campaignSingleText:d,upcomingCampaignText:g,upcoming:r==null?void 0:r.upcoming,salesCampaignTypes:S,startsInPrefixTextPlural:b,startsinSuffixTextPlural:T,startsInPrefixTextSingular:j,startsinSuffixTextSingular:$,endsInPrefixTextPlural:x,endsinSuffixTextPlural:C,endsInPrefixTextSingular:v,endsinSuffixTextSingular:I,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&&!U?[...B,t.jsx(ge,{imageUrl:a,className:"campaign-item",handleClick:O})]:B},[n]);return t.jsx(ke,{isLoading:p,itemsCount:U?1:2,keyPrefix:"sales-camp",children:t.jsx(de,{icon:l,title:o,numOfSlides:y,numOfSlidesForMobile:k,showNavigation:E,children:L})})});module.exports=ze;
396
+ `,ue=c.forwardRef(({sectionName:e,imageUrl:n,maxHeight:a="16.25rem",className:o="",handleClick:u=()=>{}})=>t.jsx(Re,{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 ze=c.memo(de),Oe=c.forwardRef(({sellerType:e="Shop",items:n=[],title:a,icon:o,isLoading:u,onSelectCard:g=()=>{},onSelectShop:d=()=>{},getImage:l=()=>{},campaignSingleText:m,upcomingCampaignText:h,salesCampaignTypes:$=[],startsInPrefixTextPlural:b,startsinSuffixTextPlural:P,startsInPrefixTextSingular:T,startsinSuffixTextSingular:j,endsInPrefixTextPlural:x,endsinSuffixTextPlural:C,endsInPrefixTextSingular:_,endsinSuffixTextSingular:I,numOfSlides:y=2,numOfSlidesForMobile:N=1,showNavigation:M=!0,numberOfListingsTextSingular:L,numberOfListingsTextPlural:R,itemlessImageUrl:i,itemlessLink:f,handleItemlessLink:O=()=>{}},H)=>{const U=le.useDetectMobile(),z=c.useMemo(()=>{let B=n==null?void 0:n.map((r,A)=>t.jsx(ze,{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,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:()=>g(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>d(r==null?void 0:r.shopUuid),campaignSingleText:m,upcomingCampaignText:h,upcoming:r==null?void 0:r.upcoming,salesCampaignTypes:$,startsInPrefixTextPlural:b,startsinSuffixTextPlural:P,startsInPrefixTextSingular:T,startsinSuffixTextSingular:j,endsInPrefixTextPlural:x,endsinSuffixTextPlural:C,endsInPrefixTextSingular:_,endsinSuffixTextSingular:I,themeData:r==null?void 0:r.themeData,numberOfListings:r==null?void 0:r.numberOfListings,numberOfListingsTextSingular:L,numberOfListingsTextPlural:R},`campaign__item__${A}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}`));return(n==null?void 0:n.length)<2&&!U?[...B,t.jsx(ue,{imageUrl:i,className:"campaign-item",handleClick:O})]:B},[n]);return t.jsx(Ee,{isLoading:u,itemsCount:U?1:2,keyPrefix:"sales-camp",children:t.jsx(ge,{icon:o,title:a,numOfSlides:y,numOfSlidesForMobile:N,showNavigation:M,children:z})})});module.exports=Oe;