@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,14 +1,14 @@
1
- import { jsxs as t, jsx as i, Fragment as y } from "react/jsx-runtime";
2
- import { forwardRef as C, useRef as j, cloneElement as z, memo as L, useMemo as P } from "react";
3
- import N from "./Icon.js";
4
- import B from "./IconButton.js";
5
- import { p as T, s as O, v as S, w as $, l as E } from "./utils-BdsZgOUE.js";
6
- import { P as M } from "./index-CF3HhgvN.js";
7
- import { B as U } from "./style-DKAOBWn3.js";
8
- import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
- import { M as W } from "./consts-BuFChS64.js";
10
- import { S as A } from "./suspense-large-BMO7JH52.js";
11
- const D = I.div`
1
+ import { jsxs as i, jsx as e, Fragment as w } from "react/jsx-runtime";
2
+ import { forwardRef as j, useRef as T, cloneElement as O, Suspense as W, memo as E, useMemo as M } from "react";
3
+ import G from "./Icon.js";
4
+ import R from "./IconButton.js";
5
+ import { o as P, q as U, s as q, v as I, l as A } from "./utils-DHfRApMf.js";
6
+ import { P as D } from "./index-BbltNcou.js";
7
+ import { B as F } from "./style-D3pIrH3v.js";
8
+ import { s as B } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
+ import { M as L } from "./consts-BuFChS64.js";
10
+ import { S as s, a as l, c as p, b as t } from "./style-CXMUA6cI.js";
11
+ const X = B.div`
12
12
  display: flex;
13
13
  padding: 1rem;
14
14
  align-items: center;
@@ -60,7 +60,7 @@ const D = I.div`
60
60
  font-weight: 600;
61
61
  line-height: 1.5rem;
62
62
  letter-spacing: 0.1px;
63
- ${T(3)}
63
+ ${P(3)}
64
64
  }
65
65
 
66
66
  & .wrapper__tags {
@@ -103,7 +103,7 @@ const D = I.div`
103
103
  }
104
104
  }
105
105
 
