@lanaco/lnc-react-ui 4.0.206 → 4.0.208
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 +28 -6
- package/dist/BannerSectionCarousel.js +72 -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 +73 -67
- 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 +7 -7
- package/dist/MasonryGeneralCardsSection.js +24 -24
- 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
package/dist/ReviewsSection.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as a, jsx as r, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as a, jsx as r, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as v, Suspense as C, memo as y, useMemo as N } from "react";
|
|
3
3
|
import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import {
|
|
5
|
-
import { u as z } from "./useDetectMobile-
|
|
6
|
-
import { t as M,
|
|
7
|
-
import { useTheme as
|
|
8
|
-
import { P as
|
|
9
|
-
import { s as
|
|
10
|
-
const
|
|
4
|
+
import { d as f } from "./breakpoints-ff0SIcV3.js";
|
|
5
|
+
import { u as z } from "./useDetectMobile-CcVo3PNi.js";
|
|
6
|
+
import { t as M, n as P, c as W, g as L } from "./utils-B2fsQ6PS.js";
|
|
7
|
+
import { useTheme as j } from "./ThemeProvider.js";
|
|
8
|
+
import { P as G } from "./index-BvMY2TbK.js";
|
|
9
|
+
import { s as E, S as F, b, c as w, a as o } from "./style-BwQ4djFC.js";
|
|
10
|
+
const I = d.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
color: var(--darkest-950);
|
|
@@ -17,20 +17,28 @@ const G = d.div`
|
|
|
17
17
|
font-weight: 600;
|
|
18
18
|
font-size: 1.5rem;
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`, T = d.div`
|
|
21
21
|
display: grid;
|
|
22
22
|
grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
|
|
23
23
|
gap: 1.25rem;
|
|
24
24
|
|
|
25
|
-
@media
|
|
25
|
+
@media ${f("M")} {
|
|
26
|
+
grid-template-columns: repeat(2, 1fr);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media ${f("S")} {
|
|
30
|
+
grid-template-columns: repeat(2, 1fr);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media ${f("XS")} {
|
|
26
34
|
grid-template-columns: repeat(1, 1fr);
|
|
27
35
|
}
|
|
28
|
-
`,
|
|
36
|
+
`, A = d.a`
|
|
29
37
|
padding-top: 5rem;
|
|
30
38
|
overflow: hidden;
|
|
31
39
|
text-decoration: none;
|
|
32
40
|
color: var(--gray-950);
|
|
33
|
-
`,
|
|
41
|
+
`, V = d.div`
|
|
34
42
|
position: relative;
|
|
35
43
|
cursor: pointer;
|
|
36
44
|
display: flex;
|
|
@@ -86,15 +94,15 @@ const G = d.div`
|
|
|
86
94
|
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
87
95
|
0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
88
96
|
}
|
|
89
|
-
`,
|
|
97
|
+
`, R = (t, n) => L(
|
|
90
98
|
t.theme,
|
|
91
99
|
"StarRating",
|
|
92
100
|
t.color,
|
|
93
101
|
t.disabled === !0 ? "disabled" : "enabled",
|
|
94
102
|
n
|
|
95
|
-
),
|
|
96
|
-
font-size: ${(t) =>
|
|
97
|
-
line-height: ${(t) =>
|
|
103
|
+
), q = d.div`
|
|
104
|
+
font-size: ${(t) => R(t, "fontSize")};
|
|
105
|
+
line-height: ${(t) => R(t, "lineHeight")};
|
|
98
106
|
line-height: 1.5rem;
|
|
99
107
|
width: fit-content;
|
|
100
108
|
display: flex;
|
|
@@ -113,7 +121,7 @@ const G = d.div`
|
|
|
113
121
|
line-height: 1.5rem;
|
|
114
122
|
color: ${(t) => t.color};
|
|
115
123
|
}
|
|
116
|
-
`,
|
|
124
|
+
`, B = d.span`
|
|
117
125
|
position: absolute;
|
|
118
126
|
z-index: 1;
|
|
119
127
|
display: block;
|
|
@@ -122,19 +130,19 @@ const G = d.div`
|
|
|
122
130
|
overflow: hidden;
|
|
123
131
|
width: ${(t) => t.width}%;
|
|
124
132
|
|
|
125
|
-
color: ${(t) =>
|
|
133
|
+
color: ${(t) => W(
|
|
126
134
|
t.theme,
|
|
127
135
|
"StarRating",
|
|
128
136
|
t.color,
|
|
129
137
|
t.disabled === !0 ? "disabled" : "enabled",
|
|
130
138
|
"filledColor"
|
|
131
139
|
)};
|
|
132
|
-
`,
|
|
140
|
+
`, D = d.span`
|
|
133
141
|
padding: 0;
|
|
134
142
|
display: block;
|
|
135
143
|
z-index: 0;
|
|
136
144
|
color: ${(t) => t.color};
|
|
137
|
-
`,
|
|
145
|
+
`, H = v((t, n) => {
|
|
138
146
|
const {
|
|
139
147
|
rating: l = 0,
|
|
140
148
|
reviewCount: i = null,
|
|
@@ -144,7 +152,7 @@ const G = d.div`
|
|
|
144
152
|
style: p = {},
|
|
145
153
|
color: c = "primary",
|
|
146
154
|
size: u = "large"
|
|
147
|
-
} = t, { theme: e } =
|
|
155
|
+
} = t, { theme: e } = j(), h = {
|
|
148
156
|
theme: e,
|
|
149
157
|
color: c,
|
|
150
158
|
size: u,
|
|
@@ -152,7 +160,7 @@ const G = d.div`
|
|
|
152
160
|
disabled: s
|
|
153
161
|
}, k = l / 5 * 100;
|
|
154
162
|
return /* @__PURE__ */ a(
|
|
155
|
-
|
|
163
|
+
q,
|
|
156
164
|
{
|
|
157
165
|
ref: n,
|
|
158
166
|
tabIndex: m,
|
|
@@ -161,7 +169,7 @@ const G = d.div`
|
|
|
161
169
|
children: [
|
|
162
170
|
/* @__PURE__ */ a("div", { className: "rating", children: [
|
|
163
171
|
/* @__PURE__ */ r(
|
|
164
|
-
|
|
172
|
+
B,
|
|
165
173
|
{
|
|
166
174
|
className: "filled-stars",
|
|
167
175
|
...h,
|
|
@@ -169,13 +177,13 @@ const G = d.div`
|
|
|
169
177
|
children: "★★★★★"
|
|
170
178
|
}
|
|
171
179
|
),
|
|
172
|
-
/* @__PURE__ */ r(
|
|
180
|
+
/* @__PURE__ */ r(D, { ...h, children: "★★★★★" })
|
|
173
181
|
] }),
|
|
174
182
|
!isNaN(i) && Number.isFinite(i) && /* @__PURE__ */ r("div", { className: "review-count", children: `(${i.toLocaleString()})` })
|
|
175
183
|
]
|
|
176
184
|
}
|
|
177
185
|
);
|
|
178
|
-
}),
|
|
186
|
+
}), X = v((t, n) => {
|
|
179
187
|
const {
|
|
180
188
|
image: l,
|
|
181
189
|
text: i,
|
|
@@ -187,7 +195,7 @@ const G = d.div`
|
|
|
187
195
|
LinkComponent: c
|
|
188
196
|
} = t;
|
|
189
197
|
return /* @__PURE__ */ r(
|
|
190
|
-
|
|
198
|
+
A,
|
|
191
199
|
{
|
|
192
200
|
ref: n,
|
|
193
201
|
className: "review-card",
|
|
@@ -198,32 +206,32 @@ const G = d.div`
|
|
|
198
206
|
} : {
|
|
199
207
|
href: `/${m}`
|
|
200
208
|
},
|
|
201
|
-
children: /* @__PURE__ */ a(
|
|
202
|
-
/* @__PURE__ */ r(
|
|
209
|
+
children: /* @__PURE__ */ a(V, { children: [
|
|
210
|
+
/* @__PURE__ */ r(G, { src: l }),
|
|
203
211
|
/* @__PURE__ */ a("div", { className: "cont", children: [
|
|
204
212
|
/* @__PURE__ */ r("span", { className: "cont-title", children: s }),
|
|
205
213
|
/* @__PURE__ */ r("div", { className: "cont-text", children: i })
|
|
206
214
|
] }),
|
|
207
|
-
/* @__PURE__ */ r(
|
|
215
|
+
/* @__PURE__ */ r(H, { color: "warning", rating: g })
|
|
208
216
|
] })
|
|
209
217
|
}
|
|
210
218
|
);
|
|
211
|
-
}),
|
|
212
|
-
@media
|
|
219
|
+
}), x = d(F)`
|
|
220
|
+
@media ${f("S")} {
|
|
213
221
|
flex-direction: column;
|
|
214
222
|
|
|
215
223
|
& > div {
|
|
216
224
|
flex-direction: column;
|
|
217
225
|
|
|
218
226
|
& > div {
|
|
219
|
-
${
|
|
227
|
+
${E}
|
|
220
228
|
}
|
|
221
229
|
}
|
|
222
230
|
}
|
|
223
|
-
`,
|
|
224
|
-
/* @__PURE__ */ a(
|
|
231
|
+
`, J = ({ keyPrefix: t }) => /* @__PURE__ */ a(x, { children: [
|
|
232
|
+
/* @__PURE__ */ a(b, { children: [
|
|
225
233
|
/* @__PURE__ */ r(
|
|
226
|
-
|
|
234
|
+
w,
|
|
227
235
|
{
|
|
228
236
|
height: "6.25rem",
|
|
229
237
|
width: "6.25rem",
|
|
@@ -242,9 +250,9 @@ const G = d.div`
|
|
|
242
250
|
}
|
|
243
251
|
)
|
|
244
252
|
] }, `${t}-1`),
|
|
245
|
-
/* @__PURE__ */ a(
|
|
253
|
+
/* @__PURE__ */ a(b, { noGradient: !0, children: [
|
|
246
254
|
/* @__PURE__ */ r(
|
|
247
|
-
|
|
255
|
+
w,
|
|
248
256
|
{
|
|
249
257
|
height: "6.25rem",
|
|
250
258
|
width: "6.25rem",
|
|
@@ -263,9 +271,9 @@ const G = d.div`
|
|
|
263
271
|
}
|
|
264
272
|
)
|
|
265
273
|
] }, `${t}-2`),
|
|
266
|
-
/* @__PURE__ */ a(
|
|
274
|
+
/* @__PURE__ */ a(b, { noGradient: !0, children: [
|
|
267
275
|
/* @__PURE__ */ r(
|
|
268
|
-
|
|
276
|
+
w,
|
|
269
277
|
{
|
|
270
278
|
height: "6.25rem",
|
|
271
279
|
width: "6.25rem",
|
|
@@ -284,12 +292,12 @@ const G = d.div`
|
|
|
284
292
|
}
|
|
285
293
|
)
|
|
286
294
|
] }, `${t}-3`)
|
|
287
|
-
] }),
|
|
295
|
+
] }), K = ({
|
|
288
296
|
keyPrefix: t,
|
|
289
297
|
isLoading: n = !1,
|
|
290
|
-
fallbackComponent: l = /* @__PURE__ */ r(
|
|
298
|
+
fallbackComponent: l = /* @__PURE__ */ r($, {}),
|
|
291
299
|
children: i
|
|
292
|
-
}) => /* @__PURE__ */ r(C, { fallbackComponent: l, children: n === !0 ? /* @__PURE__ */ r(
|
|
300
|
+
}) => /* @__PURE__ */ r(C, { fallbackComponent: l, children: n === !0 ? /* @__PURE__ */ r(J, { keyPrefix: t }) : i }), S = y(X), ie = v((t, n) => {
|
|
293
301
|
const {
|
|
294
302
|
title: l = "Electronics reviews",
|
|
295
303
|
items: i,
|
|
@@ -298,8 +306,8 @@ const G = d.div`
|
|
|
298
306
|
},
|
|
299
307
|
isLoading: g = !1,
|
|
300
308
|
LinkComponent: p
|
|
301
|
-
} = t, c = z(), u = N(() => /* @__PURE__ */ r(
|
|
302
|
-
|
|
309
|
+
} = t, c = z(), u = N(() => /* @__PURE__ */ r($, { children: c === !0 ? i == null ? void 0 : i.map((e, h) => /* @__PURE__ */ r(
|
|
310
|
+
S,
|
|
303
311
|
{
|
|
304
312
|
text: e == null ? void 0 : e.text,
|
|
305
313
|
title: e == null ? void 0 : e.title,
|
|
@@ -311,7 +319,7 @@ const G = d.div`
|
|
|
311
319
|
},
|
|
312
320
|
h
|
|
313
321
|
)) : i == null ? void 0 : i.slice(0, s).map((e, h) => /* @__PURE__ */ r(
|
|
314
|
-
|
|
322
|
+
S,
|
|
315
323
|
{
|
|
316
324
|
text: e == null ? void 0 : e.text,
|
|
317
325
|
title: e == null ? void 0 : e.title,
|
|
@@ -323,9 +331,9 @@ const G = d.div`
|
|
|
323
331
|
},
|
|
324
332
|
h
|
|
325
333
|
)) }), [i, c, s]);
|
|
326
|
-
return /* @__PURE__ */ a(
|
|
334
|
+
return /* @__PURE__ */ a(I, { ref: n, children: [
|
|
327
335
|
/* @__PURE__ */ r("div", { className: "container-title", children: l }),
|
|
328
|
-
/* @__PURE__ */ r(
|
|
336
|
+
/* @__PURE__ */ r(K, { isLoading: g, keyPrefix: "reviews-skeleton", children: /* @__PURE__ */ r(T, { limit: s, children: u }) })
|
|
329
337
|
] });
|
|
330
338
|
});
|
|
331
339
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./utils-CITgSxXe.cjs"),N=require("./breakpoints-CcVm-gVm.cjs"),ue=require("./Icon.cjs"),ce=require("./ShopAvatar-CV3lj34D.cjs"),$e=require("./Badge.cjs"),me=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),de=require("./IconButton.cjs"),pe=require("./useDetectMobile-DYV6V1yw.cjs"),ke=require("./index-CX2A-q39.cjs"),_e=require("./motion-B_VPZaJq.cjs"),a=require("./style-BAcV7F53.cjs"),Ce=y.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
cursor: pointer;
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
background: #ffffff;
|
|
20
20
|
`}
|
|
21
21
|
|
|
22
|
-
@media
|
|
22
|
+
@media ${N.down("S")} {
|
|
23
23
|
width: 100%;
|
|
24
24
|
gap: 0;
|
|
25
25
|
}
|
|
26
|
-
`,
|
|
27
|
-
border-radius: ${n=>
|
|
26
|
+
`,Ie=y.styled.div`
|
|
27
|
+
border-radius: ${n=>f.getBorderRadiusValueWithUnits(n.theme,"edged")};
|
|
28
28
|
cursor: pointer;
|
|
29
29
|
|
|
30
30
|
position: relative;
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
@media
|
|
47
|
+
@media ${N.down("S")} {
|
|
48
48
|
width: 14.5rem;
|
|
49
49
|
}
|
|
50
|
-
`,
|
|
50
|
+
`,De=y.styled.div`
|
|
51
51
|
flex: 1;
|
|
52
52
|
display: flex;
|
|
53
53
|
flex-direction: column;
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
color: var(--gray-600, #676e79);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
@media
|
|
133
|
+
@media ${N.down("S")} {
|
|
134
134
|
padding: 1rem 0 0 0;
|
|
135
135
|
|
|
136
136
|
& .campaign-title-text {
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
${t?"":"flex-wrap: nowrap;"}
|
|
162
162
|
${n?"align-items: center;":""}
|
|
163
163
|
${s?"justify-content: center;":""}
|
|
164
|
-
`,
|
|
164
|
+
`,Ne=y.styled.a`
|
|
165
165
|
text-decoration: none;
|
|
166
166
|
color: var(--gray-950);
|
|
167
167
|
${n=>n.hasPermission===!0&&"cursor: pointer"};
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
font-weight: 500;
|
|
186
186
|
font-size: 1rem;
|
|
187
187
|
line-height: 1.5rem;
|
|
188
|
-
border-radius: ${n=>
|
|
188
|
+
border-radius: ${n=>f.getBorderRadiusValueWithUnits(n.theme,"slight")};
|
|
189
189
|
transition: all 0.25s ease;
|
|
190
190
|
& .description {
|
|
191
191
|
font-size: 0.85rem;
|
|
@@ -233,18 +233,18 @@
|
|
|
233
233
|
background-color: var(--gray-95080, #14161acc);
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
@media
|
|
236
|
+
@media ${N.down("S")} {
|
|
237
237
|
padding: 0;
|
|
238
238
|
font-size: 0.875rem;
|
|
239
239
|
}
|
|
240
|
-
`,
|
|
240
|
+
`,Pe=y.styled.div`
|
|
241
241
|
position: absolute;
|
|
242
242
|
top: 0.5rem;
|
|
243
243
|
${n=>n.alignToLeft===!0?"left: 0.5rem;":"right: 0.5rem;"}
|
|
244
244
|
display: flex;
|
|
245
245
|
gap: 0.25rem;
|
|
246
|
-
`,
|
|
247
|
-
border-radius: ${n=>
|
|
246
|
+
`,Te=y.styled.div`
|
|
247
|
+
border-radius: ${n=>f.getBorderRadiusValueWithUnits(n.theme,n.borderRadius||"slight")};
|
|
248
248
|
background-color: ${n=>n==null?void 0:n.color};
|
|
249
249
|
color: white;
|
|
250
250
|
height: 1.5rem;
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
& i {
|
|
260
260
|
font-size: 0.813rem;
|
|
261
261
|
}
|
|
262
|
-
`,
|
|
262
|
+
`,Le=l.forwardRef(({src:n,...t},s)=>{const o=l.useRef();return l.useEffect(()=>{var h;const d=g=>{g.target.src=ce.DefaultShopImage,g.onerror=null};return(h=o==null?void 0:o.current)==null||h.addEventListener("error",d),()=>{var g;(g=o==null?void 0:o.current)==null||g.removeEventListener("error",d)}},[]),r.jsx(l.Fragment,{ref:s,children:f.isDefinedNotEmptyString(n)?r.jsx("img",{ref:o,src:n,...t}):r.jsx("img",{src:ce.DefaultShopImage,...t})})}),ze=n=>{const{uuid:t,hasPermission:s=!0,isUser:o,image:d,imageComponent:h,name:g,notifications:u=0,color:w="primary",size:i="large",style:v,disabled:m,onClick:$=()=>{},isActive:S,className:j,shopCategory:P,themeData:k,LinkComponent:C}=n,c=C||"a",I={theme:me.useTheme(),color:w,size:i,style:v,disabled:m};return l.createElement(Ne,{onClick:p=>{p==null||p.preventDefault(),p.stopPropagation(),s===!0&&($==null||$())},...I,key:g,className:`profile-item ${j}`,hasPermission:s,isActive:S,themeColor:(k==null?void 0:k.code)||"transparent",as:c,...C?{to:`/${o?"user":"shop"}/${t}`}:{href:`/${o?"user":"shop"}/${t}`}},r.jsx("div",{className:"logo-wrapper",children:f.isDefined(h)?h:d}),r.jsxs("div",{children:[r.jsx("div",{className:"name",children:g}),!o&&r.jsx("div",{className:"description",children:P}),u>0&&r.jsx("div",{className:"notifications-number",children:r.jsx($e,{className:"badge",color:"danger",size:"small",children:u>99?"99+":u})})]}))},he=n=>{if(n!==void 0){const t=new Date(n),s=t.getFullYear(),o=t.getMonth()+1;return`${String(t.getDate()).padStart(2)}. ${o}. ${s}.`}},Re=l.forwardRef((n,t)=>{var le;const s=me.useTheme(),{uuid:o,shopUuid:d,title:h="",coverPhoto:g,onSelect:u,startDate:w,endDate:i,salesPackages:v,shopName:m,shopCategory:$,shopImage:S,shopImageComponent:j,className:P,onSelectCard:k=()=>{},onSelectShop:C=()=>{},upcoming:c=!1,upcomingCampaignText:x,campaignSingleText:I,salesCampaignTypes:p=[],startsInPrefixTextPlural:B,startsinSuffixTextPlural:V,startsInPrefixTextSingular:G,startsinSuffixTextSingular:re,endsInPrefixTextPlural:F,endsinSuffixTextPlural:A,endsInPrefixTextSingular:U,endsinSuffixTextSingular:H,endedText:Y,themeData:ne,numberOfListings:L,numberOfListingsTextSingular:Z,numberOfListingsTextPlural:q,metadata:e,LinkComponent:W,sponsored:te,...J}=n,fe=W||"a",oe=l.useRef(),E=f.getDayNumberPrecise(w,i),K=E!==-1&&(E==null?void 0:E.isEnded)===!0,Q=E!==-1&&!K,X=f.calcDaysUntil(w),z=f.calcDaysRemaining(i),xe=z!==null&&z<=2&&z>0,se=f.normalizeDate(i),ae=se?new Date(se):null,be=new Date,ee=ae?ae.getTime()-be.getTime():null,M=ee!==null&&ee>0&&ee<24*60*60*1e3,ie=(b,R,D,_,T)=>D===1?`${b} ${D} ${_}`:`${R} ${D} ${T}`,we=()=>{if(!i)return null;const b=f.normalizeDate(i),R=b?new Date(b):null;if(!R)return null;const D=ve,_=R.getTime()-D.getTime();if(_<=0)return null;const T=Math.floor(_/(1e3*60*60)),je=Math.floor(_%(1e3*60*60)/(1e3*60)),ye=Math.floor(_%(1e3*60)/1e3);return{hours:T,minutes:je,seconds:ye}},[ve,Se]=l.useState(new Date);l.useEffect(()=>{if(!M)return;const b=setInterval(()=>{Se(new Date)},1e3);return()=>clearInterval(b)},[M]);const O=M?we():null;return r.jsxs(Ce,{ref:oe,theme:s,className:P,name:e==null?void 0:e.name,"data-accessor":e==null?void 0:e.accessor,onClick:b=>k(b,oe),as:fe,...W?{to:`/shop/${d}/campaign/${o}`}:{href:`/shop/${d}/campaign/${o}`},sponsored:te,...J,children:[r.jsxs(Ie,{theme:s,children:[r.jsx("img",{src:g}),r.jsx(Pe,{children:v==null?void 0:v.map((b,R)=>{var D,_;return r.jsx(Te,{color:(D=p==null?void 0:p.find(T=>T.value===b))==null?void 0:D.color,theme:s,children:r.jsx(ue,{icon:(_=p==null?void 0:p.find(T=>T.value===b))==null?void 0:_.icon})},`package__${R}`)})})]}),r.jsxs(De,{theme:s,children:[r.jsx("div",{className:"text-block-wrapper",children:r.jsxs("div",{className:"title-block-wrapper",children:[r.jsx("div",{className:"campaign-title",children:(le=c?x:I)==null?void 0:le.toUpperCase()}),r.jsx("div",{className:"campaign-title-text",children:h}),i&&w&&r.jsxs("div",{className:"campaign-date",children:[he(w)," - ",he(i)]}),r.jsxs("div",{className:"timestamp-text",children:[L>0&&r.jsxs("span",{className:"listings-text",children:[L," ",L===1?Z:q," ","∙"," "]}),r.jsx("span",{className:`duration-text ${xe?"urgent":""} ${Q?"":"starts-in"}`,children:M&&O?r.jsxs("div",{className:"countdown-timer",children:[U," ",O.hours.toString().padStart(2,"0"),":",O.minutes.toString().padStart(2,"0"),":",O.seconds.toString().padStart(2,"0")]}):Q&&!K&&z!==null&&z>0?ie(U,F,z,H,A):K?Y||"Završena":!Q&&X!==null&&X>0?ie(G,B,X,re,V):null})]})]})}),r.jsx(ze,{hasPermission:!0,image:r.jsx(Le,{src:S}),imageComponent:j,themeData:ne,isActive:!0,isUser:!1,name:m,shopCategory:$,uuid:d,onClick:()=>C(d)})]})]})}),Ee=y.styled.div`
|
|
263
263
|
margin: 0 auto;
|
|
264
264
|
display: flex;
|
|
265
265
|
flex-direction: column;
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
right: 0;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
@media
|
|
301
|
+
@media ${N.down("S")} {
|
|
302
302
|
gap: 1.25rem;
|
|
303
303
|
|
|
304
304
|
& .scrollable-section__header {
|
|
@@ -310,13 +310,17 @@
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
`,
|
|
313
|
+
`,Ue=y.styled(_e.motion.div)`
|
|
314
314
|
display: grid;
|
|
315
315
|
grid-template-columns: repeat(${n=>n==null?void 0:n.numOfColumns}, 1fr);
|
|
316
316
|
gap: 1.5rem;
|
|
317
317
|
width: 100%;
|
|
318
318
|
|
|
319
|
-
@media
|
|
319
|
+
@media ${N.only("M")} {
|
|
320
|
+
grid-template-columns: repeat(${n=>(n==null?void 0:n.tabletNumOfColumns)??2}, 1fr);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
@media ${N.down("S")} {
|
|
320
324
|
display: flex;
|
|
321
325
|
flex-wrap: nowrap;
|
|
322
326
|
overflow-x: scroll;
|
|
@@ -338,7 +342,7 @@
|
|
|
338
342
|
/* Safari and Chrome */
|
|
339
343
|
}
|
|
340
344
|
}
|
|
341
|
-
`,
|
|
345
|
+
`,qe=l.forwardRef(({icon:n,title:t,numOfSlides:s=4,tabletNumOfSlides:o,showNavigation:d=!0,hasNextPage:h=!1,handleFetchNextPage:g=()=>{},children:u},w)=>{const[i,v]=l.useState(0),[m,$]=l.useState(1),S=pe.useDetectMobile(),j=(u==null?void 0:u.length)??1;l.useEffect(()=>{const c=()=>{$(s)};return window.addEventListener("resize",c),c(),()=>window.removeEventListener("resize",c)},[]);const P=S?u:u==null?void 0:u.slice(i,i+m),k=c=>{var I;(I=c==null?void 0:c.target)==null||I.blur();const x=i+m;x<j&&v(x),x+m>=j&&h&&g()},C=c=>{var x;(x=c==null?void 0:c.target)==null||x.blur(),i-m>=0&&v(i-m)};return r.jsxs(Ee,{ref:w,children:[r.jsx("div",{className:"scrollable-section__header",children:r.jsxs("div",{className:"scrollable-section__title",children:[f.isDefinedNotEmptyString(n)&&r.jsx(ue,{icon:n,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),f.isDefinedNotEmptyString(t)&&r.jsxs("div",{className:"title__text",children:[" ",t]})]})}),r.jsxs(Ue,{numOfColumns:s,tabletNumOfColumns:o,...!S&&{animate:{x:0,opacity:1},initial:{x:10,opacity:0}},children:[P,S&&h&&r.jsx(ke.InfiniteScrollEndElement,{onIsVisible:g})]},`scrollable-section__content-${i}`),d&&j>m&&!S&&r.jsxs("div",{className:"scrollable-section__navigation",children:[r.jsx(de,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:i===0,onClick:C}),r.jsx(de,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:i+m>=j,onClick:k})]})]})}),We=y.styled.div`
|
|
342
346
|
display: flex;
|
|
343
347
|
flex: 1;
|
|
344
348
|
width: 100%;
|
|
@@ -355,8 +359,8 @@
|
|
|
355
359
|
border-radius: 1.25rem;
|
|
356
360
|
object-fit: cover;
|
|
357
361
|
}
|
|
358
|
-
`,
|
|
359
|
-
@media
|
|
362
|
+
`,Me=l.forwardRef(({sectionName:n,imageUrl:t,maxHeight:s="16.25rem",className:o="",handleClick:d=()=>{}},h)=>r.jsx(We,{ref:h,maxHeight:s,onClick:d,className:`itemless-banner ${o}`,children:r.jsx("img",{src:t,alt:`itemless-banner__${n}`})})),Oe=y.styled(a.SkeletonRowWrapper)`
|
|
363
|
+
@media ${N.down("S")} {
|
|
360
364
|
flex-direction: column;
|
|
361
365
|
|
|
362
366
|
& .skeleton__image {
|
|
@@ -370,4 +374,4 @@
|
|
|
370
374
|
}
|
|
371
375
|
}
|
|
372
376
|
}
|
|
373
|
-
`,
|
|
377
|
+
`,Be=({keyPrefix:n})=>r.jsxs(Oe,{children:[r.jsxs(a.SkeletonRowWrapper,{children:[r.jsx(a.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-1`),r.jsxs(a.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(a.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(a.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(a.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(a.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]}),r.jsxs(a.SkeletonRowWrapper,{noGradient:!0,children:[r.jsx(a.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-2`),r.jsxs(a.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(a.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(a.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(a.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(a.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]})]}),Ve=({keyPrefix:n,isLoading:t=!1,fallbackComponent:s=r.jsx(r.Fragment,{}),children:o})=>r.jsx(l.Suspense,{fallbackComponent:s,children:t===!0?r.jsx(Be,{keyPrefix:n}):o}),Ge=l.memo(Re),Fe=l.forwardRef(({sellerType:n="Shop",items:t=[],title:s,icon:o,isLoading:d,onSelectCard:h=()=>{},onSelectShop:g=()=>{},getImage:u=()=>{},campaignSingleText:w,upcomingCampaignText:i,salesCampaignTypes:v=[],startsInPrefixTextPlural:m,startsinSuffixTextPlural:$,startsInPrefixTextSingular:S,startsinSuffixTextSingular:j,endsInPrefixTextPlural:P,endsinSuffixTextPlural:k,endsInPrefixTextSingular:C,endsinSuffixTextSingular:c,endedText:x,numOfSlides:I=4,showNavigation:p=!0,numberOfListingsTextSingular:B,numberOfListingsTextPlural:V,itemlessImageUrl:G,itemlessLink:re,handleItemlessLink:F=()=>{},componentName:A,hasNextPage:U=!1,handleFetchNextPage:H=()=>{},LinkComponent:Y},ne)=>{const L=pe.useDetectMobile(),Z=l.useMemo(()=>{let q=t==null?void 0:t.map((e,W)=>r.jsx(Ge,{className:"campaign-item",coverPhoto:u(e==null?void 0:e.coverPhoto,(e==null?void 0:e.uuid)||(e==null?void 0:e.campaignUuid)),description:e==null?void 0:e.description,endDate:e==null?void 0:e.endDate,salesPackages:e==null?void 0:e.salesPackages,sellerType:n,shopImage:e==null?void 0:e.profileImage,shopImageComponent:e==null?void 0:e.profileImageComponent,shopName:e==null?void 0:e.shopName,shopUuid:e==null?void 0:e.shopUuid,shopCategory:e==null?void 0:e.shopCategory,startDate:e==null?void 0:e.startDate,title:e==null?void 0:e.name,uuid:e==null?void 0:e.campaignUuid,onSelectCard:(te,J)=>h(e==null?void 0:e.campaignUuid,e==null?void 0:e.shopUuid,J),onSelectShop:()=>g(e==null?void 0:e.shopUuid),campaignSingleText:w,upcomingCampaignText:i,upcoming:e==null?void 0:e.upcoming,salesCampaignTypes:v,startsInPrefixTextPlural:m,startsinSuffixTextPlural:$,startsInPrefixTextSingular:S,startsinSuffixTextSingular:j,endsInPrefixTextPlural:P,endsinSuffixTextPlural:k,endsInPrefixTextSingular:C,endsinSuffixTextSingular:c,endedText:x,themeData:e==null?void 0:e.themeData,numberOfListings:e==null?void 0:e.numberOfListings,numberOfListingsTextSingular:B,numberOfListingsTextPlural:V,metadata:{name:A,accessor:e==null?void 0:e.accessor},LinkComponent:Y,sponsored:e==null?void 0:e.sponsored},`campaign__item__${W}__${e==null?void 0:e.startDate}___${e==null?void 0:e.endDate}`));return(t==null?void 0:t.length)<4&&!L?[...q,r.jsx(Me,{imageUrl:G,className:"campaign-item",handleClick:F},"itemless-campaign-section-banner")]:q},[t]);return r.jsx(Ve,{isLoading:d,keyPrefix:"sales-campaign-skeleton",children:r.jsx(qe,{icon:o,title:s,numOfSlides:I,tabletNumOfSlides:2,showNavigation:p,hasNextPage:U,handleFetchNextPage:H,children:Z},`sales-campaign-section__${L}`)})});module.exports=Fe;
|