@lanaco/lnc-react-ui 4.0.86 → 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.
Files changed (109) hide show
  1. package/dist/BannerSectionBasic.cjs +1 -1
  2. package/dist/BannerSectionBasic.js +1 -1
  3. package/dist/BannerSectionCarousel.cjs +2 -2
  4. package/dist/BannerSectionCarousel.js +6 -3
  5. package/dist/BannerSectionGrid.cjs +1 -1
  6. package/dist/BannerSectionGrid.js +3 -3
  7. package/dist/BannerSectionSimple.cjs +7 -7
  8. package/dist/BannerSectionSimple.js +54 -51
  9. package/dist/BannerSectionWithList.cjs +7 -7
  10. package/dist/BannerSectionWithList.js +33 -30
  11. package/dist/BannerSectionWithListImage.cjs +9 -9
  12. package/dist/BannerSectionWithListImage.js +44 -41
  13. package/dist/BlogCardsSponsoredSection.cjs +4 -4
  14. package/dist/BlogCardsSponsoredSection.js +33 -30
  15. package/dist/BlogCategoryCardsSection.cjs +1 -1
  16. package/dist/BlogCategoryCardsSection.js +2 -2
  17. package/dist/BlogListSection.cjs +1 -1
  18. package/dist/BlogListSection.js +1 -1
  19. package/dist/BlogProductCardsSection.cjs +1 -1
  20. package/dist/BlogProductCardsSection.js +2 -2
  21. package/dist/BlogShopCardsSection.cjs +1 -1
  22. package/dist/BlogShopCardsSection.js +2 -2
  23. package/dist/BlogSingleSection.cjs +1 -1
  24. package/dist/BlogSingleSection.js +2 -2
  25. package/dist/BlogsSectionDetailed.cjs +2 -2
  26. package/dist/BlogsSectionDetailed.js +29 -26
  27. package/dist/BlogsSectionLarge.cjs +1 -1
  28. package/dist/BlogsSectionLarge.js +4 -4
  29. package/dist/BlogsSectionSimple.cjs +6 -6
  30. package/dist/BlogsSectionSimple.js +33 -30
  31. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  32. package/dist/BlogsSectionSimpleCentered.js +2 -2
  33. package/dist/BlogsSectionWithFilters.cjs +6 -6
  34. package/dist/BlogsSectionWithFilters.js +50 -45
  35. package/dist/BrandHitsSection.cjs +1 -1
  36. package/dist/BrandHitsSection.js +1 -1
  37. package/dist/CalorieCalculatorSection.cjs +1 -1
  38. package/dist/CalorieCalculatorSection.js +1 -1
  39. package/dist/CustomLoanMapSection.cjs +3 -3
  40. package/dist/CustomLoanMapSection.js +96 -36
  41. package/dist/DetailedProductsSection.cjs +4 -4
  42. package/dist/DetailedProductsSection.js +40 -35
  43. package/dist/FieldOfInterestsMasonrySection.cjs +24 -13
  44. package/dist/FieldOfInterestsMasonrySection.js +72 -66
  45. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  46. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
  47. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +12 -11
  48. package/dist/FieldOfInterestsWithTagsCardsSection.js +56 -53
  49. package/dist/GeneralWithTagsCardsSection.cjs +6 -7
  50. package/dist/GeneralWithTagsCardsSection.js +8 -9
  51. package/dist/GiftCardsSection.cjs +8 -8
  52. package/dist/GiftCardsSection.js +55 -52
  53. package/dist/LoanCalculatorSection.cjs +106 -4
  54. package/dist/LoanCalculatorSection.js +505 -350
  55. package/dist/LocationFinderSection.cjs +1 -1
  56. package/dist/LocationFinderSection.js +1 -1
  57. package/dist/LocationSearchSection.cjs +4 -4
  58. package/dist/LocationSearchSection.js +18 -16
  59. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  60. package/dist/MasonryGeneralCardsSection.js +1 -1
  61. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  62. package/dist/OverlayGeneralCardsSection.js +2 -2
  63. package/dist/ProductsWithBannerSection.cjs +1 -1
  64. package/dist/ProductsWithBannerSection.js +3 -3
  65. package/dist/QuizSection.cjs +1 -1
  66. package/dist/QuizSection.js +1 -1
  67. package/dist/ReviewsSection.cjs +1 -1
  68. package/dist/ReviewsSection.js +2 -2
  69. package/dist/SalesCampaignsSection.cjs +1 -1
  70. package/dist/SalesCampaignsSection.js +2 -2
  71. package/dist/SeparatorSection.cjs +1 -1
  72. package/dist/SeparatorSection.js +1 -1
  73. package/dist/ShopCardsSection.cjs +1 -1
  74. package/dist/ShopCardsSection.js +1 -1
  75. package/dist/SimpleCategoriesSection.cjs +2 -2
  76. package/dist/SimpleCategoriesSection.js +19 -16
  77. package/dist/SimpleProductsSection.cjs +1 -1
  78. package/dist/SimpleProductsSection.js +3 -3
  79. package/dist/UrgentSaleProductsSection.cjs +12 -6
  80. package/dist/UrgentSaleProductsSection.js +56 -47
  81. package/dist/consts-BuFChS64.js +7 -0
  82. package/dist/consts-goSZX3xP.cjs +1 -0
  83. package/dist/{index-BxlCwYfi.cjs → index-BaLBHyTh.cjs} +1 -1
  84. package/dist/{index-C7iutNsj.cjs → index-Ccw8sLnK.cjs} +1 -1
  85. package/dist/{index-CpuLfTNK.js → index-CsrdUl1x.js} +1 -1
  86. package/dist/{index-CWAifrDS.cjs → index-Cx4KvZ9L.cjs} +1 -1
  87. package/dist/{index-rYeYJwuL.cjs → index-DG7qQq8L.cjs} +1 -1
  88. package/dist/{index-DmuZIVnC.js → index-Db8wvLXS.js} +2 -2
  89. package/dist/{index-BpS5mEUu.js → index-Yh18uk_f.js} +2 -2
  90. package/dist/{index-B5bRol0l.js → index-iSD5jNBk.js} +2 -2
  91. package/dist/{skeleton-BRWiMY6b.cjs → skeleton-BBSBZ4JV.cjs} +1 -1
  92. package/dist/{skeleton-DhXNRCfI.js → skeleton-DALCB1S7.js} +1 -1
  93. package/dist/{style-OPSfrtFm.cjs → style-BTTXJFJN.cjs} +1 -1
  94. package/dist/{style-CsMpu4iC.js → style-sLF37aOA.js} +1 -1
  95. package/dist/{style-DOKM5cZi.js → style-tw6KjI2J.js} +1 -1
  96. package/dist/{style-C571ywKV.cjs → style-xvwWn3Zv.cjs} +1 -1
  97. package/dist/{suspense-categories-card-simple-D-tE8xV6.cjs → suspense-categories-card-simple-5JZtz7wj.cjs} +1 -1
  98. package/dist/{suspense-categories-card-simple-BmmCOsc0.js → suspense-categories-card-simple-BTFqzXyn.js} +1 -1
  99. package/dist/{suspense-large-Buu1428e.cjs → suspense-large-BtfvnzWh.cjs} +1 -1
  100. package/dist/{suspense-large-iKRJJlJv.js → suspense-large-DFlSJhGG.js} +1 -1
  101. package/dist/{suspense-product-card-detailed-J2a9wi6Z.js → suspense-product-card-detailed-CwdbxJrY.js} +1 -1
  102. package/dist/{suspense-product-card-detailed-CwUN6A-L.cjs → suspense-product-card-detailed-DBNlkFiP.cjs} +1 -1
  103. package/dist/{useDetectMobile-BC6EGaBc.js → useDetectMobile-Bkvj0VMa.js} +1 -1
  104. package/dist/{useDetectMobile-D6d5LpdL.cjs → useDetectMobile-zkbzoOGV.cjs} +1 -1
  105. package/package.json +1 -1
  106. package/dist/consts-C1uHV4xc.js +0 -6
  107. package/dist/consts-CtNoHdBj.cjs +0 -1
  108. package/dist/index-B69VVFyo.js +0 -164
  109. package/dist/index-ZR5ws_qw.cjs +0 -103
