@lanaco/lnc-react-ui 4.0.226 → 4.0.227

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 (79) hide show
  1. package/dist/BannerSectionCarousel.cjs +3 -3
  2. package/dist/BannerSectionCarousel.js +18 -11
  3. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  4. package/dist/BlogCardsSponsoredSection.js +1 -1
  5. package/dist/BlogListSection.cjs +7 -7
  6. package/dist/BlogListSection.js +157 -207
  7. package/dist/BlogSingleSection.cjs +2 -11
  8. package/dist/BlogSingleSection.js +19 -35
  9. package/dist/BlogsSectionDetailed.cjs +1 -1
  10. package/dist/BlogsSectionDetailed.js +1 -1
  11. package/dist/BlogsSectionLarge.cjs +8 -16
  12. package/dist/BlogsSectionLarge.js +40 -58
  13. package/dist/BlogsSectionSimple.cjs +1 -1
  14. package/dist/BlogsSectionSimple.js +1 -1
  15. package/dist/BlogsSectionSimpleCentered.cjs +12 -25
  16. package/dist/BlogsSectionSimpleCentered.js +64 -98
  17. package/dist/BlogsSectionWithFilters.cjs +10 -21
  18. package/dist/BlogsSectionWithFilters.js +106 -154
  19. package/dist/BrandHitsSection.cjs +7 -7
  20. package/dist/BrandHitsSection.js +41 -87
  21. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  22. package/dist/DetailedProductsInfinitiveSection.js +2 -2
  23. package/dist/DetailedProductsSection.cjs +1 -1
  24. package/dist/DetailedProductsSection.js +2 -2
  25. package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
  26. package/dist/FieldOfInterestsMasonrySection.js +105 -159
  27. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
  28. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
  29. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  30. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  31. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  32. package/dist/GeneralWithTagsCardsSection.js +1 -1
  33. package/dist/GiftCardsSection.cjs +10 -14
  34. package/dist/GiftCardsSection.js +76 -146
  35. package/dist/MasonryGeneralCardsSection.cjs +10 -10
  36. package/dist/MasonryGeneralCardsSection.js +45 -44
  37. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  38. package/dist/OverlayGeneralCardsSection.js +1 -1
  39. package/dist/ProductsWithBannerSection.cjs +13 -13
  40. package/dist/ProductsWithBannerSection.js +87 -168
  41. package/dist/QuattroCardsSection.cjs +1 -1
  42. package/dist/QuattroCardsSection.js +1 -1
  43. package/dist/ReviewsSection.cjs +18 -22
  44. package/dist/ReviewsSection.js +101 -163
  45. package/dist/SalesCampaignsSection.cjs +14 -14
  46. package/dist/SalesCampaignsSection.js +299 -330
  47. package/dist/ShopCardsSection.cjs +6 -19
  48. package/dist/ShopCardsSection.js +54 -100
  49. package/dist/SimpleCategoriesSection.cjs +3 -3
  50. package/dist/SimpleCategoriesSection.js +64 -67
  51. package/dist/SimpleProductsSection.cjs +7 -7
  52. package/dist/SimpleProductsSection.js +65 -138
  53. package/dist/UrgentSaleProductsSection.cjs +1 -1
  54. package/dist/UrgentSaleProductsSection.js +1 -1
  55. package/dist/index-B7fBsitY.js +45 -0
  56. package/dist/index-BMAvJQBG.cjs +9 -0
  57. package/dist/index-BUdvfHpp.cjs +5 -0
  58. package/dist/index-BXT1eY2D.js +753 -0
  59. package/dist/index-C6amCwRZ.js +25 -0
  60. package/dist/index-C8R9lsWG.cjs +1 -0
  61. package/dist/index-CeQvy566.cjs +11 -0
  62. package/dist/index-Cyt4EUZ6.js +20 -0
  63. package/dist/index-D3QZziO_.cjs +368 -0
  64. package/dist/index-VTkAaA-n.js +18 -0
  65. package/dist/style-BFPpppS9.js +73 -0
  66. package/dist/style-CQdEALKR.cjs +59 -0
  67. package/package.json +1 -1
  68. package/dist/index-BGNavrtB.cjs +0 -368
  69. package/dist/index-BHcrzV2G.js +0 -54
  70. package/dist/index-Bj1KWOV4.cjs +0 -11
  71. package/dist/index-BsAddfgC.cjs +0 -1
  72. package/dist/index-Cn4bq6ZX.js +0 -84
  73. package/dist/index-CuRcxKQH.js +0 -42
  74. package/dist/index-DB1J-G6Z.js +0 -38
  75. package/dist/index-DkPva6Gr.cjs +0 -20
  76. package/dist/index-fzBXDy05.cjs +0 -16
  77. package/dist/index-gFZSZLba.js +0 -882
  78. package/dist/style-DvkivBNg.js +0 -74
  79. package/dist/style-Ito6YFqi.cjs +0 -64
