@lanaco/lnc-react-ui 4.0.25 → 4.0.26

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.
@@ -0,0 +1,221 @@
1
+ import { jsx as t, jsxs as y } from "react/jsx-runtime";
2
+ import { forwardRef as f } from "react";
3
+ import { n as u } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as x } from "./consts-DNVz1x1I.js";
5
+ import { m as F, l as N } from "./utils-DtEdJZWa.js";
6
+ import { S as k } from "./index-DGl-lSfF.js";
7
+ const A = u.div`
8
+ width: 100%;
9
+ height: 11.625rem;
10
+ border-radius: 0.75rem;
11
+ background: ${F("-90deg")};
12
+ `, C = u.div`
13
+ width: 100%;
14
+ height: auto;
15
+ border-radius: 999px;
16
+
17
+ & .wrapper__image {
18
+ width: 100%;
19
+ aspect-ratio: 1 / 1;
20
+ object-fit: cover;
21
+ border-radius: 999px;
22
+ max-height: 9.875rem;
23
+ }
24
+
25
+ &.active {
26
+ border: var(--yellow-600, #d97706);
27
+ }
28
+
29
+ @media (max-width: ${x + "px"}) {
30
+ & .wrapper__image {
31
+ height: auto;
32
+ }
33
+ }
34
+ `, W = u.div`
35
+ width: 9.875rem;
36
+ height: 9.875rem;
37
+ border-radius: 999px;
38
+ background: ${F("-90deg")};
39
+
40
+ @media (max-width: ${x + "px"}) {
41
+ width: 4.5rem;
42
+ height: 4.5rem;
43
+ }
44
+ `, I = f(({}, i) => /* @__PURE__ */ t(W, {})), v = f(
45
+ ({ isActive: i, image: s, imageComponent: r, onSelectCard: o = () => {
46
+ } }, h) => /* @__PURE__ */ t(
47
+ C,
48
+ {
49
+ className: i ? "active" : "",
50
+ onClick: o,
51
+ children: N(r) ? r : /* @__PURE__ */ t("img", { src: s, className: "wrapper__image" })
52
+ }
53
+ )
54
+ ), O = f(
55
+ ({
56
+ uuid: i,
57
+ title: s,
58
+ price: r,
59
+ currency: o,
60
+ isNegotiable: h,
61
+ isFree: w,
62
+ image: a,
63
+ sellerUuid: m,
64
+ onSelectCard: l = () => {
65
+ },
66
+ imageComponent: p,
67
+ negotiableText: d = "Negotiable",
68
+ freeText: g = "Free"
69
+ }, _) => /* @__PURE__ */ t(
70
+ k,
71
+ {
72
+ uuid: i,
73
+ title: s,
74
+ price: r,
75
+ currency: o,
76
+ isNegotiable: h,
77
+ isFree: w,
78
+ image: a,
79
+ imageComponent: p,
80
+ sellerUuid: m,
81
+ onSelectCard: l,
82
+ negotiableText: d,
83
+ freeText: g
84
+ }
85
+ )
86
+ ), j = f(({}, i) => /* @__PURE__ */ t(A, {})), M = u.div`
87
+ display: flex;
88
+ flex-direction: column;
89
+ align-items: center;
90
+ gap: 1.5rem;
91
+
92
+ & .wrapper__heading {
93
+ display: flex;
94
+ flex-direction: column;
95
+ gap: 1rem;
96
+ text-align: center;
97
+
98
+ & .wrapper__title {
99
+ color: var(--gray-950, #14161a);
100
+ text-align: center;
101
+ font-size: 1.5rem;
102
+ font-style: normal;
103
+ font-weight: 600;
104
+ line-height: 2rem;
105
+ letter-spacing: -0.47px;
106
+ }
107
+
108
+ & .wrapper__subtitle {
109
+ color: var(---gray-600, #676e79);
110
+ font-size: 0.875rem;
111
+ font-style: normal;
112
+ font-weight: 400;
113
+ line-height: 1.25rem;
114
+ letter-spacing: 0.25px;
115
+ }
116
+ }
117
+
118
+ & .wrapper__avatars {
119
+ display: grid;
120
+ grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitAvatars}, minmax(0, 1fr))`};
121
+ gap: 2rem;
122
+ justify-items: center;
123
+ align-items: center;
124
+ }
125
+
126
+ & .wrapper__cards {
127
+ display: grid;
128
+ grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCards}, minmax(0, 1fr))`};
129
+ gap: 1.25rem;
130
+ justify-items: center;
131
+ align-items: center;
132
+ width: 100%;
133
+ }
134
+
135
+ @media (max-width: ${x + "px"}) {
136
+ & .wrapper__avatars {
137
+ grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitAvatarsForMobile}, minmax(0, 1fr))`};
138
+ gap: auto;
139
+ }
140
+
141
+ & .wrapper__cards {
142
+ grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCardsForMobile}, minmax(0, 1fr))`};
143
+ gap: 1rem;
144
+ }
145
+ }
146
+ `, D = f(
147
+ ({
148
+ title: i,
149
+ subtitle: s,
150
+ avatars: r = [],
151
+ limitAvatars: o = 4,
152
+ limitCards: h = 6,
153
+ limitAvatarsForMobile: w = 4,
154
+ limitCardsForMobile: a = 2,
155
+ cards: m = [],
156
+ onSelectAvatar: l = () => {
157
+ },
158
+ onSelectCard: p = () => {
159
+ }
160
+ }, d) => {
161
+ var $, b;
162
+ const g = (e) => {
163
+ l == null || l(e == null ? void 0 : e.uuid);
164
+ }, _ = (e) => {
165
+ p == null || p(e == null ? void 0 : e.uuid);
166
+ };
167
+ return /* @__PURE__ */ y(
168
+ M,
169
+ {
170
+ limitAvatars: o,
171
+ limitAvatarsForMobile: w,
172
+ limitCards: h,
173
+ limitCardsForMobile: a,
174
+ children: [
175
+ /* @__PURE__ */ y("div", { className: "wrapper__heading", children: [
176
+ i && /* @__PURE__ */ t("div", { className: "wrapper__title", children: i }),
177
+ s && /* @__PURE__ */ t("div", { className: "wrapper__subtitle", children: s })
178
+ ] }),
179
+ /* @__PURE__ */ t("div", { className: "wrapper__avatars", children: r && (r == null ? void 0 : r.length) > 0 ? r == null ? void 0 : r.map((e, n) => /* @__PURE__ */ t(
180
+ v,
181
+ {
182
+ image: e == null ? void 0 : e.image,
183
+ imageComponent: e == null ? void 0 : e.imageComponent,
184
+ onSelectCard: () => g == null ? void 0 : g(e)
185
+ },
186
+ `field-of-interests-with-avatars-card-avatar__${n + 1}`
187
+ )) : ($ = Array.from("1234")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */ t(
188
+ I,
189
+ {},
190
+ `field-of-interests-with-avatars-card-avatar-skeleton__${n + 1}`
191
+ )) }),
192
+ /* @__PURE__ */ t("div", { className: "wrapper__cards", children: m && (m == null ? void 0 : m.length) > 0 ? m == null ? void 0 : m.map((e, n) => /* @__PURE__ */ t(
193
+ O,
194
+ {
195
+ uuid: e == null ? void 0 : e.uuid,
196
+ title: e == null ? void 0 : e.title,
197
+ price: e == null ? void 0 : e.price,
198
+ currency: e == null ? void 0 : e.currency,
199
+ isNegotiable: e == null ? void 0 : e.isNegotiable,
200
+ isFree: e == null ? void 0 : e.isFree,
201
+ image: e == null ? void 0 : e.image,
202
+ imageComponent: e == null ? void 0 : e.imageComponent,
203
+ sellerUuid: e == null ? void 0 : e.sellerUuid,
204
+ negotiableText: e == null ? void 0 : e.negotiableText,
205
+ freeText: e == null ? void 0 : e.freeText,
206
+ onSelectCard: () => _ == null ? void 0 : _(e)
207
+ },
208
+ `field-of-interests-with-avatars-card__${n + 1}`
209
+ )) : (b = Array.from("123456")) == null ? void 0 : b.map((e, n) => /* @__PURE__ */ t(
210
+ j,
211
+ {},
212
+ `field-of-interests-with-avatars-card-skeleton__${n + 1}`
213
+ )) })
214
+ ]
215
+ }
216
+ );
217
+ }
218
+ );
219
+ export {
220
+ D as default
221
+ };
@@ -0,0 +1,161 @@
1
+ "use strict";const t=require("react/jsx-runtime"),m=require("react"),p=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),l=require("./utils-CE6bljYe.cjs"),y=require("./Icon.cjs"),v=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),j=require("./consts-dNz9tpt4.cjs"),b=p.newStyled.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: flex-start;
5
+ flex-shrink: 0;
6
+ align-self: stretch;
7
+ border-radius: 0.75rem;
8
+ border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
9
+ background: var(--Lanaco-Gray-white, #fff);
10
+
11
+ /* drop-shadow-sm */
12
+ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
13
+
14
+ & .wrapper__image {
15
+ width: 100%;
16
+ aspect-ratio: 1 / 1;
17
+ object-fit: cover;
18
+ height: auto;
19
+ border-radius: 0.75rem 0.75rem 0 0;
20
+ }
21
+
22
+ & .wrapper__content {
23
+ display: flex;
24
+ padding: 0.75rem;
25
+ flex-direction: column;
26
+ align-items: flex-start;
27
+ gap: 0.25rem;
28
+ align-self: stretch;
29
+
30
+ & .wrapper__title {
31
+ color: var(--gray-950);
32
+ font-size: 1rem;
33
+ font-style: normal;
34
+ font-weight: 500;
35
+ line-height: 1.5rem;
36
+ ${l.truncateTextInRows(2)}
37
+ }
38
+
39
+ & .wrapper__description {
40
+ color: var(--gray-600);
41
+ font-size: 0.75rem;
42
+ font-style: normal;
43
+ font-weight: 400;
44
+ line-height: 1rem;
45
+ letter-spacing: 0.025rem;
46
+ ${l.truncateTextInRows(2)}
47
+ }
48
+ }
49
+ `,$=p.newStyled.div`
50
+ width: 100%;
51
+ height: 11.625rem;
52
+ border-radius: 0.75rem;
53
+ background: ${l.linearGradientAnimation("-90deg")};
54
+ `,k=p.newStyled.div`
55
+ display: flex;
56
+ padding: 0 0.75rem 0 0;
57
+ align-items: center;
58
+ background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
59
+ border-radius: 999px;
60
+
61
+ & .wrapper__icon {
62
+ font-size: 1.75rem;
63
+ color: var(--gray-950, #14161a);
64
+ background: var(--gray-200);
65
+ border-radius: 999px;
66
+ width: 2.75rem;
67
+ height: 2.75rem;
68
+
69
+ & i {
70
+ width: auto;
71
+ }
72
+ }
73
+
74
+ & .wrapper__text {
75
+ color: var(--gray-950, #14161a);
76
+ text-align: center;
77
+ font-size: 1rem;
78
+ font-style: normal;
79
+ font-weight: 400;
80
+ line-height: 1.5rem;
81
+ }
82
+
83
+ &.active {
84
+ background: var(--yellow-600, #d97706);
85
+
86
+ & .wrapper__icon {
87
+ color: var(--white, #fff);
88
+ }
89
+
90
+ & .wrapper__text {
91
+ color: var(--white, #fff);
92
+ }
93
+ }
94
+ `,N=p.newStyled.div`
95
+ width: 7rem;
96
+ height: 3rem;
97
+ border-radius: 999px;
98
+ background: ${l.linearGradientAnimation("-90deg")};
99
+ `,I=m.forwardRef(({},r)=>t.jsx(N,{})),W=m.forwardRef(({text:r,isActive:n,icon:i,onSelectCard:o=()=>{}},d)=>t.jsxs(k,{className:n?"active":"",onClick:o,children:[t.jsx(y,{icon:i,className:"wrapper__icon"}),t.jsx("div",{className:"wrapper__text",children:r})]})),R=m.forwardRef(({image:r,imageComponent:n,title:i,description:o,onSelectCard:d=()=>{}},x)=>{const{theme:f}=v.useTheme();return t.jsxs(b,{theme:f,onClick:d,children:[l.isDefined(n)?n:t.jsx("img",{src:r,className:"wrapper__image"}),t.jsxs("div",{className:"wrapper__content",children:[i&&t.jsx("div",{className:"wrapper__title",children:i}),o&&t.jsx("div",{className:"wrapper__description",children:o})]})]})}),T=m.forwardRef(({},r)=>t.jsx($,{})),q=p.newStyled.div`
100
+ display: flex;
101
+ flex-direction: column;
102
+ align-items: center;
103
+ gap: 1.5rem;
104
+
105
+ & .wrapper__heading {
106
+ display: flex;
107
+ flex-direction: column;
108
+ gap: 1rem;
109
+ text-align: center;
110
+
111
+ & .wrapper__title {
112
+ color: var(--gray-950, #14161a);
113
+ text-align: center;
114
+ font-size: 1.5rem;
115
+ font-style: normal;
116
+ font-weight: 600;
117
+ line-height: 2rem;
118
+ letter-spacing: -0.47px;
119
+ }
120
+
121
+ & .wrapper__subtitle {
122
+ color: var(---gray-600, #676e79);
123
+ font-size: 0.875rem;
124
+ font-style: normal;
125
+ font-weight: 400;
126
+ line-height: 1.25rem;
127
+ letter-spacing: 0.25px;
128
+ }
129
+ }
130
+
131
+ & .wrapper__tags {
132
+ display: grid;
133
+ grid-template-columns: ${r=>`repeat(${r==null?void 0:r.limitTags}, minmax(0, 1fr))`};
134
+ justify-content: center;
135
+ align-items: center;
136
+ gap: 0.75rem;
137
+ }
138
+
139
+ & .wrapper__cards {
140
+ display: grid;
141
+ grid-template-columns: ${r=>`repeat(${r==null?void 0:r.limitCards}, minmax(0, 1fr))`};
142
+ justify-content: center;
143
+ align-items: center;
144
+ gap: 1.5rem;
145
+ width: 100%;
146
+ }
147
+
148
+ @media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
149
+ & .wrapper__tags {
150
+ display: flex;
151
+ overflow-x: scroll;
152
+ justify-content: flex-start;
153
+ width: 100%;
154
+ }
155
+
156
+ & .wrapper__cards {
157
+ grid-template-columns: ${r=>`repeat(${r==null?void 0:r.limitCardsForMobile}, minmax(0, 1fr))`};
158
+ gap: 1rem;
159
+ }
160
+ }
161
+ `,C=m.forwardRef(({title:r,subtitle:n,tags:i=[],limitTags:o=7,limitTagsForMobile:d=7,limitCards:x=3,limitCardsForMobile:f=2,cards:s=[],onSelectTag:c=()=>{},onSelectCard:_=()=>{}},z)=>{var g,u;const h=e=>{c==null||c(e==null?void 0:e.uuid)},w=e=>{_==null||_(e==null?void 0:e.uuid)};return t.jsxs(q,{limitTags:o,limitTagsForMobile:d,limitCards:x,limitCardsForMobile:f,children:[t.jsxs("div",{className:"wrapper__heading",children:[r&&t.jsx("div",{className:"wrapper__title",children:r}),n&&t.jsx("div",{className:"wrapper__subtitle",children:n})]}),t.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.length)>0?i==null?void 0:i.map((e,a)=>t.jsx(W,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.text,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)=>t.jsx(I,{},`field-of-interests-with-tags-card-tag-skeleton__${a+1}`))}),t.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((e,a)=>t.jsx(R,{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:()=>w==null?void 0:w(e==null?void 0:e.uuid)},`field-of-interests-with-tags-card__${a+1}`)):(u=Array.from("123"))==null?void 0:u.map((e,a)=>t.jsx(T,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=C;
@@ -0,0 +1,254 @@
1
+ import { jsx as i, jsxs as l } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ import { n as p } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { t as v, m as y, l as b } from "./utils-DtEdJZWa.js";
5
+ import $ from "./Icon.js";
6
+ import { u as k } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
7
+ import { M as N } from "./consts-DNVz1x1I.js";
8
+ const W = p.div`
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: flex-start;
12
+ flex-shrink: 0;
13
+ align-self: stretch;
14
+ border-radius: 0.75rem;
15
+ border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
16
+ background: var(--Lanaco-Gray-white, #fff);
17
+
18
+ /* drop-shadow-sm */
19
+ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
20
+
21
+ & .wrapper__image {
22
+ width: 100%;
23
+ aspect-ratio: 1 / 1;
24
+ object-fit: cover;
25
+ height: auto;
26
+ border-radius: 0.75rem 0.75rem 0 0;
27
+ }
28
+
29
+ & .wrapper__content {
30
+ display: flex;
31
+ padding: 0.75rem;
32
+ flex-direction: column;
33
+ align-items: flex-start;
34
+ gap: 0.25rem;
35
+ align-self: stretch;
36
+
37
+ & .wrapper__title {
38
+ color: var(--gray-950);
39
+ font-size: 1rem;
40
+ font-style: normal;
41
+ font-weight: 500;
42
+ line-height: 1.5rem;
43
+ ${v(2)}
44
+ }
45
+
46
+ & .wrapper__description {
47
+ color: var(--gray-600);
48
+ font-size: 0.75rem;
49
+ font-style: normal;
50
+ font-weight: 400;
51
+ line-height: 1rem;
52
+ letter-spacing: 0.025rem;
53
+ ${v(2)}
54
+ }
55
+ }
56
+ `, I = p.div`
57
+ width: 100%;
58
+ height: 11.625rem;
59
+ border-radius: 0.75rem;
60
+ background: ${y("-90deg")};
61
+ `, C = p.div`
62
+ display: flex;
63
+ padding: 0 0.75rem 0 0;
64
+ align-items: center;
65
+ background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
66
+ border-radius: 999px;
67
+
68
+ & .wrapper__icon {
69
+ font-size: 1.75rem;
70
+ color: var(--gray-950, #14161a);
71
+ background: var(--gray-200);
72
+ border-radius: 999px;
73
+ width: 2.75rem;
74
+ height: 2.75rem;
75
+
76
+ & i {
77
+ width: auto;
78
+ }
79
+ }
80
+
81
+ & .wrapper__text {
82
+ color: var(--gray-950, #14161a);
83
+ text-align: center;
84
+ font-size: 1rem;
85
+ font-style: normal;
86
+ font-weight: 400;
87
+ line-height: 1.5rem;
88
+ }
89
+
90
+ &.active {
91
+ background: var(--yellow-600, #d97706);
92
+
93
+ & .wrapper__icon {
94
+ color: var(--white, #fff);
95
+ }
96
+
97
+ & .wrapper__text {
98
+ color: var(--white, #fff);
99
+ }
100
+ }
101
+ `, T = p.div`
102
+ width: 7rem;
103
+ height: 3rem;
104
+ border-radius: 999px;
105
+ background: ${y("-90deg")};
106
+ `, j = m(({}, r) => /* @__PURE__ */ i(T, {})), z = m(
107
+ ({ text: r, isActive: n, icon: t, onSelectCard: s = () => {
108
+ } }, f) => /* @__PURE__ */ l(C, { className: n ? "active" : "", onClick: s, children: [
109
+ /* @__PURE__ */ i($, { icon: t, className: "wrapper__icon" }),
110
+ /* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
111
+ ] })
112
+ ), F = m(
113
+ ({ image: r, imageComponent: n, title: t, description: s, onSelectCard: f = () => {
114
+ } }, w) => {
115
+ const { theme: d } = k();
116
+ return /* @__PURE__ */ l(W, { theme: d, onClick: f, children: [
117
+ b(n) ? n : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
118
+ /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
119
+ t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
120
+ s && /* @__PURE__ */ i("div", { className: "wrapper__description", children: s })
121
+ ] })
122
+ ] });
123
+ }
124
+ ), O = m(({}, r) => /* @__PURE__ */ i(I, {})), A = p.div`
125
+ display: flex;
126
+ flex-direction: column;
127
+ align-items: center;
128
+ gap: 1.5rem;
129
+
130
+ & .wrapper__heading {
131
+ display: flex;
132
+ flex-direction: column;
133
+ gap: 1rem;
134
+ text-align: center;
135
+
136
+ & .wrapper__title {
137
+ color: var(--gray-950, #14161a);
138
+ text-align: center;
139
+ font-size: 1.5rem;
140
+ font-style: normal;
141
+ font-weight: 600;
142
+ line-height: 2rem;
143
+ letter-spacing: -0.47px;
144
+ }
145
+
146
+ & .wrapper__subtitle {
147
+ color: var(---gray-600, #676e79);
148
+ font-size: 0.875rem;
149
+ font-style: normal;
150
+ font-weight: 400;
151
+ line-height: 1.25rem;
152
+ letter-spacing: 0.25px;
153
+ }
154
+ }
155
+
156
+ & .wrapper__tags {
157
+ display: grid;
158
+ grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitTags}, minmax(0, 1fr))`};
159
+ justify-content: center;
160
+ align-items: center;
161
+ gap: 0.75rem;
162
+ }
163
+
164
+ & .wrapper__cards {
165
+ display: grid;
166
+ grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCards}, minmax(0, 1fr))`};
167
+ justify-content: center;
168
+ align-items: center;
169
+ gap: 1.5rem;
170
+ width: 100%;
171
+ }
172
+
173
+ @media (max-width: ${N + "px"}) {
174
+ & .wrapper__tags {
175
+ display: flex;
176
+ overflow-x: scroll;
177
+ justify-content: flex-start;
178
+ width: 100%;
179
+ }
180
+
181
+ & .wrapper__cards {
182
+ grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCardsForMobile}, minmax(0, 1fr))`};
183
+ gap: 1rem;
184
+ }
185
+ }
186
+ `, X = m(
187
+ ({
188
+ title: r,
189
+ subtitle: n,
190
+ tags: t = [],
191
+ limitTags: s = 7,
192
+ limitTagsForMobile: f = 7,
193
+ limitCards: w = 3,
194
+ limitCardsForMobile: d = 2,
195
+ cards: a = [],
196
+ onSelectTag: h = () => {
197
+ },
198
+ onSelectCard: _ = () => {
199
+ }
200
+ }, M) => {
201
+ var x, u;
202
+ const c = (e) => {
203
+ h == null || h(e == null ? void 0 : e.uuid);
204
+ }, g = (e) => {
205
+ _ == null || _(e == null ? void 0 : e.uuid);
206
+ };
207
+ return /* @__PURE__ */ l(
208
+ A,
209
+ {
210
+ limitTags: s,
211
+ limitTagsForMobile: f,
212
+ limitCards: w,
213
+ limitCardsForMobile: d,
214
+ children: [
215
+ /* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
216
+ r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
217
+ n && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: n })
218
+ ] }),
219
+ /* @__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(
220
+ z,
221
+ {
222
+ icon: e == null ? void 0 : e.icon,
223
+ text: e == null ? void 0 : e.text,
224
+ onSelectCard: () => c == null ? void 0 : c(e)
225
+ },
226
+ `field-of-interests-with-tags-card-tag__${o + 1}`
227
+ )) : (x = Array.from("123")) == null ? void 0 : x.map((e, o) => /* @__PURE__ */ i(
228
+ j,
229
+ {},
230
+ `field-of-interests-with-tags-card-tag-skeleton__${o + 1}`
231
+ )) }),
232
+ /* @__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(
233
+ F,
234
+ {
235
+ image: e == null ? void 0 : e.image,
236
+ imageComponent: e == null ? void 0 : e.imageComponent,
237
+ title: e == null ? void 0 : e.title,
238
+ description: e == null ? void 0 : e.description,
239
+ onSelectCard: () => g == null ? void 0 : g(e == null ? void 0 : e.uuid)
240
+ },
241
+ `field-of-interests-with-tags-card__${o + 1}`
242
+ )) : (u = Array.from("123")) == null ? void 0 : u.map((e, o) => /* @__PURE__ */ i(
243
+ O,
244
+ {},
245
+ `field-of-interests-with-tags-card-skeleton__${o + 1}`
246
+ )) })
247
+ ]
248
+ }
249
+ );
250
+ }
251
+ );
252
+ export {
253
+ X as default
254
+ };