@lanaco/lnc-react-ui 4.0.108 → 4.0.110

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 (47) hide show
  1. package/dist/BlogCategoryCardsSection.cjs +1 -1
  2. package/dist/BlogCategoryCardsSection.js +1 -1
  3. package/dist/BlogListSection.cjs +4 -4
  4. package/dist/BlogListSection.js +41 -39
  5. package/dist/BlogProductCardsSection.cjs +1 -1
  6. package/dist/BlogProductCardsSection.js +2 -2
  7. package/dist/BlogsSectionDetailed.cjs +6 -9
  8. package/dist/BlogsSectionDetailed.js +9 -12
  9. package/dist/BlogsSectionSimple.cjs +6 -9
  10. package/dist/BlogsSectionSimple.js +23 -26
  11. package/dist/DetailedProductsSection.cjs +1 -1
  12. package/dist/DetailedProductsSection.js +1 -1
  13. package/dist/FieldOfInterestsMasonrySection.cjs +13 -4
  14. package/dist/FieldOfInterestsMasonrySection.js +51 -41
  15. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  16. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
  17. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +0 -9
  18. package/dist/FieldOfInterestsWithTagsCardsSection.js +15 -24
  19. package/dist/GeneralWithTagsCardsSection.cjs +3 -12
  20. package/dist/GeneralWithTagsCardsSection.js +5 -14
  21. package/dist/GiftCardsSection.cjs +10 -3
  22. package/dist/GiftCardsSection.js +24 -17
  23. package/dist/LocationSearchSection.cjs +3 -7
  24. package/dist/LocationSearchSection.js +8 -12
  25. package/dist/MasonryGeneralCardsSection.cjs +2 -11
  26. package/dist/MasonryGeneralCardsSection.js +0 -9
  27. package/dist/OverlayGeneralCardsSection.cjs +17 -11
  28. package/dist/OverlayGeneralCardsSection.js +37 -31
  29. package/dist/ProductsWithBannerSection.cjs +5 -11
  30. package/dist/ProductsWithBannerSection.js +8 -14
  31. package/dist/SalesCampaignsSection.cjs +9 -12
  32. package/dist/SalesCampaignsSection.js +22 -25
  33. package/dist/SimpleCategoriesSection.cjs +1 -1
  34. package/dist/SimpleCategoriesSection.js +1 -1
  35. package/dist/SimpleProductsSection.cjs +1 -1
  36. package/dist/SimpleProductsSection.js +2 -2
  37. package/dist/UrgentSaleProductsSection.cjs +1 -1
  38. package/dist/UrgentSaleProductsSection.js +1 -1
  39. package/dist/{index-CEI_JOki.js → index-B2pFbNKc.js} +4 -5
  40. package/dist/{index-B30K8mkW.cjs → index-B_HNDmXL.cjs} +3 -4
  41. package/dist/{suspense-categories-card-simple-Ds6hXZKt.js → suspense-categories-card-simple-BbtBbuWb.js} +15 -17
  42. package/dist/{suspense-categories-card-simple-B5zd-nnm.cjs → suspense-categories-card-simple-CK7XDK4k.cjs} +2 -4
  43. package/dist/{suspense-product-card-detailed-DXwya4fQ.cjs → suspense-product-card-detailed-LcBMp1iw.cjs} +4 -10
  44. package/dist/{suspense-product-card-detailed-bYBpLiXc.js → suspense-product-card-detailed-PArA5O4M.js} +0 -6
  45. package/dist/{suspense-product-card-simple-Ba1UPqgy.cjs → suspense-product-card-simple-CJwnghtt.cjs} +1 -1
  46. package/dist/{suspense-product-card-simple-ib6FLerL.js → suspense-product-card-simple-Z-FddSb-.js} +1 -1
  47. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),l=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-goSZX3xP.cjs"),j=require("./index-C1DkD2ug.cjs"),w=i.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),l=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-goSZX3xP.cjs"),v=require("./index-C1DkD2ug.cjs"),w=i.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  padding: 1.25rem;
@@ -28,7 +28,7 @@
28
28
  grid-template-columns: repeat(2, 1fr);
29
29
  gap: 0.5rem;
30
30
  }
31
- `,y=i.styled.div`
31
+ `,N=i.styled.div`
32
32
  display: flex;
33
33
  flex-direction: column;
34
34
  gap: 0.75rem;
@@ -52,9 +52,5 @@
52
52
  .city {
53
53
  cursor: pointer;
54
54
  transition: var(--transition);
55
-
56
- &:hover {
57
- color: var(--primary-500, #f59e0b);
58
- }
59
55
  }
60
- `,N=l.forwardRef((c,p)=>{const{title:m,items:s,options:o,selectedOption:g=[],onSelectRegion:u=()=>{},onSelectCity:x=()=>{},onSelectOption:h=()=>{},onSelectAll:f=()=>{},productsToolbarName:v="All"}=c;return e.jsxs(w,{ref:p,children:[e.jsx("div",{className:"wrapper-title",children:m}),(o==null?void 0:o.length)>0&&e.jsx(j.SelectBar,{items:o,selectedIds:g,onSelect:(r,t)=>{h(r,t)},onSelectAll:f,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:v}),e.jsx(S,{children:s==null?void 0:s.map((r,t)=>{var a;return e.jsxs(y,{children:[e.jsx("div",{className:"region",onClick:()=>u(r),children:r==null?void 0:r.name}),e.jsx("div",{className:"group-items",children:(a=r==null?void 0:r.cities)==null?void 0:a.map((n,b)=>e.jsx(l.Fragment,{children:e.jsxs("div",{className:"city",onClick:()=>x(n),children:[e.jsx("span",{children:n==null?void 0:n.name}),e.jsxs("span",{className:"count-txt",children:["(",n==null?void 0:n.count,")"]})]})},t+b))})]},t)})})]})});module.exports=N;
56
+ `,_=l.forwardRef((c,p)=>{const{title:m,items:s,options:o,selectedOption:g=[],onSelectRegion:u=()=>{},onSelectCity:x=()=>{},onSelectOption:h=()=>{},onSelectAll:f=()=>{},productsToolbarName:b="All"}=c;return e.jsxs(w,{ref:p,children:[e.jsx("div",{className:"wrapper-title",children:m}),(o==null?void 0:o.length)>0&&e.jsx(v.SelectBar,{items:o,selectedIds:g,onSelect:(r,t)=>{h(r,t)},onSelectAll:f,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:b}),e.jsx(S,{children:s==null?void 0:s.map((r,t)=>{var a;return e.jsxs(N,{children:[e.jsx("div",{className:"region",onClick:()=>u(r),children:r==null?void 0:r.name}),e.jsx("div",{className:"group-items",children:(a=r==null?void 0:r.cities)==null?void 0:a.map((n,j)=>e.jsx(l.Fragment,{children:e.jsxs("div",{className:"city",onClick:()=>x(n),children:[e.jsx("span",{children:n==null?void 0:n.name}),e.jsxs("span",{className:"count-txt",children:["(",n==null?void 0:n.count,")"]})]})},t+j))})]},t)})})]})});module.exports=_;
@@ -1,4 +1,4 @@
1
- import { jsxs as i, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
2
  import { forwardRef as w, Fragment as S } from "react";
3
3
  import { s as l } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as p } from "./consts-BuFChS64.js";
@@ -33,7 +33,7 @@ const C = l.div`
33
33
  grid-template-columns: repeat(2, 1fr);
34
34
  gap: 0.5rem;
35
35
  }
36
- `, y = l.div`
36
+ `, z = l.div`
37
37
  display: flex;
38
38
  flex-direction: column;
39
39
  gap: 0.75rem;
@@ -57,15 +57,11 @@ const C = l.div`
57
57
  .city {
58
58
  cursor: pointer;
59
59
  transition: var(--transition);
60
-
61
- &:hover {
62
- color: var(--primary-500, #f59e0b);
63
- }
64
60
  }
65
61
  `, A = w((s, m) => {
66
62
  const {
67
63
  title: c,
68
- items: t,
64
+ items: i,
69
65
  options: a,
70
66
  selectedOption: g = [],
71
67
  onSelectRegion: f = () => {
@@ -78,7 +74,7 @@ const C = l.div`
78
74
  },
79
75
  productsToolbarName: v = "All"
80
76
  } = s;