@@ -1,11 +1,11 @@
1
- import { jsx as i, jsxs as f, Fragment as y } from "react/jsx-runtime";
2
- import { forwardRef as F, Suspense as N } from "react";
3
- import { m as S } from "./utils-MoGhNMmj.js";
4
- import { s as b } from "./emotion-styled.browser.esm-DfbrHHed.js";
5
- import { d as _ } from "./breakpoints-BubDitvo.js";
6
- import { S as j } from "./index-jGcy-5M_.js";
7
- import { S as k, d as g, a as h } from "./style-DvkivBNg.js";
8
- const I = b.div`
1
+ import { jsx as t, Fragment as C, jsxs as c } from "react/jsx-runtime";
2
+ import { forwardRef as $, Suspense as F } from "react";
3
+ import { m as k } from "./utils-MoGhNMmj.js";
4
+ import { s as v } from "./emotion-styled.browser.esm-DfbrHHed.js";
5
+ import { d as g } from "./breakpoints-BubDitvo.js";
6
+ import { S as N } from "./index-jGcy-5M_.js";
7
+ import { S, f as W, a as j } from "./style-BFPpppS9.js";
8
+ const A = v.div`
9
9
  width: 100%;
10
10
  height: auto;
11
11
  border-radius: 999px;
@@ -26,60 +26,60 @@ const I = b.div`
26
26
  border: var(--yellow-600, #d97706);
27
27
  }
28
28
 
29
- @media ${_("S")} {
29
+ @media ${g("S")} {
30
30
  & .wrapper__image {
31
31
  height: auto;
32
32
  }
33
33
  }
34
- `, O = F(
35
- ({ isActive: t, image: s, imageComponent: r, onSelectCard: n = () => {
36
- } }, l) => /* @__PURE__ */ i(
37
- I,
34
+ `, I = $(
35
+ ({ isActive: i, image: r, imageComponent: s, onSelectCard: n = () => {
36
+ } }, l) => /* @__PURE__ */ t(
37
+ A,
38
38
  {
39
39
  ref: l,
40
- className: t ? "active" : "",
40
+ className: i ? "active" : "",
41
41
  onClick: n,
42
- children: S(r) ? r : /* @__PURE__ */ i("img", { src: s, className: "wrapper__image" })
42
+ children: k(s) ? s : /* @__PURE__ */ t("img", { src: r, className: "wrapper__image" })
43
43
  }
44
44
  )
45
- ), A = F(
45
+ ), O = $(
46
46
  ({
47
- uuid: t,
48
- title: s,
49
- price: r,
47
+ uuid: i,
48
+ title: r,
49
+ price: s,
50
50
  currency: n,
51
51
  isNegotiable: l,
52
- isFree: u,
53
- image: d,
52
+ isFree: f,
53
+ image: h,
54
54
  sellerUuid: m,
55
55
  onSelectCard: o = () => {
56
56
  },
57
57
  imageComponent: a,
58
- negotiableText: w = "Negotiable",
59
- freeText: $ = "Free",
60
- nameSlug: x,
61
- LinkComponent: c
62
- }, p) => /* @__PURE__ */ i(
63
- j,
58
+ negotiableText: _ = "Negotiable",
59
+ freeText: u = "Free",
60
+ nameSlug: d,
61
+ LinkComponent: w
62
+ }, p) => /* @__PURE__ */ t(
63
+ N,
64
64
  {
65
65
  ref: p,
66
- uuid: t,
67
- title: s,
68
- price: r,
66
+ uuid: i,
67
+ title: r,
68
+ price: s,
69
69
  currency: n,
70
70
  isNegotiable: l,
71
- isFree: u,
72
- image: d,
71
+ isFree: f,
72
+ image: h,
73
73
  imageComponent: a,
74
74
  sellerUuid: m,
75
75
  onSelectCard: o,
76
- negotiableText: w,
77
- freeText: $,
78
- nameSlug: x,
79
- LinkComponent: c
76
+ negotiableText: _,
77
+ freeText: u,
78
+ nameSlug: d,
79
+ LinkComponent: w
80
80
  }
81
81
  )
82
- ), T = b.div`
82
+ ), T = v.div`
83
83
  display: flex;
84
84
  flex-direction: column;
85
85
  align-items: center;
@@ -113,7 +113,7 @@ const I = b.div`
113
113
 
114
114
  & .wrapper__avatars {
115
115
  display: grid;
116
- grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitAvatars}, minmax(0, 1fr))`};
116
+ grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitAvatars}, minmax(0, 1fr))`};
117
117
  gap: 2rem;
