@lanaco/lnc-react-ui 4.0.120 → 4.0.122

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,11 +1,11 @@
1
- import { jsx as i, jsxs as l } from "react/jsx-runtime";
2
- import { forwardRef as c, useLayoutEffect as O } from "react";
3
- import { p as E, o as I, l as L, k as S } from "./utils-BbgAIA9N.js";
1
+ import { jsx as r, jsxs as l } from "react/jsx-runtime";
2
+ import { forwardRef as c, useLayoutEffect as L } from "react";
3
+ import { p as z, o as E, l as O, k as S } from "./utils-BbgAIA9N.js";
4
4
  import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { M as b } from "./consts-BuFChS64.js";
5
+ import { M as g } from "./consts-BuFChS64.js";
6
6
  import A from "./Icon.js";
7
- import { u as T } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- const W = m.div`
7
+ import { u as W } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ const T = m.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
- ${E(2)}
47
+ ${z(2)}
48
48
  }
49
49
 
50
50
  & .wrapper__description {
@@ -54,14 +54,27 @@ const W = m.div`
54
54
  font-weight: 400;
55
55
  line-height: 1rem;
56
56
  letter-spacing: 0.025rem;
57
- ${E(2)}
57
+ ${z(2)}
58
+ }
59
+ }
60
+
61
+ @media (max-width: ${g + "px"}) {
62
+ & .wrapper__content {
63
+ & .wrapper__title {
64
+ font-size: 0.875rem;
65
+ line-height: 1.25rem;
66
+ }
67
+
68
+ & .wrapper__description {
69
+ display: none;
70
+ }
58
71
  }
59
72
  }
60
73
  `, j = m.div`
61
74
  width: 100%;
62
75
  height: 11.625rem;
63
76
  border-radius: 0.75rem;
64
- background: ${I("-90deg")};
77
+ background: ${E("-90deg")};
65
78
  `, q = m.div`
66
79
  display: flex;
67
80
  flex-direction: column;
@@ -109,18 +122,16 @@ const W = m.div`
109
122
  }
110
123
  }
111
124
 
112
- @media (max-width: ${b + "px"}) {
125
+ @media (max-width: ${g + "px"}) {
113
126
  flex-direction: row;
114
127
  align-items: center;
115
128
  gap: 0.25rem;
116
129
  border-radius: 999px;
117
- width: 100%;
118
130
  background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
119
131
  padding: 0 0.75rem;
120
132
 
121
133
  &.active {
122
134
  background: var(--gray-950, #14161a);
123
-
124
135
  & .wrapper__icon {
125
136
  background: transparent;
126
137
  }
@@ -152,42 +163,42 @@ const W = m.div`
152
163
  width: 7.5rem;
153
164
  width: 7.5rem;
154
165
  border-radius: 999px;
155
- background: ${I("-90deg")};
166
+ background: ${E("-90deg")};
156
167
 
