@lanaco/lnc-react-ui 4.0.170 → 4.0.171

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 (173) hide show
  1. package/dist/Accordion.js +1 -1
  2. package/dist/AccordionSummary.js +1 -1
  3. package/dist/ActionsToolbar.js +1 -1
  4. package/dist/Alert.js +1 -1
  5. package/dist/Avatar.js +1 -1
  6. package/dist/Badge.js +1 -1
  7. package/dist/BannerSectionCarousel.cjs +9 -48
  8. package/dist/BannerSectionCarousel.js +208 -249
  9. package/dist/BannerSectionSimple.js +1 -1
  10. package/dist/BannerSectionWithList.js +1 -1
  11. package/dist/BlogCardsSponsoredSection.cjs +8 -8
  12. package/dist/BlogCardsSponsoredSection.js +67 -68
  13. package/dist/BlogCategoryCardsSection.cjs +1 -1
  14. package/dist/BlogCategoryCardsSection.js +22 -30
  15. package/dist/BlogExploreSection.js +9 -9
  16. package/dist/BlogListSection.cjs +11 -5
  17. package/dist/BlogListSection.js +187 -123
  18. package/dist/BlogProductCardsSection.cjs +1 -1
  19. package/dist/BlogProductCardsSection.js +28 -37
  20. package/dist/BlogShopCardsSection.cjs +1 -1
  21. package/dist/BlogShopCardsSection.js +40 -67
  22. package/dist/BlogSingleSection.cjs +16 -1
  23. package/dist/BlogSingleSection.js +47 -45
  24. package/dist/BlogsSectionDetailed.cjs +8 -27
  25. package/dist/BlogsSectionDetailed.js +111 -159
  26. package/dist/BlogsSectionLarge.cjs +19 -4
  27. package/dist/BlogsSectionLarge.js +73 -37
  28. package/dist/BlogsSectionSimple.cjs +9 -9
  29. package/dist/BlogsSectionSimple.js +81 -107
  30. package/dist/BlogsSectionSimpleCentered.cjs +25 -23
  31. package/dist/BlogsSectionSimpleCentered.js +103 -96
  32. package/dist/BlogsSectionWithFilters.cjs +31 -29
  33. package/dist/BlogsSectionWithFilters.js +173 -134
  34. package/dist/BrandHitsSection.cjs +10 -14
  35. package/dist/BrandHitsSection.js +93 -45
  36. package/dist/Breadcrumbs.js +1 -1
  37. package/dist/Button.js +1 -1
  38. package/dist/ButtonGroup.js +1 -1
  39. package/dist/CalorieCalculatorSection.js +1 -1
  40. package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
  41. package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
  42. package/dist/CheckBoxInput.js +1 -1
  43. package/dist/Chip.js +1 -1
  44. package/dist/ColorInput.js +1 -1
  45. package/dist/ConfirmationForm.js +1 -1
  46. package/dist/CustomLoanMapSection.js +1 -1
  47. package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
  48. package/dist/DateInput.js +1 -1
  49. package/dist/DecimalInput.js +1 -1
  50. package/dist/DecimalInputV2.js +1 -1
  51. package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
  52. package/dist/DetailedProductsInfinitiveSection.js +35 -36
  53. package/dist/DetailedProductsSection.cjs +4 -4
  54. package/dist/DetailedProductsSection.js +62 -63
  55. package/dist/DetailsView.js +1 -1
  56. package/dist/DoubleRangeSlider.js +1 -1
  57. package/dist/DragAndDropFile.js +1 -1
  58. package/dist/DragDropFiles.js +1 -1
  59. package/dist/Drawer.js +1 -1
  60. package/dist/Dropdown.js +2 -2
  61. package/dist/DropdownItem.js +1 -1
  62. package/dist/DropdownLookup.js +1 -1
  63. package/dist/DropdownMenu.js +1 -1
  64. package/dist/EditableTable.js +1 -1
  65. package/dist/FeedbackSection.js +1 -1
  66. package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
  67. package/dist/FieldOfInterestsMasonrySection.js +228 -154
  68. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
  69. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
  70. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
  71. package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
  72. package/dist/FileInput.js +1 -1
  73. package/dist/FlexGridItem.js +1 -1
  74. package/dist/FormField.js +1 -1
  75. package/dist/FormView.js +1 -1
  76. package/dist/GeneralWithTagsCardsSection.cjs +11 -27
  77. package/dist/GeneralWithTagsCardsSection.js +87 -99
  78. package/dist/GiftCardsSection.cjs +18 -23
  79. package/dist/GiftCardsSection.js +146 -77
  80. package/dist/Icon.js +1 -1
  81. package/dist/IconButton.js +1 -1
  82. package/dist/Kanban.js +1 -1
  83. package/dist/KanbanActionsToolbar.js +1 -1
  84. package/dist/KanbanView.js +1 -1
  85. package/dist/Link.js +1 -1
  86. package/dist/LoanCalculatorSection.js +1 -1
  87. package/dist/LocationFinderSection.js +1 -1
  88. package/dist/LocationSearchSection.js +1 -1
  89. package/dist/MasonryGeneralCardsSection.cjs +33 -19
  90. package/dist/MasonryGeneralCardsSection.js +114 -68
  91. package/dist/MenuItem.js +1 -1
  92. package/dist/Modal.js +1 -1
  93. package/dist/MultiSelectDropdown.js +1 -1
  94. package/dist/MultiSelectDropdownLookup.js +1 -1
  95. package/dist/NestedDropdownItem.js +1 -1
  96. package/dist/NestedMenuItem.js +1 -1
  97. package/dist/NotificationContainer.js +1 -1
  98. package/dist/NotificationMessage.js +1 -1
  99. package/dist/NumberInput.js +1 -1
  100. package/dist/OverlayGeneralCardsSection.cjs +5 -5
  101. package/dist/OverlayGeneralCardsSection.js +54 -40
  102. package/dist/PasswordInput.js +1 -1
  103. package/dist/PopoverContent.js +1 -1
  104. package/dist/ProductsWithBannerSection.cjs +15 -20
  105. package/dist/ProductsWithBannerSection.js +176 -104
  106. package/dist/ProgressBar.js +1 -1
  107. package/dist/QuattroCardsSection.cjs +6 -6
  108. package/dist/QuattroCardsSection.js +42 -34
  109. package/dist/QuizSection.js +1 -1
  110. package/dist/RadioInput.js +1 -1
  111. package/dist/RangeSlider.js +1 -1
  112. package/dist/ReviewsSection.cjs +24 -30
  113. package/dist/ReviewsSection.js +170 -137
  114. package/dist/SalesCampaignsSection.cjs +46 -130
  115. package/dist/SalesCampaignsSection.js +354 -433
  116. package/dist/Separator.js +1 -1
  117. package/dist/ShopCardsSection.cjs +18 -5
  118. package/dist/ShopCardsSection.js +145 -88
  119. package/dist/Sidebar.js +1 -1
  120. package/dist/SimpleCategoriesSection.cjs +10 -4
  121. package/dist/SimpleCategoriesSection.js +79 -51
  122. package/dist/SimpleProductsSection.cjs +16 -3
  123. package/dist/SimpleProductsSection.js +172 -70
  124. package/dist/Spinner.js +1 -1
  125. package/dist/StatsSection.js +4 -4
  126. package/dist/Surface.js +1 -1
  127. package/dist/SwipeableDrawer.js +1 -1
  128. package/dist/TabItem.js +1 -1
  129. package/dist/Table.js +1 -1
  130. package/dist/TableView.js +1 -1
  131. package/dist/TextAreaInput.js +1 -1
  132. package/dist/TextInput.js +1 -1
  133. package/dist/ThemeProvider.js +1 -1
  134. package/dist/TimeInput.js +1 -1
  135. package/dist/Toggle.js +1 -1
  136. package/dist/TreeMenuSeparator.js +1 -1
  137. package/dist/UploadedFile.js +1 -1
  138. package/dist/UrgentSaleProductsSection.cjs +2 -2
  139. package/dist/UrgentSaleProductsSection.js +62 -61
  140. package/dist/index-BAJkosVg.cjs +11 -0
  141. package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
  142. package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
  143. package/dist/index-BSpdEGFd.js +42 -0
  144. package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
  145. package/dist/index-BhBRZf4M.js +742 -0
  146. package/dist/index-BovNbKxB.js +54 -0
  147. package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
  148. package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
  149. package/dist/index-D-3I_Ppj.cjs +16 -0
  150. package/dist/index-D0IYt1s3.cjs +20 -0
  151. package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
  152. package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
  153. package/dist/index-DFdPWO4O.js +133 -0
  154. package/dist/index-DFyV_EK2.cjs +305 -0
  155. package/dist/index-DxwIu0Wn.js +84 -0
  156. package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
  157. package/dist/index.js +1 -1
  158. package/dist/style-BAcV7F53.cjs +64 -0
  159. package/dist/style-CXMUA6cI.js +74 -0
  160. package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
  161. package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
  162. package/package.json +1 -1
  163. package/dist/index-1Dm1i6WK.js +0 -52
  164. package/dist/index-BGTtoLxz.cjs +0 -1
  165. package/dist/skeleton-BdbB-LdT.cjs +0 -97
  166. package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
  167. package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
  168. package/dist/suspense-large-BMO7JH52.js +0 -26
  169. package/dist/suspense-large-CFmcSzX-.cjs +0 -1
  170. package/dist/suspense-product-card-detailed-BU6DPCvJ.js +0 -652
  171. package/dist/suspense-product-card-detailed-BbvQuPOP.cjs +0 -329
  172. package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
  173. package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