@@ -1,11 +1,11 @@
1
- import { jsx as i, jsxs as l } from "react/jsx-runtime";
2
- import { forwardRef as p } from "react";
3
- import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { t as y, m as b, k as $, l as N } from "./utils-BE-UlkKf.js";
5
- import C from "./Icon.js";
6
- import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
- import { M as W } from "./consts-C1uHV4xc.js";
8
- const F = m.div`
1
+ import { jsx as i, jsxs as s } from "react/jsx-runtime";
2
+ import { forwardRef as l } from "react";
3
+ import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { t as y, m as b, k as C, l as I } from "./utils-BE-UlkKf.js";
5
+ import W from "./Icon.js";
6
+ import { u as F } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
+ import { M as j } from "./consts-BuFChS64.js";
8
+ const z = p.div`
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  align-items: flex-start;
@@ -65,12 +65,12 @@ const F = m.div`
65
65
  }
66
66
  }
67
67
  }
68
- `, j = m.div`
68
+ `, O = p.div`
69
69
  width: 100%;
70
70
  height: 11.625rem;
71
71
  border-radius: 0.75rem;
72
72
  background: ${b("-90deg")};
73
- `, z = m.div`
73
+ `, A = p.div`
74
74
  display: flex;
75
75
  padding: 0 0.75rem 0 0.75rem;
76
76
  align-items: center;
@@ -82,6 +82,7 @@ const F = m.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 {
@@ -119,30 +120,30 @@ const F = m.div`
119
120
  color: var(--white, #fff);
120
121
  }
