@lanaco/lnc-react-ui 4.0.227 → 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 +1 -1
- package/dist/BannerSectionCarousel.js +1 -1
- 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 +3 -3
- 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 +1 -1
- package/dist/BlogListSection.js +3 -3
- 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 +1 -1
- package/dist/BlogSingleSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +3 -3
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +1 -1
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +3 -3
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +4 -4
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +1 -1
- 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 +3 -3
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +4 -4
- 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 +1 -1
- package/dist/FieldOfInterestsMasonrySection.js +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
- 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 +1 -1
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +2 -2
- 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 +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- 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/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 +1 -1
- package/dist/ProductsWithBannerSection.js +3 -3
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +1 -1
- package/dist/QuattroCardsSection.js +1 -1
- 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 +1 -1
- package/dist/ReviewsSection.js +2 -2
- package/dist/SalesCampaignsSection.cjs +22 -22
- package/dist/SalesCampaignsSection.js +197 -205
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +2 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +3 -3
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +1 -1
- 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-BkztbBWe.cjs → index-B96icAp4.cjs} +1 -1
- package/dist/{index-tdg_Vmed.cjs → index-BXkL0HmX.cjs} +1 -1
- 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-DsINTjQk.cjs → index-ChHUGfjn.cjs} +1 -1
- 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-D3QZziO_.cjs → index-DueyY06i.cjs} +1 -1
- package/dist/{index-D4OKsSqi.cjs → index-HzW6OHFF.cjs} +1 -1
- package/dist/{index-3GKF_7BJ.cjs → index-RrqW9QBJ.cjs} +1 -1
- package/dist/{index-CM6vzQBx.js → index-eOeAkUSU.js} +1 -1
- package/dist/{index-Dx2hfxCG.js → index-gHaK62BZ.js} +2 -2
- package/dist/{index-BXT1eY2D.js → index-zIt6TVeg.js} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{style-D54KOzZj.js → style-CP_urKvc.js} +1 -1
- 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
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as r, jsxs as s, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as M, useRef as
|
|
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
3
|
import { s as w } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
|
-
import { b as
|
|
5
|
-
import { d as T, o as
|
|
6
|
-
import
|
|
7
|
-
import { D as
|
|
8
|
-
import
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
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
11
|
import { u as Se } from "./useDetectMobile-B0Jog4jQ.js";
|
|
12
|
-
import { I as
|
|
13
|
-
import { m as
|
|
14
|
-
import { S as
|
|
15
|
-
const
|
|
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;
|
|
@@ -55,8 +55,8 @@ const Ge = w.a`
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
`,
|
|
59
|
-
border-radius: ${(n) =>
|
|
58
|
+
`, Ge = w.div`
|
|
59
|
+
border-radius: ${(n) => re(n.theme, "edged")};
|
|
60
60
|
cursor: pointer;
|
|
61
61
|
|
|
62
62
|
position: relative;
|
|
@@ -79,7 +79,7 @@ const Ge = w.a`
|
|
|
79
79
|
@media ${T("S")} {
|
|
80
80
|
width: 14.5rem;
|
|
81
81
|
}
|
|
82
|
-
`,
|
|
82
|
+
`, Je = w.div`
|
|
83
83
|
flex: 1;
|
|
84
84
|
display: flex;
|
|
85
85
|
flex-direction: column;
|
|
@@ -187,13 +187,13 @@ const Ge = w.a`
|
|
|
187
187
|
gap: 0.25rem;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
`,
|
|
190
|
+
`, ue = (n = !1, t = !1, o = !1) => `
|
|
191
191
|
display: flex;
|
|
192
|
-
${
|
|
193
|
-
${
|
|
192
|
+
${t ? "flex-wrap: wrap;" : ""}
|
|
193
|
+
${t ? "" : "flex-wrap: nowrap;"}
|
|
194
194
|
${n ? "align-items: center;" : ""}
|
|
195
195
|
${o ? "justify-content: center;" : ""}
|
|
196
|
-
`,
|
|
196
|
+
`, Ke = w.a`
|
|
197
197
|
text-decoration: none;
|
|
198
198
|
color: var(--gray-950);
|
|
199
199
|
${(n) => n.hasPermission === !0 && "cursor: pointer"};
|
|
@@ -211,13 +211,13 @@ const Ge = w.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: ${(n) =>
|
|
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 Ge = w.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
|
|
|
@@ -269,14 +269,14 @@ const Ge = w.a`
|
|
|
269
269
|
padding: 0;
|
|
270
270
|
font-size: 0.875rem;
|
|
271
271
|
}
|
|
272
|
-
`,
|
|
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
|
-
`,
|
|
279
|
-
border-radius: ${(n) =>
|
|
278
|
+
`, Xe = w.div`
|
|
279
|
+
border-radius: ${(n) => re(n.theme, n.borderRadius || "slight")};
|
|
280
280
|
background-color: ${(n) => n == null ? void 0 : n.color};
|
|
281
281
|
color: white;
|
|
282
282
|
height: 1.5rem;
|
|
@@ -291,48 +291,48 @@ const Ge = w.a`
|
|
|
291
291
|
& i {
|
|
292
292
|
font-size: 0.813rem;
|
|
293
293
|
}
|
|
294
|
-
`,
|
|
295
|
-
const
|
|
296
|
-
return
|
|
294
|
+
`, en = M(({ src: n, ...t }, o) => {
|
|
295
|
+
const a = be();
|
|
296
|
+
return ne(() => {
|
|
297
297
|
var p;
|
|
298
298
|
const i = (f) => {
|
|
299
|
-
f.target.src =
|
|
299
|
+
f.target.src = pe, f.onerror = null;
|
|
300
300
|
};
|
|
301
|
-
return (p =
|
|
301
|
+
return (p = a == null ? void 0 : a.current) == null || p.addEventListener("error", i), () => {
|
|
302
302
|
var f;
|
|
303
|
-
(f =
|
|
303
|
+
(f = a == null ? void 0 : a.current) == null || f.removeEventListener("error", i);
|
|
304
304
|
};
|
|
305
|
-
}, []), /* @__PURE__ */ r(Pe, { ref: o, children:
|
|
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
|
-
uuid:
|
|
308
|
+
uuid: t,
|
|
309
309
|
hasPermission: o = !0,
|
|
310
|
-
isUser:
|
|
310
|
+
isUser: a,
|
|
311
311
|
image: i,
|
|
312
312
|
imageComponent: p,
|
|
313
313
|
name: f,
|
|
314
|
-
notifications:
|
|
314
|
+
notifications: S = 0,
|
|
315
315
|
color: l = "primary",
|
|
316
316
|
size: h = "large",
|
|
317
317
|
style: c,
|
|
318
318
|
disabled: _,
|
|
319
319
|
onClick: m = () => {
|
|
320
320
|
},
|
|
321
|
-
isActive:
|
|
321
|
+
isActive: N,
|
|
322
322
|
className: b,
|
|
323
323
|
shopCategory: v,
|
|
324
324
|
// new
|
|
325
|
-
themeData:
|
|
325
|
+
themeData: y,
|
|
326
326
|
LinkComponent: C
|
|
327
|
-
} = n,
|
|
328
|
-
theme:
|
|
327
|
+
} = n, I = C || "a", u = {
|
|
328
|
+
theme: we(),
|
|
329
329
|
color: l,
|
|
330
330
|
size: h,
|
|
331
331
|
style: c,
|
|
332
332
|
disabled: _
|
|
333
333
|
};
|
|
334
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());
|
|
@@ -341,170 +341,162 @@ const Ge = w.a`
|
|
|
341
341
|
key: f,
|
|
342
342
|
className: `profile-item ${b}`,
|
|
343
343
|
hasPermission: o,
|
|
344
|
-
isActive:
|
|
345
|
-
themeColor: (
|
|
346
|
-
as:
|
|
347
|
-
...C ? { to: `/${
|
|
344
|
+
isActive: N,
|
|
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__ */ r("div", { className: "logo-wrapper", children:
|
|
349
|
+
/* @__PURE__ */ r("div", { className: "logo-wrapper", children: je(p) ? p : i }),
|
|
350
350
|
/* @__PURE__ */ s("div", { children: [
|
|
351
351
|
/* @__PURE__ */ r("div", { className: "name", children: f }),
|
|
352
|
-
!
|
|
353
|
-
|
|
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
|
-
},
|
|
356
|
+
}, xe = (n) => {
|
|
357
357
|
if (n !== void 0) {
|
|
358
|
-
const
|
|
359
|
-
return `${String(
|
|
358
|
+
const t = new Date(n), o = t.getFullYear(), a = t.getMonth() + 1;
|
|
359
|
+
return `${String(t.getDate()).padStart(2)}. ${a}. ${o}.`;
|
|
360
360
|
}
|
|
361
|
-
},
|
|
362
|
-
var
|
|
363
|
-
const o =
|
|
364
|
-
uuid:
|
|
361
|
+
}, rn = M((n, t) => {
|
|
362
|
+
var ge;
|
|
363
|
+
const o = we(), {
|
|
364
|
+
uuid: a,
|
|
365
365
|
shopUuid: i,
|
|
366
366
|
title: p = "",
|
|
367
367
|
// description,
|
|
368
368
|
// badges,
|
|
369
369
|
coverPhoto: f,
|
|
370
|
-
onSelect:
|
|
370
|
+
onSelect: S,
|
|
371
371
|
// status,
|
|
372
372
|
startDate: l,
|
|
373
373
|
endDate: h,
|
|
374
374
|
salesPackages: c,
|
|
375
375
|
shopName: _,
|
|
376
376
|
shopCategory: m,
|
|
377
|
-
shopImage:
|
|
377
|
+
shopImage: N,
|
|
378
378
|
shopImageComponent: b,
|
|
379
379
|
className: v,
|
|
380
|
-
onSelectCard:
|
|
380
|
+
onSelectCard: y = () => {
|
|
381
381
|
},
|
|
382
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:
|
|
389
|
-
startsinSuffixTextPlural:
|
|
390
|
-
startsInPrefixTextSingular:
|
|
391
|
-
startsinSuffixTextSingular:
|
|
392
|
-
endsInPrefixTextPlural:
|
|
393
|
-
endsinSuffixTextPlural:
|
|
394
|
-
endsInPrefixTextSingular:
|
|
395
|
-
endsinSuffixTextSingular:
|
|
396
|
-
endedText:
|
|
388
|
+
startsInPrefixTextPlural: A,
|
|
389
|
+
startsinSuffixTextPlural: F,
|
|
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
|
-
numberOfListings:
|
|
399
|
-
numberOfListingsTextSingular:
|
|
398
|
+
numberOfListings: z,
|
|
399
|
+
numberOfListingsTextSingular: G,
|
|
400
400
|
numberOfListingsTextPlural: j,
|
|
401
401
|
metadata: e,
|
|
402
402
|
LinkComponent: O,
|
|
403
403
|
sponsored: ie,
|
|
404
|
-
...
|
|
405
|
-
} = n,
|
|
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
406
|
if (!h) return null;
|
|
407
|
-
const x =
|
|
408
|
-
if (!
|
|
409
|
-
const k =
|
|
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
410
|
if ($ <= 0) return null;
|
|
411
|
-
const
|
|
412
|
-
return { hours:
|
|
413
|
-
}, [
|
|
414
|
-
|
|
415
|
-
if (!
|
|
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
|
|
420
|
+
}, [V]);
|
|
421
|
+
const W = V ? Ce() : null, Q = !!(B && !R && V && W), Ie = Q || R || !B && U !== null && U > 0;
|
|
422
422
|
return /* @__PURE__ */ s(
|
|
423
|
-
|
|
423
|
+
Ze,
|
|
424
424
|
{
|
|
425
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
|
-
...O ? { to: `/shop/${i}/campaign/${
|
|
430
|
+
onClick: (x) => y(x, le),
|
|
431
|
+
as: ye,
|
|
432
|
+
...O ? { to: `/shop/${i}/campaign/${a}` } : { href: `/shop/${i}/campaign/${a}` },
|
|
433
433
|
sponsored: ie,
|
|
434
|
-
...
|
|
434
|
+
...J,
|
|
435
435
|
children: [
|
|
436
|
-
/* @__PURE__ */ s(
|
|
436
|
+
/* @__PURE__ */ s(Ge, { theme: o, children: [
|
|
437
437
|
/* @__PURE__ */ r("img", { src: f }),
|
|
438
|
-
/* @__PURE__ */ r(
|
|
438
|
+
/* @__PURE__ */ r(Qe, { children: c == null ? void 0 : c.map((x, P) => {
|
|
439
439
|
var k, $;
|
|
440
440
|
return /* @__PURE__ */ r(
|
|
441
|
-
|
|
441
|
+
Xe,
|
|
442
442
|
{
|
|
443
|
-
color: (k = g == null ? void 0 : g.find((
|
|
443
|
+
color: (k = g == null ? void 0 : g.find((D) => D.value === x)) == null ? void 0 : k.color,
|
|
444
444
|
theme: o,
|
|
445
445
|
children: /* @__PURE__ */ r(
|
|
446
|
-
|
|
446
|
+
ve,
|
|
447
447
|
{
|
|
448
|
-
icon: ($ = g == null ? void 0 : g.find((
|
|
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__ */ s(
|
|
456
|
+
/* @__PURE__ */ s(Je, { theme: o, children: [
|
|
457
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: (
|
|
458
|
+
/* @__PURE__ */ r("div", { className: "campaign-title", children: (ge = I ? d : u) == null ? void 0 : ge.toUpperCase() }),
|
|
459
459
|
/* @__PURE__ */ r("div", { className: "campaign-title-text", children: p }),
|
|
460
460
|
h && l && /* @__PURE__ */ s("div", { className: "campaign-date", children: [
|
|
461
|
-
|
|
461
|
+
xe(l),
|
|
462
462
|
" - ",
|
|
463
|
-
|
|
463
|
+
xe(h)
|
|
464
464
|
] }),
|
|
465
465
|
/* @__PURE__ */ s("div", { className: "timestamp-text", children: [
|
|
466
|
-
|
|
467
|
-
|
|
466
|
+
z > 0 && /* @__PURE__ */ s("span", { className: "listings-text", children: [
|
|
467
|
+
z,
|
|
468
468
|
" ",
|
|
469
|
-
|
|
470
|
-
" "
|
|
471
|
-
"∙",
|
|
472
|
-
" "
|
|
469
|
+
z === 1 ? G : j,
|
|
470
|
+
Ie ? " ∙ " : ""
|
|
473
471
|
] }),
|
|
474
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
|
-
R,
|
|
488
|
-
q,
|
|
489
|
-
P,
|
|
490
|
-
Z,
|
|
491
|
-
Y
|
|
492
|
-
) : Q ? G || "Završena" : !X && ee !== null && ee > 0 ? ge(
|
|
493
|
-
F,
|
|
494
|
-
W,
|
|
495
|
-
ee,
|
|
483
|
+
W.seconds.toString().padStart(2, "0")
|
|
484
|
+
] }) : R ? Z || "Završena" : !B && U !== null && U > 0 ? _e(
|
|
496
485
|
H,
|
|
497
|
-
A
|
|
486
|
+
A,
|
|
487
|
+
U,
|
|
488
|
+
q,
|
|
489
|
+
F
|
|
498
490
|
) : null
|
|
499
491
|
}
|
|
500
492
|
)
|
|
501
493
|
] })
|
|
502
494
|
] }) }),
|
|
503
495
|
/* @__PURE__ */ r(
|
|
504
|
-
|
|
496
|
+
nn,
|
|
505
497
|
{
|
|
506
498
|
hasPermission: !0,
|
|
507
|
-
image: /* @__PURE__ */ r(
|
|
499
|
+
image: /* @__PURE__ */ r(en, { src: N }),
|
|
508
500
|
imageComponent: b,
|
|
509
501
|
themeData: se,
|
|
510
502
|
isActive: !0,
|
|
@@ -582,13 +574,13 @@ const Ge = w.a`
|
|
|
582
574
|
}
|
|
583
575
|
}
|
|
584
576
|
}
|
|
585
|
-
`,
|
|
577
|
+
`, an = w(Ae.div)`
|
|
586
578
|
display: grid;
|
|
587
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 ${
|
|
583
|
+
@media ${Be("M")} {
|
|
592
584
|
grid-template-columns: repeat(${(n) => (n == null ? void 0 : n.tabletNumOfColumns) ?? 2}, 1fr);
|
|
593
585
|
}
|
|
594
586
|
|
|
@@ -614,39 +606,39 @@ const Ge = w.a`
|
|
|
614
606
|
/* Safari and Chrome */
|
|
615
607
|
}
|
|
616
608
|
}
|
|
617
|
-
`,
|
|
609
|
+
`, on = M(
|
|
618
610
|
({
|
|
619
611
|
icon: n,
|
|
620
|
-
title:
|
|
612
|
+
title: t,
|
|
621
613
|
numOfSlides: o = 4,
|
|
622
|
-
tabletNumOfSlides:
|
|
614
|
+
tabletNumOfSlides: a,
|
|
623
615
|
showNavigation: i = !0,
|
|
624
616
|
hasNextPage: p = !1,
|
|
625
617
|
className: f = "",
|
|
626
|
-
handleFetchNextPage:
|
|
618
|
+
handleFetchNextPage: S = () => {
|
|
627
619
|
},
|
|
628
620
|
children: l
|
|
629
621
|
}, h) => {
|
|
630
|
-
const [c, _] =
|
|
631
|
-
|
|
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 && _(u), u + m >= v && p &&
|
|
642
|
-
},
|
|
633
|
+
u < v && _(u), u + m >= v && p && S();
|
|
634
|
+
}, I = (d) => {
|
|
643
635
|
var u;
|
|
644
636
|
(u = d == null ? void 0 : d.target) == null || u.blur(), c - m >= 0 && _(c - m);
|
|
645
637
|
};
|
|
646
638
|
return /* @__PURE__ */ s(tn, { ref: h, className: f, children: [
|
|
647
639
|
/* @__PURE__ */ r("div", { className: "scrollable-section__header", children: /* @__PURE__ */ s("div", { className: "scrollable-section__title", children: [
|
|
648
|
-
|
|
649
|
-
|
|
640
|
+
ee(n) && /* @__PURE__ */ r(
|
|
641
|
+
ve,
|
|
650
642
|
{
|
|
651
643
|
icon: n,
|
|
652
644
|
color: "primary",
|
|
@@ -654,16 +646,16 @@ const Ge = w.a`
|
|
|
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
654
|
/* @__PURE__ */ s(
|
|
663
|
-
|
|
655
|
+
an,
|
|
664
656
|
{
|
|
665
657
|
numOfColumns: o,
|
|
666
|
-
tabletNumOfColumns:
|
|
658
|
+
tabletNumOfColumns: a,
|
|
667
659
|
...!b && {
|
|
668
660
|
animate: {
|
|
669
661
|
x: 0,
|
|
@@ -676,15 +668,15 @@ const Ge = w.a`
|
|
|
676
668
|
},
|
|
677
669
|
className: "scrollable-section__content",
|
|
678
670
|
children: [
|
|
679
|
-
|
|
680
|
-
b && p && /* @__PURE__ */ r(
|
|
671
|
+
y,
|
|
672
|
+
b && p && /* @__PURE__ */ r(We, { onIsVisible: S })
|
|
681
673
|
]
|
|
682
674
|
},
|
|
683
675
|
`scrollable-section__content-${c}`
|
|
684
676
|
),
|
|
685
677
|
i && v > m && !b && /* @__PURE__ */ s("div", { className: "scrollable-section__navigation", children: [
|
|
686
678
|
/* @__PURE__ */ r(
|
|
687
|
-
|
|
679
|
+
fe,
|
|
688
680
|
{
|
|
689
681
|
icon: "angle-left",
|
|
690
682
|
borderRadius: "curved",
|
|
@@ -692,11 +684,11 @@ const Ge = w.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
690
|
/* @__PURE__ */ r(
|
|
699
|
-
|
|
691
|
+
fe,
|
|
700
692
|
{
|
|
701
693
|
icon: "angle-right",
|
|
702
694
|
borderRadius: "curved",
|
|
@@ -710,7 +702,7 @@ const Ge = w.a`
|
|
|
710
702
|
] })
|
|
711
703
|
] });
|
|
712
704
|
}
|
|
713
|
-
),
|
|
705
|
+
), sn = w.div`
|
|
714
706
|
display: flex;
|
|
715
707
|
flex: 1;
|
|
716
708
|
width: 100%;
|
|
@@ -727,25 +719,25 @@ const Ge = w.a`
|
|
|
727
719
|
border-radius: 1.25rem;
|
|
728
720
|
object-fit: cover;
|
|
729
721
|
}
|
|
730
|
-
`,
|
|
722
|
+
`, ln = M(
|
|
731
723
|
({
|
|
732
724
|
sectionName: n,
|
|
733
|
-
imageUrl:
|
|
725
|
+
imageUrl: t,
|
|
734
726
|
maxHeight: o = "16.25rem",
|
|
735
|
-
className:
|
|
727
|
+
className: a = "",
|
|
736
728
|
handleClick: i = () => {
|
|
737
729
|
}
|
|
738
730
|
}, p) => /* @__PURE__ */ r(
|
|
739
|
-
|
|
731
|
+
sn,
|
|
740
732
|
{
|
|
741
733
|
ref: p,
|
|
742
734
|
maxHeight: o,
|
|
743
735
|
onClick: i,
|
|
744
|
-
className: `itemless-banner ${
|
|
745
|
-
children: /* @__PURE__ */ r("img", { src:
|
|
736
|
+
className: `itemless-banner ${a}`,
|
|
737
|
+
children: /* @__PURE__ */ r("img", { src: t, alt: `itemless-banner__${n}` })
|
|
746
738
|
}
|
|
747
739
|
)
|
|
748
|
-
),
|
|
740
|
+
), cn = w(Fe)`
|
|
749
741
|
@media ${T("S")} {
|
|
750
742
|
flex-direction: column;
|
|
751
743
|
|
|
@@ -760,68 +752,68 @@ const Ge = w.a`
|
|
|
760
752
|
}
|
|
761
753
|
}
|
|
762
754
|
}
|
|
763
|
-
`,
|
|
764
|
-
/* @__PURE__ */ r(
|
|
765
|
-
/* @__PURE__ */ s(
|
|
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: [
|
|
766
758
|
/* @__PURE__ */ r(E, { width: "100%", height: "1rem" }),
|
|
767
759
|
/* @__PURE__ */ r(E, { width: "100%", height: "1.75rem" }),
|
|
768
760
|
/* @__PURE__ */ r(E, { width: "100%", height: "1.25rem" }),
|
|
769
761
|
/* @__PURE__ */ r(E, { width: "100%", height: "2rem" }),
|
|
770
|
-
/* @__PURE__ */ s(
|
|
771
|
-
/* @__PURE__ */ r(
|
|
762
|
+
/* @__PURE__ */ s(he, { alignItems: "center", children: [
|
|
763
|
+
/* @__PURE__ */ r(Ye, { size: "2.5rem" }),
|
|
772
764
|
/* @__PURE__ */ r(E, { width: "5rem", height: "1.25rem" })
|
|
773
765
|
] })
|
|
774
766
|
] })
|
|
775
|
-
] }, `${n}-${
|
|
767
|
+
] }, `${n}-${t}`)) }), gn = ({
|
|
776
768
|
keyPrefix: n,
|
|
777
|
-
isLoading:
|
|
769
|
+
isLoading: t = !1,
|
|
778
770
|
fallbackComponent: o = /* @__PURE__ */ r(Te, {}),
|
|
779
|
-
children:
|
|
780
|
-
}) => /* @__PURE__ */ r(Ue, { fallbackComponent: o, children:
|
|
771
|
+
children: a
|
|
772
|
+
}) => /* @__PURE__ */ r(Ue, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ r(dn, { keyPrefix: n }) : a }), mn = Ee(rn), Nn = M(
|
|
781
773
|
({
|
|
782
774
|
sellerType: n = "Shop",
|
|
783
|
-
items:
|
|
775
|
+
items: t = [],
|
|
784
776
|
title: o,
|
|
785
|
-
icon:
|
|
777
|
+
icon: a,
|
|
786
778
|
isLoading: i,
|
|
787
779
|
onSelectCard: p = () => {
|
|
788
780
|
},
|
|
789
781
|
onSelectShop: f = () => {
|
|
790
782
|
},
|
|
791
|
-
getImage:
|
|
783
|
+
getImage: S = () => {
|
|
792
784
|
},
|
|
793
785
|
campaignSingleText: l,
|
|
794
786
|
upcomingCampaignText: h,
|
|
795
787
|
salesCampaignTypes: c = [],
|
|
796
788
|
startsInPrefixTextPlural: _,
|
|
797
789
|
startsinSuffixTextPlural: m,
|
|
798
|
-
startsInPrefixTextSingular:
|
|
790
|
+
startsInPrefixTextSingular: N,
|
|
799
791
|
startsinSuffixTextSingular: b,
|
|
800
792
|
endsInPrefixTextPlural: v,
|
|
801
|
-
endsinSuffixTextPlural:
|
|
793
|
+
endsinSuffixTextPlural: y,
|
|
802
794
|
endsInPrefixTextSingular: C,
|
|
803
|
-
endsinSuffixTextSingular:
|
|
795
|
+
endsinSuffixTextSingular: I,
|
|
804
796
|
endedText: d,
|
|
805
797
|
numOfSlides: u = 4,
|
|
806
798
|
showNavigation: g = !0,
|
|
807
|
-
numberOfListingsTextSingular:
|
|
808
|
-
numberOfListingsTextPlural:
|
|
809
|
-
itemlessImageUrl:
|
|
810
|
-
itemlessMaxHeight:
|
|
811
|
-
handleItemlessLink:
|
|
799
|
+
numberOfListingsTextSingular: A,
|
|
800
|
+
numberOfListingsTextPlural: F,
|
|
801
|
+
itemlessImageUrl: H,
|
|
802
|
+
itemlessMaxHeight: q,
|
|
803
|
+
handleItemlessLink: te = () => {
|
|
812
804
|
},
|
|
813
|
-
componentName:
|
|
814
|
-
hasNextPage:
|
|
815
|
-
handleFetchNextPage:
|
|
805
|
+
componentName: ae,
|
|
806
|
+
hasNextPage: Y = !1,
|
|
807
|
+
handleFetchNextPage: oe = () => {
|
|
816
808
|
},
|
|
817
|
-
LinkComponent:
|
|
809
|
+
LinkComponent: Z
|
|
818
810
|
}, se) => {
|
|
819
|
-
const
|
|
820
|
-
let j =
|
|
821
|
-
|
|
811
|
+
const z = Se(), G = Me(() => {
|
|
812
|
+
let j = t == null ? void 0 : t.map((e, O) => /* @__PURE__ */ r(
|
|
813
|
+
mn,
|
|
822
814
|
{
|
|
823
|
-
className: `campaign-item ${(
|
|
824
|
-
coverPhoto:
|
|
815
|
+
className: `campaign-item ${(t == null ? void 0 : t.length) === 1 ? "horizontal-campaign-item" : ""}`,
|
|
816
|
+
coverPhoto: S(
|
|
825
817
|
e == null ? void 0 : e.coverPhoto,
|
|
826
818
|
(e == null ? void 0 : e.uuid) || (e == null ? void 0 : e.campaignUuid)
|
|
827
819
|
),
|
|
@@ -837,7 +829,7 @@ const Ge = w.a`
|
|
|
837
829
|
startDate: e == null ? void 0 : e.startDate,
|
|
838
830
|
title: e == null ? void 0 : e.name,
|
|
839
831
|
uuid: e == null ? void 0 : e.campaignUuid,
|
|
840
|
-
onSelectCard: (ie,
|
|
832
|
+
onSelectCard: (ie, J) => p(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, J),
|
|
841
833
|
onSelectShop: () => f(e == null ? void 0 : e.shopUuid),
|
|
842
834
|
campaignSingleText: l,
|
|
843
835
|
upcomingCampaignText: h,
|
|
@@ -845,56 +837,56 @@ const Ge = w.a`
|
|
|
845
837
|
salesCampaignTypes: c,
|
|
846
838
|
startsInPrefixTextPlural: _,
|
|
847
839
|
startsinSuffixTextPlural: m,
|
|
848
|
-
startsInPrefixTextSingular:
|
|
840
|
+
startsInPrefixTextSingular: N,
|
|
849
841
|
startsinSuffixTextSingular: b,
|
|
850
842
|
endsInPrefixTextPlural: v,
|
|
851
|
-
endsinSuffixTextPlural:
|
|
843
|
+
endsinSuffixTextPlural: y,
|
|
852
844
|
endsInPrefixTextSingular: C,
|
|
853
|
-
endsinSuffixTextSingular:
|
|
845
|
+
endsinSuffixTextSingular: I,
|
|
854
846
|
endedText: d,
|
|
855
847
|
themeData: e == null ? void 0 : e.themeData,
|
|
856
848
|
numberOfListings: e == null ? void 0 : e.numberOfListings,
|
|
857
|
-
numberOfListingsTextSingular:
|
|
858
|
-
numberOfListingsTextPlural:
|
|
859
|
-
metadata: { name:
|
|
860
|
-
LinkComponent:
|
|
849
|
+
numberOfListingsTextSingular: A,
|
|
850
|
+
numberOfListingsTextPlural: F,
|
|
851
|
+
metadata: { name: ae, accessor: e == null ? void 0 : e.accessor },
|
|
852
|
+
LinkComponent: Z,
|
|
861
853
|
sponsored: e == null ? void 0 : e.sponsored
|
|
862
854
|
},
|
|
863
855
|
`campaign__item__${O}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
|
|
864
856
|
));
|
|
865
|
-
return (
|
|
857
|
+
return (t == null ? void 0 : t.length) < 4 && !z ? [
|
|
866
858
|
...j,
|
|
867
859
|
/* @__PURE__ */ r(
|
|
868
|
-
|
|
860
|
+
ln,
|
|
869
861
|
{
|
|
870
|
-
imageUrl:
|
|
862
|
+
imageUrl: H,
|
|
871
863
|
className: "campaign-item",
|
|
872
|
-
maxHeight:
|
|
873
|
-
handleClick:
|
|
864
|
+
maxHeight: q,
|
|
865
|
+
handleClick: te
|
|
874
866
|
},
|
|
875
867
|
"itemless-campaign-section-banner"
|
|
876
868
|
)
|
|
877
869
|
] : j;
|
|
878
|
-
}, [
|
|
870
|
+
}, [t]);
|
|
879
871
|
return /* @__PURE__ */ r(
|
|
880
|
-
|
|
872
|
+
gn,
|
|
881
873
|
{
|
|
882
874
|
isLoading: i,
|
|
883
875
|
keyPrefix: "sales-campaign-skeleton",
|
|
884
876
|
children: /* @__PURE__ */ r(
|
|
885
|
-
|
|
877
|
+
on,
|
|
886
878
|
{
|
|
887
|
-
icon:
|
|
879
|
+
icon: a,
|
|
888
880
|
title: o,
|
|
889
881
|
numOfSlides: u,
|
|
890
882
|
tabletNumOfSlides: 2,
|
|
891
883
|
showNavigation: g,
|
|
892
|
-
hasNextPage:
|
|
893
|
-
handleFetchNextPage:
|
|
894
|
-
className: (
|
|
895
|
-
children:
|
|
884
|
+
hasNextPage: Y,
|
|
885
|
+
handleFetchNextPage: oe,
|
|
886
|
+
className: (t == null ? void 0 : t.length) < 4 && !z ? "itemless" : "",
|
|
887
|
+
children: G
|
|
896
888
|
},
|
|
897
|
-
`sales-campaign-section__${
|
|
889
|
+
`sales-campaign-section__${z}`
|
|
898
890
|
)
|
|
899
891
|
}
|
|
900
892
|
);
|