106
- @media (max-width: ${W + "px"}) {
106
+ @media (max-width: ${L + "px"}) {
107
107
  flex-direction: column;
108
108
  padding: 0;
109
109
  background: transparent;
@@ -154,101 +154,101 @@ const D = I.div`
154
154
  }
155
155
  }
156
156
  }
157
- `, F = C(
157
+ `, Z = j(
158
158
  ({
159
- blogUuid: l,
160
- title: a,
161
- imageUrl: s,
162
- options: n,
163
- publishedAt: p,
164
- timeToReadText: f = "{0} min read",
165
- timeToRead: g = 0,
166
- numberOfLikes: _ = 0,
167
- numberOfComments: u = 0,
168
- isBookmarked: c = !1,
169
- onSelectCard: h = () => {
159
+ blogUuid: o,
160
+ title: d,
161
+ imageUrl: c,
162
+ options: a,
163
+ publishedAt: h,
164
+ timeToReadText: _ = "{0} min read",
165
+ timeToRead: b = 0,
166
+ numberOfLikes: y = 0,
167
+ numberOfComments: v = 0,
168
+ isBookmarked: g = !1,
169
+ onSelectCard: k = () => {
170
170
  },
171
- onBookmark: w = () => {
171
+ onBookmark: N = () => {
172
172
  },
173
- onShare: e = () => {
173
+ onShare: r = () => {
174
174
  },
175
- bookmarkComponent: m = /* @__PURE__ */ i(y, {}),
176
- metadata: o
177
- }, v) => {
178
- const d = () => E(m) ? z(m, {
179
- key: `bookmark_blog__${l}__${c}`,
180
- isBookmarked: c,
181
- blogUuid: l,
182
- onBookmark: (b, R) => w(b, R),
183
- ref: v,
175
+ bookmarkComponent: f = /* @__PURE__ */ e(w, {}),
176
+ metadata: m
177
+ }, S) => {
178
+ const u = () => A(f) ? O(f, {
179
+ key: `bookmark_blog__${o}__${g}`,
180
+ isBookmarked: g,
181
+ blogUuid: o,
182
+ onBookmark: ($, z) => N($, z),
183
+ ref: S,
184
184
  componentName: "ExploreBlogSectionCard"
185
- }) : /* @__PURE__ */ i(y, {}), k = j();
186
- return /* @__PURE__ */ t(
187
- D,
185
+ }) : /* @__PURE__ */ e(w, {}), C = T();
186
+ return /* @__PURE__ */ i(
187
+ X,
188
188
  {
189
- ref: k,
190
- name: o == null ? void 0 : o.name,
191
- "data-accessor": o == null ? void 0 : o.accessor,
192
- onClick: (r) => h(r, k),
189
+ ref: C,
190
+ name: m == null ? void 0 : m.name,
191
+ "data-accessor": m == null ? void 0 : m.accessor,
192
+ onClick: (n) => k(n, C),
193
193
  className: "blog-card-item",
194
194
  children: [
195
- /* @__PURE__ */ i(M, { src: s, className: "wrapper__image" }),
196
- /* @__PURE__ */ t("div", { className: "wrapper__content", children: [
197
- /* @__PURE__ */ t("div", { className: "wrapper__subcontent", children: [
198
- /* @__PURE__ */ i("div", { className: "wrapper__title", children: a }),
199
- /* @__PURE__ */ t("div", { className: "wrapper__tags-action", children: [
200
- /* @__PURE__ */ i("div", { className: "wrapper__tags", children: n && (n == null ? void 0 : n.map((r, b) => /* @__PURE__ */ i(
201
- U,
195
+ /* @__PURE__ */ e(D, { src: c, className: "wrapper__image" }),
196
+ /* @__PURE__ */ i("div", { className: "wrapper__content", children: [
197
+ /* @__PURE__ */ i("div", { className: "wrapper__subcontent", children: [
198
+ /* @__PURE__ */ e("div", { className: "wrapper__title", children: d }),
199
+ /* @__PURE__ */ i("div", { className: "wrapper__tags-action", children: [
200
+ /* @__PURE__ */ e("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((n, $) => /* @__PURE__ */ e(
201
+ F,
202
202
  {
203
- color: r == null ? void 0 : r.color,
204
- children: r == null ? void 0 : r.name
203
+ color: n == null ? void 0 : n.color,
204
+ children: n == null ? void 0 : n.name
205
205
  },
206
- `blog-card-sponsored-option__${b + 1}`
206
+ `blog-card-sponsored-option__${$ + 1}`
207
207
  ))) }),
208
- /* @__PURE__ */ t("div", { className: "info__content mobile-only", children: [
209
- /* @__PURE__ */ i(d, {}),
210
- /* @__PURE__ */ i(
211
- B,
208
+ /* @__PURE__ */ i("div", { className: "info__content mobile-only", children: [
209
+ /* @__PURE__ */ e(u, {}),
210
+ /* @__PURE__ */ e(
211
+ R,
212
212
  {
213
213
  icon: " mng-lnc-share",
214
214
  borderRadius: "curved",
215
215
  btnType: "basic",
216
216
  color: "neutral",
217
- onClick: (r) => {
218
- r == null || r.stopPropagation(), e();
217
+ onClick: (n) => {
218
+ n == null || n.stopPropagation(), r();
219
219
  }
220
220
  }
221
221
  )
222
222
  ] })
223
223
  ] })
224
224
  ] }),
225
- /* @__PURE__ */ t("div", { className: "wrapper__info", children: [
226
- /* @__PURE__ */ t("div", { className: "info__content", children: [
227
- /* @__PURE__ */ i("div", { className: "info__text", children: `${O(
228
- p
229
- )} • ${S(f, g)}` }),
230
- /* @__PURE__ */ t("div", { className: "info__text", children: [
231
- /* @__PURE__ */ t("div", { children: [
232
- /* @__PURE__ */ i(N, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
233
- $(_)
225
+ /* @__PURE__ */ i("div", { className: "wrapper__info", children: [
226
+ /* @__PURE__ */ i("div", { className: "info__content", children: [
227
+ /* @__PURE__ */ e("div", { className: "info__text", children: `${U(
228
+ h
229
+ )} • ${q(_, b)}` }),
230
+ /* @__PURE__ */ i("div", { className: "info__text", children: [
231
+ /* @__PURE__ */ i("div", { children: [
232
+ /* @__PURE__ */ e(G, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
233
+ I(y)
234
234
  ] }),
235
- /* @__PURE__ */ t("div", { children: [
236
- /* @__PURE__ */ i(N, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
237
- $(u)
235
+ /* @__PURE__ */ i("div", { children: [
236
+ /* @__PURE__ */ e(G, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
237
+ I(v)
238
238
  ] })
239
239
  ] })
240
240
  ] }),
241
- /* @__PURE__ */ t("div", { className: "info__content desktop-only", children: [
242
- /* @__PURE__ */ i(d, {}),
243
- /* @__PURE__ */ i(
244
- B,
241
+ /* @__PURE__ */ i("div", { className: "info__content desktop-only", children: [
242
+ /* @__PURE__ */ e(u, {}),
243
+ /* @__PURE__ */ e(
244
+ R,
245
245
  {
246
246
  icon: " mng-lnc-share",
247
247
  borderRadius: "curved",
248
248
  btnType: "basic",
249
249
  color: "neutral",
250
- onClick: (r) => {
251
- r == null || r.stopPropagation(), e();
250
+ onClick: (n) => {
251
+ n == null || n.stopPropagation(), r();
252
252
  }
253
253
  }
254
254
  )
@@ -259,7 +259,7 @@ const D = I.div`
259
259
  }
260
260
  );
261
261
  }
