@lanaco/lnc-react-ui 4.0.199 → 4.0.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.cjs +5 -5
- package/dist/Accordion.js +45 -56
- package/dist/AccordionDetails.cjs +3 -3
- package/dist/AccordionDetails.js +11 -25
- package/dist/AccordionSummary.cjs +4 -4
- package/dist/AccordionSummary.js +34 -44
- package/dist/ActionsToolbar.cjs +2 -3
- package/dist/ActionsToolbar.js +83 -135
- package/dist/Alert.cjs +10 -10
- package/dist/Alert.js +32 -64
- package/dist/Avatar.cjs +9 -9
- package/dist/Avatar.js +33 -72
- package/dist/Badge.cjs +6 -6
- package/dist/Badge.js +22 -47
- package/dist/BannerSectionCarousel.cjs +4 -4
- package/dist/BannerSectionCarousel.js +51 -542
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +1 -1
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -14
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +1 -1
- package/dist/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +2 -2
- package/dist/Breadcrumbs.cjs +5 -5
- package/dist/Breadcrumbs.js +57 -87
- package/dist/Button.cjs +11 -11
- package/dist/Button.js +126 -173
- package/dist/ButtonGroup.cjs +8 -8
- package/dist/ButtonGroup.js +37 -49
- package/dist/CalorieCalculatorSection.cjs +8 -8
- package/dist/CalorieCalculatorSection.js +90 -97
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +2 -5
- package/dist/Chip.cjs +14 -14
- package/dist/Chip.js +73 -111
- package/dist/ConfirmationForm.cjs +6 -6
- package/dist/ConfirmationForm.js +67 -109
- package/dist/ContactSection.cjs +1 -0
- package/dist/ContactSection.js +1 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +7 -15
- package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
- package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +30 -50
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +1347 -1383
- package/dist/DecimalInput.cjs +6 -6
- package/dist/DecimalInput.js +210 -263
- package/dist/DecimalInputV2.cjs +23 -23
- package/dist/DecimalInputV2.js +119 -176
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +2 -2
- package/dist/DetailsView.cjs +9 -9
- package/dist/DetailsView.js +111 -162
- package/dist/DoubleRangeSlider.cjs +22 -22
- package/dist/DoubleRangeSlider.js +70 -95
- package/dist/DragAndDropFile.cjs +10 -10
- package/dist/DragAndDropFile.js +347 -402
- package/dist/DragDropFiles.cjs +4 -4
- package/dist/DragDropFiles.js +70 -124
- package/dist/Drawer.cjs +5 -5
- package/dist/Drawer.js +97 -135
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +44 -213
- package/dist/DropdownItem.cjs +14 -14
- package/dist/DropdownItem.js +106 -142
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +61 -242
- package/dist/DropdownMenu.cjs +4 -4
- package/dist/DropdownMenu.js +87 -149
- package/dist/EditableTable.cjs +10 -10
- package/dist/EditableTable.js +165 -331
- package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
- package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +119 -153
- package/dist/FileInput.cjs +7 -7
- package/dist/FileInput.js +66 -94
- package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
- package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
- package/dist/FlexBox.cjs +6 -6
- package/dist/FlexBox.js +28 -63
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +27 -67
- package/dist/FlexGridItem.cjs +6 -6
- package/dist/FlexGridItem.js +34 -62
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +7 -15
- package/dist/FormField.cjs +7 -7
- package/dist/FormField.js +22 -47
- package/dist/FormView.cjs +6 -6
- package/dist/FormView.js +148 -195
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/Grid.cjs +2 -2
- package/dist/Grid.js +40 -65
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +47 -80
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -15
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +9 -15
- package/dist/Icon.cjs +4 -4
- package/dist/Icon.js +29 -55
- package/dist/IconButton.cjs +9 -9
- package/dist/IconButton.js +89 -127
- package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
- package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
- package/dist/Kanban.cjs +7 -7
- package/dist/Kanban.js +2033 -2098
- package/dist/KanbanActionsToolbar.cjs +4 -5
- package/dist/KanbanActionsToolbar.js +61 -96
- package/dist/KanbanCard-B9V9EjVE.js +137 -0
- package/dist/KanbanCard-DihrKn-I.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -3
- package/dist/KanbanFooter.cjs +3 -3
- package/dist/KanbanFooter.js +37 -55
- package/dist/KanbanHeader.cjs +4 -4
- package/dist/KanbanHeader.js +49 -81
- package/dist/KanbanView.cjs +2 -2
- package/dist/KanbanView.js +106 -173
- package/dist/Link.cjs +7 -7
- package/dist/Link.js +20 -37
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.cjs +13 -13
- package/dist/MenuItem.js +101 -139
- package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
- package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
- package/dist/Modal.cjs +18 -19
- package/dist/Modal.js +131 -166
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +25 -196
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +27 -209
- package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
- package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
- package/dist/NestedDropdownItem.cjs +3 -3
- package/dist/NestedDropdownItem.js +45 -67
- package/dist/NestedMenuItem.cjs +5 -5
- package/dist/NestedMenuItem.js +51 -78
- package/dist/NotificationContainer.cjs +10 -10
- package/dist/NotificationContainer.js +46 -79
- package/dist/NotificationMessage.cjs +2 -2
- package/dist/NotificationMessage.js +47 -64
- package/dist/NumberInput.cjs +23 -23
- package/dist/NumberInput.js +89 -149
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +20 -28
- package/dist/Pagination.cjs +3 -3
- package/dist/Pagination.js +102 -185
- package/dist/PartnerBrandsSection.cjs +62 -0
- package/dist/PartnerBrandsSection.js +154 -0
- package/dist/PartnerStatsSection.cjs +100 -0
- package/dist/PartnerStatsSection.js +124 -0
- package/dist/PasswordInput.cjs +23 -23
- package/dist/PasswordInput.js +108 -137
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +7 -32
- package/dist/PopoverContent.cjs +5 -5
- package/dist/PopoverContent.js +22 -28
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +7 -12
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- package/dist/ProgressBar.cjs +8 -8
- package/dist/ProgressBar.js +32 -59
- package/dist/RadioGroup.cjs +3 -3
- package/dist/RadioGroup.js +41 -72
- package/dist/RadioInput.cjs +28 -28
- package/dist/RadioInput.js +78 -123
- package/dist/RangeSlider.cjs +19 -19
- package/dist/RangeSlider.js +92 -119
- package/dist/ReviewsSection.cjs +13 -13
- package/dist/ReviewsSection.js +81 -101
- package/dist/SalesCampaignsSection.cjs +38 -28
- package/dist/SalesCampaignsSection.js +297 -325
- package/dist/SearchBar.cjs +10 -10
- package/dist/SearchBar.js +168 -188
- package/dist/SearchSection-B94YN_6P.cjs +161 -0
- package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +2 -3
- package/dist/Separator.cjs +3 -3
- package/dist/Separator.js +14 -19
- package/dist/Sidebar.cjs +4 -5
- package/dist/Sidebar.js +33 -56
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +2 -2
- package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
- package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
- package/dist/Spinner.cjs +18 -18
- package/dist/Spinner.js +37 -54
- package/dist/StatsSection.cjs +6 -6
- package/dist/StatsSection.js +15 -25
- package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
- package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
- package/dist/Surface.cjs +4 -4
- package/dist/Surface.js +19 -34
- package/dist/SwipeableDrawer.cjs +8 -8
- package/dist/SwipeableDrawer.js +84 -136
- package/dist/TabItem.cjs +11 -11
- package/dist/TabItem.js +83 -118
- package/dist/Table.cjs +65 -65
- package/dist/Table.js +786 -1167
- package/dist/TableView.cjs +2 -2
- package/dist/TableView.js +113 -197
- package/dist/Tabs.cjs +4 -4
- package/dist/Tabs.js +41 -60
- package/dist/TextAreaInput.cjs +14 -14
- package/dist/TextAreaInput.js +131 -181
- package/dist/TextInput.cjs +23 -23
- package/dist/TextInput.js +78 -126
- package/dist/ThemeProvider.cjs +5 -5
- package/dist/ThemeProvider.js +35 -39
- package/dist/TimeInput.cjs +7 -7
- package/dist/TimeInput.js +46 -72
- package/dist/Toggle.cjs +20 -20
- package/dist/Toggle.js +78 -109
- package/dist/ToggleSection.cjs +5 -5
- package/dist/ToggleSection.js +48 -55
- package/dist/TreeMenu.cjs +5 -5
- package/dist/TreeMenu.js +43 -67
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +12 -20
- package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
- package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
- package/dist/UploadedFile.cjs +11 -11
- package/dist/UploadedFile.js +73 -99
- package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
- package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
- package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
- package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
- package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
- package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
- package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
- package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
- package/dist/index-BdKi2ogu.js +39 -0
- package/dist/index-BppfjY8h.js +497 -0
- package/dist/index-CRk3vcd4.cjs +95 -0
- package/dist/index-CX2A-q39.cjs +4 -0
- package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
- package/dist/index-DeS-oqJB.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +25 -21
- package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
- package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
- package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
- package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
- package/package.json +4 -2
- package/vite.config.js +8 -0
- package/dist/KanbanCard-68kSAXL6.js +0 -175
- package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
- package/dist/SearchSection-BcbHP6QF.cjs +0 -161
- package/dist/index-Be-_NM9Q.cjs +0 -4
- package/dist/index-C0LcDEqa.js +0 -47
- package/dist/index-CSNxZFTX.cjs +0 -95
|
@@ -1,38 +1,44 @@
|
|
|
1
|
-
import { jsx as n, jsxs as s, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { a as
|
|
5
|
-
import { M as
|
|
6
|
-
import
|
|
1
|
+
import { jsx as n, jsxs as s, Fragment as Ee } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as R, useRef as $e, useEffect as ae, Fragment as Ue, createElement as Me, useState as ne, Suspense as Re, memo as je, useMemo as Be } from "react";
|
|
3
|
+
import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { a as oe, k as te, l as Oe, z as We, A as Ge, B as Ve, C as he } from "./utils-DtEfC-TX.js";
|
|
5
|
+
import { M as T } from "./consts-BuFChS64.js";
|
|
6
|
+
import Se from "./Icon.js";
|
|
7
7
|
import { D as fe } from "./ShopAvatar-4-fCYGEc.js";
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import xe from "./IconButton.js";
|
|
8
|
+
import Fe from "./Badge.js";
|
|
9
|
+
import { u as _e } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
|
+
import ue from "./IconButton.js";
|
|
12
11
|
import { u as ke } from "./useDetectMobile-Bkvj0VMa.js";
|
|
13
|
-
import { I as
|
|
14
|
-
import { m as
|
|
15
|
-
import { S as
|
|
16
|
-
const
|
|
12
|
+
import { I as Ae } from "./index-BdKi2ogu.js";
|
|
13
|
+
import { m as Ze } from "./motion-Ckekul_K.js";
|
|
14
|
+
import { S as M, c as xe, b as be, a as v, d as ve } from "./style-BwQ4djFC.js";
|
|
15
|
+
const qe = w.a`
|
|
17
16
|
text-decoration: none;
|
|
18
17
|
color: var(--gray-950);
|
|
19
18
|
cursor: pointer;
|
|
20
19
|
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
21
|
gap: 1rem;
|
|
22
|
-
padding:
|
|
22
|
+
padding: 1rem;
|
|
23
23
|
border-radius: 1.25rem;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
25
|
+
|
|
26
|
+
${(r) => r != null && r.sponsored ? `
|
|
27
|
+
border: 1px solid transparent;
|
|
28
|
+
background:
|
|
29
|
+
linear-gradient(#ffffff, #ffffff) padding-box,
|
|
30
|
+
linear-gradient(to bottom, #fcd34d, #fef3c7) border-box;
|
|
31
|
+
` : `
|
|
32
|
+
border: 1px solid var(--gray-200, #e4e9f0);
|
|
33
|
+
background: #ffffff;
|
|
34
|
+
`}
|
|
35
|
+
|
|
36
|
+
@media (max-width: ${T + "px"}) {
|
|
37
|
+
width: 100%;
|
|
29
38
|
gap: 0;
|
|
30
39
|
}
|
|
31
|
-
`,
|
|
32
|
-
border-radius: ${(r) =>
|
|
33
|
-
height: 13.75rem;
|
|
34
|
-
width: 13.75rem;
|
|
35
|
-
min-width: 13.75rem;
|
|
40
|
+
`, He = w.div`
|
|
41
|
+
border-radius: ${(r) => oe(r.theme, "edged")};
|
|
36
42
|
cursor: pointer;
|
|
37
43
|
|
|
38
44
|
position: relative;
|
|
@@ -51,7 +57,11 @@ const Ye = y.a`
|
|
|
51
57
|
transform: scale(1.25);
|
|
52
58
|
}
|
|
53
59
|
}
|
|
54
|
-
|
|
60
|
+
|
|
61
|
+
@media (max-width: ${T + "px"}) {
|
|
62
|
+
width: 14.5rem;
|
|
63
|
+
}
|
|
64
|
+
`, Xe = w.div`
|
|
55
65
|
flex: 1;
|
|
56
66
|
display: flex;
|
|
57
67
|
flex-direction: column;
|
|
@@ -134,7 +144,7 @@ const Ye = y.a`
|
|
|
134
144
|
color: var(--gray-600, #676e79);
|
|
135
145
|
}
|
|
136
146
|
|
|
137
|
-
@media (max-width: ${
|
|
147
|
+
@media (max-width: ${T + "px"}) {
|
|
138
148
|
padding: 1rem 0 0 0;
|
|
139
149
|
|
|
140
150
|
& .campaign-title-text {
|
|
@@ -159,13 +169,13 @@ const Ye = y.a`
|
|
|
159
169
|
gap: 0.25rem;
|
|
160
170
|
}
|
|
161
171
|
}
|
|
162
|
-
`,
|
|
172
|
+
`, we = (r = !1, t = !1, o = !1) => `
|
|
163
173
|
display: flex;
|
|
164
174
|
${t ? "flex-wrap: wrap;" : ""}
|
|
165
175
|
${t ? "" : "flex-wrap: nowrap;"}
|
|
166
176
|
${r ? "align-items: center;" : ""}
|
|
167
|
-
${
|
|
168
|
-
`,
|
|
177
|
+
${o ? "justify-content: center;" : ""}
|
|
178
|
+
`, Ye = w.a`
|
|
169
179
|
text-decoration: none;
|
|
170
180
|
color: var(--gray-950);
|
|
171
181
|
${(r) => r.hasPermission === !0 && "cursor: pointer"};
|
|
@@ -183,14 +193,13 @@ const Ye = y.a`
|
|
|
183
193
|
text-decoration: none;
|
|
184
194
|
}
|
|
185
195
|
|
|
186
|
-
${
|
|
196
|
+
${we(!0)}
|
|
187
197
|
gap: 0.5rem;
|
|
188
|
-
padding: 0.5rem;
|
|
189
198
|
color: var(--gray-950, #14161a);
|
|
190
199
|
font-weight: 500;
|
|
191
200
|
font-size: 1rem;
|
|
192
201
|
line-height: 1.5rem;
|
|
193
|
-
border-radius: ${(r) =>
|
|
202
|
+
border-radius: ${(r) => oe(r.theme, "slight")};
|
|
194
203
|
transition: all 0.25s ease;
|
|
195
204
|
& .description {
|
|
196
205
|
font-size: 0.85rem;
|
|
@@ -199,7 +208,7 @@ const Ye = y.a`
|
|
|
199
208
|
font-weight: 400;
|
|
200
209
|
}
|
|
201
210
|
& .logo-wrapper {
|
|
202
|
-
${
|
|
211
|
+
${we(!0, !1, !0)}
|
|
203
212
|
flex-shrink: 0;
|
|
204
213
|
border-radius: 999px;
|
|
205
214
|
|
|
@@ -238,18 +247,18 @@ const Ye = y.a`
|
|
|
238
247
|
background-color: var(--gray-95080, #14161acc);
|
|
239
248
|
}
|
|
240
249
|
|
|
241
|
-
@media (max-width: ${
|
|
250
|
+
@media (max-width: ${T + "px"}) {
|
|
242
251
|
padding: 0;
|
|
243
252
|
font-size: 0.875rem;
|
|
244
253
|
}
|
|
245
|
-
`,
|
|
254
|
+
`, Je = w.div`
|
|
246
255
|
position: absolute;
|
|
247
256
|
top: 0.5rem;
|
|
248
257
|
${(r) => r.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
|
|
249
258
|
display: flex;
|
|
250
259
|
gap: 0.25rem;
|
|
251
|
-
`,
|
|
252
|
-
border-radius: ${(r) =>
|
|
260
|
+
`, Ke = w.div`
|
|
261
|
+
border-radius: ${(r) => oe(r.theme, r.borderRadius || "slight")};
|
|
253
262
|
background-color: ${(r) => r == null ? void 0 : r.color};
|
|
254
263
|
color: white;
|
|
255
264
|
height: 1.5rem;
|
|
@@ -264,182 +273,161 @@ const Ye = y.a`
|
|
|
264
273
|
& i {
|
|
265
274
|
font-size: 0.813rem;
|
|
266
275
|
}
|
|
267
|
-
`,
|
|
276
|
+
`, Qe = R(({ src: r, ...t }, o) => {
|
|
268
277
|
const a = $e();
|
|
269
|
-
return
|
|
270
|
-
var
|
|
271
|
-
const
|
|
272
|
-
|
|
278
|
+
return ae(() => {
|
|
279
|
+
var m;
|
|
280
|
+
const c = (i) => {
|
|
281
|
+
i.target.src = fe, i.onerror = null;
|
|
273
282
|
};
|
|
274
|
-
return (
|
|
275
|
-
var
|
|
276
|
-
(
|
|
283
|
+
return (m = a == null ? void 0 : a.current) == null || m.addEventListener("error", c), () => {
|
|
284
|
+
var i;
|
|
285
|
+
(i = a == null ? void 0 : a.current) == null || i.removeEventListener("error", c);
|
|
277
286
|
};
|
|
278
|
-
}, []), /* @__PURE__ */ n(
|
|
279
|
-
}),
|
|
287
|
+
}, []), /* @__PURE__ */ n(Ue, { ref: o, children: te(r) ? /* @__PURE__ */ n("img", { ref: a, src: r, ...t }) : /* @__PURE__ */ n("img", { src: fe, ...t }) });
|
|
288
|
+
}), er = (r) => {
|
|
280
289
|
const {
|
|
281
290
|
uuid: t,
|
|
282
|
-
hasPermission:
|
|
291
|
+
hasPermission: o = !0,
|
|
283
292
|
isUser: a,
|
|
284
|
-
image:
|
|
285
|
-
imageComponent:
|
|
286
|
-
name:
|
|
287
|
-
notifications:
|
|
288
|
-
color:
|
|
289
|
-
size:
|
|
293
|
+
image: c,
|
|
294
|
+
imageComponent: m,
|
|
295
|
+
name: i,
|
|
296
|
+
notifications: S = 0,
|
|
297
|
+
color: d = "primary",
|
|
298
|
+
size: p = "large",
|
|
290
299
|
style: g,
|
|
291
300
|
disabled: k,
|
|
292
301
|
onClick: f = () => {
|
|
293
302
|
},
|
|
294
|
-
isActive:
|
|
295
|
-
className:
|
|
296
|
-
shopCategory:
|
|
303
|
+
isActive: b,
|
|
304
|
+
className: C,
|
|
305
|
+
shopCategory: I,
|
|
297
306
|
// new
|
|
298
|
-
themeData:
|
|
299
|
-
LinkComponent:
|
|
300
|
-
} = r,
|
|
301
|
-
theme:
|
|
302
|
-
color:
|
|
303
|
-
size:
|
|
307
|
+
themeData: y,
|
|
308
|
+
LinkComponent: l
|
|
309
|
+
} = r, u = l || "a", E = {
|
|
310
|
+
theme: _e(),
|
|
311
|
+
color: d,
|
|
312
|
+
size: p,
|
|
304
313
|
style: g,
|
|
305
314
|
disabled: k
|
|
306
315
|
};
|
|
307
|
-
return /* @__PURE__ */
|
|
308
|
-
|
|
316
|
+
return /* @__PURE__ */ Me(
|
|
317
|
+
Ye,
|
|
309
318
|
{
|
|
310
|
-
onClick: (
|
|
311
|
-
|
|
319
|
+
onClick: (h) => {
|
|
320
|
+
h == null || h.preventDefault(), h.stopPropagation(), o === !0 && (f == null || f());
|
|
312
321
|
},
|
|
313
322
|
...E,
|
|
314
|
-
key:
|
|
315
|
-
className: `profile-item ${
|
|
316
|
-
hasPermission:
|
|
317
|
-
isActive:
|
|
318
|
-
themeColor: (
|
|
319
|
-
as:
|
|
320
|
-
...
|
|
323
|
+
key: i,
|
|
324
|
+
className: `profile-item ${C}`,
|
|
325
|
+
hasPermission: o,
|
|
326
|
+
isActive: b,
|
|
327
|
+
themeColor: (y == null ? void 0 : y.code) || "transparent",
|
|
328
|
+
as: u,
|
|
329
|
+
...l ? { to: `/${a ? "user" : "shop"}/${t}` } : { href: `/${a ? "user" : "shop"}/${t}` }
|
|
321
330
|
},
|
|
322
|
-
/* @__PURE__ */ n("div", { className: "logo-wrapper", children:
|
|
331
|
+
/* @__PURE__ */ n("div", { className: "logo-wrapper", children: Oe(m) ? m : c }),
|
|
323
332
|
/* @__PURE__ */ s("div", { children: [
|
|
324
|
-
/* @__PURE__ */ n("div", { className: "name", children:
|
|
325
|
-
!a && /* @__PURE__ */ n("div", { className: "description", children:
|
|
326
|
-
|
|
333
|
+
/* @__PURE__ */ n("div", { className: "name", children: i }),
|
|
334
|
+
!a && /* @__PURE__ */ n("div", { className: "description", children: I }),
|
|
335
|
+
S > 0 && /* @__PURE__ */ n("div", { className: "notifications-number", children: /* @__PURE__ */ n(Fe, { className: "badge", color: "danger", size: "small", children: S > 99 ? "99+" : S }) })
|
|
327
336
|
] })
|
|
328
337
|
);
|
|
329
|
-
}
|
|
330
|
-
Ie.propTypes = {
|
|
331
|
-
id: o.any,
|
|
332
|
-
isUserProfile: o.bool,
|
|
333
|
-
themeColor: o.string,
|
|
334
|
-
image: o.any,
|
|
335
|
-
name: o.string,
|
|
336
|
-
notifications: o.number,
|
|
337
|
-
style: o.object,
|
|
338
|
-
className: o.string,
|
|
339
|
-
color: o.oneOf([
|
|
340
|
-
"primary",
|
|
341
|
-
"secondary",
|
|
342
|
-
"success",
|
|
343
|
-
"warning",
|
|
344
|
-
"danger",
|
|
345
|
-
"information",
|
|
346
|
-
"neutral"
|
|
347
|
-
]),
|
|
348
|
-
size: o.oneOf(["large"]),
|
|
349
|
-
onSelect: o.func,
|
|
350
|
-
hasPermission: o.bool
|
|
351
|
-
};
|
|
352
|
-
const Se = (r) => {
|
|
338
|
+
}, ye = (r) => {
|
|
353
339
|
if (r !== void 0) {
|
|
354
|
-
const t = new Date(r),
|
|
355
|
-
return `${String(t.getDate()).padStart(2)}. ${a}. ${
|
|
340
|
+
const t = new Date(r), o = t.getFullYear(), a = t.getMonth() + 1;
|
|
341
|
+
return `${String(t.getDate()).padStart(2)}. ${a}. ${o}.`;
|
|
356
342
|
}
|
|
357
|
-
},
|
|
358
|
-
var
|
|
359
|
-
const
|
|
343
|
+
}, rr = R((r, t) => {
|
|
344
|
+
var pe;
|
|
345
|
+
const o = _e(), {
|
|
360
346
|
uuid: a,
|
|
361
|
-
shopUuid:
|
|
362
|
-
title:
|
|
347
|
+
shopUuid: c,
|
|
348
|
+
title: m = "",
|
|
363
349
|
// description,
|
|
364
350
|
// badges,
|
|
365
|
-
coverPhoto:
|
|
366
|
-
onSelect:
|
|
351
|
+
coverPhoto: i,
|
|
352
|
+
onSelect: S,
|
|
367
353
|
// status,
|
|
368
|
-
startDate:
|
|
369
|
-
endDate:
|
|
354
|
+
startDate: d,
|
|
355
|
+
endDate: p,
|
|
370
356
|
salesPackages: g,
|
|
371
357
|
shopName: k,
|
|
372
358
|
shopCategory: f,
|
|
373
|
-
shopImage:
|
|
374
|
-
shopImageComponent:
|
|
375
|
-
className:
|
|
376
|
-
onSelectCard:
|
|
359
|
+
shopImage: b,
|
|
360
|
+
shopImageComponent: C,
|
|
361
|
+
className: I,
|
|
362
|
+
onSelectCard: y = () => {
|
|
377
363
|
},
|
|
378
|
-
onSelectShop:
|
|
364
|
+
onSelectShop: l = () => {
|
|
379
365
|
},
|
|
380
|
-
upcoming:
|
|
366
|
+
upcoming: u = !1,
|
|
381
367
|
upcomingCampaignText: D,
|
|
382
368
|
campaignSingleText: E,
|
|
383
|
-
salesCampaignTypes:
|
|
369
|
+
salesCampaignTypes: h = [],
|
|
384
370
|
startsInPrefixTextPlural: V,
|
|
385
|
-
startsinSuffixTextPlural:
|
|
386
|
-
startsInPrefixTextSingular:
|
|
371
|
+
startsinSuffixTextPlural: F,
|
|
372
|
+
startsInPrefixTextSingular: A,
|
|
387
373
|
startsinSuffixTextSingular: se,
|
|
388
374
|
endsInPrefixTextPlural: Z,
|
|
389
375
|
endsinSuffixTextPlural: q,
|
|
390
|
-
endsInPrefixTextSingular:
|
|
391
|
-
endsinSuffixTextSingular:
|
|
392
|
-
endedText:
|
|
393
|
-
themeData:
|
|
394
|
-
numberOfListings:
|
|
395
|
-
numberOfListingsTextSingular:
|
|
376
|
+
endsInPrefixTextSingular: j,
|
|
377
|
+
endsinSuffixTextSingular: H,
|
|
378
|
+
endedText: X,
|
|
379
|
+
themeData: ie,
|
|
380
|
+
numberOfListings: z,
|
|
381
|
+
numberOfListingsTextSingular: Y,
|
|
396
382
|
numberOfListingsTextPlural: B,
|
|
397
383
|
metadata: e,
|
|
398
|
-
LinkComponent:
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
384
|
+
LinkComponent: O,
|
|
385
|
+
sponsored: le,
|
|
386
|
+
...J
|
|
387
|
+
} = r, Ce = O || "a", ce = $e(), U = We(d, p), K = U !== -1 && (U == null ? void 0 : U.isEnded) === !0, Q = U !== -1 && !K, ee = Ge(d), P = Ve(p), Ie = P !== null && P <= 2 && P > 0, de = he(p), ge = de ? new Date(de) : null, De = /* @__PURE__ */ new Date(), re = ge ? ge.getTime() - De.getTime() : null, W = re !== null && re > 0 && re < 24 * 60 * 60 * 1e3, me = (x, L, _, $, N) => _ === 1 ? `${x} ${_} ${$}` : `${L} ${_} ${N}`, Ne = () => {
|
|
388
|
+
if (!p) return null;
|
|
389
|
+
const x = he(p), L = x ? new Date(x) : null;
|
|
403
390
|
if (!L) return null;
|
|
404
|
-
const
|
|
391
|
+
const _ = Te, $ = L.getTime() - _.getTime();
|
|
405
392
|
if ($ <= 0) return null;
|
|
406
|
-
const
|
|
407
|
-
return { hours:
|
|
408
|
-
}, [
|
|
409
|
-
|
|
410
|
-
if (!
|
|
411
|
-
const
|
|
412
|
-
|
|
393
|
+
const N = Math.floor($ / (1e3 * 60 * 60)), Pe = Math.floor($ % (1e3 * 60 * 60) / (1e3 * 60)), Le = Math.floor($ % (1e3 * 60) / 1e3);
|
|
394
|
+
return { hours: N, minutes: Pe, seconds: Le };
|
|
395
|
+
}, [Te, ze] = ne(/* @__PURE__ */ new Date());
|
|
396
|
+
ae(() => {
|
|
397
|
+
if (!W) return;
|
|
398
|
+
const x = setInterval(() => {
|
|
399
|
+
ze(/* @__PURE__ */ new Date());
|
|
413
400
|
}, 1e3);
|
|
414
|
-
return () => clearInterval(
|
|
415
|
-
}, [
|
|
416
|
-
const G =
|
|
401
|
+
return () => clearInterval(x);
|
|
402
|
+
}, [W]);
|
|
403
|
+
const G = W ? Ne() : null;
|
|
417
404
|
return /* @__PURE__ */ s(
|
|
418
|
-
|
|
405
|
+
qe,
|
|
419
406
|
{
|
|
420
|
-
ref:
|
|
421
|
-
theme:
|
|
422
|
-
className:
|
|
407
|
+
ref: ce,
|
|
408
|
+
theme: o,
|
|
409
|
+
className: I,
|
|
423
410
|
name: e == null ? void 0 : e.name,
|
|
424
411
|
"data-accessor": e == null ? void 0 : e.accessor,
|
|
425
|
-
onClick: (
|
|
426
|
-
as:
|
|
427
|
-
...
|
|
428
|
-
|
|
412
|
+
onClick: (x) => y(x, ce),
|
|
413
|
+
as: Ce,
|
|
414
|
+
...O ? { to: `/shop/${c}/campaign/${a}` } : { href: `/shop/${c}/campaign/${a}` },
|
|
415
|
+
sponsored: le,
|
|
416
|
+
...J,
|
|
429
417
|
children: [
|
|
430
|
-
/* @__PURE__ */ s(
|
|
431
|
-
/* @__PURE__ */ n("img", { src:
|
|
432
|
-
/* @__PURE__ */ n(
|
|
433
|
-
var
|
|
418
|
+
/* @__PURE__ */ s(He, { theme: o, children: [
|
|
419
|
+
/* @__PURE__ */ n("img", { src: i }),
|
|
420
|
+
/* @__PURE__ */ n(Je, { children: g == null ? void 0 : g.map((x, L) => {
|
|
421
|
+
var _, $;
|
|
434
422
|
return /* @__PURE__ */ n(
|
|
435
|
-
|
|
423
|
+
Ke,
|
|
436
424
|
{
|
|
437
|
-
color: (
|
|
438
|
-
theme:
|
|
425
|
+
color: (_ = h == null ? void 0 : h.find((N) => N.value === x)) == null ? void 0 : _.color,
|
|
426
|
+
theme: o,
|
|
439
427
|
children: /* @__PURE__ */ n(
|
|
440
|
-
|
|
428
|
+
Se,
|
|
441
429
|
{
|
|
442
|
-
icon: ($ =
|
|
430
|
+
icon: ($ = h == null ? void 0 : h.find((N) => N.value === x)) == null ? void 0 : $.icon
|
|
443
431
|
}
|
|
444
432
|
)
|
|
445
433
|
},
|
|
@@ -447,20 +435,20 @@ const Se = (r) => {
|
|
|
447
435
|
);
|
|
448
436
|
}) })
|
|
449
437
|
] }),
|
|
450
|
-
/* @__PURE__ */ s(
|
|
438
|
+
/* @__PURE__ */ s(Xe, { theme: o, children: [
|
|
451
439
|
/* @__PURE__ */ n("div", { className: "text-block-wrapper", children: /* @__PURE__ */ s("div", { className: "title-block-wrapper", children: [
|
|
452
|
-
/* @__PURE__ */ n("div", { className: "campaign-title", children: (
|
|
453
|
-
/* @__PURE__ */ n("div", { className: "campaign-title-text", children:
|
|
454
|
-
|
|
455
|
-
|
|
440
|
+
/* @__PURE__ */ n("div", { className: "campaign-title", children: (pe = u ? D : E) == null ? void 0 : pe.toUpperCase() }),
|
|
441
|
+
/* @__PURE__ */ n("div", { className: "campaign-title-text", children: m }),
|
|
442
|
+
p && d && /* @__PURE__ */ s("div", { className: "campaign-date", children: [
|
|
443
|
+
ye(d),
|
|
456
444
|
" - ",
|
|
457
|
-
|
|
445
|
+
ye(p)
|
|
458
446
|
] }),
|
|
459
447
|
/* @__PURE__ */ s("div", { className: "timestamp-text", children: [
|
|
460
|
-
|
|
461
|
-
|
|
448
|
+
z > 0 && /* @__PURE__ */ s("span", { className: "listings-text", children: [
|
|
449
|
+
z,
|
|
462
450
|
" ",
|
|
463
|
-
|
|
451
|
+
z === 1 ? Y : B,
|
|
464
452
|
" ",
|
|
465
453
|
"∙",
|
|
466
454
|
" "
|
|
@@ -468,52 +456,52 @@ const Se = (r) => {
|
|
|
468
456
|
/* @__PURE__ */ n(
|
|
469
457
|
"span",
|
|
470
458
|
{
|
|
471
|
-
className: `duration-text ${
|
|
472
|
-
children:
|
|
473
|
-
|
|
459
|
+
className: `duration-text ${Ie ? "urgent" : ""} ${Q ? "" : "starts-in"}`,
|
|
460
|
+
children: W && G ? /* @__PURE__ */ s("div", { className: "countdown-timer", children: [
|
|
461
|
+
j,
|
|
474
462
|
" ",
|
|
475
463
|
G.hours.toString().padStart(2, "0"),
|
|
476
464
|
":",
|
|
477
465
|
G.minutes.toString().padStart(2, "0"),
|
|
478
466
|
":",
|
|
479
467
|
G.seconds.toString().padStart(2, "0")
|
|
480
|
-
] }) :
|
|
481
|
-
|
|
468
|
+
] }) : Q && !K && P !== null && P > 0 ? me(
|
|
469
|
+
j,
|
|
482
470
|
Z,
|
|
483
|
-
|
|
484
|
-
X,
|
|
485
|
-
q
|
|
486
|
-
) : Q ? Y || "Završena" : !ee && re !== null && re > 0 ? pe(
|
|
471
|
+
P,
|
|
487
472
|
H,
|
|
473
|
+
q
|
|
474
|
+
) : K ? X || "Završena" : !Q && ee !== null && ee > 0 ? me(
|
|
475
|
+
A,
|
|
488
476
|
V,
|
|
489
|
-
|
|
477
|
+
ee,
|
|
490
478
|
se,
|
|
491
|
-
|
|
479
|
+
F
|
|
492
480
|
) : null
|
|
493
481
|
}
|
|
494
482
|
)
|
|
495
483
|
] })
|
|
496
484
|
] }) }),
|
|
497
485
|
/* @__PURE__ */ n(
|
|
498
|
-
|
|
486
|
+
er,
|
|
499
487
|
{
|
|
500
488
|
hasPermission: !0,
|
|
501
|
-
image: /* @__PURE__ */ n(
|
|
502
|
-
imageComponent:
|
|
503
|
-
themeData:
|
|
489
|
+
image: /* @__PURE__ */ n(Qe, { src: b }),
|
|
490
|
+
imageComponent: C,
|
|
491
|
+
themeData: ie,
|
|
504
492
|
isActive: !0,
|
|
505
493
|
isUser: !1,
|
|
506
494
|
name: k,
|
|
507
495
|
shopCategory: f,
|
|
508
|
-
uuid:
|
|
509
|
-
onClick: () => c
|
|
496
|
+
uuid: c,
|
|
497
|
+
onClick: () => l(c)
|
|
510
498
|
}
|
|
511
499
|
)
|
|
512
500
|
] })
|
|
513
501
|
]
|
|
514
502
|
}
|
|
515
503
|
);
|
|
516
|
-
}),
|
|
504
|
+
}), nr = w.div`
|
|
517
505
|
margin: 0 auto;
|
|
518
506
|
display: flex;
|
|
519
507
|
flex-direction: column;
|
|
@@ -552,7 +540,7 @@ const Se = (r) => {
|
|
|
552
540
|
right: 0;
|
|
553
541
|
}
|
|
554
542
|
|
|
555
|
-
@media (max-width: ${
|
|
543
|
+
@media (max-width: ${T + "px"}) {
|
|
556
544
|
gap: 1.25rem;
|
|
557
545
|
|
|
558
546
|
& .scrollable-section__header {
|
|
@@ -564,13 +552,13 @@ const Se = (r) => {
|
|
|
564
552
|
}
|
|
565
553
|
}
|
|
566
554
|
}
|
|
567
|
-
`,
|
|
555
|
+
`, tr = w(Ze.div)`
|
|
568
556
|
display: grid;
|
|
569
557
|
grid-template-columns: repeat(${(r) => r == null ? void 0 : r.numOfColumns}, 1fr);
|
|
570
558
|
gap: 1.5rem;
|
|
571
559
|
width: 100%;
|
|
572
560
|
|
|
573
|
-
@media (max-width: ${
|
|
561
|
+
@media (max-width: ${T + "px"}) {
|
|
574
562
|
display: flex;
|
|
575
563
|
flex-wrap: nowrap;
|
|
576
564
|
overflow-x: scroll;
|
|
@@ -592,37 +580,37 @@ const Se = (r) => {
|
|
|
592
580
|
/* Safari and Chrome */
|
|
593
581
|
}
|
|
594
582
|
}
|
|
595
|
-
`,
|
|
583
|
+
`, ar = R(
|
|
596
584
|
({
|
|
597
585
|
icon: r,
|
|
598
586
|
title: t,
|
|
599
|
-
numOfSlides:
|
|
587
|
+
numOfSlides: o = 4,
|
|
600
588
|
showNavigation: a = !0,
|
|
601
|
-
hasNextPage:
|
|
602
|
-
handleFetchNextPage:
|
|
589
|
+
hasNextPage: c = !1,
|
|
590
|
+
handleFetchNextPage: m = () => {
|
|
603
591
|
},
|
|
604
|
-
children:
|
|
605
|
-
},
|
|
606
|
-
const [
|
|
607
|
-
|
|
608
|
-
const
|
|
609
|
-
k(
|
|
592
|
+
children: i
|
|
593
|
+
}, S) => {
|
|
594
|
+
const [d, p] = ne(0), [g, k] = ne(1), f = ke(), b = (i == null ? void 0 : i.length) ?? 1;
|
|
595
|
+
ae(() => {
|
|
596
|
+
const l = () => {
|
|
597
|
+
k(o);
|
|
610
598
|
};
|
|
611
|
-
return window.addEventListener("resize",
|
|
599
|
+
return window.addEventListener("resize", l), l(), () => window.removeEventListener("resize", l);
|
|
612
600
|
}, []);
|
|
613
|
-
const
|
|
601
|
+
const C = f ? i : i == null ? void 0 : i.slice(d, d + g), I = (l) => {
|
|
614
602
|
var D;
|
|
615
|
-
(D =
|
|
616
|
-
const
|
|
617
|
-
|
|
618
|
-
},
|
|
619
|
-
var
|
|
620
|
-
(
|
|
603
|
+
(D = l == null ? void 0 : l.target) == null || D.blur();
|
|
604
|
+
const u = d + g;
|
|
605
|
+
u < b && p(u), u + g >= b && c && m();
|
|
606
|
+
}, y = (l) => {
|
|
607
|
+
var u;
|
|
608
|
+
(u = l == null ? void 0 : l.target) == null || u.blur(), d - g >= 0 && p(d - g);
|
|
621
609
|
};
|
|
622
|
-
return /* @__PURE__ */ s(
|
|
610
|
+
return /* @__PURE__ */ s(nr, { ref: S, children: [
|
|
623
611
|
/* @__PURE__ */ n("div", { className: "scrollable-section__header", children: /* @__PURE__ */ s("div", { className: "scrollable-section__title", children: [
|
|
624
|
-
|
|
625
|
-
|
|
612
|
+
te(r) && /* @__PURE__ */ n(
|
|
613
|
+
Se,
|
|
626
614
|
{
|
|
627
615
|
icon: r,
|
|
628
616
|
color: "primary",
|
|
@@ -630,15 +618,15 @@ const Se = (r) => {
|
|
|
630
618
|
className: "title__icon"
|
|
631
619
|
}
|
|
632
620
|
),
|
|
633
|
-
|
|
621
|
+
te(t) && /* @__PURE__ */ s("div", { className: "title__text", children: [
|
|
634
622
|
" ",
|
|
635
623
|
t
|
|
636
624
|
] })
|
|
637
625
|
] }) }),
|
|
638
626
|
/* @__PURE__ */ s(
|
|
639
|
-
|
|
627
|
+
tr,
|
|
640
628
|
{
|
|
641
|
-
numOfColumns:
|
|
629
|
+
numOfColumns: o,
|
|
642
630
|
...!f && {
|
|
643
631
|
animate: {
|
|
644
632
|
x: 0,
|
|
@@ -650,50 +638,41 @@ const Se = (r) => {
|
|
|
650
638
|
}
|
|
651
639
|
},
|
|
652
640
|
children: [
|
|
653
|
-
|
|
654
|
-
f &&
|
|
641
|
+
C,
|
|
642
|
+
f && c && /* @__PURE__ */ n(Ae, { onIsVisible: m })
|
|
655
643
|
]
|
|
656
644
|
},
|
|
657
|
-
`scrollable-section__content-${
|
|
645
|
+
`scrollable-section__content-${d}`
|
|
658
646
|
),
|
|
659
|
-
a &&
|
|
647
|
+
a && b > g && !f && /* @__PURE__ */ s("div", { className: "scrollable-section__navigation", children: [
|
|
660
648
|
/* @__PURE__ */ n(
|
|
661
|
-
|
|
649
|
+
ue,
|
|
662
650
|
{
|
|
663
651
|
icon: "angle-left",
|
|
664
652
|
borderRadius: "curved",
|
|
665
653
|
btnType: "tinted",
|
|
666
654
|
color: "neutral",
|
|
667
655
|
className: "navigation__arrow",
|
|
668
|
-
disabled:
|
|
669
|
-
onClick:
|
|
656
|
+
disabled: d === 0,
|
|
657
|
+
onClick: y
|
|
670
658
|
}
|
|
671
659
|
),
|
|
672
660
|
/* @__PURE__ */ n(
|
|
673
|
-
|
|
661
|
+
ue,
|
|
674
662
|
{
|
|
675
663
|
icon: "angle-right",
|
|
676
664
|
borderRadius: "curved",
|
|
677
665
|
btnType: "tinted",
|
|
678
666
|
color: "neutral",
|
|
679
667
|
className: "navigation__arrow",
|
|
680
|
-
disabled:
|
|
681
|
-
onClick:
|
|
668
|
+
disabled: d + g >= b,
|
|
669
|
+
onClick: I
|
|
682
670
|
}
|
|
683
671
|
)
|
|
684
672
|
] })
|
|
685
673
|
] });
|
|
686
674
|
}
|
|
687
|
-
)
|
|
688
|
-
Ne.propTypes = {
|
|
689
|
-
icon: o.string,
|
|
690
|
-
title: o.string,
|
|
691
|
-
numOfSlides: o.number,
|
|
692
|
-
numOfSlidesForMobile: o.number,
|
|
693
|
-
handleFetchNextPage: o.func,
|
|
694
|
-
showNavigation: o.bool
|
|
695
|
-
};
|
|
696
|
-
const ir = y.div`
|
|
675
|
+
), or = w.div`
|
|
697
676
|
display: flex;
|
|
698
677
|
flex: 1;
|
|
699
678
|
width: 100%;
|
|
@@ -710,34 +689,26 @@ const ir = y.div`
|
|
|
710
689
|
border-radius: 1.25rem;
|
|
711
690
|
object-fit: cover;
|
|
712
691
|
}
|
|
713
|
-
`,
|
|
692
|
+
`, sr = R(
|
|
714
693
|
({
|
|
715
694
|
sectionName: r,
|
|
716
695
|
imageUrl: t,
|
|
717
|
-
maxHeight:
|
|
696
|
+
maxHeight: o = "16.25rem",
|
|
718
697
|
className: a = "",
|
|
719
|
-
handleClick:
|
|
698
|
+
handleClick: c = () => {
|
|
720
699
|
}
|
|
721
|
-
},
|
|
722
|
-
|
|
700
|
+
}, m) => /* @__PURE__ */ n(
|
|
701
|
+
or,
|
|
723
702
|
{
|
|
724
|
-
ref:
|
|
725
|
-
maxHeight:
|
|
726
|
-
onClick:
|
|
703
|
+
ref: m,
|
|
704
|
+
maxHeight: o,
|
|
705
|
+
onClick: c,
|
|
727
706
|
className: `itemless-banner ${a}`,
|
|
728
707
|
children: /* @__PURE__ */ n("img", { src: t, alt: `itemless-banner__${r}` })
|
|
729
708
|
}
|
|
730
709
|
)
|
|
731
|
-
)
|
|
732
|
-
|
|
733
|
-
sectionName: o.string,
|
|
734
|
-
imageUrl: o.string,
|
|
735
|
-
maxHeight: o.string,
|
|
736
|
-
className: o.string,
|
|
737
|
-
handleClick: o.func
|
|
738
|
-
};
|
|
739
|
-
const sr = y(O)`
|
|
740
|
-
@media (max-width: ${U + "px"}) {
|
|
710
|
+
), ir = w(M)`
|
|
711
|
+
@media (max-width: ${T + "px"}) {
|
|
741
712
|
flex-direction: column;
|
|
742
713
|
|
|
743
714
|
& .skeleton__image {
|
|
@@ -751,10 +722,10 @@ const sr = y(O)`
|
|
|
751
722
|
}
|
|
752
723
|
}
|
|
753
724
|
}
|
|
754
|
-
`, lr = ({ keyPrefix: r }) => /* @__PURE__ */ s(
|
|
755
|
-
/* @__PURE__ */ s(
|
|
725
|
+
`, lr = ({ keyPrefix: r }) => /* @__PURE__ */ s(ir, { children: [
|
|
726
|
+
/* @__PURE__ */ s(M, { children: [
|
|
756
727
|
/* @__PURE__ */ n(
|
|
757
|
-
|
|
728
|
+
xe,
|
|
758
729
|
{
|
|
759
730
|
width: "13.75rem",
|
|
760
731
|
height: "13.75rem",
|
|
@@ -762,20 +733,20 @@ const sr = y(O)`
|
|
|
762
733
|
},
|
|
763
734
|
`${r}-1`
|
|
764
735
|
),
|
|
765
|
-
/* @__PURE__ */ s(
|
|
766
|
-
/* @__PURE__ */ n(
|
|
767
|
-
/* @__PURE__ */ n(
|
|
768
|
-
/* @__PURE__ */ n(
|
|
769
|
-
/* @__PURE__ */ n(
|
|
770
|
-
/* @__PURE__ */ s(
|
|
771
|
-
/* @__PURE__ */ n(
|
|
772
|
-
/* @__PURE__ */ n(
|
|
736
|
+
/* @__PURE__ */ s(be, { noGradient: !0, children: [
|
|
737
|
+
/* @__PURE__ */ n(v, { height: "1rem" }),
|
|
738
|
+
/* @__PURE__ */ n(v, { height: "1.75rem" }),
|
|
739
|
+
/* @__PURE__ */ n(v, { height: "1.25rem" }),
|
|
740
|
+
/* @__PURE__ */ n(v, { height: "2rem" }),
|
|
741
|
+
/* @__PURE__ */ s(M, { alignItems: "center", noGradient: !0, children: [
|
|
742
|
+
/* @__PURE__ */ n(ve, { width: "2.5rem", height: "2.5rem" }),
|
|
743
|
+
/* @__PURE__ */ n(v, { width: "5rem", height: "1.25rem" })
|
|
773
744
|
] })
|
|
774
745
|
] })
|
|
775
746
|
] }),
|
|
776
|
-
/* @__PURE__ */ s(
|
|
747
|
+
/* @__PURE__ */ s(M, { noGradient: !0, children: [
|
|
777
748
|
/* @__PURE__ */ n(
|
|
778
|
-
|
|
749
|
+
xe,
|
|
779
750
|
{
|
|
780
751
|
width: "13.75rem",
|
|
781
752
|
height: "13.75rem",
|
|
@@ -783,67 +754,67 @@ const sr = y(O)`
|
|
|
783
754
|
},
|
|
784
755
|
`${r}-2`
|
|
785
756
|
),
|
|
786
|
-
/* @__PURE__ */ s(
|
|
787
|
-
/* @__PURE__ */ n(
|
|
788
|
-
/* @__PURE__ */ n(
|
|
789
|
-
/* @__PURE__ */ n(
|
|
790
|
-
/* @__PURE__ */ n(
|
|
791
|
-
/* @__PURE__ */ s(
|
|
792
|
-
/* @__PURE__ */ n(
|
|
793
|
-
/* @__PURE__ */ n(
|
|
757
|
+
/* @__PURE__ */ s(be, { noGradient: !0, children: [
|
|
758
|
+
/* @__PURE__ */ n(v, { height: "1rem" }),
|
|
759
|
+
/* @__PURE__ */ n(v, { height: "1.75rem" }),
|
|
760
|
+
/* @__PURE__ */ n(v, { height: "1.25rem" }),
|
|
761
|
+
/* @__PURE__ */ n(v, { height: "2rem" }),
|
|
762
|
+
/* @__PURE__ */ s(M, { alignItems: "center", noGradient: !0, children: [
|
|
763
|
+
/* @__PURE__ */ n(ve, { width: "2.5rem", height: "2.5rem" }),
|
|
764
|
+
/* @__PURE__ */ n(v, { width: "5rem", height: "1.25rem" })
|
|
794
765
|
] })
|
|
795
766
|
] })
|
|
796
767
|
] })
|
|
797
768
|
] }), cr = ({
|
|
798
769
|
keyPrefix: r,
|
|
799
770
|
isLoading: t = !1,
|
|
800
|
-
fallbackComponent:
|
|
771
|
+
fallbackComponent: o = /* @__PURE__ */ n(Ee, {}),
|
|
801
772
|
children: a
|
|
802
|
-
}) => /* @__PURE__ */ n(
|
|
773
|
+
}) => /* @__PURE__ */ n(Re, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ n(lr, { keyPrefix: r }) : a }), dr = je(rr), kr = R(
|
|
803
774
|
({
|
|
804
775
|
sellerType: r = "Shop",
|
|
805
776
|
items: t = [],
|
|
806
|
-
title:
|
|
777
|
+
title: o,
|
|
807
778
|
icon: a,
|
|
808
|
-
isLoading:
|
|
809
|
-
onSelectCard:
|
|
779
|
+
isLoading: c,
|
|
780
|
+
onSelectCard: m = () => {
|
|
810
781
|
},
|
|
811
|
-
onSelectShop:
|
|
782
|
+
onSelectShop: i = () => {
|
|
812
783
|
},
|
|
813
|
-
getImage:
|
|
784
|
+
getImage: S = () => {
|
|
814
785
|
},
|
|
815
|
-
campaignSingleText:
|
|
816
|
-
upcomingCampaignText:
|
|
786
|
+
campaignSingleText: d,
|
|
787
|
+
upcomingCampaignText: p,
|
|
817
788
|
salesCampaignTypes: g = [],
|
|
818
789
|
startsInPrefixTextPlural: k,
|
|
819
790
|
startsinSuffixTextPlural: f,
|
|
820
|
-
startsInPrefixTextSingular:
|
|
821
|
-
startsinSuffixTextSingular:
|
|
822
|
-
endsInPrefixTextPlural:
|
|
823
|
-
endsinSuffixTextPlural:
|
|
824
|
-
endsInPrefixTextSingular:
|
|
825
|
-
endsinSuffixTextSingular:
|
|
791
|
+
startsInPrefixTextSingular: b,
|
|
792
|
+
startsinSuffixTextSingular: C,
|
|
793
|
+
endsInPrefixTextPlural: I,
|
|
794
|
+
endsinSuffixTextPlural: y,
|
|
795
|
+
endsInPrefixTextSingular: l,
|
|
796
|
+
endsinSuffixTextSingular: u,
|
|
826
797
|
endedText: D,
|
|
827
|
-
numOfSlides: E =
|
|
828
|
-
showNavigation:
|
|
798
|
+
numOfSlides: E = 4,
|
|
799
|
+
showNavigation: h = !0,
|
|
829
800
|
numberOfListingsTextSingular: V,
|
|
830
|
-
numberOfListingsTextPlural:
|
|
831
|
-
itemlessImageUrl:
|
|
801
|
+
numberOfListingsTextPlural: F,
|
|
802
|
+
itemlessImageUrl: A,
|
|
832
803
|
itemlessLink: se,
|
|
833
804
|
handleItemlessLink: Z = () => {
|
|
834
805
|
},
|
|
835
806
|
componentName: q,
|
|
836
|
-
hasNextPage:
|
|
837
|
-
handleFetchNextPage:
|
|
807
|
+
hasNextPage: j = !1,
|
|
808
|
+
handleFetchNextPage: H = () => {
|
|
838
809
|
},
|
|
839
|
-
LinkComponent:
|
|
840
|
-
},
|
|
841
|
-
const
|
|
842
|
-
let B = t == null ? void 0 : t.map((e,
|
|
810
|
+
LinkComponent: X
|
|
811
|
+
}, ie) => {
|
|
812
|
+
const z = ke(), Y = Be(() => {
|
|
813
|
+
let B = t == null ? void 0 : t.map((e, O) => /* @__PURE__ */ n(
|
|
843
814
|
dr,
|
|
844
815
|
{
|
|
845
816
|
className: "campaign-item",
|
|
846
|
-
coverPhoto:
|
|
817
|
+
coverPhoto: S(
|
|
847
818
|
e == null ? void 0 : e.coverPhoto,
|
|
848
819
|
(e == null ? void 0 : e.uuid) || (e == null ? void 0 : e.campaignUuid)
|
|
849
820
|
),
|
|
@@ -859,36 +830,37 @@ const sr = y(O)`
|
|
|
859
830
|
startDate: e == null ? void 0 : e.startDate,
|
|
860
831
|
title: e == null ? void 0 : e.name,
|
|
861
832
|
uuid: e == null ? void 0 : e.campaignUuid,
|
|
862
|
-
onSelectCard: (
|
|
863
|
-
onSelectShop: () =>
|
|
864
|
-
campaignSingleText:
|
|
865
|
-
upcomingCampaignText:
|
|
833
|
+
onSelectCard: (le, J) => m(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, J),
|
|
834
|
+
onSelectShop: () => i(e == null ? void 0 : e.shopUuid),
|
|
835
|
+
campaignSingleText: d,
|
|
836
|
+
upcomingCampaignText: p,
|
|
866
837
|
upcoming: e == null ? void 0 : e.upcoming,
|
|
867
838
|
salesCampaignTypes: g,
|
|
868
839
|
startsInPrefixTextPlural: k,
|
|
869
840
|
startsinSuffixTextPlural: f,
|
|
870
|
-
startsInPrefixTextSingular:
|
|
871
|
-
startsinSuffixTextSingular:
|
|
872
|
-
endsInPrefixTextPlural:
|
|
873
|
-
endsinSuffixTextPlural:
|
|
874
|
-
endsInPrefixTextSingular:
|
|
875
|
-
endsinSuffixTextSingular:
|
|
841
|
+
startsInPrefixTextSingular: b,
|
|
842
|
+
startsinSuffixTextSingular: C,
|
|
843
|
+
endsInPrefixTextPlural: I,
|
|
844
|
+
endsinSuffixTextPlural: y,
|
|
845
|
+
endsInPrefixTextSingular: l,
|
|
846
|
+
endsinSuffixTextSingular: u,
|
|
876
847
|
endedText: D,
|
|
877
848
|
themeData: e == null ? void 0 : e.themeData,
|
|
878
849
|
numberOfListings: e == null ? void 0 : e.numberOfListings,
|
|
879
850
|
numberOfListingsTextSingular: V,
|
|
880
|
-
numberOfListingsTextPlural:
|
|
851
|
+
numberOfListingsTextPlural: F,
|
|
881
852
|
metadata: { name: q, accessor: e == null ? void 0 : e.accessor },
|
|
882
|
-
LinkComponent:
|
|
853
|
+
LinkComponent: X,
|
|
854
|
+
sponsored: e == null ? void 0 : e.sponsored
|
|
883
855
|
},
|
|
884
|
-
`campaign__item__${
|
|
856
|
+
`campaign__item__${O}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
|
|
885
857
|
));
|
|
886
|
-
return (t == null ? void 0 : t.length) <
|
|
858
|
+
return (t == null ? void 0 : t.length) < 4 && !z ? [
|
|
887
859
|
...B,
|
|
888
860
|
/* @__PURE__ */ n(
|
|
889
|
-
|
|
861
|
+
sr,
|
|
890
862
|
{
|
|
891
|
-
imageUrl:
|
|
863
|
+
imageUrl: A,
|
|
892
864
|
className: "campaign-item",
|
|
893
865
|
handleClick: Z
|
|
894
866
|
},
|
|
@@ -899,20 +871,20 @@ const sr = y(O)`
|
|
|
899
871
|
return /* @__PURE__ */ n(
|
|
900
872
|
cr,
|
|
901
873
|
{
|
|
902
|
-
isLoading:
|
|
874
|
+
isLoading: c,
|
|
903
875
|
keyPrefix: "sales-campaign-skeleton",
|
|
904
876
|
children: /* @__PURE__ */ n(
|
|
905
|
-
|
|
877
|
+
ar,
|
|
906
878
|
{
|
|
907
879
|
icon: a,
|
|
908
|
-
title:
|
|
880
|
+
title: o,
|
|
909
881
|
numOfSlides: E,
|
|
910
|
-
showNavigation:
|
|
911
|
-
hasNextPage:
|
|
912
|
-
handleFetchNextPage:
|
|
913
|
-
children:
|
|
882
|
+
showNavigation: h,
|
|
883
|
+
hasNextPage: j,
|
|
884
|
+
handleFetchNextPage: H,
|
|
885
|
+
children: Y
|
|
914
886
|
},
|
|
915
|
-
`sales-campaign-section__${
|
|
887
|
+
`sales-campaign-section__${z}`
|
|
916
888
|
)
|
|
917
889
|
}
|
|
918
890
|
);
|