121
122
  }
122
- `, O = m.div`
123
+ `, E = p.div`
123
124
  width: 7rem;
124
125
  height: 3rem;
125
126
  border-radius: 999px;
126
127
  background: ${b("-90deg")};
127
- `, A = p(({}, r) => /* @__PURE__ */ i(O, {})), E = p(
128
- ({ name: r, isActive: n, icon: t, onSelectCard: s = () => {
129
- } }, f) => /* @__PURE__ */ l(z, { className: n ? "active" : "", onClick: s, children: [
130
- $(t) && /* @__PURE__ */ i(C, { icon: t, className: "wrapper__icon" }),
128
+ `, M = l(({}, r) => /* @__PURE__ */ i(E, {})), D = l(
129
+ ({ name: r, isActive: n, icon: t, onSelectCard: o = () => {
130
+ } }, m) => /* @__PURE__ */ s(A, { className: n ? "active" : "", onClick: o, children: [
131
+ C(t) && /* @__PURE__ */ i(W, { icon: t, className: "wrapper__icon" }),
131
132
  /* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
132
133
  ] })
133
- ), M = p(
134
- ({ image: r, imageComponent: n, name: t, description: s, onSelectCard: f = () => {
134
+ ), G = l(
135
+ ({ image: r, imageComponent: n, name: t, description: o, onSelectCard: m = () => {
135
136
  } }, u) => {
136
- const { theme: d } = I();
137
- return /* @__PURE__ */ l(F, { theme: d, onClick: f, children: [
138
- N(n) ? n : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
139
- /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
137
+ const { theme: f } = F();
138
+ return /* @__PURE__ */ s(z, { theme: f, onClick: m, children: [
139
+ I(n) ? n : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
140
+ /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
140
141
  t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
141
- s && /* @__PURE__ */ i("div", { className: "wrapper__description", children: s })
142
+ o && /* @__PURE__ */ i("div", { className: "wrapper__description", children: o })
142
143
  ] })
143
144
  ] });
144
145
  }
145
- ), D = p(({}, r) => /* @__PURE__ */ i(j, {})), G = m.div`
146
+ ), L = l(({}, r) => /* @__PURE__ */ i(O, {})), R = p.div`
146
147
  display: flex;
147
148
  flex-direction: column;
148
149
  align-items: center;
@@ -190,7 +191,7 @@ const F = m.div`
190
191
  width: 100%;
191
192
  }
192
193
 
193
- @media (max-width: ${W + "px"}) {
194
+ @media (max-width: ${j + "px"}) {
194
195
  & .wrapper__tags {
195
196
  overflow-x: scroll;
196
197
  justify-content: flex-start;
@@ -216,70 +217,72 @@ const F = m.div`
216
217
  gap: 1rem;
217
218
  }
218
219
  }
