@lanaco/lnc-react-ui 4.0.91 → 4.0.93

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 r=require("react/jsx-runtime"),o=require("react"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),p=require("./utils-BWzf4vLl.cjs"),q=require("./Icon.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),R=c.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),o=require("react"),l=require("./utils-BWzf4vLl.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),M=require("./Icon.cjs"),R=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),z=m.styled.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: fit-content;
@@ -37,7 +37,7 @@
37
37
  font-style: normal;
38
38
  font-weight: 500;
39
39
  line-height: 1.5rem;
40
- ${p.truncateTextInRows(2)}
40
+ ${l.truncateTextInRows(2)}
41
41
  }
42
42
 
43
43
  & .wrapper__description {
@@ -47,15 +47,15 @@
47
47
  font-weight: 400;
48
48
  line-height: 1rem;
49
49
  letter-spacing: 0.025rem;
50
- ${p.truncateTextInRows(2)}
50
+ ${l.truncateTextInRows(2)}
51
51
  }
52
52
  }
53
- `,z=c.styled.div`
53
+ `,C=m.styled.div`
54
54
  width: 100%;
55
55
  height: 11.625rem;
56
56
  border-radius: 0.75rem;
57
- background: ${p.linearGradientAnimation("-90deg")};
58
- `,C=c.styled.div`
57
+ background: ${l.linearGradientAnimation("-90deg")};
58
+ `,L=m.styled.div`
59
59
  display: flex;
60
60
  flex-direction: column;
61
61
  align-items: center;
@@ -101,7 +101,7 @@
101
101
  }
102
102
  }
103
103
 
104
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
104
+ @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
105
105
  flex-direction: row;
106
106
  align-items: center;
107
107
  gap: 0.25rem;
@@ -128,17 +128,17 @@
128
128
  white-space: nowrap;
129
129
  }
130
130
  }
131
- `,L=c.styled.div`
131
+ `,S=m.styled.div`
132
132
  width: 7.5rem;
133
133
  width: 7.5rem;
134
134
  border-radius: 999px;
135
- background: ${p.linearGradientAnimation("-90deg")};
135
+ background: ${l.linearGradientAnimation("-90deg")};
136
136
 
137
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
137
+ @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
138
138
  width: 7.5rem;
139
139
  height: 2.5rem;
140
140
  }
141
- `,F=o.forwardRef(({},t)=>r.jsx(L,{})),O=o.forwardRef(({text:t,isActive:s=!1,icon:i,onSelectCard:a=()=>{}},m)=>r.jsxs(C,{className:s?"active":"",onClick:a,children:[r.jsx(q,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),S=o.forwardRef(({image:t,imageComponent:s,title:i,description:a,className:m,onSelectCard:w=()=>{}},b)=>{const{theme:g}=M.useTheme();return r.jsxs(R,{theme:g,className:m,onClick:w,children:[p.isDefined(s)?s:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),a&&r.jsx("div",{className:"wrapper__description",children:a})]})]})}),A=o.forwardRef(({},t)=>r.jsxs(z,{children:[r.jsx("div",{className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsx("div",{className:"wrapper__title"}),r.jsx("div",{className:"wrapper__description"})]})]})),T=c.styled.div`
141
+ `,F=o.forwardRef(({},t)=>r.jsx(S,{})),O=o.forwardRef(({text:t,isActive:s=!1,icon:n,onSelectCard:i=()=>{}},f)=>r.jsxs(L,{className:s?"active":"",onClick:i,children:[r.jsx(M,{icon:n,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),A=o.forwardRef(({image:t,imageComponent:s,title:n,description:i,className:f,onSelectCard:g=()=>{}},j)=>{const{theme:x}=R.useTheme();return r.jsxs(z,{theme:x,className:f,onClick:g,children:[l.isDefined(s)?s:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[n&&r.jsx("div",{className:"wrapper__title",children:n}),i&&r.jsx("div",{className:"wrapper__description",children:i})]})]})}),T=o.forwardRef(({},t)=>r.jsxs(C,{children:[r.jsx("div",{className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsx("div",{className:"wrapper__title"}),r.jsx("div",{className:"wrapper__description"})]})]})),W=m.styled.div`
142
142
  display: flex;
143
143
  flex-direction: column;
144
144
  align-items: center;
@@ -191,7 +191,7 @@
191
191
  }
192
192
  }
193
193
 
194
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
194
+ @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
195
195
  & .wrapper__tags {
196
196
  display: flex;
197
197
  overflow-x: scroll;
@@ -203,4 +203,4 @@
203
203
  grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
204
204
  }
205
205
  }
