@lanaco/lnc-react-ui 4.0.61 → 4.0.62

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 (233) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +1 -1
  3. package/dist/AccordionSummary.cjs +1 -1
  4. package/dist/AccordionSummary.js +1 -1
  5. package/dist/ActionsToolbar.cjs +1 -1
  6. package/dist/ActionsToolbar.js +1 -1
  7. package/dist/Alert.cjs +1 -1
  8. package/dist/Alert.js +1 -1
  9. package/dist/Avatar.cjs +1 -1
  10. package/dist/Avatar.js +1 -1
  11. package/dist/Badge.cjs +1 -1
  12. package/dist/Badge.js +1 -1
  13. package/dist/BannerSectionCarousel.cjs +1 -1
  14. package/dist/BannerSectionCarousel.js +1 -1
  15. package/dist/BannerSectionWithList.cjs +1 -1
  16. package/dist/BannerSectionWithList.js +1 -1
  17. package/dist/BlogCardsSponsoredSection.cjs +198 -0
  18. package/dist/BlogCardsSponsoredSection.js +333 -0
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +1 -1
  21. package/dist/BlogListSection.cjs +141 -0
  22. package/dist/BlogListSection.js +281 -0
  23. package/dist/BlogProductCardsSection.cjs +1 -1
  24. package/dist/BlogProductCardsSection.js +2 -2
  25. package/dist/BlogShopCardsSection.cjs +1 -1
  26. package/dist/BlogShopCardsSection.js +1 -1
  27. package/dist/BlogSingleSection.cjs +1 -1
  28. package/dist/BlogSingleSection.js +6 -5
  29. package/dist/BlogsSectionDetailed.cjs +1 -1
  30. package/dist/BlogsSectionDetailed.js +2 -2
  31. package/dist/BlogsSectionLarge.cjs +4 -4
  32. package/dist/BlogsSectionLarge.js +40 -58
  33. package/dist/BlogsSectionSimple.cjs +1 -1
  34. package/dist/BlogsSectionSimple.js +2 -2
  35. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  36. package/dist/BlogsSectionSimpleCentered.js +2 -2
  37. package/dist/BlogsSectionWithFilters.cjs +1 -1
  38. package/dist/BlogsSectionWithFilters.js +3 -3
  39. package/dist/BrandHitsSection.cjs +1 -1
  40. package/dist/BrandHitsSection.js +1 -1
  41. package/dist/Breadcrumbs.cjs +1 -1
  42. package/dist/Breadcrumbs.js +1 -1
  43. package/dist/Button.cjs +1 -1
  44. package/dist/Button.js +1 -1
  45. package/dist/ButtonGroup.cjs +1 -1
  46. package/dist/ButtonGroup.js +1 -1
  47. package/dist/CalorieCalculatorSection.cjs +1 -1
  48. package/dist/CalorieCalculatorSection.js +1 -1
  49. package/dist/CheckBoxInput.cjs +1 -1
  50. package/dist/CheckBoxInput.js +1 -1
  51. package/dist/Chip.cjs +1 -1
  52. package/dist/Chip.js +1 -1
  53. package/dist/ColorInput.cjs +1 -1
  54. package/dist/ColorInput.js +1 -1
  55. package/dist/ConfirmationForm.cjs +1 -1
  56. package/dist/ConfirmationForm.js +1 -1
  57. package/dist/CustomLoanMapSection.cjs +1 -1
  58. package/dist/CustomLoanMapSection.js +2 -2
  59. package/dist/{CustomStyles-8wE3hn1Q.cjs → CustomStyles-ChA_393q.cjs} +1 -1
  60. package/dist/{CustomStyles-D8sjeJmu.js → CustomStyles-ZBxlReAi.js} +1 -1
  61. package/dist/DateInput.cjs +1 -1
  62. package/dist/DateInput.js +1 -1
  63. package/dist/DecimalInput.cjs +1 -1
  64. package/dist/DecimalInput.js +1 -1
  65. package/dist/DecimalInputV2.cjs +1 -1
  66. package/dist/DecimalInputV2.js +1 -1
  67. package/dist/DetailedProductsSection.cjs +1 -1
  68. package/dist/DetailedProductsSection.js +3 -3
  69. package/dist/DetailsView.cjs +1 -1
  70. package/dist/DetailsView.js +1 -1
  71. package/dist/DoubleRangeSlider.cjs +1 -1
  72. package/dist/DoubleRangeSlider.js +1 -1
  73. package/dist/DragAndDropFile.cjs +1 -1
  74. package/dist/DragAndDropFile.js +1 -1
  75. package/dist/DragDropFiles.cjs +1 -1
  76. package/dist/DragDropFiles.js +1 -1
  77. package/dist/Drawer.cjs +1 -1
  78. package/dist/Drawer.js +1 -1
  79. package/dist/Dropdown.cjs +1 -1
  80. package/dist/Dropdown.js +2 -2
  81. package/dist/DropdownItem.cjs +1 -1
  82. package/dist/DropdownItem.js +1 -1
  83. package/dist/DropdownLookup.cjs +1 -1
  84. package/dist/DropdownLookup.js +1 -1
  85. package/dist/DropdownMenu.cjs +1 -1
  86. package/dist/DropdownMenu.js +1 -1
  87. package/dist/EditableTable.cjs +1 -1
  88. package/dist/EditableTable.js +1 -1
  89. package/dist/FieldOfInterestsMasonrySection.cjs +1 -1
  90. package/dist/FieldOfInterestsMasonrySection.js +1 -1
  91. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  92. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
  93. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  94. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  95. package/dist/FileInput.cjs +1 -1
  96. package/dist/FileInput.js +1 -1
  97. package/dist/FlexGridItem.cjs +1 -1
  98. package/dist/FlexGridItem.js +1 -1
  99. package/dist/FormField.cjs +1 -1
  100. package/dist/FormField.js +1 -1
  101. package/dist/FormView.cjs +1 -1
  102. package/dist/FormView.js +1 -1
  103. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  104. package/dist/GeneralWithTagsCardsSection.js +1 -1
  105. package/dist/GiftCardsSection.cjs +1 -1
  106. package/dist/GiftCardsSection.js +1 -1
  107. package/dist/Icon.cjs +1 -1
  108. package/dist/Icon.js +1 -1
  109. package/dist/IconButton.cjs +1 -1
  110. package/dist/IconButton.js +1 -1
  111. package/dist/Kanban.cjs +1 -1
  112. package/dist/Kanban.js +1 -1
  113. package/dist/KanbanActionsToolbar.cjs +1 -1
  114. package/dist/KanbanActionsToolbar.js +1 -1
  115. package/dist/KanbanView.cjs +1 -1
  116. package/dist/KanbanView.js +1 -1
  117. package/dist/Link.cjs +1 -1
  118. package/dist/Link.js +1 -1
  119. package/dist/LoanCalculatorSection.cjs +1 -1
  120. package/dist/LoanCalculatorSection.js +1 -1
  121. package/dist/LocationFinderSection.cjs +1 -1
  122. package/dist/LocationFinderSection.js +1 -1
  123. package/dist/LocationSearchSection.cjs +1 -1
  124. package/dist/LocationSearchSection.js +1 -1
  125. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  126. package/dist/MasonryGeneralCardsSection.js +1 -1
  127. package/dist/MenuItem.cjs +1 -1
  128. package/dist/MenuItem.js +1 -1
  129. package/dist/Modal.cjs +1 -1
  130. package/dist/Modal.js +1 -1
  131. package/dist/MultiSelectDropdown.cjs +1 -1
  132. package/dist/MultiSelectDropdown.js +1 -1
  133. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  134. package/dist/MultiSelectDropdownLookup.js +1 -1
  135. package/dist/NestedDropdownItem.cjs +1 -1
  136. package/dist/NestedDropdownItem.js +1 -1
  137. package/dist/NestedMenuItem.cjs +1 -1
  138. package/dist/NestedMenuItem.js +1 -1
  139. package/dist/NotificationContainer.cjs +1 -1
  140. package/dist/NotificationContainer.js +1 -1
  141. package/dist/NotificationMessage.cjs +1 -1
  142. package/dist/NotificationMessage.js +1 -1
  143. package/dist/NumberInput.cjs +1 -1
  144. package/dist/NumberInput.js +1 -1
  145. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  146. package/dist/OverlayGeneralCardsSection.js +1 -1
  147. package/dist/PasswordInput.cjs +1 -1
  148. package/dist/PasswordInput.js +1 -1
  149. package/dist/PopoverContent.cjs +1 -1
  150. package/dist/PopoverContent.js +1 -1
  151. package/dist/ProductsWithBannerSection.cjs +1 -1
  152. package/dist/ProductsWithBannerSection.js +2 -2
  153. package/dist/ProgressBar.cjs +1 -1
  154. package/dist/ProgressBar.js +1 -1
  155. package/dist/QuizSection.cjs +1 -1
  156. package/dist/QuizSection.js +1 -1
  157. package/dist/RadioInput.cjs +1 -1
  158. package/dist/RadioInput.js +1 -1
  159. package/dist/RangeSlider.cjs +1 -1
  160. package/dist/RangeSlider.js +1 -1
  161. package/dist/ReviewsSection.cjs +1 -1
  162. package/dist/ReviewsSection.js +2 -2
  163. package/dist/SalesCampaignsSection.cjs +1 -1
  164. package/dist/SalesCampaignsSection.js +1 -1
  165. package/dist/Separator.cjs +1 -1
  166. package/dist/Separator.js +1 -1
  167. package/dist/ShopCardsSection.cjs +1 -1
  168. package/dist/ShopCardsSection.js +2 -2
  169. package/dist/Sidebar.cjs +1 -1
  170. package/dist/Sidebar.js +1 -1
  171. package/dist/SimpleCategoriesSection.cjs +1 -1
  172. package/dist/SimpleCategoriesSection.js +2 -2
  173. package/dist/SimpleProductsSection.cjs +1 -1
  174. package/dist/SimpleProductsSection.js +2 -2
  175. package/dist/Spinner.cjs +1 -1
  176. package/dist/Spinner.js +1 -1
  177. package/dist/Surface.cjs +1 -1
  178. package/dist/Surface.js +1 -1
  179. package/dist/SwipeableDrawer.cjs +1 -1
  180. package/dist/SwipeableDrawer.js +1 -1
  181. package/dist/TabItem.cjs +1 -1
  182. package/dist/TabItem.js +1 -1
  183. package/dist/Table.cjs +1 -1
  184. package/dist/Table.js +1 -1
  185. package/dist/TableView.cjs +1 -1
  186. package/dist/TableView.js +1 -1
  187. package/dist/TextAreaInput.cjs +1 -1
  188. package/dist/TextAreaInput.js +1 -1
  189. package/dist/TextInput.cjs +1 -1
  190. package/dist/TextInput.js +1 -1
  191. package/dist/ThemeProvider.cjs +1 -1
  192. package/dist/ThemeProvider.js +1 -1
  193. package/dist/TimeInput.cjs +1 -1
  194. package/dist/TimeInput.js +1 -1
  195. package/dist/Toggle.cjs +1 -1
  196. package/dist/Toggle.js +1 -1
  197. package/dist/TreeMenuSeparator.cjs +1 -1
  198. package/dist/TreeMenuSeparator.js +1 -1
  199. package/dist/UploadedFile.cjs +1 -1
  200. package/dist/UploadedFile.js +1 -1
  201. package/dist/UrgentSaleProductsSection.cjs +1 -1
  202. package/dist/UrgentSaleProductsSection.js +1 -1
  203. package/dist/{index-Ch2hdKsi.js → index-5F6QsgOG.js} +1 -1
  204. package/dist/{index-CLNtYToJ.js → index-BLxkXrqU.js} +1 -1
  205. package/dist/{index-7JKuAPYS.cjs → index-BuKj-ITH.cjs} +1 -1
  206. package/dist/{index-DjzWqEsz.cjs → index-CAqPGuiA.cjs} +1 -1
  207. package/dist/{index-DmP0RzLr.js → index-CcLiL4eM.js} +1 -1
  208. package/dist/{index-D0NN682o.cjs → index-CfA579i2.cjs} +1 -1
  209. package/dist/{index-CC30-IXH.js → index-DXmajb7F.js} +1 -1
  210. package/dist/index-Q6GmUkJx.cjs +1 -0
  211. package/dist/index-bTSzxSNK.js +48 -0
  212. package/dist/{index-CFVE57cd.js → index-m9SN4CZC.js} +2 -2
  213. package/dist/{index-B_2gdl_u.cjs → index-opywxmcY.cjs} +1 -1
  214. package/dist/{index-o0E0w1Mi.cjs → index-ryadTWiS.cjs} +1 -1
  215. package/dist/index.cjs +1 -1
  216. package/dist/index.js +33 -29
  217. package/dist/{skeleton-BePxSNQP.cjs → skeleton-CfSTJ_9L.js} +21 -8
  218. package/dist/{skeleton-BTGcDgNY.cjs → skeleton-CtJG0_SN.cjs} +1 -1
  219. package/dist/skeleton-D0bLAwfj.cjs +93 -0
  220. package/dist/{skeleton-CwE74giy.js → skeleton-iQWpOw9K.js} +2 -2
  221. package/dist/{suspense-categories-card-simple-BEaaS-oz.js → suspense-categories-card-simple-Tiure3NX.js} +1 -1
  222. package/dist/{suspense-categories-card-simple-HXlnt5ki.cjs → suspense-categories-card-simple-o7JK0fA4.cjs} +1 -1
  223. package/dist/suspense-large-CQpNiB26.js +26 -0
  224. package/dist/suspense-large-v60EOiID.cjs +1 -0
  225. package/dist/{suspense-product-card-detailed-BJKydAoX.cjs → suspense-product-card-detailed-D490oqXC.cjs} +1 -1
  226. package/dist/{suspense-product-card-detailed-DoWnjOPj.js → suspense-product-card-detailed-DDXuOKib.js} +2 -2
  227. package/dist/{suspense-product-card-simple-QlbK_FyB.cjs → suspense-product-card-simple-CQxB1MF4.cjs} +1 -1
  228. package/dist/{suspense-product-card-simple--_T6ibCi.js → suspense-product-card-simple-fSvde3aM.js} +1 -1
  229. package/dist/{utils-NZLCh-J5.cjs → utils-BXPz9bck.cjs} +2 -2
  230. package/dist/{utils-DtRLzzTZ.js → utils-DCs-SbIv.js} +18 -12
  231. package/package.json +4 -2
  232. package/vite.config.js +8 -0
  233. package/dist/skeleton-BSYKhOiK.js +0 -146