219
- `, q = p(
220
+ `, J = l(
220
221
  ({
221
222
  title: r,
222
223
  subtitle: n,
223
224
  tags: t = [],
224
- limitTags: s = 7,
225
- limitTagsForMobile: f = 7,
225
+ limitTags: o = 7,
226
+ limitTagsForMobile: m = 7,
226
227
  limit: u = 3,
227
- limitForMobile: d = 2,
228
- items: a = [],
228
+ limitForMobile: f = 2,
229
+ items: d = [],
229
230
  selectedTag: c,
231
+ isLoadingTags: k = !1,
232
+ isLoadingItems: $ = !1,
230
233
  onSelectTag: h = () => {
231
234
  },
232
235
  onSelectCard: _ = () => {
233
236
  },
234
- getImage: k = () => {
237
+ getImage: N = () => {
235
238
  }
236
- }, L) => {
239
+ }, T) => {
237
240
  var x, v;
238
241
  const w = (e) => {
239
242
  h == null || h(e);
240
243
  }, g = (e) => {
241
244
  _ == null || _(e);
242
245
  };
243
- return /* @__PURE__ */ l(
244
- G,
246
+ return /* @__PURE__ */ s(
247
+ R,
245
248
  {
246
- limitTags: s,
247
- limitTagsForMobile: f,
249
+ limitTags: o,
250
+ limitTagsForMobile: m,
248
251
  limitCards: u,
249
- limitCardsForMobile: d,
252
+ limitCardsForMobile: f,
250
253
  children: [
251
- /* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
254
+ /* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
252
255
  r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
253
256
  n && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: n })
254
257
  ] }),
255
- /* @__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(
256
- E,
258
+ /* @__PURE__ */ i("div", { className: "wrapper__tags", children: k ? (x = Array.from("123")) == null ? void 0 : x.map((e, a) => /* @__PURE__ */ i(
259
+ M,
260
+ {},
261
+ `field-of-interests-with-tags-card-tag-skeleton__${a + 1}`
262
+ )) : t == null ? void 0 : t.map((e, a) => /* @__PURE__ */ i(
263
+ D,
257
264
  {
258
265
  icon: e == null ? void 0 : e.icon,
259
266
  name: e == null ? void 0 : e.name,
260
267
  isActive: (e == null ? void 0 : e.uuid) === (c == null ? void 0 : c.uuid),
261
268
  onSelectCard: () => w == null ? void 0 : w(e)
262
269
  },
263
- `field-of-interests-with-tags-card-tag__${o + 1}`
264
- )) : (x = Array.from("123")) == null ? void 0 : x.map((e, o) => /* @__PURE__ */ i(
265
- A,
266
- {},
267
- `field-of-interests-with-tags-card-tag-skeleton__${o + 1}`
270
+ `field-of-interests-with-tags-card-tag__${a + 1}`
268
271
  )) }),
269
- /* @__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(
270
- M,
272
+ /* @__PURE__ */ i("div", { className: "wrapper__cards", children: $ ? (v = Array.from("123")) == null ? void 0 : v.map((e, a) => /* @__PURE__ */ i(
273
+ L,
274
+ {},
275
+ `field-of-interests-with-tags-card-skeleton__${a + 1}`
276
+ )) : d == null ? void 0 : d.map((e, a) => /* @__PURE__ */ i(
277
+ G,
271
278
  {
272
- image: k(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid),
279
+ image: N(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid),
273
280
  imageComponent: e == null ? void 0 : e.imageComponent,
274
281
  name: e == null ? void 0 : e.name,
275
282
  description: (e == null ? void 0 : e.shortDescription) || (e == null ? void 0 : e.description),
276
283
  onSelectCard: () => g == null ? void 0 : g(e)
277
284
  },
278
- `field-of-interests-with-tags-card__${o + 1}`
279
- )) : (v = Array.from("123")) == null ? void 0 : v.map((e, o) => /* @__PURE__ */ i(
280
- D,
281
- {},
282
- `field-of-interests-with-tags-card-skeleton__${o + 1}`
285
+ `field-of-interests-with-tags-card__${a + 1}`
283
286
  )) })
284
287
  ]
285
288
  }
@@ -287,5 +290,5 @@ const F = m.div`
287
290
  }
288
291
  );
289
292
  export {
290
- q as default
293
+ J as default
291
294
  };
@@ -1,9 +1,8 @@
1
- "use strict";const r=require("react/jsx-runtime"),l=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-CtNoHdBj.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;
5
- flex-shrink: 0;
6
- align-self: stretch;
5
+ width: fit-content;
7
6
  border-radius: 0.75rem;
8
7
  border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
9
8
  background: var(--Lanaco-Gray-white, #fff);
@@ -17,9 +16,9 @@
17
16
 
18
17
  & .wrapper__image {
19
18
  width: 100%;
19
+ max-width: 18rem;
20
20
  object-fit: cover;
21
21
  height: auto;
22
- max-height: 19.5rem;
23
22
  border-radius: 0.75rem 0.75rem 0 0;
24
23
  }
25
24
 
@@ -97,6 +96,7 @@
97
96
 
98
97
  &:hover {
99
98
  cursor: pointer;
99
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
100
100
  }
101
101
 
102
102
  & .wrapper__icon {
@@ -135,7 +135,7 @@
135
135
  height: 3rem;
136
136
  border-radius: 999px;
137
137
  background: ${d.linearGradientAnimation("-90deg")};
138
- `,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`
139
139
  display: flex;
140
140
  flex-direction: column;
141
141
  align-items: center;
@@ -181,7 +181,6 @@
181
181
  justify-content: center;
182
182
  align-items: center;
183
183
  gap: 1.5rem;
184
- width: 100%;
185
184
  }
186
185
 
187
186
  @media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
@@ -212,4 +211,4 @@
212
211
  gap: 1rem;
213
212
  }
214
213
  }
215
- `,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;
@@ -1,7 +1,7 @@
1
1
  import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
2
  import { forwardRef as o } from "react";
3
3
  import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as d } from "./consts-C1uHV4xc.js";
4
+ import { M as d } from "./consts-BuFChS64.js";
5
5
  import { t as y, m as x, k, l as $ } from "./utils-BE-UlkKf.js";
6
6
  import N from "./Icon.js";
7
7
  import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
@@ -9,8 +9,7 @@ const W = s.div`
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  align-items: flex-start;
12
- flex-shrink: 0;
13
- align-self: stretch;
12
+ width: fit-content;
14
13
  border-radius: 0.75rem;
15
14
  border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
16
15
  background: var(--Lanaco-Gray-white, #fff);
@@ -24,9 +23,9 @@ const W = s.div`
24
23
 
25
24
  & .wrapper__image {
26
25
  width: 100%;
26
+ max-width: 18rem;
27
27
  object-fit: cover;
28
28
  height: auto;
29
- max-height: 19.5rem;
30
29
  border-radius: 0.75rem 0.75rem 0 0;
31
30
  }
32
31
 
@@ -104,6 +103,7 @@ const W = s.div`
104
103
 
105
104
  &:hover {
106
105
  cursor: pointer;
106
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
107
107
  }
108
108
 
109
109
  & .wrapper__icon {
@@ -204,7 +204,6 @@ const W = s.div`
204
204
  justify-content: center;
205
205
  align-items: center;
206
206
  gap: 1.5rem;
207
- width: 100%;
208
207
  }
209
208
 
210
209
  @media (max-width: ${d + "px"}) {
@@ -247,11 +246,11 @@ const W = s.div`
247
246
  items: n = [],
248
247
  onSelectTag: h = () => {
249
248
  },
250
- onSelectCard: f = () => {
249
+ onSelectCard: w = () => {
251
250
  },
252
251
  isLoading: b
253
252
  }, v) => {
254
- var w, _;
253
+ var f, _;
255
254
  return /* @__PURE__ */ m(
256
255
  A,
257
256
  {
@@ -272,11 +271,11 @@ const W = s.div`
272
271
  imageComponent: e == null ? void 0 : e.imageComponent,
273
272
  title: e == null ? void 0 : e.title,
274
273
  onSelectCard: () => {
275
- f == null || f(e);
274
+ w == null || w(e);
276
275
  }
277
276
  },
278
277
  `general-with-tags-card__${l + 1}`
279
- )) : (w = Array.from("123")) == null ? void 0 : w.map((e, l) => /* @__PURE__ */ a(
278
+ )) : (f = Array.from("123")) == null ? void 0 : f.map((e, l) => /* @__PURE__ */ a(
280
279
  M,
281
280
  {},
282
281
  `general-with-tags-card-skeleton__${l + 1}`
@@ -1,12 +1,12 @@
1
- "use strict";const r=require("react/jsx-runtime"),f=require("react"),w=require("./useDetectMobile-D6d5LpdL.cjs"),v=require("./style-C571ywKV.cjs"),n=require("./utils-DhRHf5Ed.cjs"),j=require("./Button.cjs"),s=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-CtNoHdBj.cjs"),S=s.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),f=require("react"),w=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-xvwWn3Zv.cjs"),o=require("./utils-DhRHf5Ed.cjs"),j=require("./Button.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),S=c.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${o=>`repeat(${o.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
6
  @media (max-width: ${C.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,G=s.styled.div`
9
+ `,G=c.styled.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  gap: 0.75rem;
@@ -21,7 +21,7 @@
21
21
  & .text-wrap {
22
22
  text-align: center;
23
23
  }
24
- `,k=s.styled.div`
24
+ `,k=c.styled.div`
25
25
  width: 100%;
26
26
  min-height: 11rem;
27
27
  max-height: 11rem;
@@ -33,7 +33,7 @@
33
33
  & .skeleton__card {
34
34
  height: 100%;
35
35
  width: 100%;
36
- ${n.linearGradientAnimation("-90deg")}
36
+ ${o.linearGradientAnimation("-90deg")}
37
37
 
38
38
  background: linear-gradient(
39
39
  178deg,
@@ -69,9 +69,9 @@
69
69
  -webkit-transform: rotate(315deg);
70
70
  transform: rotate(315deg);
71
71
  }
72
- `;s.styled.div`
72
+ `;c.styled.div`
73
73
  width: 100%;
74
74
  height: 11.5rem;
75
75
  border-radius: 0.75rem;
76
- background: ${n.linearGradientAnimation("-90deg")};
77
- `;const p=f.forwardRef((o,c)=>{const{image:a,text:d,price:i,currency:t,onSelectGiftCard:l=()=>{}}=o;return r.jsxs(G,{ref:c,className:"simple-gift-card",onClick:()=>l(i),children:[r.jsxs(k,{children:[r.jsx("div",{className:"price-tag",children:i&&t&&`${n.formatPrice(i)} ${n.GetCurrencySymbol(t)}`}),r.jsx("img",{src:a})]}),r.jsx("div",{className:"text-wrap",children:d})]})}),q=f.forwardRef((o,c)=>{const{icon:a,title:d,buttonLink:i,items:t,buttonText:l,limit:u=4,onSelectCard:g=()=>{},onButtonAction:h=()=>{}}=o,b=w.useDetectMobile();return r.jsxs(v.RegulatTitleSectionWrapper,{ref:c,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[n.isDefinedNotEmptyString(a)&&r.jsx("i",{className:a}),r.jsx("span",{children:d})]}),n.isDefinedNotEmptyString(i)&&r.jsx(j,{type:"button",btnType:"tinted",color:"gray",onClick:()=>h(i),borderRadius:"curved",children:l})]}),r.jsx(S,{limit:u,children:b===!0?t==null?void 0:t.map((e,m)=>r.jsx(p,{text:e==null?void 0:e.text,price:e==null?void 0:e.priceTo,currency:e==null?void 0:e.currencyIsoCode,image:e==null?void 0:e.imageUrl,uuid:e==null?void 0:e.uuid,onSelectGiftCard:y=>g(e)},m)):t==null?void 0:t.slice(0,u).map((e,m)=>r.jsx(p,{text:e==null?void 0:e.text,price:e==null?void 0:e.priceTo,currency:e==null?void 0:e.currencyIsoCode,image:e==null?void 0:e.imageUrl,uuid:e==null?void 0:e.uuid,onSelectGiftCard:y=>g(e)},m))})]})});module.exports=q;
76
+ background: ${o.linearGradientAnimation("-90deg")};
77
+ `;const p=f.forwardRef((a,d)=>{const{image:s,text:l,price:i,currency:t,onSelectGiftCard:m=()=>{}}=a;return r.jsxs(G,{ref:d,className:"simple-gift-card",onClick:()=>m(i),children:[r.jsxs(k,{children:[r.jsx("div",{className:"price-tag",children:i&&t&&`${o.formatPrice(i)} ${o.GetCurrencySymbol(t)}`}),r.jsx("img",{src:s})]}),r.jsx("div",{className:"text-wrap",children:l})]})}),q=f.forwardRef((a,d)=>{const{icon:s,title:l,buttonLink:i,items:t,buttonText:m,limit:u=4,onSelectCard:g=()=>{},onButtonAction:h=()=>{}}=a,b=w.useDetectMobile();return r.jsxs(v.RegulatTitleSectionWrapper,{ref:d,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[o.isDefinedNotEmptyString(s)&&r.jsx("i",{className:s}),r.jsx("span",{children:l})]}),o.isDefinedNotEmptyString(i)&&r.jsx(j,{type:"button",btnType:"tinted",color:"gray",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),h(i)},borderRadius:"curved",children:m})]}),r.jsx(S,{limit:u,children:b===!0?t==null?void 0:t.map((e,n)=>r.jsx(p,{text:e==null?void 0:e.text,price:e==null?void 0:e.priceTo,currency:e==null?void 0:e.currencyIsoCode,image:e==null?void 0:e.imageUrl,uuid:e==null?void 0:e.uuid,onSelectGiftCard:y=>g(e)},n)):t==null?void 0:t.slice(0,u).map((e,n)=>r.jsx(p,{text:e==null?void 0:e.text,price:e==null?void 0:e.priceTo,currency:e==null?void 0:e.currencyIsoCode,image:e==null?void 0:e.imageUrl,uuid:e==null?void 0:e.uuid,onSelectGiftCard:y=>g(e)},n))})]})});module.exports=q;
@@ -1,20 +1,20 @@
1
- import { jsxs as a, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as h } from "react";
3
- import { u as C } from "./useDetectMobile-BC6EGaBc.js";
4
- import { R as k } from "./style-CsMpu4iC.js";
3
+ import { u as C } from "./useDetectMobile-Bkvj0VMa.js";
4
+ import { R as k } from "./style-sLF37aOA.js";
5
5
  import { m as b, n as G, G as S, k as u } from "./utils-BE-UlkKf.js";