206
- `,W=o.forwardRef(({title:t,subtitle:s,tags:i=[],items:a=[],limitTags:m=5,limitTagsForMobile:w=5,limit:b=3,limitForMobile:g=2,selectedTag:k,onSelectTag:x=()=>{},onSelectCard:u=()=>{}},N)=>{var j,$;return o.useLayoutEffect(()=>{const e=()=>{const l=document.querySelector(".wrapper__cards"),d=l.querySelectorAll(".wrapper__card");d.forEach(h=>{const I=h.getBoundingClientRect().height,E=Math.ceil((I+10)/20);h.style.gridRowEnd=`span ${E}`});const y=d==null?void 0:d[d.length-1];if(y){const h=y.offsetTop+y.offsetHeight;l.style.height=`${h}px`}},f=document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__image");let _=0;return f.length===0?e():(f.forEach(l=>{l.complete?_++:l.addEventListener("load",()=>{_++,_===f.length&&e()})}),_===f.length&&e()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),r.jsxs(T,{ref:N,limitTags:m,limitTagsForMobile:w,limitCards:b,limitCardsForMobile:g,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.length)>0?i==null?void 0:i.map((e,n)=>r.jsx(O,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===k,onSelectCard:()=>x==null?void 0:x(e)},`field-of-interests-masonry-tag__${n+1}`)):(j=Array.from("12345"))==null?void 0:j.map((e,n)=>r.jsx(F,{},`field-of-interests-masonry-tag-skeleton__${n+1}`))}),r.jsx("div",{className:"wrapper__cards",children:a&&(a==null?void 0:a.length)>0?a==null?void 0:a.map((e,n)=>r.jsx(S,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>u==null?void 0:u(e),className:"wrapper__card"},`field-of-interests-with-tags-card__${n+1}`)):($=Array.from("12345"))==null?void 0:$.map((e,n)=>r.jsx(A,{},`field-of-interests-with-tags-card-skeleton__${n+1}`))})]})});module.exports=W;
206
+ `,B=o.forwardRef(({title:t,subtitle:s,tags:n=[],items:i=[],limitTags:f=5,limitTagsForMobile:g=5,limit:j=3,limitForMobile:x=2,selectedTag:E,onSelectTag:u=()=>{},onSelectCard:y=()=>{},className:d},I)=>{var $,k;return o.useLayoutEffect(()=>{if(!l.isDefinedNotEmptyString(d))return;const e=()=>{const p=document.querySelector(`.${d} .wrapper__cards`),c=p.querySelectorAll(".wrapper__card");c.forEach(w=>{const N=w.getBoundingClientRect().height,q=Math.ceil((N+10)/20);w.style.gridRowEnd=`span ${q}`});const v=c==null?void 0:c[c.length-1];if(v){const w=v.offsetTop+v.offsetHeight;p.style.height=`${w}px`}},_=document.querySelector(`.${d} .wrapper__cards`).querySelectorAll(".wrapper__image");let h=0;return _.length===0?e():(_.forEach(p=>{p.complete?h++:p.addEventListener("load",()=>{h++,h===_.length&&e()})}),h===_.length&&e()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[d,i]),r.jsxs(W,{ref:I,limitTags:f,limitTagsForMobile:g,limitCards:j,limitCardsForMobile:x,className:d,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx("div",{className:"wrapper__tags",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,a)=>r.jsx(O,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===E,onSelectCard:()=>u==null?void 0:u(e)},`field-of-interests-masonry-tag__${a+1}`)):($=Array.from("12345"))==null?void 0:$.map((e,a)=>r.jsx(F,{},`field-of-interests-masonry-tag-skeleton__${a+1}`))}),r.jsx("div",{className:"wrapper__cards",children:i&&(i==null?void 0:i.length)>0?i==null?void 0:i.map((e,a)=>r.jsx(A,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>y==null?void 0:y(e),className:"wrapper__card"},`field-of-interests-with-tags-card__${a+1}`)):(k=Array.from("12345"))==null?void 0:k.map((e,a)=>r.jsx(T,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=B;
@@ -1,11 +1,11 @@
1
- import { jsx as i, jsxs as s } from "react/jsx-runtime";
2
- import { forwardRef as d, useLayoutEffect as F } from "react";
3
- import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as y } from "./consts-BuFChS64.js";
5
- import { p as N, o as z, l as L } from "./utils-BXCGNjIy.js";
6
- import A from "./Icon.js";
7
- import { u as O } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- const W = m.div`
1
+ import { jsx as i, jsxs as l } from "react/jsx-runtime";
2
+ import { forwardRef as m, useLayoutEffect as L } from "react";
3
+ import { p as z, o as E, l as A, k as O } from "./utils-BXCGNjIy.js";
4
+ import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
+ import { M as b } from "./consts-BuFChS64.js";
6
+ import S from "./Icon.js";
7
+ import { u as W } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ const T = c.div`
9
9
  display: flex;
10
10
  width: 100%;
11
11
  height: fit-content;
@@ -44,7 +44,7 @@ const W = m.div`
44
44
  font-style: normal;
45
45
  font-weight: 500;
46
46
  line-height: 1.5rem;
47
- ${N(2)}
47
+ ${z(2)}
48
48
  }
49
49
 
50
50
  & .wrapper__description {
@@ -54,15 +54,15 @@ const W = m.div`
54
54
  font-weight: 400;
55
55
  line-height: 1rem;
56
56
  letter-spacing: 0.025rem;
57
- ${N(2)}
57
+ ${z(2)}
58
58
  }
59
59
  }
60
- `, S = m.div`
60
+ `, j = c.div`
61
61
  width: 100%;
62
62
  height: 11.625rem;
63
63
  border-radius: 0.75rem;
64
- background: ${z("-90deg")};
65
- `, T = m.div`
64
+ background: ${E("-90deg")};
65
+ `, q = c.div`
66
66
  display: flex;
67
67
  flex-direction: column;
68
68
  align-items: center;
@@ -108,7 +108,7 @@ const W = m.div`
108
108
  }
109
109
  }
110
110
 
111
- @media (max-width: ${y + "px"}) {
111
+ @media (max-width: ${b + "px"}) {
112
112
  flex-direction: row;
113
113
  align-items: center;
114
114
  gap: 0.25rem;
@@ -135,48 +135,48 @@ const W = m.div`
135
135
  white-space: nowrap;
136
136
  }
137
137
  }
138
- `, j = m.div`
138
+ `, R = c.div`
139
139
  width: 7.5rem;
140
140
  width: 7.5rem;
141
141
  border-radius: 999px;
142
- background: ${z("-90deg")};
142
+ background: ${E("-90deg")};
143
143
 
144
- @media (max-width: ${y + "px"}) {
144
+ @media (max-width: ${b + "px"}) {
145
145
  width: 7.5rem;
146
146
  height: 2.5rem;
147
147
  }
148
- `, q = d(({}, r) => /* @__PURE__ */ i(j, {})), R = d(
149
- ({ text: r, isActive: o = !1, icon: t, onSelectCard: a = () => {
150
- } }, c) => /* @__PURE__ */ s(T, { className: o ? "active" : "", onClick: a, children: [
151
- /* @__PURE__ */ i(A, { icon: t, className: "wrapper__icon" }),
148
+ `, B = m(({}, r) => /* @__PURE__ */ i(R, {})), D = m(
149
+ ({ text: r, isActive: o = !1, icon: a, onSelectCard: t = () => {
150
+ } }, f) => /* @__PURE__ */ l(q, { className: o ? "active" : "", onClick: t, children: [
151
+ /* @__PURE__ */ i(S, { icon: a, className: "wrapper__icon" }),
152
152
  /* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
153
153
  ] })
154
- ), B = d(
154
+ ), G = m(
155
155
  ({
156
156
  image: r,
157
157
  imageComponent: o,
158
- title: t,
159
- description: a,
160
- className: c,
161
- onSelectCard: g = () => {
158
+ title: a,
159
+ description: t,
160
+ className: f,
161
+ onSelectCard: w = () => {
162
162
  }
163
- }, b) => {
164
- const { theme: w } = O();
165
- return /* @__PURE__ */ s(W, { theme: w, className: c, onClick: g, children: [
166
- L(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
167
- /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
168
- t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
169
- a && /* @__PURE__ */ i("div", { className: "wrapper__description", children: a })
163
+ }, $) => {
164
+ const { theme: u } = W();
165
+ return /* @__PURE__ */ l(T, { theme: u, className: f, onClick: w, children: [
166
+ A(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
167
+ /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
168
+ a && /* @__PURE__ */ i("div", { className: "wrapper__title", children: a }),
169
+ t && /* @__PURE__ */ i("div", { className: "wrapper__description", children: t })
170
170
  ] })
171
171
  ] });
172
172
  }
173
- ), G = d(({}, r) => /* @__PURE__ */ s(S, { children: [
173
+ ), H = m(({}, r) => /* @__PURE__ */ l(j, { children: [
174
174
  /* @__PURE__ */ i("div", { className: "wrapper__image" }),
175
- /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
175
+ /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
176
176
  /* @__PURE__ */ i("div", { className: "wrapper__title" }),
177
177
  /* @__PURE__ */ i("div", { className: "wrapper__description" })
178
178
  ] })
179
- ] })), H = m.div`
179
+ ] })), P = c.div`
180
180
  display: flex;
181
181
  flex-direction: column;
182
182
  align-items: center;
@@ -229,7 +229,7 @@ const W = m.div`
229
229
  }
230
230
  }
231
231
 
232
- @media (max-width: ${y + "px"}) {
232
+ @media (max-width: ${b + "px"}) {
233
233
  & .wrapper__tags {
234
234
  display: flex;
235
235
  overflow-x: scroll;
@@ -241,84 +241,88 @@ const W = m.div`
241
241
  grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCardsForMobile}, minmax(0, 1fr))`};
242
242
  }
243
243
  }
244
- `, U = d(
244
+ `, Y = m(
245
245
  ({
246
246
  title: r,
247
247
  subtitle: o,
248
- tags: t = [],
249
- items: a = [],
250
- limitTags: c = 5,
251
- limitTagsForMobile: g = 5,
252
- limit: b = 3,
253
- limitForMobile: w = 2,
248
+ tags: a = [],
249
+ items: t = [],
250
+ limitTags: f = 5,
251
+ limitTagsForMobile: w = 5,
252
+ limit: $ = 3,
253
+ limitForMobile: u = 2,
254
254
  selectedTag: I,
255
- onSelectTag: u = () => {
255
+ onSelectTag: x = () => {
256
256
  },
257
- onSelectCard: x = () => {
258
- }
257
+ onSelectCard: v = () => {
258
+ },
259
+ className: s
259
260
  }, M) => {
260
- var $, k;
261
- return F(() => {
261
+ var k, N;
262
+ return L(() => {
263
+ if (!O(s))
264
+ return;
262
265
  const e = () => {
263
- const l = document.querySelector(".wrapper__cards"), p = l.querySelectorAll(".wrapper__card");
264
- p.forEach((_) => {
265
- const C = _.getBoundingClientRect().height, E = Math.ceil((C + 10) / 20);
266
- _.style.gridRowEnd = `span ${E}`;
266
+ const p = document.querySelector(`.${s} .wrapper__cards`), d = p.querySelectorAll(".wrapper__card");
267
+ d.forEach((g) => {
268
+ const C = g.getBoundingClientRect().height, F = Math.ceil((C + 10) / 20);
269
+ g.style.gridRowEnd = `span ${F}`;
267
270
  });
268
- const v = p == null ? void 0 : p[p.length - 1];
269
- if (v) {
270
- const _ = v.offsetTop + v.offsetHeight;
271
- l.style.height = `${_}px`;
271
+ const y = d == null ? void 0 : d[d.length - 1];
272
+ if (y) {
273
+ const g = y.offsetTop + y.offsetHeight;
274
+ p.style.height = `${g}px`;
272
275
  }
273
- }, f = document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__image");
274
- let h = 0;
275
- return f.length === 0 ? e() : (f.forEach((l) => {
276
- l.complete ? h++ : l.addEventListener("load", () => {
277
- h++, h === f.length && e();
276
+ }, h = document.querySelector(`.${s} .wrapper__cards`).querySelectorAll(".wrapper__image");
277
+ let _ = 0;
278
+ return h.length === 0 ? e() : (h.forEach((p) => {
279
+ p.complete ? _++ : p.addEventListener("load", () => {
280
+ _++, _ === h.length && e();
278
281
  });
279
- }), h === f.length && e()), window.addEventListener("resize", e), () => {
282
+ }), _ === h.length && e()), window.addEventListener("resize", e), () => {
280
283
  window.removeEventListener("resize", e);
281
284
  };
282
- }, []), /* @__PURE__ */ s(
283
- H,
285
+ }, [s, t]), /* @__PURE__ */ l(
286
+ P,
284
287
  {
285
288
  ref: M,
286
- limitTags: c,
287
- limitTagsForMobile: g,
288
- limitCards: b,
289
- limitCardsForMobile: w,
289
+ limitTags: f,
290
+ limitTagsForMobile: w,
291
+ limitCards: $,
292
+ limitCardsForMobile: u,
293
+ className: s,
290
294
  children: [
291
- /* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
295
+ /* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
292
296
  r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
293
297
  o && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: o })
294
298
  ] }),
295
- /* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ i(
296
- R,
299
+ /* @__PURE__ */ i("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.length) > 0 ? a == null ? void 0 : a.map((e, n) => /* @__PURE__ */ i(
300
+ D,
297
301
  {
298
302
  icon: e == null ? void 0 : e.icon,
299
303
  text: e == null ? void 0 : e.title,
300
304
  isActive: (e == null ? void 0 : e.code) === I,
301
- onSelectCard: () => u == null ? void 0 : u(e)
305
+ onSelectCard: () => x == null ? void 0 : x(e)
302
306
  },
303
307
  `field-of-interests-masonry-tag__${n + 1}`
304
- )) : ($ = Array.from("12345")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */ i(
305
- q,
308
+ )) : (k = Array.from("12345")) == null ? void 0 : k.map((e, n) => /* @__PURE__ */ i(
309
+ B,
306
310
  {},
307
311
  `field-of-interests-masonry-tag-skeleton__${n + 1}`
308
312
  )) }),
309
- /* @__PURE__ */ i("div", { className: "wrapper__cards", children: a && (a == null ? void 0 : a.length) > 0 ? a == null ? void 0 : a.map((e, n) => /* @__PURE__ */ i(
310
- B,
313
+ /* @__PURE__ */ i("div", { className: "wrapper__cards", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ i(
314
+ G,
311
315
  {
312
316
  image: e == null ? void 0 : e.image,
313
317
  imageComponent: e == null ? void 0 : e.imageComponent,
314
318
  title: e == null ? void 0 : e.title,
315
319
  description: e == null ? void 0 : e.description,
316
- onSelectCard: () => x == null ? void 0 : x(e),
320
+ onSelectCard: () => v == null ? void 0 : v(e),
317
321
  className: "wrapper__card"
318
322
  },
319
323
  `field-of-interests-with-tags-card__${n + 1}`
320
- )) : (k = Array.from("12345")) == null ? void 0 : k.map((e, n) => /* @__PURE__ */ i(
321
- G,
324
+ )) : (N = Array.from("12345")) == null ? void 0 : N.map((e, n) => /* @__PURE__ */ i(
325
+ H,
322
326
  {},
323
327
  `field-of-interests-with-tags-card-skeleton__${n + 1}`
324
328
  )) })
@@ -328,5 +332,5 @@ const W = m.div`
328
332
  }
329
333
  );
330
334
  export {
331
- U as default
335
+ Y as default
332
336
  };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),n=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./utils-BWzf4vLl.cjs"),E=require("./consts-goSZX3xP.cjs"),K=require("./motion-B_VPZaJq.cjs"),i=require("./index-BPVoEhTF.cjs"),Q=require("./Icon.cjs"),ee=require("./Badge.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),G=require("./useDetectMobile-zkbzoOGV.cjs"),re=require("./FlexBox.cjs"),q=require("./index-CHDRU86t.cjs"),z=require("./IconButton.cjs"),te=f.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),n=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./utils-BWzf4vLl.cjs"),E=require("./consts-goSZX3xP.cjs"),ee=require("./motion-B_VPZaJq.cjs"),i=require("./index-BPVoEhTF.cjs"),re=require("./Icon.cjs"),te=require("./Badge.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),X=require("./useDetectMobile-zkbzoOGV.cjs"),oe=require("./FlexBox.cjs"),V=require("./index-CHDRU86t.cjs"),z=require("./IconButton.cjs"),ie=u.styled.div`
2
2
  cursor: pointer;
3
3
  display: flex;
4
4
  gap: 1rem;
@@ -13,8 +13,8 @@
13
13
  border: none;
14
14
  border-radius: 0;
15
15
  }
16
- `,oe=f.styled.div`
17
- border-radius: ${e=>T.getBorderRadiusValueWithUnits(e.theme,"edged")};
16
+ `,se=u.styled.div`
17
+ border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,"edged")};
18
18
  height: 15rem;
19
19
  width: 15rem;
20
20
  min-width: 15rem;
@@ -42,7 +42,7 @@
42
42
  max-width: 100dvh;
43
43
  height: 23.438rem;
44
44
  }
45
- `,ie=f.styled.div`
45
+ `,ne=u.styled.div`
46
46
  flex: 1;
47
47
  display: flex;
48
48
  flex-direction: column;
@@ -105,13 +105,13 @@
105
105
  gap: 0.25rem;
106
106
  }
107
107
  }
108
- `,se={"#ADE3EB":"#76D0DB","#DDD6FE":"#C4B5FD","#FDE68A":"#FCD34D","#A7F3D0":"#6EE7B7","#BADFFF":"#87C6FA","#FECDD3":"#FDA4AF","#EFE2CF":"#EAD2AF","#DDDFE4":"#C4C8CF","#E7E5E4":"#D6D3D1","#FED7AA":"#FDBA74",default:"#C4C8CF"},V=(e=!1,o=!1,c=!1)=>`
108
+ `,ae={"#ADE3EB":"#76D0DB","#DDD6FE":"#C4B5FD","#FDE68A":"#FCD34D","#A7F3D0":"#6EE7B7","#BADFFF":"#87C6FA","#FECDD3":"#FDA4AF","#EFE2CF":"#EAD2AF","#DDDFE4":"#C4C8CF","#E7E5E4":"#D6D3D1","#FED7AA":"#FDBA74",default:"#C4C8CF"},H=(e=!1,o=!1,c=!1)=>`
109
109
  display: flex;
110
110
  ${o?"flex-wrap: wrap;":""}
111
111
  ${o?"":"flex-wrap: nowrap;"}
112
112
  ${e?"align-items: center;":""}
113
113
  ${c?"justify-content: center;":""}
114
- `,ne=f.styled(K.motion.div)`
114
+ `,le=u.styled(ee.motion.div)`
115
115
  text-decoration: none;
116
116
  ${e=>e.hasPermission===!0&&"cursor: pointer"};
117
117
 
@@ -128,22 +128,22 @@
128
128
  text-decoration: none;
129
129
  }
130
130
 
131
- ${V(!0)}
131
+ ${H(!0)}
132
132
  gap: 0.5rem;
133
133
  padding: 0.5rem;
134
134
  color: ${e=>e.isActive===!1?"var(--gray-900)":"var(--primary-600)"};
135
135
  font-weight: 500;
136
136
  font-size: 0.875rem;
137
137
  line-height: 1.25rem;
138
- border-radius: ${e=>T.getBorderRadiusValueWithUnits(e.theme,"slight")};
138
+ border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,"slight")};
139
139
  transition: all 0.25s ease;
140
140
 
141
141
  & .logo-wrapper {
142
- ${V(!0,!1,!0)}
142
+ ${H(!0,!1,!0)}
143
143
  flex-shrink: 0;
144
144
  border-radius: 999px;
145
145
  border: 3px solid
146
- ${e=>e.isActive===!1?"var(--gray-300, #c4c8cf)":se[e.themeColor]??"var(--gray-300, #c4c8cf)"};
146
+ ${e=>e.isActive===!1?"var(--gray-300, #c4c8cf)":ae[e.themeColor]??"var(--gray-300, #c4c8cf)"};
147
147
 
148
148
  & img,
149
149
  .img-placeholder {
@@ -185,15 +185,15 @@
185
185
  background-color: var(--gray-95080, #14161acc);
186
186
  color: var(--gray-600, #676e79);
187
187
  }
188
- `,ae=f.styled.div`
188
+ `,ce=u.styled.div`
189
189
  position: absolute;
190
190
  top: 0.5rem;
191
191
  ${e=>e.alignToLeft===!0?"left: 0.5rem;":"right: 0.5rem;"}
192
192
  display: flex;
193
193
  gap: 0.25rem;
194
- `,le=e=>`var(--${e}-700)`,ce=f.styled.div`
195
- border-radius: ${e=>T.getBorderRadiusValueWithUnits(e.theme,e.borderRadius||"slight")};
196
- background-color: ${e=>le(e==null?void 0:e.color)};
194
+ `,de=e=>`var(--${e}-700)`,ge=u.styled.div`
195
+ border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,e.borderRadius||"slight")};
196
+ background-color: ${e=>de(e==null?void 0:e.color)};
197
197
  color: white;
198
198
  height: 1.5rem;
199
199
  min-width: 1.5rem;
@@ -207,7 +207,7 @@
207
207
  & i {
208
208
  font-size: 0.813rem;
209
209
  }
210
- `,X=e=>{const{uuid:o,hasPermission:c=!0,isUser:s,image:w,name:a,notifications:g=0,color:m="primary",size:b="large",style:j,disabled:l,onSelect:d=()=>{},isActive:$,className:y,themeData:x}=e,S={theme:M.useTheme(),color:m,size:b,style:j,disabled:l};return n.createElement(ne,{onClick:k=>{k.stopPropagation(),c===!0&&(d==null||d())},...S,key:a,animate:{y:0,opacity:1},className:`profile-item ${y}`,exit:{opacity:0},hasPermission:c,initial:{y:-10,opacity:0},isActive:$,themeColor:(x==null?void 0:x.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:w}),t.jsx("div",{className:"name",children:a}),g>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(ee,{className:"badge",color:"danger",size:"small",children:g>99?"99+":g})}))};X.propTypes={id:i.PropTypes.any,isUserProfile:i.PropTypes.bool,themeColor:i.PropTypes.string,image:i.PropTypes.any,name:i.PropTypes.string,notifications:i.PropTypes.number,style:i.PropTypes.object,className:i.PropTypes.string,color:i.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:i.PropTypes.oneOf(["large"]),onSelect:i.PropTypes.func,hasPermission:i.PropTypes.bool};const H=(e,o)=>{if(!e||!o)return null;let c=Math.floor((e==null?void 0:e.getTime())-(o==null?void 0:o.getTime())),s=1e3*60*60*24;return Math.ceil(c/s)},Y=e=>{const o=M.useTheme(),{uuid:c,shopUuid:s,title:w="",description:a,badges:g,coverPhoto:m,onSelect:b,status:j,startDate:l,endDate:d,salesPackages:$,shopName:y,shopImage:x,className:h,onSelectCard:S=()=>{},onSelectShop:k=()=>{},campaignSingleText:r,salesCampaignTypes:p=[],startsInPrefixTextPlural:N,startsinSuffixTextPlural:C,startsInPrefixTextSingular:B,startsinSuffixTextSingular:O,themeData:F,...u}=e,D=l?new Date(l)<=new Date:!1;H(d?new Date(d):null,l?new Date(l):null);const P=H(l?new Date(l):null,new Date);return t.jsxs(te,{theme:o,className:h,onClick:S,...u,children:[t.jsxs(oe,{theme:o,onClick:()=>b==null?void 0:b(),children:[t.jsx("img",{src:m}),t.jsx(ae,{children:$==null?void 0:$.map((I,A)=>{var R,W;return t.jsx(ce,{color:(R=p==null?void 0:p.find(v=>v.value===I))==null?void 0:R.color,theme:o,children:t.jsx(Q,{icon:(W=p==null?void 0:p.find(v=>v.value===I))==null?void 0:W.icon})},`package__${A}`)})})]}),t.jsxs(ie,{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:r}),t.jsx("div",{className:"campaign-title-text",children:w}),t.jsx("div",{className:"timestamp-text",children:D?"":P===1?`${B} ${P} ${O}`:`${N} ${P} ${C}`})]}),t.jsx("div",{children:a})]}),t.jsx(X,{hasPermission:!0,image:t.jsx("img",{src:x,className:`${x?"":"no-image"}`}),themeData:F,isActive:!0,isUser:!1,name:y,onClick:()=>k(s)})]})]})};Y.propTypes={title:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.element]),numberOfListings:i.PropTypes.number,dropdown:i.PropTypes.any,color:i.PropTypes.string};const de=f.styled.div`
210
+ `,Y=e=>{const{uuid:o,hasPermission:c=!0,isUser:s,image:x,name:a,notifications:h=0,color:f="primary",size:w="large",style:j,disabled:l,onSelect:g=()=>{},isActive:y,className:b,themeData:m}=e,P={theme:M.useTheme(),color:f,size:w,style:j,disabled:l};return n.createElement(le,{onClick:S=>{S.stopPropagation(),c===!0&&(g==null||g())},...P,key:a,animate:{y:0,opacity:1},className:`profile-item ${b}`,exit:{opacity:0},hasPermission:c,initial:{y:-10,opacity:0},isActive:y,themeColor:(m==null?void 0:m.code)||"transparent"},t.jsx("div",{className:"logo-wrapper",children:x}),t.jsx("div",{className:"name",children:a}),h>0&&t.jsx("div",{className:"notifications-number",children:t.jsx(te,{className:"badge",color:"danger",size:"small",children:h>99?"99+":h})}))};Y.propTypes={id:i.PropTypes.any,isUserProfile:i.PropTypes.bool,themeColor:i.PropTypes.string,image:i.PropTypes.any,name:i.PropTypes.string,notifications:i.PropTypes.number,style:i.PropTypes.object,className:i.PropTypes.string,color:i.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral"]),size:i.PropTypes.oneOf(["large"]),onSelect:i.PropTypes.func,hasPermission:i.PropTypes.bool};const Z=(e,o)=>{if(!e||!o)return null;let c=Math.floor((e==null?void 0:e.getTime())-(o==null?void 0:o.getTime())),s=1e3*60*60*24;return Math.ceil(c/s)},J=e=>{const o=M.useTheme(),{uuid:c,shopUuid:s,title:x="",description:a,badges:h,coverPhoto:f,onSelect:w,status:j,startDate:l,endDate:g,salesPackages:y,shopName:b,shopImage:m,className:p,onSelectCard:P=()=>{},onSelectShop:S=()=>{},campaignSingleText:r,salesCampaignTypes:v=[],startsInPrefixTextPlural:O,startsinSuffixTextPlural:k,startsInPrefixTextSingular:A,startsinSuffixTextSingular:C,themeData:R,...U}=e,W=l?new Date(l)<=new Date:!1;Z(g?new Date(g):null,l?new Date(l):null);const d=Z(l?new Date(l):null,new Date);return t.jsxs(ie,{theme:o,className:p,onClick:P,...U,children:[t.jsxs(se,{theme:o,onClick:()=>w==null?void 0:w(),children:[t.jsx("img",{src:f}),t.jsx(ce,{children:y==null?void 0:y.map(($,_)=>{var I,B;return t.jsx(ge,{color:(I=v==null?void 0:v.find(F=>F.value===$))==null?void 0:I.color,theme:o,children:t.jsx(re,{icon:(B=v==null?void 0:v.find(F=>F.value===$))==null?void 0:B.icon})},`package__${_}`)})})]}),t.jsxs(ne,{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:r}),t.jsx("div",{className:"campaign-title-text",children:x}),t.jsx("div",{className:"timestamp-text",children:W?"":d===1?`${A} ${d} ${C}`:`${O} ${d} ${k}`})]}),t.jsx("div",{children:a})]}),t.jsx(Y,{hasPermission:!0,image:t.jsx("img",{src:m,className:`${m?"":"no-image"}`}),themeData:R,isActive:!0,isUser:!1,name:b,onClick:()=>S(s)})]})]})};J.propTypes={title:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.element]),numberOfListings:i.PropTypes.number,dropdown:i.PropTypes.any,color:i.PropTypes.string};const he=u.styled.div`
211
211
  display: flex;
212
212
  flex-direction: column;
213
213
  gap: 1.5rem;
@@ -218,7 +218,7 @@
218
218
  position: absolute;
219
219
  top: 50%;
220
220
  left: 1.5rem;
221
- z-index: ${e=>T.isDefined(e.arrowsZIndex)?e.arrowsZIndex:20};
221
+ z-index: ${e=>D.isDefined(e.arrowsZIndex)?e.arrowsZIndex:20};
222
222
  }