262
- ), X = I.div`
262
+ ), H = B.div`
263
263
  display: flex;
264
264
  flex-direction: column;
265
265
  align-items: flex-start;
@@ -283,60 +283,124 @@ const D = I.div`
283
283
  bottom: -1.25rem;
284
284
  }
285
285
  }
286
- `, Z = L(F), re = C(
286
+ `, J = B(s)`
287
+ @media (max-width: ${L + "px"}) {
288
+ & > div {
289
+ flex-direction: column;
290
+ }
291
+ }
292
+ `, K = ({ keyPrefix: o }) => /* @__PURE__ */ i(J, { children: [
293
+ /* @__PURE__ */ i(l, { children: [
294
+ /* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
295
+ /* @__PURE__ */ i(s, { noGradient: !0, children: [
296
+ /* @__PURE__ */ e(t, { height: "1.5rem" }),
297
+ /* @__PURE__ */ i(l, { noGradient: !0, children: [
298
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
299
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
300
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
301
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" })
302
+ ] })
303
+ ] })
304
+ ] }, `${o}-1`),
305
+ /* @__PURE__ */ i(l, { children: [
306
+ /* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
307
+ /* @__PURE__ */ i(s, { noGradient: !0, children: [
308
+ /* @__PURE__ */ e(t, { height: "1.5rem" }),
309
+ /* @__PURE__ */ i(l, { noGradient: !0, children: [
310
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
311
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
312
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
313
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" })
314
+ ] })
315
+ ] })
316
+ ] }, `${o}-2`),
317
+ /* @__PURE__ */ i(l, { children: [
318
+ /* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
319
+ /* @__PURE__ */ i(s, { noGradient: !0, children: [
320
+ /* @__PURE__ */ e(t, { height: "1.5rem" }),
321
+ /* @__PURE__ */ i(l, { noGradient: !0, children: [
322
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
323
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
324
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
325
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" })
326
+ ] })
327
+ ] })
328
+ ] }, `${o}-3`),
329
+ /* @__PURE__ */ i(l, { children: [
330
+ /* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
331
+ /* @__PURE__ */ i(s, { noGradient: !0, children: [
332
+ /* @__PURE__ */ e(t, { height: "1.5rem" }),
333
+ /* @__PURE__ */ i(l, { noGradient: !0, children: [
334
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
335
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
336
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
337
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" })
338
+ ] })
339
+ ] })
340
+ ] }, `${o}-4`),
341
+ /* @__PURE__ */ i(l, { children: [
342
+ /* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
343
+ /* @__PURE__ */ i(s, { noGradient: !0, children: [
344
+ /* @__PURE__ */ e(t, { height: "1.5rem" }),
345
+ /* @__PURE__ */ i(l, { noGradient: !0, children: [
346
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
347
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
348
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
349
+ /* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" })
350
+ ] })
351
+ ] })
352
+ ] }, `${o}-5`)
353
+ ] }), Q = ({
354
+ keyPrefix: o,
355
+ isLoading: d = !1,
356
+ fallbackComponent: c = /* @__PURE__ */ e(w, {}),
357
+ children: a
358
+ }) => /* @__PURE__ */ e(W, { fallbackComponent: c, children: d === !0 ? /* @__PURE__ */ e(K, { keyPrefix: o }) : a }), V = E(Z), me = j(
287
359
  ({
288
- timeToReadText: l = "{0} min read",
289
- items: a,
290
- onSelectCard: s = () => {
360
+ timeToReadText: o = "{0} min read",
361
+ items: d,
362
+ isLoading: c = !1,
363
+ onSelectCard: a = () => {
291
364
  },
292
- onShare: n = () => {
365
+ onShare: h = () => {
293
366
  },
294
- onBookmark: p = () => {
367
+ onBookmark: _ = () => {
295
368
  },
296
- isLoading: f = !1,
297
- getImage: g = () => {
369
+ getImage: b = () => {
298
370
  },
299
- isSeparated: _ = !0,
300
- bookmarkComponent: u = /* @__PURE__ */ i(y, {}),
301
- componentName: c
302
- }, h) => {
303
- const w = P(() => a == null ? void 0 : a.map((e, m) => {
304
- var o;
305
- return /* @__PURE__ */ i(
306
- Z,
371
+ isSeparated: y = !0,
372
+ bookmarkComponent: v = /* @__PURE__ */ e(w, {}),
373
+ componentName: g
374
+ }, k) => {
375
+ const N = M(() => d == null ? void 0 : d.map((r, f) => {
376
+ var m;
377
+ return /* @__PURE__ */ e(
378
+ V,
307
379
  {
308
- blogUuid: e == null ? void 0 : e.uuid,
309
- title: e == null ? void 0 : e.title,
310
- titleSlug: e == null ? void 0 : e.titleSlug,
311
- options: e == null ? void 0 : e.options,
312
- publishedAt: e == null ? void 0 : e.publishedAt,
313
- timeToReadText: l,
314
- timeToRead: e == null ? void 0 : e.timeToRead,
315
- numberOfLikes: e == null ? void 0 : e.numberOfLikes,
316
- numberOfComments: e == null ? void 0 : e.numberOfComments,
317
- isSponsored: e == null ? void 0 : e.isSponsored,
318
- isBookmarked: e == null ? void 0 : e.isBookmarked,
319
- onSelectCard: (v, d) => s == null ? void 0 : s(e, d),
320
- onShare: () => n == null ? void 0 : n(e),
321
- onBookmark: p,
322
- imageUrl: g(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
323
- bookmarkComponent: u,
324
- metadata: { name: c, accessor: e == null ? void 0 : e.accessor }
380
+ blogUuid: r == null ? void 0 : r.uuid,
381
+ title: r == null ? void 0 : r.title,
382
+ titleSlug: r == null ? void 0 : r.titleSlug,
383
+ options: r == null ? void 0 : r.options,
384
+ publishedAt: r == null ? void 0 : r.publishedAt,
385
+ timeToReadText: o,
386
+ timeToRead: r == null ? void 0 : r.timeToRead,
387
+ numberOfLikes: r == null ? void 0 : r.numberOfLikes,
388
+ numberOfComments: r == null ? void 0 : r.numberOfComments,
389
+ isSponsored: r == null ? void 0 : r.isSponsored,
390
+ isBookmarked: r == null ? void 0 : r.isBookmarked,
391
+ onSelectCard: (S, u) => a == null ? void 0 : a(r, u),
392
+ onShare: () => h == null ? void 0 : h(r),
393
+ onBookmark: _,
394
+ imageUrl: b(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
395
+ bookmarkComponent: v,
396
+ metadata: { name: g, accessor: r == null ? void 0 : r.accessor }
325
397
  },
326
- `blog-card-item__${m + 1}__${(o = e == null ? void 0 : e.isBookmarked) == null ? void 0 : o.toString()}`
398
+ `blog-card-item__${f + 1}__${(m = r == null ? void 0 : r.isBookmarked) == null ? void 0 : m.toString()}`
327
399
  );
328
- }), [a]);
329
- return /* @__PURE__ */ i(X, { ref: h, className: _ ? "separated" : "", children: /* @__PURE__ */ i(
330
- A,
331
- {
332
- isLoading: f,
333
- limit: 5,
334
- keyPrefix: "blog-section",
335
- children: w
336
- }
337
- ) });
400
+ }), [d]);
401
+ return /* @__PURE__ */ e(Q, { isLoading: c, keyPrefix: "blog-list-skeleton", children: /* @__PURE__ */ e(H, { ref: k, className: y ? "separated" : "", children: N }) });
338
402
  }
339
403
  );
340
404
  export {
341
- re as default
405
+ me as default
342
406
  };
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),c=require("react"),j=require("./useDetectMobile-zkbzoOGV.cjs"),f=require("./index-DicTpiG0.cjs"),y=require("./suspense-product-card-simple-DJ8UYolb.cjs"),M=require("./Button.cjs"),N=require("./style-BTTXJFJN.cjs"),R=c.memo(f.SimpleProductCard),_=c.forwardRef(({buttonText:o,buttonLink:t,items:s,onButtonAction:l=()=>{},onSelectCard:i=()=>{},isLoading:a=!1,limit:n=4,getImage:d=()=>{},isHighlight:p=!1,componentName:m},b)=>{const g=j.useDetectMobile(),q=c.useMemo(()=>{var u;return(u=s==null?void 0:s.slice(0,4))==null?void 0:u.map((e,P)=>r.jsx(R,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(w,h)=>i==null?void 0:i(e==null?void 0:e.uuid,h),image:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:m,accessor:e==null?void 0:e.accessor}},P))},[s]);return r.jsxs(N.Wrapper,{ref:b,className:`blog-product-cards-section ${p?"highlight":""}`,children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(y.SuspenseSimpleProductCard,{isLoading:a,limit:n,keyPrefix:"blog-section",children:q})}),r.jsx(M,{text:o,borderRadius:"curved",btnType:g?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>l(t)})]})});module.exports=_;
1
+ "use strict";const i=require("react/jsx-runtime"),c=require("react"),h=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./index-CfT9e5O9.cjs"),M=require("./Button.cjs"),N=require("./style-BTTXJFJN.cjs"),f=c.memo(j.SimpleProductCard),y=c.forwardRef(({buttonText:t,buttonLink:u,items:r,onButtonAction:a=()=>{},onSelectCard:s=()=>{},isLoading:P=!1,limit:R=4,getImage:l=()=>{},isHighlight:n=!1,componentName:d},m)=>{const p=h.useDetectMobile(),g=c.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,b)=>i.jsx(f,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(_,q)=>s==null?void 0:s(e==null?void 0:e.uuid,q),image:l(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:d,accessor:e==null?void 0:e.accessor}},b))},[r]);return i.jsxs(N.Wrapper,{ref:m,className:`blog-product-cards-section ${n?"highlight":""}`,children:[i.jsx("div",{className:"wrapper__grid",children:g}),i.jsx(M,{text:t,borderRadius:"curved",btnType:p?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>a(u)})]})});module.exports=y;
@@ -1,11 +1,10 @@
1
- import { jsx as o, jsxs as P } from "react/jsx-runtime";
2
- import { memo as N, forwardRef as y, useMemo as M } from "react";
3
- import { u as S } from "./useDetectMobile-Bkvj0VMa.js";
4
- import { S as _ } from "./index-y6sKgrZC.js";
5
- import { S as w } from "./suspense-product-card-simple-ziy0XcLp.js";
6
- import U from "./Button.js";
7
- import { W as j } from "./style-tw6KjI2J.js";
8
- const k = N(_), T = y(
1
+ import { jsx as o, jsxs as b } from "react/jsx-runtime";
2
+ import { memo as h, forwardRef as N, useMemo as M } from "react";
3
+ import { u as P } from "./useDetectMobile-Bkvj0VMa.js";
4
+ import { S as _ } from "./index-XYs5Cuh5.js";
5
+ import w from "./Button.js";
6
+ import { W as y } from "./style-tw6KjI2J.js";
7
+ const U = h(_), D = N(
9
8
  ({
10
9
  buttonText: a,
11
10
  buttonLink: c,
@@ -14,17 +13,17 @@ const k = N(_), T = y(
14
13
  },
15
14
  onSelectCard: i = () => {
16
15
  },
17
- isLoading: u = !1,
18
- limit: l = 4,
19
- getImage: d = () => {
16
+ isLoading: j = !1,
17
+ limit: v = 4,
18
+ getImage: u = () => {
20
19
  },
21
- isHighlight: m = !1,
22
- componentName: p
23
- }, n) => {
24
- const f = S(), g = M(() => {
20
+ isHighlight: l = !1,
21
+ componentName: d
22
+ }, m) => {
23
+ const p = P(), n = M(() => {
25
24
  var s;
26
- return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e, b) => /* @__PURE__ */ o(
27
- k,
25
+ return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e, f) => /* @__PURE__ */ o(
26
+ U,
28
27
  {
29
28
  title: e == null ? void 0 : e.name,
30
29
  price: e == null ? void 0 : e.price,
@@ -33,34 +32,26 @@ const k = N(_), T = y(
33
32
  currency: e == null ? void 0 : e.currency,
34
33
  sellerUuid: e == null ? void 0 : e.sellerUuid,
35
34
  uuid: e == null ? void 0 : e.uuid,
36
- onSelectCard: (v, h) => i == null ? void 0 : i(e == null ? void 0 : e.uuid, h),
37
- image: d(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
38
- metadata: { name: p, accessor: e == null ? void 0 : e.accessor }
35
+ onSelectCard: (z, g) => i == null ? void 0 : i(e == null ? void 0 : e.uuid, g),
36
+ image: u(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
37
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
39
38
  },
40
- b
39
+ f
41
40
  ));
42
41
  }, [r]);
43
- return /* @__PURE__ */ P(
44
- j,
42
+ return /* @__PURE__ */ b(
43
+ y,
45
44
  {
46
- ref: n,
47
- className: `blog-product-cards-section ${m ? "highlight" : ""}`,
45
+ ref: m,
46
+ className: `blog-product-cards-section ${l ? "highlight" : ""}`,
48
47
  children: [
49
- /* @__PURE__ */ o("div", { className: "wrapper__grid", children: /* @__PURE__ */ o(
50
- w,
51
- {
52
- isLoading: u,
53
- limit: l,
54
- keyPrefix: "blog-section",
55
- children: g
56
- }
57
- ) }),
48
+ /* @__PURE__ */ o("div", { className: "wrapper__grid", children: n }),
58
49
  /* @__PURE__ */ o(
59
- U,
50
+ w,
60
51
  {
61
52
  text: a,
62
53
  borderRadius: "curved",
63
- btnType: f ? "basic" : "outline",
54
+ btnType: p ? "basic" : "outline",
64
55
  color: "neutral",
65
56
  className: "wrapper__action",
66
57
  onClick: () => t(c)
@@ -72,5 +63,5 @@ const k = N(_), T = y(
72
63
  }
73
64
  );
74
65
  export {
75
- T as default
66
+ D as default
76
67
  };
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),a=require("react"),_=require("./useDetectMobile-zkbzoOGV.cjs"),u=require("./skeleton-Ccd6EDeB.cjs"),k=require("./Button.cjs"),q=require("./style-BTTXJFJN.cjs"),C=({limit:o=4,isLoading:n=!1,keyPrefix:s})=>r.jsx(r.Fragment,{children:Array.from({length:o},(i,t)=>r.jsx(u.ShopCardSkeleton,{isLoading:n},`${s}-skeleton-shop-card-${t}`))}),w=({children:o,fallbackComponent:n=r.jsx(r.Fragment,{}),isLoading:s=!1,limit:i,keyPrefix:t})=>r.jsx(a.Suspense,{fallbackComponent:n,children:s===!0?r.jsx(C,{isLoading:s,limit:i,keyPrefix:t}):o}),M=a.memo(u.ShopCard),v=a.forwardRef(({buttonText:o,buttonLink:n,items:s,onButtonAction:i=()=>{},onSelectCard:t=()=>{},isLoading:l=!1,limit:d=4,getImage:p=()=>{},isHighlight:h=!1,componentName:m},g)=>{const j=_.useDetectMobile(),f=a.useMemo(()=>{var c;return(c=s==null?void 0:s.slice(0,4))==null?void 0:c.map((e,S)=>r.jsx(M,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:(y,b)=>t==null?void 0:t(e==null?void 0:e.uuid,b),image:p(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0,metadata:{name:m,accessor:e==null?void 0:e.accessor}},`shop-card__${S+1}`))},[s]);return r.jsxs(q.Wrapper,{ref:g,className:h?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(w,{isLoading:l,limit:d,keyPrefix:"blog-section",children:f})}),r.jsx(k,{text:o,borderRadius:"curved",btnType:j?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>i(n)})]})});module.exports=v;
1
+ "use strict";const i=require("react/jsx-runtime"),o=require("react"),q=require("./useDetectMobile-zkbzoOGV.cjs"),_=require("./index-C5r__0lD.cjs"),f=require("./Button.cjs"),j=require("./style-BTTXJFJN.cjs"),w=o.memo(_.ShopCard),M=o.forwardRef(({buttonText:u,buttonLink:a,items:r,onButtonAction:c=()=>{},onSelectCard:s=()=>{},isLoading:v=!1,limit:R=4,getImage:n=()=>{},isHighlight:l=!1,componentName:d},p)=>{const h=q.useDetectMobile(),m=o.useMemo(()=>{var t;return(t=r==null?void 0:r.slice(0,4))==null?void 0:t.map((e,g)=>i.jsx(w,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:(C,b)=>s==null?void 0:s(e==null?void 0:e.uuid,b),image:n(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0,metadata:{name:d,accessor:e==null?void 0:e.accessor}},`shop-card__${g+1}`))},[r]);return i.jsxs(j.Wrapper,{ref:p,className:l?"highlight":"",children:[i.jsx("div",{className:"wrapper__grid",children:m}),i.jsx(f,{text:u,borderRadius:"curved",btnType:h?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>c(a)})]})});module.exports=M;
@@ -1,86 +1,59 @@
1
- import { jsx as o, Fragment as u, jsxs as _ } from "react/jsx-runtime";
2
- import { Suspense as C, memo as k, forwardRef as w, useMemo as v } from "react";
3
- import { u as M } from "./useDetectMobile-Bkvj0VMa.js";
4
- import { a as y, S as N } from "./skeleton-5mO22c5S.js";
5
- import $ from "./Button.js";
6
- import { W as j } from "./style-tw6KjI2J.js";
7
- const z = ({ limit: a = 4, isLoading: t = !1, keyPrefix: r }) => /* @__PURE__ */ o(u, { children: Array.from({ length: a }, (i, s) => /* @__PURE__ */ o(
8
- y,
9
- {
10
- isLoading: t
11
- },
12
- `${r}-skeleton-shop-card-${s}`
13
- )) }), B = ({
14
- children: a,
15
- fallbackComponent: t = /* @__PURE__ */ o(u, {}),
16
- isLoading: r = !1,
17
- limit: i,
18
- keyPrefix: s
19
- }) => /* @__PURE__ */ o(C, { fallbackComponent: t, children: r === !0 ? /* @__PURE__ */ o(
20
- z,
21
- {
22
- isLoading: r,
23
- limit: i,
24
- keyPrefix: s
25
- }
26
- ) : a }), D = k(N), q = w(
1
+ import { jsx as i, jsxs as g } from "react/jsx-runtime";
2
+ import { memo as b, forwardRef as _, useMemo as w } from "react";
3
+ import { u as v } from "./useDetectMobile-Bkvj0VMa.js";
4
+ import { S as M } from "./index-BPntOicE.js";
5
+ import C from "./Button.js";
6
+ import { W as N } from "./style-tw6KjI2J.js";
7
+ const S = b(M), L = _(
27
8
  ({
28
- buttonText: a,
29
- buttonLink: t,
30
- items: r,
31
- onButtonAction: i = () => {
9
+ buttonText: t,
10
+ buttonLink: s,
11
+ items: o,
12
+ onButtonAction: u = () => {
32
13
  },
33
- onSelectCard: s = () => {
14
+ onSelectCard: e = () => {
34
15
  },
35
- isLoading: l = !1,
36
- limit: c = 4,
37
- getImage: p = () => {
16
+ isLoading: j = !1,
17
+ limit: z = 4,
18
+ getImage: m = () => {
38
19
  },
39
- isHighlight: d = !1,
40
- componentName: m
41
- }, h) => {
42
- const f = M(), g = v(() => {
43
- var n;
44
- return (n = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : n.map((e, S) => /* @__PURE__ */ o(
45
- D,
20
+ isHighlight: p = !1,
21
+ componentName: c
22
+ }, n) => {
23
+ const d = v(), l = w(() => {
24
+ var a;
25
+ return (a = o == null ? void 0 : o.slice(0, 4)) == null ? void 0 : a.map((r, f) => /* @__PURE__ */ i(
26
+ S,
46
27
  {
47
- uuid: e == null ? void 0 : e.uuid,
48
- title: e == null ? void 0 : e.name,
49
- subtitle: e == null ? void 0 : e.shortDescription,
50
- rating: e == null ? void 0 : e.rating,
51
- reviewCount: e == null ? void 0 : e.reviewCount,
52
- onSelectCard: (P, b) => s == null ? void 0 : s(e == null ? void 0 : e.uuid, b),
53
- image: p(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
28
+ uuid: r == null ? void 0 : r.uuid,
29
+ title: r == null ? void 0 : r.name,
30
+ subtitle: r == null ? void 0 : r.shortDescription,
31
+ rating: r == null ? void 0 : r.rating,
32
+ reviewCount: r == null ? void 0 : r.reviewCount,
33
+ onSelectCard: (B, h) => e == null ? void 0 : e(r == null ? void 0 : r.uuid, h),
34
+ image: m(r == null ? void 0 : r.profileImage, r == null ? void 0 : r.uuid) || null,
54
35
  hideProducts: !0,
55
- metadata: { name: m, accessor: e == null ? void 0 : e.accessor }
36
+ metadata: { name: c, accessor: r == null ? void 0 : r.accessor }
56
37
  },
57
- `shop-card__${S + 1}`
38
+ `shop-card__${f + 1}`
58
39
  ));
59
- }, [r]);
60
- return /* @__PURE__ */ _(j, { ref: h, className: d ? "highlight" : "", children: [
61
- /* @__PURE__ */ o("div", { className: "wrapper__grid", children: /* @__PURE__ */ o(
62
- B,
63
- {
64
- isLoading: l,
65
- limit: c,
66
- keyPrefix: "blog-section",
67
- children: g
68
- }
69
- ) }),
70
- /* @__PURE__ */ o(
71
- $,
40
+ }, [o]);
41
+ return /* @__PURE__ */ g(N, { ref: n, className: p ? "highlight" : "", children: [
42
+ /* @__PURE__ */ i("div", { className: "wrapper__grid", children: l }),
43
+ /* @__PURE__ */ i(
44
+ C,
72
45
  {
73
- text: a,
46
+ text: t,
74
47
  borderRadius: "curved",
75
- btnType: f ? "basic" : "outline",
48
+ btnType: d ? "basic" : "outline",
76
49
  color: "neutral",
77
50
  className: "wrapper__action",
78
- onClick: () => i(t)
51
+ onClick: () => u(s)
79
52
  }
80
53
  )
81
54
  ] });
82
55
  }
83
56
  );
84
57
  export {
85
- q as default
58
+ L as default
86
59
  };