81
- return /* @__PURE__ */ i(C, { ref: m, children: [
77
+ return /* @__PURE__ */ t(C, { ref: m, children: [
82
78
  /* @__PURE__ */ o("div", { className: "wrapper-title", children: c }),
83
79
  (a == null ? void 0 : a.length) > 0 && /* @__PURE__ */ o(
84
80
  N,
@@ -95,13 +91,13 @@ const C = l.div`
95
91
  productsToolbarName: v
96
92
  }
97
93
  ),
98
- /* @__PURE__ */ o(k, { children: t == null ? void 0 : t.map((e, n) => {
94
+ /* @__PURE__ */ o(k, { children: i == null ? void 0 : i.map((e, n) => {
99
95
  var d;
100
- return /* @__PURE__ */ i(y, { children: [
96
+ return /* @__PURE__ */ t(z, { children: [
101
97
  /* @__PURE__ */ o("div", { className: "region", onClick: () => f(e), children: e == null ? void 0 : e.name }),
102
- /* @__PURE__ */ o("div", { className: "group-items", children: (d = e == null ? void 0 : e.cities) == null ? void 0 : d.map((r, b) => /* @__PURE__ */ o(S, { children: /* @__PURE__ */ i("div", { className: "city", onClick: () => h(r), children: [
98
+ /* @__PURE__ */ o("div", { className: "group-items", children: (d = e == null ? void 0 : e.cities) == null ? void 0 : d.map((r, b) => /* @__PURE__ */ o(S, { children: /* @__PURE__ */ t("div", { className: "city", onClick: () => h(r), children: [
103
99
  /* @__PURE__ */ o("span", { children: r == null ? void 0 : r.name }),
104
- /* @__PURE__ */ i("span", { className: "count-txt", children: [
100
+ /* @__PURE__ */ t("span", { className: "count-txt", children: [
105
101
  "(",
106
102
  r == null ? void 0 : r.count,
107
103
  ")"
@@ -104,16 +104,7 @@
104
104
  width: 9rem;
105
105
  }
106
106
  }
107
-
108
- &:hover {
109
107
  cursor: pointer;
110
-
111
- & .wrapper__text {
112
- & .text__title {
113
- color: var(--primary-500, #e87722);
114
- }
115
- }
116
- }
117
108
  `,w=m.forwardRef(({title:t,imageUrl:e,description:n,buttonText:a,onSelectCard:l=()=>{},className:o,position:s,tag:c,backgroundColor:p},x)=>{const h=u.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(_,{ref:x,theme:h,className:o,position:s,backgroundColor:p,onClick:l,children:[r.jsx("img",{src:e,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__text",children:[c&&r.jsx("div",{className:"text__tag",children:c}),r.jsx("div",{className:"text__title",children:t}),i.isDefinedNotEmptyString(n)&&r.jsx("div",{className:"text__description",children:n}),i.isDefinedNotEmptyString(a)&&r.jsx(f,{text:a,className:"text__action"})]})]})})}),b=d.styled.div`
118
109
  display: flex;
119
110
  flex-direction: column;
@@ -149,7 +140,7 @@
149
140
  }
150
141
  }
151
142
  }
152
- `,v=d.styled.div`
143
+ `,y=d.styled.div`
153
144
  display: grid;
154
145
  grid-template-columns: ${t=>"repeat(12, minmax(0, 1fr))"};
155
146
 
@@ -168,4 +159,4 @@
168
159
  max-height: 100%;
169
160
  padding: 0 1rem;
170
161
  }
171
- `,y=m.forwardRef(({title:t,items:e,limit:n=3,onSelectCard:a=()=>{}},l)=>r.jsxs(b,{ref:l,children:[r.jsx("div",{className:"regular-title",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:t})})}),r.jsx(v,{limit:n,children:e&&(e==null?void 0:e.map((o,s)=>r.jsx(w,{...o,onSelectCard:()=>a(o)},`landing-page-masonry-general-card__${s+1}`)))})]}));module.exports=y;
162
+ `,v=m.forwardRef(({title:t,items:e,limit:n=3,onSelectCard:a=()=>{}},l)=>r.jsxs(b,{ref:l,children:[r.jsx("div",{className:"regular-title",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:t})})}),r.jsx(y,{limit:n,children:e&&(e==null?void 0:e.map((o,s)=>r.jsx(w,{...o,onSelectCard:()=>a(o)},`landing-page-masonry-general-card__${s+1}`)))})]}));module.exports=v;
@@ -123,16 +123,7 @@ const y = s.div`
123
123
  width: 9rem;
124
124
  }
125
125
  }
126
-
127
- &:hover {
128
126
  cursor: pointer;
129
-
130
- & .wrapper__text {
131
- & .text__title {
132
- color: var(--primary-500, #e87722);
133
- }
134
- }
135
- }
136
127
  `, k = h(
137
128
  ({
138
129
  title: r,
@@ -1,15 +1,15 @@
1
- "use strict";const r=require("react/jsx-runtime"),l=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),p=require("./style-JqDQj4jh.cjs"),u=require("./utils-CZynEOC_.cjs"),f=require("./Button.cjs"),v=require("./ThemeProvider.cjs"),j=x.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),l=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./consts-goSZX3xP.cjs"),f=require("./style-JqDQj4jh.cjs"),u=require("./utils-CZynEOC_.cjs"),p=require("./Button.cjs"),v=require("./ThemeProvider.cjs"),j=g.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${n=>`repeat(${n.limit}, auto)`};
4
4
  gap: 1.25rem;
5
5
  justify-items: center;
6
6
 
7
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
7
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
8
8
  display: flex;
9
9
  flex-direction: column;
10
10
  gap: 1rem;
11
11
  }
12
- `,h=x.styled.div`
12
+ `,h=g.styled.div`
13
13
  width: 100%;
14
14
  overflow: hidden;
15
15
  position: relative;
@@ -18,6 +18,18 @@
18
18
  background: ${n=>n==null?void 0:n.overlay};
19
19
  cursor: pointer;
20
20
 
21
+ & img {
22
+ transition: var(--transition, all 0.3s ease);
23
+ overflow: hidden;
24
+ }
25
+ overflow: hidden;
26
+
27
+ &:hover {
28
+ & img {
29
+ transform: scale(1.1);
30
+ }
31
+ }
32
+
21
33
  & .content-wrapper {
22
34
  position: absolute;
23
35
  right: 0;
@@ -68,13 +80,7 @@
68
80
  min-height: 28.75rem;
69
81
  }
70
82
 
71
- &:hover {
72
- & .content-text {
73
- color: var(--primary-500, #f59e0b);
74
- }
75
- }
76
-
77
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
83
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
78
84
  & img,
79
85
  .img.skeleton {
80
86
  aspect-ratio: unset;
@@ -82,4 +88,4 @@
82
88
  max-height: 28.75rem;
83
89
  }
84
90
  }
85
- `,y=l.forwardRef(({},n)=>r.jsx(h,{ref:n,children:r.jsx("div",{className:"img-skeleton"})})),w=({limit:n=2,isLoading:t=!1,keyPrefix:o})=>r.jsx(r.Fragment,{children:Array.from({length:n},(s,a)=>r.jsx(y,{isLoading:t},`${o}-skeleton-product-card-${a}`))}),k=({children:n,fallbackComponent:t=r.jsx(r.Fragment,{}),isLoading:o=!1,limit:s,keyPrefix:a})=>r.jsx(l.Suspense,{fallbackComponent:t,children:o===!0?r.jsx(w,{isLoading:o,limit:s,keyPrefix:a}):n}),m=l.forwardRef(({title:n,image:t,backgroundColor:o,description:s,buttonText:a,handleClick:c=()=>{},onButtonAction:i=()=>{}},e)=>{const{theme:d}=v.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(h,{ref:e,theme:d,overlay:o,onClick:c,children:[r.jsx("img",{src:t}),r.jsxs("div",{className:"content-wrapper",children:[r.jsxs("div",{className:"content-text",children:[r.jsx("div",{children:n}),r.jsx("div",{className:"content-text-title",children:s})]}),u.isDefinedNotEmptyString(a)&&r.jsx(f,{text:a,onClick:i,className:"text__action",size:"medium",color:"gray"})]})]})})}),b=l.forwardRef(({title:n,items:t,limit:o=2,onSelectCard:s=()=>{},isLoading:a=!1,onButtonAction:c=()=>{}},i)=>r.jsxs(p.RegulatTitleSectionWrapper,{ref:i,children:[r.jsx("div",{className:"regular-title center",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:n})})}),r.jsx(j,{limit:o,children:r.jsx(k,{isLoading:a,limit:o,keyPrefix:"explore-landing",children:t==null?void 0:t.map((e,d)=>r.jsx(m,{title:e==null?void 0:e.title,image:e==null?void 0:e.imageUrl,description:e==null?void 0:e.description,buttonText:e==null?void 0:e.buttonText,backgroundColor:e==null?void 0:e.backgroundColor,handleClick:()=>s(e==null?void 0:e.selectAction,e),onButtonAction:()=>c(e==null?void 0:e.buttonLink,e)},`landing-page-overlay-general-card__${d+1}`))})})]}));module.exports=b;
91
+ `,y=l.forwardRef(({},n)=>r.jsx(h,{ref:n,children:r.jsx("div",{className:"img-skeleton"})})),w=({limit:n=2,isLoading:t=!1,keyPrefix:o})=>r.jsx(r.Fragment,{children:Array.from({length:n},(s,a)=>r.jsx(y,{isLoading:t},`${o}-skeleton-product-card-${a}`))}),m=({children:n,fallbackComponent:t=r.jsx(r.Fragment,{}),isLoading:o=!1,limit:s,keyPrefix:a})=>r.jsx(l.Suspense,{fallbackComponent:t,children:o===!0?r.jsx(w,{isLoading:o,limit:s,keyPrefix:a}):n}),k=l.forwardRef(({title:n,image:t,backgroundColor:o,description:s,buttonText:a,handleClick:i=()=>{},onButtonAction:c=()=>{}},e)=>{const{theme:d}=v.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(h,{ref:e,theme:d,overlay:o,onClick:i,children:[r.jsx("img",{src:t}),r.jsxs("div",{className:"content-wrapper",children:[r.jsxs("div",{className:"content-text",children:[r.jsx("div",{children:n}),r.jsx("div",{className:"content-text-title",children:s})]}),u.isDefinedNotEmptyString(a)&&r.jsx(p,{text:a,onClick:c,className:"text__action",size:"medium",color:"gray"})]})]})})}),b=l.forwardRef(({title:n,items:t,limit:o=2,onSelectCard:s=()=>{},isLoading:a=!1,onButtonAction:i=()=>{}},c)=>r.jsxs(f.RegulatTitleSectionWrapper,{ref:c,children:[r.jsx("div",{className:"regular-title center",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:n})})}),r.jsx(j,{limit:o,children:r.jsx(m,{isLoading:a,limit:o,keyPrefix:"explore-landing",children:t==null?void 0:t.map((e,d)=>r.jsx(k,{title:e==null?void 0:e.title,image:e==null?void 0:e.imageUrl,description:e==null?void 0:e.description,buttonText:e==null?void 0:e.buttonText,backgroundColor:e==null?void 0:e.backgroundColor,handleClick:()=>s(e==null?void 0:e.selectAction,e),onButtonAction:()=>i(e==null?void 0:e.buttonLink,e)},`landing-page-overlay-general-card__${d+1}`))})})]}));module.exports=b;
@@ -1,10 +1,10 @@
1
- import { jsx as r, Fragment as p, jsxs as i } from "react/jsx-runtime";
2
- import { forwardRef as g, Suspense as m } from "react";
1
+ import { jsx as r, Fragment as g, jsxs as i } from "react/jsx-runtime";
2
+ import { forwardRef as p, Suspense as m } from "react";
3
3
  import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as h } from "./consts-BuFChS64.js";
