@lanaco/lnc-react-ui 4.0.87 → 4.0.88

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,6 +1,6 @@
1
1
  "use strict";const i=require("react/jsx-runtime"),l=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./consts-goSZX3xP.cjs"),P=require("./Button.cjs"),y=require("./utils-DhRHf5Ed.cjs"),U=require("./useDetectMobile-zkbzoOGV.cjs"),M=require("./style-xvwWn3Zv.cjs"),h=require("./suspense-product-card-detailed-DBNlkFiP.cjs"),F=require("./index-DG7qQq8L.cjs"),T=v.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
6
  & .button-link {
@@ -26,4 +26,4 @@
26
26
  /* Safari and Chrome */
27
27
  }
28
28
  }
29
- `,S=l.memo(h.DetailedProductCard),E=l.forwardRef((n,f)=>{const{icon:a,title:C,buttonLink:c,items:r,buttonText:j,limit:t=4,onSelectCard:u=()=>{},onButtonAction:w=()=>{},isLoading:N=!1,getImage:d=()=>{},negotiableText:m,freeText:p,options:o,onSelectOption:g=()=>{},productsToolbarName:q="All"}=n,b=U.useDetectMobile(),k=l.useMemo(()=>i.jsx(i.Fragment,{children:b===!0?r==null?void 0:r.map((e,s)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:p},s)):r==null?void 0:r.slice(0,t).map((e,s)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:p},s))}),[r,b,t]);return i.jsxs(M.TitleWithOptionsSectionWrapper,{ref:f,children:[i.jsxs("div",{className:"regular-title",children:[i.jsxs("div",{className:"regular-title-text",children:[y.isDefinedNotEmptyString(a)&&i.jsx("i",{className:a}),i.jsx("span",{children:C})]}),y.isDefinedNotEmptyString(c)&&i.jsx(P,{type:"button",btnType:"tinted",color:"gray",onClick:()=>w(c),borderRadius:"curved",className:"button-link",children:j})]}),(o==null?void 0:o.length)>0&&i.jsx(F.SelectBar,{items:o,onRemove:e=>{g(e)},onSelect:e=>{g(e)},labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:q}),i.jsx(T,{limit:t,children:i.jsx(h.SuspenseDetailedProductCard,{isLoading:N,itemsCount:t,keyPrefix:"explore-landing",children:k})})]})});module.exports=E;
29
+ `,S=l.memo(h.DetailedProductCard),E=l.forwardRef((s,f)=>{const{icon:a,title:C,buttonLink:c,items:r,buttonText:j,limit:o=4,onSelectCard:u=()=>{},onButtonAction:w=()=>{},isLoading:N=!1,getImage:d=()=>{},negotiableText:m,freeText:p,options:n,onSelectOption:g=()=>{},productsToolbarName:q="All"}=s,b=U.useDetectMobile(),k=l.useMemo(()=>i.jsx(i.Fragment,{children:b===!0?r==null?void 0:r.map((e,t)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:p},t)):r==null?void 0:r.slice(0,o).map((e,t)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:p},t))}),[r,b,o]);return i.jsxs(M.TitleWithOptionsSectionWrapper,{ref:f,children:[i.jsxs("div",{className:"regular-title",children:[i.jsxs("div",{className:"regular-title-text",children:[y.isDefinedNotEmptyString(a)&&i.jsx("i",{className:a}),i.jsx("span",{children:C})]}),y.isDefinedNotEmptyString(c)&&i.jsx(P,{type:"button",btnType:"tinted",color:"gray",onClick:e=>{var t;(t=e==null?void 0:e.target)==null||t.blur(),w(c)},borderRadius:"curved",className:"button-link",children:j})]}),(n==null?void 0:n.length)>0&&i.jsx(F.SelectBar,{items:n,onRemove:e=>{g(e)},onSelect:e=>{g(e)},labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:q}),i.jsx(T,{limit:o,children:i.jsx(h.SuspenseDetailedProductCard,{isLoading:N,itemsCount:o,keyPrefix:"explore-landing",children:k})})]})});module.exports=E;
@@ -1,16 +1,16 @@
1
- import { jsx as i, Fragment as U, jsxs as a } from "react/jsx-runtime";
1
+ import { jsx as i, Fragment as U, jsxs as n } from "react/jsx-runtime";
2
2
  import { memo as M, forwardRef as P, useMemo as T } from "react";