157
- @media (max-width: ${b + "px"}) {
168
+ @media (max-width: ${g + "px"}) {
158
169
  width: 7.5rem;
159
170
  height: 2.5rem;
160
171
  }
161
- `, B = c(({}, r) => /* @__PURE__ */ i(R, {})), D = c(
162
- ({ text: r, isActive: o = !1, icon: t, onSelectCard: a = () => {
172
+ `, B = c(({}, i) => /* @__PURE__ */ r(R, {})), D = c(
173
+ ({ text: i, isActive: o = !1, icon: t, onSelectCard: a = () => {
163
174
  } }, f) => /* @__PURE__ */ l(q, { className: o ? "active" : "", onClick: a, children: [
164
- /* @__PURE__ */ i(A, { icon: t, className: "wrapper__icon" }),
165
- /* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
175
+ /* @__PURE__ */ r(A, { icon: t, className: "wrapper__icon" }),
176
+ /* @__PURE__ */ r("div", { className: "wrapper__text", children: i })
166
177
  ] })
167
178
  ), G = c(
168
179
  ({
169
- image: r,
180
+ image: i,
170
181
  imageComponent: o,
171
182
  title: t,
172
183
  description: a,
173
184
  className: f,
174
- onSelectCard: g = () => {
185
+ onSelectCard: u = () => {
175
186
  }
176
187
  }, k) => {
177
- const { theme: u } = T();
178
- return /* @__PURE__ */ l(W, { theme: u, className: f, onClick: g, children: [
179
- L(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
188
+ const { theme: x } = W();
189
+ return /* @__PURE__ */ l(T, { theme: x, className: f, onClick: u, children: [
190
+ O(o) ? o : /* @__PURE__ */ r("img", { src: i, className: "wrapper__image" }),
180
191
  /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
181
- t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
182
- a && /* @__PURE__ */ i("div", { className: "wrapper__description", children: a })
192
+ t && /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
193
+ a && /* @__PURE__ */ r("div", { className: "wrapper__description", children: a })
183
194
  ] })
184
195
  ] });
185
196
  }
186
- ), H = c(({}, r) => /* @__PURE__ */ l(j, { children: [
187
- /* @__PURE__ */ i("div", { className: "wrapper__image" }),
197
+ ), H = c(({}, i) => /* @__PURE__ */ l(j, { children: [
198
+ /* @__PURE__ */ r("div", { className: "wrapper__image" }),
188
199
  /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
189
- /* @__PURE__ */ i("div", { className: "wrapper__title" }),
190
- /* @__PURE__ */ i("div", { className: "wrapper__description" })
200
+ /* @__PURE__ */ r("div", { className: "wrapper__title" }),
201
+ /* @__PURE__ */ r("div", { className: "wrapper__description" })
191
202
  ] })
192
203
  ] })), P = m.div`
193
204
  display: flex;
@@ -230,15 +241,11 @@ const W = m.div`
230
241
  justify-content: center;
231
242
  align-items: center;
232
243
  gap: 0.75rem;
233
-
234
- grid-template-columns: ${(r) => `repeat(${r.numberOfTags || 0}, minmax(0, 7rem))`};
235
- justify-content: center;
236
- display: grid;
237
244
  }
238
245
 
239
246
  & .wrapper__cards {
240
247
  display: grid;
241
- grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCards}, minmax(12.5rem, 1fr))`};
248
+ grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCards}, minmax(12.5rem, 1fr))`};
242
249
  grid-auto-rows: 0.625rem;
243
250
  gap: 0.625rem;
244
251
  width: 100%;
@@ -249,7 +256,7 @@ const W = m.div`
249
256
  }
250
257
  }
251
258
 
252
- @media (max-width: ${b + "px"}) {
259
+ @media (max-width: ${g + "px"}) {
253
260
  & .wrapper__tags {
254
261
  overflow-x: scroll;
255
262
  justify-content: flex-start;
@@ -271,28 +278,28 @@ const W = m.div`
271
278
  }
272
279
 
273
280
  & .wrapper__cards {
274
- grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCardsForMobile}, minmax(0, 1fr))`};
281
+ grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCardsForMobile}, minmax(0, 1fr))`};
275
282
  }
276
283
  }
277
284
  `, Y = c(
278
285
  ({
279
- title: r,
286
+ title: i,
280
287
  subtitle: o,
281
288
  tags: t = [],
282
289
  items: a = [],
283
290
  limitTags: f = 5,
284
- limitTagsForMobile: g = 5,
291
+ limitTagsForMobile: u = 5,
285
292
  limit: k = 3,
286
- limitForMobile: u = 2,
287
- selectedTag: z,
288
- onSelectTag: x = () => {
293
+ limitForMobile: x = 2,
294
+ selectedTag: I,
295
+ onSelectTag: v = () => {
289
296
  },
290
- onSelectCard: v = () => {
297
+ onSelectCard: y = () => {
291
298
  },
292
299
  className: s
293
300
  }, C) => {
294
301
  var $, N;
295
- return O(() => {
302
+ return L(() => {
296
303
  if (!S(s))
297
304
  return;
298
305
  const e = () => {
@@ -301,18 +308,18 @@ const W = m.div`
301
308
  const M = w.getBoundingClientRect().height, F = Math.ceil((M + 10) / 20);