5
5
  import { R as v } from "./style-08foMKSd.js";
6
- import { p as x, o as y, k } from "./utils-BbgAIA9N.js";
7
- import w from "./Button.js";
6
+ import { p as x, o as y, k as w } from "./utils-BbgAIA9N.js";
7
+ import k from "./Button.js";
8
8
  import { useTheme as b } from "./ThemeProvider.js";
9
9
  const $ = f.div`
10
10
  display: grid;
@@ -26,6 +26,18 @@ const $ = f.div`
26
26
  background: ${(n) => n == null ? void 0 : n.overlay};
27
27
  cursor: pointer;
28
28
 
29
+ & img {
30
+ transition: var(--transition, all 0.3s ease);
31
+ overflow: hidden;
32
+ }
33
+ overflow: hidden;
34
+
35
+ &:hover {
36
+ & img {
37
+ transform: scale(1.1);
38
+ }
39
+ }
40
+
29
41
  & .content-wrapper {
30
42
  position: absolute;
31
43
  right: 0;
@@ -76,12 +88,6 @@ const $ = f.div`
76
88
  min-height: 28.75rem;
77
89
  }
78
90
 
79
- &:hover {
80
- & .content-text {
81
- color: var(--primary-500, #f59e0b);
82
- }
83
- }
84
-
85
91
  @media (max-width: ${h + "px"}) {
86
92
  & img,
87
93
  .img.skeleton {
@@ -90,30 +96,30 @@ const $ = f.div`
90
96
  max-height: 28.75rem;
91
97
  }
