@lanaco/lnc-react-ui 4.0.82 → 4.0.83

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 e=require("react/jsx-runtime"),c=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-CtNoHdBj.cjs"),C=require("./useDetectMobile-D6d5LpdL.cjs"),a=require("./utils-BXPz9bck.cjs"),N=require("./style-C571ywKV.cjs"),q=require("./Button.cjs"),$=require("./Link.cjs"),T=require("./index-CAqPGuiA.cjs"),B=require("./index-ryadTWiS.cjs"),M=h.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),d=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-CtNoHdBj.cjs"),N=require("./useDetectMobile-D6d5LpdL.cjs"),a=require("./utils-BXPz9bck.cjs"),q=require("./style-C571ywKV.cjs"),$=require("./Button.cjs"),T=require("./Link.cjs"),B=require("./index-CAqPGuiA.cjs"),M=require("./index-ryadTWiS.cjs"),R=h.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -73,4 +73,4 @@
73
73
  color: var(--gray-700, #4e555f);
74
74
  ${a.truncateTextInRows(3)}
75
75
  }
76
- `,R=c.forwardRef((i,o)=>{const{title:n,imageUrl:l,text:r,buttonText:m,onCardClick:s}=i;return e.jsxs(w,{ref:o,className:"blog-card",onClick:s,children:[e.jsxs(k,{children:[e.jsx("div",{className:"text-wr-title",children:n}),e.jsx("div",{className:"text-wr",children:r}),e.jsx($,{color:"gray",onClick:s,children:m})]}),e.jsx(T.ProductImageWrapper,{src:l})]})}),W=c.forwardRef(({},i)=>e.jsxs(w,{className:"blog-card",children:[e.jsxs(k,{children:[e.jsx("div",{className:"skeleton-title"}),e.jsx("div",{className:"text-wr"}),e.jsx("div",{className:"skeleton-action"})]}),e.jsx("div",{className:"skeleton-img"})]})),P=({limit:i=3,isLoading:o=!1,keyPrefix:n})=>e.jsx(e.Fragment,{children:Array.from({length:i},(l,r)=>e.jsx(W,{isLoading:o},`${n}-skeleton-product-card-${r}`))}),_=({children:i,fallbackComponent:o=e.jsx(e.Fragment,{}),isLoading:n=!1,limit:l,keyPrefix:r})=>e.jsx(c.Suspense,{fallbackComponent:o,children:n===!0?e.jsx(P,{isLoading:n,limit:l,keyPrefix:r}):i}),b=c.memo(R),z=c.forwardRef((i,o)=>{const{icon:n,title:l,items:r,buttonText:m,limit:s=3,options:d,onButtonAction:y=()=>{},buttonLink:p,onSelectOption:x=()=>{},isLoading:v=!1,onSelectCard:u=()=>{}}=i,j=C.useDetectMobile(),S=c.useMemo(()=>e.jsx(e.Fragment,{children:j===!0?r==null?void 0:r.map((t,g)=>e.jsx(b,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>u(t)},g)):r==null?void 0:r.slice(0,s).map((t,g)=>e.jsx(b,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>u(t)},g))}),[r,j,s,u]);return e.jsxs(N.TitleWithOptionsSectionWrapper,{ref:o,children:[e.jsxs("div",{className:"regular-title",children:[e.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(n)&&e.jsx("i",{className:n}),e.jsx("span",{children:l})]}),a.isDefinedNotEmptyString(p)&&e.jsx(q,{type:"button",btnType:"tinted",color:"gray",onClick:()=>y(p),borderRadius:"curved",children:m})]}),(d==null?void 0:d.length)>0&&e.jsx(B.SelectBar,{items:d,onRemove:t=>{x(t)},onSelect:t=>{x(t)},labelKey:"name",valueKey:"code",noMargin:!0}),e.jsx(M,{limit:s,children:e.jsx(_,{isLoading:v,limit:s,keyPrefix:"explore-landing",children:S})})]})});module.exports=z;
76
+ `,W=d.forwardRef((i,o)=>{const{title:n,imageUrl:l,text:r,buttonText:m,onCardClick:s}=i;return e.jsxs(w,{ref:o,className:"blog-card",onClick:s,children:[e.jsxs(k,{children:[e.jsx("div",{className:"text-wr-title",children:n}),e.jsx("div",{className:"text-wr",children:r}),e.jsx(T,{color:"gray",onClick:s,children:m})]}),e.jsx(B.ProductImageWrapper,{src:l})]})}),I=d.forwardRef(({},i)=>e.jsxs(w,{className:"blog-card",children:[e.jsxs(k,{children:[e.jsx("div",{className:"skeleton-title"}),e.jsx("div",{className:"text-wr"}),e.jsx("div",{className:"skeleton-action"})]}),e.jsx("div",{className:"skeleton-img"})]})),P=({limit:i=3,isLoading:o=!1,keyPrefix:n})=>e.jsx(e.Fragment,{children:Array.from({length:i},(l,r)=>e.jsx(I,{isLoading:o},`${n}-skeleton-product-card-${r}`))}),_=({children:i,fallbackComponent:o=e.jsx(e.Fragment,{}),isLoading:n=!1,limit:l,keyPrefix:r})=>e.jsx(d.Suspense,{fallbackComponent:o,children:n===!0?e.jsx(P,{isLoading:n,limit:l,keyPrefix:r}):i}),b=d.memo(W),z=d.forwardRef((i,o)=>{const{icon:n,title:l,items:r,buttonText:m,limit:s=3,options:c,selectedOption:y=[],onButtonAction:v=()=>{},buttonLink:p,onSelectOption:x=()=>{},isLoading:S=!1,onSelectCard:u=()=>{}}=i,j=N.useDetectMobile(),C=d.useMemo(()=>e.jsx(e.Fragment,{children:j===!0?r==null?void 0:r.map((t,g)=>e.jsx(b,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>u(t)},g)):r==null?void 0:r.slice(0,s).map((t,g)=>e.jsx(b,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>u(t)},g))}),[r,j,s,u]);return e.jsxs(q.TitleWithOptionsSectionWrapper,{ref:o,children:[e.jsxs("div",{className:"regular-title",children:[e.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(n)&&e.jsx("i",{className:n}),e.jsx("span",{children:l})]}),a.isDefinedNotEmptyString(p)&&e.jsx($,{type:"button",btnType:"tinted",color:"gray",onClick:()=>v(p),borderRadius:"curved",children:m})]}),(c==null?void 0:c.length)>0&&e.jsx(M.SelectBar,{items:c,selectedIds:y,onRemove:t=>{x(t)},onSelect:t=>{x(t)},labelKey:"name",valueKey:"code",noMargin:!0}),e.jsx(R,{limit:s,children:e.jsx(_,{isLoading:S,limit:s,keyPrefix:"explore-landing",children:C})})]})});module.exports=z;
@@ -1,10 +1,10 @@
1
- import { jsxs as l, jsx as t, Fragment as h } from "react/jsx-runtime";
2
- import { forwardRef as u, Suspense as W, memo as x, useMemo as M } from "react";
1
+ import { jsxs as n, jsx as t, Fragment as h } from "react/jsx-runtime";
2
+ import { forwardRef as u, Suspense as x, memo as M, useMemo as P } from "react";
3
3
  import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as S } from "./consts-C1uHV4xc.js";
5
- import { u as P } from "./useDetectMobile-BC6EGaBc.js";
6
- import { m as g, t as z, k as v } from "./utils-DCs-SbIv.js";
7
- import { T as I } from "./style-CsMpu4iC.js";
5
+ import { u as z } from "./useDetectMobile-BC6EGaBc.js";
6
+ import { m as g, t as I, k as v } from "./utils-DCs-SbIv.js";
7
+ import { T as O } from "./style-CsMpu4iC.js";
8
8
  import R from "./Button.js";
9
9
  import j from "./Link.js";
10
10
  import { P as A } from "./index-BLxkXrqU.js";