@@ -1,11 +1,12 @@
1
- import { jsx as r, jsxs as l } from "react/jsx-runtime";
2
- import { forwardRef as c, useLayoutEffect as L } from "react";
3
- import { p as $, o as E, l as O, k as S } from "./utils-BdsZgOUE.js";
4
- import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { M as g } from "./consts-BuFChS64.js";
6
- import A from "./Icon.js";
7
- import { u as W } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- const T = h.div`
1
+ import { jsxs as o, jsx as e, Fragment as C } from "react/jsx-runtime";
2
+ import { forwardRef as N, Suspense as z, useLayoutEffect as W } from "react";
3
+ import { o as M, l as j, k as q } from "./utils-DHfRApMf.js";
4
+ import T from "./Icon.js";
5
+ import { s as u } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
+ import { M as x } from "./consts-BuFChS64.js";
7
+ import { u as A } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ import { a as B, S as f, d as w, b as p } from "./style-CXMUA6cI.js";
9
+ const D = u.div`
9
10
  display: flex;
10
11
  width: 100%;
11
12
  height: fit-content;
@@ -44,7 +45,7 @@ const T = h.div`
44
45
  font-style: normal;
45
46
  font-weight: 500;
46
47
  line-height: 1.5rem;
47
- ${$(2)}
48
+ ${M(2)}
48
49
  }
49
50
 
50
51
  & .wrapper__description {
@@ -54,11 +55,11 @@ const T = h.div`
54
55
  font-weight: 400;