302
309
  w.style.gridRowEnd = `span ${F}`;
303
310
  });
304
- const y = d == null ? void 0 : d[d.length - 1];
305
- if (y) {
306
- const w = y.offsetTop + y.offsetHeight;
311
+ const b = d == null ? void 0 : d[d.length - 1];
312
+ if (b) {
313
+ const w = b.offsetTop + b.offsetHeight;
307
314
  p.style.height = `${w}px`;
308
315
  }
309
- }, h = document.querySelector(`.${s} .wrapper__cards`).querySelectorAll(".wrapper__image");
310
- let _ = 0;
311
- return h.length === 0 ? e() : (h.forEach((p) => {
312
- p.complete ? _++ : p.addEventListener("load", () => {
313
- _++, _ === h.length && e();
316
+ }, _ = document.querySelector(`.${s} .wrapper__cards`).querySelectorAll(".wrapper__image");
317
+ let h = 0;
318
+ return _.length === 0 ? e() : (_.forEach((p) => {
319
+ p.complete ? h++ : p.addEventListener("load", () => {
320
+ h++, h === _.length && e();
314
321
  });
315
- }), _ === h.length && e()), window.addEventListener("resize", e), () => {
322
+ }), h === _.length && e()), window.addEventListener("resize", e), () => {
316
323
  window.removeEventListener("resize", e);
317
324
  };
318
325
  }, [s, a]), /* @__PURE__ */ l(
@@ -320,42 +327,42 @@ const W = m.div`
320
327
  {
321
328
  ref: C,
322
329
  limitTags: f,
323
- limitTagsForMobile: g,
330
+ limitTagsForMobile: u,
324
331
  limitCards: k,
325
- limitCardsForMobile: u,
332
+ limitCardsForMobile: x,
326
333
  className: s,
327
334
  numberOfTags: t == null ? void 0 : t.length,
328
335
  children: [
329
336
  /* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
330
- r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
331
- o && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: o })
337
+ i && /* @__PURE__ */ r("div", { className: "wrapper__title", children: i }),
338
+ o && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: o })
332
339
  ] }),
333
- /* @__PURE__ */ i("div", { className: "wrapper__tags__external", children: /* @__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(
340
+ /* @__PURE__ */ r("div", { className: "wrapper__tags__external", children: /* @__PURE__ */ r("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ r(
334
341
  D,
335
342
  {
336
343
  icon: e == null ? void 0 : e.icon,
337
344
  text: e == null ? void 0 : e.title,
338
- isActive: (e == null ? void 0 : e.code) === z,
339
- onSelectCard: () => x == null ? void 0 : x(e)
345
+ isActive: (e == null ? void 0 : e.code) === I,
346
+ onSelectCard: () => v == null ? void 0 : v(e)
340
347
  },
341
348
  `field-of-interests-masonry-tag__${n + 1}`
342
- )) : ($ = Array.from("12345")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */ i(
349
+ )) : ($ = Array.from("12345")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */ r(
343
350
  B,
344
351
  {},
345
352
  `field-of-interests-masonry-tag-skeleton__${n + 1}`
346
353
  )) }) }),
347
- /* @__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(
354
+ /* @__PURE__ */ r("div", { className: "wrapper__cards", children: a && (a == null ? void 0 : a.length) > 0 ? a == null ? void 0 : a.map((e, n) => /* @__PURE__ */ r(
348
355
  G,
349
356
  {
350
357
  image: e == null ? void 0 : e.image,
351
358
  imageComponent: e == null ? void 0 : e.imageComponent,
352
359
  title: e == null ? void 0 : e.title,
353
360
  description: e == null ? void 0 : e.description,
354
- onSelectCard: () => v == null ? void 0 : v(e),
361
+ onSelectCard: () => y == null ? void 0 : y(e),
355
362
  className: "wrapper__card"
356
363
  },
357
364
  `field-of-interests-with-tags-card__${n + 1}`
358
- )) : (N = Array.from("12345")) == null ? void 0 : N.map((e, n) => /* @__PURE__ */ i(
365
+ )) : (N = Array.from("12345")) == null ? void 0 : N.map((e, n) => /* @__PURE__ */ r(
359
366
  H,
360
367
  {},
361
368
  `field-of-interests-with-tags-card-skeleton__${n + 1}`
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),l=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),$=require("./Icon.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),I=require("./consts-goSZX3xP.cjs"),C=p.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),l=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),y=require("./consts-goSZX3xP.cjs"),I=require("./Icon.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=p.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -48,7 +48,7 @@
48
48
  ${o.truncateTextInRows(2)}
49
49
  }
50
50
  }
51
- cursor: pointer;
51
+ cursor: pointer;
52
52
  `,W=p.styled.div`
53
53
  width: 100%;
54
54
  height: 11.625rem;
@@ -104,12 +104,16 @@
104
104
  color: var(--white, #fff);
105
105
  }
106
106
  }
107
+
108
+ @media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
109
+ min-width: fit-content;
110
+ }
107
111
  `,R=p.styled.div`
108
112
  width: 7rem;
109
113
  height: 3rem;
110
114
  border-radius: 999px;
111
115
  background: ${o.linearGradientAnimation("-90deg")};
112
- `,q=l.forwardRef(({},i)=>r.jsx(R,{})),z=l.forwardRef(({name:i,isActive:s,icon:t,onSelectCard:a=()=>{}},m)=>r.jsxs(F,{className:s?"active":"",onClick:a,children:[o.isDefinedNotEmptyString(t)&&r.jsx($,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),O=l.forwardRef(({image:i,imageComponent:s,name:t,description:a,onSelectCard:m=()=>{}},g)=>{const{theme:f}=N.useTheme();return r.jsxs(C,{theme:f,onClick:m,children:[o.isDefined(s)?s:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),a&&r.jsx("div",{className:"wrapper__description",children:a})]})]})}),A=l.forwardRef(({},i)=>r.jsx(W,{})),E=p.styled.div`
116
+ `,q=l.forwardRef(({},i)=>r.jsx(R,{})),E=l.forwardRef(({name:i,isActive:s,icon:t,onSelectCard:a=()=>{}},m)=>r.jsxs(F,{className:s?"active":"",onClick:a,children:[o.isDefinedNotEmptyString(t)&&r.jsx(I,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),O=l.forwardRef(({image:i,imageComponent:s,name:t,description:a,onSelectCard:m=()=>{}},g)=>{const{theme:d}=N.useTheme();return r.jsxs(C,{theme:d,onClick:m,children:[o.isDefined(s)?s:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),a&&r.jsx("div",{className:"wrapper__description",children:a})]})]})}),z=l.forwardRef(({},i)=>r.jsx(W,{})),A=p.styled.div`
113
117
  display: flex;
114
118
  flex-direction: column;
115
119
  align-items: center;
@@ -157,7 +161,7 @@
157
161
  width: 100%;
158
162
  }
159
163
 
160
- @media (max-width: ${I.MOBILE_SIZE_PX+"px"}) {
164
+ @media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
161
165
  & .wrapper__tags {
162
166
  overflow-x: scroll;
163
167
  justify-content: flex-start;
@@ -183,4 +187,4 @@
183
187
  gap: 1rem;
184
188
  }
185
189
  }
186
- `,D=l.forwardRef(({title:i,subtitle:s,tags:t=[],limitTags:a=7,limitTagsForMobile:m=7,limit:g=3,limitForMobile:f=2,items:d=[],selectedTag:c,isLoadingTags:y=!1,isLoadingItems:b=!1,onSelectTag:_=()=>{},onSelectCard:h=()=>{},getImage:j=()=>{}},k)=>{var u,v;const w=e=>{_==null||_(e)},x=e=>{h==null||h(e)};return r.jsxs(E,{ref:k,limitTags:a,limitTagsForMobile:m,limitCards:g,limitCardsForMobile:f,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx("div",{className:"wrapper__tags",children:y?(u=Array.from("123"))==null?void 0:u.map((e,n)=>r.jsx(q,{},`field-of-interests-with-tags-card-tag-skeleton__${n+1}`)):t==null?void 0:t.map((e,n)=>r.jsx(z,{icon:e==null?void 0:e.icon,name:e==null?void 0:e.name,isActive:(e==null?void 0:e.uuid)===(c==null?void 0:c.uuid),onSelectCard:()=>w==null?void 0:w(e)},`field-of-interests-with-tags-card-tag__${n+1}`))}),r.jsx("div",{className:"wrapper__cards",children:b?(v=Array.from("123"))==null?void 0:v.map((e,n)=>r.jsx(A,{},`field-of-interests-with-tags-card-skeleton__${n+1}`)):d==null?void 0:d.map((e,n)=>r.jsx(O,{image:j(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid),imageComponent:e==null?void 0:e.imageComponent,name:e==null?void 0:e.name,description:(e==null?void 0:e.shortDescription)||(e==null?void 0:e.description),onSelectCard:()=>x==null?void 0:x(e)},`field-of-interests-with-tags-card__${n+1}`))})]})});module.exports=D;
190
+ `,M=l.forwardRef(({title:i,subtitle:s,tags:t=[],limitTags:a=7,limitTagsForMobile:m=7,limit:g=3,limitForMobile:d=2,items:f=[],selectedTag:c,isLoadingTags:b=!1,isLoadingItems:j=!1,onSelectTag:_=()=>{},onSelectCard:h=()=>{},getImage:k=()=>{}},$)=>{var u,v;const w=e=>{_==null||_(e)},x=e=>{h==null||h(e)};return r.jsxs(A,{ref:$,limitTags:a,limitTagsForMobile:m,limitCards:g,limitCardsForMobile:d,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx("div",{className:"wrapper__tags",children:b?(u=Array.from("123"))==null?void 0:u.map((e,n)=>r.jsx(q,{},`field-of-interests-with-tags-card-tag-skeleton__${n+1}`)):t==null?void 0:t.map((e,n)=>r.jsx(E,{icon:e==null?void 0:e.icon,name:e==null?void 0:e.name,isActive:(e==null?void 0:e.uuid)===(c==null?void 0:c.uuid),onSelectCard:()=>w==null?void 0:w(e)},`field-of-interests-with-tags-card-tag__${n+1}`))}),r.jsx("div",{className:"wrapper__cards",children:j?(v=Array.from("123"))==null?void 0:v.map((e,n)=>r.jsx(z,{},`field-of-interests-with-tags-card-skeleton__${n+1}`)):f==null?void 0:f.map((e,n)=>r.jsx(O,{image:k(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid),imageComponent:e==null?void 0:e.imageComponent,name:e==null?void 0:e.name,description:(e==null?void 0:e.description)||(e==null?void 0:e.shortDescription),onSelectCard:()=>x==null?void 0:x(e)},`field-of-interests-with-tags-card__${n+1}`))})]})});module.exports=M;
@@ -1,10 +1,10 @@
1
- import { jsx as i, jsxs as o } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as s } from "react/jsx-runtime";
2
2
  import { forwardRef as l } from "react";
3
3
  import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { p as y, o as b, k as I, l as W } from "./utils-BbgAIA9N.js";
5
- import F from "./Icon.js";
6
- import { u as j } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
- import { M as z } from "./consts-BuFChS64.js";
4
+ import { p as y, o as b, k as W, l as F } from "./utils-BbgAIA9N.js";
5
+ import { M as k } from "./consts-BuFChS64.js";
6
+ import j from "./Icon.js";
7
+ import { u as z } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
8
  const O = p.div`