6
6
  import N from "./Button.js";
7
- import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
- import { M as $ } from "./consts-C1uHV4xc.js";
9
- const T = d.div`
7
+ import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
+ import { M as $ } from "./consts-BuFChS64.js";
9
+ const T = c.div`
10
10
  display: grid;
11
- grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
11
+ grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
12
12
  gap: 1.25rem;
13
13
 
14
14
  @media (max-width: ${$ + "px"}) {
15
15
  grid-template-columns: repeat(1, 1fr);
16
16
  }
17
- `, j = d.div`
17
+ `, j = c.div`
18
18
  display: flex;
19
19
  flex-direction: column;
20
20
  gap: 0.75rem;
@@ -29,7 +29,7 @@ const T = d.div`
29
29
  & .text-wrap {
30
30
  text-align: center;
31
31
  }
32
- `, E = d.div`
32
+ `, E = c.div`
33
33
  width: 100%;
34
34
  min-height: 11rem;
35
35
  max-height: 11rem;
@@ -78,54 +78,54 @@ const T = d.div`
78
78
  transform: rotate(315deg);
79
79
  }
80
80
  `;
81
- d.div`
81
+ c.div`
82
82
  width: 100%;
83
83
  height: 11.5rem;
84
84
  border-radius: 0.75rem;
85
85
  background: ${b("-90deg")};
86
86
  `;