92
98
  }
93
- `, C = g(({}, n) => /* @__PURE__ */ r(u, { ref: n, children: /* @__PURE__ */ r("div", { className: "img-skeleton" }) })), N = ({ limit: n = 2, isLoading: t = !1, keyPrefix: o }) => /* @__PURE__ */ r(p, { children: Array.from({ length: n }, (l, a) => /* @__PURE__ */ r(
99
+ `, C = p(({}, n) => /* @__PURE__ */ r(u, { ref: n, children: /* @__PURE__ */ r("div", { className: "img-skeleton" }) })), N = ({ limit: n = 2, isLoading: o = !1, keyPrefix: t }) => /* @__PURE__ */ r(g, { children: Array.from({ length: n }, (l, a) => /* @__PURE__ */ r(
94
100
  C,
95
101
  {
96
- isLoading: t
102
+ isLoading: o
97
103
  },
98
- `${o}-skeleton-product-card-${a}`
104
+ `${t}-skeleton-product-card-${a}`
99
105
  )) }), S = ({
100
106
  children: n,
101
- fallbackComponent: t = /* @__PURE__ */ r(p, {}),
102
- isLoading: o = !1,
107
+ fallbackComponent: o = /* @__PURE__ */ r(g, {}),
108
+ isLoading: t = !1,
103
109
  limit: l,
104
110
  keyPrefix: a
105
- }) => /* @__PURE__ */ r(m, { fallbackComponent: t, children: o === !0 ? /* @__PURE__ */ r(
111
+ }) => /* @__PURE__ */ r(m, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ r(
106
112
  N,
107
113
  {
108
- isLoading: o,
114
+ isLoading: t,
109
115
  limit: l,
110
116
  keyPrefix: a
111
117
  }
112
- ) : n }), _ = g(
118
+ ) : n }), _ = p(
113
119
  ({
114
120
  title: n,
115
- image: t,
116
- backgroundColor: o,
121
+ image: o,
122
+ backgroundColor: t,
117
123
  description: l,
118
124
  buttonText: a,
119
125
  handleClick: c = () => {
@@ -122,22 +128,22 @@ const $ = f.div`
122
128
  }
123
129
  }, e) => {
124
130
  const { theme: s } = b();
125
- return /* @__PURE__ */ r(p, { children: /* @__PURE__ */ i(
131
+ return /* @__PURE__ */ r(g, { children: /* @__PURE__ */ i(
126
132
  u,
127
133
  {
128
134
  ref: e,
129
135
  theme: s,
130
- overlay: o,
136
+ overlay: t,
131
137
  onClick: c,
132
138
  children: [
133
- /* @__PURE__ */ r("img", { src: t }),
139
+ /* @__PURE__ */ r("img", { src: o }),
134
140
  /* @__PURE__ */ i("div", { className: "content-wrapper", children: [
135
141
  /* @__PURE__ */ i("div", { className: "content-text", children: [
136
142
  /* @__PURE__ */ r("div", { children: n }),
137
143
  /* @__PURE__ */ r("div", { className: "content-text-title", children: l })
138
144
  ] }),
139
- k(a) && /* @__PURE__ */ r(
140
- w,
145
+ w(a) && /* @__PURE__ */ r(
146
+ k,
141
147
  {
142
148
  text: a,
143
149
  onClick: d,
@@ -151,11 +157,11 @@ const $ = f.div`
151
157
  }
152
158
  ) });
153
159
  }
