@lanaco/lnc-react-ui 4.0.84 → 4.0.86
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.
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +1 -1
- package/dist/BannerSectionCarousel.js +1 -1
- package/dist/BannerSectionWithList.cjs +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BannerSectionWithListImage.cjs +1 -1
- package/dist/BannerSectionWithListImage.js +9 -9
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +3 -3
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +3 -3
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +2 -2
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +2 -2
- package/dist/BlogsSectionDetailed.cjs +6 -6
- package/dist/BlogsSectionDetailed.js +65 -62
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +6 -6
- package/dist/BlogsSectionSimple.js +46 -43
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +6 -2
- package/dist/BlogsSectionWithFilters.js +43 -36
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +1 -1
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +2 -2
- package/dist/CalorieCalculatorSection.js +2 -2
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +2 -2
- package/dist/{CustomStyles-ZBxlReAi.js → CustomStyles-DSaRbYZg.js} +1 -1
- package/dist/{CustomStyles-ChA_393q.cjs → CustomStyles-DzChCA5c.cjs} +1 -1
- package/dist/DateInput.cjs +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsSection.cjs +7 -3
- package/dist/DetailedProductsSection.js +17 -12
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +1 -1
- package/dist/FieldOfInterestsMasonrySection.js +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +12 -7
- package/dist/FieldOfInterestsWithTagsCardsSection.js +41 -36
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +17 -12
- package/dist/GeneralWithTagsCardsSection.js +32 -27
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +6 -6
- package/dist/LocationSearchSection.js +16 -13
- package/dist/MasonryGeneralCardsSection.cjs +6 -6
- package/dist/MasonryGeneralCardsSection.js +44 -46
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +7 -5
- package/dist/OverlayGeneralCardsSection.js +12 -10
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +2 -2
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +1 -1
- package/dist/ReviewsSection.js +2 -2
- package/dist/SalesCampaignsSection.cjs +35 -31
- package/dist/SalesCampaignsSection.js +183 -177
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +2 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +2 -2
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +2 -2
- package/dist/{index-baEuidT3.js → index-B5bRol0l.js} +1 -1
- package/dist/{index-D0Cl3mpJ.js → index-B69VVFyo.js} +1 -1
- package/dist/{index-CfA579i2.cjs → index-B9HSHvhH.cjs} +4 -3
- package/dist/{index-m9SN4CZC.js → index-BBPnKoi6.js} +13 -12
- package/dist/{index-CAqPGuiA.cjs → index-BVaZWq6y.cjs} +1 -1
- package/dist/{index-bTSzxSNK.js → index-BpS5mEUu.js} +2 -2
- package/dist/{index-Q6GmUkJx.cjs → index-C7iutNsj.cjs} +1 -1
- package/dist/{index-ZbylnHR8.cjs → index-CWAifrDS.cjs} +1 -1
- package/dist/{index-BLxkXrqU.js → index-Ca38iPjf.js} +1 -1
- package/dist/{index-DXmajb7F.js → index-DmuZIVnC.js} +1 -1
- package/dist/{index-Dy-o153l.cjs → index-ZR5ws_qw.cjs} +1 -1
- package/dist/{index-ryadTWiS.cjs → index-rYeYJwuL.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{skeleton-D0bLAwfj.cjs → skeleton-BRWiMY6b.cjs} +7 -3
- package/dist/{skeleton-CtJG0_SN.cjs → skeleton-C_Jypl8r.cjs} +1 -1
- package/dist/{skeleton-CfSTJ_9L.js → skeleton-DhXNRCfI.js} +8 -4
- package/dist/{skeleton-iQWpOw9K.js → skeleton-wfDIalr3.js} +2 -2
- package/dist/{suspense-categories-card-simple-Tiure3NX.js → suspense-categories-card-simple-BmmCOsc0.js} +1 -1
- package/dist/{suspense-categories-card-simple-o7JK0fA4.cjs → suspense-categories-card-simple-D-tE8xV6.cjs} +1 -1
- package/dist/{suspense-large-v60EOiID.cjs → suspense-large-Buu1428e.cjs} +1 -1
- package/dist/{suspense-large-CQpNiB26.js → suspense-large-iKRJJlJv.js} +1 -1
- package/dist/{suspense-product-card-detailed-D490oqXC.cjs → suspense-product-card-detailed-CwUN6A-L.cjs} +1 -1
- package/dist/{suspense-product-card-detailed-DDXuOKib.js → suspense-product-card-detailed-J2a9wi6Z.js} +2 -2
- package/dist/{suspense-product-card-simple-fSvde3aM.js → suspense-product-card-simple--ExcEpD-.js} +1 -1
- package/dist/{suspense-product-card-simple-CQxB1MF4.cjs → suspense-product-card-simple-0x5sc47a.cjs} +1 -1
- package/dist/{utils-DCs-SbIv.js → utils-BE-UlkKf.js} +8 -8
- package/dist/{utils-BXPz9bck.cjs → utils-DhRHf5Ed.cjs} +3 -3
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as N, Suspense as
|
|
2
|
+
import { forwardRef as N, Suspense as A, memo as B, useMemo as L } from "react";
|
|
3
3
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { m as v, t as
|
|
7
|
-
import { B as
|
|
8
|
-
import
|
|
9
|
-
import { P as
|
|
10
|
-
const
|
|
4
|
+
import { M as T } from "./consts-C1uHV4xc.js";
|
|
5
|
+
import { u as D } from "./useDetectMobile-BC6EGaBc.js";
|
|
6
|
+
import { m as v, t as P, q as z, p as M, s as C, k as w } from "./utils-BE-UlkKf.js";
|
|
7
|
+
import { B as I, R as U } from "./style-CsMpu4iC.js";
|
|
8
|
+
import W from "./Button.js";
|
|
9
|
+
import { P as j } from "./index-Ca38iPjf.js";
|
|
10
|
+
const E = y.div`
|
|
11
11
|
display: grid;
|
|
12
12
|
grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
|
|
13
13
|
gap: 1.25rem;
|
|
14
14
|
|
|
15
|
-
@media (max-width: ${
|
|
15
|
+
@media (max-width: ${T + "px"}) {
|
|
16
16
|
grid-template-columns: repeat(1, 1fr);
|
|
17
17
|
}
|
|
18
|
-
`,
|
|
18
|
+
`, R = y.div`
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: column;
|
|
21
21
|
width: 100%;
|
|
@@ -56,9 +56,9 @@ const j = y.div`
|
|
|
56
56
|
padding: 0 1rem 1rem 1rem;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
@media (max-width: ${
|
|
59
|
+
@media (max-width: ${T + "px"}) {
|
|
60
60
|
}
|
|
61
|
-
`,
|
|
61
|
+
`, O = y.div`
|
|
62
62
|
padding: 1rem 1rem 0 1rem;
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: column;
|
|
@@ -88,7 +88,7 @@ const j = y.div`
|
|
|
88
88
|
font-size: 0.875rem;
|
|
89
89
|
flex: 1;
|
|
90
90
|
color: var(--gray-700, #4e555f);
|
|
91
|
-
${
|
|
91
|
+
${P(2)}
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
& .info-wr {
|
|
@@ -117,37 +117,37 @@ const j = y.div`
|
|
|
117
117
|
align-items: center;
|
|
118
118
|
gap: 1rem;
|
|
119
119
|
}
|
|
120
|
-
`,
|
|
120
|
+
`, _ = N((i, o) => {
|
|
121
121
|
const {
|
|
122
122
|
title: a,
|
|
123
123
|
imageUrl: d,
|
|
124
124
|
text: s,
|
|
125
|
-
numberOfLikes:
|
|
125
|
+
numberOfLikes: l,
|
|
126
126
|
numberOfComments: u,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
tags:
|
|
130
|
-
onCardClick:
|
|
131
|
-
timeToReadText: p = "read"
|
|
127
|
+
timeToRead: g,
|
|
128
|
+
publishedAt: c,
|
|
129
|
+
tags: m,
|
|
130
|
+
onCardClick: h,
|
|
131
|
+
timeToReadText: p = "{0} min read"
|
|
132
132
|
} = i;
|
|
133
133
|
return (
|
|
134
134
|
// <BlogCardDetailedSkeleton />
|
|
135
|
-
/* @__PURE__ */ t(
|
|
136
|
-
/* @__PURE__ */ r(
|
|
137
|
-
/* @__PURE__ */ t(
|
|
135
|
+
/* @__PURE__ */ t(R, { ref: o, className: "blog-card", onClick: h, children: [
|
|
136
|
+
/* @__PURE__ */ r(j, { src: d }),
|
|
137
|
+
/* @__PURE__ */ t(O, { children: [
|
|
138
138
|
/* @__PURE__ */ t("div", { className: "info-wr", children: [
|
|
139
139
|
/* @__PURE__ */ t("div", { className: "info-wr-1", children: [
|
|
140
140
|
/* @__PURE__ */ t("span", { children: [
|
|
141
|
-
|
|
141
|
+
M(c),
|
|
142
142
|
" "
|
|
143
143
|
] }),
|
|
144
144
|
/* @__PURE__ */ r("span", { className: "small-dot", children: "●" }),
|
|
145
|
-
|
|
145
|
+
g && p ? `${z(p, g)}` : "N/A"
|
|
146
146
|
] }),
|
|
147
147
|
/* @__PURE__ */ t("div", { className: "info-wr-2", children: [
|
|
148
148
|
/* @__PURE__ */ t("span", { className: "info-wr-1", children: [
|
|
149
149
|
/* @__PURE__ */ r("i", { className: "mng mng-lnc-thumbs-up--filled" }),
|
|
150
|
-
/* @__PURE__ */ r("span", { children: C(
|
|
150
|
+
/* @__PURE__ */ r("span", { children: C(l) })
|
|
151
151
|
] }),
|
|
152
152
|
/* @__PURE__ */ t("span", { className: "info-wr-1", children: [
|
|
153
153
|
/* @__PURE__ */ r("i", { className: "mng mng-lnc-messages-filled" }),
|
|
@@ -158,50 +158,51 @@ const j = y.div`
|
|
|
158
158
|
/* @__PURE__ */ r("div", { className: "text-wr-title", children: a }),
|
|
159
159
|
/* @__PURE__ */ r("div", { className: "text-wr", children: s })
|
|
160
160
|
] }),
|
|
161
|
-
/* @__PURE__ */ r("div", { className: "tags-wr", children:
|
|
161
|
+
/* @__PURE__ */ r("div", { className: "tags-wr", children: m == null ? void 0 : m.map((n, f) => /* @__PURE__ */ r(I, { color: n == null ? void 0 : n.color, children: n == null ? void 0 : n.name }, f)) })
|
|
162
162
|
] })
|
|
163
163
|
);
|
|
164
|
-
}),
|
|
164
|
+
}), G = N(({}, i) => /* @__PURE__ */ t(R, { className: "blog-card", children: [
|
|
165
165
|
/* @__PURE__ */ r("div", { className: "skeleton-img" }),
|
|
166
|
-
/* @__PURE__ */ t(
|
|
166
|
+
/* @__PURE__ */ t(O, { children: [
|
|
167
167
|
/* @__PURE__ */ r("div", { className: "info-wr" }),
|
|
168
168
|
/* @__PURE__ */ r("div", { className: "skeleton-title" }),
|
|
169
169
|
/* @__PURE__ */ r("div", { className: "info-wr-skeleton" })
|
|
170
170
|
] })
|
|
171
|
-
] })),
|
|
172
|
-
|
|
171
|
+
] })), q = ({ limit: i = 3, isLoading: o = !1, keyPrefix: a }) => /* @__PURE__ */ r(k, { children: Array.from({ length: i }, (d, s) => /* @__PURE__ */ r(
|
|
172
|
+
G,
|
|
173
173
|
{
|
|
174
174
|
isLoading: o
|
|
175
175
|
},
|
|
176
176
|
`${a}-skeleton-product-card-${s}`
|
|
177
|
-
)) }),
|
|
177
|
+
)) }), F = ({
|
|
178
178
|
children: i,
|
|
179
179
|
fallbackComponent: o = /* @__PURE__ */ r(k, {}),
|
|
180
180
|
isLoading: a = !1,
|
|
181
181
|
limit: d,
|
|
182
182
|
keyPrefix: s
|
|
183
|
-
}) => /* @__PURE__ */ r(
|
|
184
|
-
|
|
183
|
+
}) => /* @__PURE__ */ r(A, { fallbackComponent: o, children: a === !0 ? /* @__PURE__ */ r(
|
|
184
|
+
q,
|
|
185
185
|
{
|
|
186
186
|
isLoading: a,
|
|
187
187
|
limit: d,
|
|
188
188
|
keyPrefix: s
|
|
189
189
|
}
|
|
190
|
-
) : i }), S =
|
|
190
|
+
) : i }), S = B(_), ee = N((i, o) => {
|
|
191
191
|
const {
|
|
192
192
|
icon: a,
|
|
193
193
|
title: d,
|
|
194
194
|
onButtonAction: s,
|
|
195
|
-
items:
|
|
195
|
+
items: l,
|
|
196
196
|
buttonText: u,
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
timeToReadText: g,
|
|
198
|
+
limit: c = 3,
|
|
199
|
+
onSelectCard: m = () => {
|
|
199
200
|
},
|
|
200
|
-
isLoading:
|
|
201
|
-
buttonLink:
|
|
202
|
-
getImage:
|
|
201
|
+
isLoading: h = !1,
|
|
202
|
+
buttonLink: p,
|
|
203
|
+
getImage: n = () => {
|
|
203
204
|
}
|
|
204
|
-
} = i,
|
|
205
|
+
} = i, f = D(), $ = L(() => /* @__PURE__ */ r(k, { children: f === !0 ? l == null ? void 0 : l.map((e, b) => /* @__PURE__ */ r(
|
|
205
206
|
S,
|
|
206
207
|
{
|
|
207
208
|
title: e == null ? void 0 : e.title,
|
|
@@ -209,58 +210,60 @@ const j = y.div`
|
|
|
209
210
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
210
211
|
numberOfLikes: e == null ? void 0 : e.numberOfLikes,
|
|
211
212
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
212
|
-
|
|
213
|
-
|
|
213
|
+
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
214
|
+
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
215
|
+
timeToReadText: g,
|
|
214
216
|
tags: e == null ? void 0 : e.tags,
|
|
215
|
-
onCardClick: () =>
|
|
216
|
-
imageUrl:
|
|
217
|
+
onCardClick: () => m(e == null ? void 0 : e.titleSlug),
|
|
218
|
+
imageUrl: n(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
|
|
217
219
|
},
|
|
218
220
|
b
|
|
219
|
-
)) :
|
|
221
|
+
)) : l == null ? void 0 : l.slice(0, c).map((e, b) => /* @__PURE__ */ r(
|
|
220
222
|
S,
|
|
221
223
|
{
|
|
222
224
|
title: e == null ? void 0 : e.title,
|
|
223
|
-
imageUrl:
|
|
225
|
+
imageUrl: n(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
224
226
|
text: e == null ? void 0 : e.description,
|
|
225
227
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
226
228
|
tags: e == null ? void 0 : e.tags,
|
|
227
229
|
numberOfLikes: e == null ? void 0 : e.numberOfLikes,
|
|
228
230
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
231
|
+
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
232
|
+
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
233
|
+
timeToReadText: g,
|
|
234
|
+
onCardClick: () => m(e == null ? void 0 : e.titleSlug)
|
|
232
235
|
},
|
|
233
236
|
b
|
|
234
|
-
)) }), [
|
|
235
|
-
return /* @__PURE__ */ t(
|
|
237
|
+
)) }), [l, f, c, m]);
|
|
238
|
+
return /* @__PURE__ */ t(U, { ref: o, children: [
|
|
236
239
|
/* @__PURE__ */ t("div", { className: "regular-title", children: [
|
|
237
240
|
/* @__PURE__ */ t("div", { className: "regular-title-text", children: [
|
|
238
241
|
w(a) && /* @__PURE__ */ r("i", { className: a }),
|
|
239
242
|
/* @__PURE__ */ r("span", { children: d })
|
|
240
243
|
] }),
|
|
241
|
-
w(u) && w(
|
|
242
|
-
|
|
244
|
+
w(u) && w(p) && /* @__PURE__ */ r(
|
|
245
|
+
W,
|
|
243
246
|
{
|
|
244
247
|
type: "button",
|
|
245
248
|
btnType: "tinted",
|
|
246
249
|
color: "gray",
|
|
247
|
-
onClick: () => s(
|
|
250
|
+
onClick: () => s(p),
|
|
248
251
|
borderRadius: "curved",
|
|
249
252
|
children: u
|
|
250
253
|
}
|
|
251
254
|
)
|
|
252
255
|
] }),
|
|
253
|
-
/* @__PURE__ */ r(
|
|
254
|
-
|
|
256
|
+
/* @__PURE__ */ r(E, { limit: c, children: /* @__PURE__ */ r(
|
|
257
|
+
F,
|
|
255
258
|
{
|
|
256
|
-
isLoading:
|
|
257
|
-
limit:
|
|
259
|
+
isLoading: h,
|
|
260
|
+
limit: c,
|
|
258
261
|
keyPrefix: "explore-landing",
|
|
259
|
-
children:
|
|
262
|
+
children: $
|
|
260
263
|
}
|
|
261
264
|
) })
|
|
262
265
|
] });
|
|
263
266
|
});
|
|
264
267
|
export {
|
|
265
|
-
|
|
268
|
+
ee as default
|
|
266
269
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),s=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-CtNoHdBj.cjs"),b=require("./useDetectMobile-D6d5LpdL.cjs"),q=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),s=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-CtNoHdBj.cjs"),b=require("./useDetectMobile-D6d5LpdL.cjs"),q=require("./index-C7iutNsj.cjs"),C=require("./suspense-large-Buu1428e.cjs"),f=p.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${l=>`repeat(${l.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -3,8 +3,8 @@ import { memo as c, forwardRef as f, useMemo as S } from "react";
|
|
|
3
3
|
import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as b } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import { u as B } from "./useDetectMobile-BC6EGaBc.js";
|
|
6
|
-
import { B as M } from "./index-
|
|
7
|
-
import { S as L } from "./suspense-large-
|
|
6
|
+
import { B as M } from "./index-BpS5mEUu.js";
|
|
7
|
+
import { S as L } from "./suspense-large-iKRJJlJv.js";
|
|
8
8
|
const h = C.div`
|
|
9
9
|
display: grid;
|
|
10
10
|
grid-template-columns: ${(l) => `repeat(${l.limit}, minmax(0, 1fr))`};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),a=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),a=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-CtNoHdBj.cjs"),N=require("./useDetectMobile-D6d5LpdL.cjs"),m=require("./utils-DhRHf5Ed.cjs"),x=require("./style-C571ywKV.cjs"),q=require("./Button.cjs"),R=require("./Link.cjs"),M=require("./index-BVaZWq6y.cjs"),B=p.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,y=p.styled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
width: 100%;
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
margin-top: auto;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
@media (max-width: ${
|
|
49
|
+
@media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,b=p.styled.div`
|
|
52
52
|
padding: 1rem 1rem 0 1rem;
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
@@ -68,4 +68,4 @@
|
|
|
68
68
|
color: var(--gray-700, #4e555f);
|
|
69
69
|
${m.truncateTextInRows(3)}
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
`,$=a.forwardRef((t,o)=>{const{title:i,imageUrl:s,text:l,onCardClick:c,readMoreText:d="Read more"}=t;return r.jsxs(y,{ref:o,className:"blog-card",onClick:c,children:[r.jsx(M.ProductImageWrapper,{src:s}),r.jsxs(b,{children:[r.jsx("div",{className:"text-wr-title",children:i}),r.jsx("div",{className:"text-wr",children:l})]}),r.jsx(R,{className:"action",color:"gray",onClick:c,children:d})]})}),I=a.forwardRef(({},t)=>r.jsxs(y,{className:"product-card",children:[r.jsx("div",{className:"skeleton-img"}),r.jsx("div",{className:"card-title"}),r.jsx(b,{})]})),P=({limit:t=3,isLoading:o=!1,keyPrefix:i})=>r.jsx(r.Fragment,{children:Array.from({length:t},(s,l)=>r.jsx(I,{isLoading:o},`${i}-skeleton-product-card-${l}`))}),T=({children:t,fallbackComponent:o=r.jsx(r.Fragment,{}),isLoading:i=!1,limit:s,keyPrefix:l})=>r.jsx(a.Suspense,{fallbackComponent:o,children:i===!0?r.jsx(P,{isLoading:i,limit:s,keyPrefix:l}):t}),j=a.memo($),_=a.forwardRef((t,o)=>{const{icon:i,title:s,onButtonAction:l=()=>{},onSelectCard:c=()=>{},buttonLink:d,items:n,buttonText:v,limit:u=3,isLoading:w=!1,getImage:h=()=>{},readMoreText:f="Read more"}=t,k=N.useDetectMobile(),C=a.useMemo(()=>r.jsx(r.Fragment,{children:k===!0?n==null?void 0:n.map((e,g)=>r.jsx(j,{title:e==null?void 0:e.title,imageUrl:h(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:f,onCardClick:()=>c(e==null?void 0:e.titleSlug)},g)):n==null?void 0:n.slice(0,u).map((e,g)=>r.jsx(j,{title:e==null?void 0:e.title,imageUrl:h(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:f,onCardClick:()=>c(e==null?void 0:e.titleSlug)},g))}),[n]);return r.jsxs(x.RegulatTitleSectionWrapper,{ref:o,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[m.isDefinedNotEmptyString(i)&&r.jsx("i",{className:i}),r.jsx("span",{children:s})]}),m.isDefinedNotEmptyString(d)&&r.jsx(q,{type:"button",btnType:"tinted",color:"gray",onClick:()=>l(d),borderRadius:"curved",children:v})]}),r.jsx(B,{limit:u,children:r.jsx(T,{isLoading:w,limit:u,keyPrefix:"explore-landing",children:C})})]})});module.exports=_;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r, Fragment as g } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as u, Suspense as B, memo as
|
|
2
|
+
import { forwardRef as u, Suspense as B, memo as P, useMemo as R } from "react";
|
|
3
3
|
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { m as
|
|
7
|
-
import { R as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { P as
|
|
11
|
-
const
|
|
4
|
+
import { M as k } from "./consts-C1uHV4xc.js";
|
|
5
|
+
import { u as T } from "./useDetectMobile-BC6EGaBc.js";
|
|
6
|
+
import { m as I, t as U, k as S } from "./utils-BE-UlkKf.js";
|
|
7
|
+
import { R as W } from "./style-CsMpu4iC.js";
|
|
8
|
+
import z from "./Button.js";
|
|
9
|
+
import j from "./Link.js";
|
|
10
|
+
import { P as A } from "./index-Ca38iPjf.js";
|
|
11
|
+
const E = h.div`
|
|
12
12
|
display: grid;
|
|
13
13
|
grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
|
|
14
14
|
gap: 1.25rem;
|
|
15
15
|
|
|
16
|
-
@media (max-width: ${
|
|
16
|
+
@media (max-width: ${k + "px"}) {
|
|
17
17
|
grid-template-columns: repeat(1, 1fr);
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`, w = h.div`
|
|
20
20
|
display: flex;
|
|
21
21
|
flex-direction: column;
|
|
22
22
|
width: 100%;
|
|
@@ -48,7 +48,7 @@ const A = h.div`
|
|
|
48
48
|
width: 100%;
|
|
49
49
|
max-height: 12.5625rem;
|
|
50
50
|
min-height: 12.5625rem;
|
|
51
|
-
background-color: ${
|
|
51
|
+
background-color: ${I("-90deg")};
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
& .action {
|
|
@@ -56,9 +56,9 @@ const A = h.div`
|
|
|
56
56
|
margin-top: auto;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
@media (max-width: ${
|
|
59
|
+
@media (max-width: ${k + "px"}) {
|
|
60
60
|
}
|
|
61
|
-
`,
|
|
61
|
+
`, y = h.div`
|
|
62
62
|
padding: 1rem 1rem 0 1rem;
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: column;
|
|
@@ -76,45 +76,45 @@ const A = h.div`
|
|
|
76
76
|
font-size: 0.875rem;
|
|
77
77
|
flex: 1;
|
|
78
78
|
color: var(--gray-700, #4e555f);
|
|
79
|
-
${
|
|
79
|
+
${U(3)}
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`, L = u((t, o) => {
|
|
82
82
|
const { title: i, imageUrl: n, text: l, onCardClick: d, readMoreText: c = "Read more" } = t;
|
|
83
|
-
return /* @__PURE__ */ m(
|
|
84
|
-
/* @__PURE__ */ r(
|
|
85
|
-
/* @__PURE__ */ m(
|
|
83
|
+
return /* @__PURE__ */ m(w, { ref: o, className: "blog-card", onClick: d, children: [
|
|
84
|
+
/* @__PURE__ */ r(A, { src: n }),
|
|
85
|
+
/* @__PURE__ */ m(y, { children: [
|
|
86
86
|
/* @__PURE__ */ r("div", { className: "text-wr-title", children: i }),
|
|
87
87
|
/* @__PURE__ */ r("div", { className: "text-wr", children: l })
|
|
88
88
|
] }),
|
|
89
|
-
/* @__PURE__ */ r(
|
|
89
|
+
/* @__PURE__ */ r(j, { className: "action", color: "gray", onClick: d, children: c })
|
|
90
90
|
] });
|
|
91
|
-
}),
|
|
91
|
+
}), _ = u(({}, t) => (
|
|
92
92
|
// <LandingPageClearProductCardSkeleton />
|
|
93
|
-
/* @__PURE__ */ m(
|
|
93
|
+
/* @__PURE__ */ m(w, { className: "product-card", children: [
|
|
94
94
|
/* @__PURE__ */ r("div", { className: "skeleton-img" }),
|
|
95
95
|
/* @__PURE__ */ r("div", { className: "card-title" }),
|
|
96
|
-
/* @__PURE__ */ r(
|
|
96
|
+
/* @__PURE__ */ r(y, {})
|
|
97
97
|
] })
|
|
98
|
-
)),
|
|
99
|
-
|
|
98
|
+
)), D = ({ limit: t = 3, isLoading: o = !1, keyPrefix: i }) => /* @__PURE__ */ r(g, { children: Array.from({ length: t }, (n, l) => /* @__PURE__ */ r(
|
|
99
|
+
_,
|
|
100
100
|
{
|
|
101
101
|
isLoading: o
|
|
102
102
|
},
|
|
103
103
|
`${i}-skeleton-product-card-${l}`
|
|
104
|
-
)) }),
|
|
104
|
+
)) }), G = ({
|
|
105
105
|
children: t,
|
|
106
106
|
fallbackComponent: o = /* @__PURE__ */ r(g, {}),
|
|
107
107
|
isLoading: i = !1,
|
|
108
108
|
limit: n,
|
|
109
109
|
keyPrefix: l
|
|
110
110
|
}) => /* @__PURE__ */ r(B, { fallbackComponent: o, children: i === !0 ? /* @__PURE__ */ r(
|
|
111
|
-
|
|
111
|
+
D,
|
|
112
112
|
{
|
|
113
113
|
isLoading: i,
|
|
114
114
|
limit: n,
|
|
115
115
|
keyPrefix: l
|
|
116
116
|
}
|
|
117
|
-
) : t }),
|
|
117
|
+
) : t }), b = P(L), Y = u((t, o) => {
|
|
118
118
|
const {
|
|
119
119
|
icon: i,
|
|
120
120
|
title: n,
|
|
@@ -124,54 +124,57 @@ const A = h.div`
|
|
|
124
124
|
},
|
|
125
125
|
buttonLink: c,
|
|
126
126
|
items: a,
|
|
127
|
-
buttonText:
|
|
127
|
+
buttonText: C,
|
|
128
128
|
limit: s = 3,
|
|
129
|
-
isLoading:
|
|
129
|
+
isLoading: N = !1,
|
|
130
130
|
getImage: f = () => {
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
},
|
|
132
|
+
readMoreText: v = "Read more"
|
|
133
|
+
} = t, M = T(), $ = R(() => /* @__PURE__ */ r(g, { children: M === !0 ? a == null ? void 0 : a.map((e, p) => /* @__PURE__ */ r(
|
|
134
|
+
b,
|
|
134
135
|
{
|
|
135
136
|
title: e == null ? void 0 : e.title,
|
|
136
137
|
imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
137
138
|
text: e == null ? void 0 : e.description,
|
|
138
139
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
140
|
+
readMoreText: v,
|
|
139
141
|
onCardClick: () => d(e == null ? void 0 : e.titleSlug)
|
|
140
142
|
},
|
|
141
143
|
p
|
|
142
144
|
)) : a == null ? void 0 : a.slice(0, s).map((e, p) => /* @__PURE__ */ r(
|
|
143
|
-
|
|
145
|
+
b,
|
|
144
146
|
{
|
|
145
147
|
title: e == null ? void 0 : e.title,
|
|
146
148
|
imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
147
149
|
text: e == null ? void 0 : e.description,
|
|
148
150
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
151
|
+
readMoreText: v,
|
|
149
152
|
onCardClick: () => d(e == null ? void 0 : e.titleSlug)
|
|
150
153
|
},
|
|
151
154
|
p
|
|
152
155
|
)) }), [a]);
|
|
153
|
-
return /* @__PURE__ */ m(
|
|
156
|
+
return /* @__PURE__ */ m(W, { ref: o, children: [
|
|
154
157
|
/* @__PURE__ */ m("div", { className: "regular-title", children: [
|
|
155
158
|
/* @__PURE__ */ m("div", { className: "regular-title-text", children: [
|
|
156
|
-
|
|
159
|
+
S(i) && /* @__PURE__ */ r("i", { className: i }),
|
|
157
160
|
/* @__PURE__ */ r("span", { children: n })
|
|
158
161
|
] }),
|
|
159
|
-
|
|
160
|
-
|
|
162
|
+
S(c) && /* @__PURE__ */ r(
|
|
163
|
+
z,
|
|
161
164
|
{
|
|
162
165
|
type: "button",
|
|
163
166
|
btnType: "tinted",
|
|
164
167
|
color: "gray",
|
|
165
168
|
onClick: () => l(c),
|
|
166
169
|
borderRadius: "curved",
|
|
167
|
-
children:
|
|
170
|
+
children: C
|
|
168
171
|
}
|
|
169
172
|
)
|
|
170
173
|
] }),
|
|
171
|
-
/* @__PURE__ */ r(
|
|
172
|
-
|
|
174
|
+
/* @__PURE__ */ r(E, { limit: s, children: /* @__PURE__ */ r(
|
|
175
|
+
G,
|
|
173
176
|
{
|
|
174
|
-
isLoading:
|
|
177
|
+
isLoading: N,
|
|
175
178
|
limit: s,
|
|
176
179
|
keyPrefix: "explore-landing",
|
|
177
180
|
children: $
|
|
@@ -180,5 +183,5 @@ const A = h.div`
|
|
|
180
183
|
] });
|
|
181
184
|
});
|
|
182
185
|
export {
|
|
183
|
-
|
|
186
|
+
Y as default
|
|
184
187
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),l=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-CtNoHdBj.cjs"),x=require("./useDetectMobile-D6d5LpdL.cjs"),m=require("./utils-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),l=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-CtNoHdBj.cjs"),x=require("./useDetectMobile-D6d5LpdL.cjs"),m=require("./utils-DhRHf5Ed.cjs"),w=require("./Button.cjs"),b=require("./index-BVaZWq6y.cjs"),j=u.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -3,9 +3,9 @@ import { forwardRef as p, Suspense as k } from "react";
|
|
|
3
3
|
import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as h } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import { u as C } from "./useDetectMobile-BC6EGaBc.js";
|
|
6
|
-
import { m as f, t as v } from "./utils-
|
|
6
|
+
import { m as f, t as v } from "./utils-BE-UlkKf.js";
|
|
7
7
|
import y from "./Button.js";
|
|
8
|
-
import { P as S } from "./index-
|
|
8
|
+
import { P as S } from "./index-Ca38iPjf.js";
|
|
9
9
|
const $ = g.div`
|
|
10
10
|
display: grid;
|
|
11
11
|
grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),c=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-CtNoHdBj.cjs"),q=require("./useDetectMobile-D6d5LpdL.cjs"),a=require("./utils-DhRHf5Ed.cjs"),$=require("./style-C571ywKV.cjs"),T=require("./Button.cjs"),B=require("./Link.cjs"),M=require("./index-BVaZWq6y.cjs"),R=require("./index-rYeYJwuL.cjs"),W=h.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
min-height: 10.375rem;
|
|
21
21
|
max-height: 10.375rem;
|
|
22
22
|
|
|
23
|
+
&:hover {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
23
27
|
& img {
|
|
24
28
|
max-width: 3.3125rem;
|
|
25
29
|
min-width: 3.3125rem;
|
|
@@ -73,4 +77,4 @@
|
|
|
73
77
|
color: var(--gray-700, #4e555f);
|
|
74
78
|
${a.truncateTextInRows(3)}
|
|
75
79
|
}
|
|
76
|
-
`,
|
|
80
|
+
`,I=c.forwardRef((i,o)=>{const{title:n,imageUrl:l,text:r,buttonText:m,onCardClick:s}=i;return e.jsxs(w,{ref:o,className:"blog-card",onClick:s,children:[e.jsxs(k,{children:[e.jsx("div",{className:"text-wr-title",children:n}),e.jsx("div",{className:"text-wr",children:r}),e.jsx(B,{color:"gray",onClick:s,children:m})]}),e.jsx(M.ProductImageWrapper,{src:l})]})}),P=c.forwardRef(({},i)=>e.jsxs(w,{className:"blog-card",children:[e.jsxs(k,{children:[e.jsx("div",{className:"skeleton-title"}),e.jsx("div",{className:"text-wr"}),e.jsx("div",{className:"skeleton-action"})]}),e.jsx("div",{className:"skeleton-img"})]})),_=({limit:i=3,isLoading:o=!1,keyPrefix:n})=>e.jsx(e.Fragment,{children:Array.from({length:i},(l,r)=>e.jsx(P,{isLoading:o},`${n}-skeleton-product-card-${r}`))}),z=({children:i,fallbackComponent:o=e.jsx(e.Fragment,{}),isLoading:n=!1,limit:l,keyPrefix:r})=>e.jsx(c.Suspense,{fallbackComponent:o,children:n===!0?e.jsx(_,{isLoading:n,limit:l,keyPrefix:r}):i}),b=c.memo(I),A=c.forwardRef((i,o)=>{const{icon:n,title:l,items:r,buttonText:m,limit:s=3,options:d,selectedOption:v=[],onButtonAction:y=()=>{},buttonLink:p,onSelectOption:x=()=>{},onSelectAll:S=()=>{},isLoading:C=!1,onSelectCard:u=()=>{}}=i,j=q.useDetectMobile(),N=c.useMemo(()=>e.jsx(e.Fragment,{children:j===!0?r==null?void 0:r.map((t,g)=>e.jsx(b,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>u(t)},g)):r==null?void 0:r.slice(0,s).map((t,g)=>e.jsx(b,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>u(t)},g))}),[r,j,s,u]);return e.jsxs($.TitleWithOptionsSectionWrapper,{ref:o,children:[e.jsxs("div",{className:"regular-title",children:[e.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(n)&&e.jsx("i",{className:n}),e.jsx("span",{children:l})]}),a.isDefinedNotEmptyString(p)&&e.jsx(T,{type:"button",btnType:"tinted",color:"gray",onClick:()=>y(p),borderRadius:"curved",children:m})]}),(d==null?void 0:d.length)>0&&e.jsx(R.SelectBar,{items:d,selectedIds:v,onRemove:t=>{x(t)},onSelect:t=>{x(t)},onSelectAll:S,labelKey:"name",valueKey:"code",noMargin:!0}),e.jsx(W,{limit:s,children:e.jsx(z,{isLoading:C,limit:s,keyPrefix:"explore-landing",children:N})})]})});module.exports=A;
|