55
56
  line-height: 1rem;
56
57
  letter-spacing: 0.025rem;
57
- ${$(2)}
58
+ ${M(2)}
58
59
  }
59
60
  }
60
61
 
61
- @media (max-width: ${g + "px"}) {
62
+ @media (max-width: ${x + "px"}) {
62
63
  & .wrapper__content {
63
64
  & .wrapper__title {
64
65
  font-size: 0.875rem;
@@ -70,12 +71,7 @@ const T = h.div`
70
71
  }
71
72
  }
72
73
  }
73
- `, j = h.div`
74
- width: 100%;
75
- height: 11.625rem;
76
- border-radius: 0.75rem;
77
- background: ${E("-90deg")};
78
- `, q = h.div`
74
+ `, H = u.div`
79
75
  display: flex;
80
76
  flex-direction: column;
81
77
  align-items: center;
@@ -116,7 +112,7 @@ const T = h.div`
116
112
  font-weight: 400;
117
113
  line-height: 1.5rem;
118
114
  max-width: 8rem;
119
- ${$(2)}
115
+ ${M(2)}
120
116
  }
121
117
 
122
118
  &.active {
@@ -126,7 +122,7 @@ const T = h.div`
126
122
  }
127
123
  }
128
124
 
129
- @media (max-width: ${g + "px"}) {
125
+ @media (max-width: ${x + "px"}) {
130
126
  max-width: unset;
131
127
  min-width: unset;
132
128
  flex-direction: row;
@@ -166,65 +162,49 @@ const T = h.div`
166
162
  max-width: unset;
167
163
  }
168
164
  }
169
- `, R = h.div`
170
- width: 7.5rem;
171
- width: 7.5rem;
172
- border-radius: 999px;
173
- background: ${E("-90deg")};
174
-
175
- @media (max-width: ${g + "px"}) {
176
- width: 7.5rem;
177
- height: 2.5rem;
178
- }
179
- `, B = c(({}, i) => /* @__PURE__ */ r(R, {})), D = c(
180
- ({ text: i, isActive: o = !1, icon: t, onSelectCard: a = () => {
181
- } }, s) => /* @__PURE__ */ l(
182
- q,
165
+ `, X = N(
166
+ ({ text: t, isActive: l = !1, icon: i, onSelectCard: n = () => {
167
+ } }, c) => /* @__PURE__ */ o(
168
+ H,
183
169
  {
184
- ref: s,
185
- className: o ? "active" : "",
186
- onClick: a,
170
+ ref: c,
171
+ className: l ? "active" : "",
172
+ onClick: n,
187
173
  children: [
188
- /* @__PURE__ */ r(A, { icon: t, className: "wrapper__icon" }),
189
- /* @__PURE__ */ r("div", { className: "wrapper__text", children: i })
174
+ /* @__PURE__ */ e(T, { icon: i, className: "wrapper__icon" }),
175
+ /* @__PURE__ */ e("div", { className: "wrapper__text", children: t })
190
176
  ]
191
177
  }
192
178
  )
193
- ), G = c(
179
+ ), Z = N(
194
180
  ({
195
- image: i,
196
- imageComponent: o,
197
- title: t,
198
- description: a,
199
- className: s,
200
- onSelectCard: u = () => {
181
+ image: t,
182
+ imageComponent: l,
183
+ title: i,
184
+ description: n,
185
+ className: c,
186
+ onSelectCard: v = () => {
201
187
  }
202
- }, x) => {
203
- const { theme: v } = W();
204
- return /* @__PURE__ */ l(
205
- T,
188
+ }, y) => {
189
+ const { theme: b } = A();
190
+ return /* @__PURE__ */ o(
191
+ D,
206
192
  {
207
- ref: x,
208
- theme: v,
209
- className: s,
210
- onClick: u,
193
+ ref: y,
194
+ theme: b,
195
+ className: c,
196
+ onClick: v,
211
197
  children: [
212
- O(o) ? o : /* @__PURE__ */ r("img", { src: i, className: "wrapper__image" }),
213
- /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
214
- t && /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
215
- a && /* @__PURE__ */ r("div", { className: "wrapper__description", children: a })
198
+ j(l) ? l : /* @__PURE__ */ e("img", { src: t, className: "wrapper__image" }),
199
+ /* @__PURE__ */ o("div", { className: "wrapper__content", children: [
200
+ i && /* @__PURE__ */ e("div", { className: "wrapper__title", children: i }),
201
+ n && /* @__PURE__ */ e("div", { className: "wrapper__description", children: n })
216
202
  ] })
217
203
  ]
218
204
  }
219
205
  );
220
206
  }
221
- ), H = c(({}, i) => /* @__PURE__ */ l(j, { children: [
222
- /* @__PURE__ */ r("div", { className: "wrapper__image" }),
223
- /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
224
- /* @__PURE__ */ r("div", { className: "wrapper__title" }),
225
- /* @__PURE__ */ r("div", { className: "wrapper__description" })
226
- ] })
227
- ] })), P = h.div`
207
+ ), J = u.div`
228
208
  display: flex;