87
- const f = h((o, c) => {
87
+ const f = h((a, m) => {
88
88
  const {
89
- image: n,
90
- text: m,
89
+ image: d,
90
+ text: l,
91
91
  price: i,
92
- currency: r,
93
- onSelectGiftCard: l = () => {
92
+ currency: e,
93
+ onSelectGiftCard: s = () => {
94
94
  }
95
- } = o;
96
- return /* @__PURE__ */ a(
95
+ } = a;
96
+ return /* @__PURE__ */ n(
97
97
  j,
98
98
  {
99
- ref: c,
99
+ ref: m,
100
100
  className: "simple-gift-card",
101
- onClick: () => l(i),
101
+ onClick: () => s(i),
102
102
  children: [
103
- /* @__PURE__ */ a(E, { children: [
104
- /* @__PURE__ */ t("div", { className: "price-tag", children: i && r && `${G(i)} ${S(r)}` }),
105
- /* @__PURE__ */ t("img", { src: n })
103
+ /* @__PURE__ */ n(E, { children: [
104
+ /* @__PURE__ */ t("div", { className: "price-tag", children: i && e && `${G(i)} ${S(e)}` }),
105
+ /* @__PURE__ */ t("img", { src: d })
106
106
  ] }),
107
- /* @__PURE__ */ t("div", { className: "text-wrap", children: m })
107
+ /* @__PURE__ */ t("div", { className: "text-wrap", children: l })
108
108
  ]
109
109
  }
110
110
  );
111
- }), D = h((o, c) => {
111
+ }), D = h((a, m) => {
112
112
  const {
113
- icon: n,
114
- title: m,
113
+ icon: d,
114
+ title: l,
115
115
  buttonLink: i,
116
- items: r,
117
- buttonText: l,
116
+ items: e,
117
+ buttonText: s,
118
118
  limit: p = 4,
119
119
  onSelectCard: g = () => {
120
120
  },
121
121
  onButtonAction: v = () => {
122
122
  }
123
- } = o, w = C();
124
- return /* @__PURE__ */ a(k, { ref: c, children: [
125
- /* @__PURE__ */ a("div", { className: "regular-title", children: [
126
- /* @__PURE__ */ a("div", { className: "regular-title-text", children: [
127
- u(n) && /* @__PURE__ */ t("i", { className: n }),
128
- /* @__PURE__ */ t("span", { children: m })
123
+ } = a, w = C();
124
+ return /* @__PURE__ */ n(k, { ref: m, children: [
125
+ /* @__PURE__ */ n("div", { className: "regular-title", children: [
126
+ /* @__PURE__ */ n("div", { className: "regular-title-text", children: [
127
+ u(d) && /* @__PURE__ */ t("i", { className: d }),
128
+ /* @__PURE__ */ t("span", { children: l })
129
129
  ] }),
130
130
  u(i) && /* @__PURE__ */ t(
131
131
  N,
@@ -133,34 +133,37 @@ const f = h((o, c) => {
133
133
  type: "button",
134
134
  btnType: "tinted",
135
135
  color: "gray",
136
- onClick: () => v(i),
136
+ onClick: (r) => {
137
+ var o;
138
+ (o = r == null ? void 0 : r.target) == null || o.blur(), v(i);
139
+ },
137
140
  borderRadius: "curved",
138
- children: l
141
+ children: s
139
142
  }
140
143
  )
141
144
  ] }),
142
- /* @__PURE__ */ t(T, { limit: p, children: w === !0 ? r == null ? void 0 : r.map((e, s) => /* @__PURE__ */ t(
145
+ /* @__PURE__ */ t(T, { limit: p, children: w === !0 ? e == null ? void 0 : e.map((r, o) => /* @__PURE__ */ t(
143
146
  f,
144
147
  {
145
- text: e == null ? void 0 : e.text,
146
- price: e == null ? void 0 : e.priceTo,
147
- currency: e == null ? void 0 : e.currencyIsoCode,
148
- image: e == null ? void 0 : e.imageUrl,
149
- uuid: e == null ? void 0 : e.uuid,
150
- onSelectGiftCard: (y) => g(e)
148
+ text: r == null ? void 0 : r.text,
149
+ price: r == null ? void 0 : r.priceTo,
150
+ currency: r == null ? void 0 : r.currencyIsoCode,
151
+ image: r == null ? void 0 : r.imageUrl,
152
+ uuid: r == null ? void 0 : r.uuid,
153
+ onSelectGiftCard: (y) => g(r)
151
154
  },
152
- s
153
- )) : r == null ? void 0 : r.slice(0, p).map((e, s) => /* @__PURE__ */ t(
155
+ o
156
+ )) : e == null ? void 0 : e.slice(0, p).map((r, o) => /* @__PURE__ */ t(
154
157
  f,
155
158
  {
156
- text: e == null ? void 0 : e.text,
157
- price: e == null ? void 0 : e.priceTo,
158
- currency: e == null ? void 0 : e.currencyIsoCode,
159
- image: e == null ? void 0 : e.imageUrl,
160
- uuid: e == null ? void 0 : e.uuid,
161
- onSelectGiftCard: (y) => g(e)
159
+ text: r == null ? void 0 : r.text,
160
+ price: r == null ? void 0 : r.priceTo,
161
+ currency: r == null ? void 0 : r.currencyIsoCode,
162
+ image: r == null ? void 0 : r.imageUrl,
163
+ uuid: r == null ? void 0 : r.uuid,
164
+ onSelectGiftCard: (y) => g(r)
162
165
  },
163
- s
166
+ o
164
167
  )) })
165
168
  ] });
166
169
  });