154
- ), E = g(
160
+ ), E = p(
155
161
  ({
156
162
  title: n,
157
- items: t,
158
- limit: o = 2,
163
+ items: o,
164
+ limit: t = 2,
159
165
  onSelectCard: l = () => {
160
166
  },
161
167
  isLoading: a = !1,
@@ -163,13 +169,13 @@ const $ = f.div`
163
169
  }
164
170
  }, d) => /* @__PURE__ */ i(v, { ref: d, children: [
165
171
  /* @__PURE__ */ r("div", { className: "regular-title center", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children: n }) }) }),
166
- /* @__PURE__ */ r($, { limit: o, children: /* @__PURE__ */ r(
172
+ /* @__PURE__ */ r($, { limit: t, children: /* @__PURE__ */ r(
167
173
  S,
168
174
  {
169
175
  isLoading: a,
170
- limit: o,
176
+ limit: t,
171
177
  keyPrefix: "explore-landing",
172
- children: t == null ? void 0 : t.map((e, s) => /* @__PURE__ */ r(
178
+ children: o == null ? void 0 : o.map((e, s) => /* @__PURE__ */ r(
173
179
  _,
174
180
  {
175
181
  title: e == null ? void 0 : e.title,
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),l=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./consts-goSZX3xP.cjs"),k=require("./useDetectMobile-zkbzoOGV.cjs"),y=require("./style-JqDQj4jh.cjs"),d=require("./utils-CZynEOC_.cjs"),P=require("./index-BvSNRLNa.cjs"),S=u.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),d=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./consts-goSZX3xP.cjs"),v=require("./useDetectMobile-zkbzoOGV.cjs"),y=require("./style-JqDQj4jh.cjs"),l=require("./utils-CZynEOC_.cjs"),P=require("./index-BvSNRLNa.cjs"),S=u.styled.div`
2
2
  width: 100%;
3
3
  height: 22.5rem;
4
4
  min-height: 22.5rem;
@@ -55,23 +55,17 @@
55
55
  & .card-title {
56
56
  font-size: 0.875rem;
57
57
  font-weight: 600;
58
- ${d.truncateTextInRows(2)}
59
- }
60
-
61
- &:hover {
62
- & .card-title {
63
- color: var(--primary-500, #F59E0B);
64
- }
58
+ ${l.truncateTextInRows(2)}
65
59
  }
66
60
 
67
61
  & .skeleton-img {
68
- background-color: ${d.linearGradientAnimation("-90deg")};
62
+ background-color: ${l.linearGradientAnimation("-90deg")};
69
63
  border-radius: 0.75rem;
70
64
  border: 1px solid white;
71
65
  }
72
66
 
73
67
  & .skeleton-title {
74
- background-color: ${d.linearGradientAnimation("-90deg")};
68
+ background-color: ${l.linearGradientAnimation("-90deg")};
75
69
  width: 100%;
76
70
  height: 1.25rem;
77
71
  }
@@ -87,4 +81,4 @@
87
81
  object-fit: cover;
88
82
  }
89
83
  }
90
- `,N=l.forwardRef((t,a)=>{const{uuid:o,title:i,image:s,sellerUuid:g,onSelectCard:n=()=>{},imageComponent:c}=t;return r.jsxs(b,{className:"product-card",onClick:n,children:[d.isDefined(c)?c:r.jsx(P.ProductImageWrapper,{src:s}),r.jsx("div",{className:"card-title",children:i})]})}),$=l.forwardRef(({},t)=>r.jsxs(b,{className:"product-card",children:[r.jsx("img",{className:"skeleton-img"}),r.jsx("div",{className:"skeleton-title"})]})),q=({limit:t=4,isLoading:a=!1,keyPrefix:o})=>r.jsx(r.Fragment,{children:Array.from({length:t},(i,s)=>r.jsx($,{isLoading:a},`${o}-skeleton-product-card-${s}`))}),I=({children:t,fallbackComponent:a=r.jsx(r.Fragment,{}),isLoading:o=!1,limit:i,keyPrefix:s})=>r.jsx(l.Suspense,{fallbackComponent:a,children:o===!0?r.jsx(q,{isLoading:o,limit:i,keyPrefix:s}):t}),f=l.memo(N),U=l.forwardRef((t,a)=>{const{icon:o,items:i,limit:s=4,imageUrl:g,onSelectCard:n=()=>{},title:c="Season inspiration",isLoading:w=!1,getImage:p=()=>{}}=t,h=k.useDetectMobile(),v=l.useMemo(()=>r.jsx(r.Fragment,{children:h===!0?i==null?void 0:i.map((e,m)=>r.jsx(f,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:()=>n==null?void 0:n(e==null?void 0:e.uuid),image:p(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null},m)):i==null?void 0:i.slice(0,s).map((e,m)=>r.jsx(f,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:()=>n==null?void 0:n(e==null?void 0:e.uuid),image:p(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null},m))}),[i,h,s]);return r.jsxs(y.RegulatTitleSectionWrapper,{ref:a,children:[r.jsx("div",{className:"regular-title",children:r.jsxs("div",{className:"regular-title-text",children:[d.isDefinedNotEmptyString(o)&&r.jsx("i",{className:o}),r.jsx("span",{children:c})]})}),r.jsx(S,{className:"products-banner",children:r.jsx("img",{src:g})}),r.jsx(C,{limit:s,children:r.jsx(I,{isLoading:w,limit:s,keyPrefix:"explore-landing",children:v})})]})});module.exports=U;
84
+ `,N=d.forwardRef((t,a)=>{const{uuid:n,title:i,image:s,sellerUuid:g,onSelectCard:o=()=>{},imageComponent:c}=t;return r.jsxs(b,{className:"product-card",onClick:o,children:[l.isDefined(c)?c:r.jsx(P.ProductImageWrapper,{src:s}),r.jsx("div",{className:"card-title",children:i})]})}),$=d.forwardRef(({},t)=>r.jsxs(b,{className:"product-card",children:[r.jsx("img",{className:"skeleton-img"}),r.jsx("div",{className:"skeleton-title"})]})),q=({limit:t=4,isLoading:a=!1,keyPrefix:n})=>r.jsx(r.Fragment,{children:Array.from({length:t},(i,s)=>r.jsx($,{isLoading:a},`${n}-skeleton-product-card-${s}`))}),I=({children:t,fallbackComponent:a=r.jsx(r.Fragment,{}),isLoading:n=!1,limit:i,keyPrefix:s})=>r.jsx(d.Suspense,{fallbackComponent:a,children:n===!0?r.jsx(q,{isLoading:n,limit:i,keyPrefix:s}):t}),f=d.memo(N),U=d.forwardRef((t,a)=>{const{icon:n,items:i,limit:s=4,imageUrl:g,onSelectCard:o=()=>{},title:c="Season inspiration",isLoading:w=!1,getImage:p=()=>{}}=t,h=v.useDetectMobile(),k=d.useMemo(()=>r.jsx(r.Fragment,{children:h===!0?i==null?void 0:i.map((e,m)=>r.jsx(f,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:()=>o==null?void 0:o(e==null?void 0:e.uuid),image:p(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null},m)):i==null?void 0:i.slice(0,s).map((e,m)=>r.jsx(f,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:()=>o==null?void 0:o(e==null?void 0:e.uuid),image:p(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null},m))}),[i,h,s]);return r.jsxs(y.RegulatTitleSectionWrapper,{ref:a,children:[r.jsx("div",{className:"regular-title",children:r.jsxs("div",{className:"regular-title-text",children:[l.isDefinedNotEmptyString(n)&&r.jsx("i",{className:n}),r.jsx("span",{children:c})]})}),r.jsx(S,{className:"products-banner",children:r.jsx("img",{src:g})}),r.jsx(C,{limit:s,children:r.jsx(I,{isLoading:w,limit:s,keyPrefix:"explore-landing",children:k})})]})});module.exports=U;
@@ -23,7 +23,7 @@ const E = p.div`
23
23
  height: 100%;
24
24
  object-fit: cover;
25
25
  }
26
- `, B = p.div`
26
+ `, R = p.div`
27
27
  display: grid;
28
28
  grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
29
29
  gap: 1.25rem;
@@ -66,12 +66,6 @@ const E = p.div`
66
66
  ${I(2)}
67
67
  }
68
68
 
69
- &:hover {
70
- & .card-title {
71
- color: var(--primary-500, #F59E0B);
72
- }
73
- }
74
-
75
69
  & .skeleton-img {
76
70
  background-color: ${b("-90deg")};
77
71
  border-radius: 0.75rem;
@@ -95,7 +89,7 @@ const E = p.div`
95
89
  object-fit: cover;
96
90
  }
97
91
  }
98
- `, R = u((t, d) => {
92
+ `, z = u((t, d) => {
99
93
  const {
100
94
  uuid: a,
101
95
  title: i,
@@ -109,16 +103,16 @@ const E = p.div`
109
103
  M(n) ? n : /* @__PURE__ */ r(j, { src: o }),
110
104
  /* @__PURE__ */ r("div", { className: "card-title", children: i })
111
105
  ] });
112
- }), z = u(({}, t) => /* @__PURE__ */ s(v, { className: "product-card", children: [
106
+ }), B = u(({}, t) => /* @__PURE__ */ s(v, { className: "product-card", children: [
113
107
  /* @__PURE__ */ r("img", { className: "skeleton-img" }),
114
108
  /* @__PURE__ */ r("div", { className: "skeleton-title" })
115
109
  ] })), D = ({ limit: t = 4, isLoading: d = !1, keyPrefix: a }) => /* @__PURE__ */ r(c, { children: Array.from({ length: t }, (i, o) => /* @__PURE__ */ r(
116
- z,
110
+ B,
117
111
  {
118
112
  isLoading: d
119
113
  },
120
114
  `${a}-skeleton-product-card-${o}`
121
- )) }), F = ({
115
+ )) }), _ = ({
122
116
  children: t,
123
117
  fallbackComponent: d = /* @__PURE__ */ r(c, {}),
124
118
  isLoading: a = !1,
@@ -131,7 +125,7 @@ const E = p.div`
131
125
  limit: i,
132
126
  keyPrefix: o
133
127
  }
134
- ) : t }), w = N(R), q = u((t, d) => {
128
+ ) : t }), w = N(z), q = u((t, d) => {
135
129
  const {
136
130
  icon: a,
137
131
  items: i,
@@ -170,8 +164,8 @@ const E = p.div`
170
164
  /* @__PURE__ */ r("span", { children: n })
171
165
  ] }) }),