229
209
  flex-direction: column;
230
210
  align-items: center;
@@ -268,7 +248,7 @@ const T = h.div`
268
248
 
269
249
  & .wrapper__cards {
270
250
  display: grid;
271
- grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCards}, minmax(12.5rem, 1fr))`};
251
+ grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitCards}, minmax(12.5rem, 1fr))`};
272
252
  grid-auto-rows: 0.625rem;
273
253
  gap: 0.625rem;
274
254
  width: 100%;
@@ -279,7 +259,7 @@ const T = h.div`
279
259
  }
280
260
  }
281
261
 
282
- @media (max-width: ${g + "px"}) {
262
+ @media (max-width: ${x + "px"}) {
283
263
  gap: 1rem;
284
264
 
285
265
  & .wrapper__tags {
@@ -303,100 +283,194 @@ const T = h.div`
303
283
  }
304
284
 
305
285
  & .wrapper__cards {
306
- grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCardsForMobile}, minmax(0, 1fr))`};
286
+ grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitCardsForMobile}, minmax(0, 1fr))`};
307
287
  }
308
288
  }
309
- `, Y = c(
289
+ `, E = u(B)`
290
+ &.skeleton__tags {
291
+ max-width: 50rem;
292
+ }
293
+
294
+ @media (max-width: ${x + "px"}) {
295
+ &.skeleton__tags {
296
+ overflow-x: hidden;
297
+ }
298
+ }
299
+ `, K = ({ keyPrefix: t }) => /* @__PURE__ */ o(E, { className: "skeleton__tags", children: [
300
+ /* @__PURE__ */ o(
301
+ f,
302
+ {
303
+ alignItems: "center",
304
+ gap: "0.5rem",
305
+ children: [
306
+ /* @__PURE__ */ e(w, { width: "2.75rem", height: "2.75rem" }),
307
+ /* @__PURE__ */ e(p, { height: "1.5rem", width: "8rem" })
308
+ ]
309
+ },
310
+ `${t}-1`
311
+ ),
312
+ /* @__PURE__ */ o(
313
+ f,
314
+ {
315
+ alignItems: "center",
316
+ gap: "0.5rem",
317
+ noGradient: !0,
318
+ children: [
319
+ /* @__PURE__ */ e(w, { width: "2.75rem", height: "2.75rem" }),
320
+ /* @__PURE__ */ e(p, { height: "1.5rem", width: "8rem" })
321
+ ]
322
+ },
323
+ `${t}-2`
324
+ ),
325
+ /* @__PURE__ */ o(
326
+ f,
327
+ {
328
+ alignItems: "center",
329
+ gap: "0.5rem",
330
+ noGradient: !0,
331
+ children: [
332
+ /* @__PURE__ */ e(w, { width: "2.75rem", height: "2.75rem" }),
333
+ /* @__PURE__ */ e(p, { height: "1.5rem", width: "8rem" })
334
+ ]
335
+ },
336
+ `${t}-3`
337
+ ),
338
+ /* @__PURE__ */ o(
339
+ f,
340
+ {
341
+ alignItems: "center",
342
+ gap: "0.5rem",
343
+ noGradient: !0,
344
+ children: [
345
+ /* @__PURE__ */ e(w, { width: "2.75rem", height: "2.75rem" }),
346
+ /* @__PURE__ */ e(p, { height: "1.5rem", width: "8rem" })
347
+ ]
348
+ },
349
+ `${t}-4`
350
+ ),
351
+ /* @__PURE__ */ o(
352
+ f,
353
+ {
354
+ alignItems: "center",
355
+ gap: "0.5rem",
356
+ noGradient: !0,
357
+ children: [
358
+ /* @__PURE__ */ e(w, { width: "2.75rem", height: "2.75rem" }),
359
+ /* @__PURE__ */ e(p, { height: "1.5rem", width: "8rem" })
360
+ ]
361
+ },
362
+ `${t}-5`
363
+ )
364
+ ] }), Q = ({
365
+ keyPrefix: t,
366
+ isLoading: l = !1,
367
+ fallbackComponent: i = /* @__PURE__ */ e(C, {}),
368
+ children: n
369
+ }) => /* @__PURE__ */ e(z, { fallbackComponent: i, children: l === !0 ? /* @__PURE__ */ e(K, { keyPrefix: t }) : n }), U = ({ keyPrefix: t }) => /* @__PURE__ */ o(E, { className: "skeleton__cards", children: [
370
+ /* @__PURE__ */ e(p, { height: "13.75rem" }, `${t}-1`),
371
+ /* @__PURE__ */ e(p, { height: "13.75rem" }, `${t}-2`),
372
+ /* @__PURE__ */ e(p, { height: "13.75rem" }, `${t}-3`)
373
+ ] }), V = ({
374
+ keyPrefix: t,
375
+ isLoading: l = !1,
376
+ fallbackComponent: i = /* @__PURE__ */ e(C, {}),
377
+ children: n
378
+ }) => /* @__PURE__ */ e(z, { fallbackComponent: i, children: l === !0 ? /* @__PURE__ */ e(U, { keyPrefix: t }) : n }), oe = N(
310
379
  ({
311
- title: i,
312
- subtitle: o,
313
- tags: t = [],
314
- items: a = [],
315
- limitTags: s = 5,
316
- limitTagsForMobile: u = 5,
317
- limit: x = 3,
318
- limitForMobile: v = 2,
319
- selectedTag: I,
320
- onSelectTag: y = () => {
380
+ title: t,
381
+ subtitle: l,
382
+ tags: i = [],
383
+ items: n = [],
384
+ limitTags: c = 5,
385
+ limitTagsForMobile: v = 5,
386
+ limit: y = 3,
387
+ limitForMobile: b = 2,
388
+ selectedTag: F,
389
+ onSelectTag: $ = () => {
321
390
  },
322
- onSelectCard: b = () => {
391
+ onSelectCard: k = () => {
323
392
  },
324
- className: p
325
- }, C) => {
326
- var N, z;
327
- return L(() => {
328
- if (!S(p))
329
- return;
330
- const e = () => {
331
- const d = document.querySelector(`.${p} .wrapper__cards`), m = d.querySelectorAll(".wrapper__card");
332
- m.forEach((w) => {
333
- const M = w.getBoundingClientRect().height, F = Math.ceil((M + 10) / 20);
334
- w.style.gridRowEnd = `span ${F}`;
335
- });
336
- const k = m == null ? void 0 : m[m.length - 1];
337
- if (k) {
338
- const w = k.offsetTop + k.offsetHeight;
339
- d.style.height = `${w}px`;
340
- }
341
- }, f = document.querySelector(`.${p} .wrapper__cards`).querySelectorAll(".wrapper__image");
342
- let _ = 0;
343
- return f.length === 0 ? e() : (f.forEach((d) => {
344
- d.complete ? _++ : d.addEventListener("load", () => {
345
- _++, _ === f.length && e();
346
- });
347
- }), _ === f.length && e()), window.addEventListener("resize", e), () => {
348
- window.removeEventListener("resize", e);
349
- };
350
- }, [p, a]), /* @__PURE__ */ l(
351
- P,
352
- {
353
- ref: C,
354
- limitTags: s,
355
- limitTagsForMobile: u,
356
- limitCards: x,
357
- limitCardsForMobile: v,
358
- className: p,
359
- numberOfTags: t == null ? void 0 : t.length,
360
- children: [
361
- /* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
362
- i && /* @__PURE__ */ r("div", { className: "wrapper__title", children: i }),
363
- o && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: o })
364
- ] }),
365
- /* @__PURE__ */ r("div", { className: "wrapper__tags__external", children: /* @__PURE__ */ r("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ r(
366
- D,
367
- {
368
- icon: e == null ? void 0 : e.icon,
369
- text: e == null ? void 0 : e.title,
370
- isActive: (e == null ? void 0 : e.code) === I,
371
- onSelectCard: () => y == null ? void 0 : y(e)
372
- },
373
- `field-of-interests-masonry-tag__${n + 1}`
374
- )) : (N = Array.from("12345")) == null ? void 0 : N.map((e, n) => /* @__PURE__ */ r(
375
- B,
376
- {},
377
- `field-of-interests-masonry-tag-skeleton__${n + 1}`
378
- )) }) }),
379
- /* @__PURE__ */ r("div", { className: "wrapper__cards", children: a && (a == null ? void 0 : a.length) > 0 ? a == null ? void 0 : a.map((e, n) => /* @__PURE__ */ r(
380
- G,
381
- {
382
- image: e == null ? void 0 : e.image,
383
- imageComponent: e == null ? void 0 : e.imageComponent,
384
- title: e == null ? void 0 : e.title,
385
- description: e == null ? void 0 : e.description,
386
- onSelectCard: () => b == null ? void 0 : b(e),
387
- className: "wrapper__card"
388
- },
389
- `field-of-interests-with-tags-card__${n + 1}`
390
- )) : (z = Array.from("12345")) == null ? void 0 : z.map((e, n) => /* @__PURE__ */ r(
391
- H,
392
- {},
393
- `field-of-interests-with-tags-card-skeleton__${n + 1}`
394
- )) })
395
- ]
393
+ className: h,
394
+ isLoadingTags: L = !1,
395
+ isLoadingCards: S = !1
396
+ }, O) => (W(() => {
397
+ if (!q(h))
398
+ return;
399
+ const r = () => {
400
+ const m = document == null ? void 0 : document.querySelector(`.${h} .wrapper__cards`), s = m == null ? void 0 : m.querySelectorAll(".wrapper__card");
401
+ s == null || s.forEach((g) => {
402
+ const G = g.getBoundingClientRect().height, R = Math.ceil((G + 10) / 20);
403
+ g.style.gridRowEnd = `span ${R}`;
404
+ });
405
+ const I = s == null ? void 0 : s[(s == null ? void 0 : s.length) - 1];
406
+ if (I) {
407
+ const g = I.offsetTop + I.offsetHeight;
408
+ m.style.height = `${g}px`;
396
409
  }
397
- );
398
- }
410
+ }, d = document == null ? void 0 : document.querySelector(`.${h} .wrapper__cards`), a = d == null ? void 0 : d.querySelectorAll(".wrapper__image");
411
+ let _ = 0;
412
+ return (a == null ? void 0 : a.length) === 0 ? r() : (a == null || a.forEach((m) => {
413
+ m.complete ? _++ : m.addEventListener("load", () => {
414
+ _++, _ === (a == null ? void 0 : a.length) && r();
415
+ });
416
+ }), _ === (a == null ? void 0 : a.length) && r()), window.addEventListener("resize", r), () => {
417
+ window.removeEventListener("resize", r);
418
+ };
419
+ }, [h, n, S]), /* @__PURE__ */ o(
420
+ J,
421
+ {
422
+ ref: O,
423
+ limitTags: c,
424
+ limitTagsForMobile: v,
425
+ limitCards: y,
426
+ limitCardsForMobile: b,
427
+ className: h,
428
+ numberOfTags: i == null ? void 0 : i.length,
429
+ children: [
430
+ /* @__PURE__ */ o("div", { className: "wrapper__heading", children: [
431
+ t && /* @__PURE__ */ e("div", { className: "wrapper__title", children: t }),
432
+ l && /* @__PURE__ */ e("div", { className: "wrapper__subtitle", children: l })
433
+ ] }),
434
+ /* @__PURE__ */ e(
435
+ Q,
436
+ {
437
+ isLoading: L,
438
+ keyPrefix: "field-of-interests-masonry-tag",
439
+ children: /* @__PURE__ */ e("div", { className: "wrapper__tags__external", children: /* @__PURE__ */ e("div", { className: "wrapper__tags", children: i == null ? void 0 : i.map((r, d) => /* @__PURE__ */ e(
440
+ X,
441
+ {
442
+ icon: r == null ? void 0 : r.icon,
443
+ text: r == null ? void 0 : r.title,
444
+ isActive: (r == null ? void 0 : r.code) === F,
445
+ onSelectCard: () => $ == null ? void 0 : $(r)
446
+ },
447
+ `field-of-interests-masonry-tag__${d + 1}`
448
+ )) }) })
449
+ }
450
+ ),
451
+ /* @__PURE__ */ e(
452
+ V,
453
+ {
454
+ isLoading: S,
455
+ keyPrefix: "field-of-interests-masonry-card",
456
+ children: /* @__PURE__ */ e("div", { className: "wrapper__cards", children: n == null ? void 0 : n.map((r, d) => /* @__PURE__ */ e(
457
+ Z,
458
+ {
459
+ image: r == null ? void 0 : r.image,
460
+ imageComponent: r == null ? void 0 : r.imageComponent,
461
+ title: r == null ? void 0 : r.title,
462
+ description: r == null ? void 0 : r.description,
463
+ onSelectCard: () => k == null ? void 0 : k(r),
464
+ className: "wrapper__card"
465
+ },
466
+ `field-of-interests-with-tags-card__${d + 1}`
467
+ )) })
468
+ }
469
+ )
470
+ ]
471
+ }
472
+ ))
399
473
  );
400
474
  export {
401
- Y as default
475
+ oe as default
402
476
  };
@@ -1,9 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),f=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),y=require("./utils-Dl9xPH4c.cjs"),$=require("./index-DicTpiG0.cjs"),c=h.styled.div`
2
- width: 100%;
3
- height: 11.625rem;
4
- border-radius: 0.75rem;
5
- background: ${y.linearGradientAnimation("-90deg")};
6
- `,v=h.styled.div`
1
+ "use strict";const i=require("react/jsx-runtime"),g=require("react"),v=require("./utils-Dl9xPH4c.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),$=require("./consts-goSZX3xP.cjs"),y=require("./index-CfT9e5O9.cjs"),l=require("./style-BAcV7F53.cjs"),F=j.styled.div`
7
2
  width: 100%;
8
3
  height: auto;
9
4
  border-radius: 999px;
@@ -24,22 +19,12 @@
24
19
  border: var(--yellow-600, #d97706);
25
20
  }
26
21
 
27
- @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
22
+ @media (max-width: ${$.MOBILE_SIZE_PX+"px"}) {
28
23
  & .wrapper__image {
29
24
  height: auto;
30
25
  }
31
26
  }
32
- `,C=h.styled.div`
33
- width: 9.875rem;
34
- height: 9.875rem;
35
- border-radius: 999px;
36
- background: ${y.linearGradientAnimation("-90deg")};
37
-
38
- @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
39
- width: 4.5rem;
40
- height: 4.5rem;
41
- }
42
- `,F=f.forwardRef(({},i)=>t.jsx(C,{})),I=f.forwardRef(({isActive:i,image:o,imageComponent:r,onSelectCard:l=()=>{}},m)=>t.jsx(v,{ref:m,className:i?"active":"",onClick:l,children:y.isDefined(r)?r:t.jsx("img",{src:o,className:"wrapper__image"})})),A=f.forwardRef(({uuid:i,title:o,price:r,currency:l,isNegotiable:m,isFree:x,image:u,sellerUuid:s,onSelectCard:p=()=>{},imageComponent:a,negotiableText:d="Negotiable",freeText:g="Free"},_)=>t.jsx($.SimpleProductCard,{ref:_,uuid:i,title:o,price:r,currency:l,isNegotiable:m,isFree:x,image:u,imageComponent:a,sellerUuid:s,onSelectCard:p,negotiableText:d,freeText:g})),N=f.forwardRef(({},i)=>t.jsx(c,{})),k=h.styled.div`
27
+ `,b=g.forwardRef(({isActive:t,image:r,imageComponent:s,onSelectCard:n=()=>{}},o)=>i.jsx(F,{ref:o,className:t?"active":"",onClick:n,children:v.isDefined(s)?s:i.jsx("img",{src:r,className:"wrapper__image"})})),k=g.forwardRef(({uuid:t,title:r,price:s,currency:n,isNegotiable:o,isFree:p,image:d,sellerUuid:m,onSelectCard:a=()=>{},imageComponent:h,negotiableText:x="Negotiable",freeText:_="Free"},u)=>i.jsx(y.SimpleProductCard,{ref:u,uuid:t,title:r,price:s,currency:n,isNegotiable:o,isFree:p,image:d,imageComponent:h,sellerUuid:m,onSelectCard:a,negotiableText:x,freeText:_})),I=j.styled.div`
43
28
  display: flex;
44
29
  flex-direction: column;
45
30
  align-items: center;
@@ -73,7 +58,7 @@
73
58
 
74
59
  & .wrapper__avatars {
75
60
  display: grid;
76
- grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitAvatars}, minmax(0, 1fr))`};
61
+ grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitAvatars}, minmax(0, 1fr))`};
77
62
  gap: 2rem;