9
9
  display: flex;
10
10
  flex-direction: column;
@@ -55,7 +55,7 @@ const O = p.div`
55
55
  ${y(2)}
56
56
  }
57
57
  }
58
- cursor: pointer;
58
+ cursor: pointer;
59
59
  `, A = p.div`
60
60
  width: 100%;
61
61
  height: 11.625rem;
@@ -111,26 +111,30 @@ const O = p.div`
111
111
  color: var(--white, #fff);
112
112
  }
113
113
  }
114
+
115
+ @media (max-width: ${k + "px"}) {
116
+ min-width: fit-content;
117
+ }
114
118
  `, M = p.div`
115
119
  width: 7rem;
116
120
  height: 3rem;
117
121
  border-radius: 999px;
118
122
  background: ${b("-90deg")};
119
123
  `, D = l(({}, r) => /* @__PURE__ */ i(M, {})), G = l(
120
- ({ name: r, isActive: n, icon: t, onSelectCard: s = () => {
121
- } }, m) => /* @__PURE__ */ o(E, { className: n ? "active" : "", onClick: s, children: [
122
- I(t) && /* @__PURE__ */ i(F, { icon: t, className: "wrapper__icon" }),
124
+ ({ name: r, isActive: n, icon: t, onSelectCard: o = () => {
125
+ } }, m) => /* @__PURE__ */ s(E, { className: n ? "active" : "", onClick: o, children: [
126
+ W(t) && /* @__PURE__ */ i(j, { icon: t, className: "wrapper__icon" }),
123
127
  /* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
124
128
  ] })
125
129
  ), L = l(
126
- ({ image: r, imageComponent: n, name: t, description: s, onSelectCard: m = () => {
130
+ ({ image: r, imageComponent: n, name: t, description: o, onSelectCard: m = () => {
127
131
  } }, u) => {
128
- const { theme: f } = j();
129
- return /* @__PURE__ */ o(O, { theme: f, onClick: m, children: [
130
- W(n) ? n : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
131
- /* @__PURE__ */ o("div", { className: "wrapper__content", children: [
132
+ const { theme: f } = z();
133
+ return /* @__PURE__ */ s(O, { theme: f, onClick: m, children: [
134
+ F(n) ? n : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
135
+ /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
132
136
  t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
133
- s && /* @__PURE__ */ i("div", { className: "wrapper__description", children: s })
137
+ o && /* @__PURE__ */ i("div", { className: "wrapper__description", children: o })
134
138
  ] })
135
139
  ] });
136
140
  }
@@ -182,7 +186,7 @@ const O = p.div`
182
186
  width: 100%;