172
166
  /* @__PURE__ */ r(E, { className: "products-banner", children: /* @__PURE__ */ r("img", { src: g }) }),
173
- /* @__PURE__ */ r(B, { limit: o, children: /* @__PURE__ */ r(
174
- F,
167
+ /* @__PURE__ */ r(R, { limit: o, children: /* @__PURE__ */ r(
168
+ _,
175
169
  {
176
170
  isLoading: P,
177
171
  limit: o,
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),p=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./utils-CZynEOC_.cjs"),C=require("./consts-goSZX3xP.cjs"),L=require("./motion-B_VPZaJq.cjs"),o=require("./index-BPVoEhTF.cjs"),W=require("./Icon.cjs"),Q=require("./Badge.cjs"),B=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),M=require("./IconButton.cjs"),V=require("./useDetectMobile-zkbzoOGV.cjs"),Y=d.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),p=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./utils-CZynEOC_.cjs"),C=require("./consts-goSZX3xP.cjs"),L=require("./motion-B_VPZaJq.cjs"),n=require("./index-BPVoEhTF.cjs"),W=require("./Icon.cjs"),Q=require("./Badge.cjs"),B=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),M=require("./IconButton.cjs"),V=require("./useDetectMobile-zkbzoOGV.cjs"),Y=d.styled.div`
2
2
  cursor: pointer;
3
3
  display: flex;
4
4
  gap: 1rem;
@@ -63,10 +63,7 @@
63
63
  font-weight: 600;
64
64
  font-size: 1.375rem;
65
65
  transition: var(--transition, all 0.3s ease);
66
- &:hover {
67
- color: var(--primary-500, #f59e0b);
68
- font-size: 1.4rem;
69
- }
66
+
70
67
  }
71
68
 
72
69
  & .text-block-wrapper {
@@ -105,12 +102,12 @@
105
102
  gap: 0.25rem;
106
103
  }
107
104
  }
108
- `,te={"#ADE3EB":"#76D0DB","#DDD6FE":"#C4B5FD","#FDE68A":"#FCD34D","#A7F3D0":"#6EE7B7","#BADFFF":"#87C6FA","#FECDD3":"#FDA4AF","#EFE2CF":"#EAD2AF","#DDDFE4":"#C4C8CF","#E7E5E4":"#D6D3D1","#FED7AA":"#FDBA74",default:"#C4C8CF"},U=(e=!1,a=!1,n=!1)=>`
105
+ `,te={"#ADE3EB":"#76D0DB","#DDD6FE":"#C4B5FD","#FDE68A":"#FCD34D","#A7F3D0":"#6EE7B7","#BADFFF":"#87C6FA","#FECDD3":"#FDA4AF","#EFE2CF":"#EAD2AF","#DDDFE4":"#C4C8CF","#E7E5E4":"#D6D3D1","#FED7AA":"#FDBA74",default:"#C4C8CF"},U=(e=!1,a=!1,o=!1)=>`
109
106
  display: flex;
110
107
  ${a?"flex-wrap: wrap;":""}
111
108
  ${a?"":"flex-wrap: nowrap;"}
112
109
  ${e?"align-items: center;":""}
113
- ${n?"justify-content: center;":""}
110
+ ${o?"justify-content: center;":""}
114
111
  `,ae=d.styled(L.motion.div)`
115
112
  text-decoration: none;
116
113
  ${e=>e.hasPermission===!0&&"cursor: pointer"};
@@ -191,9 +188,9 @@
191
188
  ${e=>e.alignToLeft===!0?"left: 0.5rem;":"right: 0.5rem;"}
192
189
  display: flex;
193
190
  gap: 0.25rem;
194
- `,oe=e=>`var(--${e}-700)`,ne=d.styled.div`
191
+ `,ne=e=>`var(--${e}-700)`,oe=d.styled.div`
195
192
  border-radius: ${e=>b.getBorderRadiusValueWithUnits(e.theme,e.borderRadius||"slight")};
196
- background-color: ${e=>oe(e==null?void 0:e.color)};
193
+ background-color: ${e=>ne(e==null?void 0:e.color)};
197
194
  color: white;
198
195
  height: 1.5rem;
199
196
  min-width: 1.5rem;
@@ -207,7 +204,7 @@
207
204
  & i {
208
205
  font-size: 0.813rem;
209
206
  }
210
- `,X=e=>{const{uuid:a,hasPermission:n=!0,isUser:h,image:u,name:g,notifications:y=0,color:c="primary",size:v="large",style:i,disabled:D,onClick:l=()=>{},isActive:_,className:f,themeData:x}=e,$={theme:B.useTheme(),color:c,size:v,style:i,disabled:D};return p.createElement(ae,{onClick:j=>{j.stopPropagation(),n===!0&&(l==null||l())},...$,key:g,className:`profile-item ${f}`,hasPermission:n,isActive:_,themeColor:(x==null?void 0:x.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:u}),t.jsx("div",{className:"name",children:g}),y>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(Q,{className:"badge",color:"danger",size:"small",children:y>99?"99+":y})}))};X.propTypes={id:o.PropTypes.any,isUserProfile:o.PropTypes.bool,themeColor:o.PropTypes.string,image:o.PropTypes.any,name:o.PropTypes.string,notifications:o.PropTypes.number,style:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:o.PropTypes.oneOf(["large"]),onSelect:o.PropTypes.func,hasPermission:o.PropTypes.bool};const O=(e,a)=>{if(!e||!a)return null;let n=Math.floor((e==null?void 0:e.getTime())-(a==null?void 0:a.getTime())),h=1e3*60*60*24;return Math.ceil(n/h)},Z=p.forwardRef((e,a)=>{const n=B.useTheme(),{uuid:h,shopUuid:u,title:g="",description:y,badges:c,coverPhoto:v,onSelect:i,status:D,startDate:l,endDate:_,salesPackages:f,shopName:x,shopImage:w,className:$,onSelectCard:j=()=>{},onSelectShop:T=()=>{},campaignSingleText:P,salesCampaignTypes:r=[],startsInPrefixTextPlural:S,startsinSuffixTextPlural:k,startsInPrefixTextSingular:I,startsinSuffixTextSingular:s,themeData:m,...H}=e,J=l?new Date(l)<=new Date:!1;O(_?new Date(_):null,l?new Date(l):null);const N=O(l?new Date(l):null,new Date);return t.jsxs(Y,{ref:a,theme:n,className:$,onClick:j,...H,children:[t.jsxs(ee,{theme:n,onClick:()=>i==null?void 0:i(),children:[t.jsx("img",{src:v}),t.jsx(se,{children:f==null?void 0:f.map((z,K)=>{var R,A;return t.jsx(ne,{color:(R=r==null?void 0:r.find(F=>F.value===z))==null?void 0:R.color,theme:n,children:t.jsx(W,{icon:(A=r==null?void 0:r.find(F=>F.value===z))==null?void 0:A.icon})},`package__${K}`)})})]}),t.jsxs(re,{theme:n,children:[t.jsxs("div",{className:"text-block-wrapper",children:[t.jsxs("div",{className:"title-block-wrapper",children:[t.jsx("div",{className:"campaign-title",children:P}),t.jsx("div",{className:"campaign-title-text",children:g}),t.jsx("div",{className:"timestamp-text",children:J?"":N===1?`${I} ${N} ${s}`:`${S} ${N} ${k}`})]}),t.jsx("div",{children:y})]}),t.jsx(X,{hasPermission:!0,image:t.jsx("img",{src:w,className:`${w?"":"no-image"}`}),themeData:m,isActive:!0,isUser:!1,name:x,onClick:()=>T(u)})]})]})});Z.propTypes={title:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),numberOfListings:o.PropTypes.number,dropdown:o.PropTypes.any,color:o.PropTypes.string};d.styled.div`
207
+ `,X=e=>{const{uuid:a,hasPermission:o=!0,isUser:h,image:u,name:g,notifications:y=0,color:c="primary",size:v="large",style:i,disabled:D,onClick:l=()=>{},isActive:_,className:f,themeData:x}=e,$={theme:B.useTheme(),color:c,size:v,style:i,disabled:D};return p.createElement(ae,{onClick:j=>{j.stopPropagation(),o===!0&&(l==null||l())},...$,key:g,className:`profile-item ${f}`,hasPermission:o,isActive:_,themeColor:(x==null?void 0:x.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:u}),t.jsx("div",{className:"name",children:g}),y>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(Q,{className:"badge",color:"danger",size:"small",children:y>99?"99+":y})}))};X.propTypes={id:n.PropTypes.any,isUserProfile:n.PropTypes.bool,themeColor:n.PropTypes.string,image:n.PropTypes.any,name:n.PropTypes.string,notifications:n.PropTypes.number,style:n.PropTypes.object,className:n.PropTypes.string,color:n.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:n.PropTypes.oneOf(["large"]),onSelect:n.PropTypes.func,hasPermission:n.PropTypes.bool};const O=(e,a)=>{if(!e||!a)return null;let o=Math.floor((e==null?void 0:e.getTime())-(a==null?void 0:a.getTime())),h=1e3*60*60*24;return Math.ceil(o/h)},Z=p.forwardRef((e,a)=>{const o=B.useTheme(),{uuid:h,shopUuid:u,title:g="",description:y,badges:c,coverPhoto:v,onSelect:i,status:D,startDate:l,endDate:_,salesPackages:f,shopName:x,shopImage:w,className:$,onSelectCard:j=()=>{},onSelectShop:T=()=>{},campaignSingleText:P,salesCampaignTypes:r=[],startsInPrefixTextPlural:S,startsinSuffixTextPlural:k,startsInPrefixTextSingular:I,startsinSuffixTextSingular:s,themeData:m,...H}=e,J=l?new Date(l)<=new Date:!1;O(_?new Date(_):null,l?new Date(l):null);const N=O(l?new Date(l):null,new Date);return t.jsxs(Y,{ref:a,theme:o,className:$,onClick:j,...H,children:[t.jsxs(ee,{theme:o,onClick:()=>i==null?void 0:i(),children:[t.jsx("img",{src:v}),t.jsx(se,{children:f==null?void 0:f.map((R,K)=>{var z,A;return t.jsx(oe,{color:(z=r==null?void 0:r.find(F=>F.value===R))==null?void 0:z.color,theme:o,children:t.jsx(W,{icon:(A=r==null?void 0:r.find(F=>F.value===R))==null?void 0:A.icon})},`package__${K}`)})})]}),t.jsxs(re,{theme:o,children:[t.jsxs("div",{className:"text-block-wrapper",children:[t.jsxs("div",{className:"title-block-wrapper",children:[t.jsx("div",{className:"campaign-title",children:P}),t.jsx("div",{className:"campaign-title-text",children:g}),t.jsx("div",{className:"timestamp-text",children:J?"":N===1?`${I} ${N} ${s}`:`${S} ${N} ${k}`})]}),t.jsx("div",{children:y})]}),t.jsx(X,{hasPermission:!0,image:t.jsx("img",{src:w,className:`${w?"":"no-image"}`}),themeData:m,isActive:!0,isUser:!1,name:x,onClick:()=>T(u)})]})]})});Z.propTypes={title:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.element]),numberOfListings:n.PropTypes.number,dropdown:n.PropTypes.any,color:n.PropTypes.string};d.styled.div`
211
208
  display: flex;
212
209
  flex-direction: column;
213
210
  gap: 1.5rem;
@@ -306,7 +303,7 @@
306
303
  `,ce=d.styled.div`
307
304
  display: flex;
308
305
  gap: 1.5rem;
309
- `,de=p.forwardRef(({},e)=>{const a=B.useTheme();return t.jsxs(le,{ref:e,theme:a,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(q,{theme:a,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(ie,{theme:a,children:[t.jsx(E,{heightCoeff:.75,theme:a,width:"35%"}),t.jsx(E,{heightCoeff:1.25,theme:a}),t.jsx(E,{heightCoeff:3,theme:a})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(q,{theme:a,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(E,{theme:a,width:"75%"})]})]})]})}),ge=({itemsCount:e=5,keyPrefix:a})=>t.jsx(ce,{children:Array.from({length:e},(n,h)=>t.jsx(de,{},`${a}-skeleton-campaign-card-${h}`))}),me=({children:e,fallbackComponent:a=t.jsx(t.Fragment,{}),isLoading:n=!1,itemsCount:h=5,keyPrefix:u})=>t.jsx(p.Suspense,{fallback:a,children:n===!0?t.jsx(ge,{itemsCount:h,keyPrefix:u}):e}),pe=d.styled.div`
306
+ `,de=p.forwardRef(({},e)=>{const a=B.useTheme();return t.jsxs(le,{ref:e,theme:a,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(q,{theme:a,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(ie,{theme:a,children:[t.jsx(E,{heightCoeff:.75,theme:a,width:"35%"}),t.jsx(E,{heightCoeff:1.25,theme:a}),t.jsx(E,{heightCoeff:3,theme:a})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(q,{theme:a,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(E,{theme:a,width:"75%"})]})]})]})}),ge=({itemsCount:e=5,keyPrefix:a})=>t.jsx(ce,{children:Array.from({length:e},(o,h)=>t.jsx(de,{},`${a}-skeleton-campaign-card-${h}`))}),me=({children:e,fallbackComponent:a=t.jsx(t.Fragment,{}),isLoading:o=!1,itemsCount:h=5,keyPrefix:u})=>t.jsx(p.Suspense,{fallback:a,children:o===!0?t.jsx(ge,{itemsCount:h,keyPrefix:u}):e}),pe=d.styled.div`
310
307
  margin: 0 auto;
311
308
  display: flex;
312
309
  flex-direction: column;
@@ -355,4 +352,4 @@
355
352
  @media (max-width: ${C.MOBILE_SIZE_PX+"px"}) {
356
353
  grid-template-columns: repeat(${e=>e==null?void 0:e.numOfColumnsForMobile}, 1fr);
357
354
  }
358
- `,G=p.forwardRef(({icon:e,title:a,numOfSlides:n=2,numOfSlidesForMobile:h=1,showNavigation:u=!0,children:g},y)=>{const[c,v]=p.useState(0),[i,D]=p.useState(1),[l,_]=p.useState(null),[f,x]=p.useState(null),w=V.useDetectMobile(),$=50,j=(g==null?void 0:g.length)??1;p.useEffect(()=>{const s=()=>{D(w?h:n)};return window.addEventListener("resize",s),s(),()=>window.removeEventListener("resize",s)},[]);const T=g==null?void 0:g.slice(c,c+i),P=s=>{var m;(m=s==null?void 0:s.target)==null||m.blur(),c+i<j&&v(c+i)},r=s=>{var m;(m=s==null?void 0:s.target)==null||m.blur(),c-i>=0&&v(c-i)},S=s=>{var m;x(null),_((m=s==null?void 0:s.targetTouches["0"])==null?void 0:m.clientX)},k=s=>{var m;x((m=s==null?void 0:s.targetTouches["0"])==null?void 0:m.clientX)},I=()=>{if(!l||!f)return;const s=l-f;s>$&&P(),s<-$&&r()};return t.jsxs(pe,{ref:y,...w?{onTouchStart:S,onTouchMove:k,onTouchEnd:I}:{},children:[t.jsx("div",{className:"scrollable-section__header",children:t.jsxs("div",{className:"scrollable-section__title",children:[b.isDefinedNotEmptyString(e)&&t.jsx(W,{icon:e,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),b.isDefinedNotEmptyString(a)&&t.jsx("div",{className:"title__text",children:a})]})}),t.jsx(he,{numOfColumns:n,numOfColumnsForMobile:h,animate:{x:0,opacity:1},initial:{x:10,opacity:0},children:T},`scrollable-section__content-${c}`),u&&j>i&&!w&&t.jsxs("div",{className:"scrollable-section__navigation",children:[t.jsx(M,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:c===0,onClick:r}),t.jsx(M,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:c+i>=j,onClick:P})]})]})});G.propTypes={icon:o.PropTypes.string,title:o.PropTypes.string,numOfSlides:o.PropTypes.number,numOfSlidesForMobile:o.PropTypes.number,showNavigation:o.PropTypes.bool};const ue=p.memo(Z),fe=p.forwardRef(({sellerType:e="Shop",items:a=[],title:n,icon:h,isLoading:u,onSelectCard:g=()=>{},onSelectShop:y=()=>{},getImage:c=()=>{},campaignSingleText:v,salesCampaignTypes:i=[],startsInPrefixTextPlural:D,startsinSuffixTextPlural:l,startsInPrefixTextSingular:_,startsinSuffixTextSingular:f,numOfSlides:x=2,numOfSlidesForMobile:w=1,showNavigation:$=!0},j)=>{const T=V.useDetectMobile(),P=p.useMemo(()=>a==null?void 0:a.map((r,S)=>t.jsx(ue,{className:"campaign-item",coverPhoto:c(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,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:()=>y(r==null?void 0:r.shopUuid),campaignSingleText:v,salesCampaignTypes:i,startsInPrefixTextPlural:D,startsinSuffixTextPlural:l,startsInPrefixTextSingular:_,startsinSuffixTextSingular:f,themeData:r==null?void 0:r.themeData},`campaign__item__${S}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}`)),[a]);return t.jsx(me,{isLoading:u,itemsCount:T?1:2,keyPrefix:"sales-camp",children:t.jsx(G,{icon:h,title:n,numOfSlides:x,numOfSlidesForMobile:w,showNavigation:$,children:P})})});module.exports=fe;
355
+ `,G=p.forwardRef(({icon:e,title:a,numOfSlides:o=2,numOfSlidesForMobile:h=1,showNavigation:u=!0,children:g},y)=>{const[c,v]=p.useState(0),[i,D]=p.useState(1),[l,_]=p.useState(null),[f,x]=p.useState(null),w=V.useDetectMobile(),$=50,j=(g==null?void 0:g.length)??1;p.useEffect(()=>{const s=()=>{D(w?h:o)};return window.addEventListener("resize",s),s(),()=>window.removeEventListener("resize",s)},[]);const T=g==null?void 0:g.slice(c,c+i),P=s=>{var m;(m=s==null?void 0:s.target)==null||m.blur(),c+i<j&&v(c+i)},r=s=>{var m;(m=s==null?void 0:s.target)==null||m.blur(),c-i>=0&&v(c-i)},S=s=>{var m;x(null),_((m=s==null?void 0:s.targetTouches["0"])==null?void 0:m.clientX)},k=s=>{var m;x((m=s==null?void 0:s.targetTouches["0"])==null?void 0:m.clientX)},I=()=>{if(!l||!f)return;const s=l-f;s>$&&P(),s<-$&&r()};return t.jsxs(pe,{ref:y,...w?{onTouchStart:S,onTouchMove:k,onTouchEnd:I}:{},children:[t.jsx("div",{className:"scrollable-section__header",children:t.jsxs("div",{className:"scrollable-section__title",children:[b.isDefinedNotEmptyString(e)&&t.jsx(W,{icon:e,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),b.isDefinedNotEmptyString(a)&&t.jsx("div",{className:"title__text",children:a})]})}),t.jsx(he,{numOfColumns:o,numOfColumnsForMobile:h,animate:{x:0,opacity:1},initial:{x:10,opacity:0},children:T},`scrollable-section__content-${c}`),u&&j>i&&!w&&t.jsxs("div",{className:"scrollable-section__navigation",children:[t.jsx(M,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:c===0,onClick:r}),t.jsx(M,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:c+i>=j,onClick:P})]})]})});G.propTypes={icon:n.PropTypes.string,title:n.PropTypes.string,numOfSlides:n.PropTypes.number,numOfSlidesForMobile:n.PropTypes.number,showNavigation:n.PropTypes.bool};const ue=p.memo(Z),fe=p.forwardRef(({sellerType:e="Shop",items:a=[],title:o,icon:h,isLoading:u,onSelectCard:g=()=>{},onSelectShop:y=()=>{},getImage:c=()=>{},campaignSingleText:v,salesCampaignTypes:i=[],startsInPrefixTextPlural:D,startsinSuffixTextPlural:l,startsInPrefixTextSingular:_,startsinSuffixTextSingular:f,numOfSlides:x=2,numOfSlidesForMobile:w=1,showNavigation:$=!0},j)=>{const T=V.useDetectMobile(),P=p.useMemo(()=>a==null?void 0:a.map((r,S)=>t.jsx(ue,{className:"campaign-item",coverPhoto:c(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,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:()=>y(r==null?void 0:r.shopUuid),campaignSingleText:v,salesCampaignTypes:i,startsInPrefixTextPlural:D,startsinSuffixTextPlural:l,startsInPrefixTextSingular:_,startsinSuffixTextSingular:f,themeData:r==null?void 0:r.themeData},`campaign__item__${S}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}`)),[a]);return t.jsx(me,{isLoading:u,itemsCount:T?1:2,keyPrefix:"sales-camp",children:t.jsx(G,{icon:h,title:o,numOfSlides:x,numOfSlidesForMobile:w,showNavigation:$,children:P})})});module.exports=fe;