78
63
  justify-items: center;
79
64
  align-items: center;
@@ -81,22 +66,46 @@
81
66
 
82
67
  & .wrapper__cards {
83
68
  display: grid;
84
- grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCards}, minmax(0, 1fr))`};
69
+ grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCards}, minmax(0, 1fr))`};
85
70
  gap: 1.25rem;
86
71
  justify-items: center;
87
72
  align-items: center;
88
73
  width: 100%;
89
74
  }
90
75
 
91
- @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
76
+ @media (max-width: ${$.MOBILE_SIZE_PX+"px"}) {
92
77
  & .wrapper__avatars {
93
- grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitAvatarsForMobile}, minmax(0, 1fr))`};
78
+ grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitAvatarsForMobile}, minmax(0, 1fr))`};
94
79
  gap: auto;
95
80
  }
96
81
 
97
82
  & .wrapper__cards {
98
- grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCardsForMobile}, minmax(0, 1fr))`};
83
+ grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
99
84
  gap: 1rem;
100
85
  }
101
86
  }
102
- `,W=f.forwardRef(({title:i,subtitle:o,avatars:r=[],limitAvatars:l=4,limit:m=6,limitAvatarsForMobile:x=4,limitForMobile:u=2,items:s=[],onSelectAvatar:p=()=>{},onSelectCard:a=()=>{}},d)=>{var j,b;const g=e=>{p==null||p(e)},_=e=>{a==null||a(e)};return t.jsxs(k,{ref:d,limitAvatars:l,limitAvatarsForMobile:x,limitCards:m,limitCardsForMobile:u,children:[t.jsxs("div",{className:"wrapper__heading",children:[i&&t.jsx("div",{className:"wrapper__title",children:i}),o&&t.jsx("div",{className:"wrapper__subtitle",children:o})]}),t.jsx("div",{className:"wrapper__avatars",children:r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map((e,n)=>t.jsx(I,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>g==null?void 0:g(e)},`field-of-interests-with-avatars-card-avatar__${n+1}`)):(j=Array.from("1234"))==null?void 0:j.map((e,n)=>t.jsx(F,{},`field-of-interests-with-avatars-card-avatar-skeleton__${n+1}`))}),t.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((e,n)=>t.jsx(A,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,isNegotiable:e==null?void 0:e.isNegotiable,isFree:e==null?void 0:e.isFree,image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,sellerUuid:e==null?void 0:e.sellerUuid,negotiableText:e==null?void 0:e.negotiableText,freeText:e==null?void 0:e.freeText,onSelectCard:()=>_==null?void 0:_(e)},`field-of-interests-with-avatars-card__${n+1}`)):(b=Array.from("123456"))==null?void 0:b.map((e,n)=>t.jsx(N,{},`field-of-interests-with-avatars-card-skeleton__${n+1}`))})]})});module.exports=W;
87
+ `,C=j.styled(l.SkeletonRowWrapper)`
88
+ &.skeleton__tags {
89
+ max-width: 50rem;
90
+ }
91
+
92
+ @media (max-width: ${$.MOBILE_SIZE_PX+"px"}) {
93
+ &.skeleton__tags {
94
+ overflow-x: hidden;
95
+
96
+ & > div {
97
+ width: 3rem;
98
+ height: 3rem;
99
+ }
100
+ }
101
+
102
+ &.skeleton__cards {
103
+ display: grid;
104
+ grid-template-columns: 1fr 1fr;
105
+
106
+ & > div {
107
+ height: 7rem;
108
+ }
109
+ }
110
+ }
111
+ `,S=({keyPrefix:t})=>i.jsxs(C,{className:"skeleton__tags",justifyContent:"center",children:[i.jsx(l.SkeletonCirclePlaceholder,{width:"9.875rem",height:"9.875rem"},`${t}-1`),i.jsx(l.SkeletonCirclePlaceholder,{width:"9.875rem",height:"9.875rem"},`${t}-2`),i.jsx(l.SkeletonCirclePlaceholder,{width:"9.875rem",height:"9.875rem"},`${t}-3`),i.jsx(l.SkeletonCirclePlaceholder,{width:"9.875rem",height:"9.875rem"},`${t}-4`)]}),N=({keyPrefix:t,isLoading:r=!1,fallbackComponent:s=i.jsx(i.Fragment,{}),children:n})=>i.jsx(g.Suspense,{fallbackComponent:s,children:r===!0?i.jsx(S,{keyPrefix:t}):n}),O=({keyPrefix:t})=>i.jsxs(C,{className:"skeleton__cards",justifyContent:"center",children:[i.jsx(l.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-1`),i.jsx(l.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-2`),i.jsx(l.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-3`),i.jsx(l.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-3`)]}),W=({keyPrefix:t,isLoading:r=!1,fallbackComponent:s=i.jsx(i.Fragment,{}),children:n})=>i.jsx(g.Suspense,{fallbackComponent:s,children:r===!0?i.jsx(O,{keyPrefix:t}):n}),L=g.forwardRef(({title:t,subtitle:r,avatars:s=[],limitAvatars:n=4,limit:o=6,limitAvatarsForMobile:p=4,limitForMobile:d=2,items:m=[],onSelectAvatar:a=()=>{},onSelectCard:h=()=>{},isLoadingTags:x=!1,isLoadingCards:_=!1},u)=>{const f=e=>{a==null||a(e)},w=e=>{h==null||h(e)};return i.jsxs(I,{ref:u,limitAvatars:n,limitAvatarsForMobile:p,limitCards:o,limitCardsForMobile:d,children:[i.jsxs("div",{className:"wrapper__heading",children:[t&&i.jsx("div",{className:"wrapper__title",children:t}),r&&i.jsx("div",{className:"wrapper__subtitle",children:r})]}),i.jsx(N,{isLoading:x,keyPrefix:"field-of-interests-with-avatars-tag",children:i.jsx("div",{className:"wrapper__avatars",children:s==null?void 0:s.map((e,c)=>i.jsx(b,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>f==null?void 0:f(e)},`field-of-interests-with-avatars-card-avatar__${c+1}`))})}),i.jsx(W,{isLoading:_,keyPrefix:"field-of-interests-with-avatars-card",children:i.jsx("div",{className:"wrapper__cards",children:m==null?void 0:m.map((e,c)=>i.jsx(k,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,isNegotiable:e==null?void 0:e.isNegotiable,isFree:e==null?void 0:e.isFree,image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,sellerUuid:e==null?void 0:e.sellerUuid,negotiableText:e==null?void 0:e.negotiableText,freeText:e==null?void 0:e.freeText,onSelectCard:()=>w==null?void 0:w(e)},`field-of-interests-with-avatars-card__${c+1}`))})})]})});module.exports=L;