@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,18 +1,18 @@
|
|
|
1
|
-
import { jsx as n, jsxs as s, Fragment as
|
|
2
|
-
import { forwardRef as R, useRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
1
|
+
import { jsx as n, jsxs as s, Fragment as Ue } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as R, useRef as Se, useEffect as ae, Fragment as Ee, createElement as Me, useState as ne, Suspense as Re, memo as je, useMemo as Oe } from "react";
|
|
3
|
+
import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { b as oe, l as te, m as Be, z as We, A as Ge, B as Ve, C as he } from "./utils-B2fsQ6PS.js";
|
|
5
|
+
import { d as z, o as Fe } from "./breakpoints-ff0SIcV3.js";
|
|
6
|
+
import $e from "./Icon.js";
|
|
7
7
|
import { D as fe } from "./ShopAvatar-4-fCYGEc.js";
|
|
8
|
-
import
|
|
8
|
+
import Ae from "./Badge.js";
|
|
9
9
|
import { u as _e } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
10
|
import ue from "./IconButton.js";
|
|
11
|
-
import { u as
|
|
12
|
-
import { I as
|
|
13
|
-
import { m as
|
|
14
|
-
import { S as M, c as xe, b as be, a as
|
|
15
|
-
const
|
|
11
|
+
import { u as Ce } from "./useDetectMobile-CcVo3PNi.js";
|
|
12
|
+
import { I as qe } from "./index-BdKi2ogu.js";
|
|
13
|
+
import { m as He } from "./motion-Ckekul_K.js";
|
|
14
|
+
import { S as M, c as xe, b as be, a as y, d as ve } from "./style-BwQ4djFC.js";
|
|
15
|
+
const Ye = S.a`
|
|
16
16
|
text-decoration: none;
|
|
17
17
|
color: var(--gray-950);
|
|
18
18
|
cursor: pointer;
|
|
@@ -33,11 +33,11 @@ const qe = w.a`
|
|
|
33
33
|
background: #ffffff;
|
|
34
34
|
`}
|
|
35
35
|
|
|
36
|
-
@media
|
|
36
|
+
@media ${z("S")} {
|
|
37
37
|
width: 100%;
|
|
38
38
|
gap: 0;
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`, Ze = S.div`
|
|
41
41
|
border-radius: ${(r) => oe(r.theme, "edged")};
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
|
|
@@ -58,10 +58,10 @@ const qe = w.a`
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
@media
|
|
61
|
+
@media ${z("S")} {
|
|
62
62
|
width: 14.5rem;
|
|
63
63
|
}
|
|
64
|
-
`,
|
|
64
|
+
`, Je = S.div`
|
|
65
65
|
flex: 1;
|
|
66
66
|
display: flex;
|
|
67
67
|
flex-direction: column;
|
|
@@ -144,7 +144,7 @@ const qe = w.a`
|
|
|
144
144
|
color: var(--gray-600, #676e79);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
@media
|
|
147
|
+
@media ${z("S")} {
|
|
148
148
|
padding: 1rem 0 0 0;
|
|
149
149
|
|
|
150
150
|
& .campaign-title-text {
|
|
@@ -175,7 +175,7 @@ const qe = w.a`
|
|
|
175
175
|
${t ? "" : "flex-wrap: nowrap;"}
|
|
176
176
|
${r ? "align-items: center;" : ""}
|
|
177
177
|
${o ? "justify-content: center;" : ""}
|
|
178
|
-
`,
|
|
178
|
+
`, Ke = S.a`
|
|
179
179
|
text-decoration: none;
|
|
180
180
|
color: var(--gray-950);
|
|
181
181
|
${(r) => r.hasPermission === !0 && "cursor: pointer"};
|
|
@@ -247,17 +247,17 @@ const qe = w.a`
|
|
|
247
247
|
background-color: var(--gray-95080, #14161acc);
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
@media
|
|
250
|
+
@media ${z("S")} {
|
|
251
251
|
padding: 0;
|
|
252
252
|
font-size: 0.875rem;
|
|
253
253
|
}
|
|
254
|
-
`,
|
|
254
|
+
`, Qe = S.div`
|
|
255
255
|
position: absolute;
|
|
256
256
|
top: 0.5rem;
|
|
257
257
|
${(r) => r.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
|
|
258
258
|
display: flex;
|
|
259
259
|
gap: 0.25rem;
|
|
260
|
-
`,
|
|
260
|
+
`, Xe = S.div`
|
|
261
261
|
border-radius: ${(r) => oe(r.theme, r.borderRadius || "slight")};
|
|
262
262
|
background-color: ${(r) => r == null ? void 0 : r.color};
|
|
263
263
|
color: white;
|
|
@@ -273,66 +273,66 @@ const qe = w.a`
|
|
|
273
273
|
& i {
|
|
274
274
|
font-size: 0.813rem;
|
|
275
275
|
}
|
|
276
|
-
`,
|
|
277
|
-
const a =
|
|
276
|
+
`, er = R(({ src: r, ...t }, o) => {
|
|
277
|
+
const a = Se();
|
|
278
278
|
return ae(() => {
|
|
279
|
-
var
|
|
280
|
-
const c = (
|
|
281
|
-
|
|
279
|
+
var g;
|
|
280
|
+
const c = (d) => {
|
|
281
|
+
d.target.src = fe, d.onerror = null;
|
|
282
282
|
};
|
|
283
|
-
return (
|
|
284
|
-
var
|
|
285
|
-
(
|
|
283
|
+
return (g = a == null ? void 0 : a.current) == null || g.addEventListener("error", c), () => {
|
|
284
|
+
var d;
|
|
285
|
+
(d = a == null ? void 0 : a.current) == null || d.removeEventListener("error", c);
|
|
286
286
|
};
|
|
287
|
-
}, []), /* @__PURE__ */ n(
|
|
288
|
-
}),
|
|
287
|
+
}, []), /* @__PURE__ */ n(Ee, { ref: o, children: te(r) ? /* @__PURE__ */ n("img", { ref: a, src: r, ...t }) : /* @__PURE__ */ n("img", { src: fe, ...t }) });
|
|
288
|
+
}), rr = (r) => {
|
|
289
289
|
const {
|
|
290
290
|
uuid: t,
|
|
291
291
|
hasPermission: o = !0,
|
|
292
292
|
isUser: a,
|
|
293
293
|
image: c,
|
|
294
|
-
imageComponent:
|
|
295
|
-
name:
|
|
296
|
-
notifications:
|
|
297
|
-
color:
|
|
298
|
-
size:
|
|
299
|
-
style:
|
|
300
|
-
disabled:
|
|
301
|
-
onClick:
|
|
294
|
+
imageComponent: g,
|
|
295
|
+
name: d,
|
|
296
|
+
notifications: m = 0,
|
|
297
|
+
color: x = "primary",
|
|
298
|
+
size: i = "large",
|
|
299
|
+
style: b,
|
|
300
|
+
disabled: p,
|
|
301
|
+
onClick: $ = () => {
|
|
302
302
|
},
|
|
303
|
-
isActive:
|
|
304
|
-
className:
|
|
305
|
-
shopCategory:
|
|
303
|
+
isActive: v,
|
|
304
|
+
className: w,
|
|
305
|
+
shopCategory: D,
|
|
306
306
|
// new
|
|
307
|
-
themeData:
|
|
308
|
-
LinkComponent:
|
|
309
|
-
} = r,
|
|
307
|
+
themeData: _,
|
|
308
|
+
LinkComponent: k
|
|
309
|
+
} = r, l = k || "a", I = {
|
|
310
310
|
theme: _e(),
|
|
311
|
-
color:
|
|
312
|
-
size:
|
|
313
|
-
style:
|
|
314
|
-
disabled:
|
|
311
|
+
color: x,
|
|
312
|
+
size: i,
|
|
313
|
+
style: b,
|
|
314
|
+
disabled: p
|
|
315
315
|
};
|
|
316
316
|
return /* @__PURE__ */ Me(
|
|
317
|
-
|
|
317
|
+
Ke,
|
|
318
318
|
{
|
|
319
319
|
onClick: (h) => {
|
|
320
|
-
h == null || h.preventDefault(), h.stopPropagation(), o === !0 && (
|
|
320
|
+
h == null || h.preventDefault(), h.stopPropagation(), o === !0 && ($ == null || $());
|
|
321
321
|
},
|
|
322
|
-
...
|
|
323
|
-
key:
|
|
324
|
-
className: `profile-item ${
|
|
322
|
+
...I,
|
|
323
|
+
key: d,
|
|
324
|
+
className: `profile-item ${w}`,
|
|
325
325
|
hasPermission: o,
|
|
326
|
-
isActive:
|
|
327
|
-
themeColor: (
|
|
328
|
-
as:
|
|
329
|
-
...
|
|
326
|
+
isActive: v,
|
|
327
|
+
themeColor: (_ == null ? void 0 : _.code) || "transparent",
|
|
328
|
+
as: l,
|
|
329
|
+
...k ? { to: `/${a ? "user" : "shop"}/${t}` } : { href: `/${a ? "user" : "shop"}/${t}` }
|
|
330
330
|
},
|
|
331
|
-
/* @__PURE__ */ n("div", { className: "logo-wrapper", children:
|
|
331
|
+
/* @__PURE__ */ n("div", { className: "logo-wrapper", children: Be(g) ? g : c }),
|
|
332
332
|
/* @__PURE__ */ s("div", { children: [
|
|
333
|
-
/* @__PURE__ */ n("div", { className: "name", children:
|
|
334
|
-
!a && /* @__PURE__ */ n("div", { className: "description", children:
|
|
335
|
-
|
|
333
|
+
/* @__PURE__ */ n("div", { className: "name", children: d }),
|
|
334
|
+
!a && /* @__PURE__ */ n("div", { className: "description", children: D }),
|
|
335
|
+
m > 0 && /* @__PURE__ */ n("div", { className: "notifications-number", children: /* @__PURE__ */ n(Ae, { className: "badge", color: "danger", size: "small", children: m > 99 ? "99+" : m }) })
|
|
336
336
|
] })
|
|
337
337
|
);
|
|
338
338
|
}, ye = (r) => {
|
|
@@ -340,115 +340,115 @@ const qe = w.a`
|
|
|
340
340
|
const t = new Date(r), o = t.getFullYear(), a = t.getMonth() + 1;
|
|
341
341
|
return `${String(t.getDate()).padStart(2)}. ${a}. ${o}.`;
|
|
342
342
|
}
|
|
343
|
-
},
|
|
343
|
+
}, nr = R((r, t) => {
|
|
344
344
|
var pe;
|
|
345
345
|
const o = _e(), {
|
|
346
346
|
uuid: a,
|
|
347
347
|
shopUuid: c,
|
|
348
|
-
title:
|
|
348
|
+
title: g = "",
|
|
349
349
|
// description,
|
|
350
350
|
// badges,
|
|
351
|
-
coverPhoto:
|
|
352
|
-
onSelect:
|
|
351
|
+
coverPhoto: d,
|
|
352
|
+
onSelect: m,
|
|
353
353
|
// status,
|
|
354
|
-
startDate:
|
|
355
|
-
endDate:
|
|
356
|
-
salesPackages:
|
|
357
|
-
shopName:
|
|
358
|
-
shopCategory:
|
|
359
|
-
shopImage:
|
|
360
|
-
shopImageComponent:
|
|
361
|
-
className:
|
|
362
|
-
onSelectCard:
|
|
354
|
+
startDate: x,
|
|
355
|
+
endDate: i,
|
|
356
|
+
salesPackages: b,
|
|
357
|
+
shopName: p,
|
|
358
|
+
shopCategory: $,
|
|
359
|
+
shopImage: v,
|
|
360
|
+
shopImageComponent: w,
|
|
361
|
+
className: D,
|
|
362
|
+
onSelectCard: _ = () => {
|
|
363
363
|
},
|
|
364
|
-
onSelectShop:
|
|
364
|
+
onSelectShop: k = () => {
|
|
365
365
|
},
|
|
366
|
-
upcoming:
|
|
367
|
-
upcomingCampaignText:
|
|
368
|
-
campaignSingleText:
|
|
366
|
+
upcoming: l = !1,
|
|
367
|
+
upcomingCampaignText: f,
|
|
368
|
+
campaignSingleText: I,
|
|
369
369
|
salesCampaignTypes: h = [],
|
|
370
370
|
startsInPrefixTextPlural: V,
|
|
371
371
|
startsinSuffixTextPlural: F,
|
|
372
372
|
startsInPrefixTextSingular: A,
|
|
373
373
|
startsinSuffixTextSingular: se,
|
|
374
|
-
endsInPrefixTextPlural:
|
|
375
|
-
endsinSuffixTextPlural:
|
|
374
|
+
endsInPrefixTextPlural: q,
|
|
375
|
+
endsinSuffixTextPlural: H,
|
|
376
376
|
endsInPrefixTextSingular: j,
|
|
377
|
-
endsinSuffixTextSingular:
|
|
378
|
-
endedText:
|
|
377
|
+
endsinSuffixTextSingular: Y,
|
|
378
|
+
endedText: Z,
|
|
379
379
|
themeData: ie,
|
|
380
|
-
numberOfListings:
|
|
381
|
-
numberOfListingsTextSingular:
|
|
382
|
-
numberOfListingsTextPlural:
|
|
380
|
+
numberOfListings: P,
|
|
381
|
+
numberOfListingsTextSingular: J,
|
|
382
|
+
numberOfListingsTextPlural: O,
|
|
383
383
|
metadata: e,
|
|
384
|
-
LinkComponent:
|
|
384
|
+
LinkComponent: B,
|
|
385
385
|
sponsored: le,
|
|
386
|
-
...
|
|
387
|
-
} = r,
|
|
388
|
-
if (!
|
|
389
|
-
const
|
|
390
|
-
if (!
|
|
391
|
-
const
|
|
392
|
-
if (
|
|
393
|
-
const
|
|
394
|
-
return { hours:
|
|
386
|
+
...K
|
|
387
|
+
} = r, ke = B || "a", ce = Se(), E = We(x, i), Q = E !== -1 && (E == null ? void 0 : E.isEnded) === !0, X = E !== -1 && !Q, ee = Ge(x), L = Ve(i), Ie = L !== null && L <= 2 && L > 0, de = he(i), ge = de ? new Date(de) : null, Ne = /* @__PURE__ */ new Date(), re = ge ? ge.getTime() - Ne.getTime() : null, W = re !== null && re > 0 && re < 24 * 60 * 60 * 1e3, me = (u, U, N, C, T) => N === 1 ? `${u} ${N} ${C}` : `${U} ${N} ${T}`, De = () => {
|
|
388
|
+
if (!i) return null;
|
|
389
|
+
const u = he(i), U = u ? new Date(u) : null;
|
|
390
|
+
if (!U) return null;
|
|
391
|
+
const N = Te, C = U.getTime() - N.getTime();
|
|
392
|
+
if (C <= 0) return null;
|
|
393
|
+
const T = Math.floor(C / (1e3 * 60 * 60)), Pe = Math.floor(C % (1e3 * 60 * 60) / (1e3 * 60)), Le = Math.floor(C % (1e3 * 60) / 1e3);
|
|
394
|
+
return { hours: T, minutes: Pe, seconds: Le };
|
|
395
395
|
}, [Te, ze] = ne(/* @__PURE__ */ new Date());
|
|
396
396
|
ae(() => {
|
|
397
397
|
if (!W) return;
|
|
398
|
-
const
|
|
398
|
+
const u = setInterval(() => {
|
|
399
399
|
ze(/* @__PURE__ */ new Date());
|
|
400
400
|
}, 1e3);
|
|
401
|
-
return () => clearInterval(
|
|
401
|
+
return () => clearInterval(u);
|
|
402
402
|
}, [W]);
|
|
403
|
-
const G = W ?
|
|
403
|
+
const G = W ? De() : null;
|
|
404
404
|
return /* @__PURE__ */ s(
|
|
405
|
-
|
|
405
|
+
Ye,
|
|
406
406
|
{
|
|
407
407
|
ref: ce,
|
|
408
408
|
theme: o,
|
|
409
|
-
className:
|
|
409
|
+
className: D,
|
|
410
410
|
name: e == null ? void 0 : e.name,
|
|
411
411
|
"data-accessor": e == null ? void 0 : e.accessor,
|
|
412
|
-
onClick: (
|
|
413
|
-
as:
|
|
414
|
-
...
|
|
412
|
+
onClick: (u) => _(u, ce),
|
|
413
|
+
as: ke,
|
|
414
|
+
...B ? { to: `/shop/${c}/campaign/${a}` } : { href: `/shop/${c}/campaign/${a}` },
|
|
415
415
|
sponsored: le,
|
|
416
|
-
...
|
|
416
|
+
...K,
|
|
417
417
|
children: [
|
|
418
|
-
/* @__PURE__ */ s(
|
|
419
|
-
/* @__PURE__ */ n("img", { src:
|
|
420
|
-
/* @__PURE__ */ n(
|
|
421
|
-
var
|
|
418
|
+
/* @__PURE__ */ s(Ze, { theme: o, children: [
|
|
419
|
+
/* @__PURE__ */ n("img", { src: d }),
|
|
420
|
+
/* @__PURE__ */ n(Qe, { children: b == null ? void 0 : b.map((u, U) => {
|
|
421
|
+
var N, C;
|
|
422
422
|
return /* @__PURE__ */ n(
|
|
423
|
-
|
|
423
|
+
Xe,
|
|
424
424
|
{
|
|
425
|
-
color: (
|
|
425
|
+
color: (N = h == null ? void 0 : h.find((T) => T.value === u)) == null ? void 0 : N.color,
|
|
426
426
|
theme: o,
|
|
427
427
|
children: /* @__PURE__ */ n(
|
|
428
|
-
|
|
428
|
+
$e,
|
|
429
429
|
{
|
|
430
|
-
icon: (
|
|
430
|
+
icon: (C = h == null ? void 0 : h.find((T) => T.value === u)) == null ? void 0 : C.icon
|
|
431
431
|
}
|
|
432
432
|
)
|
|
433
433
|
},
|
|
434
|
-
`package__${
|
|
434
|
+
`package__${U}`
|
|
435
435
|
);
|
|
436
436
|
}) })
|
|
437
437
|
] }),
|
|
438
|
-
/* @__PURE__ */ s(
|
|
438
|
+
/* @__PURE__ */ s(Je, { theme: o, children: [
|
|
439
439
|
/* @__PURE__ */ n("div", { className: "text-block-wrapper", children: /* @__PURE__ */ s("div", { className: "title-block-wrapper", children: [
|
|
440
|
-
/* @__PURE__ */ n("div", { className: "campaign-title", children: (pe =
|
|
441
|
-
/* @__PURE__ */ n("div", { className: "campaign-title-text", children:
|
|
442
|
-
|
|
443
|
-
ye(
|
|
440
|
+
/* @__PURE__ */ n("div", { className: "campaign-title", children: (pe = l ? f : I) == null ? void 0 : pe.toUpperCase() }),
|
|
441
|
+
/* @__PURE__ */ n("div", { className: "campaign-title-text", children: g }),
|
|
442
|
+
i && x && /* @__PURE__ */ s("div", { className: "campaign-date", children: [
|
|
443
|
+
ye(x),
|
|
444
444
|
" - ",
|
|
445
|
-
ye(
|
|
445
|
+
ye(i)
|
|
446
446
|
] }),
|
|
447
447
|
/* @__PURE__ */ s("div", { className: "timestamp-text", children: [
|
|
448
|
-
|
|
449
|
-
|
|
448
|
+
P > 0 && /* @__PURE__ */ s("span", { className: "listings-text", children: [
|
|
449
|
+
P,
|
|
450
450
|
" ",
|
|
451
|
-
|
|
451
|
+
P === 1 ? J : O,
|
|
452
452
|
" ",
|
|
453
453
|
"∙",
|
|
454
454
|
" "
|
|
@@ -456,7 +456,7 @@ const qe = w.a`
|
|
|
456
456
|
/* @__PURE__ */ n(
|
|
457
457
|
"span",
|
|
458
458
|
{
|
|
459
|
-
className: `duration-text ${Ie ? "urgent" : ""} ${
|
|
459
|
+
className: `duration-text ${Ie ? "urgent" : ""} ${X ? "" : "starts-in"}`,
|
|
460
460
|
children: W && G ? /* @__PURE__ */ s("div", { className: "countdown-timer", children: [
|
|
461
461
|
j,
|
|
462
462
|
" ",
|
|
@@ -465,13 +465,13 @@ const qe = w.a`
|
|
|
465
465
|
G.minutes.toString().padStart(2, "0"),
|
|
466
466
|
":",
|
|
467
467
|
G.seconds.toString().padStart(2, "0")
|
|
468
|
-
] }) :
|
|
468
|
+
] }) : X && !Q && L !== null && L > 0 ? me(
|
|
469
469
|
j,
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
) :
|
|
470
|
+
q,
|
|
471
|
+
L,
|
|
472
|
+
Y,
|
|
473
|
+
H
|
|
474
|
+
) : Q ? Z || "Završena" : !X && ee !== null && ee > 0 ? me(
|
|
475
475
|
A,
|
|
476
476
|
V,
|
|
477
477
|
ee,
|
|
@@ -483,25 +483,25 @@ const qe = w.a`
|
|
|
483
483
|
] })
|
|
484
484
|
] }) }),
|
|
485
485
|
/* @__PURE__ */ n(
|
|
486
|
-
|
|
486
|
+
rr,
|
|
487
487
|
{
|
|
488
488
|
hasPermission: !0,
|
|
489
|
-
image: /* @__PURE__ */ n(
|
|
490
|
-
imageComponent:
|
|
489
|
+
image: /* @__PURE__ */ n(er, { src: v }),
|
|
490
|
+
imageComponent: w,
|
|
491
491
|
themeData: ie,
|
|
492
492
|
isActive: !0,
|
|
493
493
|
isUser: !1,
|
|
494
|
-
name:
|
|
495
|
-
shopCategory:
|
|
494
|
+
name: p,
|
|
495
|
+
shopCategory: $,
|
|
496
496
|
uuid: c,
|
|
497
|
-
onClick: () =>
|
|
497
|
+
onClick: () => k(c)
|
|
498
498
|
}
|
|
499
499
|
)
|
|
500
500
|
] })
|
|
501
501
|
]
|
|
502
502
|
}
|
|
503
503
|
);
|
|
504
|
-
}),
|
|
504
|
+
}), tr = S.div`
|
|
505
505
|
margin: 0 auto;
|
|
506
506
|
display: flex;
|
|
507
507
|
flex-direction: column;
|
|
@@ -540,7 +540,7 @@ const qe = w.a`
|
|
|
540
540
|
right: 0;
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
-
@media
|
|
543
|
+
@media ${z("S")} {
|
|
544
544
|
gap: 1.25rem;
|
|
545
545
|
|
|
546
546
|
& .scrollable-section__header {
|
|
@@ -552,13 +552,17 @@ const qe = w.a`
|
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
`,
|
|
555
|
+
`, ar = S(He.div)`
|
|
556
556
|
display: grid;
|
|
557
557
|
grid-template-columns: repeat(${(r) => r == null ? void 0 : r.numOfColumns}, 1fr);
|
|
558
558
|
gap: 1.5rem;
|
|
559
559
|
width: 100%;
|
|
560
560
|
|
|
561
|
-
@media
|
|
561
|
+
@media ${Fe("M")} {
|
|
562
|
+
grid-template-columns: repeat(${(r) => (r == null ? void 0 : r.tabletNumOfColumns) ?? 2}, 1fr);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
@media ${z("S")} {
|
|
562
566
|
display: flex;
|
|
563
567
|
flex-wrap: nowrap;
|
|
564
568
|
overflow-x: scroll;
|
|
@@ -580,37 +584,38 @@ const qe = w.a`
|
|
|
580
584
|
/* Safari and Chrome */
|
|
581
585
|
}
|
|
582
586
|
}
|
|
583
|
-
`,
|
|
587
|
+
`, or = R(
|
|
584
588
|
({
|
|
585
589
|
icon: r,
|
|
586
590
|
title: t,
|
|
587
591
|
numOfSlides: o = 4,
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
592
|
+
tabletNumOfSlides: a,
|
|
593
|
+
showNavigation: c = !0,
|
|
594
|
+
hasNextPage: g = !1,
|
|
595
|
+
handleFetchNextPage: d = () => {
|
|
591
596
|
},
|
|
592
|
-
children:
|
|
593
|
-
},
|
|
594
|
-
const [
|
|
597
|
+
children: m
|
|
598
|
+
}, x) => {
|
|
599
|
+
const [i, b] = ne(0), [p, $] = ne(1), v = Ce(), w = (m == null ? void 0 : m.length) ?? 1;
|
|
595
600
|
ae(() => {
|
|
596
601
|
const l = () => {
|
|
597
|
-
|
|
602
|
+
$(o);
|
|
598
603
|
};
|
|
599
604
|
return window.addEventListener("resize", l), l(), () => window.removeEventListener("resize", l);
|
|
600
605
|
}, []);
|
|
601
|
-
const
|
|
602
|
-
var
|
|
603
|
-
(
|
|
604
|
-
const
|
|
605
|
-
|
|
606
|
-
},
|
|
607
|
-
var
|
|
608
|
-
(
|
|
606
|
+
const D = v ? m : m == null ? void 0 : m.slice(i, i + p), _ = (l) => {
|
|
607
|
+
var I;
|
|
608
|
+
(I = l == null ? void 0 : l.target) == null || I.blur();
|
|
609
|
+
const f = i + p;
|
|
610
|
+
f < w && b(f), f + p >= w && g && d();
|
|
611
|
+
}, k = (l) => {
|
|
612
|
+
var f;
|
|
613
|
+
(f = l == null ? void 0 : l.target) == null || f.blur(), i - p >= 0 && b(i - p);
|
|
609
614
|
};
|
|
610
|
-
return /* @__PURE__ */ s(
|
|
615
|
+
return /* @__PURE__ */ s(tr, { ref: x, children: [
|
|
611
616
|
/* @__PURE__ */ n("div", { className: "scrollable-section__header", children: /* @__PURE__ */ s("div", { className: "scrollable-section__title", children: [
|
|
612
617
|
te(r) && /* @__PURE__ */ n(
|
|
613
|
-
|
|
618
|
+
$e,
|
|
614
619
|
{
|
|
615
620
|
icon: r,
|
|
616
621
|
color: "primary",
|
|
@@ -624,10 +629,11 @@ const qe = w.a`
|
|
|
624
629
|
] })
|
|
625
630
|
] }) }),
|
|
626
631
|
/* @__PURE__ */ s(
|
|
627
|
-
|
|
632
|
+
ar,
|
|
628
633
|
{
|
|
629
634
|
numOfColumns: o,
|
|
630
|
-
|
|
635
|
+
tabletNumOfColumns: a,
|
|
636
|
+
...!v && {
|
|
631
637
|
animate: {
|
|
632
638
|
x: 0,
|
|
633
639
|
opacity: 1
|
|
@@ -638,13 +644,13 @@ const qe = w.a`
|
|
|
638
644
|
}
|
|
639
645
|
},
|
|
640
646
|
children: [
|
|
641
|
-
|
|
642
|
-
|
|
647
|
+
D,
|
|
648
|
+
v && g && /* @__PURE__ */ n(qe, { onIsVisible: d })
|
|
643
649
|
]
|
|
644
650
|
},
|
|
645
|
-
`scrollable-section__content-${
|
|
651
|
+
`scrollable-section__content-${i}`
|
|
646
652
|
),
|
|
647
|
-
|
|
653
|
+
c && w > p && !v && /* @__PURE__ */ s("div", { className: "scrollable-section__navigation", children: [
|
|
648
654
|
/* @__PURE__ */ n(
|
|
649
655
|
ue,
|
|
650
656
|
{
|
|
@@ -653,8 +659,8 @@ const qe = w.a`
|
|
|
653
659
|
btnType: "tinted",
|
|
654
660
|
color: "neutral",
|
|
655
661
|
className: "navigation__arrow",
|
|
656
|
-
disabled:
|
|
657
|
-
onClick:
|
|
662
|
+
disabled: i === 0,
|
|
663
|
+
onClick: k
|
|
658
664
|
}
|
|
659
665
|
),
|
|
660
666
|
/* @__PURE__ */ n(
|
|
@@ -665,14 +671,14 @@ const qe = w.a`
|
|
|
665
671
|
btnType: "tinted",
|
|
666
672
|
color: "neutral",
|
|
667
673
|
className: "navigation__arrow",
|
|
668
|
-
disabled:
|
|
669
|
-
onClick:
|
|
674
|
+
disabled: i + p >= w,
|
|
675
|
+
onClick: _
|
|
670
676
|
}
|
|
671
677
|
)
|
|
672
678
|
] })
|
|
673
679
|
] });
|
|
674
680
|
}
|
|
675
|
-
),
|
|
681
|
+
), sr = S.div`
|
|
676
682
|
display: flex;
|
|
677
683
|
flex: 1;
|
|
678
684
|
width: 100%;
|
|
@@ -689,7 +695,7 @@ const qe = w.a`
|
|
|
689
695
|
border-radius: 1.25rem;
|
|
690
696
|
object-fit: cover;
|
|
691
697
|
}
|
|
692
|
-
`,
|
|
698
|
+
`, ir = R(
|
|
693
699
|
({
|
|
694
700
|
sectionName: r,
|
|
695
701
|
imageUrl: t,
|
|
@@ -697,18 +703,18 @@ const qe = w.a`
|
|
|
697
703
|
className: a = "",
|
|
698
704
|
handleClick: c = () => {
|
|
699
705
|
}
|
|
700
|
-
},
|
|
701
|
-
|
|
706
|
+
}, g) => /* @__PURE__ */ n(
|
|
707
|
+
sr,
|
|
702
708
|
{
|
|
703
|
-
ref:
|
|
709
|
+
ref: g,
|
|
704
710
|
maxHeight: o,
|
|
705
711
|
onClick: c,
|
|
706
712
|
className: `itemless-banner ${a}`,
|
|
707
713
|
children: /* @__PURE__ */ n("img", { src: t, alt: `itemless-banner__${r}` })
|
|
708
714
|
}
|
|
709
715
|
)
|
|
710
|
-
),
|
|
711
|
-
@media
|
|
716
|
+
), lr = S(M)`
|
|
717
|
+
@media ${z("S")} {
|
|
712
718
|
flex-direction: column;
|
|
713
719
|
|
|
714
720
|
& .skeleton__image {
|
|
@@ -722,7 +728,7 @@ const qe = w.a`
|
|
|
722
728
|
}
|
|
723
729
|
}
|
|
724
730
|
}
|
|
725
|
-
`,
|
|
731
|
+
`, cr = ({ keyPrefix: r }) => /* @__PURE__ */ s(lr, { children: [
|
|
726
732
|
/* @__PURE__ */ s(M, { children: [
|
|
727
733
|
/* @__PURE__ */ n(
|
|
728
734
|
xe,
|
|
@@ -734,13 +740,13 @@ const qe = w.a`
|
|
|
734
740
|
`${r}-1`
|
|
735
741
|
),
|
|
736
742
|
/* @__PURE__ */ s(be, { noGradient: !0, children: [
|
|
737
|
-
/* @__PURE__ */ n(
|
|
738
|
-
/* @__PURE__ */ n(
|
|
739
|
-
/* @__PURE__ */ n(
|
|
740
|
-
/* @__PURE__ */ n(
|
|
743
|
+
/* @__PURE__ */ n(y, { height: "1rem" }),
|
|
744
|
+
/* @__PURE__ */ n(y, { height: "1.75rem" }),
|
|
745
|
+
/* @__PURE__ */ n(y, { height: "1.25rem" }),
|
|
746
|
+
/* @__PURE__ */ n(y, { height: "2rem" }),
|
|
741
747
|
/* @__PURE__ */ s(M, { alignItems: "center", noGradient: !0, children: [
|
|
742
748
|
/* @__PURE__ */ n(ve, { width: "2.5rem", height: "2.5rem" }),
|
|
743
|
-
/* @__PURE__ */ n(
|
|
749
|
+
/* @__PURE__ */ n(y, { width: "5rem", height: "1.25rem" })
|
|
744
750
|
] })
|
|
745
751
|
] })
|
|
746
752
|
] }),
|
|
@@ -755,66 +761,66 @@ const qe = w.a`
|
|
|
755
761
|
`${r}-2`
|
|
756
762
|
),
|
|
757
763
|
/* @__PURE__ */ s(be, { noGradient: !0, children: [
|
|
758
|
-
/* @__PURE__ */ n(
|
|
759
|
-
/* @__PURE__ */ n(
|
|
760
|
-
/* @__PURE__ */ n(
|
|
761
|
-
/* @__PURE__ */ n(
|
|
764
|
+
/* @__PURE__ */ n(y, { height: "1rem" }),
|
|
765
|
+
/* @__PURE__ */ n(y, { height: "1.75rem" }),
|
|
766
|
+
/* @__PURE__ */ n(y, { height: "1.25rem" }),
|
|
767
|
+
/* @__PURE__ */ n(y, { height: "2rem" }),
|
|
762
768
|
/* @__PURE__ */ s(M, { alignItems: "center", noGradient: !0, children: [
|
|
763
769
|
/* @__PURE__ */ n(ve, { width: "2.5rem", height: "2.5rem" }),
|
|
764
|
-
/* @__PURE__ */ n(
|
|
770
|
+
/* @__PURE__ */ n(y, { width: "5rem", height: "1.25rem" })
|
|
765
771
|
] })
|
|
766
772
|
] })
|
|
767
773
|
] })
|
|
768
|
-
] }),
|
|
774
|
+
] }), dr = ({
|
|
769
775
|
keyPrefix: r,
|
|
770
776
|
isLoading: t = !1,
|
|
771
|
-
fallbackComponent: o = /* @__PURE__ */ n(
|
|
777
|
+
fallbackComponent: o = /* @__PURE__ */ n(Ue, {}),
|
|
772
778
|
children: a
|
|
773
|
-
}) => /* @__PURE__ */ n(Re, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ n(
|
|
779
|
+
}) => /* @__PURE__ */ n(Re, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ n(cr, { keyPrefix: r }) : a }), gr = je(nr), kr = R(
|
|
774
780
|
({
|
|
775
781
|
sellerType: r = "Shop",
|
|
776
782
|
items: t = [],
|
|
777
783
|
title: o,
|
|
778
784
|
icon: a,
|
|
779
785
|
isLoading: c,
|
|
780
|
-
onSelectCard:
|
|
786
|
+
onSelectCard: g = () => {
|
|
781
787
|
},
|
|
782
|
-
onSelectShop:
|
|
788
|
+
onSelectShop: d = () => {
|
|
783
789
|
},
|
|
784
|
-
getImage:
|
|
790
|
+
getImage: m = () => {
|
|
785
791
|
},
|
|
786
|
-
campaignSingleText:
|
|
787
|
-
upcomingCampaignText:
|
|
788
|
-
salesCampaignTypes:
|
|
789
|
-
startsInPrefixTextPlural:
|
|
790
|
-
startsinSuffixTextPlural:
|
|
791
|
-
startsInPrefixTextSingular:
|
|
792
|
-
startsinSuffixTextSingular:
|
|
793
|
-
endsInPrefixTextPlural:
|
|
794
|
-
endsinSuffixTextPlural:
|
|
795
|
-
endsInPrefixTextSingular:
|
|
796
|
-
endsinSuffixTextSingular:
|
|
797
|
-
endedText:
|
|
798
|
-
numOfSlides:
|
|
792
|
+
campaignSingleText: x,
|
|
793
|
+
upcomingCampaignText: i,
|
|
794
|
+
salesCampaignTypes: b = [],
|
|
795
|
+
startsInPrefixTextPlural: p,
|
|
796
|
+
startsinSuffixTextPlural: $,
|
|
797
|
+
startsInPrefixTextSingular: v,
|
|
798
|
+
startsinSuffixTextSingular: w,
|
|
799
|
+
endsInPrefixTextPlural: D,
|
|
800
|
+
endsinSuffixTextPlural: _,
|
|
801
|
+
endsInPrefixTextSingular: k,
|
|
802
|
+
endsinSuffixTextSingular: l,
|
|
803
|
+
endedText: f,
|
|
804
|
+
numOfSlides: I = 4,
|
|
799
805
|
showNavigation: h = !0,
|
|
800
806
|
numberOfListingsTextSingular: V,
|
|
801
807
|
numberOfListingsTextPlural: F,
|
|
802
808
|
itemlessImageUrl: A,
|
|
803
809
|
itemlessLink: se,
|
|
804
|
-
handleItemlessLink:
|
|
810
|
+
handleItemlessLink: q = () => {
|
|
805
811
|
},
|
|
806
|
-
componentName:
|
|
812
|
+
componentName: H,
|
|
807
813
|
hasNextPage: j = !1,
|
|
808
|
-
handleFetchNextPage:
|
|
814
|
+
handleFetchNextPage: Y = () => {
|
|
809
815
|
},
|
|
810
|
-
LinkComponent:
|
|
816
|
+
LinkComponent: Z
|
|
811
817
|
}, ie) => {
|
|
812
|
-
const
|
|
813
|
-
let
|
|
814
|
-
|
|
818
|
+
const P = Ce(), J = Oe(() => {
|
|
819
|
+
let O = t == null ? void 0 : t.map((e, B) => /* @__PURE__ */ n(
|
|
820
|
+
gr,
|
|
815
821
|
{
|
|
816
822
|
className: "campaign-item",
|
|
817
|
-
coverPhoto:
|
|
823
|
+
coverPhoto: m(
|
|
818
824
|
e == null ? void 0 : e.coverPhoto,
|
|
819
825
|
(e == null ? void 0 : e.uuid) || (e == null ? void 0 : e.campaignUuid)
|
|
820
826
|
),
|
|
@@ -830,61 +836,62 @@ const qe = w.a`
|
|
|
830
836
|
startDate: e == null ? void 0 : e.startDate,
|
|
831
837
|
title: e == null ? void 0 : e.name,
|
|
832
838
|
uuid: e == null ? void 0 : e.campaignUuid,
|
|
833
|
-
onSelectCard: (le,
|
|
834
|
-
onSelectShop: () =>
|
|
835
|
-
campaignSingleText:
|
|
836
|
-
upcomingCampaignText:
|
|
839
|
+
onSelectCard: (le, K) => g(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, K),
|
|
840
|
+
onSelectShop: () => d(e == null ? void 0 : e.shopUuid),
|
|
841
|
+
campaignSingleText: x,
|
|
842
|
+
upcomingCampaignText: i,
|
|
837
843
|
upcoming: e == null ? void 0 : e.upcoming,
|
|
838
|
-
salesCampaignTypes:
|
|
839
|
-
startsInPrefixTextPlural:
|
|
840
|
-
startsinSuffixTextPlural:
|
|
841
|
-
startsInPrefixTextSingular:
|
|
842
|
-
startsinSuffixTextSingular:
|
|
843
|
-
endsInPrefixTextPlural:
|
|
844
|
-
endsinSuffixTextPlural:
|
|
845
|
-
endsInPrefixTextSingular:
|
|
846
|
-
endsinSuffixTextSingular:
|
|
847
|
-
endedText:
|
|
844
|
+
salesCampaignTypes: b,
|
|
845
|
+
startsInPrefixTextPlural: p,
|
|
846
|
+
startsinSuffixTextPlural: $,
|
|
847
|
+
startsInPrefixTextSingular: v,
|
|
848
|
+
startsinSuffixTextSingular: w,
|
|
849
|
+
endsInPrefixTextPlural: D,
|
|
850
|
+
endsinSuffixTextPlural: _,
|
|
851
|
+
endsInPrefixTextSingular: k,
|
|
852
|
+
endsinSuffixTextSingular: l,
|
|
853
|
+
endedText: f,
|
|
848
854
|
themeData: e == null ? void 0 : e.themeData,
|
|
849
855
|
numberOfListings: e == null ? void 0 : e.numberOfListings,
|
|
850
856
|
numberOfListingsTextSingular: V,
|
|
851
857
|
numberOfListingsTextPlural: F,
|
|
852
|
-
metadata: { name:
|
|
853
|
-
LinkComponent:
|
|
858
|
+
metadata: { name: H, accessor: e == null ? void 0 : e.accessor },
|
|
859
|
+
LinkComponent: Z,
|
|
854
860
|
sponsored: e == null ? void 0 : e.sponsored
|
|
855
861
|
},
|
|
856
|
-
`campaign__item__${
|
|
862
|
+
`campaign__item__${B}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
|
|
857
863
|
));
|
|
858
|
-
return (t == null ? void 0 : t.length) < 4 && !
|
|
859
|
-
...
|
|
864
|
+
return (t == null ? void 0 : t.length) < 4 && !P ? [
|
|
865
|
+
...O,
|
|
860
866
|
/* @__PURE__ */ n(
|
|
861
|
-
|
|
867
|
+
ir,
|
|
862
868
|
{
|
|
863
869
|
imageUrl: A,
|
|
864
870
|
className: "campaign-item",
|
|
865
|
-
handleClick:
|
|
871
|
+
handleClick: q
|
|
866
872
|
},
|
|
867
873
|
"itemless-campaign-section-banner"
|
|
868
874
|
)
|
|
869
|
-
] :
|
|
875
|
+
] : O;
|
|
870
876
|
}, [t]);
|
|
871
877
|
return /* @__PURE__ */ n(
|
|
872
|
-
|
|
878
|
+
dr,
|
|
873
879
|
{
|
|
874
880
|
isLoading: c,
|
|
875
881
|
keyPrefix: "sales-campaign-skeleton",
|
|
876
882
|
children: /* @__PURE__ */ n(
|
|
877
|
-
|
|
883
|
+
or,
|
|
878
884
|
{
|
|
879
885
|
icon: a,
|
|
880
886
|
title: o,
|
|
881
|
-
numOfSlides:
|
|
887
|
+
numOfSlides: I,
|
|
888
|
+
tabletNumOfSlides: 2,
|
|
882
889
|
showNavigation: h,
|
|
883
890
|
hasNextPage: j,
|
|
884
|
-
handleFetchNextPage:
|
|
885
|
-
children:
|
|
891
|
+
handleFetchNextPage: Y,
|
|
892
|
+
children: J
|
|
886
893
|
},
|
|
887
|
-
`sales-campaign-section__${
|
|
894
|
+
`sales-campaign-section__${P}`
|
|
888
895
|
)
|
|
889
896
|
}
|
|
890
897
|
);
|