223
223
 
224
224
  & .hover-right-arrow {
@@ -226,7 +226,7 @@
226
226
  position: absolute;
227
227
  top: 50%;
228
228
  right: 1.5rem;
229
- z-index: ${e=>T.isDefined(e.arrowsZIndex)?e.arrowsZIndex:20};
229
+ z-index: ${e=>D.isDefined(e.arrowsZIndex)?e.arrowsZIndex:20};
230
230
  }
231
231
 
232
232
  & .clip-loader-wrapper {
@@ -241,7 +241,7 @@
241
241
  display: flex;
242
242
  }
243
243
  }
244
- `,ge=f.styled.div`
244
+ `,pe=u.styled.div`
245
245
  display: flex;
246
246
  align-items: center;
247
247
 
@@ -262,7 +262,7 @@
262
262
  display: none;
263
263
  }
264
264
  }
265
- `,he=f.styled.div`
265
+ `,ue=u.styled.div`
266
266
  position: relative;
267
267
  padding: ${e=>e.padding};
268
268
 
@@ -340,7 +340,7 @@
340
340
  right: 0;
341
341
  }
342
342
  }
343
- `,pe=(e,o)=>{const[c,s]=n.useState({trigger:null,direction:null}),w=a=>a.touches||a.originalEvent.touches;return n.useEffect(()=>{const a=typeof e=="string"||e instanceof String?document.getElementById(e):e.current;let g=null,m=null;if(a){const b=l=>{const d=w(l)[0];g=d.clientX,m=d.clientY},j=l=>{if(!g||!m)return;const d=l.touches[0].clientX,$=l.touches[0].clientY,y=g-d,x=m-$;Math.abs(y)>Math.abs(x)?y>0?s(h=>({trigger:!h.trigger,direction:_.LEFT})):s(h=>({trigger:!h.trigger,direction:_.RIGHT})):x>0?s(h=>({trigger:!h.trigger,direction:_.UP})):s(h=>({trigger:!h.trigger,direction:_.DOWN})),g=null,m=null};return a.addEventListener("touchstart",b),a.addEventListener("touchmove",j),()=>{a.removeEventListener("touchstart",b),a.addEventListener("touchmove",j)}}},[]),c},_={UP:"up",DOWN:"down",RIGHT:"right",LEFT:"left"},J=n.forwardRef(({title:e,columnGap:o="2rem",rowGap:c="1.25rem",scrollBySize:s=300,wrapForMobile:w=!1,wrap:a=!1,children:g,methodsRef:m,arrowsVisibleOnHover:b=!0,rightAlignArrows:j=!1,padding:l="0",showTimesBtn:d,noArrows:$,onShowEnd:y,arrowsZIndex:x,...h},S)=>{const k=G.useDetectMobile(),r=M.useTheme(),[p,N]=n.useState(!1),[C,B]=n.useState(!1),[O,F]=n.useState(!0),u=n.useRef(),D=pe(u);n.useEffect(()=>{(D==null?void 0:D.direction)===_.RIGHT&&C!==!0?I():(D==null?void 0:D.direction)===_.LEFT&&p!==!0&&P()},[D]);const P=()=>{var v;(v=u.current)==null||v.scrollBy(s,0)},I=()=>{var v;(v=u.current)==null||v.scrollBy(-s,0)},[A,R]=n.useState(!1);n.useEffect(()=>{var v,U;R(((v=u==null?void 0:u.current)==null?void 0:v.scrollWidth)>((U=u==null?void 0:u.current)==null?void 0:U.clientWidth))},[g]),n.useImperativeHandle(m,()=>({scrollToEnd(){W()},scrollLeft(){I()},scrollRight(){P()}}));const W=()=>{u.current.scrollLeft=u.current.scrollWidth};return t.jsxs(de,{arrowsZIndex:x,children:[t.jsxs(ge,{children:[t.jsx("div",{children:e}),t.jsxs("div",{className:"btns-group",children:[t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-left",color:"neutral",disabled:C,icon:"angle-left",onClick:I}),t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-right",color:"neutral",disabled:p,icon:"angle-right",onClick:P})]})]}),t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"hover-left-arrow scroll-arrow-left",color:"neutral",disabled:C,icon:"angle-left",onClick:I}),t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"hover-right-arrow scroll-arrow-right",color:"neutral",disabled:p,icon:"angle-right",onClick:P}),t.jsx(he,{ref:S,arrowsVisibleOnHover:b,hasOverflow:A,noArrows:$,padding:l,rightAlignArrows:j,showTimesBtn:d,theme:r,...h,children:t.jsxs(re,{ref:u,className:"scrollable-container",columnGap:o,rowGap:c,wrap:a||w&&k?"Wrap":"NoWrap",children:[t.jsx(q.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{C===!0&&B(!1)},onIsVisible:()=>{C===!1&&B(!0)}}),g,t.jsx(q.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{p===!0&&N(!1),F(!0)},onIsVisible:()=>{p===!1&&N(!0),F(!1),y==null||y()}}),O&&A&&t.jsx("div",{className:"gradient"})]})})]})});J.propTypes={title:i.PropTypes.string,rowGap:i.PropTypes.string,columnGap:i.PropTypes.string,scrollBySize:i.PropTypes.number,wrapForMobile:i.PropTypes.bool,wrap:i.PropTypes.bool,methodsRef:i.PropTypes.any,arrowsVisibleOnHover:i.PropTypes.bool,rightAlignArrows:i.PropTypes.bool,padding:i.PropTypes.string};const ue=f.styled.div`
343
+ `,fe=(e,o)=>{const[c,s]=n.useState({trigger:null,direction:null}),x=a=>a.touches||a.originalEvent.touches;return n.useEffect(()=>{const a=typeof e=="string"||e instanceof String?document.getElementById(e):e.current;let h=null,f=null;if(a){const w=l=>{const g=x(l)[0];h=g.clientX,f=g.clientY},j=l=>{if(!h||!f)return;const g=l.touches[0].clientX,y=l.touches[0].clientY,b=h-g,m=f-y;Math.abs(b)>Math.abs(m)?b>0?s(p=>({trigger:!p.trigger,direction:N.LEFT})):s(p=>({trigger:!p.trigger,direction:N.RIGHT})):m>0?s(p=>({trigger:!p.trigger,direction:N.UP})):s(p=>({trigger:!p.trigger,direction:N.DOWN})),h=null,f=null};return a.addEventListener("touchstart",w),a.addEventListener("touchmove",j),()=>{a.removeEventListener("touchstart",w),a.addEventListener("touchmove",j)}}},[]),c},N={UP:"up",DOWN:"down",RIGHT:"right",LEFT:"left"},K=n.forwardRef(({title:e,columnGap:o="2rem",rowGap:c="1.25rem",scrollBySize:s=300,wrapForMobile:x=!1,wrap:a=!1,children:h,methodsRef:f,arrowsVisibleOnHover:w=!0,rightAlignArrows:j=!1,padding:l="0",showTimesBtn:g,noArrows:y,onShowEnd:b,arrowsZIndex:m,elementsCount:p,minElementsCount:P=2,...S},r)=>{const v=X.useDetectMobile(),O=M.useTheme(),[k,A]=n.useState(p<P),[C,R]=n.useState(!1),[U,W]=n.useState(!0),d=n.useRef(),$=fe(d);n.useEffect(()=>{($==null?void 0:$.direction)===N.RIGHT&&C!==!0?I():($==null?void 0:$.direction)===N.LEFT&&k!==!0&&_()},[$]);const _=()=>{var T;(T=d.current)==null||T.scrollBy(s,0)},I=()=>{var T;(T=d.current)==null||T.scrollBy(-s,0)},[B,F]=n.useState(!1);n.useEffect(()=>{var T,q;F(((T=d==null?void 0:d.current)==null?void 0:T.scrollWidth)>((q=d==null?void 0:d.current)==null?void 0:q.clientWidth))},[h]),n.useImperativeHandle(f,()=>({scrollToEnd(){Q()},scrollLeft(){I()},scrollRight(){_()}}));const Q=()=>{d.current.scrollLeft=d.current.scrollWidth};return t.jsxs(he,{arrowsZIndex:m,children:[t.jsxs(pe,{children:[t.jsx("div",{children:e}),t.jsxs("div",{className:"btns-group",children:[t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-left",color:"neutral",disabled:C,icon:"angle-left",onClick:I}),t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-right",color:"neutral",disabled:k,icon:"angle-right",onClick:_})]})]}),t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"hover-left-arrow scroll-arrow-left",color:"neutral",disabled:C,icon:"angle-left",onClick:I}),t.jsx(z,{borderRadius:"curved",btnType:"tinted",className:"hover-right-arrow scroll-arrow-right",color:"neutral",disabled:k,icon:"angle-right",onClick:_}),t.jsx(ue,{ref:r,arrowsVisibleOnHover:w,hasOverflow:B,noArrows:y,padding:l,rightAlignArrows:j,showTimesBtn:g,theme:O,...S,children:t.jsxs(oe,{ref:d,className:"scrollable-container",columnGap:o,rowGap:c,wrap:a||x&&v?"Wrap":"NoWrap",children:[t.jsx(V.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{C===!0&&R(!1)},onIsVisible:()=>{C===!1&&R(!0)}}),h,t.jsx(V.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{k===!0&&A(!1),W(!0)},onIsVisible:()=>{k===!1&&A(!0),W(!1),b==null||b()}}),U&&B&&t.jsx("div",{className:"gradient"})]})})]})});K.propTypes={title:i.PropTypes.string,rowGap:i.PropTypes.string,columnGap:i.PropTypes.string,scrollBySize:i.PropTypes.number,wrapForMobile:i.PropTypes.bool,wrap:i.PropTypes.bool,methodsRef:i.PropTypes.any,arrowsVisibleOnHover:i.PropTypes.bool,rightAlignArrows:i.PropTypes.bool,padding:i.PropTypes.string};const me=u.styled.div`
344
344
  display: flex;