@@ -0,0 +1,333 @@
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as v, memo as z, useMemo as S } from "react";
3
+ import { t as j, p as I, q as $, s as b, k as C } from "./utils-DCs-SbIv.js";
4
+ import u from "./Icon.js";
5
+ import R from "./Chip.js";
6
+ import { P as L } from "./index-BLxkXrqU.js";
7
+ import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
+ import { S as P } from "./suspense-large-CQpNiB26.js";
9
+ import U from "./Button.js";
10
+ import { M } from "./consts-C1uHV4xc.js";
11
+ const T = y.div`
12
+ display: flex;
13
+ padding: 1rem;
14
+ align-items: center;
15
+ gap: 1.25rem;
16
+ border-radius: 1.25rem;
17
+ align-items: stretch;
18
+ border: ${(t) => t != null && t.isSponsored ? "2px solid var(--yellow-500, #f59e0b)" : "1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
19
+ background: var(--white, #fff);
20
+ min-height: 10.5rem;
21
+ position: relative;
22
+
23
+ &:hover {
24
+ cursor: pointer;
25
+ }
26
+
27
+ & .wrapper__sponsored {
28
+ position: absolute;
29
+ top: -0.5rem;
30
+ right: -0.5rem;
31
+ background: var(--yellow-500, #f59e0b);
32
+ height: 2rem;
33
+ width: 2rem;
34
+ border-radius: 999px;
35
+
36
+ & span {
37
+ margin-top: 2px;
38
+ }
39
+
40
+ & i {
41
+ color: var(--white, #fff);
42
+ }
43
+ }
44
+
45
+ & .wrapper__image {
46
+ width: 100%;
47
+ object-fit: cover;
48
+ height: auto;
49
+ max-height: 9rem;
50
+ border-radius: 0.75rem;
51
+ }
52
+
53
+ & .wrapper__content {
54
+ display: flex;
55
+ width: 100%;
56
+ flex-direction: column;
57
+ justify-content: space-between;
58
+ align-items: flex-start;
59
+
60
+ & .wrapper__subcontent {
61
+ display: flex;
62
+ flex-direction: column;
63
+ align-items: flex-start;
64
+ gap: 0.5rem;
65
+
66
+ & .wrapper__title {
67
+ color: var(--gray-950, #14161a);
68
+ font-size: 1rem;
69
+ font-style: normal;
70
+ font-weight: 600;
71
+ line-height: 1.5rem;
72
+ letter-spacing: 0.1px;
73
+ ${j(3)}
74
+ }
75
+
76
+ & .wrapper__tags {
77
+ display: flex;
78
+ gap: 0.25rem;
79
+
80
+ & .wrapper__tag {
81
+ font-size: 0.75rem;
82
+ font-style: normal;
83
+ font-weight: 500;
84
+ line-height: 1rem;
85
+ letter-spacing: 0.5px;
86
+ padding: 0.125rem 0.5rem;
87
+ justify-content: center;
88
+ align-items: center;
89
+ gap: 0.25rem;
90
+ height: 1.25rem;
91
+ border: 1px solid;
92
+ }
93
+ }
94
+ }
95
+
96
+ & .wrapper__info {
97
+ display: flex;
98
+ justify-content: space-between;
99
+ width: 100%;
100
+
101
+ & .info__text {
102
+ display: flex;
103
+ gap: 0.5rem;
104
+ color: var(--gray-600, #676e79);
105
+ font-size: 0.75rem;
106
+ font-style: normal;
107
+ font-weight: 400;
108
+ line-height: 1rem;
109
+ letter-spacing: 0.4px;
110
+ }
111
+ }
112
+ }
113
+
114
+ @media (max-width: 400px) {
115
+ flex-direction: column;
116
+
117
+ & .wrapper__content {
118
+ gap: 1rem;
119
+
120
+ & .wrapper__info {
121
+ gap: 0.5rem;
122
+ flex-direction: column;
123
+ }
124
+ }
125
+ }
126
+ `, E = v(
127
+ ({
128
+ title: t,
129
+ imageUrl: d,
130
+ options: l,
131
+ publishedAt: c,
132
+ timeToReadText: g = "{0} min read",
133
+ timeToRead: f = 0,
134
+ numberOfLikes: s = 0,
135
+ numberOfComments: n = 0,
136
+ isSponsored: m = !1,
137
+ onSelectCard: o = () => {
138
+ },
139
+ onSelectOption: _ = () => {
140
+ }
141
+ }, w) => /* @__PURE__ */ a(T, { isSponsored: m, onClick: o, children: [
142
+ m && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(u, { icon: " mng-lnc-paw", sizeInUnits: "1.5rem" }) }),
143
+ /* @__PURE__ */ r(L, { src: d, className: "wrapper__image" }),
144
+ /* @__PURE__ */ a("div", { className: "wrapper__content", children: [
145
+ /* @__PURE__ */ a("div", { className: "wrapper__subcontent", children: [
146
+ /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
147
+ /* @__PURE__ */ r("div", { className: "wrapper__tags", children: l && (l == null ? void 0 : l.map((i, h) => /* @__PURE__ */ r(
148
+ R,
149
+ {
150
+ label: i == null ? void 0 : i.name,
151
+ color: i == null ? void 0 : i.color,
152
+ className: "wrapper__tag",
153
+ onClick: (p) => {
154
+ p == null || p.stopPropagation(), _(i == null ? void 0 : i.code);
155
+ }
156
+ },
157
+ `blog-card-sponsored-option__${h + 1}`
158
+ ))) })
159
+ ] }),
160
+ /* @__PURE__ */ a("div", { className: "wrapper__info", children: [
161
+ /* @__PURE__ */ r("div", { className: "info__text", children: `${I(
162
+ c
163
+ )} • ${$(g, f)}` }),
164
+ /* @__PURE__ */ a("div", { className: "info__text", children: [
165
+ /* @__PURE__ */ a("div", { children: [
166
+ /* @__PURE__ */ r(u, { icon: " mng-lnc-thumbs-up", sizeInUnits: "1rem" }),
167
+ b(s)
168
+ ] }),
169
+ /* @__PURE__ */ a("div", { children: [
170
+ /* @__PURE__ */ r(u, { icon: " mng-lnc-messages", sizeInUnits: "1rem" }),
171
+ b(n)
172
+ ] })
173
+ ] })
174
+ ] })
175
+ ] })
176
+ ] })
177
+ ), W = y.div`
178
+ display: flex;
179
+ flex-direction: column;
180
+ align-items: flex-start;
181
+ gap: 1.5rem;
182
+
183
+ & .wrapper__heading {
184
+ display: flex;
185
+ flex-direction: column;
186
+ gap: 1rem;
187
+ width: 100%;
188
+
189
+ & .wrapper__title {
190
+ display: flex;
191
+ justify-content: space-between;
192
+
193
+ & .title__text {
194
+ color: var(--gray-950, #14161a);
195
+ text-align: center;
196
+ font-size: 1.5rem;
197
+ font-style: normal;
198
+ font-weight: 600;
199
+ line-height: 2rem;
200
+ letter-spacing: -0.47px;
201
+
202
+ display: flex;
203
+ align-items: center;
204
+ gap: 0.5rem;
205
+
206
+ & i {
207
+ font-size: 1.5rem;
208
+ color: var(--primary-500, #f59e0b);
209
+ }
210
+ }
211
+
212
+ & .title__action {
213
+ color: var(--gray-950, #14161a);
214
+ background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
215
+
216
+ &:hover {
217
+ background: var(--neutral-9504, rgba(20, 22, 26, 0.12));
218
+ }
219
+
220
+ &:focus {
221
+ outline: none;
222
+ }
223
+ }
224
+ }
225
+
226
+ & .wrapper__subtitle {
227
+ color: var(---gray-600, #676e79);
228
+ font-size: 0.875rem;
229
+ font-style: normal;
230
+ font-weight: 400;
231
+ line-height: 1.25rem;
232
+ letter-spacing: 0.25px;
233
+ }
234
+ }
235
+
236
+ & .wrapper__cards {
237
+ display: grid;
238
+ grid-template-columns: repeat(2, minmax(0, 1fr));
239
+ gap: 1.25rem;
240
+ justify-items: center;
241
+ align-items: center;
242
+ width: 100%;
243
+ }
244
+
245
+ @media (max-width: ${M + "px"}) {
246
+ & .wrapper__heading {
247
+ & .wrapper__title {
248
+ & .title__action {
249
+ display: none;
250
+ }
251
+ }
252
+ }
253
+
254
+ & .wrapper__cards {
255
+ grid-template-columns: repeat(1, minmax(0, 1fr));
256
+ gap: 1rem;
257
+ }
258
+ }
259
+ `, B = z(E), Q = v(
260
+ ({
261
+ title: t,
262
+ subtitle: d,
263
+ icon: l,
264
+ buttonText: c,
265
+ buttonLink: g,
266
+ timeToReadText: f = "{0} min read",
267
+ items: s,
268
+ onButtonAction: n = () => {
269
+ },
270
+ onSelectCard: m = () => {
271
+ },
272
+ onSelectOption: o = () => {
273
+ },
274
+ isLoading: _ = !1,
275
+ getImage: w = () => {
276
+ }
277
+ }, i) => {
278
+ const h = S(() => {
279
+ var p;
280
+ return (p = s == null ? void 0 : s.slice(0, 4)) == null ? void 0 : p.map((e, N) => /* @__PURE__ */ r(
281
+ B,
282
+ {
283
+ title: e == null ? void 0 : e.title,
284
+ titleSlug: e == null ? void 0 : e.titleSlug,
285
+ options: e == null ? void 0 : e.options,
286
+ publishedAt: e == null ? void 0 : e.publishedAt,
287
+ timeToReadText: f,
288
+ timeToRead: e == null ? void 0 : e.timeToRead,
289
+ numberOfLikes: e == null ? void 0 : e.numberOfLikes,
290
+ numberOfComments: e == null ? void 0 : e.numberOfComments,
291
+ isSponsored: e == null ? void 0 : e.isSponsored,
292
+ onSelectCard: () => m == null ? void 0 : m(e == null ? void 0 : e.uuid, e == null ? void 0 : e.titleSlug),
293
+ onSelectOption: (k) => o == null ? void 0 : o(k),
294
+ imageUrl: w(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
295
+ },
296
+ `blog-card-sponsored__${N + 1}`
297
+ ));
298
+ }, [s]);
299
+ return /* @__PURE__ */ a(W, { children: [
300
+ /* @__PURE__ */ a("div", { className: "wrapper__heading", children: [
301
+ /* @__PURE__ */ a("div", { className: "wrapper__title", children: [
302
+ t && /* @__PURE__ */ a("div", { className: "title__text", children: [
303
+ C(l) && /* @__PURE__ */ r("i", { className: l }),
304
+ /* @__PURE__ */ r("span", { children: t })
305
+ ] }),
306
+ n && /* @__PURE__ */ r(
307
+ U,
308
+ {
309
+ text: c,
310
+ borderRadius: "curved",
311
+ btnType: "tinted",
312
+ className: "title__action",
313
+ onClick: () => n == null ? void 0 : n(g)
314
+ }
315
+ )
316
+ ] }),
317
+ d && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: d })
318
+ ] }),
319
+ /* @__PURE__ */ r("div", { className: "wrapper__cards", children: /* @__PURE__ */ r(
320
+ P,
321
+ {
322
+ isLoading: _,
323
+ limit: 4,
324
+ keyPrefix: "blog-section",
325
+ children: h
326
+ }
327
+ ) })
328
+ ] });
329
+ }
330
+ );
331
+ export {
332
+ Q as default
333
+ };
@@ -1 +1 @@
1
- "use strict";const s=require("react/jsx-runtime"),a=require("react"),u=require("./suspense-categories-card-simple-HXlnt5ki.cjs"),l=require("./style-OPSfrtFm.cjs"),m=a.memo(u.CategorySimpleCard),p=a.forwardRef(({items:r,onSelectCard:i=()=>{},isLoading:n=!1,limit:t=4,isHighlight:c=!1},C)=>{const d=a.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,g)=>s.jsx(m,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},g))},[r]);return s.jsx(l.Wrapper,{className:c?"highlight":"",children:s.jsx("div",{className:"wrapper__grid",children:s.jsx(u.SuspenseSimpleCategoryCard,{isLoading:n,limit:t,keyPrefix:"blog-section",children:d})})})});module.exports=p;
1
+ "use strict";const s=require("react/jsx-runtime"),a=require("react"),u=require("./suspense-categories-card-simple-o7JK0fA4.cjs"),l=require("./style-OPSfrtFm.cjs"),m=a.memo(u.CategorySimpleCard),p=a.forwardRef(({items:r,onSelectCard:i=()=>{},isLoading:n=!1,limit:t=4,isHighlight:c=!1},C)=>{const d=a.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,g)=>s.jsx(m,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},g))},[r]);return s.jsx(l.Wrapper,{className:c?"highlight":"",children:s.jsx("div",{className:"wrapper__grid",children:s.jsx(u.SuspenseSimpleCategoryCard,{isLoading:n,limit:t,keyPrefix:"blog-section",children:d})})})});module.exports=p;
@@ -1,6 +1,6 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { memo as l, forwardRef as f, useMemo as t } from "react";
3
- import { C as u, S as n } from "./suspense-categories-card-simple-BEaaS-oz.js";
3
+ import { C as u, S as n } from "./suspense-categories-card-simple-Tiure3NX.js";
4
4
  import { W as c } from "./style-DOKM5cZi.js";