183
187
  }
184
188
 
185
- @media (max-width: ${z + "px"}) {
189
+ @media (max-width: ${k + "px"}) {
186
190
  & .wrapper__tags {
187
191
  overflow-x: scroll;
188
192
  justify-content: flex-start;
@@ -213,41 +217,41 @@ const O = p.div`
213
217
  title: r,
214
218
  subtitle: n,
215
219
  tags: t = [],
216
- limitTags: s = 7,
220
+ limitTags: o = 7,
217
221
  limitTagsForMobile: m = 7,
218
222
  limit: u = 3,
219
223
  limitForMobile: f = 2,
220
224
  items: d = [],
221
225
  selectedTag: c,
222
- isLoadingTags: k = !1,
223
- isLoadingItems: $ = !1,
226
+ isLoadingTags: $ = !1,
227
+ isLoadingItems: N = !1,
224
228
  onSelectTag: h = () => {
225
229
  },
226
230
  onSelectCard: _ = () => {
227
231
  },
228
- getImage: N = () => {
232
+ getImage: C = () => {
229
233
  }
230
- }, C) => {
234
+ }, I) => {
231
235
  var x, v;
232
- const g = (e) => {
236
+ const w = (e) => {
233
237
  h == null || h(e);
234
- }, w = (e) => {
238
+ }, g = (e) => {
235
239
  _ == null || _(e);
236
240
  };
237
- return /* @__PURE__ */ o(
241
+ return /* @__PURE__ */ s(
238
242
  T,
239
243
  {
240
- ref: C,
241
- limitTags: s,
244
+ ref: I,
245
+ limitTags: o,
242
246
  limitTagsForMobile: m,
243
247
  limitCards: u,
244
248
  limitCardsForMobile: f,
245
249
  children: [
246
- /* @__PURE__ */ o("div", { className: "wrapper__heading", children: [
250
+ /* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
247
251
  r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
248
252
  n && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: n })
249
253
  ] }),
250
- /* @__PURE__ */ i("div", { className: "wrapper__tags", children: k ? (x = Array.from("123")) == null ? void 0 : x.map((e, a) => /* @__PURE__ */ i(
254
+ /* @__PURE__ */ i("div", { className: "wrapper__tags", children: $ ? (x = Array.from("123")) == null ? void 0 : x.map((e, a) => /* @__PURE__ */ i(
251
255
  D,
252
256
  {},
253
257
  `field-of-interests-with-tags-card-tag-skeleton__${a + 1}`
@@ -257,22 +261,22 @@ const O = p.div`
257
261
  icon: e == null ? void 0 : e.icon,
258
262
  name: e == null ? void 0 : e.name,
259
263
  isActive: (e == null ? void 0 : e.uuid) === (c == null ? void 0 : c.uuid),
260
- onSelectCard: () => g == null ? void 0 : g(e)
264
+ onSelectCard: () => w == null ? void 0 : w(e)
261
265
  },
262
266
  `field-of-interests-with-tags-card-tag__${a + 1}`
263
267
  )) }),