345
345
  flex-direction: column;
346
346
  gap: 1.5rem;
@@ -374,19 +374,19 @@
374
374
  margin-right: 0;
375
375
  }
376
376
  }
377
- `,L=f.styled.div`
377
+ `,L=u.styled.div`
378
378
  width: ${e=>e.width||"100%"};
379
379
  height: ${e=>(e.heightCoeff||1)*1.125}rem;
380
380
  background-color: var(--gray-200, #dddfe4);
381
381
 
382
- ${T.linearGradientAnimation("-90deg")}
383
- `,fe=f.styled.div`
382
+ ${D.linearGradientAnimation("-90deg")}
383
+ `,xe=u.styled.div`
384
384
  display: flex;
385
385
  flex-direction: ${e=>e!=null&&e.row?"row":"column"};
386
386
  gap: ${e=>(e==null?void 0:e.gap)??"0.5rem"};
387
387
  width: ${e=>(e==null?void 0:e.width)??"100%"};
388
- `,Z=f.styled.div`
389
- border-radius: ${e=>T.getBorderRadiusValueWithUnits(e.theme,(e==null?void 0:e.borderRadius)??"regular")};
388
+ `,G=u.styled.div`
389
+ border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,(e==null?void 0:e.borderRadius)??"regular")};
390
390
  background: var(--gray-200, #dddfe4);
391
391
  position: relative;
392
392
  max-height: ${e=>(e==null?void 0:e.height)??"5rem"};
@@ -395,10 +395,10 @@
395
395
  width: ${e=>(e==null?void 0:e.width)??"5rem"};
396
396
  flex-shrink: 0;
397
397
 
398
- ${T.linearGradientAnimation()}
399
- `,me=f.styled.div`
398
+ ${D.linearGradientAnimation()}
399
+ `,we=u.styled.div`
400
400
  background: var(--white, #fff);
401
- border-radius: ${e=>T.getBorderRadiusValueWithUnits(e.theme,"edged")};
401
+ border-radius: ${e=>D.getBorderRadiusValueWithUnits(e.theme,"edged")};
402
402
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
403
403
  border: 1px solid var(--gray-95012, #14161a1f);
404
404
 
@@ -424,4 +424,4 @@
424
424
  align-items: center;
425
425
  gap: 0.5rem;
426
426
  }
427
- `,xe=n.forwardRef(({},e)=>{const o=M.useTheme();return t.jsxs(me,{ref:e,theme:o,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(Z,{theme:o,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(fe,{theme:o,children:[t.jsx(L,{heightCoeff:.75,theme:o,width:"35%"}),t.jsx(L,{heightCoeff:1.25,theme:o}),t.jsx(L,{heightCoeff:3,theme:o})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(Z,{theme:o,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(L,{theme:o,width:"75%"})]})]})]})}),we=({itemsCount:e=5,keyPrefix:o})=>t.jsx(t.Fragment,{children:Array.from({length:e},(c,s)=>t.jsx(xe,{},`${o}-skeleton-campaign-card-${s}`))}),be=({children:e,fallbackComponent:o=t.jsx(t.Fragment,{}),isLoading:c=!1,itemsCount:s=5,keyPrefix:w})=>t.jsx(n.Suspense,{fallback:o,children:c===!0?t.jsx(we,{itemsCount:s,keyPrefix:w}):e}),ye=n.memo(Y),ve=n.forwardRef(({sellerType:e="Shop",items:o=[],title:c,isLoading:s,onSelectCard:w=()=>{},onSelectShop:a=()=>{},getImage:g=()=>{},customScrollSize:m,campaignSingleText:b,salesCampaignTypes:j=[],startsInPrefixTextPlural:l,startsinSuffixTextPlural:d,startsInPrefixTextSingular:$,startsinSuffixTextSingular:y},x)=>{const h=n.useRef(),S=G.useDetectMobile(),k=n.useMemo(()=>o==null?void 0:o.map((r,p)=>t.jsx(ye,{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,startDate:r==null?void 0:r.startDate,title:r==null?void 0:r.name,uuid:r==null?void 0:r.campaignUuid,onSelectCard:()=>w(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>a(r==null?void 0:r.shopUuid),campaignSingleText:b,salesCampaignTypes:j,startsInPrefixTextPlural:l,startsinSuffixTextPlural:d,startsInPrefixTextSingular:$,startsinSuffixTextSingular:y,themeData:r==null?void 0:r.themeData},`campaign__item__${p}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}`)),[o]);return t.jsx(t.Fragment,{children:(o==null?void 0:o.length)>0&&t.jsx(ue,{ref:x,className:"row-section-scroll",children:t.jsx(J,{arrowsVisibleOnHover:!1,columnGap:"0",methodsRef:h,mobileHoverScrollButtons:!0,noArrows:!0,padding:"0.25rem 0",rightAlignArrows:!0,scrollBySize:S?window.innerWidth:m>0?m:window.innerWidth,showTimesBtn:!1,title:c,onShowEnd:()=>{},arrowsZIndex:11,children:t.jsx(be,{isLoading:s,itemsCount:2,keyPrefix:"sales-camp",children:k})})})})});module.exports=ve;
427
+ `,be=n.forwardRef(({},e)=>{const o=M.useTheme();return t.jsxs(we,{ref:e,theme:o,children:[t.jsx("div",{className:"campaign__left-section",children:t.jsx(G,{theme:o,width:"15rem",height:"15rem",borderRadius:"edged"})}),t.jsxs("div",{className:"campaign__right-section",children:[t.jsxs(xe,{theme:o,children:[t.jsx(L,{heightCoeff:.75,theme:o,width:"35%"}),t.jsx(L,{heightCoeff:1.25,theme:o}),t.jsx(L,{heightCoeff:3,theme:o})]}),t.jsxs("div",{className:"campaign__user",children:[t.jsx(G,{theme:o,width:"2.5rem",height:"2.5rem",borderRadius:"curved"}),t.jsx(L,{theme:o,width:"75%"})]})]})]})}),ye=({itemsCount:e=5,keyPrefix:o})=>t.jsx(t.Fragment,{children:Array.from({length:e},(c,s)=>t.jsx(be,{},`${o}-skeleton-campaign-card-${s}`))}),ve=({children:e,fallbackComponent:o=t.jsx(t.Fragment,{}),isLoading:c=!1,itemsCount:s=5,keyPrefix:x})=>t.jsx(n.Suspense,{fallback:o,children:c===!0?t.jsx(ye,{itemsCount:s,keyPrefix:x}):e}),$e=n.memo(J),je=n.forwardRef(({sellerType:e="Shop",items:o=[],title:c,isLoading:s,onSelectCard:x=()=>{},onSelectShop:a=()=>{},getImage:h=()=>{},customScrollSize:f,campaignSingleText:w,salesCampaignTypes:j=[],startsInPrefixTextPlural:l,startsinSuffixTextPlural:g,startsInPrefixTextSingular:y,startsinSuffixTextSingular:b},m)=>{const p=n.useRef(),P=X.useDetectMobile(),S=n.useMemo(()=>o==null?void 0:o.map((r,v)=>t.jsx($e,{className:"campaign-item",coverPhoto:h(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:()=>x(r==null?void 0:r.campaignUuid,r==null?void 0:r.shopUuid),onSelectShop:()=>a(r==null?void 0:r.shopUuid),campaignSingleText:w,salesCampaignTypes:j,startsInPrefixTextPlural:l,startsinSuffixTextPlural:g,startsInPrefixTextSingular:y,startsinSuffixTextSingular:b,themeData:r==null?void 0:r.themeData},`campaign__item__${v}__${r==null?void 0:r.startDate}___${r==null?void 0:r.endDate}`)),[o]);return t.jsx(t.Fragment,{children:(o==null?void 0:o.length)>0&&t.jsx(me,{ref:m,className:"row-section-scroll",children:t.jsx(K,{arrowsVisibleOnHover:!1,columnGap:"0",methodsRef:p,mobileHoverScrollButtons:!0,noArrows:!0,padding:"0.25rem 0",rightAlignArrows:!0,elementsCount:o==null?void 0:o.length,scrollBySize:P?window.innerWidth:f>0?f:window.innerWidth,showTimesBtn:!1,title:c,onShowEnd:()=>{},arrowsZIndex:11,children:t.jsx(ve,{isLoading:s,itemsCount:2,keyPrefix:"sales-camp",children:S})})})})});module.exports=je;