5
5
  const C = l(u), M = f(
6
6
  ({
@@ -0,0 +1,141 @@
1
+ "use strict";const r=require("react/jsx-runtime"),o=require("react"),b=require("./Icon.cjs"),w=require("./IconButton.cjs"),v=require("./Chip.cjs"),c=require("./utils-BXPz9bck.cjs"),N=require("./index-CAqPGuiA.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./suspense-large-v60EOiID.cjs"),q=y.styled.div`
2
+ display: flex;
3
+ padding: 1rem;
4
+ align-items: center;
5
+ gap: 1.25rem;
6
+ border-radius: 1.25rem;
7
+ align-items: stretch;
8
+ border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
9
+ background: var(--white, #fff);
10
+ min-height: 10.5rem;
11
+ position: relative;
12
+
13
+ &:hover {
14
+ cursor: pointer;
15
+ }
16
+
17
+ & .wrapper__image {
18
+ width: 100%;
19
+ object-fit: cover;
20
+ height: auto;
21
+ max-height: 9rem;
22
+ border-radius: 0.75rem;
23
+ }
24
+
25
+ & .wrapper__content {
26
+ display: flex;
27
+ width: 100%;
28
+ flex-direction: column;
29
+ justify-content: space-between;
30
+ align-items: flex-start;
31
+
32
+ & .wrapper__subcontent {
33
+ display: flex;
34
+ flex-direction: column;
35
+ align-items: flex-start;
36
+ gap: 0.5rem;
37
+
38
+ & .wrapper__title {
39
+ color: var(--gray-950, #14161a);
40
+ font-size: 1rem;
41
+ font-style: normal;
42
+ font-weight: 600;
43
+ line-height: 1.5rem;
44
+ letter-spacing: 0.1px;
45
+ ${c.truncateTextInRows(3)}
46
+ }
47
+
48
+ & .wrapper__tags {
49
+ display: flex;
50
+ gap: 0.25rem;
51
+
52
+ & .wrapper__tag {
53
+ font-size: 0.75rem;
54
+ font-style: normal;
55
+ font-weight: 500;
56
+ line-height: 1rem;
57
+ letter-spacing: 0.5px;
58
+ padding: 0.125rem 0.5rem;
59
+ justify-content: center;
60
+ align-items: center;
61
+ gap: 0.25rem;
62
+ height: 1.25rem;
63
+ border: 1px solid;
64
+ }
65
+ }
66
+ }
67
+
68
+ & .wrapper__info {
69
+ display: flex;
70
+ justify-content: space-between;
71
+ align-items: center;
72
+ width: 100%;
73
+
74
+ & .info__content {
75
+ display: flex;
76
+ align-items: center;
77
+
78
+ &:first-of-type {
79
+ flex-grow: 1;
80
+ gap: 1rem;
81
+ }
82
+
83
+ & .info__text {
84
+ display: flex;
85
+ gap: 0.5rem;
86
+ color: var(--gray-600, #676e79);
87
+ font-size: 0.75rem;
88
+ font-style: normal;
89
+ font-weight: 400;
90
+ line-height: 1rem;
91
+ letter-spacing: 0.4px;
92
+ }
93
+ }
94
+ }
95
+ }
96
+
97
+ @media (max-width: 400px) {
98
+ flex-direction: column;
99
+
100
+ & .wrapper__content {
101
+ gap: 1rem;
102
+
103
+ & .wrapper__info {
104
+ gap: 0.5rem;
105
+ flex-direction: column;
106
+ width: 100%;
107
+
108
+ & .info__content {
109
+ align-items: flex-start;
110
+ width: 100%;
111
+
112
+ &:first-of-type {
113
+ flex-direction: column;
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+ `,I=o.forwardRef(({title:d,imageUrl:s,options:i,publishedAt:a,timeToReadText:n="{0} min read",timeToRead:l=0,numberOfLikes:m=0,numberOfComments:p=0,onSelectCard:g=()=>{},onSelectOption:_=()=>{},onBookmark:u=()=>{},onShare:e=()=>{}},h)=>r.jsxs(q,{onClick:g,children:[r.jsx(N.ProductImageWrapper,{src:s,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:d}),r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((t,j)=>r.jsx(v,{label:t==null?void 0:t.name,color:t==null?void 0:t.color,className:"wrapper__tag",onClick:f=>{f==null||f.stopPropagation(),_(t==null?void 0:t.code)}},`blog-card-sponsored-option__${j+1}`)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsxs("div",{className:"info__content",children:[r.jsx("div",{className:"info__text",children:`${c.formatLocaleDateString(a)} • ${c.formatString(n,l)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(b,{icon:" mng-lnc-thumbs-up",sizeInUnits:"1rem"}),c.getRoundedNumber(m)]}),r.jsxs("div",{children:[r.jsx(b,{icon:" mng-lnc-messages",sizeInUnits:"1rem"}),c.getRoundedNumber(p)]})]})]}),r.jsxs("div",{className:"info__content",children:[r.jsx(w,{icon:" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),u()}}),r.jsx(w,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),e()}})]})]})]})]})),z=y.styled.div`
120
+ display: flex;
121
+ flex-direction: column;
122
+ align-items: flex-start;
123
+ gap: 1.5rem;
124
+
125
+ &.separated {
126
+ & > div {
127
+ position: relative;
128
+ }
129
+
130
+ & > div:not(:last-of-type)::after {
131
+ content: "";
132
+ display: block;
133
+ height: 1px;
134
+ width: 100%;
135
+ background: var(--gray-200, #dddfe4);
136
+ position: absolute;
137
+ left: 0;
138
+ bottom: -0.75rem;
139
+ }
140
+ }
141
+ `,k=o.memo(I),C=o.forwardRef(({timeToReadText:d="{0} min read",items:s,onSelectCard:i=()=>{},onSelectOption:a=()=>{},onShare:n=()=>{},onBookmark:l=()=>{},isLoading:m=!1,getImage:p=()=>{},isSeparated:g=!0},_)=>{const u=o.useMemo(()=>s==null?void 0:s.map((e,h)=>r.jsx(k,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:d,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid,e==null?void 0:e.titleSlug),onSelectOption:t=>a==null?void 0:a(t),onShare:()=>n==null?void 0:n(e==null?void 0:e.uuid),onBookmark:()=>l==null?void 0:l(e==null?void 0:e.uuid),imageUrl:p(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-item__${h+1}`)),[s]);return r.jsx(z,{className:g?"separated":"",children:r.jsx(R.SuspenseBlogLarge,{isLoading:m,limit:5,keyPrefix:"blog-section",children:u})})});module.exports=C;