3
3
  import { s as D } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as F } from "./consts-BuFChS64.js";
5
5
  import B from "./Button.js";
6
- import { k as b } from "./utils-BE-UlkKf.js";
6
+ import { k as f } from "./utils-BE-UlkKf.js";
7
7
  import { u as E } from "./useDetectMobile-Bkvj0VMa.js";
8
8
  import { T as I } from "./style-sLF37aOA.js";
9
9
  import { D as L, S as O } from "./suspense-product-card-detailed-CwdbxJrY.js";
10
10
  import { S as R } from "./index-Db8wvLXS.js";
11
11
  const W = D.div`
12
12
  display: grid;
13
- grid-template-columns: ${(l) => `repeat(${l.limit}, minmax(0, 1fr))`};
13
+ grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
14
14
  gap: 1.25rem;
15
15
 
16
16
  & .button-link {
@@ -36,14 +36,14 @@ const W = D.div`
36
36
  /* Safari and Chrome */
37
37
  }
38
38
  }
39
- `, S = M(L), H = P((l, y) => {
39
+ `, S = M(L), H = P((a, y) => {
40
40
  const {
41
41
  icon: s,
42
42
  title: h,
43
43
  buttonLink: d,
44
44
  items: r,
45
45
  buttonText: C,
46
- limit: o = 4,
46
+ limit: t = 4,
47
47
  onSelectCard: m = () => {
48
48
  },
49
49
  onButtonAction: w = () => {
@@ -53,11 +53,11 @@ const W = D.div`
53
53
  },
54
54
  negotiableText: u,
55
55
  freeText: p,
56
- options: t,
56
+ options: l,
57
57
  onSelectOption: g = () => {
58
58
  },
59
59
  productsToolbarName: N = "All"
60
- } = l, f = E(), v = T(() => /* @__PURE__ */ i(U, { children: f === !0 ? r == null ? void 0 : r.map((e, n) => /* @__PURE__ */ i(
60
+ } = a, b = E(), v = T(() => /* @__PURE__ */ i(U, { children: b === !0 ? r == null ? void 0 : r.map((e, o) => /* @__PURE__ */ i(
61
61
  S,
62
62
  {
63
63
  title: e == null ? void 0 : e.name,
@@ -75,8 +75,8 @@ const W = D.div`
75
75
  negotiableText: u,
76
76
  freeText: p
77
77
  },
78
- n
79
- )) : r == null ? void 0 : r.slice(0, o).map((e, n) => /* @__PURE__ */ i(
78
+ o
79
+ )) : r == null ? void 0 : r.slice(0, t).map((e, o) => /* @__PURE__ */ i(
80
80
  S,
81
81
  {
82
82
  title: e == null ? void 0 : e.name,
@@ -95,31 +95,34 @@ const W = D.div`
95
95
  negotiableText: u,
96
96
  freeText: p
97
97
  },
98
- n
99
- )) }), [r, f, o]);
100
- return /* @__PURE__ */ a(I, { ref: y, children: [
101
- /* @__PURE__ */ a("div", { className: "regular-title", children: [
102
- /* @__PURE__ */ a("div", { className: "regular-title-text", children: [
103
- b(s) && /* @__PURE__ */ i("i", { className: s }),
98
+ o
99
+ )) }), [r, b, t]);
100
+ return /* @__PURE__ */ n(I, { ref: y, children: [
101
+ /* @__PURE__ */ n("div", { className: "regular-title", children: [
102
+ /* @__PURE__ */ n("div", { className: "regular-title-text", children: [
103
+ f(s) && /* @__PURE__ */ i("i", { className: s }),
104
104
  /* @__PURE__ */ i("span", { children: h })
105
105
  ] }),
106
- b(d) && /* @__PURE__ */ i(
106
+ f(d) && /* @__PURE__ */ i(
107
107
  B,
108
108
  {
109
109
  type: "button",
110
110
  btnType: "tinted",
111
111
  color: "gray",
112
- onClick: () => w(d),
112
+ onClick: (e) => {
113
+ var o;
114
+ (o = e == null ? void 0 : e.target) == null || o.blur(), w(d);
115
+ },
113
116
  borderRadius: "curved",
114
117
  className: "button-link",
115
118
  children: C
116
119
  }
117
120
  )
118
121
  ] }),
119
- (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ i(
122
+ (l == null ? void 0 : l.length) > 0 && /* @__PURE__ */ i(
120
123
  R,
121
124
  {
122
- items: t,
125
+ items: l,
123
126
  onRemove: (e) => {
124
127
  g(e);
125
128
  },
@@ -132,11 +135,11 @@ const W = D.div`
132
135
  productsToolbarName: N
133
136
  }
134
137
  ),
135
- /* @__PURE__ */ i(W, { limit: o, children: /* @__PURE__ */ i(
138
+ /* @__PURE__ */ i(W, { limit: t, children: /* @__PURE__ */ i(
136
139
  O,
137
140
  {
138
141
  isLoading: k,
139
- itemsCount: o,
142
+ itemsCount: t,
140
143
  keyPrefix: "explore-landing",
141
144
  children: v
142
145
  }
@@ -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-goSZX3xP.cjs"),o=require("./utils-DhRHf5Ed.cjs"),k=require("./Icon.cjs"),I=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),E=require("./useEffectOnce-DFrzfNzT.cjs"),M=d.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),l=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./consts-goSZX3xP.cjs"),o=require("./utils-DhRHf5Ed.cjs"),$=require("./Icon.cjs"),k=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),N=require("./useEffectOnce-DFrzfNzT.cjs"),I=d.styled.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: fit-content;
@@ -10,6 +10,10 @@
10
10
  border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
11
11
  background: var(--Lanaco-Gray-white, #fff);
12
12
 
13
+ &:hover {
14
+ cursor: pointer;
15
+ }
16
+
13
17
  /* drop-shadow-sm */
14
18
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
15
19
 
@@ -46,17 +50,21 @@
46
50
  ${o.truncateTextInRows(2)}
47
51
  }
48
52
  }
49
- `,R=d.styled.div`
53
+ `,E=d.styled.div`
50
54
  width: 100%;
51
55
  height: 11.625rem;
52
56
  border-radius: 0.75rem;
53
57
  background: ${o.linearGradientAnimation("-90deg")};
54
- `,q=d.styled.div`
58
+ `,M=d.styled.div`
55
59
  display: flex;
56
60
  flex-direction: column;
57
61
  align-items: center;
58
62
  gap: 0.75rem;
59
63
 
64
+ &:hover {
65
+ cursor: pointer;
66
+ }
67
+
60
68
  & .wrapper__icon {
61
69
  display: flex;
62
70
  width: 2.75rem;
@@ -65,9 +73,13 @@
65
73
  align-items: center;
66
74
  font-size: 1.75rem;
67
75
  color: var(--gray-950, #14161a);
68
- background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
76
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
69
77
  border-radius: 999px;
70
78
 
79
+ &:hover {
80
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
81
+ }
82
+
71
83
  & i {
72
84
  width: auto;
73
85
  }
@@ -83,20 +95,19 @@
83
95
  }
84
96
 
85
97
  &.active {
86
- background: var(--gray-950, #14161a);
87
-
88
98
  & .wrapper__icon {
99
+ background: var(--gray-950, #14161a);
89
100
  color: var(--white, #fff);
90
101
  }
91
102
  }
92
103
 
93
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
104
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
94
105
  flex-direction: row;
95
106
  align-items: center;
96
107
  gap: 0.25rem;
97
108
  border-radius: 999px;
98
109
  width: 100%;
99
- background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
110
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
100
111
  padding: 0 0.75rem;
101
112
 
102
113
  & .wrapper__icon {
@@ -117,17 +128,17 @@
117
128
  white-space: nowrap;
118
129
  }
119
130
  }
120
- `,z=d.styled.div`
131
+ `,R=d.styled.div`
121
132
  width: 7.5rem;
122
133
  width: 7.5rem;
123
134
  border-radius: 999px;
124
135
  background: ${o.linearGradientAnimation("-90deg")};
125
136
 
126
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
137
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
127
138
  width: 7.5rem;
128
139
  height: 2.5rem;
129
140
  }
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`
141
+ `,q=l.forwardRef(({},i)=>r.jsx(R,{})),z=l.forwardRef(({text:i,isActive:s=!1,icon:t,onSelectCard:n=()=>{}},p)=>r.jsxs(M,{className:s?"active":"",onClick:n,children:[r.jsx($,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),O=l.forwardRef(({image:i,imageComponent:s,title:t,description:n,className:p,onSelectCard:c=()=>{}},w)=>{const{theme:m}=k.useTheme();return r.jsxs(I,{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})]})]})}),C=l.forwardRef(({},i)=>r.jsxs(E,{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"})]})]})),F=d.styled.div`
131
142
  display: flex;
132
143
  flex-direction: column;
133
144
  align-items: center;
@@ -179,7 +190,7 @@
179
190
  }
180
191
  }
181
192
 
182
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
193
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
183
194
  & .wrapper__tags {
184
195
  display: flex;
185
196
  overflow-x: scroll;
@@ -191,4 +202,4 @@
191
202
  grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCardsForMobile}, minmax(0, 1fr))`};
192
203
  }
193
204
  }
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;
205
+ `,A=l.forwardRef(({title:i,subtitle:s,tags:t=[],items:n=[],limitTags:p=5,limitTagsForMobile:c=5,limit:w=3,limitForMobile:m=2,selectedTag:y,onSelectTag:_=()=>{},onSelectCard:f=()=>{}},v)=>{var g,x;return N.useEffectOnce(()=>{const e=()=>{document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach(u=>{const b=u.getBoundingClientRect().height,j=Math.ceil((b+10)/20);u.style.gridRowEnd=`span ${j}`})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),r.jsxs(F,{ref:v,limitTags:p,limitTagsForMobile:c,limitCards:w,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(z,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===y,onSelectCard:()=>_==null?void 0:_(e)},`field-of-interests-masonry-tag__${a+1}`)):(g=Array.from("12345"))==null?void 0:g.map((e,a)=>r.jsx(q,{},`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(O,{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:()=>f==null?void 0:f(e),className:"wrapper__card"},`field-of-interests-with-tags-card__${a+1}`)):(x=Array.from("12345"))==null?void 0:x.map((e,a)=>r.jsx(C,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=A;
@@ -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 u } from "./consts-BuFChS64.js";
5
- import { t as $, m as N, l as I } from "./utils-BE-UlkKf.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`
4
+ import { M as _ } from "./consts-BuFChS64.js";
5
+ import { t as v, m as y, l as z } from "./utils-BE-UlkKf.js";
6
+ import M from "./Icon.js";
7
+ import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ import { u as I } from "./useEffectOnce-guOKBPuL.js";
9
+ const E = p.div`
10
10
  display: flex;
11
11
  width: 100%;
12
12
  height: fit-content;
@@ -18,6 +18,10 @@ const O = p.div`
18
18
  border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
19
19
  background: var(--Lanaco-Gray-white, #fff);
20
20
 
21
+ &:hover {
22
+ cursor: pointer;
23
+ }
24
+
21
25
  /* drop-shadow-sm */
22
26
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
23
27
 
@@ -41,7 +45,7 @@ const O = p.div`
41
45
  font-style: normal;
42
46
  font-weight: 500;
43
47
  line-height: 1.5rem;
44
- ${$(2)}
48
+ ${v(2)}
45
49
  }
46
50
 
47
51
  & .wrapper__description {
@@ -51,20 +55,24 @@ const O = p.div`
51
55
  font-weight: 400;
52
56
  line-height: 1rem;
53
57
  letter-spacing: 0.025rem;
54
- ${$(2)}
58
+ ${v(2)}
55
59
  }
56
60
  }
57
- `, W = p.div`
61
+ `, F = p.div`
58
62
  width: 100%;
59
63
  height: 11.625rem;
60
64
  border-radius: 0.75rem;
61
- background: ${N("-90deg")};
62
- `, A = p.div`
65
+ background: ${y("-90deg")};
66
+ `, O = p.div`
63
67
  display: flex;
64
68
  flex-direction: column;
65
69
  align-items: center;
66
70
  gap: 0.75rem;
67
71
 
72
+ &:hover {
73
+ cursor: pointer;
74
+ }
75
+
68
76
  & .wrapper__icon {
69
77
  display: flex;
70
78
  width: 2.75rem;
@@ -73,9 +81,13 @@ const O = p.div`
73
81
  align-items: center;
74
82
  font-size: 1.75rem;
75
83
  color: var(--gray-950, #14161a);
76
- background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
84
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
77
85
  border-radius: 999px;
78
86
 
87
+ &:hover {
88
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
89
+ }
90
+
79
91
  & i {
80
92
  width: auto;
81
93
  }
@@ -91,20 +103,19 @@ const O = p.div`
91
103
  }
92
104
 
93
105
  &.active {
94
- background: var(--gray-950, #14161a);
95
-
96
106
  & .wrapper__icon {
107
+ background: var(--gray-950, #14161a);
97
108
  color: var(--white, #fff);
98
109
  }
99
110
  }
100
111
 
101
- @media (max-width: ${u + "px"}) {
112
+ @media (max-width: ${_ + "px"}) {
102
113
  flex-direction: row;
103
114
  align-items: center;
104
115
  gap: 0.25rem;
105
116
  border-radius: 999px;
106
117
  width: 100%;
107
- background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
118
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
108
119
  padding: 0 0.75rem;
109
120
 
110
121
  & .wrapper__icon {
@@ -125,48 +136,48 @@ const O = p.div`
125
136
  white-space: nowrap;
126
137
  }
127
138
  }
128
- `, j = p.div`
139
+ `, W = p.div`
129
140
  width: 7.5rem;
130
141
  width: 7.5rem;
131
142
  border-radius: 999px;
132
- background: ${N("-90deg")};
143
+ background: ${y("-90deg")};
133
144
 
134
- @media (max-width: ${u + "px"}) {
145
+ @media (max-width: ${_ + "px"}) {
135
146
  width: 7.5rem;
136
147
  height: 2.5rem;
137
148
  }
138
- `, L = l(({}, r) => /* @__PURE__ */ i(j, {})), R = l(
139
- ({ text: r, isActive: o, icon: t, onSelectCard: a = () => {
140
- } }, m) => /* @__PURE__ */ s(A, { className: o ? "active" : "", onClick: a, children: [
141
- /* @__PURE__ */ i(C, { icon: t, className: "wrapper__icon" }),
149
+ `, A = l(({}, r) => /* @__PURE__ */ i(W, {})), j = l(
150
+ ({ text: r, isActive: o = !1, icon: t, onSelectCard: a = () => {
151
+ } }, d) => /* @__PURE__ */ s(O, { className: o ? "active" : "", onClick: a, children: [
152
+ /* @__PURE__ */ i(M, { icon: t, className: "wrapper__icon" }),
142
153
  /* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
143
154
  ] })
144
- ), q = l(
155
+ ), L = l(
145
156
  ({
146
157
  image: r,
147
158
  imageComponent: o,
148
159
  title: t,
149
160
  description: a,
150
- className: m,
151
- onSelectCard: d = () => {
161
+ className: d,
162
+ onSelectCard: m = () => {
152
163
  }
153
- }, x) => {
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" }),
164
+ }, w) => {
165
+ const { theme: c } = C();
166
+ return /* @__PURE__ */ s(E, { theme: c, className: d, onClick: m, children: [
167
+ z(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
157
168
  /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
158
169
  t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
159
170
  a && /* @__PURE__ */ i("div", { className: "wrapper__description", children: a })
160
171
  ] })
161
172
  ] });
162
173
  }
163
- ), B = l(({}, r) => /* @__PURE__ */ s(W, { children: [
174
+ ), R = l(({}, r) => /* @__PURE__ */ s(F, { children: [
164
175
  /* @__PURE__ */ i("div", { className: "wrapper__image" }),
165
176
  /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
166
177
  /* @__PURE__ */ i("div", { className: "wrapper__title" }),
167
178
  /* @__PURE__ */ i("div", { className: "wrapper__description" })
168
179
  ] })
169
- ] })), G = p.div`
180
+ ] })), T = p.div`
170
181
  display: flex;
171
182
  flex-direction: column;
172
183
  align-items: center;
@@ -218,7 +229,7 @@ const O = p.div`
218
229
  }
219
230
  }
220
231
 
221
- @media (max-width: ${u + "px"}) {
232
+ @media (max-width: ${_ + "px"}) {
222
233
  & .wrapper__tags {
223
234
  display: flex;
224
235
  overflow-x: scroll;
@@ -230,45 +241,40 @@ const O = p.div`
230
241
  grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCardsForMobile}, minmax(0, 1fr))`};
231
242
  }
232
243
  }
233
- `, U = l(
244
+ `, J = l(
234
245
  ({
235
246
  title: r,
236
247
  subtitle: o,
237
248
  tags: t = [],
238
249
  items: a = [],
239
- limitTags: m = 5,
240
- limitTagsForMobile: d = 5,
241
- limit: x = 3,
250
+ limitTags: d = 5,
251
+ limitTagsForMobile: m = 5,
252
+ limit: w = 3,
242
253
  limitForMobile: c = 2,
243
- selectedTag: f,
244
- onSelectTag: _ = () => {
254
+ selectedTag: b,
255
+ onSelectTag: f = () => {
245
256
  },
246
257
  onSelectCard: h = () => {
247
258
  }
248
- }, k) => {
249
- var y, v;
250
- const w = (e) => {
251
- _ == null || _(e);
252
- }, g = (e) => {
253
- h == null || h(e);
254
- };
255
- return F(() => {
259
+ }, $) => {
260
+ var g, u;
261
+ return I(() => {
256
262
  const e = () => {
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}`;
263
+ document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach((x) => {
264
+ const k = x.getBoundingClientRect().height, N = Math.ceil((k + 10) / 20);
265
+ x.style.gridRowEnd = `span ${N}`;
260
266
  });
261
267
  };
262
268
  return e(), window.addEventListener("resize", e), () => {
263
269
  window.removeEventListener("resize", e);
264
270
  };
265
271
  }), /* @__PURE__ */ s(
266
- G,
272
+ T,
267
273
  {
268
- ref: k,
269
- limitTags: m,
270
- limitTagsForMobile: d,
271
- limitCards: x,
274
+ ref: $,
275
+ limitTags: d,
276
+ limitTagsForMobile: m,
277
+ limitCards: w,
272
278
  limitCardsForMobile: c,
273
279
  children: [
274
280
  /* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
@@ -276,32 +282,32 @@ const O = p.div`
276
282
  o && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: o })
277
283
  ] }),
278
284
  /* @__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(
279
- R,
285
+ j,
280
286
  {
281
287
  icon: e == null ? void 0 : e.icon,
282
- text: e == null ? void 0 : e.text,
283
- isActive: (e == null ? void 0 : e.uuid) === (f == null ? void 0 : f.uuid),
284
- onSelectCard: () => w == null ? void 0 : w(e)
288
+ text: e == null ? void 0 : e.title,
289
+ isActive: (e == null ? void 0 : e.code) === b,
290
+ onSelectCard: () => f == null ? void 0 : f(e)
285
291
  },
286
292
  `field-of-interests-masonry-tag__${n + 1}`
287
- )) : (y = Array.from("12345")) == null ? void 0 : y.map((e, n) => /* @__PURE__ */ i(
288
- L,
293
+ )) : (g = Array.from("12345")) == null ? void 0 : g.map((e, n) => /* @__PURE__ */ i(
294
+ A,
289
295
  {},
290
296
  `field-of-interests-masonry-tag-skeleton__${n + 1}`
291
297
  )) }),
292
298
  /* @__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(
293
- q,
299
+ L,
294
300
  {
295
301
  image: e == null ? void 0 : e.image,
296
302
  imageComponent: e == null ? void 0 : e.imageComponent,
297
303
  title: e == null ? void 0 : e.title,
298
304
  description: e == null ? void 0 : e.description,
299
- onSelectCard: () => g == null ? void 0 : g(e == null ? void 0 : e.uuid),
305
+ onSelectCard: () => h == null ? void 0 : h(e),
300
306
  className: "wrapper__card"
301
307
  },
302
308
  `field-of-interests-with-tags-card__${n + 1}`
303
- )) : (v = Array.from("12345")) == null ? void 0 : v.map((e, n) => /* @__PURE__ */ i(
304
- B,
309
+ )) : (u = Array.from("12345")) == null ? void 0 : u.map((e, n) => /* @__PURE__ */ i(
310
+ R,
305
311
  {},
306
312
  `field-of-interests-with-tags-card-skeleton__${n + 1}`
307
313
  )) })
@@ -311,5 +317,5 @@ const O = p.div`
311
317
  }
312
318
  );
313
319
  export {
314
- U as default
320
+ J as default
315
321
  };
@@ -75,6 +75,7 @@
75
75
 
76
76
  &:hover {
77
77
  cursor: pointer;
78
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
78
79
  }
79
80
 
80
81
  & .wrapper__icon {
@@ -82,6 +82,7 @@ const z = p.div`
82
82
 
83
83
  &:hover {
84
84
  cursor: pointer;
85
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
85
86
  }
86
87
 
87
88
  & .wrapper__icon {
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),l=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),d=require("./utils-DhRHf5Ed.cjs"),y=require("./Icon.cjs"),v=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=o.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),s=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),d=require("./utils-DhRHf5Ed.cjs"),y=require("./Icon.cjs"),v=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=o.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -96,6 +96,7 @@
96
96
 
97
97
  &:hover {
98
98
  cursor: pointer;
99
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
99
100
  }
100
101
 
101
102
  & .wrapper__icon {
@@ -134,7 +135,7 @@
134
135
  height: 3rem;
135
136
  border-radius: 999px;
136
137
  background: ${d.linearGradientAnimation("-90deg")};
137
- `,C=l.forwardRef(({},a)=>r.jsx(N,{})),E=l.forwardRef(({title:a,icon:i,onSelectCard:t=()=>{}},p)=>r.jsxs($,{onClick:t,children:[d.isDefinedNotEmptyString(i)&&r.jsx(y,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:a})]})),I=l.forwardRef(({imageUrl:a,imageComponent:i,title:t,onSelectCard:p=()=>{}},c)=>{const{theme:g}=v.useTheme();return r.jsxs(j,{ref:c,theme:g,onClick:p,children:[d.isDefined(i)?i:r.jsx("img",{src:a,className:"wrapper__image"}),r.jsx("div",{className:"wrapper__content",children:r.jsx("div",{className:"wrapper__title",children:t})})]})}),W=l.forwardRef(({},a)=>r.jsx(k,{})),G=o.styled.div`
138
+ `,C=s.forwardRef(({},a)=>r.jsx(N,{})),E=s.forwardRef(({title:a,icon:i,onSelectCard:t=()=>{}},p)=>r.jsxs($,{onClick:t,children:[d.isDefinedNotEmptyString(i)&&r.jsx(y,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:a})]})),I=s.forwardRef(({imageUrl:a,imageComponent:i,title:t,onSelectCard:p=()=>{}},c)=>{const{theme:g}=v.useTheme();return r.jsxs(j,{ref:c,theme:g,onClick:p,children:[d.isDefined(i)?i:r.jsx("img",{src:a,className:"wrapper__image"}),r.jsx("div",{className:"wrapper__content",children:r.jsx("div",{className:"wrapper__title",children:t})})]})}),W=s.forwardRef(({},a)=>r.jsx(k,{})),G=o.styled.div`
138
139
  display: flex;
139
140
  flex-direction: column;
140
141
  align-items: center;
@@ -210,4 +211,4 @@
210
211
  gap: 1rem;
211
212
  }
212
213
  }
213
- `,R=l.forwardRef(({title:a,subtitle:i,options:t=[],limitTags:p=7,limitTagsForMobile:c=2,limit:g=3,limitForMobile:f=3,items:n=[],onSelectTag:h=()=>{},onSelectCard:_=()=>{},isLoading:u},b)=>{var w,x;return r.jsxs(G,{ref:b,limitTags:p,limitTagsForMobile:c,limitCards:g,limitCardsForMobile:f,children:[r.jsxs("div",{className:"wrapper__heading",children:[a&&r.jsx("div",{className:"wrapper__title",children:a}),i&&r.jsx("div",{className:"wrapper__subtitle",children:i})]}),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(I,{imageUrl:e==null?void 0:e.imageUrl,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,onSelectCard:()=>{_==null||_(e)}},`general-with-tags-card__${s+1}`)):(w=Array.from("123"))==null?void 0:w.map((e,s)=>r.jsx(W,{},`general-with-tags-card-skeleton__${s+1}`))}),(t==null?void 0:t.length)>0&&r.jsx("div",{className:"wrapper__tags",children:t==null?void 0:t.map((e,s)=>r.jsx(E,{icon:e==null?void 0:e.icon,title:e==null?void 0:e.title,onSelectCard:()=>h==null?void 0:h(e)},`general-with-tags-card-tag__${s+1}`))}),u===!0&&!((t==null?void 0:t.length)>0)&&r.jsx("div",{className:"wrapper__tags",children:(x=Array.from("123"))==null?void 0:x.map((e,s)=>r.jsx(C,{},`general-with-tags-card-tag-skeleton__${s+1}`))})]})});module.exports=R;
214
+ `,R=s.forwardRef(({title:a,subtitle:i,options:t=[],limitTags:p=7,limitTagsForMobile:c=2,limit:g=3,limitForMobile:f=3,items:n=[],onSelectTag:h=()=>{},onSelectCard:_=()=>{},isLoading:u},b)=>{var w,x;return r.jsxs(G,{ref:b,limitTags:p,limitTagsForMobile:c,limitCards:g,limitCardsForMobile:f,children:[r.jsxs("div",{className:"wrapper__heading",children:[a&&r.jsx("div",{className:"wrapper__title",children:a}),i&&r.jsx("div",{className:"wrapper__subtitle",children:i})]}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,l)=>r.jsx(I,{imageUrl:e==null?void 0:e.imageUrl,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,onSelectCard:()=>{_==null||_(e)}},`general-with-tags-card__${l+1}`)):(w=Array.from("123"))==null?void 0:w.map((e,l)=>r.jsx(W,{},`general-with-tags-card-skeleton__${l+1}`))}),(t==null?void 0:t.length)>0&&r.jsx("div",{className:"wrapper__tags",children:t==null?void 0:t.map((e,l)=>r.jsx(E,{icon:e==null?void 0:e.icon,title:e==null?void 0:e.title,onSelectCard:()=>h==null?void 0:h(e)},`general-with-tags-card-tag__${l+1}`))}),u===!0&&!((t==null?void 0:t.length)>0)&&r.jsx("div",{className:"wrapper__tags",children:(x=Array.from("123"))==null?void 0:x.map((e,l)=>r.jsx(C,{},`general-with-tags-card-tag-skeleton__${l+1}`))})]})});module.exports=R;
@@ -103,6 +103,7 @@ const W = s.div`
103
103
 
104
104
  &:hover {
105
105
  cursor: pointer;
106
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
106
107
  }
107
108
 
108
109
  & .wrapper__icon {