264
- /* @__PURE__ */ i("div", { className: "wrapper__cards", children: $ ? (v = Array.from("123")) == null ? void 0 : v.map((e, a) => /* @__PURE__ */ i(
268
+ /* @__PURE__ */ i("div", { className: "wrapper__cards", children: N ? (v = Array.from("123")) == null ? void 0 : v.map((e, a) => /* @__PURE__ */ i(
265
269
  R,
266
270
  {},
267
271
  `field-of-interests-with-tags-card-skeleton__${a + 1}`
268
272
  )) : d == null ? void 0 : d.map((e, a) => /* @__PURE__ */ i(
269
273
  L,
270
274
  {
271
- image: N(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid),
275
+ image: C(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid),
272
276
  imageComponent: e == null ? void 0 : e.imageComponent,
273
277
  name: e == null ? void 0 : e.name,
274
- description: (e == null ? void 0 : e.shortDescription) || (e == null ? void 0 : e.description),
275
- onSelectCard: () => w == null ? void 0 : w(e)
278
+ description: (e == null ? void 0 : e.description) || (e == null ? void 0 : e.shortDescription),
279
+ onSelectCard: () => g == null ? void 0 : g(e)
276
280
  },
277
281
  `field-of-interests-with-tags-card__${a + 1}`
278
282
  )) })
@@ -21,8 +21,12 @@
21
21
  & img {
22
22
  transition: var(--transition, all 0.3s ease);
23
23
  overflow: hidden;
24
+ scale: 1.1;
25
+ aspect-ratio: 1 / 1;
26
+ mix-blend-mode: multiply;
27
+ width: 100%;
28
+ object-fit: cover;
24
29
  }
25
- overflow: hidden;
26
30
 
27
31
  &:hover {
28
32
  & img {
@@ -68,13 +72,6 @@
68
72
  }
69
73
  }
70
74
 
71
- & img {
72
- aspect-ratio: 1 / 1;
73
- mix-blend-mode: multiply;
74
- width: 100%;
75
- object-fit: cover;
76
- }
77
-
78
75
  & .img-skeleton {
79
76
  background-color: ${u.linearGradientAnimation("-90deg")};
80
77
  min-height: 28.75rem;
@@ -1,10 +1,10 @@
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";
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";
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 as w } from "./utils-BbgAIA9N.js";
7
- import k from "./Button.js";
6
+ import { p as x, o as y, k } from "./utils-BbgAIA9N.js";
7
+ import w from "./Button.js";
8
8
  import { useTheme as b } from "./ThemeProvider.js";
9
9
  const $ = f.div`
10
10
  display: grid;
@@ -29,8 +29,12 @@ const $ = f.div`
29
29
  & img {
30
30
  transition: var(--transition, all 0.3s ease);
31
31
  overflow: hidden;
32
+ scale: 1.1;
33
+ aspect-ratio: 1 / 1;
34
+ mix-blend-mode: multiply;
35
+ width: 100%;
36
+ object-fit: cover;
32
37
  }
33
- overflow: hidden;
34
38
 
35
39
  &:hover {
36
40
  & img {
@@ -76,13 +80,6 @@ const $ = f.div`
76
80
  }
77
81
  }
78
82
 
79
- & img {
80
- aspect-ratio: 1 / 1;
81
- mix-blend-mode: multiply;
82
- width: 100%;
83
- object-fit: cover;
84
- }
85
-
86
83
  & .img-skeleton {
87
84
  background-color: ${y("-90deg")};
88
85
  min-height: 28.75rem;
@@ -96,7 +93,7 @@ const $ = f.div`
96
93
  max-height: 28.75rem;
97
94
  }
98
95
  }
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(
96
+ `, C = g(({}, n) => /* @__PURE__ */ r(u, { ref: n, children: /* @__PURE__ */ r("div", { className: "img-skeleton" }) })), N = ({ limit: n = 2, isLoading: o = !1, keyPrefix: t }) => /* @__PURE__ */ r(p, { children: Array.from({ length: n }, (l, a) => /* @__PURE__ */ r(
100
97
  C,
101
98
  {
102
99
  isLoading: o
@@ -104,7 +101,7 @@ const $ = f.div`
104
101
  `${t}-skeleton-product-card-${a}`
105
102
  )) }), S = ({
106
103
  children: n,
107
- fallbackComponent: o = /* @__PURE__ */ r(g, {}),
104
+ fallbackComponent: o = /* @__PURE__ */ r(p, {}),
108
105
  isLoading: t = !1,
109
106
  limit: l,
110
107
  keyPrefix: a
@@ -115,7 +112,7 @@ const $ = f.div`
115
112
  limit: l,
116
113
  keyPrefix: a
117
114
  }
118
- ) : n }), _ = p(
115
+ ) : n }), _ = g(
119
116
  ({
120
117
  title: n,
121
118
  image: o,
@@ -128,7 +125,7 @@ const $ = f.div`
128
125
  }
129
126
  }, e) => {
130
127
  const { theme: s } = b();
131
- return /* @__PURE__ */ r(g, { children: /* @__PURE__ */ i(
128
+ return /* @__PURE__ */ r(p, { children: /* @__PURE__ */ i(
132
129
  u,
133
130
  {
134
131
  ref: e,
@@ -142,8 +139,8 @@ const $ = f.div`
142
139
  /* @__PURE__ */ r("div", { children: n }),
143
140
  /* @__PURE__ */ r("div", { className: "content-text-title", children: l })
144
141
  ] }),
145
- w(a) && /* @__PURE__ */ r(
146
- k,
142
+ k(a) && /* @__PURE__ */ r(
143
+ w,
147
144
  {
148
145
  text: a,
149
146
  onClick: d,
@@ -157,7 +154,7 @@ const $ = f.div`
157
154
  }
158
155
  ) });
159
156
  }
160
- ), E = p(
157
+ ), E = g(
161
158
  ({
162
159
  title: n,
163
160
  items: o,