@@ -82,61 +82,62 @@ const F = f.div`
82
82
  font-weight: 400;
83
83
  font-size: 0.875rem;
84
84
  color: var(--gray-700, #4e555f);
85
- ${z(3)}
85
+ ${I(3)}
86
86
  }
87
87
  `, L = u((i, a) => {
88
- const { title: o, imageUrl: m, text: r, buttonText: c, onCardClick: n } = i;
89
- return /* @__PURE__ */ l(C, { ref: a, className: "blog-card", onClick: n, children: [
90
- /* @__PURE__ */ l(N, { children: [
88
+ const { title: o, imageUrl: m, text: r, buttonText: c, onCardClick: l } = i;
89
+ return /* @__PURE__ */ n(C, { ref: a, className: "blog-card", onClick: l, children: [
90
+ /* @__PURE__ */ n(N, { children: [
91
91
  /* @__PURE__ */ t("div", { className: "text-wr-title", children: o }),
92
92
  /* @__PURE__ */ t("div", { className: "text-wr", children: r }),
93
- /* @__PURE__ */ t(j, { color: "gray", onClick: n, children: c })
93
+ /* @__PURE__ */ t(j, { color: "gray", onClick: l, children: c })
94
94
  ] }),
95
95
  /* @__PURE__ */ t(A, { src: m })
96
96
  ] });
97
- }), O = u(({}, i) => /* @__PURE__ */ l(C, { className: "blog-card", children: [
98
- /* @__PURE__ */ l(N, { children: [
97
+ }), U = u(({}, i) => /* @__PURE__ */ n(C, { className: "blog-card", children: [
98
+ /* @__PURE__ */ n(N, { children: [
99
99
  /* @__PURE__ */ t("div", { className: "skeleton-title" }),
100
100
  /* @__PURE__ */ t("div", { className: "text-wr" }),
101
101
  /* @__PURE__ */ t("div", { className: "skeleton-action" })
102
102
  ] }),
103
103
  /* @__PURE__ */ t("div", { className: "skeleton-img" })
104
- ] })), U = ({ limit: i = 3, isLoading: a = !1, keyPrefix: o }) => /* @__PURE__ */ t(h, { children: Array.from({ length: i }, (m, r) => /* @__PURE__ */ t(
105
- O,
104
+ ] })), _ = ({ limit: i = 3, isLoading: a = !1, keyPrefix: o }) => /* @__PURE__ */ t(h, { children: Array.from({ length: i }, (m, r) => /* @__PURE__ */ t(
105
+ U,
106
106
  {
107
107
  isLoading: a
108
108
  },
109
109
  `${o}-skeleton-product-card-${r}`
110
- )) }), _ = ({
110
+ )) }), D = ({
111
111
  children: i,
112
112
  fallbackComponent: a = /* @__PURE__ */ t(h, {}),
113
113
  isLoading: o = !1,
114
114
  limit: m,
115
115
  keyPrefix: r
116
- }) => /* @__PURE__ */ t(W, { fallbackComponent: a, children: o === !0 ? /* @__PURE__ */ t(
117
- U,
116
+ }) => /* @__PURE__ */ t(x, { fallbackComponent: a, children: o === !0 ? /* @__PURE__ */ t(
117
+ _,
118
118
  {
119
119
  isLoading: o,
120
120
  limit: m,
121
121
  keyPrefix: r
122
122
  }
123
- ) : i }), y = x(L), ee = u((i, a) => {
123
+ ) : i }), y = M(L), te = u((i, a) => {
124
124
  const {
125
125
  icon: o,
126
126
  title: m,
127
127
  items: r,
128
128
  buttonText: c,
129
- limit: n = 3,
129
+ limit: l = 3,
130
130
  options: d,
131
- onButtonAction: T = () => {
131
+ selectedOption: T = [],
132
+ onButtonAction: $ = () => {
132
133
  },
133
134
  buttonLink: b,
134
135
  onSelectOption: k = () => {
135
136
  },
136
- isLoading: $ = !1,
137
+ isLoading: B = !1,
137
138
  onSelectCard: s = () => {
138
139
  }
139
- } = i, w = P(), B = M(() => /* @__PURE__ */ t(h, { children: w === !0 ? r == null ? void 0 : r.map((e, p) => /* @__PURE__ */ t(
140
+ } = i, w = z(), W = P(() => /* @__PURE__ */ t(h, { children: w === !0 ? r == null ? void 0 : r.map((e, p) => /* @__PURE__ */ t(
140
141
  y,
141
142
  {
142
143
  title: e == null ? void 0 : e.title,
@@ -146,7 +147,7 @@ const F = f.div`
146
147
  onCardClick: () => s(e)
147
148
  },
148
149
  p
149
- )) : r == null ? void 0 : r.slice(0, n).map((e, p) => /* @__PURE__ */ t(
150
+ )) : r == null ? void 0 : r.slice(0, l).map((e, p) => /* @__PURE__ */ t(
150
151
  y,
151
152
  {
152
153
  title: e == null ? void 0 : e.title,
@@ -156,10 +157,10 @@ const F = f.div`
156
157
  onCardClick: () => s(e)
157
158
  },
158
159
  p
159
- )) }), [r, w, n, s]);
160
- return /* @__PURE__ */ l(I, { ref: a, children: [
161
- /* @__PURE__ */ l("div", { className: "regular-title", children: [
162
- /* @__PURE__ */ l("div", { className: "regular-title-text", children: [
160
+ )) }), [r, w, l, s]);
161
+ return /* @__PURE__ */ n(O, { ref: a, children: [
162
+ /* @__PURE__ */ n("div", { className: "regular-title", children: [
163
+ /* @__PURE__ */ n("div", { className: "regular-title-text", children: [
163
164
  v(o) && /* @__PURE__ */ t("i", { className: o }),
164
165
  /* @__PURE__ */ t("span", { children: m })
165
166
  ] }),
@@ -169,7 +170,7 @@ const F = f.div`
169
170
  type: "button",
170
171
  btnType: "tinted",
171
172
  color: "gray",
172
- onClick: () => T(b),
173
+ onClick: () => $(b),
173
174
  borderRadius: "curved",
174
175
  children: c
175
176
  }
@@ -179,6 +180,7 @@ const F = f.div`
179
180
  E,
180
181
  {
181
182
  items: d,
183
+ selectedIds: T,
182
184
  onRemove: (e) => {
183
185
  k(e);
184
186
  },
@@ -190,17 +192,17 @@ const F = f.div`
190
192
  noMargin: !0
191
193
  }
192
194
  ),
193
- /* @__PURE__ */ t(F, { limit: n, children: /* @__PURE__ */ t(
194
- _,
195
+ /* @__PURE__ */ t(F, { limit: l, children: /* @__PURE__ */ t(
196
+ D,
195
197
  {
196
- isLoading: $,
197
- limit: n,
198
+ isLoading: B,
199
+ limit: l,
198
200
  keyPrefix: "explore-landing",
199
- children: B
201
+ children: W
200
202
  }
201
203
  ) })
202
204
  ] });
203
205
  });
204
206
  export {
205
- ee as default
207
+ te as default
206
208
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),p=require("react"),c=require("./utils-BXPz9bck.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-CtNoHdBj.cjs"),h=d.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),p=require("react"),c=require("./utils-BXPz9bck.cjs"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-CtNoHdBj.cjs"),h=o.styled.div`
2
2
  width: 7.5rem;
3
3
  height: auto;
4
4
  max-height: 7.5rem;
@@ -12,7 +12,7 @@
12
12
  height: auto;
13
13
  }
14
14
 
15
- @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
15
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
16
16
  width: 4.5rem;
17
17
  height: auto;
18
18
  max-height: 4.5rem;
@@ -22,16 +22,16 @@
22
22
  height: auto;
23
23
  }
24
24
  }
25
- `,_=d.styled.div`
25
+ `,_=o.styled.div`
26
26
  width: 7.5rem;
27
27
  height: 7.5rem;
28
28
  background: ${c.linearGradientAnimation("-90deg")};
29
29
 
30
- @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
30
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
31
31
  width: 4.5rem;
32
32
  height: 4.5rem;
33
33
  }
34
- `,m=p.forwardRef(({imageComponent:t,image:i,onSelectCard:r},n)=>e.jsx(h,{children:c.isDefined(t)?t:e.jsx("img",{src:i,className:"wrapper__image",onSelectCard:r})})),g=p.forwardRef(({},t)=>e.jsx(_,{})),w=d.styled.div`
34
+ `,m=p.forwardRef(({imageComponent:t,image:i,onSelectCard:r},n)=>e.jsx(h,{children:c.isDefined(t)?t:e.jsx("img",{src:i,className:"wrapper__image",onClick:r})})),g=p.forwardRef(({},t)=>e.jsx(_,{})),w=o.styled.div`
35
35
  display: flex;
36
36
  flex-direction: column;
37
37
  align-items: flex-start;
@@ -80,7 +80,7 @@
80
80
  }
81
81
  }
82
82
 
83
- @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
83
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
84
84
  & .wrapper__content {
85
85
  align-content: center;
86
86
  gap: 1rem;
@@ -37,14 +37,7 @@ const g = d.div`
37
37
  height: 4.5rem;
38
38
  }
39
39
  `, w = o(
40
- ({ imageComponent: t, image: i, onSelectCard: r }, n) => /* @__PURE__ */ e(g, { children: s(t) ? t : /* @__PURE__ */ e(
41
- "img",
42
- {
43
- src: i,
44
- className: "wrapper__image",
45
- onSelectCard: r
46
- }
47
- ) })
40
+ ({ imageComponent: t, image: i, onSelectCard: r }, n) => /* @__PURE__ */ e(g, { children: s(t) ? t : /* @__PURE__ */ e("img", { src: i, className: "wrapper__image", onClick: r }) })
48
41
  ), f = o(({}, t) => /* @__PURE__ */ e(_, {})), x = d.div`
49
42
  display: flex;
50
43
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),l=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-CtNoHdBj.cjs"),o=require("./utils-BXPz9bck.cjs"),N=require("./Icon.cjs"),k=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),I=require("./useEffectOnce-DFrzfNzT.cjs"),E=d.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),l=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-CtNoHdBj.cjs"),o=require("./utils-BXPz9bck.cjs"),k=require("./Icon.cjs"),I=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),E=require("./useEffectOnce-DFrzfNzT.cjs"),M=d.styled.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: fit-content;
@@ -46,12 +46,12 @@
46
46
  ${o.truncateTextInRows(2)}
47
47
  }
48
48
  }
49
- `,M=d.styled.div`
49
+ `,R=d.styled.div`
50
50
  width: 100%;
51
51
  height: 11.625rem;
52
52
  border-radius: 0.75rem;
53
53
  background: ${o.linearGradientAnimation("-90deg")};
54
- `,R=d.styled.div`
54
+ `,q=d.styled.div`
55
55
  display: flex;
56
56
  flex-direction: column;
57
57
  align-items: center;
@@ -117,7 +117,7 @@
117
117
  white-space: nowrap;
118
118
  }
119
119
  }
120
- `,q=d.styled.div`
120
+ `,z=d.styled.div`
121
121
  width: 7.5rem;
122
122
  width: 7.5rem;
123
123
  border-radius: 999px;
@@ -127,7 +127,7 @@
127
127
  width: 7.5rem;
128
128
  height: 2.5rem;
129
129
  }
130
- `,z=l.forwardRef(({},i)=>r.jsx(q,{})),O=l.forwardRef(({text:i,isActive:s,icon:t,onSelectCard:n=()=>{}},p)=>r.jsxs(R,{className:s?"active":"",onClick:n,children:[r.jsx(N,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),C=l.forwardRef(({image:i,imageComponent:s,title:t,description:n,className:p,onSelectCard:c=()=>{}},x)=>{const{theme:m}=k.useTheme();return r.jsxs(E,{theme:m,className:p,onClick:c,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}),n&&r.jsx("div",{className:"wrapper__description",children:n})]})]})}),F=l.forwardRef(({},i)=>r.jsxs(M,{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"})]})]})),L=d.styled.div`
130
+ `,O=l.forwardRef(({},i)=>r.jsx(z,{})),C=l.forwardRef(({text:i,isActive:a,icon:t,onSelectCard:n=()=>{}},p)=>r.jsxs(q,{className:a?"active":"",onClick:n,children:[r.jsx(k,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),F=l.forwardRef(({image:i,imageComponent:a,title:t,description:n,className:p,onSelectCard:m=()=>{}},u)=>{const{theme:c}=I.useTheme();return r.jsxs(M,{theme:c,className:p,onClick:m,children:[o.isDefined(a)?a:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),n&&r.jsx("div",{className:"wrapper__description",children:n})]})]})}),A=l.forwardRef(({},i)=>r.jsxs(R,{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"})]})]})),L=d.styled.div`
131
131
  display: flex;
132
132
  flex-direction: column;
133
133
  align-items: center;
@@ -191,4 +191,4 @@
191
191
  grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCardsForMobile}, minmax(0, 1fr))`};
192
192
  }
193
193
  }
194
- `,W=l.forwardRef(({title:i,subtitle:s,tags:t=[],items:n=[],limitTags:p=5,limitTagsForMobile:c=5,limit:x=3,limitForMobile:m=2,onSelectTag:_=()=>{},onSelectCard:f=()=>{}},j)=>{var u,y;const w=e=>{_==null||_(e)},h=e=>{f==null||f(e)};return I.useEffectOnce(()=>{const e=()=>{document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach(v=>{const b=v.getBoundingClientRect().height,$=Math.ceil((b+10)/20);v.style.gridRowEnd=`span ${$}`})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),r.jsxs(L,{ref:j,limitTags:p,limitTagsForMobile:c,limitCards:x,limitCardsForMobile:m,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:t&&(t==null?void 0:t.length)>0?t==null?void 0:t.map((e,a)=>r.jsx(O,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.text,onSelectCard:()=>w==null?void 0:w(e)},`field-of-interests-masonry-tag__${a+1}`)):(u=Array.from("12345"))==null?void 0:u.map((e,a)=>r.jsx(z,{},`field-of-interests-masonry-tag-skeleton__${a+1}`))}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,a)=>r.jsx(C,{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:()=>h==null?void 0:h(e==null?void 0:e.uuid),className:"wrapper__card"},`field-of-interests-with-tags-card__${a+1}`)):(y=Array.from("12345"))==null?void 0:y.map((e,a)=>r.jsx(F,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=W;
194
+ `,W=l.forwardRef(({title:i,subtitle:a,tags:t=[],items:n=[],limitTags:p=5,limitTagsForMobile:m=5,limit:u=3,limitForMobile:c=2,selectedTag:_,onSelectTag:f=()=>{},onSelectCard:w=()=>{}},b)=>{var y,v;const h=e=>{f==null||f(e)},x=e=>{w==null||w(e)};return E.useEffectOnce(()=>{const e=()=>{document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach(j=>{const $=j.getBoundingClientRect().height,N=Math.ceil(($+10)/20);j.style.gridRowEnd=`span ${N}`})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),r.jsxs(L,{ref:b,limitTags:p,limitTagsForMobile:m,limitCards:u,limitCardsForMobile:c,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),a&&r.jsx("div",{className:"wrapper__subtitle",children:a})]}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.length)>0?t==null?void 0:t.map((e,s)=>r.jsx(C,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.text,isActive:(e==null?void 0:e.uuid)===(_==null?void 0:_.uuid),onSelectCard:()=>h==null?void 0:h(e)},`field-of-interests-masonry-tag__${s+1}`)):(y=Array.from("12345"))==null?void 0:y.map((e,s)=>r.jsx(O,{},`field-of-interests-masonry-tag-skeleton__${s+1}`))}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,s)=>r.jsx(F,{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:()=>x==null?void 0:x(e==null?void 0:e.uuid),className:"wrapper__card"},`field-of-interests-with-tags-card__${s+1}`)):(v=Array.from("12345"))==null?void 0:v.map((e,s)=>r.jsx(A,{},`field-of-interests-with-tags-card-skeleton__${s+1}`))})]})});module.exports=W;
@@ -1,12 +1,12 @@
1
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 { M as w } from "./consts-C1uHV4xc.js";
5
- import { t as b, m as $, l as M } from "./utils-DCs-SbIv.js";
6
- import I from "./Icon.js";
7
- import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- import { u as E } from "./useEffectOnce-guOKBPuL.js";
9
- const F = p.div`
4
+ import { M as u } from "./consts-C1uHV4xc.js";
5
+ import { t as $, m as N, l as I } from "./utils-DCs-SbIv.js";
6
+ import C from "./Icon.js";
7
+ import { u as E } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ import { u as F } from "./useEffectOnce-guOKBPuL.js";
9
+ const O = p.div`
10
10
  display: flex;
11
11
  width: 100%;
12
12
  height: fit-content;
@@ -41,7 +41,7 @@ const F = p.div`
41
41
  font-style: normal;
42
42
  font-weight: 500;
43
43
  line-height: 1.5rem;
44
- ${b(2)}
44
+ ${$(2)}
45
45
  }
46
46
 
47
47
  & .wrapper__description {
@@ -51,15 +51,15 @@ const F = p.div`
51
51
  font-weight: 400;
52
52
  line-height: 1rem;
53
53
  letter-spacing: 0.025rem;
54
- ${b(2)}
54
+ ${$(2)}
55
55
  }
56
56
  }
57
- `, O = p.div`
57
+ `, W = p.div`
58
58
  width: 100%;
59
59
  height: 11.625rem;
60
60
  border-radius: 0.75rem;
61
- background: ${$("-90deg")};
62
- `, W = p.div`
61
+ background: ${N("-90deg")};
62
+ `, A = p.div`
63
63
  display: flex;
64
64
  flex-direction: column;
65
65
  align-items: center;
@@ -98,7 +98,7 @@ const F = p.div`
98
98
  }
99
99
  }
100
100
 
101
- @media (max-width: ${w + "px"}) {
101
+ @media (max-width: ${u + "px"}) {
102
102
  flex-direction: row;
103
103
  align-items: center;
104
104
  gap: 0.25rem;
@@ -129,44 +129,44 @@ const F = p.div`
129
129
  width: 7.5rem;
130
130
  width: 7.5rem;
131
131
  border-radius: 999px;
132
- background: ${$("-90deg")};
132
+ background: ${N("-90deg")};
133
133
 
134
- @media (max-width: ${w + "px"}) {
134
+ @media (max-width: ${u + "px"}) {
135
135
  width: 7.5rem;
136
136
  height: 2.5rem;
137
137
  }
138
- `, A = l(({}, r) => /* @__PURE__ */ i(j, {})), L = l(
138
+ `, L = l(({}, r) => /* @__PURE__ */ i(j, {})), R = l(
139
139
  ({ text: r, isActive: o, icon: t, onSelectCard: a = () => {
140
- } }, d) => /* @__PURE__ */ s(W, { className: o ? "active" : "", onClick: a, children: [
141
- /* @__PURE__ */ i(I, { icon: t, className: "wrapper__icon" }),
140
+ } }, m) => /* @__PURE__ */ s(A, { className: o ? "active" : "", onClick: a, children: [
141
+ /* @__PURE__ */ i(C, { icon: t, className: "wrapper__icon" }),
142
142
  /* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
143
143
  ] })
144
- ), R = l(
144
+ ), q = l(
145
145
  ({
146
146
  image: r,
147
147
  imageComponent: o,
148
148
  title: t,
149
149
  description: a,
150
- className: d,
151
- onSelectCard: m = () => {
150
+ className: m,
151
+ onSelectCard: d = () => {
152
152
  }
153
153
  }, x) => {
154
- const { theme: c } = C();
155
- return /* @__PURE__ */ s(F, { theme: c, className: d, onClick: m, children: [
156
- M(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
154
+ const { theme: c } = E();
155
+ return /* @__PURE__ */ s(O, { theme: c, className: m, onClick: d, children: [
156
+ I(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
157
157
  /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
158
158
  t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
159
159
  a && /* @__PURE__ */ i("div", { className: "wrapper__description", children: a })
160
160
  ] })
161
161
  ] });
162
162
  }
163
- ), T = l(({}, r) => /* @__PURE__ */ s(O, { children: [
163
+ ), B = l(({}, r) => /* @__PURE__ */ s(W, { children: [
164
164
  /* @__PURE__ */ i("div", { className: "wrapper__image" }),
165
165
  /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
166
166
  /* @__PURE__ */ i("div", { className: "wrapper__title" }),
167
167
  /* @__PURE__ */ i("div", { className: "wrapper__description" })
168
168
  ] })
169
- ] })), q = p.div`
169
+ ] })), G = p.div`
170
170
  display: flex;
171
171
  flex-direction: column;
172
172
  align-items: center;
@@ -218,7 +218,7 @@ const F = p.div`
218
218
  }
219
219
  }
220
220
 
221
- @media (max-width: ${w + "px"}) {
221
+ @media (max-width: ${u + "px"}) {
222
222
  & .wrapper__tags {
223
223
  display: flex;
224
224
  overflow-x: scroll;
@@ -230,43 +230,44 @@ const F = p.div`
230
230
  grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCardsForMobile}, minmax(0, 1fr))`};
231
231
  }
232
232
  }
233
- `, K = l(
233
+ `, U = l(
234
234
  ({
235
235
  title: r,
236
236
  subtitle: o,
237
237
  tags: t = [],
238
238
  items: a = [],
239
- limitTags: d = 5,
240
- limitTagsForMobile: m = 5,
239
+ limitTags: m = 5,
240
+ limitTagsForMobile: d = 5,
241
241
  limit: x = 3,
242
242
  limitForMobile: c = 2,
243
- onSelectTag: f = () => {
243
+ selectedTag: f,
244
+ onSelectTag: _ = () => {
244
245
  },
245
- onSelectCard: _ = () => {
246
+ onSelectCard: h = () => {
246
247
  }
247
- }, N) => {
248
- var u, y;
249
- const h = (e) => {
250
- f == null || f(e);
251
- }, g = (e) => {
248
+ }, k) => {
249
+ var y, v;
250
+ const w = (e) => {
252
251
  _ == null || _(e);
252
+ }, g = (e) => {
253
+ h == null || h(e);
253
254
  };
254
- return E(() => {
255
+ return F(() => {
255
256
  const e = () => {
256
- document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach((v) => {
257
- const k = v.getBoundingClientRect().height, z = Math.ceil((k + 10) / 20);
258
- v.style.gridRowEnd = `span ${z}`;
257
+ document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach((b) => {
258
+ const z = b.getBoundingClientRect().height, M = Math.ceil((z + 10) / 20);
259
+ b.style.gridRowEnd = `span ${M}`;
259
260
  });
260
261
  };
261
262
  return e(), window.addEventListener("resize", e), () => {
262
263
  window.removeEventListener("resize", e);
263
264
  };
264
265
  }), /* @__PURE__ */ s(
265
- q,
266
+ G,
266
267
  {
267
- ref: N,
268
- limitTags: d,
269
- limitTagsForMobile: m,
268
+ ref: k,
269
+ limitTags: m,
270
+ limitTagsForMobile: d,
270
271
  limitCards: x,
271
272
  limitCardsForMobile: c,
272
273
  children: [
@@ -275,20 +276,21 @@ const F = p.div`
275
276
  o && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: o })
276
277
  ] }),
277
278
  /* @__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(
278
- L,
279
+ R,
279
280
  {
280
281
  icon: e == null ? void 0 : e.icon,
281
282
  text: e == null ? void 0 : e.text,
282
- onSelectCard: () => h == null ? void 0 : h(e)
283
+ isActive: (e == null ? void 0 : e.uuid) === (f == null ? void 0 : f.uuid),
284
+ onSelectCard: () => w == null ? void 0 : w(e)
283
285
  },
284
286
  `field-of-interests-masonry-tag__${n + 1}`
285
- )) : (u = Array.from("12345")) == null ? void 0 : u.map((e, n) => /* @__PURE__ */ i(
286
- A,
287
+ )) : (y = Array.from("12345")) == null ? void 0 : y.map((e, n) => /* @__PURE__ */ i(
288
+ L,
287
289
  {},
288
290
  `field-of-interests-masonry-tag-skeleton__${n + 1}`
289
291
  )) }),
290
292
  /* @__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(
291
- R,
293
+ q,
292
294
  {
293
295
  image: e == null ? void 0 : e.image,
294
296
  imageComponent: e == null ? void 0 : e.imageComponent,
@@ -298,8 +300,8 @@ const F = p.div`
298
300
  className: "wrapper__card"
299
301
  },
300
302
  `field-of-interests-with-tags-card__${n + 1}`
301
- )) : (y = Array.from("12345")) == null ? void 0 : y.map((e, n) => /* @__PURE__ */ i(
302
- T,
303
+ )) : (v = Array.from("12345")) == null ? void 0 : v.map((e, n) => /* @__PURE__ */ i(
304
+ B,
303
305
  {},
304
306
  `field-of-interests-with-tags-card-skeleton__${n + 1}`
305
307
  )) })
@@ -309,5 +311,5 @@ const F = p.div`
309
311
  }
310
312
  );
311
313
  export {
312
- K as default
314
+ U as default
313
315
  };
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),p=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./utils-BXPz9bck.cjs"),y=require("./Icon.cjs"),b=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=require("./consts-CtNoHdBj.cjs"),k=m.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),p=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./utils-BXPz9bck.cjs"),b=require("./Icon.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),k=require("./consts-CtNoHdBj.cjs"),$=m.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -58,12 +58,12 @@
58
58
  }
59
59
  }
60
60
  }
61
- `,$=m.styled.div`
61
+ `,N=m.styled.div`
62
62
  width: 100%;
63
63
  height: 11.625rem;
64
64
  border-radius: 0.75rem;
65
65
  background: ${l.linearGradientAnimation("-90deg")};
66
- `,N=m.styled.div`
66
+ `,I=m.styled.div`
67
67
  display: flex;
68
68
  padding: 0 0.5rem 0 0;
69
69
  align-items: center;
@@ -107,12 +107,12 @@
107
107
  color: var(--white, #fff);
108
108
  }
109
109
  }
110
- `,I=m.styled.div`
110
+ `,C=m.styled.div`
111
111
  width: 7rem;
112
112
  height: 3rem;
113
113
  border-radius: 999px;
114
114
  background: ${l.linearGradientAnimation("-90deg")};
115
- `,C=p.forwardRef(({},t)=>r.jsx(I,{})),W=p.forwardRef(({name:t,isActive:n,icon:i,onSelectCard:o=()=>{}},d)=>r.jsxs(N,{className:n?"active":"",onClick:o,children:[r.jsx(y,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),F=p.forwardRef(({image:t,imageComponent:n,name:i,description:o,onSelectCard:d=()=>{}},x)=>{const{theme:c}=b.useTheme();return r.jsxs(k,{theme:c,onClick:d,children:[l.isDefined(n)?n:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),o&&r.jsx("div",{className:"wrapper__description",children:o})]})]})}),R=p.forwardRef(({},t)=>r.jsx($,{})),q=m.styled.div`
115
+ `,W=p.forwardRef(({},i)=>r.jsx(C,{})),F=p.forwardRef(({name:i,isActive:n,icon:t,onSelectCard:a=()=>{}},d)=>r.jsxs(I,{className:n?"active":"",onClick:a,children:[r.jsx(b,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),R=p.forwardRef(({image:i,imageComponent:n,name:t,description:a,onSelectCard:d=()=>{}},u)=>{const{theme:c}=j.useTheme();return r.jsxs($,{theme:c,onClick:d,children:[l.isDefined(n)?n: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})]})]})}),q=p.forwardRef(({},i)=>r.jsx(N,{})),z=m.styled.div`
116
116
  display: flex;
117
117
  flex-direction: column;
118
118
  align-items: center;
@@ -153,14 +153,14 @@
153
153
 
154
154
  & .wrapper__cards {
155
155
  display: grid;
156
- grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCards}, minmax(0, 1fr))`};
156
+ grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCards}, minmax(0, 1fr))`};
157
157
  justify-content: center;
158
158
  align-items: center;
159
159
  gap: 1.5rem;
160
160
  width: 100%;
161
161
  }
162
162
 
163
- @media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
163
+ @media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
164
164
  & .wrapper__tags {
165
165
  overflow-x: scroll;
166
166
  justify-content: flex-start;
@@ -182,8 +182,8 @@
182
182
  }
183
183
 
184
184
  & .wrapper__cards {
185
- grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
185
+ grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCardsForMobile}, minmax(0, 1fr))`};
186
186
  gap: 1rem;
187
187
  }
188
188
  }
189
- `,T=p.forwardRef(({title:t,subtitle:n,tags:i=[],limitTags:o=7,limitTagsForMobile:d=7,limit:x=3,limitForMobile:c=2,items:s=[],onSelectTag:f=()=>{},onSelectCard:_=()=>{},getImage:v=()=>{}},z)=>{var g,u;const h=e=>{f==null||f(e)},w=e=>{_==null||_(e)};return r.jsxs(q,{limitTags:o,limitTagsForMobile:d,limitCards:x,limitCardsForMobile:c,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),n&&r.jsx("div",{className:"wrapper__subtitle",children:n})]}),r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.length)>0?i==null?void 0:i.map((e,a)=>r.jsx(W,{icon:e==null?void 0:e.icon,name:e==null?void 0:e.name,onSelectCard:()=>h==null?void 0:h(e)},`field-of-interests-with-tags-card-tag__${a+1}`)):(g=Array.from("123"))==null?void 0:g.map((e,a)=>r.jsx(C,{},`field-of-interests-with-tags-card-tag-skeleton__${a+1}`))}),r.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((e,a)=>r.jsx(F,{image:v(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:()=>w==null?void 0:w(e)},`field-of-interests-with-tags-card__${a+1}`)):(u=Array.from("123"))==null?void 0:u.map((e,a)=>r.jsx(R,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=T;
189
+ `,O=p.forwardRef(({title:i,subtitle:n,tags:t=[],limitTags:a=7,limitTagsForMobile:d=7,limit:u=3,limitForMobile:c=2,items:s=[],selectedTag:f,onSelectTag:_=()=>{},onSelectCard:h=()=>{},getImage:y=()=>{}},A)=>{var g,v;const w=e=>{_==null||_(e)},x=e=>{h==null||h(e)};return r.jsxs(z,{limitTags:a,limitTagsForMobile:d,limitCards:u,limitCardsForMobile:c,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),n&&r.jsx("div",{className:"wrapper__subtitle",children:n})]}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.length)>0?t==null?void 0:t.map((e,o)=>r.jsx(F,{icon:e==null?void 0:e.icon,name:e==null?void 0:e.name,isActive:(e==null?void 0:e.uuid)===(f==null?void 0:f.uuid),onSelectCard:()=>w==null?void 0:w(e)},`field-of-interests-with-tags-card-tag__${o+1}`)):(g=Array.from("123"))==null?void 0:g.map((e,o)=>r.jsx(W,{},`field-of-interests-with-tags-card-tag-skeleton__${o+1}`))}),r.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((e,o)=>r.jsx(R,{image:y(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__${o+1}`)):(v=Array.from("123"))==null?void 0:v.map((e,o)=>r.jsx(q,{},`field-of-interests-with-tags-card-skeleton__${o+1}`))})]})});module.exports=O;
@@ -1,11 +1,11 @@
1
1
  import { jsx as i, jsxs as l } from "react/jsx-runtime";
2
2
  import { forwardRef as p } from "react";
3
3
  import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { t as v, m as y, l as k } from "./utils-DCs-SbIv.js";
5
- import $ from "./Icon.js";
6
- import { u as N } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
- import { M as C } from "./consts-C1uHV4xc.js";
8
- const I = m.div`
4
+ import { t as y, m as b, l as $ } from "./utils-DCs-SbIv.js";
5
+ import N from "./Icon.js";
6
+ import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
+ import { M as I } from "./consts-C1uHV4xc.js";
8
+ const W = m.div`
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  align-items: flex-start;
@@ -42,7 +42,7 @@ const I = m.div`
42
42
  font-style: normal;
43
43
  font-weight: 500;
44
44
  line-height: 1.5rem;
45
- ${v(2)}
45
+ ${y(2)}
46
46
  }
47
47
 
48
48
  & .wrapper__description {
@@ -52,7 +52,7 @@ const I = m.div`
52
52
  font-weight: 400;
53
53
  line-height: 1rem;
54
54
  letter-spacing: 0.025rem;
55
- ${v(2)}
55
+ ${y(2)}
56
56
  }
57
57
  }
58
58
 
@@ -65,12 +65,12 @@ const I = m.div`
65
65
  }
66
66
  }
67
67
  }
68
- `, W = m.div`
68
+ `, F = m.div`
69
69
  width: 100%;
70
70
  height: 11.625rem;
71
71
  border-radius: 0.75rem;
72
- background: ${y("-90deg")};
73
- `, F = m.div`
72
+ background: ${b("-90deg")};
73
+ `, j = m.div`
74
74
  display: flex;
75
75
  padding: 0 0.5rem 0 0;
76
76
  align-items: center;
@@ -114,30 +114,30 @@ const I = m.div`
114
114
  color: var(--white, #fff);
115
115
  }
116
116
  }
117
- `, j = m.div`
117
+ `, z = m.div`
118
118
  width: 7rem;
119
119
  height: 3rem;
120
120
  border-radius: 999px;
121
- background: ${y("-90deg")};
122
- `, z = p(({}, r) => /* @__PURE__ */ i(j, {})), O = p(
121
+ background: ${b("-90deg")};
122
+ `, O = p(({}, r) => /* @__PURE__ */ i(z, {})), A = p(
123
123
  ({ name: r, isActive: n, icon: t, onSelectCard: s = () => {
124
- } }, f) => /* @__PURE__ */ l(F, { className: n ? "active" : "", onClick: s, children: [
125
- /* @__PURE__ */ i($, { icon: t, className: "wrapper__icon" }),
124
+ } }, f) => /* @__PURE__ */ l(j, { className: n ? "active" : "", onClick: s, children: [
125
+ /* @__PURE__ */ i(N, { icon: t, className: "wrapper__icon" }),
126
126
  /* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
127
127
  ] })
128
- ), T = p(
128
+ ), M = p(
129
129
  ({ image: r, imageComponent: n, name: t, description: s, onSelectCard: f = () => {
130
- } }, g) => {
131
- const { theme: d } = N();
132
- return /* @__PURE__ */ l(I, { theme: d, onClick: f, children: [
133
- k(n) ? n : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
130
+ } }, u) => {
131
+ const { theme: d } = C();
132
+ return /* @__PURE__ */ l(W, { theme: d, onClick: f, children: [
133
+ $(n) ? n : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
134
134
  /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
135
135
  t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
136
136
  s && /* @__PURE__ */ i("div", { className: "wrapper__description", children: s })
137
137
  ] })
138
138
  ] });
139
139
  }
140
- ), M = p(({}, r) => /* @__PURE__ */ i(W, {})), A = m.div`
140
+ ), E = p(({}, r) => /* @__PURE__ */ i(F, {})), D = m.div`
141
141
  display: flex;
142
142
  flex-direction: column;
143
143
  align-items: center;
@@ -185,7 +185,7 @@ const I = m.div`
185
185
  width: 100%;
186
186
  }
187
187
 
188
- @media (max-width: ${C + "px"}) {
188
+ @media (max-width: ${I + "px"}) {
189
189
  & .wrapper__tags {
190
190
  overflow-x: scroll;
191
191
  justify-content: flex-start;
@@ -211,68 +211,70 @@ const I = m.div`
211
211
  gap: 1rem;
212
212
  }
213
213
  }
214
- `, X = p(
214
+ `, Z = p(
215
215
  ({
216
216
  title: r,
217
217
  subtitle: n,
218
218
  tags: t = [],
219
219
  limitTags: s = 7,
220
220
  limitTagsForMobile: f = 7,
221
- limit: g = 3,
221
+ limit: u = 3,
222
222
  limitForMobile: d = 2,
223
- items: a = [],
224
- onSelectTag: c = () => {
223
+ items: o = [],
224
+ selectedTag: c,
225
+ onSelectTag: h = () => {
225
226
  },
226
- onSelectCard: h = () => {
227
+ onSelectCard: _ = () => {
227
228
  },
228
- getImage: b = () => {
229
+ getImage: k = () => {
229
230
  }
230
- }, E) => {
231
- var x, u;
232
- const _ = (e) => {
233
- c == null || c(e);
234
- }, w = (e) => {
231
+ }, G) => {
232
+ var x, v;
233
+ const w = (e) => {
235
234
  h == null || h(e);
235
+ }, g = (e) => {
236
+ _ == null || _(e);
236
237
  };
237
238
  return /* @__PURE__ */ l(
238
- A,
239
+ D,
239
240
  {
240
241
  limitTags: s,
241
242
  limitTagsForMobile: f,
242
- limitCards: g,
243
+ limitCards: u,
243
244
  limitCardsForMobile: d,
244
245
  children: [
245
246
  /* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
246
247
  r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
247
248
  n && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: n })
248
249
  ] }),
249
- /* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, o) => /* @__PURE__ */ i(
250
- O,
250
+ /* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, a) => /* @__PURE__ */ i(
251
+ A,
251
252
  {
252
253
  icon: e == null ? void 0 : e.icon,
253
254
  name: e == null ? void 0 : e.name,
254
- onSelectCard: () => _ == null ? void 0 : _(e)
255
+ isActive: (e == null ? void 0 : e.uuid) === (c == null ? void 0 : c.uuid),
256
+ onSelectCard: () => w == null ? void 0 : w(e)
255
257
  },
256
- `field-of-interests-with-tags-card-tag__${o + 1}`
257
- )) : (x = Array.from("123")) == null ? void 0 : x.map((e, o) => /* @__PURE__ */ i(
258
- z,
258
+ `field-of-interests-with-tags-card-tag__${a + 1}`
259
+ )) : (x = Array.from("123")) == null ? void 0 : x.map((e, a) => /* @__PURE__ */ i(
260
+ O,
259
261
  {},
260
- `field-of-interests-with-tags-card-tag-skeleton__${o + 1}`
262
+ `field-of-interests-with-tags-card-tag-skeleton__${a + 1}`
261
263
  )) }),
262
- /* @__PURE__ */ i("div", { className: "wrapper__cards", children: a && (a == null ? void 0 : a.length) > 0 ? a == null ? void 0 : a.map((e, o) => /* @__PURE__ */ i(
263
- T,
264
+ /* @__PURE__ */ i("div", { className: "wrapper__cards", children: o && (o == null ? void 0 : o.length) > 0 ? o == null ? void 0 : o.map((e, a) => /* @__PURE__ */ i(
265
+ M,
264
266
  {
265
- image: b(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid),
267
+ image: k(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid),
266
268
  imageComponent: e == null ? void 0 : e.imageComponent,
267
269
  name: e == null ? void 0 : e.name,
268
270
  description: (e == null ? void 0 : e.shortDescription) || (e == null ? void 0 : e.description),
269
- onSelectCard: () => w == null ? void 0 : w(e)
271
+ onSelectCard: () => g == null ? void 0 : g(e)
270
272
  },
271
- `field-of-interests-with-tags-card__${o + 1}`
272
- )) : (u = Array.from("123")) == null ? void 0 : u.map((e, o) => /* @__PURE__ */ i(
273
- M,
273
+ `field-of-interests-with-tags-card__${a + 1}`
274
+ )) : (v = Array.from("123")) == null ? void 0 : v.map((e, a) => /* @__PURE__ */ i(
275
+ E,
274
276
  {},
275
- `field-of-interests-with-tags-card-skeleton__${o + 1}`
277
+ `field-of-interests-with-tags-card-skeleton__${a + 1}`
276
278
  )) })
277
279
  ]
278
280
  }
@@ -280,5 +282,5 @@ const I = m.div`
280
282
  }
281
283
  );
282
284
  export {
283
- X as default
285
+ Z as default
284
286
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),d=require("react"),a=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./consts-CtNoHdBj.cjs"),f=require("./index-ryadTWiS.cjs"),v=a.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),d=require("react"),s=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./consts-CtNoHdBj.cjs"),v=require("./index-ryadTWiS.cjs"),b=s.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  padding: 1.25rem;
@@ -19,7 +19,7 @@
19
19
  box-shadow: none;
20
20
  border: none;
21
21
  }
22
- `,b=a.styled.div`
22
+ `,j=s.styled.div`
23
23
  display: grid;
24
24
  grid-template-columns: repeat(4, 1fr);
25
25
  gap: 1.5rem;
@@ -28,7 +28,7 @@
28
28
  grid-template-columns: repeat(2, 1fr);
29
29
  gap: 0.5rem;
30
30
  }
31
- `,j=a.styled.div`
31
+ `,w=s.styled.div`
32
32
  display: flex;
33
33
  flex-direction: column;
34
34
  gap: 0.75rem;
@@ -57,4 +57,4 @@
57
57
  color: var(--primary-500, #f59e0b);
58
58
  }
59
59
  }
60
- `,w=d.forwardRef((c,p)=>{const{title:m,items:t,options:o,onSelectRegion:g=()=>{},onSelectCity:x=()=>{},onSelectOption:u=()=>{}}=c;return e.jsxs(v,{ref:p,children:[e.jsx("div",{className:"wrapper-title",children:m}),(o==null?void 0:o.length)>0&&e.jsx(f.SelectBar,{items:o,onRemove:r=>{},onSelect:(r,i)=>{u(r,i)},labelKey:"name",valueKey:"code",noMargin:!0}),e.jsx(b,{children:t==null?void 0:t.map((r,i)=>{var s;return e.jsxs(j,{children:[e.jsx("div",{className:"region",onClick:()=>g(r),children:r==null?void 0:r.name}),e.jsx("div",{className:"group-items",children:(s=r==null?void 0:r.cities)==null?void 0:s.map((n,h)=>e.jsx(d.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,")"]})]})},i+h))})]},i)})})]})});module.exports=w;
60
+ `,S=d.forwardRef((c,p)=>{const{title:m,items:i,options:o,selectedOption:g=[],onSelectRegion:x=()=>{},onSelectCity:u=()=>{},onSelectOption:h=()=>{}}=c;return e.jsxs(b,{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)},labelKey:"name",valueKey:"code",noMargin:!0}),e.jsx(j,{children:i==null?void 0:i.map((r,t)=>{var a;return e.jsxs(w,{children:[e.jsx("div",{className:"region",onClick:()=>x(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,f)=>e.jsx(d.Fragment,{children:e.jsxs("div",{className:"city",onClick:()=>u(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+f))})]},t)})})]})});module.exports=S;
@@ -1,9 +1,9 @@
1
1
  import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as v, Fragment as x } from "react";
2
+ import { forwardRef as v, Fragment as b } from "react";
3
3
  import { s as l } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as p } from "./consts-C1uHV4xc.js";
5
- import { S as b } from "./index-DXmajb7F.js";
6
- const w = l.div`
5
+ import { S as w } from "./index-DXmajb7F.js";
6
+ const S = l.div`
7
7
  display: flex;
8
8
  flex-direction: column;
9
9
  padding: 1.25rem;
@@ -24,7 +24,7 @@ const w = l.div`
24
24
  box-shadow: none;
25
25
  border: none;
26
26
  }
27
- `, S = l.div`
27
+ `, N = l.div`
28
28
  display: grid;
29
29
  grid-template-columns: repeat(4, 1fr);
30
30
  gap: 1.5rem;
@@ -33,7 +33,7 @@ const w = l.div`
33
33
  grid-template-columns: repeat(2, 1fr);
34
34
  gap: 0.5rem;
35
35
  }
36
- `, N = l.div`
36
+ `, C = l.div`
37
37
  display: flex;
38
38
  flex-direction: column;
39
39
  gap: 0.75rem;
@@ -62,50 +62,50 @@ const w = l.div`
62
62
  color: var(--primary-500, #f59e0b);
63
63
  }
64
64
  }
65
- `, R = v((m, s) => {
65
+ `, O = v((s, m) => {
66
66
  const {
67
67
  title: c,
68
68
  items: t,
69
69
  options: a,
70
- onSelectRegion: g = () => {
70
+ selectedOption: g = [],
71
+ onSelectRegion: f = () => {
71
72
  },
72
- onSelectCity: f = () => {
73
+ onSelectCity: h = () => {
73
74
  },
74
- onSelectOption: h = () => {
75
+ onSelectOption: u = () => {
75
76
  }
76
- } = m;
77
- return /* @__PURE__ */ i(w, { ref: s, children: [
77
+ } = s;
78
+ return /* @__PURE__ */ i(S, { ref: m, children: [
78
79
  /* @__PURE__ */ o("div", { className: "wrapper-title", children: c }),
79
80
  (a == null ? void 0 : a.length) > 0 && /* @__PURE__ */ o(
80
- b,
81
+ w,
81
82
  {
82
83
  items: a,
83
- onRemove: (e) => {
84
- },
84
+ selectedIds: g,
85
85
  onSelect: (e, n) => {
86
- h(e, n);
86
+ u(e, n);
87
87
  },
88
88
  labelKey: "name",
89
89
  valueKey: "code",
90
90
  noMargin: !0
91
91
  }
92
92
  ),
93
- /* @__PURE__ */ o(S, { children: t == null ? void 0 : t.map((e, n) => {
93
+ /* @__PURE__ */ o(N, { children: t == null ? void 0 : t.map((e, n) => {
94
94
  var d;
95
- return /* @__PURE__ */ i(N, { children: [
96
- /* @__PURE__ */ o("div", { className: "region", onClick: () => g(e), children: e == null ? void 0 : e.name }),
97
- /* @__PURE__ */ o("div", { className: "group-items", children: (d = e == null ? void 0 : e.cities) == null ? void 0 : d.map((r, u) => /* @__PURE__ */ o(x, { children: /* @__PURE__ */ i("div", { className: "city", onClick: () => f(r), children: [
95
+ return /* @__PURE__ */ i(C, { children: [
96
+ /* @__PURE__ */ o("div", { className: "region", onClick: () => f(e), children: e == null ? void 0 : e.name }),
97
+ /* @__PURE__ */ o("div", { className: "group-items", children: (d = e == null ? void 0 : e.cities) == null ? void 0 : d.map((r, x) => /* @__PURE__ */ o(b, { children: /* @__PURE__ */ i("div", { className: "city", onClick: () => h(r), children: [
98
98
  /* @__PURE__ */ o("span", { children: r == null ? void 0 : r.name }),
99
99
  /* @__PURE__ */ i("span", { className: "count-txt", children: [
100
100
  "(",
101
101
  r == null ? void 0 : r.count,
102
102
  ")"
103
103
  ] })
104
- ] }) }, n + u)) })
104
+ ] }) }, n + x)) })
105
105
  ] }, n);
106
106
  }) })
107
107
  ] });
108
108
  });
109
109
  export {
110
- R as default
110
+ O as default
111
111
  };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),v=require("react"),j=require("./Button.cjs"),u=require("./skeleton-CtJG0_SN.cjs"),b=require("./utils-BXPz9bck.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),N=require("./consts-CtNoHdBj.cjs"),c=C.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),y=require("react"),v=require("./Button.cjs"),p=require("./skeleton-CtJG0_SN.cjs"),c=require("./utils-BXPz9bck.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-CtNoHdBj.cjs"),C=j.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -66,7 +66,7 @@
66
66
  width: 100%;
67
67
  }
68
68
 
69
- @media (max-width: ${N.MOBILE_SIZE_PX+"px"}) {
69
+ @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
70
70
  & .wrapper__heading {
71
71
  & .wrapper__title {
72
72
  & .title__action {
@@ -87,4 +87,4 @@
87
87
  gap: 1rem;
88
88
  }
89
89
  }
90
- `,q=v.forwardRef(({title:i,subtitle:o,items:n,limit:_=4,limitForMobile:g=2,buttonText:x="Show More",onSelectCard:s=()=>{},onButtonAction:p=()=>{},icon:a,getImage:h=()=>{},getProductImage:f=()=>{},hideProducts:w=!1},y)=>{var m;const r=e=>{s==null||s(e==null?void 0:e.uuid)};return t.jsxs(c,{ref:y,limitCards:_,limitCardsForMobile:g,children:[t.jsxs("div",{className:"wrapper__heading",children:[t.jsxs("div",{className:"wrapper__title",children:[i&&t.jsxs("div",{className:"title__text",children:[b.isDefinedNotEmptyString(a)&&t.jsx("i",{className:a}),t.jsx("span",{children:i})]}),p&&t.jsx(j,{text:x,borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:p})]}),o&&t.jsx("div",{className:"wrapper__subtitle",children:o})]}),t.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,l)=>t.jsx(u.ShopCard,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.ratingArithmeticMean,reviewCount:e==null?void 0:e.reviewCount,products:e==null?void 0:e.products,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>r==null?void 0:r(e==null?void 0:e.uuid),image:h(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,getProductImage:f,canAcceptPayments:e==null?void 0:e.canAcceptPayments,hideProducts:w},`shop-card__${l+1}`)):(m=Array.from("1234"))==null?void 0:m.map((e,l)=>t.jsx(u.ShopCardSkeleton,{},`shop-card-skeleton__${l+1}`))})]})});module.exports=q;
90
+ `,d=y.forwardRef(({title:i,subtitle:s,items:n,limit:m=4,limitForMobile:_=2,buttonText:u="Show More",onSelectCard:g=()=>{},onButtonAction:l=()=>{},icon:o,getImage:x=()=>{},getProductImage:h=()=>{},hideProducts:f=!1},w)=>{var a;return t.jsxs(C,{ref:w,limitCards:m,limitCardsForMobile:_,children:[t.jsxs("div",{className:"wrapper__heading",children:[t.jsxs("div",{className:"wrapper__title",children:[i&&t.jsxs("div",{className:"title__text",children:[c.isDefinedNotEmptyString(o)&&t.jsx("i",{className:o}),t.jsx("span",{children:i})]}),l&&t.jsx(v,{text:u,borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:l})]}),s&&t.jsx("div",{className:"wrapper__subtitle",children:s})]}),t.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,r)=>t.jsx(p.ShopCard,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.ratingArithmeticMean,reviewCount:e==null?void 0:e.reviewCount,products:e==null?void 0:e.products,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>g(e==null?void 0:e.uuid),image:x(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,getProductImage:h,canAcceptPayments:e==null?void 0:e.canAcceptPayments,hideProducts:f},`shop-card__${r+1}`)):(a=Array.from("1234"))==null?void 0:a.map((e,r)=>t.jsx(p.ShopCardSkeleton,{},`shop-card-skeleton__${r+1}`))})]})});module.exports=d;
@@ -1,11 +1,11 @@
1
- import { jsxs as o, jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as v } from "react";
3
- import b from "./Button.js";
4
- import { S as C, a as N } from "./skeleton-iQWpOw9K.js";
5
- import { k as $ } from "./utils-DCs-SbIv.js";
6
- import { s as k } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
- import { M } from "./consts-C1uHV4xc.js";
8
- const S = k.div`
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as y } from "react";
3
+ import v from "./Button.js";
4
+ import { S as C, a as b } from "./skeleton-iQWpOw9K.js";
5
+ import { k as d } from "./utils-DCs-SbIv.js";
6
+ import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
+ import { M as N } from "./consts-C1uHV4xc.js";
8
+ const $ = S.div`
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  align-items: flex-start;
@@ -73,7 +73,7 @@ const S = k.div`
73
73
  width: 100%;
74
74
  }
75
75
 
76
- @media (max-width: ${M + "px"}) {
76
+ @media (max-width: ${N + "px"}) {
77
77
  & .wrapper__heading {
78
78
  & .wrapper__title {
79
79
  & .title__action {
@@ -94,56 +94,53 @@ const S = k.div`
94
94
  gap: 1rem;
95
95
  }
96
96
  }
97
- `, F = v(
97
+ `, I = y(
98
98
  ({
99
99
  title: t,
100
- subtitle: s,
100
+ subtitle: o,
101
101
  items: i,
102
- limit: g = 4,
103
- limitForMobile: f = 2,
104
- buttonText: u = "Show More",
105
- onSelectCard: r = () => {
102
+ limit: m = 4,
103
+ limitForMobile: _ = 2,
104
+ buttonText: g = "Show More",
105
+ onSelectCard: f = () => {
106
106
  },
107
- onButtonAction: m = () => {
107
+ onButtonAction: a = () => {
108
108
  },
109
- icon: a,
110
- getImage: h = () => {
109
+ icon: p,
110
+ getImage: u = () => {
111
111
  },
112
- getProductImage: w = () => {
112
+ getProductImage: h = () => {
113
113
  },
114
- hideProducts: x = !1
115
- }, y) => {
116
- var _;
117
- const l = (e) => {
118
- r == null || r(e == null ? void 0 : e.uuid);
119
- };
120
- return /* @__PURE__ */ o(
121
- S,
114
+ hideProducts: w = !1
115
+ }, x) => {
116
+ var s;
117
+ return /* @__PURE__ */ n(
118
+ $,
122
119
  {
123
- ref: y,
124
- limitCards: g,
125
- limitCardsForMobile: f,
120
+ ref: x,
121
+ limitCards: m,
122
+ limitCardsForMobile: _,
126
123
  children: [
127
- /* @__PURE__ */ o("div", { className: "wrapper__heading", children: [
128
- /* @__PURE__ */ o("div", { className: "wrapper__title", children: [
129
- t && /* @__PURE__ */ o("div", { className: "title__text", children: [
130
- $(a) && /* @__PURE__ */ n("i", { className: a }),
131
- /* @__PURE__ */ n("span", { children: t })
124
+ /* @__PURE__ */ n("div", { className: "wrapper__heading", children: [
125
+ /* @__PURE__ */ n("div", { className: "wrapper__title", children: [
126
+ t && /* @__PURE__ */ n("div", { className: "title__text", children: [
127
+ d(p) && /* @__PURE__ */ r("i", { className: p }),
128
+ /* @__PURE__ */ r("span", { children: t })
132
129
  ] }),
133
- m && /* @__PURE__ */ n(
134
- b,
130
+ a && /* @__PURE__ */ r(
131
+ v,
135
132
  {
136
- text: u,
133
+ text: g,
137
134
  borderRadius: "curved",
138
135
  btnType: "tinted",
139
136
  className: "title__action",
140
- onClick: m
137
+ onClick: a
141
138
  }
142
139
  )
143
140
  ] }),
144
- s && /* @__PURE__ */ n("div", { className: "wrapper__subtitle", children: s })
141
+ o && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: o })
145
142
  ] }),
146
- /* @__PURE__ */ n("div", { className: "wrapper__cards", children: i && (i == null ? void 0 : i.length) > 0 ? i == null ? void 0 : i.map((e, p) => /* @__PURE__ */ n(
143
+ /* @__PURE__ */ r("div", { className: "wrapper__cards", children: i && (i == null ? void 0 : i.length) > 0 ? i == null ? void 0 : i.map((e, l) => /* @__PURE__ */ r(
147
144
  C,
148
145
  {
149
146
  uuid: e == null ? void 0 : e.uuid,
@@ -153,19 +150,19 @@ const S = k.div`
153
150
  reviewCount: e == null ? void 0 : e.reviewCount,
154
151
  products: e == null ? void 0 : e.products,
155
152
  imageComponent: e == null ? void 0 : e.imageComponent,
156
- onSelectCard: () => l == null ? void 0 : l(e == null ? void 0 : e.uuid),
157
- image: h(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
158
- getProductImage: w,
153
+ onSelectCard: () => f(e == null ? void 0 : e.uuid),
154
+ image: u(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
155
+ getProductImage: h,
159
156
  canAcceptPayments: e == null ? void 0 : e.canAcceptPayments,
160
- hideProducts: x
157
+ hideProducts: w
161
158
  },
162
- `shop-card__${p + 1}`
163
- )) : (_ = Array.from("1234")) == null ? void 0 : _.map((e, p) => /* @__PURE__ */ n(N, {}, `shop-card-skeleton__${p + 1}`)) })
159
+ `shop-card__${l + 1}`
160
+ )) : (s = Array.from("1234")) == null ? void 0 : s.map((e, l) => /* @__PURE__ */ r(b, {}, `shop-card-skeleton__${l + 1}`)) })
164
161
  ]
165
162
  }
166
163
  );
167
164
  }
168
165
  );
169
166
  export {
170
- F as default
167
+ I as default
171
168
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.82",
3
+ "version": "4.0.83",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [