@lanaco/lnc-react-ui 4.0.205 → 4.0.207
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/BREAKPOINTS.md +148 -0
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +6 -6
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +8 -8
- package/dist/ActionsToolbar.cjs +15 -4
- package/dist/ActionsToolbar.js +58 -46
- package/dist/AdBannerSection.cjs +4 -4
- package/dist/AdBannerSection.js +5 -5
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +12 -12
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +5 -5
- package/dist/BannerNextSection.cjs +2 -2
- package/dist/BannerNextSection.js +13 -13
- package/dist/BannerSectionBasic.cjs +4 -4
- package/dist/BannerSectionBasic.js +22 -22
- package/dist/BannerSectionCarousel.cjs +27 -6
- package/dist/BannerSectionCarousel.js +71 -50
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +13 -13
- package/dist/BannerSectionSimple.cjs +15 -15
- package/dist/BannerSectionSimple.js +40 -40
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +20 -20
- package/dist/BannerSectionWithListImage.cjs +6 -9
- package/dist/BannerSectionWithListImage.js +17 -20
- package/dist/BlogCardsSponsoredSection.cjs +7 -5
- package/dist/BlogCardsSponsoredSection.js +32 -30
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +2 -2
- package/dist/BlogExploreSection.cjs +4 -4
- package/dist/BlogExploreSection.js +60 -60
- package/dist/BlogImagePathSection.cjs +3 -14
- package/dist/BlogImagePathSection.js +27 -39
- package/dist/BlogListSection.cjs +6 -6
- package/dist/BlogListSection.js +32 -32
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +3 -3
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +3 -3
- package/dist/BlogSingleSection.cjs +3 -3
- package/dist/BlogSingleSection.js +12 -12
- package/dist/BlogsSectionDetailed.cjs +14 -6
- package/dist/BlogsSectionDetailed.js +53 -45
- package/dist/BlogsSectionLarge.cjs +13 -5
- package/dist/BlogsSectionLarge.js +48 -40
- package/dist/BlogsSectionSimple.cjs +14 -9
- package/dist/BlogsSectionSimple.js +43 -38
- package/dist/BlogsSectionSimpleCentered.cjs +17 -8
- package/dist/BlogsSectionSimpleCentered.js +68 -59
- package/dist/BlogsSectionWithFilters.cjs +16 -11
- package/dist/BlogsSectionWithFilters.js +43 -38
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +13 -13
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +16 -16
- 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 +15 -15
- package/dist/CalorieCalculatorSection.js +84 -84
- package/dist/{CategorySimpleCard-COGlTj06.cjs → CategorySimpleCard-CIBvknos.cjs} +3 -3
- package/dist/{CategorySimpleCard-Em84kZzQ.js → CategorySimpleCard-CkSwvJRw.js} +8 -8
- 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 +14 -14
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +5 -5
- package/dist/ContactSection.cjs +4 -4
- package/dist/ContactSection.js +72 -72
- package/dist/CustomLoanMapSection.cjs +3 -3
- package/dist/CustomLoanMapSection.js +67 -67
- package/dist/{CustomStyles-C86XQqBE.cjs → CustomStyles-2TQQSwtU.cjs} +1 -1
- package/dist/{CustomStyles-DtWxboEM.js → CustomStyles-DR4WuDUN.js} +1 -1
- package/dist/{DailyMotion-CpZExcrg.cjs → DailyMotion-BPdBW5Yv.cjs} +1 -1
- package/dist/{DailyMotion-BBcJkMo_.js → DailyMotion-P9S-WhTX.js} +1 -1
- package/dist/DateInput.cjs +6 -6
- package/dist/DateInput.js +646 -645
- 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/DetailedProductsInfinitiveSection.cjs +10 -4
- package/dist/DetailedProductsInfinitiveSection.js +71 -65
- package/dist/DetailedProductsSection.cjs +7 -3
- package/dist/DetailedProductsSection.js +55 -51
- 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 +13 -13
- 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 +7 -7
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +8 -8
- package/dist/{Facebook-DoKw-XxT.cjs → Facebook-C8L2KR4O.cjs} +1 -1
- package/dist/{Facebook-BSWPEXjA.js → Facebook-vhbBr0rd.js} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +52 -52
- package/dist/FeedbackSection.cjs +3 -3
- package/dist/FeedbackSection.js +15 -15
- package/dist/FieldOfInterestsMasonrySection.cjs +18 -12
- package/dist/FieldOfInterestsMasonrySection.js +107 -117
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +13 -7
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +64 -58
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +15 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.js +42 -36
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/{FilePlayer-D9az_lc_.cjs → FilePlayer-BVFgHY_f.cjs} +1 -1
- package/dist/{FilePlayer-BtGpIWnK.js → FilePlayer-CXTLAokk.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 +14 -8
- package/dist/GeneralWithTagsCardsSection.js +31 -25
- package/dist/GiftCardsSection.cjs +15 -7
- package/dist/GiftCardsSection.js +44 -36
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +4 -4
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +4 -4
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/{Kaltura-CK6JHUZC.cjs → Kaltura-C2fRoaEg.cjs} +1 -1
- package/dist/{Kaltura-BDqlEQpd.js → Kaltura-CRGK2EP7.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 +5 -5
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +9 -9
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +3 -3
- package/dist/LoanCalculatorSection.js +17 -17
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +13 -6
- package/dist/LocationSearchSection.js +34 -27
- package/dist/MasonryGeneralCardsSection.cjs +13 -9
- package/dist/MasonryGeneralCardsSection.js +34 -30
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +14 -14
- package/dist/{Mixcloud-zAh6j7Ha.js → Mixcloud-Cn5M-EIT.js} +1 -1
- package/dist/{Mixcloud-C1Boh2Bm.cjs → Mixcloud-D09BQNOt.cjs} +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/{Mux-C6TwZeaq.cjs → Mux-C-xD7crc.cjs} +1 -1
- package/dist/{Mux-BGTG_Tvc.js → Mux-C6szci3w.js} +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +9 -9
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +7 -7
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +5 -5
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +8 -8
- package/dist/OverlayGeneralCardsSection.cjs +19 -31
- package/dist/OverlayGeneralCardsSection.js +51 -63
- package/dist/PartnerBannerSection.cjs +2 -2
- package/dist/PartnerBannerSection.js +2 -2
- package/dist/PartnerBrandsSection.cjs +2 -2
- package/dist/PartnerBrandsSection.js +24 -17
- package/dist/PartnerCardsSection.cjs +3 -3
- package/dist/PartnerCardsSection.js +18 -18
- package/dist/PartnerStatsSection.cjs +2 -2
- package/dist/PartnerStatsSection.js +3 -3
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +19 -19
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +20 -10
- package/dist/ProductsWithBannerSection.js +79 -69
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +5 -5
- package/dist/QuattroCardsSection.cjs +8 -6
- package/dist/QuattroCardsSection.js +19 -17
- package/dist/QuizSection.cjs +9 -9
- package/dist/QuizSection.js +56 -56
- 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 +24 -16
- package/dist/ReviewsSection.js +56 -48
- package/dist/SalesCampaignsSection.cjs +25 -21
- package/dist/SalesCampaignsSection.js +248 -241
- package/dist/{SearchSection-DAaMecR4.js → SearchSection-BEYnWPSr.js} +69 -69
- package/dist/{SearchSection-B94YN_6P.cjs → SearchSection-DUY61r3k.cjs} +6 -6
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +3 -3
- package/dist/SeparatorSection.cjs +3 -3
- package/dist/SeparatorSection.js +4 -4
- package/dist/ShopCardsSection.cjs +11 -5
- package/dist/ShopCardsSection.js +40 -34
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +9 -5
- package/dist/SimpleCategoriesSection.js +61 -57
- package/dist/SimpleProductsSection.cjs +44 -11
- package/dist/SimpleProductsSection.js +100 -67
- package/dist/{SoundCloud-C6R6E6Zc.cjs → SoundCloud-BsL6Onq6.cjs} +1 -1
- package/dist/{SoundCloud-lO8wg_0s.js → SoundCloud-Cfaj1Ze1.js} +1 -1
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.cjs +3 -3
- package/dist/StatsSection.js +11 -11
- package/dist/{Streamable-Dwa5ZEK4.js → Streamable-CG8_-_w7.js} +1 -1
- package/dist/{Streamable-DZO95CiT.cjs → Streamable-DFtyk9Dt.cjs} +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 +54 -49
- package/dist/Table.js +417 -401
- package/dist/TableView.cjs +10 -2
- package/dist/TableView.js +84 -75
- 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 +4 -4
- package/dist/ThemeProvider.js +11 -10
- 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/ToggleSection.cjs +7 -7
- package/dist/ToggleSection.js +38 -38
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +3 -3
- package/dist/{Twitch-B17oKtD0.cjs → Twitch-BIUEEDiE.cjs} +1 -1
- package/dist/{Twitch-C73-dwWo.js → Twitch-CbU_0Tx9.js} +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +7 -7
- package/dist/UrgentSaleProductsSection.cjs +10 -4
- package/dist/UrgentSaleProductsSection.js +67 -61
- package/dist/{Vidyard-s1MMcaRm.cjs → Vidyard-QkjVIros.cjs} +1 -1
- package/dist/{Vidyard-B6GdBHsM.js → Vidyard-S6Fl_F78.js} +1 -1
- package/dist/{Vimeo-kzHz4Gco.js → Vimeo-5bkeYCV4.js} +1 -1
- package/dist/{Vimeo-J1l_SU2E.cjs → Vimeo-B5jsifNT.cjs} +1 -1
- package/dist/{Wistia-CudQyDHM.cjs → Wistia-dpbMmx23.cjs} +1 -1
- package/dist/{Wistia-w4jnqd7y.js → Wistia-gOZBV0XZ.js} +1 -1
- package/dist/{YouTube-BAYKouHS.cjs → YouTube-BfZRCB6O.cjs} +1 -1
- package/dist/{YouTube-BKyipPZx.js → YouTube-XoIB4ATQ.js} +1 -1
- package/dist/breakpoints-CcVm-gVm.cjs +1 -0
- package/dist/breakpoints-ff0SIcV3.js +91 -0
- package/dist/{index-u_XFwsvc.js → index-9KyU46J0.js} +11 -9
- package/dist/{index-CSgGox95.cjs → index-B9c6y2J5.cjs} +3 -3
- package/dist/{index-CS4w87SW.cjs → index-BEgD9vNo.cjs} +9 -9
- package/dist/{index-BC2PHcI1.js → index-BWeXujWl.js} +10 -10
- package/dist/index-B_ilx3wM.cjs +16 -0
- package/dist/{index-B22BZVBG.js → index-BvMY2TbK.js} +1 -1
- package/dist/{index-CwMCk9wV.js → index-BzSWu-7v.js} +67 -67
- package/dist/{index-TIqKd2Dv.js → index-C-uOIDDa.js} +2 -2
- package/dist/{index-bihqNqQk.js → index-C4HycAPS.js} +6 -6
- package/dist/{index-BWE-RCPy.cjs → index-CBZ-jNah.cjs} +4 -4
- package/dist/{index-D_5jNP-o.cjs → index-CUaeb_TU.cjs} +5 -5
- package/dist/{index-DK8dqEUQ.js → index-CoQ9APCD.js} +11 -11
- package/dist/{index-BAJkosVg.cjs → index-CsTfXxpp.cjs} +2 -2
- package/dist/{index-D0JDnm9b.cjs → index-Dc0EEBRW.cjs} +4 -4
- package/dist/{index-uwl7BjRF.cjs → index-DsINTjQk.cjs} +1 -1
- package/dist/{index-Cm414y95.js → index-L_Va5-wK.js} +13 -13
- package/dist/{index-CBMsUFkS.js → index-hC-E71GE.js} +11 -11
- package/dist/{index-BFc3nxYZ.cjs → index-of6WydGq.cjs} +4 -2
- package/dist/{index-BASX-BjS.js → index-rYUwBlpp.js} +63 -63
- package/dist/{index-D0IYt1s3.cjs → index-uCWKRzoS.cjs} +2 -2
- package/dist/{index-CRk3vcd4.cjs → index-vQOR22Py.cjs} +4 -4
- package/dist/{index-D-86mDtn.js → index-yARaIaLj.js} +29 -29
- package/dist/index.cjs +1 -1
- package/dist/index.js +213 -194
- package/dist/{style-BTTXJFJN.cjs → style-AYc9hnFj.cjs} +14 -2
- package/dist/{style-neMbLWE6.js → style-BUyFad_y.js} +4 -4
- package/dist/{style-tw6KjI2J.js → style-Bq3rMbnN.js} +16 -4
- package/dist/{style-B4kAj6YU.cjs → style-DC05rdyx.cjs} +5 -5
- package/dist/{tag-Dm8CW4TM.js → tag-Bi8gg6hJ.js} +12 -12
- package/dist/{tag-UQjq2_Ba.cjs → tag-DSnhWWHE.cjs} +5 -5
- package/dist/{utils-DtEfC-TX.js → theme-Befg4g_L.js} +19 -378
- package/dist/theme-Q3WOGKWQ.cjs +1 -0
- package/dist/{useDetectMobile-Bkvj0VMa.js → useDetectMobile-CcVo3PNi.js} +1 -1
- package/dist/useDetectMobile-DYV6V1yw.cjs +1 -0
- package/dist/utils-B2fsQ6PS.js +334 -0
- package/dist/utils-CITgSxXe.cjs +51 -0
- package/package.json +1 -1
- package/dist/consts-BuFChS64.js +0 -7
- package/dist/consts-goSZX3xP.cjs +0 -1
- package/dist/index-D-3I_Ppj.cjs +0 -16
- package/dist/useDetectMobile-zkbzoOGV.cjs +0 -1
- package/dist/utils-RnrgDDZP.cjs +0 -51
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
2
|
+
import { forwardRef as $, useRef as R, memo as I, useMemo as C } from "react";
|
|
3
|
+
import { n as z, q as U, s as B, v as S, l as b } from "./utils-B2fsQ6PS.js";
|
|
4
4
|
import v from "./Icon.js";
|
|
5
|
-
import { B as
|
|
6
|
-
import { P as
|
|
7
|
-
import { s as
|
|
8
|
-
import {
|
|
5
|
+
import { B as O } from "./style-BUyFad_y.js";
|
|
6
|
+
import { P as T } from "./index-BvMY2TbK.js";
|
|
7
|
+
import { s as j } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
|
+
import { d as y } from "./breakpoints-ff0SIcV3.js";
|
|
9
9
|
import P from "./Button.js";
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
10
|
+
import { S as W } from "./index-BWeXujWl.js";
|
|
11
|
+
const D = j.a`
|
|
12
12
|
text-decoration: none;
|
|
13
13
|
color: var(--gray-950);
|
|
14
14
|
display: flex;
|
|
@@ -75,7 +75,7 @@ const E = $.a`
|
|
|
75
75
|
font-weight: 600;
|
|
76
76
|
line-height: 1.5rem;
|
|
77
77
|
letter-spacing: 0.1px;
|
|
78
|
-
${
|
|
78
|
+
${z(2)}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
& .wrapper__tags {
|
|
@@ -107,7 +107,7 @@ const E = $.a`
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
@media
|
|
110
|
+
@media ${y("S")} {
|
|
111
111
|
flex-direction: column;
|
|
112
112
|
padding: 0;
|
|
113
113
|
|
|
@@ -133,7 +133,7 @@ const E = $.a`
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
`,
|
|
136
|
+
`, M = $(
|
|
137
137
|
({
|
|
138
138
|
title: t,
|
|
139
139
|
imageUrl: m,
|
|
@@ -149,10 +149,10 @@ const E = $.a`
|
|
|
149
149
|
metadata: o,
|
|
150
150
|
titleSlug: g,
|
|
151
151
|
LinkComponent: _
|
|
152
|
-
},
|
|
153
|
-
const w = _ || "a", i =
|
|
152
|
+
}, N) => {
|
|
153
|
+
const w = _ || "a", i = R();
|
|
154
154
|
return /* @__PURE__ */ a(
|
|
155
|
-
|
|
155
|
+
D,
|
|
156
156
|
{
|
|
157
157
|
ref: i,
|
|
158
158
|
isSponsored: l,
|
|
@@ -163,24 +163,24 @@ const E = $.a`
|
|
|
163
163
|
..._ ? { to: `/blog/${g}` } : { href: `/blog/${g}` },
|
|
164
164
|
children: [
|
|
165
165
|
l && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(v, { icon: " mng-lnc-paw", sizeInUnits: "1.5rem" }) }),
|
|
166
|
-
/* @__PURE__ */ r(
|
|
166
|
+
/* @__PURE__ */ r(T, { src: m, className: "wrapper__image" }),
|
|
167
167
|
/* @__PURE__ */ a("div", { className: "wrapper__content", children: [
|
|
168
168
|
/* @__PURE__ */ a("div", { className: "wrapper__subcontent", children: [
|
|
169
169
|
/* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
|
|
170
|
-
/* @__PURE__ */ r("div", { className: "wrapper__tags", children: s && (s == null ? void 0 : s.map((e, u) => /* @__PURE__ */ r(
|
|
170
|
+
/* @__PURE__ */ r("div", { className: "wrapper__tags", children: s && (s == null ? void 0 : s.map((e, u) => /* @__PURE__ */ r(O, { color: e == null ? void 0 : e.color, children: e == null ? void 0 : e.name }, u))) })
|
|
171
171
|
] }),
|
|
172
172
|
/* @__PURE__ */ a("div", { className: "wrapper__info", children: [
|
|
173
|
-
/* @__PURE__ */ r("div", { className: "info__text", children: `${
|
|
173
|
+
/* @__PURE__ */ r("div", { className: "info__text", children: `${U(
|
|
174
174
|
d
|
|
175
|
-
)} • ${
|
|
175
|
+
)} • ${B(c, h)}` }),
|
|
176
176
|
/* @__PURE__ */ a("div", { className: "info__text", children: [
|
|
177
177
|
/* @__PURE__ */ a("div", { children: [
|
|
178
178
|
/* @__PURE__ */ r(v, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
|
|
179
|
-
|
|
179
|
+
S(n)
|
|
180
180
|
] }),
|
|
181
181
|
/* @__PURE__ */ a("div", { children: [
|
|
182
182
|
/* @__PURE__ */ r(v, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
|
|
183
|
-
|
|
183
|
+
S(p)
|
|
184
184
|
] })
|
|
185
185
|
] })
|
|
186
186
|
] })
|
|
@@ -189,7 +189,7 @@ const E = $.a`
|
|
|
189
189
|
}
|
|
190
190
|
);
|
|
191
191
|
}
|
|
192
|
-
),
|
|
192
|
+
), q = j.div`
|
|
193
193
|
display: flex;
|
|
194
194
|
flex-direction: column;
|
|
195
195
|
align-items: flex-start;
|
|
@@ -207,7 +207,7 @@ const E = $.a`
|
|
|
207
207
|
|
|
208
208
|
& .title__text {
|
|
209
209
|
color: var(--gray-950, #14161a);
|
|
210
|
-
${
|
|
210
|
+
${z(2)}
|
|
211
211
|
|
|
212
212
|
font-size: 1.5rem;
|
|
213
213
|
font-style: normal;
|
|
@@ -259,7 +259,7 @@ const E = $.a`
|
|
|
259
259
|
width: 100%;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
@media
|
|
262
|
+
@media ${y("S")} {
|
|
263
263
|
gap: 1.25rem;
|
|
264
264
|
|
|
265
265
|
& .wrapper__title {
|
|
@@ -267,13 +267,15 @@ const E = $.a`
|
|
|
267
267
|
font-size: 1.375rem;
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
+
}
|
|
270
271
|
|
|
272
|
+
@media ${y("XS")} {
|
|
271
273
|
& .wrapper__cards {
|
|
272
274
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
273
275
|
gap: 1.5rem;
|
|
274
276
|
}
|
|
275
277
|
}
|
|
276
|
-
`,
|
|
278
|
+
`, E = I(M), A = $(
|
|
277
279
|
({
|
|
278
280
|
title: t,
|
|
279
281
|
subtitle: m,
|
|
@@ -291,11 +293,11 @@ const E = $.a`
|
|
|
291
293
|
},
|
|
292
294
|
componentName: g,
|
|
293
295
|
LinkComponent: _
|
|
294
|
-
},
|
|
295
|
-
const w =
|
|
296
|
+
}, N) => {
|
|
297
|
+
const w = C(() => {
|
|
296
298
|
var i;
|
|
297
299
|
return (i = n == null ? void 0 : n.slice(0, 4)) == null ? void 0 : i.map((e, u) => /* @__PURE__ */ r(
|
|
298
|
-
|
|
300
|
+
E,
|
|
299
301
|
{
|
|
300
302
|
title: e == null ? void 0 : e.title,
|
|
301
303
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
@@ -306,7 +308,7 @@ const E = $.a`
|
|
|
306
308
|
numberOfLikes: e == null ? void 0 : e.numberOfLikes,
|
|
307
309
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
308
310
|
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
309
|
-
onSelectCard: (
|
|
311
|
+
onSelectCard: (X, k) => l == null ? void 0 : l(e, k),
|
|
310
312
|
imageUrl: o(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
311
313
|
metadata: { name: g, accessor: e == null ? void 0 : e.accessor },
|
|
312
314
|
LinkComponent: _
|
|
@@ -314,7 +316,7 @@ const E = $.a`
|
|
|
314
316
|
`blog-card-sponsored__${u + 1}`
|
|
315
317
|
));
|
|
316
318
|
}, [n]);
|
|
317
|
-
return /* @__PURE__ */ a(
|
|
319
|
+
return /* @__PURE__ */ a(q, { ref: N, children: [
|
|
318
320
|
/* @__PURE__ */ a("div", { className: "wrapper__heading", children: [
|
|
319
321
|
/* @__PURE__ */ a("div", { className: "wrapper__title", children: [
|
|
320
322
|
t && /* @__PURE__ */ a("div", { className: "title__text", children: [
|
|
@@ -339,7 +341,7 @@ const E = $.a`
|
|
|
339
341
|
m && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: m })
|
|
340
342
|
] }),
|
|
341
343
|
/* @__PURE__ */ r(
|
|
342
|
-
|
|
344
|
+
W,
|
|
343
345
|
{
|
|
344
346
|
isLoading: f,
|
|
345
347
|
keyPrefix: "blog-cards-sponsored-skeleton",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),s=require("react"),n=require("./CategorySimpleCard-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),s=require("react"),n=require("./CategorySimpleCard-CIBvknos.cjs"),d=require("./style-AYc9hnFj.cjs"),g=s.memo(n.CategorySimpleCard),l=s.forwardRef(({items:r,onSelectCard:a=()=>{},isHighlight:u=!1},t)=>{const c=s.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,m)=>i.jsx(g,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>a==null?void 0:a(e==null?void 0:e.uuid)},m))},[r]);return i.jsx(d.Wrapper,{ref:t,className:u?"highlight":"",children:i.jsx("div",{className:"wrapper__grid",children:c})})});module.exports=l;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { memo as g, forwardRef as u, useMemo as t } from "react";
|
|
3
|
-
import { C as f } from "./CategorySimpleCard-
|
|
4
|
-
import { W as l } from "./style-
|
|
3
|
+
import { C as f } from "./CategorySimpleCard-CkSwvJRw.js";
|
|
4
|
+
import { W as l } from "./style-Bq3rMbnN.js";
|
|
5
5
|
const n = g(f), w = u(
|
|
6
6
|
({
|
|
7
7
|
items: a,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),x=require("react"),se=require("./useDetectMobile-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),x=require("react"),se=require("./useDetectMobile-DYV6V1yw.cjs"),M=require("./utils-CITgSxXe.cjs"),ce=require("./TextInput.cjs"),q=require("./Icon.cjs"),oe=require("./Link.cjs"),L=require("./IconButton.cjs"),V=require("./DropdownMenu.cjs"),W=require("./DropdownItem.cjs"),le=require("./tag-DSnhWWHE.cjs"),de=require("./BlogProductCardsSection.cjs"),F=require("./emotion-styled.browser.esm-BtEseadx.cjs"),me=require("./index-DsINTjQk.cjs"),T=require("./BlogListSection.cjs"),_e=require("./breakpoints-CcVm-gVm.cjs"),he=F.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`,ue=x.forwardRef(({perPageOptions:o=[{code:10,name:"Show 10 items"},{code:25,name:"Show 25 items"},{code:50,name:"Show 50 items"}],perPage:h,handlePerPage:v=()=>{},page:a=1,handlePage:l=()=>{},totalPage:t},_)=>{var f,d;const u=()=>{a>1&&(l==null||l(a-1))},g=()=>{a<t&&(l==null||l(a+1))},w=()=>{const r=[];if(t<=7)for(let i=1;i<=t;i++)r.push(i);else a<=3?r.push(1,2,3,"...",t):a>=t-2?r.push(1,"...",t-2,t-1,t):r.push(1,2,3,"...",t);return r==null?void 0:r.map((i,p)=>i==="..."?e.jsx("div",{className:"pagination__page ellipsis",children:i},`pagination-ellipsis__${p}`):e.jsx("div",{onClick:()=>l(i),className:`pagination__page ${a===i?"active":""}`,children:i},`pagination-page__${p}`))};return e.jsxs(he,{className:"pagination",children:[e.jsx(V,{color:"neutral",control:((f=o==null?void 0:o.find(r=>(r==null?void 0:r.code)===h))==null?void 0:f.name)||((d=o[0])==null?void 0:d.name),placement:"bottom",zIndex:1001,className:"pagination__per-page",children:o==null?void 0:o.map((r,i)=>e.jsx(W,{active:(r==null?void 0:r.code)===(h==null?void 0:h.code),className:"sort-by__item",onClick:()=>v(r),children:r==null?void 0:r.name},`blog-epxlore-section-per-page-option__${i+1}`))}),e.jsxs("div",{className:"pagination__pages",children:[e.jsx("div",{className:`pagination__page ${a===1?"disabled":""}`,onClick:u,children:e.jsx(q,{icon:" mng-lnc-chevron--left"})}),w(),e.jsx("div",{className:`pagination__page ${a===t?"disabled":""}`,onClick:g,children:e.jsx(q,{icon:" mng-lnc-chevron--right"})})]})]})}),fe=
|
|
82
|
+
`,ue=x.forwardRef(({perPageOptions:o=[{code:10,name:"Show 10 items"},{code:25,name:"Show 25 items"},{code:50,name:"Show 50 items"}],perPage:h,handlePerPage:v=()=>{},page:a=1,handlePage:l=()=>{},totalPage:t},_)=>{var f,d;const u=()=>{a>1&&(l==null||l(a-1))},g=()=>{a<t&&(l==null||l(a+1))},w=()=>{const r=[];if(t<=7)for(let i=1;i<=t;i++)r.push(i);else a<=3?r.push(1,2,3,"...",t):a>=t-2?r.push(1,"...",t-2,t-1,t):r.push(1,2,3,"...",t);return r==null?void 0:r.map((i,p)=>i==="..."?e.jsx("div",{className:"pagination__page ellipsis",children:i},`pagination-ellipsis__${p}`):e.jsx("div",{onClick:()=>l(i),className:`pagination__page ${a===i?"active":""}`,children:i},`pagination-page__${p}`))};return e.jsxs(he,{className:"pagination",children:[e.jsx(V,{color:"neutral",control:((f=o==null?void 0:o.find(r=>(r==null?void 0:r.code)===h))==null?void 0:f.name)||((d=o[0])==null?void 0:d.name),placement:"bottom",zIndex:1001,className:"pagination__per-page",children:o==null?void 0:o.map((r,i)=>e.jsx(W,{active:(r==null?void 0:r.code)===(h==null?void 0:h.code),className:"sort-by__item",onClick:()=>v(r),children:r==null?void 0:r.name},`blog-epxlore-section-per-page-option__${i+1}`))}),e.jsxs("div",{className:"pagination__pages",children:[e.jsx("div",{className:`pagination__page ${a===1?"disabled":""}`,onClick:u,children:e.jsx(q,{icon:" mng-lnc-chevron--left"})}),w(),e.jsx("div",{className:`pagination__page ${a===t?"disabled":""}`,onClick:g,children:e.jsx(q,{icon:" mng-lnc-chevron--right"})})]})]})}),fe=F.styled.div`
|
|
83
83
|
display: flex;
|
|
84
84
|
align-items: flex-start;
|
|
85
85
|
gap: 2rem;
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
@media
|
|
303
|
+
@media ${_e.down("S")} {
|
|
304
304
|
flex-direction: column;
|
|
305
305
|
|
|
306
306
|
& .landing__main-content {
|
|
@@ -352,4 +352,4 @@
|
|
|
352
352
|
display: none;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
`,xe=x.forwardRef(({mainTitle:o,sideTitle:h,tags:v,selectedTag:a,handleSelectTag:l=()=>{},blogs:t,miniBlogs:_,products:u,blogsLoading:g=!1,productsLoading:w=!1,sortingOptions:f,sortBy:d,handleSortBy:r=()=>{},allTagText:i="All",searchPlaceholderText:p="Search blogs",timeToReadText:C="{0} min read",getBlogImageUrl:b=()=>{},handleSelectBlog:y=()=>{},handleSelectBlogTag:z=()=>{},handleShareBlog:$=()=>{},showAllButtonLink:
|
|
355
|
+
`,xe=x.forwardRef(({mainTitle:o,sideTitle:h,tags:v,selectedTag:a,handleSelectTag:l=()=>{},blogs:t,miniBlogs:_,products:u,blogsLoading:g=!1,productsLoading:w=!1,sortingOptions:f,sortBy:d,handleSortBy:r=()=>{},allTagText:i="All",searchPlaceholderText:p="Search blogs",timeToReadText:C="{0} min read",getBlogImageUrl:b=()=>{},handleSelectBlog:y=()=>{},handleSelectBlogTag:z=()=>{},handleShareBlog:$=()=>{},showAllButtonLink:R,showAllButtonText:E="Show all products",viewAllButtonText:H="View all (11)",handleViewAll:G=()=>{},handleShowAll:J=()=>{},handleSelectProduct:K=()=>{},getProductImageUrl:Q=()=>{},page:U,handlePage:j=()=>{},perPage:X,handlePerPage:Y=()=>{},totalPage:N,perPageOptions:Z,handleSearch:O=()=>{},onBookmark:D=()=>{},bookmarkComponent:A=e.jsx(e.Fragment,{}),componentName:k,LinkComponent:S},B)=>{const P=n=>{document.getElementById("landing__container").scrollIntoView({behavior:"smooth",block:"start"}),j==null||j(n)},s=x.useRef(null),ee=se.useDetectMobile(),[m,ne]=x.useState({arrowsVisible:!1,leftArrowDisabled:!1,rightArrowDisabled:!1});x.useEffect(()=>{const n=s==null?void 0:s.current;if(!n)return;const c=()=>{const ie=n.scrollWidth-n.clientWidth;ne(ae=>({...ae,arrowsVisible:n.clientWidth<n.scrollWidth,leftArrowDisabled:n.scrollLeft<=0,rightArrowDisabled:n.scrollLeft>=ie}))},I=new ResizeObserver(c);return I.observe(n),c(),n.addEventListener("scroll",c),()=>{I.disconnect(),n.removeEventListener("scroll",c)}},[]);const te=()=>{var n;(n=s==null?void 0:s.current)==null||n.scrollBy({left:100,behavior:"smooth"})},re=()=>{var n;(n=s==null?void 0:s.current)==null||n.scrollBy({left:-100,behavior:"smooth"})};return e.jsxs(fe,{ref:B,id:"landing__container",children:[e.jsxs("div",{className:"landing__main-content",children:[e.jsxs("div",{className:"main-content__heading",children:[e.jsx("div",{className:"main-content__title",children:o}),!ee&&(m==null?void 0:m.arrowsVisible)&&e.jsxs("div",{className:"main-content__tags-nav",children:[e.jsx(L,{icon:"chevron-left",borderRadius:"curved",btnType:"tinted",color:"neutral",disabled:m==null?void 0:m.leftArrowDisabled,className:"main-content__tag-nav",onClick:re}),e.jsx(L,{icon:"chevron-right",borderRadius:"curved",btnType:"tinted",color:"neutral",disabled:m==null?void 0:m.rightArrowDisabled,className:"main-content__tag-nav",onClick:te})]})]}),v&&e.jsx(le.FaqSectionTags,{ref:s,tags:v,allTagText:i,selectedTagCode:a,onSelectTag:l}),e.jsxs("div",{className:"main-content__actions",children:[e.jsx(ce,{className:"main-content__search",placeholder:p,debounceTime:200,prefix:e.jsx(q,{icon:" mng-lnc-search",sizeInUnits:"1.25rem",className:"main-content__search-prefix"}),color:"neutral",onChange:O}),e.jsx(V,{color:"neutral",control:d==null?void 0:d.name,zIndex:1001,className:"main-content__sort-by",children:f==null?void 0:f.map((n,c)=>e.jsx(W,{active:(n==null?void 0:n.code)===(d==null?void 0:d.code),className:"sort-by__item",onClick:()=>r(n),children:n==null?void 0:n.name},`blog-epxlore-section-sorting-option__${c+1}`))})]}),e.jsxs("div",{className:"main-content__items",children:[t&&(t==null?void 0:t.length)>0&&e.jsx(T,{timeToReadText:C,items:t==null?void 0:t.slice(0,5),isLoading:g,getImage:b,onSelectCard:y,onSelectOption:z,onShare:$,onBookmark:D,bookmarkComponent:A,componentName:k,LinkComponent:S}),e.jsx("div",{className:"main-content__divider"}),u&&(u==null?void 0:u.length)>0&&e.jsx(de,{buttonText:E,buttonLink:R,onButtonAction:J,onSelectCard:K,items:u,isLoading:w,getImage:Q,isHighlight:!0,componentName:k,LinkComponent:S}),e.jsx("div",{className:"main-content__divider"}),t&&(t==null?void 0:t.length)>0&&e.jsx(T,{timeToReadText:C,items:t==null?void 0:t.slice(5),isLoading:g,getImage:b,onSelectCard:y,onSelectOption:z,onShare:$,onBookmark:D,bookmarkComponent:A,componentName:k,LinkComponent:S})]}),N&&N>1&&e.jsx(ue,{perPageOptions:Z,perPage:X,handlePerPage:Y,page:U,handlePage:P,totalPage:N})]}),e.jsxs("div",{className:"landing__side-content",children:[h&&e.jsx("div",{className:"side-content__title",children:h}),_&&(_==null?void 0:_.length)>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"side-content__items",children:_==null?void 0:_.map((n,c)=>e.jsx(x.Fragment,{children:e.jsxs("div",{className:"side-content__item",onClick:()=>y(n),children:[e.jsx(me.ProductImageWrapper,{src:b(n==null?void 0:n.imageUrl,n==null?void 0:n.uuid)||null,alt:`Mini blog ${c+1}`,className:"item__image"}),e.jsxs("div",{className:"item__content",children:[e.jsx("div",{className:"item__title",children:n==null?void 0:n.title}),e.jsx("div",{className:"item__description",children:M.formatLocaleDateString(n==null?void 0:n.publishedAt)})]})]})},`mini_blg_${c}`))}),e.jsx(oe,{onClick:G,className:"side-content__link",children:H})]})]})]})});module.exports=xe;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as a, jsx as n, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { u as me } from "./useDetectMobile-
|
|
4
|
-
import {
|
|
1
|
+
import { jsxs as a, jsx as n, Fragment as I } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as W, useRef as oe, useState as le, useEffect as se, Fragment as de } from "react";
|
|
3
|
+
import { u as me } from "./useDetectMobile-CcVo3PNi.js";
|
|
4
|
+
import { n as he, q as _e } from "./utils-B2fsQ6PS.js";
|
|
5
5
|
import fe from "./TextInput.js";
|
|
6
6
|
import z from "./Icon.js";
|
|
7
7
|
import ue from "./Link.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { F as ve } from "./tag-
|
|
8
|
+
import F from "./IconButton.js";
|
|
9
|
+
import M from "./DropdownMenu.js";
|
|
10
|
+
import q from "./DropdownItem.js";
|
|
11
|
+
import { F as ve } from "./tag-Bi8gg6hJ.js";
|
|
12
12
|
import pe from "./BlogProductCardsSection.js";
|
|
13
|
-
import { s as
|
|
14
|
-
import { P as ge } from "./index-
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
const we =
|
|
13
|
+
import { s as E } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
14
|
+
import { P as ge } from "./index-BvMY2TbK.js";
|
|
15
|
+
import V from "./BlogListSection.js";
|
|
16
|
+
import { d as xe } from "./breakpoints-ff0SIcV3.js";
|
|
17
|
+
const we = E.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
justify-content: space-between;
|
|
20
20
|
align-items: center;
|
|
@@ -95,7 +95,7 @@ const we = q.div`
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
`, be =
|
|
98
|
+
`, be = W(
|
|
99
99
|
({
|
|
100
100
|
perPageOptions: s = [
|
|
101
101
|
{ code: 10, name: "Show 10 items" },
|
|
@@ -109,7 +109,7 @@ const we = q.div`
|
|
|
109
109
|
handlePage: d = () => {
|
|
110
110
|
},
|
|
111
111
|
totalPage: t
|
|
112
|
-
},
|
|
112
|
+
}, _) => {
|
|
113
113
|
var v, m;
|
|
114
114
|
const u = () => {
|
|
115
115
|
c > 1 && (d == null || d(c - 1));
|
|
@@ -141,7 +141,7 @@ const we = q.div`
|
|
|
141
141
|
};
|
|
142
142
|
return /* @__PURE__ */ a(we, { className: "pagination", children: [
|
|
143
143
|
/* @__PURE__ */ n(
|
|
144
|
-
|
|
144
|
+
M,
|
|
145
145
|
{
|
|
146
146
|
color: "neutral",
|
|
147
147
|
control: ((v = s == null ? void 0 : s.find((r) => (r == null ? void 0 : r.code) === f)) == null ? void 0 : v.name) || ((m = s[0]) == null ? void 0 : m.name),
|
|
@@ -149,7 +149,7 @@ const we = q.div`
|
|
|
149
149
|
zIndex: 1001,
|
|
150
150
|
className: "pagination__per-page",
|
|
151
151
|
children: s == null ? void 0 : s.map((r, i) => /* @__PURE__ */ n(
|
|
152
|
-
|
|
152
|
+
q,
|
|
153
153
|
{
|
|
154
154
|
active: (r == null ? void 0 : r.code) === (f == null ? void 0 : f.code),
|
|
155
155
|
className: "sort-by__item",
|
|
@@ -181,7 +181,7 @@ const we = q.div`
|
|
|
181
181
|
] })
|
|
182
182
|
] });
|
|
183
183
|
}
|
|
184
|
-
), ye =
|
|
184
|
+
), ye = E.div`
|
|
185
185
|
display: flex;
|
|
186
186
|
align-items: flex-start;
|
|
187
187
|
gap: 2rem;
|
|
@@ -387,7 +387,7 @@ const we = q.div`
|
|
|
387
387
|
font-style: normal;
|
|
388
388
|
font-weight: 500;
|
|
389
389
|
line-height: 1.25rem;
|
|
390
|
-
${
|
|
390
|
+
${he(2)}
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
& .item__description {
|
|
@@ -402,7 +402,7 @@ const we = q.div`
|
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
-
@media
|
|
405
|
+
@media ${xe("S")} {
|
|
406
406
|
flex-direction: column;
|
|
407
407
|
|
|
408
408
|
& .landing__main-content {
|
|
@@ -454,7 +454,7 @@ const we = q.div`
|
|
|
454
454
|
display: none;
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
`,
|
|
457
|
+
`, qe = W(
|
|
458
458
|
({
|
|
459
459
|
mainTitle: s,
|
|
460
460
|
sideTitle: f,
|
|
@@ -463,7 +463,7 @@ const we = q.div`
|
|
|
463
463
|
handleSelectTag: d = () => {
|
|
464
464
|
},
|
|
465
465
|
blogs: t,
|
|
466
|
-
miniBlogs:
|
|
466
|
+
miniBlogs: _,
|
|
467
467
|
products: u,
|
|
468
468
|
blogsLoading: g = !1,
|
|
469
469
|
productsLoading: w = !1,
|
|
@@ -485,35 +485,35 @@ const we = q.div`
|
|
|
485
485
|
// handleBookmarkBlog = () => {},
|
|
486
486
|
showAllButtonLink: H,
|
|
487
487
|
showAllButtonText: R = "Show all products",
|
|
488
|
-
viewAllButtonText:
|
|
488
|
+
viewAllButtonText: G = "View all (11)",
|
|
489
489
|
// viewAllButtonLink,
|
|
490
|
-
handleViewAll:
|
|
490
|
+
handleViewAll: J = () => {
|
|
491
491
|
},
|
|
492
|
-
handleShowAll:
|
|
492
|
+
handleShowAll: K = () => {
|
|
493
493
|
},
|
|
494
|
-
handleSelectProduct:
|
|
494
|
+
handleSelectProduct: Q = () => {
|
|
495
495
|
},
|
|
496
|
-
getProductImageUrl:
|
|
496
|
+
getProductImageUrl: U = () => {
|
|
497
497
|
},
|
|
498
|
-
page:
|
|
498
|
+
page: X,
|
|
499
499
|
handlePage: N = () => {
|
|
500
500
|
},
|
|
501
|
-
perPage:
|
|
502
|
-
handlePerPage:
|
|
501
|
+
perPage: Y,
|
|
502
|
+
handlePerPage: Z = () => {
|
|
503
503
|
},
|
|
504
504
|
totalPage: k,
|
|
505
505
|
perPageOptions: O,
|
|
506
506
|
handleSearch: B = () => {
|
|
507
507
|
},
|
|
508
|
-
onBookmark:
|
|
508
|
+
onBookmark: L = () => {
|
|
509
509
|
},
|
|
510
|
-
bookmarkComponent:
|
|
510
|
+
bookmarkComponent: T = /* @__PURE__ */ n(I, {}),
|
|
511
511
|
componentName: S,
|
|
512
512
|
LinkComponent: C
|
|
513
513
|
}, P) => {
|
|
514
514
|
const ee = (e) => {
|
|
515
515
|
document.getElementById("landing__container").scrollIntoView({ behavior: "smooth", block: "start" }), N == null || N(e);
|
|
516
|
-
}, o = oe(null), ne = me(), [
|
|
516
|
+
}, o = oe(null), ne = me(), [h, te] = le({
|
|
517
517
|
arrowsVisible: !1,
|
|
518
518
|
leftArrowDisabled: !1,
|
|
519
519
|
rightArrowDisabled: !1
|
|
@@ -529,9 +529,9 @@ const we = q.div`
|
|
|
529
529
|
leftArrowDisabled: e.scrollLeft <= 0,
|
|
530
530
|
rightArrowDisabled: e.scrollLeft >= ae
|
|
531
531
|
}));
|
|
532
|
-
},
|
|
533
|
-
return
|
|
534
|
-
|
|
532
|
+
}, j = new ResizeObserver(l);
|
|
533
|
+
return j.observe(e), l(), e.addEventListener("scroll", l), () => {
|
|
534
|
+
j.disconnect(), e.removeEventListener("scroll", l);
|
|
535
535
|
};
|
|
536
536
|
}, []);
|
|
537
537
|
const re = () => {
|
|
@@ -545,27 +545,27 @@ const we = q.div`
|
|
|
545
545
|
/* @__PURE__ */ a("div", { className: "landing__main-content", children: [
|
|
546
546
|
/* @__PURE__ */ a("div", { className: "main-content__heading", children: [
|
|
547
547
|
/* @__PURE__ */ n("div", { className: "main-content__title", children: s }),
|
|
548
|
-
!ne && (
|
|
548
|
+
!ne && (h == null ? void 0 : h.arrowsVisible) && /* @__PURE__ */ a("div", { className: "main-content__tags-nav", children: [
|
|
549
549
|
/* @__PURE__ */ n(
|
|
550
|
-
|
|
550
|
+
F,
|
|
551
551
|
{
|
|
552
552
|
icon: "chevron-left",
|
|
553
553
|
borderRadius: "curved",
|
|
554
554
|
btnType: "tinted",
|
|
555
555
|
color: "neutral",
|
|
556
|
-
disabled:
|
|
556
|
+
disabled: h == null ? void 0 : h.leftArrowDisabled,
|
|
557
557
|
className: "main-content__tag-nav",
|
|
558
558
|
onClick: ie
|
|
559
559
|
}
|
|
560
560
|
),
|
|
561
561
|
/* @__PURE__ */ n(
|
|
562
|
-
|
|
562
|
+
F,
|
|
563
563
|
{
|
|
564
564
|
icon: "chevron-right",
|
|
565
565
|
borderRadius: "curved",
|
|
566
566
|
btnType: "tinted",
|
|
567
567
|
color: "neutral",
|
|
568
|
-
disabled:
|
|
568
|
+
disabled: h == null ? void 0 : h.rightArrowDisabled,
|
|
569
569
|
className: "main-content__tag-nav",
|
|
570
570
|
onClick: re
|
|
571
571
|
}
|
|
@@ -602,14 +602,14 @@ const we = q.div`
|
|
|
602
602
|
}
|
|
603
603
|
),
|
|
604
604
|
/* @__PURE__ */ n(
|
|
605
|
-
|
|
605
|
+
M,
|
|
606
606
|
{
|
|
607
607
|
color: "neutral",
|
|
608
608
|
control: m == null ? void 0 : m.name,
|
|
609
609
|
zIndex: 1001,
|
|
610
610
|
className: "main-content__sort-by",
|
|
611
611
|
children: v == null ? void 0 : v.map((e, l) => /* @__PURE__ */ n(
|
|
612
|
-
|
|
612
|
+
q,
|
|
613
613
|
{
|
|
614
614
|
active: (e == null ? void 0 : e.code) === (m == null ? void 0 : m.code),
|
|
615
615
|
className: "sort-by__item",
|
|
@@ -623,7 +623,7 @@ const we = q.div`
|
|
|
623
623
|
] }),
|
|
624
624
|
/* @__PURE__ */ a("div", { className: "main-content__items", children: [
|
|
625
625
|
t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
|
|
626
|
-
|
|
626
|
+
V,
|
|
627
627
|
{
|
|
628
628
|
timeToReadText: $,
|
|
629
629
|
items: t == null ? void 0 : t.slice(0, 5),
|
|
@@ -632,8 +632,8 @@ const we = q.div`
|
|
|
632
632
|
onSelectCard: y,
|
|
633
633
|
onSelectOption: A,
|
|
634
634
|
onShare: D,
|
|
635
|
-
onBookmark:
|
|
636
|
-
bookmarkComponent:
|
|
635
|
+
onBookmark: L,
|
|
636
|
+
bookmarkComponent: T,
|
|
637
637
|
componentName: S,
|
|
638
638
|
LinkComponent: C
|
|
639
639
|
}
|
|
@@ -644,11 +644,11 @@ const we = q.div`
|
|
|
644
644
|
{
|
|
645
645
|
buttonText: R,
|
|
646
646
|
buttonLink: H,
|
|
647
|
-
onButtonAction:
|
|
648
|
-
onSelectCard:
|
|
647
|
+
onButtonAction: K,
|
|
648
|
+
onSelectCard: Q,
|
|
649
649
|
items: u,
|
|
650
650
|
isLoading: w,
|
|
651
|
-
getImage:
|
|
651
|
+
getImage: U,
|
|
652
652
|
isHighlight: !0,
|
|
653
653
|
componentName: S,
|
|
654
654
|
LinkComponent: C
|
|
@@ -656,7 +656,7 @@ const we = q.div`
|
|
|
656
656
|
),
|
|
657
657
|
/* @__PURE__ */ n("div", { className: "main-content__divider" }),
|
|
658
658
|
t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
|
|
659
|
-
|
|
659
|
+
V,
|
|
660
660
|
{
|
|
661
661
|
timeToReadText: $,
|
|
662
662
|
items: t == null ? void 0 : t.slice(5),
|
|
@@ -665,8 +665,8 @@ const we = q.div`
|
|
|
665
665
|
onSelectCard: y,
|
|
666
666
|
onSelectOption: A,
|
|
667
667
|
onShare: D,
|
|
668
|
-
onBookmark:
|
|
669
|
-
bookmarkComponent:
|
|
668
|
+
onBookmark: L,
|
|
669
|
+
bookmarkComponent: T,
|
|
670
670
|
componentName: S,
|
|
671
671
|
LinkComponent: C
|
|
672
672
|
}
|
|
@@ -676,9 +676,9 @@ const we = q.div`
|
|
|
676
676
|
be,
|
|
677
677
|
{
|
|
678
678
|
perPageOptions: O,
|
|
679
|
-
perPage:
|
|
680
|
-
handlePerPage:
|
|
681
|
-
page:
|
|
679
|
+
perPage: Y,
|
|
680
|
+
handlePerPage: Z,
|
|
681
|
+
page: X,
|
|
682
682
|
handlePage: ee,
|
|
683
683
|
totalPage: k
|
|
684
684
|
}
|
|
@@ -686,8 +686,8 @@ const we = q.div`
|
|
|
686
686
|
] }),
|
|
687
687
|
/* @__PURE__ */ a("div", { className: "landing__side-content", children: [
|
|
688
688
|
f && /* @__PURE__ */ n("div", { className: "side-content__title", children: f }),
|
|
689
|
-
|
|
690
|
-
/* @__PURE__ */ n("div", { className: "side-content__items", children:
|
|
689
|
+
_ && (_ == null ? void 0 : _.length) > 0 && /* @__PURE__ */ a(I, { children: [
|
|
690
|
+
/* @__PURE__ */ n("div", { className: "side-content__items", children: _ == null ? void 0 : _.map((e, l) => /* @__PURE__ */ n(de, { children: /* @__PURE__ */ a(
|
|
691
691
|
"div",
|
|
692
692
|
{
|
|
693
693
|
className: "side-content__item",
|
|
@@ -703,17 +703,17 @@ const we = q.div`
|
|
|
703
703
|
),
|
|
704
704
|
/* @__PURE__ */ a("div", { className: "item__content", children: [
|
|
705
705
|
/* @__PURE__ */ n("div", { className: "item__title", children: e == null ? void 0 : e.title }),
|
|
706
|
-
/* @__PURE__ */ n("div", { className: "item__description", children:
|
|
706
|
+
/* @__PURE__ */ n("div", { className: "item__description", children: _e(e == null ? void 0 : e.publishedAt) })
|
|
707
707
|
] })
|
|
708
708
|
]
|
|
709
709
|
}
|
|
710
710
|
) }, `mini_blg_${l}`)) }),
|
|
711
|
-
/* @__PURE__ */ n(ue, { onClick:
|
|
711
|
+
/* @__PURE__ */ n(ue, { onClick: J, className: "side-content__link", children: G })
|
|
712
712
|
] })
|
|
713
713
|
] })
|
|
714
714
|
] });
|
|
715
715
|
}
|
|
716
716
|
);
|
|
717
717
|
export {
|
|
718
|
-
|
|
718
|
+
qe as default
|
|
719
719
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),m=require("react"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./useDetectMobile-DYV6V1yw.cjs"),u=l.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
width: 100%;
|
|
5
5
|
text-align: center;
|
|
6
|
-
`,
|
|
6
|
+
`,w=l.styled.div`
|
|
7
7
|
width: 100%;
|
|
8
8
|
height: 100%;
|
|
9
9
|
|
|
@@ -12,15 +12,4 @@
|
|
|
12
12
|
height: ${e=>e!=null&&e.imageHeight?`${e==null?void 0:e.imageHeight}px`:"100%"};
|
|
13
13
|
object-fit: cover;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
//&:hover {
|
|
17
|
-
// cursor: pointer;
|
|
18
|
-
//}
|
|
19
|
-
|
|
20
|
-
//@media (max-width: ${u.MOBILE_SIZE_PX+"px"}) {
|
|
21
|
-
// aspect-ratio: 1 / 1;
|
|
22
|
-
// & .wrapper__image {
|
|
23
|
-
// aspect-ratio: 1 / 1;
|
|
24
|
-
// }
|
|
25
|
-
//}
|
|
26
|
-
`,M=h.forwardRef((e,a)=>{const{image:r,altText:o,imageWidth:s,imageHeight:g,imageMobileWidth:c,imageMobileHeight:n,isMobile:i,onClick:m=()=>{}}=e,d=i?c:s,x=i?n:g;return t.jsx(b,{ref:a,imageWidth:d,imageHeight:x,className:"image-banner__wrapper",children:t.jsx("img",{loading:"lazy",src:r,alt:o,className:"wrapper__image",onClick:m})})}),W=h.forwardRef((e,a)=>{const{image:r,altText:o,imageWidth:s,imageHeight:g,imageMobileWidth:c,imageMobileHeight:n,onClick:i=()=>{}}=e,m=w.useDetectMobile();return t.jsx(_,{ref:a,children:t.jsx(M,{image:r,altText:o,imageWidth:s,imageHeight:g,imageMobileWidth:c,imageMobileHeight:n,isMobile:m,onClick:i})})});module.exports=W;
|
|
15
|
+
`,W=m.forwardRef((e,a)=>{const{image:r,altText:s,imageWidth:g,imageHeight:o,imageMobileWidth:n,imageMobileHeight:c,isMobile:i,onClick:h=()=>{}}=e,d=i?n:g,x=i?c:o;return t.jsx(w,{ref:a,imageWidth:d,imageHeight:x,className:"image-banner__wrapper",children:t.jsx("img",{loading:"lazy",src:r,alt:s,className:"wrapper__image",onClick:h})})}),M=m.forwardRef((e,a)=>{const{image:r,altText:s,imageWidth:g,imageHeight:o,imageMobileWidth:n,imageMobileHeight:c,onClick:i=()=>{}}=e,h=b.useDetectMobile();return t.jsx(u,{ref:a,children:t.jsx(W,{image:r,altText:s,imageWidth:g,imageHeight:o,imageMobileWidth:n,imageMobileHeight:c,isMobile:h,onClick:i})})});module.exports=M;
|