@lanaco/lnc-react-ui 4.0.226 → 4.0.228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerNextSection.cjs +1 -1
- package/dist/BannerNextSection.js +1 -1
- package/dist/BannerSectionCarousel.cjs +3 -3
- package/dist/BannerSectionCarousel.js +19 -12
- package/dist/BannerSectionSimple.cjs +1 -1
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.cjs +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +4 -4
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +2 -2
- package/dist/BlogListSection.cjs +7 -7
- package/dist/BlogListSection.js +157 -207
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +1 -1
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +2 -11
- package/dist/BlogSingleSection.js +20 -36
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +4 -4
- package/dist/BlogsSectionLarge.cjs +8 -16
- package/dist/BlogsSectionLarge.js +41 -59
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +4 -4
- package/dist/BlogsSectionSimpleCentered.cjs +12 -25
- package/dist/BlogsSectionSimpleCentered.js +64 -98
- package/dist/BlogsSectionWithFilters.cjs +10 -21
- package/dist/BlogsSectionWithFilters.js +106 -154
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +41 -87
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/{CategorySimpleCard-TJRJ_2Sb.js → CategorySimpleCard-BE6F0PFT.js} +1 -1
- package/dist/{CategorySimpleCard-lIdzBNDa.cjs → CategorySimpleCard-Dr1FxIY9.cjs} +1 -1
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-B6uutenq.js → CustomStyles-YyM49BGx.js} +1 -1
- package/dist/{CustomStyles-dJQPJ4s4.cjs → CustomStyles-lzAjVMnI.cjs} +1 -1
- package/dist/DateInput.cjs +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +4 -4
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +5 -5
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.cjs +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
- package/dist/FieldOfInterestsMasonrySection.js +105 -159
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +2 -2
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +1 -1
- package/dist/GeneralWithTagsCardsSection.js +2 -2
- package/dist/GiftCardsSection.cjs +10 -14
- package/dist/GiftCardsSection.js +77 -147
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +10 -10
- package/dist/MasonryGeneralCardsSection.js +45 -44
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +1 -1
- package/dist/PartnerBrandsSection.cjs +1 -1
- package/dist/PartnerBrandsSection.js +1 -1
- package/dist/PartnerCardsSection.cjs +1 -1
- package/dist/PartnerCardsSection.js +1 -1
- package/dist/PartnerStatsSection.cjs +1 -1
- package/dist/PartnerStatsSection.js +1 -1
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +13 -13
- package/dist/ProductsWithBannerSection.js +87 -168
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +1 -1
- package/dist/QuattroCardsSection.js +2 -2
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +18 -22
- package/dist/ReviewsSection.js +101 -163
- package/dist/SalesCampaignsSection.cjs +25 -25
- package/dist/SalesCampaignsSection.js +267 -306
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +6 -19
- package/dist/ShopCardsSection.js +56 -102
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +3 -3
- package/dist/SimpleCategoriesSection.js +65 -68
- package/dist/SimpleProductsSection.cjs +7 -7
- package/dist/SimpleProductsSection.js +65 -138
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.cjs +1 -1
- package/dist/StatsSection.js +1 -1
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/index-B7fBsitY.js +45 -0
- package/dist/{index-BkztbBWe.cjs → index-B96icAp4.cjs} +1 -1
- package/dist/index-BMAvJQBG.cjs +9 -0
- package/dist/index-BUdvfHpp.cjs +5 -0
- package/dist/{index-tdg_Vmed.cjs → index-BXkL0HmX.cjs} +1 -1
- package/dist/index-C6amCwRZ.js +25 -0
- package/dist/index-C8R9lsWG.cjs +1 -0
- package/dist/{index-Djo0ZcRE.js → index-CCwfh-7A.js} +1 -1
- package/dist/{index-jGcy-5M_.js → index-CNUuIL97.js} +2 -2
- package/dist/index-CeQvy566.cjs +11 -0
- package/dist/{index-DsINTjQk.cjs → index-ChHUGfjn.cjs} +1 -1
- package/dist/index-Cyt4EUZ6.js +20 -0
- package/dist/{index-DEypPQRI.js → index-D6_3Q8lN.js} +1 -1
- package/dist/{index-D4-_TrSn.cjs → index-DnbzopIv.cjs} +1 -1
- package/dist/{index-rhYVjszT.js → index-DtVJCOWc.js} +2 -2
- package/dist/index-DueyY06i.cjs +368 -0
- package/dist/{index-D4OKsSqi.cjs → index-HzW6OHFF.cjs} +1 -1
- package/dist/{index-3GKF_7BJ.cjs → index-RrqW9QBJ.cjs} +1 -1
- package/dist/index-VTkAaA-n.js +18 -0
- package/dist/{index-CM6vzQBx.js → index-eOeAkUSU.js} +1 -1
- package/dist/{index-Dx2hfxCG.js → index-gHaK62BZ.js} +2 -2
- package/dist/index-zIt6TVeg.js +753 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/style-BFPpppS9.js +73 -0
- package/dist/{style-D54KOzZj.js → style-CP_urKvc.js} +1 -1
- package/dist/style-CQdEALKR.cjs +59 -0
- package/dist/{style-Boz6dk5s.cjs → style-cJUZrJoG.cjs} +1 -1
- package/dist/{utils-CITgSxXe.cjs → utils-BK6B_Y9X.cjs} +2 -2
- package/dist/{utils-MoGhNMmj.js → utils-BUdHa0nB.js} +16 -23
- package/package.json +1 -1
- package/dist/index-BGNavrtB.cjs +0 -368
- package/dist/index-BHcrzV2G.js +0 -54
- package/dist/index-Bj1KWOV4.cjs +0 -11
- package/dist/index-BsAddfgC.cjs +0 -1
- package/dist/index-Cn4bq6ZX.js +0 -84
- package/dist/index-CuRcxKQH.js +0 -42
- package/dist/index-DB1J-G6Z.js +0 -38
- package/dist/index-DkPva6Gr.cjs +0 -20
- package/dist/index-fzBXDy05.cjs +0 -16
- package/dist/index-gFZSZLba.js +0 -882
- package/dist/style-DvkivBNg.js +0 -74
- package/dist/style-Ito6YFqi.cjs +0 -64
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { b as
|
|
5
|
-
import { d as
|
|
6
|
-
import
|
|
7
|
-
import { D as
|
|
8
|
-
import
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { I as
|
|
13
|
-
import { m as
|
|
14
|
-
import { S as
|
|
15
|
-
const
|
|
1
|
+
import { jsx as r, jsxs as s, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as M, useRef as be, useEffect as ne, Fragment as Pe, createElement as Le, useState as X, Suspense as Ue, memo as Ee, useMemo as Me } from "react";
|
|
3
|
+
import { s as w } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
|
+
import { b as re, l as ee, m as je, z as Oe, A as Re, B as me } from "./utils-BUdHa0nB.js";
|
|
5
|
+
import { d as T, o as Be } from "./breakpoints-BubDitvo.js";
|
|
6
|
+
import ve from "./Icon.js";
|
|
7
|
+
import { D as pe } from "./ShopAvatar-4-fCYGEc.js";
|
|
8
|
+
import Ve from "./Badge.js";
|
|
9
|
+
import { u as we } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
|
+
import fe from "./IconButton.js";
|
|
11
|
+
import { u as Se } from "./useDetectMobile-B0Jog4jQ.js";
|
|
12
|
+
import { I as We } from "./index-DMmw5Ad5.js";
|
|
13
|
+
import { m as Ae } from "./motion-Ckekul_K.js";
|
|
14
|
+
import { S as Fe, c as he, d as He, e as qe, a as E, f as Ye } from "./style-BFPpppS9.js";
|
|
15
|
+
const Ze = w.a`
|
|
16
16
|
text-decoration: none;
|
|
17
17
|
color: var(--gray-950);
|
|
18
18
|
cursor: pointer;
|
|
@@ -23,7 +23,7 @@ const Ye = y.a`
|
|
|
23
23
|
border-radius: 1.25rem;
|
|
24
24
|
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
25
25
|
|
|
26
|
-
${(
|
|
26
|
+
${(n) => n != null && n.sponsored ? `
|
|
27
27
|
border: 1px solid transparent;
|
|
28
28
|
background:
|
|
29
29
|
linear-gradient(#ffffff, #ffffff) padding-box,
|
|
@@ -42,7 +42,7 @@ const Ye = y.a`
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
@media ${
|
|
45
|
+
@media ${T("S")} {
|
|
46
46
|
width: 100%;
|
|
47
47
|
gap: 0;
|
|
48
48
|
|
|
@@ -55,8 +55,8 @@ const Ye = y.a`
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
`,
|
|
59
|
-
border-radius: ${(
|
|
58
|
+
`, Ge = w.div`
|
|
59
|
+
border-radius: ${(n) => re(n.theme, "edged")};
|
|
60
60
|
cursor: pointer;
|
|
61
61
|
|
|
62
62
|
position: relative;
|
|
@@ -76,10 +76,10 @@ const Ye = y.a`
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
@media ${
|
|
79
|
+
@media ${T("S")} {
|
|
80
80
|
width: 14.5rem;
|
|
81
81
|
}
|
|
82
|
-
`, Je =
|
|
82
|
+
`, Je = w.div`
|
|
83
83
|
flex: 1;
|
|
84
84
|
display: flex;
|
|
85
85
|
flex-direction: column;
|
|
@@ -162,7 +162,7 @@ const Ye = y.a`
|
|
|
162
162
|
color: var(--gray-600, #676e79);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
@media ${
|
|
165
|
+
@media ${T("S")} {
|
|
166
166
|
padding: 1rem 0 0 0;
|
|
167
167
|
|
|
168
168
|
& .campaign-title-text {
|
|
@@ -187,16 +187,16 @@ const Ye = y.a`
|
|
|
187
187
|
gap: 0.25rem;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
`,
|
|
190
|
+
`, ue = (n = !1, t = !1, o = !1) => `
|
|
191
191
|
display: flex;
|
|
192
192
|
${t ? "flex-wrap: wrap;" : ""}
|
|
193
193
|
${t ? "" : "flex-wrap: nowrap;"}
|
|
194
|
-
${
|
|
194
|
+
${n ? "align-items: center;" : ""}
|
|
195
195
|
${o ? "justify-content: center;" : ""}
|
|
196
|
-
`, Ke =
|
|
196
|
+
`, Ke = w.a`
|
|
197
197
|
text-decoration: none;
|
|
198
198
|
color: var(--gray-950);
|
|
199
|
-
${(
|
|
199
|
+
${(n) => n.hasPermission === !0 && "cursor: pointer"};
|
|
200
200
|
|
|
201
201
|
&:focus,
|
|
202
202
|
&:hover,
|
|
@@ -211,13 +211,13 @@ const Ye = y.a`
|
|
|
211
211
|
text-decoration: none;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
${
|
|
214
|
+
${ue(!0)}
|
|
215
215
|
gap: 0.5rem;
|
|
216
216
|
color: var(--gray-950, #14161a);
|
|
217
217
|
font-weight: 500;
|
|
218
218
|
font-size: 1rem;
|
|
219
219
|
line-height: 1.5rem;
|
|
220
|
-
border-radius: ${(
|
|
220
|
+
border-radius: ${(n) => re(n.theme, "slight")};
|
|
221
221
|
transition: all 0.25s ease;
|
|
222
222
|
& .description {
|
|
223
223
|
font-size: 0.85rem;
|
|
@@ -226,7 +226,7 @@ const Ye = y.a`
|
|
|
226
226
|
font-weight: 400;
|
|
227
227
|
}
|
|
228
228
|
& .logo-wrapper {
|
|
229
|
-
${
|
|
229
|
+
${ue(!0, !1, !0)}
|
|
230
230
|
flex-shrink: 0;
|
|
231
231
|
border-radius: 999px;
|
|
232
232
|
|
|
@@ -265,261 +265,253 @@ const Ye = y.a`
|
|
|
265
265
|
background-color: var(--gray-95080, #14161acc);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
@media ${
|
|
268
|
+
@media ${T("S")} {
|
|
269
269
|
padding: 0;
|
|
270
270
|
font-size: 0.875rem;
|
|
271
271
|
}
|
|
272
|
-
`, Qe =
|
|
272
|
+
`, Qe = w.div`
|
|
273
273
|
position: absolute;
|
|
274
274
|
top: 0.5rem;
|
|
275
|
-
${(
|
|
275
|
+
${(n) => n.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
|
|
276
276
|
display: flex;
|
|
277
277
|
gap: 0.25rem;
|
|
278
|
-
`, Xe =
|
|
279
|
-
border-radius: ${(
|
|
280
|
-
background-color: ${(
|
|
278
|
+
`, Xe = w.div`
|
|
279
|
+
border-radius: ${(n) => re(n.theme, n.borderRadius || "slight")};
|
|
280
|
+
background-color: ${(n) => n == null ? void 0 : n.color};
|
|
281
281
|
color: white;
|
|
282
282
|
height: 1.5rem;
|
|
283
283
|
min-width: 1.5rem;
|
|
284
|
-
width: ${(
|
|
285
|
-
${(
|
|
284
|
+
width: ${(n) => n.fitContent === !0 ? "fit-content" : "1.5rem"};
|
|
285
|
+
${(n) => n.fitContent === !0 && "padding: 0 0.1rem;"};
|
|
286
286
|
font-size: 0.75rem;
|
|
287
287
|
display: flex;
|
|
288
288
|
align-items: center;
|
|
289
289
|
justify-content: center;
|
|
290
|
-
padding: ${(
|
|
290
|
+
padding: ${(n) => n.padding};
|
|
291
291
|
& i {
|
|
292
292
|
font-size: 0.813rem;
|
|
293
293
|
}
|
|
294
|
-
`,
|
|
295
|
-
const a =
|
|
296
|
-
return
|
|
297
|
-
var
|
|
298
|
-
const
|
|
299
|
-
|
|
294
|
+
`, en = M(({ src: n, ...t }, o) => {
|
|
295
|
+
const a = be();
|
|
296
|
+
return ne(() => {
|
|
297
|
+
var p;
|
|
298
|
+
const i = (f) => {
|
|
299
|
+
f.target.src = pe, f.onerror = null;
|
|
300
300
|
};
|
|
301
|
-
return (
|
|
302
|
-
var
|
|
303
|
-
(
|
|
301
|
+
return (p = a == null ? void 0 : a.current) == null || p.addEventListener("error", i), () => {
|
|
302
|
+
var f;
|
|
303
|
+
(f = a == null ? void 0 : a.current) == null || f.removeEventListener("error", i);
|
|
304
304
|
};
|
|
305
|
-
}, []), /* @__PURE__ */
|
|
306
|
-
}),
|
|
305
|
+
}, []), /* @__PURE__ */ r(Pe, { ref: o, children: ee(n) ? /* @__PURE__ */ r("img", { ref: a, src: n, ...t }) : /* @__PURE__ */ r("img", { src: pe, ...t }) });
|
|
306
|
+
}), nn = (n) => {
|
|
307
307
|
const {
|
|
308
308
|
uuid: t,
|
|
309
309
|
hasPermission: o = !0,
|
|
310
310
|
isUser: a,
|
|
311
|
-
image:
|
|
312
|
-
imageComponent:
|
|
313
|
-
name:
|
|
311
|
+
image: i,
|
|
312
|
+
imageComponent: p,
|
|
313
|
+
name: f,
|
|
314
314
|
notifications: S = 0,
|
|
315
315
|
color: l = "primary",
|
|
316
|
-
size:
|
|
316
|
+
size: h = "large",
|
|
317
317
|
style: c,
|
|
318
|
-
disabled:
|
|
318
|
+
disabled: _,
|
|
319
319
|
onClick: m = () => {
|
|
320
320
|
},
|
|
321
321
|
isActive: N,
|
|
322
322
|
className: b,
|
|
323
323
|
shopCategory: v,
|
|
324
324
|
// new
|
|
325
|
-
themeData:
|
|
326
|
-
LinkComponent:
|
|
327
|
-
} =
|
|
328
|
-
theme:
|
|
325
|
+
themeData: y,
|
|
326
|
+
LinkComponent: C
|
|
327
|
+
} = n, I = C || "a", u = {
|
|
328
|
+
theme: we(),
|
|
329
329
|
color: l,
|
|
330
|
-
size:
|
|
330
|
+
size: h,
|
|
331
331
|
style: c,
|
|
332
|
-
disabled:
|
|
332
|
+
disabled: _
|
|
333
333
|
};
|
|
334
|
-
return /* @__PURE__ */
|
|
334
|
+
return /* @__PURE__ */ Le(
|
|
335
335
|
Ke,
|
|
336
336
|
{
|
|
337
337
|
onClick: (g) => {
|
|
338
338
|
g == null || g.preventDefault(), g.stopPropagation(), o === !0 && (m == null || m());
|
|
339
339
|
},
|
|
340
340
|
...u,
|
|
341
|
-
key:
|
|
341
|
+
key: f,
|
|
342
342
|
className: `profile-item ${b}`,
|
|
343
343
|
hasPermission: o,
|
|
344
344
|
isActive: N,
|
|
345
|
-
themeColor: (
|
|
346
|
-
as:
|
|
347
|
-
...
|
|
345
|
+
themeColor: (y == null ? void 0 : y.code) || "transparent",
|
|
346
|
+
as: I,
|
|
347
|
+
...C ? { to: `/${a ? "user" : "shop"}/${t}` } : { href: `/${a ? "user" : "shop"}/${t}` }
|
|
348
348
|
},
|
|
349
|
-
/* @__PURE__ */
|
|
350
|
-
/* @__PURE__ */
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
-
!a && /* @__PURE__ */
|
|
353
|
-
S > 0 && /* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ r("div", { className: "logo-wrapper", children: je(p) ? p : i }),
|
|
350
|
+
/* @__PURE__ */ s("div", { children: [
|
|
351
|
+
/* @__PURE__ */ r("div", { className: "name", children: f }),
|
|
352
|
+
!a && /* @__PURE__ */ r("div", { className: "description", children: v }),
|
|
353
|
+
S > 0 && /* @__PURE__ */ r("div", { className: "notifications-number", children: /* @__PURE__ */ r(Ve, { className: "badge", color: "danger", size: "small", children: S > 99 ? "99+" : S }) })
|
|
354
354
|
] })
|
|
355
355
|
);
|
|
356
|
-
},
|
|
357
|
-
if (
|
|
358
|
-
const t = new Date(
|
|
356
|
+
}, xe = (n) => {
|
|
357
|
+
if (n !== void 0) {
|
|
358
|
+
const t = new Date(n), o = t.getFullYear(), a = t.getMonth() + 1;
|
|
359
359
|
return `${String(t.getDate()).padStart(2)}. ${a}. ${o}.`;
|
|
360
360
|
}
|
|
361
|
-
},
|
|
362
|
-
var
|
|
363
|
-
const o =
|
|
361
|
+
}, rn = M((n, t) => {
|
|
362
|
+
var ge;
|
|
363
|
+
const o = we(), {
|
|
364
364
|
uuid: a,
|
|
365
|
-
shopUuid:
|
|
366
|
-
title:
|
|
365
|
+
shopUuid: i,
|
|
366
|
+
title: p = "",
|
|
367
367
|
// description,
|
|
368
368
|
// badges,
|
|
369
|
-
coverPhoto:
|
|
369
|
+
coverPhoto: f,
|
|
370
370
|
onSelect: S,
|
|
371
371
|
// status,
|
|
372
372
|
startDate: l,
|
|
373
|
-
endDate:
|
|
373
|
+
endDate: h,
|
|
374
374
|
salesPackages: c,
|
|
375
|
-
shopName:
|
|
375
|
+
shopName: _,
|
|
376
376
|
shopCategory: m,
|
|
377
377
|
shopImage: N,
|
|
378
378
|
shopImageComponent: b,
|
|
379
379
|
className: v,
|
|
380
|
-
onSelectCard:
|
|
380
|
+
onSelectCard: y = () => {
|
|
381
381
|
},
|
|
382
|
-
onSelectShop:
|
|
382
|
+
onSelectShop: C = () => {
|
|
383
383
|
},
|
|
384
|
-
upcoming:
|
|
384
|
+
upcoming: I = !1,
|
|
385
385
|
upcomingCampaignText: d,
|
|
386
386
|
campaignSingleText: u,
|
|
387
387
|
salesCampaignTypes: g = [],
|
|
388
|
-
startsInPrefixTextPlural:
|
|
388
|
+
startsInPrefixTextPlural: A,
|
|
389
389
|
startsinSuffixTextPlural: F,
|
|
390
|
-
startsInPrefixTextSingular:
|
|
391
|
-
startsinSuffixTextSingular:
|
|
392
|
-
endsInPrefixTextPlural:
|
|
393
|
-
endsinSuffixTextPlural:
|
|
394
|
-
endsInPrefixTextSingular:
|
|
395
|
-
endsinSuffixTextSingular:
|
|
396
|
-
endedText:
|
|
390
|
+
startsInPrefixTextSingular: H,
|
|
391
|
+
startsinSuffixTextSingular: q,
|
|
392
|
+
endsInPrefixTextPlural: te,
|
|
393
|
+
endsinSuffixTextPlural: ae,
|
|
394
|
+
endsInPrefixTextSingular: Y,
|
|
395
|
+
endsinSuffixTextSingular: oe,
|
|
396
|
+
endedText: Z,
|
|
397
397
|
themeData: se,
|
|
398
398
|
numberOfListings: z,
|
|
399
|
-
numberOfListingsTextSingular:
|
|
400
|
-
numberOfListingsTextPlural:
|
|
399
|
+
numberOfListingsTextSingular: G,
|
|
400
|
+
numberOfListingsTextPlural: j,
|
|
401
401
|
metadata: e,
|
|
402
|
-
LinkComponent:
|
|
403
|
-
sponsored:
|
|
404
|
-
...
|
|
405
|
-
} =
|
|
406
|
-
if (!
|
|
407
|
-
const x =
|
|
408
|
-
if (!
|
|
409
|
-
const
|
|
410
|
-
if (
|
|
411
|
-
const
|
|
412
|
-
return { hours:
|
|
413
|
-
}, [
|
|
414
|
-
|
|
415
|
-
if (!
|
|
402
|
+
LinkComponent: O,
|
|
403
|
+
sponsored: ie,
|
|
404
|
+
...J
|
|
405
|
+
} = n, ye = O || "a", le = be(), L = Oe(l, h), R = L !== -1 && (L == null ? void 0 : L.isEnded) === !0, B = L !== -1 && !R, U = Re(l), ce = me(h), de = ce ? new Date(ce) : null, $e = /* @__PURE__ */ new Date(), K = de ? de.getTime() - $e.getTime() : null, V = K !== null && K > 0 && K < 24 * 60 * 60 * 1e3, _e = (x, P, k, $, D) => k === 1 ? `${x} ${k} ${$}` : `${P} ${k} ${D}`, Ce = () => {
|
|
406
|
+
if (!h) return null;
|
|
407
|
+
const x = me(h), P = x ? new Date(x) : null;
|
|
408
|
+
if (!P) return null;
|
|
409
|
+
const k = ke, $ = P.getTime() - k.getTime();
|
|
410
|
+
if ($ <= 0) return null;
|
|
411
|
+
const D = Math.floor($ / (1e3 * 60 * 60)), ze = Math.floor($ % (1e3 * 60 * 60) / (1e3 * 60)), De = Math.floor($ % (1e3 * 60) / 1e3);
|
|
412
|
+
return { hours: D, minutes: ze, seconds: De };
|
|
413
|
+
}, [ke, Ne] = X(/* @__PURE__ */ new Date());
|
|
414
|
+
ne(() => {
|
|
415
|
+
if (!V) return;
|
|
416
416
|
const x = setInterval(() => {
|
|
417
|
-
|
|
417
|
+
Ne(/* @__PURE__ */ new Date());
|
|
418
418
|
}, 1e3);
|
|
419
419
|
return () => clearInterval(x);
|
|
420
|
-
}, [
|
|
421
|
-
const
|
|
422
|
-
return /* @__PURE__ */
|
|
423
|
-
|
|
420
|
+
}, [V]);
|
|
421
|
+
const W = V ? Ce() : null, Q = !!(B && !R && V && W), Ie = Q || R || !B && U !== null && U > 0;
|
|
422
|
+
return /* @__PURE__ */ s(
|
|
423
|
+
Ze,
|
|
424
424
|
{
|
|
425
|
-
ref:
|
|
425
|
+
ref: le,
|
|
426
426
|
theme: o,
|
|
427
427
|
className: v,
|
|
428
428
|
name: e == null ? void 0 : e.name,
|
|
429
429
|
"data-accessor": e == null ? void 0 : e.accessor,
|
|
430
|
-
onClick: (x) =>
|
|
431
|
-
as:
|
|
432
|
-
...
|
|
433
|
-
sponsored:
|
|
434
|
-
...
|
|
430
|
+
onClick: (x) => y(x, le),
|
|
431
|
+
as: ye,
|
|
432
|
+
...O ? { to: `/shop/${i}/campaign/${a}` } : { href: `/shop/${i}/campaign/${a}` },
|
|
433
|
+
sponsored: ie,
|
|
434
|
+
...J,
|
|
435
435
|
children: [
|
|
436
|
-
/* @__PURE__ */
|
|
437
|
-
/* @__PURE__ */
|
|
438
|
-
/* @__PURE__ */
|
|
439
|
-
var
|
|
440
|
-
return /* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ s(Ge, { theme: o, children: [
|
|
437
|
+
/* @__PURE__ */ r("img", { src: f }),
|
|
438
|
+
/* @__PURE__ */ r(Qe, { children: c == null ? void 0 : c.map((x, P) => {
|
|
439
|
+
var k, $;
|
|
440
|
+
return /* @__PURE__ */ r(
|
|
441
441
|
Xe,
|
|
442
442
|
{
|
|
443
|
-
color: (
|
|
443
|
+
color: (k = g == null ? void 0 : g.find((D) => D.value === x)) == null ? void 0 : k.color,
|
|
444
444
|
theme: o,
|
|
445
|
-
children: /* @__PURE__ */
|
|
446
|
-
|
|
445
|
+
children: /* @__PURE__ */ r(
|
|
446
|
+
ve,
|
|
447
447
|
{
|
|
448
|
-
icon: (
|
|
448
|
+
icon: ($ = g == null ? void 0 : g.find((D) => D.value === x)) == null ? void 0 : $.icon
|
|
449
449
|
}
|
|
450
450
|
)
|
|
451
451
|
},
|
|
452
|
-
`package__${
|
|
452
|
+
`package__${P}`
|
|
453
453
|
);
|
|
454
454
|
}) })
|
|
455
455
|
] }),
|
|
456
|
-
/* @__PURE__ */
|
|
457
|
-
/* @__PURE__ */
|
|
458
|
-
/* @__PURE__ */
|
|
459
|
-
/* @__PURE__ */
|
|
460
|
-
|
|
461
|
-
|
|
456
|
+
/* @__PURE__ */ s(Je, { theme: o, children: [
|
|
457
|
+
/* @__PURE__ */ r("div", { className: "text-block-wrapper", children: /* @__PURE__ */ s("div", { className: "title-block-wrapper", children: [
|
|
458
|
+
/* @__PURE__ */ r("div", { className: "campaign-title", children: (ge = I ? d : u) == null ? void 0 : ge.toUpperCase() }),
|
|
459
|
+
/* @__PURE__ */ r("div", { className: "campaign-title-text", children: p }),
|
|
460
|
+
h && l && /* @__PURE__ */ s("div", { className: "campaign-date", children: [
|
|
461
|
+
xe(l),
|
|
462
462
|
" - ",
|
|
463
|
-
|
|
463
|
+
xe(h)
|
|
464
464
|
] }),
|
|
465
|
-
/* @__PURE__ */
|
|
466
|
-
z > 0 && /* @__PURE__ */
|
|
465
|
+
/* @__PURE__ */ s("div", { className: "timestamp-text", children: [
|
|
466
|
+
z > 0 && /* @__PURE__ */ s("span", { className: "listings-text", children: [
|
|
467
467
|
z,
|
|
468
468
|
" ",
|
|
469
|
-
z === 1 ?
|
|
470
|
-
" "
|
|
471
|
-
"∙",
|
|
472
|
-
" "
|
|
469
|
+
z === 1 ? G : j,
|
|
470
|
+
Ie ? " ∙ " : ""
|
|
473
471
|
] }),
|
|
474
|
-
/* @__PURE__ */
|
|
472
|
+
/* @__PURE__ */ r(
|
|
475
473
|
"span",
|
|
476
474
|
{
|
|
477
|
-
className: `duration-text ${
|
|
478
|
-
children:
|
|
479
|
-
|
|
475
|
+
className: `duration-text ${Q ? "urgent" : ""} ${B ? "" : "starts-in"}`,
|
|
476
|
+
children: Q ? /* @__PURE__ */ s("div", { className: "countdown-timer", children: [
|
|
477
|
+
Y,
|
|
480
478
|
" ",
|
|
481
|
-
|
|
479
|
+
W.hours.toString().padStart(2, "0"),
|
|
482
480
|
":",
|
|
483
|
-
|
|
481
|
+
W.minutes.toString().padStart(2, "0"),
|
|
484
482
|
":",
|
|
485
|
-
|
|
486
|
-
] }) :
|
|
487
|
-
j,
|
|
488
|
-
q,
|
|
489
|
-
L,
|
|
490
|
-
Z,
|
|
491
|
-
Y
|
|
492
|
-
) : X ? J || "Završena" : !ee && re !== null && re > 0 ? me(
|
|
493
|
-
A,
|
|
494
|
-
V,
|
|
495
|
-
re,
|
|
483
|
+
W.seconds.toString().padStart(2, "0")
|
|
484
|
+
] }) : R ? Z || "Završena" : !B && U !== null && U > 0 ? _e(
|
|
496
485
|
H,
|
|
486
|
+
A,
|
|
487
|
+
U,
|
|
488
|
+
q,
|
|
497
489
|
F
|
|
498
490
|
) : null
|
|
499
491
|
}
|
|
500
492
|
)
|
|
501
493
|
] })
|
|
502
494
|
] }) }),
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
-
|
|
495
|
+
/* @__PURE__ */ r(
|
|
496
|
+
nn,
|
|
505
497
|
{
|
|
506
498
|
hasPermission: !0,
|
|
507
|
-
image: /* @__PURE__ */
|
|
499
|
+
image: /* @__PURE__ */ r(en, { src: N }),
|
|
508
500
|
imageComponent: b,
|
|
509
501
|
themeData: se,
|
|
510
502
|
isActive: !0,
|
|
511
503
|
isUser: !1,
|
|
512
|
-
name:
|
|
504
|
+
name: _,
|
|
513
505
|
shopCategory: m,
|
|
514
|
-
uuid:
|
|
515
|
-
onClick: () =>
|
|
506
|
+
uuid: i,
|
|
507
|
+
onClick: () => C(i)
|
|
516
508
|
}
|
|
517
509
|
)
|
|
518
510
|
] })
|
|
519
511
|
]
|
|
520
512
|
}
|
|
521
513
|
);
|
|
522
|
-
}),
|
|
514
|
+
}), tn = w.div`
|
|
523
515
|
margin: 0 auto;
|
|
524
516
|
display: flex;
|
|
525
517
|
flex-direction: column;
|
|
@@ -570,7 +562,7 @@ const Ye = y.a`
|
|
|
570
562
|
}
|
|
571
563
|
}
|
|
572
564
|
|
|
573
|
-
@media ${
|
|
565
|
+
@media ${T("S")} {
|
|
574
566
|
gap: 1.25rem;
|
|
575
567
|
|
|
576
568
|
& .scrollable-section__header {
|
|
@@ -582,17 +574,17 @@ const Ye = y.a`
|
|
|
582
574
|
}
|
|
583
575
|
}
|
|
584
576
|
}
|
|
585
|
-
`,
|
|
577
|
+
`, an = w(Ae.div)`
|
|
586
578
|
display: grid;
|
|
587
|
-
grid-template-columns: repeat(${(
|
|
579
|
+
grid-template-columns: repeat(${(n) => n == null ? void 0 : n.numOfColumns}, 1fr);
|
|
588
580
|
gap: 1.5rem;
|
|
589
581
|
width: 100%;
|
|
590
582
|
|
|
591
|
-
@media ${
|
|
592
|
-
grid-template-columns: repeat(${(
|
|
583
|
+
@media ${Be("M")} {
|
|
584
|
+
grid-template-columns: repeat(${(n) => (n == null ? void 0 : n.tabletNumOfColumns) ?? 2}, 1fr);
|
|
593
585
|
}
|
|
594
586
|
|
|
595
|
-
@media ${
|
|
587
|
+
@media ${T("S")} {
|
|
596
588
|
display: flex;
|
|
597
589
|
flex-wrap: nowrap;
|
|
598
590
|
overflow-x: scroll;
|
|
@@ -614,53 +606,53 @@ const Ye = y.a`
|
|
|
614
606
|
/* Safari and Chrome */
|
|
615
607
|
}
|
|
616
608
|
}
|
|
617
|
-
`,
|
|
609
|
+
`, on = M(
|
|
618
610
|
({
|
|
619
|
-
icon:
|
|
611
|
+
icon: n,
|
|
620
612
|
title: t,
|
|
621
613
|
numOfSlides: o = 4,
|
|
622
614
|
tabletNumOfSlides: a,
|
|
623
|
-
showNavigation:
|
|
624
|
-
hasNextPage:
|
|
625
|
-
className:
|
|
615
|
+
showNavigation: i = !0,
|
|
616
|
+
hasNextPage: p = !1,
|
|
617
|
+
className: f = "",
|
|
626
618
|
handleFetchNextPage: S = () => {
|
|
627
619
|
},
|
|
628
620
|
children: l
|
|
629
|
-
},
|
|
630
|
-
const [c,
|
|
631
|
-
|
|
621
|
+
}, h) => {
|
|
622
|
+
const [c, _] = X(0), [m, N] = X(1), b = Se(), v = (l == null ? void 0 : l.length) ?? 1;
|
|
623
|
+
ne(() => {
|
|
632
624
|
const d = () => {
|
|
633
625
|
N(o);
|
|
634
626
|
};
|
|
635
627
|
return window.addEventListener("resize", d), d(), () => window.removeEventListener("resize", d);
|
|
636
628
|
}, []);
|
|
637
|
-
const
|
|
629
|
+
const y = b ? l : l == null ? void 0 : l.slice(c, c + m), C = (d) => {
|
|
638
630
|
var g;
|
|
639
631
|
(g = d == null ? void 0 : d.target) == null || g.blur();
|
|
640
632
|
const u = c + m;
|
|
641
|
-
u < v &&
|
|
642
|
-
},
|
|
633
|
+
u < v && _(u), u + m >= v && p && S();
|
|
634
|
+
}, I = (d) => {
|
|
643
635
|
var u;
|
|
644
|
-
(u = d == null ? void 0 : d.target) == null || u.blur(), c - m >= 0 &&
|
|
636
|
+
(u = d == null ? void 0 : d.target) == null || u.blur(), c - m >= 0 && _(c - m);
|
|
645
637
|
};
|
|
646
|
-
return /* @__PURE__ */
|
|
647
|
-
/* @__PURE__ */
|
|
648
|
-
|
|
649
|
-
|
|
638
|
+
return /* @__PURE__ */ s(tn, { ref: h, className: f, children: [
|
|
639
|
+
/* @__PURE__ */ r("div", { className: "scrollable-section__header", children: /* @__PURE__ */ s("div", { className: "scrollable-section__title", children: [
|
|
640
|
+
ee(n) && /* @__PURE__ */ r(
|
|
641
|
+
ve,
|
|
650
642
|
{
|
|
651
|
-
icon:
|
|
643
|
+
icon: n,
|
|
652
644
|
color: "primary",
|
|
653
645
|
sizeInUnits: "1.5rem",
|
|
654
646
|
className: "title__icon"
|
|
655
647
|
}
|
|
656
648
|
),
|
|
657
|
-
|
|
649
|
+
ee(t) && /* @__PURE__ */ s("div", { className: "title__text", children: [
|
|
658
650
|
" ",
|
|
659
651
|
t
|
|
660
652
|
] })
|
|
661
653
|
] }) }),
|
|
662
|
-
/* @__PURE__ */
|
|
663
|
-
|
|
654
|
+
/* @__PURE__ */ s(
|
|
655
|
+
an,
|
|
664
656
|
{
|
|
665
657
|
numOfColumns: o,
|
|
666
658
|
tabletNumOfColumns: a,
|
|
@@ -676,15 +668,15 @@ const Ye = y.a`
|
|
|
676
668
|
},
|
|
677
669
|
className: "scrollable-section__content",
|
|
678
670
|
children: [
|
|
679
|
-
|
|
680
|
-
b &&
|
|
671
|
+
y,
|
|
672
|
+
b && p && /* @__PURE__ */ r(We, { onIsVisible: S })
|
|
681
673
|
]
|
|
682
674
|
},
|
|
683
675
|
`scrollable-section__content-${c}`
|
|
684
676
|
),
|
|
685
|
-
|
|
686
|
-
/* @__PURE__ */
|
|
687
|
-
|
|
677
|
+
i && v > m && !b && /* @__PURE__ */ s("div", { className: "scrollable-section__navigation", children: [
|
|
678
|
+
/* @__PURE__ */ r(
|
|
679
|
+
fe,
|
|
688
680
|
{
|
|
689
681
|
icon: "angle-left",
|
|
690
682
|
borderRadius: "curved",
|
|
@@ -692,11 +684,11 @@ const Ye = y.a`
|
|
|
692
684
|
color: "neutral",
|
|
693
685
|
className: "navigation__arrow",
|
|
694
686
|
disabled: c === 0,
|
|
695
|
-
onClick:
|
|
687
|
+
onClick: I
|
|
696
688
|
}
|
|
697
689
|
),
|
|
698
|
-
/* @__PURE__ */
|
|
699
|
-
|
|
690
|
+
/* @__PURE__ */ r(
|
|
691
|
+
fe,
|
|
700
692
|
{
|
|
701
693
|
icon: "angle-right",
|
|
702
694
|
borderRadius: "curved",
|
|
@@ -704,17 +696,17 @@ const Ye = y.a`
|
|
|
704
696
|
color: "neutral",
|
|
705
697
|
className: "navigation__arrow",
|
|
706
698
|
disabled: c + m >= v,
|
|
707
|
-
onClick:
|
|
699
|
+
onClick: C
|
|
708
700
|
}
|
|
709
701
|
)
|
|
710
702
|
] })
|
|
711
703
|
] });
|
|
712
704
|
}
|
|
713
|
-
),
|
|
705
|
+
), sn = w.div`
|
|
714
706
|
display: flex;
|
|
715
707
|
flex: 1;
|
|
716
708
|
width: 100%;
|
|
717
|
-
max-height: ${(
|
|
709
|
+
max-height: ${(n) => n == null ? void 0 : n.maxHeight};
|
|
718
710
|
border-radius: 1.25rem;
|
|
719
711
|
|
|
720
712
|
&:hover {
|
|
@@ -727,26 +719,26 @@ const Ye = y.a`
|
|
|
727
719
|
border-radius: 1.25rem;
|
|
728
720
|
object-fit: cover;
|
|
729
721
|
}
|
|
730
|
-
`,
|
|
722
|
+
`, ln = M(
|
|
731
723
|
({
|
|
732
|
-
sectionName:
|
|
724
|
+
sectionName: n,
|
|
733
725
|
imageUrl: t,
|
|
734
726
|
maxHeight: o = "16.25rem",
|
|
735
727
|
className: a = "",
|
|
736
|
-
handleClick:
|
|
728
|
+
handleClick: i = () => {
|
|
737
729
|
}
|
|
738
|
-
},
|
|
739
|
-
|
|
730
|
+
}, p) => /* @__PURE__ */ r(
|
|
731
|
+
sn,
|
|
740
732
|
{
|
|
741
|
-
ref:
|
|
733
|
+
ref: p,
|
|
742
734
|
maxHeight: o,
|
|
743
|
-
onClick:
|
|
735
|
+
onClick: i,
|
|
744
736
|
className: `itemless-banner ${a}`,
|
|
745
|
-
children: /* @__PURE__ */
|
|
737
|
+
children: /* @__PURE__ */ r("img", { src: t, alt: `itemless-banner__${n}` })
|
|
746
738
|
}
|
|
747
739
|
)
|
|
748
|
-
),
|
|
749
|
-
@media ${
|
|
740
|
+
), cn = w(Fe)`
|
|
741
|
+
@media ${T("S")} {
|
|
750
742
|
flex-direction: column;
|
|
751
743
|
|
|
752
744
|
& .skeleton__image {
|
|
@@ -760,96 +752,65 @@ const Ye = y.a`
|
|
|
760
752
|
}
|
|
761
753
|
}
|
|
762
754
|
}
|
|
763
|
-
`,
|
|
764
|
-
/* @__PURE__ */
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
},
|
|
772
|
-
|
|
773
|
-
),
|
|
774
|
-
/* @__PURE__ */ i(be, { noGradient: !0, children: [
|
|
775
|
-
/* @__PURE__ */ n(w, { height: "1rem" }),
|
|
776
|
-
/* @__PURE__ */ n(w, { height: "1.75rem" }),
|
|
777
|
-
/* @__PURE__ */ n(w, { height: "1.25rem" }),
|
|
778
|
-
/* @__PURE__ */ n(w, { height: "2rem" }),
|
|
779
|
-
/* @__PURE__ */ i(M, { alignItems: "center", noGradient: !0, children: [
|
|
780
|
-
/* @__PURE__ */ n(ve, { width: "2.5rem", height: "2.5rem" }),
|
|
781
|
-
/* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
|
|
782
|
-
] })
|
|
783
|
-
] })
|
|
784
|
-
] }),
|
|
785
|
-
/* @__PURE__ */ i(M, { noGradient: !0, children: [
|
|
786
|
-
/* @__PURE__ */ n(
|
|
787
|
-
xe,
|
|
788
|
-
{
|
|
789
|
-
width: "13.75rem",
|
|
790
|
-
height: "13.75rem",
|
|
791
|
-
className: "skeleton__image"
|
|
792
|
-
},
|
|
793
|
-
`${r}-2`
|
|
794
|
-
),
|
|
795
|
-
/* @__PURE__ */ i(be, { noGradient: !0, children: [
|
|
796
|
-
/* @__PURE__ */ n(w, { height: "1rem" }),
|
|
797
|
-
/* @__PURE__ */ n(w, { height: "1.75rem" }),
|
|
798
|
-
/* @__PURE__ */ n(w, { height: "1.25rem" }),
|
|
799
|
-
/* @__PURE__ */ n(w, { height: "2rem" }),
|
|
800
|
-
/* @__PURE__ */ i(M, { alignItems: "center", noGradient: !0, children: [
|
|
801
|
-
/* @__PURE__ */ n(ve, { width: "2.5rem", height: "2.5rem" }),
|
|
802
|
-
/* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
|
|
803
|
-
] })
|
|
755
|
+
`, dn = ({ keyPrefix: n }) => /* @__PURE__ */ r(cn, { children: [1, 2].map((t) => /* @__PURE__ */ s(he, { children: [
|
|
756
|
+
/* @__PURE__ */ r(He, { size: "13.75rem", className: "skeleton__image" }),
|
|
757
|
+
/* @__PURE__ */ s(qe, { children: [
|
|
758
|
+
/* @__PURE__ */ r(E, { width: "100%", height: "1rem" }),
|
|
759
|
+
/* @__PURE__ */ r(E, { width: "100%", height: "1.75rem" }),
|
|
760
|
+
/* @__PURE__ */ r(E, { width: "100%", height: "1.25rem" }),
|
|
761
|
+
/* @__PURE__ */ r(E, { width: "100%", height: "2rem" }),
|
|
762
|
+
/* @__PURE__ */ s(he, { alignItems: "center", children: [
|
|
763
|
+
/* @__PURE__ */ r(Ye, { size: "2.5rem" }),
|
|
764
|
+
/* @__PURE__ */ r(E, { width: "5rem", height: "1.25rem" })
|
|
804
765
|
] })
|
|
805
766
|
] })
|
|
806
|
-
] }),
|
|
807
|
-
keyPrefix:
|
|
767
|
+
] }, `${n}-${t}`)) }), gn = ({
|
|
768
|
+
keyPrefix: n,
|
|
808
769
|
isLoading: t = !1,
|
|
809
|
-
fallbackComponent: o = /* @__PURE__ */
|
|
770
|
+
fallbackComponent: o = /* @__PURE__ */ r(Te, {}),
|
|
810
771
|
children: a
|
|
811
|
-
}) => /* @__PURE__ */
|
|
772
|
+
}) => /* @__PURE__ */ r(Ue, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ r(dn, { keyPrefix: n }) : a }), mn = Ee(rn), Nn = M(
|
|
812
773
|
({
|
|
813
|
-
sellerType:
|
|
774
|
+
sellerType: n = "Shop",
|
|
814
775
|
items: t = [],
|
|
815
776
|
title: o,
|
|
816
777
|
icon: a,
|
|
817
|
-
isLoading:
|
|
818
|
-
onSelectCard:
|
|
778
|
+
isLoading: i,
|
|
779
|
+
onSelectCard: p = () => {
|
|
819
780
|
},
|
|
820
|
-
onSelectShop:
|
|
781
|
+
onSelectShop: f = () => {
|
|
821
782
|
},
|
|
822
783
|
getImage: S = () => {
|
|
823
784
|
},
|
|
824
785
|
campaignSingleText: l,
|
|
825
|
-
upcomingCampaignText:
|
|
786
|
+
upcomingCampaignText: h,
|
|
826
787
|
salesCampaignTypes: c = [],
|
|
827
|
-
startsInPrefixTextPlural:
|
|
788
|
+
startsInPrefixTextPlural: _,
|
|
828
789
|
startsinSuffixTextPlural: m,
|
|
829
790
|
startsInPrefixTextSingular: N,
|
|
830
791
|
startsinSuffixTextSingular: b,
|
|
831
792
|
endsInPrefixTextPlural: v,
|
|
832
|
-
endsinSuffixTextPlural:
|
|
833
|
-
endsInPrefixTextSingular:
|
|
834
|
-
endsinSuffixTextSingular:
|
|
793
|
+
endsinSuffixTextPlural: y,
|
|
794
|
+
endsInPrefixTextSingular: C,
|
|
795
|
+
endsinSuffixTextSingular: I,
|
|
835
796
|
endedText: d,
|
|
836
797
|
numOfSlides: u = 4,
|
|
837
798
|
showNavigation: g = !0,
|
|
838
|
-
numberOfListingsTextSingular:
|
|
799
|
+
numberOfListingsTextSingular: A,
|
|
839
800
|
numberOfListingsTextPlural: F,
|
|
840
|
-
itemlessImageUrl:
|
|
841
|
-
itemlessMaxHeight:
|
|
842
|
-
handleItemlessLink:
|
|
801
|
+
itemlessImageUrl: H,
|
|
802
|
+
itemlessMaxHeight: q,
|
|
803
|
+
handleItemlessLink: te = () => {
|
|
843
804
|
},
|
|
844
|
-
componentName:
|
|
845
|
-
hasNextPage:
|
|
846
|
-
handleFetchNextPage:
|
|
805
|
+
componentName: ae,
|
|
806
|
+
hasNextPage: Y = !1,
|
|
807
|
+
handleFetchNextPage: oe = () => {
|
|
847
808
|
},
|
|
848
|
-
LinkComponent:
|
|
809
|
+
LinkComponent: Z
|
|
849
810
|
}, se) => {
|
|
850
|
-
const z =
|
|
851
|
-
let
|
|
852
|
-
|
|
811
|
+
const z = Se(), G = Me(() => {
|
|
812
|
+
let j = t == null ? void 0 : t.map((e, O) => /* @__PURE__ */ r(
|
|
813
|
+
mn,
|
|
853
814
|
{
|
|
854
815
|
className: `campaign-item ${(t == null ? void 0 : t.length) === 1 ? "horizontal-campaign-item" : ""}`,
|
|
855
816
|
coverPhoto: S(
|
|
@@ -859,7 +820,7 @@ const Ye = y.a`
|
|
|
859
820
|
description: e == null ? void 0 : e.description,
|
|
860
821
|
endDate: e == null ? void 0 : e.endDate,
|
|
861
822
|
salesPackages: e == null ? void 0 : e.salesPackages,
|
|
862
|
-
sellerType:
|
|
823
|
+
sellerType: n,
|
|
863
824
|
shopImage: e == null ? void 0 : e.profileImage,
|
|
864
825
|
shopImageComponent: e == null ? void 0 : e.profileImageComponent,
|
|
865
826
|
shopName: e == null ? void 0 : e.shopName,
|
|
@@ -868,62 +829,62 @@ const Ye = y.a`
|
|
|
868
829
|
startDate: e == null ? void 0 : e.startDate,
|
|
869
830
|
title: e == null ? void 0 : e.name,
|
|
870
831
|
uuid: e == null ? void 0 : e.campaignUuid,
|
|
871
|
-
onSelectCard: (
|
|
872
|
-
onSelectShop: () =>
|
|
832
|
+
onSelectCard: (ie, J) => p(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, J),
|
|
833
|
+
onSelectShop: () => f(e == null ? void 0 : e.shopUuid),
|
|
873
834
|
campaignSingleText: l,
|
|
874
|
-
upcomingCampaignText:
|
|
835
|
+
upcomingCampaignText: h,
|
|
875
836
|
upcoming: e == null ? void 0 : e.upcoming,
|
|
876
837
|
salesCampaignTypes: c,
|
|
877
|
-
startsInPrefixTextPlural:
|
|
838
|
+
startsInPrefixTextPlural: _,
|
|
878
839
|
startsinSuffixTextPlural: m,
|
|
879
840
|
startsInPrefixTextSingular: N,
|
|
880
841
|
startsinSuffixTextSingular: b,
|
|
881
842
|
endsInPrefixTextPlural: v,
|
|
882
|
-
endsinSuffixTextPlural:
|
|
883
|
-
endsInPrefixTextSingular:
|
|
884
|
-
endsinSuffixTextSingular:
|
|
843
|
+
endsinSuffixTextPlural: y,
|
|
844
|
+
endsInPrefixTextSingular: C,
|
|
845
|
+
endsinSuffixTextSingular: I,
|
|
885
846
|
endedText: d,
|
|
886
847
|
themeData: e == null ? void 0 : e.themeData,
|
|
887
848
|
numberOfListings: e == null ? void 0 : e.numberOfListings,
|
|
888
|
-
numberOfListingsTextSingular:
|
|
849
|
+
numberOfListingsTextSingular: A,
|
|
889
850
|
numberOfListingsTextPlural: F,
|
|
890
|
-
metadata: { name:
|
|
891
|
-
LinkComponent:
|
|
851
|
+
metadata: { name: ae, accessor: e == null ? void 0 : e.accessor },
|
|
852
|
+
LinkComponent: Z,
|
|
892
853
|
sponsored: e == null ? void 0 : e.sponsored
|
|
893
854
|
},
|
|
894
|
-
`campaign__item__${
|
|
855
|
+
`campaign__item__${O}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
|
|
895
856
|
));
|
|
896
857
|
return (t == null ? void 0 : t.length) < 4 && !z ? [
|
|
897
|
-
...
|
|
898
|
-
/* @__PURE__ */
|
|
899
|
-
|
|
858
|
+
...j,
|
|
859
|
+
/* @__PURE__ */ r(
|
|
860
|
+
ln,
|
|
900
861
|
{
|
|
901
|
-
imageUrl:
|
|
862
|
+
imageUrl: H,
|
|
902
863
|
className: "campaign-item",
|
|
903
|
-
maxHeight:
|
|
904
|
-
handleClick:
|
|
864
|
+
maxHeight: q,
|
|
865
|
+
handleClick: te
|
|
905
866
|
},
|
|
906
867
|
"itemless-campaign-section-banner"
|
|
907
868
|
)
|
|
908
|
-
] :
|
|
869
|
+
] : j;
|
|
909
870
|
}, [t]);
|
|
910
|
-
return /* @__PURE__ */
|
|
911
|
-
|
|
871
|
+
return /* @__PURE__ */ r(
|
|
872
|
+
gn,
|
|
912
873
|
{
|
|
913
|
-
isLoading:
|
|
874
|
+
isLoading: i,
|
|
914
875
|
keyPrefix: "sales-campaign-skeleton",
|
|
915
|
-
children: /* @__PURE__ */
|
|
916
|
-
|
|
876
|
+
children: /* @__PURE__ */ r(
|
|
877
|
+
on,
|
|
917
878
|
{
|
|
918
879
|
icon: a,
|
|
919
880
|
title: o,
|
|
920
881
|
numOfSlides: u,
|
|
921
882
|
tabletNumOfSlides: 2,
|
|
922
883
|
showNavigation: g,
|
|
923
|
-
hasNextPage:
|
|
924
|
-
handleFetchNextPage:
|
|
884
|
+
hasNextPage: Y,
|
|
885
|
+
handleFetchNextPage: oe,
|
|
925
886
|
className: (t == null ? void 0 : t.length) < 4 && !z ? "itemless" : "",
|
|
926
|
-
children:
|
|
887
|
+
children: G
|
|
927
888
|
},
|
|
928
889
|
`sales-campaign-section__${z}`
|
|
929
890
|
)
|
|
@@ -932,5 +893,5 @@ const Ye = y.a`
|
|
|
932
893
|
}
|
|
933
894
|
);
|
|
934
895
|
export {
|
|
935
|
-
|
|
896
|
+
Nn as default
|
|
936
897
|
};
|