118
118
  justify-items: center;
119
119
  align-items: center;
@@ -121,36 +121,36 @@ const I = b.div`
121
121
 
122
122
  & .wrapper__cards {
123
123
  display: grid;
124
- grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitCards}, minmax(0, 1fr))`};
124
+ grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCards}, minmax(0, 1fr))`};
125
125
  gap: 1.25rem;
126
126
  justify-items: center;
127
127
  align-items: center;
128
128
  width: 100%;
129
129
  }
130
130
 
131
- @media ${_("M")} {
131
+ @media ${g("M")} {
132
132
  & .wrapper__cards {
133
133
  grid-template-columns: repeat(2, minmax(0, 1fr));
134
134
  }
135
135
  }
136
136
 
137
- @media ${_("S")} {
137
+ @media ${g("S")} {
138
138
  & .wrapper__avatars {
139
- grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitAvatarsForMobile}, minmax(0, 1fr))`};
139
+ grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitAvatarsForMobile}, minmax(0, 1fr))`};
140
140
  gap: auto;
141
141
  }
142
142
 
143
143
  & .wrapper__cards {
144
- grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitCardsForMobile}, minmax(0, 1fr))`};
144
+ grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCardsForMobile}, minmax(0, 1fr))`};
145
145
  gap: 1rem;
146
146
  }
147
147
  }
148
- `, W = b(k)`
148
+ `, b = v(S)`
149
149
  &.skeleton__tags {
150
150
  max-width: 50rem;
151
151
  }
152
152
 
153
- @media ${_("S")} {
153
+ @media ${g("S")} {
154
154
  &.skeleton__tags {
155
155
  overflow-x: hidden;
156
156
 
@@ -169,113 +169,82 @@ const I = b.div`
169
169
  }
170
170
  }
171
171
  }
172
- `, M = ({ keyPrefix: t }) => /* @__PURE__ */ f(W, { className: "skeleton__tags", justifyContent: "center", children: [
173
- /* @__PURE__ */ i(
174
- g,
175
- {
176
- width: "9.875rem",
177
- height: "9.875rem"
178
- },
179
- `${t}-1`
180
- ),
181
- /* @__PURE__ */ i(
182
- g,
183
- {
184
- width: "9.875rem",
185
- height: "9.875rem"
186
- },
187
- `${t}-2`
188
- ),
189
- /* @__PURE__ */ i(
190
- g,
191
- {
192
- width: "9.875rem",
193
- height: "9.875rem"
194
- },
195
- `${t}-3`
196
- ),
197
- /* @__PURE__ */ i(
198
- g,
199
- {
200
- width: "9.875rem",
201
- height: "9.875rem"
202
- },
203
- `${t}-4`
204
- )
205
- ] }), L = ({
206
- keyPrefix: t,
207
- isLoading: s = !1,
208
- fallbackComponent: r = /* @__PURE__ */ i(y, {}),
172
+ `, M = ({ keyPrefix: i }) => /* @__PURE__ */ t(b, { className: "skeleton__tags", justifyContent: "center", children: [1, 2, 3, 4].map((r) => /* @__PURE__ */ t(W, { size: "9.875rem" }, `${i}-${r}`)) }), z = ({
173
+ keyPrefix: i,
174
+ isLoading: r = !1,
175
+ fallbackComponent: s = /* @__PURE__ */ t(C, {}),
209
176
  children: n
210
- }) => /* @__PURE__ */ i(N, { fallbackComponent: r, children: s === !0 ? /* @__PURE__ */ i(M, { keyPrefix: t }) : n }), z = ({ keyPrefix: t }) => /* @__PURE__ */ f(W, { className: "skeleton__cards", justifyContent: "center", children: [
211
- /* @__PURE__ */ i(h, { height: "13.75rem" }, `${t}-1`),
212
- /* @__PURE__ */ i(h, { height: "13.75rem" }, `${t}-2`),
213
- /* @__PURE__ */ i(h, { height: "13.75rem" }, `${t}-3`),
214
- /* @__PURE__ */ i(h, { height: "13.75rem" }, `${t}-3`)
215
- ] }), R = ({
216
- keyPrefix: t,
217
- isLoading: s = !1,
218
- fallbackComponent: r = /* @__PURE__ */ i(y, {}),
177
+ }) => /* @__PURE__ */ t(F, { fallbackComponent: s, children: r === !0 ? /* @__PURE__ */ t(M, { keyPrefix: i }) : n }), P = ({ keyPrefix: i }) => /* @__PURE__ */ t(b, { className: "skeleton__cards", justifyContent: "center", children: [1, 2, 3, 4].map((r) => /* @__PURE__ */ t(
178
+ j,
179
+ {
180
+ width: "100%",
181
+ height: "13.75rem"
182
+ },
183
+ `${i}-${r}`
184
+ )) }), L = ({
185
+ keyPrefix: i,
186
+ isLoading: r = !1,
187
+ fallbackComponent: s = /* @__PURE__ */ t(C, {}),
219
188
  children: n
220
- }) => /* @__PURE__ */ i(N, { fallbackComponent: r, children: s === !0 ? /* @__PURE__ */ i(z, { keyPrefix: t }) : n }), J = F(
189
+ }) => /* @__PURE__ */ t(F, { fallbackComponent: s, children: r === !0 ? /* @__PURE__ */ t(P, { keyPrefix: i }) : n }), H = $(
221
190
  ({
222
- title: t,
223
- subtitle: s,
224
- avatars: r = [],
191
+ title: i,
192
+ subtitle: r,
193
+ avatars: s = [],
225
194
  limitAvatars: n = 4,
226
195
  limit: l = 6,
227
- limitAvatarsForMobile: u = 4,
228
- limitForMobile: d = 2,
196
+ limitAvatarsForMobile: f = 4,
197
+ limitForMobile: h = 2,
229
198
  items: m = [],
230
199
  onSelectAvatar: o = () => {
231
200
  },
232
201
  onSelectCard: a = () => {
233
202
  },
234
- isLoadingTags: w = !1,
235
- isLoadingCards: $ = !1,
236
- LinkComponent: x
237
- }, c) => {
203
+ isLoadingTags: _ = !1,
204
+ isLoadingCards: u = !1,
205
+ LinkComponent: d
206
+ }, w) => {
238
207
  const p = (e) => {
239
208
  o == null || o(e);
240
- }, v = (e) => {
209
+ }, x = (e) => {
241
210
  a == null || a(e);
242
211
  };
243
- return /* @__PURE__ */ f(
212
+ return /* @__PURE__ */ c(
244
213
  T,
245
214
  {
246
- ref: c,
215
+ ref: w,
247
216
  limitAvatars: n,
248
- limitAvatarsForMobile: u,
217
+ limitAvatarsForMobile: f,
249
218
  limitCards: l,
250
- limitCardsForMobile: d,
219
+ limitCardsForMobile: h,
251
220
  children: [
252
- /* @__PURE__ */ f("div", { className: "wrapper__heading", children: [
253
- t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
254
- s && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: s })
221
+ /* @__PURE__ */ c("div", { className: "wrapper__heading", children: [
222
+ i && /* @__PURE__ */ t("div", { className: "wrapper__title", children: i }),
223
+ r && /* @__PURE__ */ t("div", { className: "wrapper__subtitle", children: r })
255
224
  ] }),
256
- /* @__PURE__ */ i(
257
- L,
225
+ /* @__PURE__ */ t(
226
+ z,
258
227
  {
259
- isLoading: w,
228
+ isLoading: _,
260
229
  keyPrefix: "field-of-interests-with-avatars-tag",
261
- children: /* @__PURE__ */ i("div", { className: "wrapper__avatars", children: r == null ? void 0 : r.map((e, C) => /* @__PURE__ */ i(
262
- O,
230
+ children: /* @__PURE__ */ t("div", { className: "wrapper__avatars", children: s == null ? void 0 : s.map((e, y) => /* @__PURE__ */ t(
231
+ I,
263
232
  {
264
233
  image: e == null ? void 0 : e.image,
265
234
  imageComponent: e == null ? void 0 : e.imageComponent,
266
235
  onSelectCard: () => p == null ? void 0 : p(e)
267
236
  },
268
- `field-of-interests-with-avatars-card-avatar__${C + 1}`
237
+ `field-of-interests-with-avatars-card-avatar__${y + 1}`
269
238
  )) })
270
239
  }
271
240
  ),
272
- /* @__PURE__ */ i(
273
- R,
241
+ /* @__PURE__ */ t(
242
+ L,
274
243
  {
275
- isLoading: $,
244
+ isLoading: u,
276
245
  keyPrefix: "field-of-interests-with-avatars-card",
277
- children: /* @__PURE__ */ i("div", { className: "wrapper__cards", children: m == null ? void 0 : m.map((e, C) => /* @__PURE__ */ i(
278
- A,
246
+ children: /* @__PURE__ */ t("div", { className: "wrapper__cards", children: m == null ? void 0 : m.map((e, y) => /* @__PURE__ */ t(
247
+ O,
279
248
  {
280
249
  uuid: e == null ? void 0 : e.uuid,
281
250
  title: e == null ? void 0 : e.title,
@@ -288,11 +257,11 @@ const I = b.div`
288
257
  sellerUuid: e == null ? void 0 : e.sellerUuid,
289
258
  negotiableText: e == null ? void 0 : e.negotiableText,
290
259
  freeText: e == null ? void 0 : e.freeText,
291
- onSelectCard: () => v == null ? void 0 : v(e),
260
+ onSelectCard: () => x == null ? void 0 : x(e),
292
261
  nameSlug: e == null ? void 0 : e.nameSlug,
293
- LinkComponent: x
262
+ LinkComponent: d
294
263
  },
295
- `field-of-interests-with-avatars-card__${C + 1}`
264
+ `field-of-interests-with-avatars-card__${y + 1}`
296
265
  )) })
297
266
  }
298
267
  )
@@ -302,5 +271,5 @@ const I = b.div`
302
271
  }
303
272
  );
304
273
  export {
305
- J as default
274
+ H as default
306
275
  };
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),g=require("react"),p=require("./utils-CITgSxXe.cjs"),$=require("./Icon.cjs"),_=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),c=require("./breakpoints-CcVm-gVm.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),v=require("./index-Bj1KWOV4.cjs"),k=_.styled.a`
1
+ "use strict";const r=require("react/jsx-runtime"),g=require("react"),p=require("./utils-CITgSxXe.cjs"),$=require("./Icon.cjs"),_=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),c=require("./breakpoints-CcVm-gVm.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),v=require("./index-CeQvy566.cjs"),k=_.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  display: flex;
@@ -5,7 +5,7 @@ import C from "./Icon.js";
5
5
  import { s as u } from "./emotion-styled.browser.esm-DfbrHHed.js";
6
6
  import { d } from "./breakpoints-BubDitvo.js";
7
7
  import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- import { S as W, a as j } from "./index-Cn4bq6ZX.js";
8
+ import { S as W, a as j } from "./index-B7fBsitY.js";
9
9
  const F = u.a`
10
10
  text-decoration: none;
11
11
  color: var(--gray-950);
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),f=require("react"),v=require("./Icon.cjs"),w=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),d=require("./breakpoints-CcVm-gVm.cjs"),x=require("./utils-CITgSxXe.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./index-Bj1KWOV4.cjs"),$=w.styled.a`
1
+ "use strict";const r=require("react/jsx-runtime"),f=require("react"),v=require("./Icon.cjs"),w=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),d=require("./breakpoints-CcVm-gVm.cjs"),x=require("./utils-CITgSxXe.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./index-CeQvy566.cjs"),$=w.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  display: flex;
@@ -5,7 +5,7 @@ import { s as w } from "./emotion-styled.browser.esm-DfbrHHed.js";
5
5
  import { d } from "./breakpoints-BubDitvo.js";
6
6
  import { n as v, l as $, m as C } from "./utils-MoGhNMmj.js";
7
7
  import { u as N } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- import { a as k, S as W } from "./index-Cn4bq6ZX.js";
8
+ import { a as k, S as W } from "./index-B7fBsitY.js";
9
9
  const j = w.a`
10
10
  text-decoration: none;
11
11
  color: var(--gray-950);
@@ -1,20 +1,20 @@
1
- "use strict";const r=require("react/jsx-runtime"),j=require("react"),C=require("./useDetectMobile-DYV6V1yw.cjs"),v=require("./style-Boz6dk5s.cjs"),u=require("./utils-CITgSxXe.cjs"),$=require("./Button.cjs"),f=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),g=require("./breakpoints-CcVm-gVm.cjs"),t=require("./style-Ito6YFqi.cjs"),R=f.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),j=require("react"),v=require("./useDetectMobile-DYV6V1yw.cjs"),k=require("./style-Boz6dk5s.cjs"),m=require("./utils-CITgSxXe.cjs"),$=require("./Button.cjs"),h=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),f=require("./breakpoints-CcVm-gVm.cjs"),g=require("./style-CQdEALKR.cjs"),N=h.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media ${g.down("M")} {
6
+ @media ${f.down("M")} {
7
7
  grid-template-columns: repeat(2, 1fr);
8
8
  }
9
9
 
10
- @media ${g.down("S")} {
10
+ @media ${f.down("S")} {
11
11
  grid-template-columns: repeat(2, 1fr);
12
12
  }
13
13
 
14
- @media ${g.down("XS")} {
14
+ @media ${f.down("XS")} {
15
15
  grid-template-columns: repeat(1, 1fr);
16
16
  }
17
- `,G=f.styled.a`
17
+ `,R=h.styled.a`
18
18
  text-decoration: none;
19
19
  color: var(--gray-950);
20
20
  display: flex;
@@ -37,7 +37,7 @@
37
37
  transform: scale(1.1);
38
38
  }
39
39
  }
40
- `,L=f.styled.div`
40
+ `,q=h.styled.div`
41
41
  width: 100%;
42
42
  min-height: 11rem;
43
43
  max-height: 11rem;
@@ -74,16 +74,12 @@
74
74
  -webkit-transform: rotate(315deg);
75
75
  transform: rotate(315deg);
76
76
  }
77
- `,S=j.forwardRef((i,l)=>{const{image:o,text:d,price:s,currency:n,onSelectGiftCard:h=()=>{},selectAction:c,LinkComponent:m}=i,p=m||"a";return r.jsxs(G,{ref:l,className:"simple-gift-card",onClick:()=>h(s),as:p,...m?{to:`${c}`}:{href:`${c}`},children:[r.jsxs(L,{children:[r.jsx("div",{className:"price-tag",children:s&&n&&`${u.formatPrice(s)} ${u.GetCurrencySymbol(n)}`}),r.jsx("img",{src:o})]}),r.jsx("div",{className:"text-wrap",children:d})]})}),N=f.styled(t.SkeletonRowWrapper)`
78
- @media ${g.down("S")} {
77
+ `,b=j.forwardRef((r,n)=>{const{image:o,text:c,price:s,currency:i,onSelectGiftCard:u=()=>{},selectAction:l,LinkComponent:d}=r,p=d||"a";return t.jsxs(R,{ref:n,className:"simple-gift-card",onClick:()=>u(s),as:p,...d?{to:`${l}`}:{href:`${l}`},children:[t.jsxs(q,{children:[t.jsx("div",{className:"price-tag",children:s&&i&&`${m.formatPrice(s)} ${m.GetCurrencySymbol(i)}`}),t.jsx("img",{src:o})]}),t.jsx("div",{className:"text-wrap",children:c})]})}),G=h.styled(g.SkeletonAnimationContainer)`
78
+ @media ${f.down("S")} {
79
79
  flex-direction: column;
80
80
 
81
81
  & > div {
82
82
  flex-direction: column;
83
-
84
- & > div {
85
- ${t.skeletonGradientBackground}
86
- }
87
83
  }
88
84
  }
89
- `,q=({keyPrefix:i})=>r.jsxs(N,{children:[r.jsxs(t.SkeletonColumnWrapper,{alignItems:"center",children:[r.jsx(t.SkeletonLinePlaceholder,{height:"11rem",borderRadius:"0.75rem"}),r.jsx(t.SkeletonLinePlaceholder,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${i}-1`),r.jsxs(t.SkeletonColumnWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(t.SkeletonLinePlaceholder,{height:"11rem",borderRadius:"0.75rem"}),r.jsx(t.SkeletonLinePlaceholder,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${i}-2`),r.jsxs(t.SkeletonColumnWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(t.SkeletonLinePlaceholder,{height:"11rem",borderRadius:"0.75rem"}),r.jsx(t.SkeletonLinePlaceholder,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${i}-3`),r.jsxs(t.SkeletonColumnWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(t.SkeletonLinePlaceholder,{height:"11rem",borderRadius:"0.75rem"}),r.jsx(t.SkeletonLinePlaceholder,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${i}-4`)]}),W=({keyPrefix:i,isLoading:l=!1,fallbackComponent:o=r.jsx(r.Fragment,{}),children:d})=>r.jsx(j.Suspense,{fallbackComponent:o,children:l===!0?r.jsx(q,{keyPrefix:i}):d}),P=j.forwardRef((i,l)=>{const{icon:o,title:d,buttonLink:s,items:n,isLoading:h=!1,buttonText:c,limit:m=4,onSelectCard:p=()=>{},onButtonAction:w=()=>{},LinkComponent:b}=i,k=C.useDetectMobile();return r.jsxs(v.RegulatTitleSectionWrapper,{ref:l,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[u.isDefinedNotEmptyString(o)&&r.jsx("i",{className:o}),r.jsx("span",{children:d})]}),u.isDefinedNotEmptyString(c)&&u.isDefinedNotEmptyString(s)&&!h&&r.jsx($,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var a;(a=e==null?void 0:e.target)==null||a.blur(),w(s)},borderRadius:"curved",className:"button-link",children:c})]}),r.jsx(W,{isLoading:h,keyPrefix:"gift-cards-skeleton",children:r.jsx(R,{limit:m,children:k===!0?n==null?void 0:n.map((e,a)=>r.jsx(S,{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,selectAction:e==null?void 0:e.selectAction,onSelectGiftCard:y=>p(e),LinkComponent:b},a)):n==null?void 0:n.slice(0,m).map((e,a)=>r.jsx(S,{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,selectAction:e==null?void 0:e.selectAction,onSelectGiftCard:y=>p(e),LinkComponent:b},a))})})]})});module.exports=P;
85
+ `,A=({keyPrefix:r})=>t.jsx(G,{children:[1,2,3,4].map(n=>t.jsxs(g.SkeletonColumnContainer,{alignItems:"center",children:[t.jsx(g.SkeletonRect,{width:"100%",height:"11rem",borderRadius:"0.75rem"}),t.jsx(g.SkeletonRect,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${r}-${n}`))}),D=({keyPrefix:r,isLoading:n=!1,fallbackComponent:o=t.jsx(t.Fragment,{}),children:c})=>t.jsx(j.Suspense,{fallbackComponent:o,children:n===!0?t.jsx(A,{keyPrefix:r}):c}),T=j.forwardRef((r,n)=>{const{icon:o,title:c,buttonLink:s,items:i,isLoading:u=!1,buttonText:l,limit:d=4,onSelectCard:p=()=>{},onButtonAction:w=()=>{},LinkComponent:y}=r,S=v.useDetectMobile();return t.jsxs(k.RegulatTitleSectionWrapper,{ref:n,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[m.isDefinedNotEmptyString(o)&&t.jsx("i",{className:o}),t.jsx("span",{children:c})]}),m.isDefinedNotEmptyString(l)&&m.isDefinedNotEmptyString(s)&&!u&&t.jsx($,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var a;(a=e==null?void 0:e.target)==null||a.blur(),w(s)},borderRadius:"curved",className:"button-link",children:l})]}),t.jsx(D,{isLoading:u,keyPrefix:"gift-cards-skeleton",children:t.jsx(N,{limit:d,children:S===!0?i==null?void 0:i.map((e,a)=>t.jsx(b,{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,selectAction:e==null?void 0:e.selectAction,onSelectGiftCard:C=>p(e),LinkComponent:y},a)):i==null?void 0:i.slice(0,d).map((e,a)=>t.jsx(b,{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,selectAction:e==null?void 0:e.selectAction,onSelectGiftCard:C=>p(e),LinkComponent:y},a))})})]})});module.exports=T;