@lanaco/lnc-react-ui 4.0.169 → 4.0.171
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.js +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +9 -48
- package/dist/BannerSectionCarousel.js +208 -249
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +67 -68
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +22 -30
- package/dist/BlogExploreSection.js +9 -9
- package/dist/BlogListSection.cjs +11 -5
- package/dist/BlogListSection.js +187 -123
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +28 -37
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +40 -67
- package/dist/BlogSingleSection.cjs +16 -1
- package/dist/BlogSingleSection.js +47 -45
- package/dist/BlogsSectionDetailed.cjs +8 -27
- package/dist/BlogsSectionDetailed.js +111 -159
- package/dist/BlogsSectionLarge.cjs +19 -4
- package/dist/BlogsSectionLarge.js +73 -37
- package/dist/BlogsSectionSimple.cjs +9 -9
- package/dist/BlogsSectionSimple.js +81 -107
- package/dist/BlogsSectionSimpleCentered.cjs +25 -23
- package/dist/BlogsSectionSimpleCentered.js +103 -96
- package/dist/BlogsSectionWithFilters.cjs +31 -29
- package/dist/BlogsSectionWithFilters.js +173 -134
- package/dist/BrandHitsSection.cjs +10 -14
- package/dist/BrandHitsSection.js +93 -45
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
- package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +35 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +62 -63
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
- package/dist/FieldOfInterestsMasonrySection.js +228 -154
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
- package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +11 -27
- package/dist/GeneralWithTagsCardsSection.js +87 -99
- package/dist/GiftCardsSection.cjs +18 -23
- package/dist/GiftCardsSection.js +146 -77
- package/dist/Icon.js +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +33 -19
- package/dist/MasonryGeneralCardsSection.js +114 -68
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +54 -40
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +15 -20
- package/dist/ProductsWithBannerSection.js +176 -104
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +6 -6
- package/dist/QuattroCardsSection.js +42 -34
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -30
- package/dist/ReviewsSection.js +170 -137
- package/dist/SalesCampaignsSection.cjs +46 -130
- package/dist/SalesCampaignsSection.js +354 -433
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +18 -5
- package/dist/ShopCardsSection.js +145 -88
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +10 -4
- package/dist/SimpleCategoriesSection.js +79 -51
- package/dist/SimpleProductsSection.cjs +16 -3
- package/dist/SimpleProductsSection.js +172 -70
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.js +4 -4
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +62 -61
- package/dist/index-BAJkosVg.cjs +11 -0
- package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
- package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
- package/dist/index-BSpdEGFd.js +42 -0
- package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
- package/dist/index-BhBRZf4M.js +742 -0
- package/dist/index-BovNbKxB.js +54 -0
- package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
- package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
- package/dist/index-D-3I_Ppj.cjs +16 -0
- package/dist/index-D0IYt1s3.cjs +20 -0
- package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
- package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
- package/dist/index-DFdPWO4O.js +133 -0
- package/dist/index-DFyV_EK2.cjs +305 -0
- package/dist/index-DxwIu0Wn.js +84 -0
- package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
- package/dist/index.js +1 -1
- package/dist/style-BAcV7F53.cjs +64 -0
- package/dist/style-CXMUA6cI.js +74 -0
- package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
- package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
- package/package.json +1 -1
- package/dist/index-1Dm1i6WK.js +0 -52
- package/dist/index-BGTtoLxz.cjs +0 -1
- package/dist/skeleton-BdbB-LdT.cjs +0 -97
- package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
- package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
- package/dist/suspense-large-BMO7JH52.js +0 -26
- package/dist/suspense-large-CFmcSzX-.cjs +0 -1
- package/dist/suspense-product-card-detailed-CxiFuUOT.js +0 -653
- package/dist/suspense-product-card-detailed-IR4sh-l4.cjs +0 -330
- package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
- package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsx as n, jsxs as c, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { a as
|
|
5
|
-
import { M as
|
|
6
|
-
import { m as
|
|
1
|
+
import { jsx as n, jsxs as c, Fragment as Pe } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as M, useRef as fe, useEffect as ee, Fragment as ze, createElement as Le, useState as K, Suspense as Me, memo as Ue, useMemo as Oe } from "react";
|
|
3
|
+
import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { a as re, k as Q, l as Ee } from "./utils-DHfRApMf.js";
|
|
5
|
+
import { M as z } from "./consts-BuFChS64.js";
|
|
6
|
+
import { m as ue } from "./motion-Ckekul_K.js";
|
|
7
7
|
import { P as a } from "./index-CblbdqjE.js";
|
|
8
|
-
import
|
|
8
|
+
import xe from "./Icon.js";
|
|
9
9
|
import { D as se } from "./ShopAvatar-4-fCYGEc.js";
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
10
|
+
import je from "./Badge.js";
|
|
11
|
+
import { u as we } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
12
12
|
import le from "./IconButton.js";
|
|
13
|
-
import { u as
|
|
14
|
-
import { I as
|
|
15
|
-
|
|
13
|
+
import { u as be } from "./useDetectMobile-Bkvj0VMa.js";
|
|
14
|
+
import { I as Re } from "./index-C0LcDEqa.js";
|
|
15
|
+
import { a as L, c as ce, S as de, b as y, d as me } from "./style-CXMUA6cI.js";
|
|
16
|
+
const Be = S.div`
|
|
16
17
|
cursor: pointer;
|
|
17
18
|
display: flex;
|
|
18
19
|
gap: 1rem;
|
|
@@ -20,13 +21,13 @@ const je = m.div`
|
|
|
20
21
|
border-radius: 1.25rem;
|
|
21
22
|
border: 1px solid var(--gray-200, #e4e9f0);
|
|
22
23
|
|
|
23
|
-
@media (max-width: ${
|
|
24
|
+
@media (max-width: ${z + "px"}) {
|
|
24
25
|
flex-direction: column;
|
|
25
26
|
padding: 1rem;
|
|
26
27
|
gap: 0;
|
|
27
28
|
}
|
|
28
|
-
`,
|
|
29
|
-
border-radius: ${(
|
|
29
|
+
`, We = S.div`
|
|
30
|
+
border-radius: ${(r) => re(r.theme, "edged")};
|
|
30
31
|
height: 13.75rem;
|
|
31
32
|
width: 13.75rem;
|
|
32
33
|
min-width: 13.75rem;
|
|
@@ -48,7 +49,7 @@ const je = m.div`
|
|
|
48
49
|
transform: scale(1.25);
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
|
-
`,
|
|
52
|
+
`, Fe = S.div`
|
|
52
53
|
flex: 1;
|
|
53
54
|
display: flex;
|
|
54
55
|
flex-direction: column;
|
|
@@ -131,7 +132,7 @@ const je = m.div`
|
|
|
131
132
|
color: var(--gray-600, #676e79);
|
|
132
133
|
}
|
|
133
134
|
|
|
134
|
-
@media (max-width: ${
|
|
135
|
+
@media (max-width: ${z + "px"}) {
|
|
135
136
|
padding: 1rem 0 0 0;
|
|
136
137
|
|
|
137
138
|
& .campaign-title-text {
|
|
@@ -156,15 +157,15 @@ const je = m.div`
|
|
|
156
157
|
gap: 0.25rem;
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
|
-
`,
|
|
160
|
+
`, ge = (r = !1, t = !1, o = !1) => `
|
|
160
161
|
display: flex;
|
|
161
162
|
${t ? "flex-wrap: wrap;" : ""}
|
|
162
163
|
${t ? "" : "flex-wrap: nowrap;"}
|
|
163
|
-
${
|
|
164
|
+
${r ? "align-items: center;" : ""}
|
|
164
165
|
${o ? "justify-content: center;" : ""}
|
|
165
|
-
`,
|
|
166
|
+
`, Ge = S(ue.div)`
|
|
166
167
|
text-decoration: none;
|
|
167
|
-
${(
|
|
168
|
+
${(r) => r.hasPermission === !0 && "cursor: pointer"};
|
|
168
169
|
|
|
169
170
|
&:focus,
|
|
170
171
|
&:hover,
|
|
@@ -179,14 +180,14 @@ const je = m.div`
|
|
|
179
180
|
text-decoration: none;
|
|
180
181
|
}
|
|
181
182
|
|
|
182
|
-
${
|
|
183
|
+
${ge(!0)}
|
|
183
184
|
gap: 0.5rem;
|
|
184
185
|
padding: 0.5rem;
|
|
185
186
|
color: var(--gray-950, #14161a);
|
|
186
187
|
font-weight: 500;
|
|
187
188
|
font-size: 1rem;
|
|
188
189
|
line-height: 1.5rem;
|
|
189
|
-
border-radius: ${(
|
|
190
|
+
border-radius: ${(r) => re(r.theme, "slight")};
|
|
190
191
|
transition: all 0.25s ease;
|
|
191
192
|
& .description {
|
|
192
193
|
font-size: 0.85rem;
|
|
@@ -195,7 +196,7 @@ const je = m.div`
|
|
|
195
196
|
font-weight: 400;
|
|
196
197
|
}
|
|
197
198
|
& .logo-wrapper {
|
|
198
|
-
${
|
|
199
|
+
${ge(!0, !1, !0)}
|
|
199
200
|
flex-shrink: 0;
|
|
200
201
|
border-radius: 999px;
|
|
201
202
|
|
|
@@ -234,93 +235,93 @@ const je = m.div`
|
|
|
234
235
|
background-color: var(--gray-95080, #14161acc);
|
|
235
236
|
}
|
|
236
237
|
|
|
237
|
-
@media (max-width: ${
|
|
238
|
+
@media (max-width: ${z + "px"}) {
|
|
238
239
|
padding: 0;
|
|
239
240
|
font-size: 0.875rem;
|
|
240
241
|
}
|
|
241
|
-
`,
|
|
242
|
+
`, Ve = S.div`
|
|
242
243
|
position: absolute;
|
|
243
244
|
top: 0.5rem;
|
|
244
|
-
${(
|
|
245
|
+
${(r) => r.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
|
|
245
246
|
display: flex;
|
|
246
247
|
gap: 0.25rem;
|
|
247
|
-
`,
|
|
248
|
-
border-radius: ${(
|
|
249
|
-
background-color: ${(
|
|
248
|
+
`, Ae = S.div`
|
|
249
|
+
border-radius: ${(r) => re(r.theme, r.borderRadius || "slight")};
|
|
250
|
+
background-color: ${(r) => r == null ? void 0 : r.color};
|
|
250
251
|
color: white;
|
|
251
252
|
height: 1.5rem;
|
|
252
253
|
min-width: 1.5rem;
|
|
253
|
-
width: ${(
|
|
254
|
-
${(
|
|
254
|
+
width: ${(r) => r.fitContent === !0 ? "fit-content" : "1.5rem"};
|
|
255
|
+
${(r) => r.fitContent === !0 && "padding: 0 0.1rem;"};
|
|
255
256
|
font-size: 0.75rem;
|
|
256
257
|
display: flex;
|
|
257
258
|
align-items: center;
|
|
258
259
|
justify-content: center;
|
|
259
|
-
padding: ${(
|
|
260
|
+
padding: ${(r) => r.padding};
|
|
260
261
|
& i {
|
|
261
262
|
font-size: 0.813rem;
|
|
262
263
|
}
|
|
263
|
-
`,
|
|
264
|
-
const i =
|
|
264
|
+
`, He = M(({ src: r, ...t }, o) => {
|
|
265
|
+
const i = fe();
|
|
265
266
|
return ee(() => {
|
|
266
|
-
var
|
|
267
|
-
const
|
|
267
|
+
var g;
|
|
268
|
+
const m = (s) => {
|
|
268
269
|
s.target.src = se, s.onerror = null;
|
|
269
270
|
};
|
|
270
|
-
return (
|
|
271
|
+
return (g = i == null ? void 0 : i.current) == null || g.addEventListener("error", m), () => {
|
|
271
272
|
var s;
|
|
272
|
-
(s = i == null ? void 0 : i.current) == null || s.removeEventListener("error",
|
|
273
|
+
(s = i == null ? void 0 : i.current) == null || s.removeEventListener("error", m);
|
|
273
274
|
};
|
|
274
|
-
}, []), /* @__PURE__ */ n(
|
|
275
|
-
}),
|
|
275
|
+
}, []), /* @__PURE__ */ n(ze, { ref: o, children: Q(r) ? /* @__PURE__ */ n("img", { ref: i, src: r, ...t }) : /* @__PURE__ */ n("img", { src: se, ...t }) });
|
|
276
|
+
}), ve = (r) => {
|
|
276
277
|
const {
|
|
277
278
|
uuid: t,
|
|
278
279
|
hasPermission: o = !0,
|
|
279
280
|
isUser: i,
|
|
280
|
-
image:
|
|
281
|
-
imageComponent:
|
|
281
|
+
image: m,
|
|
282
|
+
imageComponent: g,
|
|
282
283
|
name: s,
|
|
283
|
-
notifications:
|
|
284
|
+
notifications: p = 0,
|
|
284
285
|
color: l = "primary",
|
|
285
|
-
size:
|
|
286
|
-
style:
|
|
287
|
-
disabled:
|
|
288
|
-
onClick:
|
|
286
|
+
size: w = "large",
|
|
287
|
+
style: h,
|
|
288
|
+
disabled: I,
|
|
289
|
+
onClick: f = () => {
|
|
289
290
|
},
|
|
290
|
-
isActive:
|
|
291
|
-
className:
|
|
292
|
-
shopCategory:
|
|
291
|
+
isActive: b,
|
|
292
|
+
className: C,
|
|
293
|
+
shopCategory: N,
|
|
293
294
|
// new
|
|
294
|
-
themeData:
|
|
295
|
-
} =
|
|
296
|
-
theme:
|
|
295
|
+
themeData: _
|
|
296
|
+
} = r, u = {
|
|
297
|
+
theme: we(),
|
|
297
298
|
color: l,
|
|
298
|
-
size:
|
|
299
|
-
style:
|
|
300
|
-
disabled:
|
|
299
|
+
size: w,
|
|
300
|
+
style: h,
|
|
301
|
+
disabled: I
|
|
301
302
|
};
|
|
302
|
-
return /* @__PURE__ */
|
|
303
|
-
|
|
303
|
+
return /* @__PURE__ */ Le(
|
|
304
|
+
Ge,
|
|
304
305
|
{
|
|
305
|
-
onClick: (
|
|
306
|
-
|
|
306
|
+
onClick: ($) => {
|
|
307
|
+
$.stopPropagation(), o === !0 && (f == null || f());
|
|
307
308
|
},
|
|
308
|
-
...
|
|
309
|
+
...u,
|
|
309
310
|
key: s,
|
|
310
|
-
className: `profile-item ${
|
|
311
|
+
className: `profile-item ${C}`,
|
|
311
312
|
hasPermission: o,
|
|
312
|
-
isActive:
|
|
313
|
-
themeColor: (
|
|
313
|
+
isActive: b,
|
|
314
|
+
themeColor: (_ == null ? void 0 : _.code) || "transparent"
|
|
314
315
|
},
|
|
315
|
-
/* @__PURE__ */ n("div", { className: "logo-wrapper", children:
|
|
316
|
+
/* @__PURE__ */ n("div", { className: "logo-wrapper", children: Ee(g) ? g : m }),
|
|
316
317
|
/* @__PURE__ */ c("div", { children: [
|
|
317
318
|
/* @__PURE__ */ n("div", { className: "name", children: s }),
|
|
318
|
-
!i && /* @__PURE__ */ n("div", { className: "description", children:
|
|
319
|
-
|
|
319
|
+
!i && /* @__PURE__ */ n("div", { className: "description", children: N }),
|
|
320
|
+
p > 0 && /* @__PURE__ */ n("div", { className: "notifications-number", children: /* @__PURE__ */ n(je, { className: "badge", color: "danger", size: "small", children: p > 99 ? "99+" : p }) })
|
|
320
321
|
] })
|
|
321
322
|
);
|
|
322
323
|
};
|
|
323
|
-
|
|
324
|
+
ve.propTypes = {
|
|
324
325
|
id: a.any,
|
|
325
326
|
isUserProfile: a.bool,
|
|
326
327
|
themeColor: a.string,
|
|
@@ -342,122 +343,122 @@ we.propTypes = {
|
|
|
342
343
|
onSelect: a.func,
|
|
343
344
|
hasPermission: a.bool
|
|
344
345
|
};
|
|
345
|
-
const
|
|
346
|
-
if (!
|
|
347
|
-
const o =
|
|
346
|
+
const pe = (r, t) => {
|
|
347
|
+
if (!r || !t) return null;
|
|
348
|
+
const o = r.getTime() - t.getTime(), i = 24 * 60 * 60 * 1e3;
|
|
348
349
|
return Math.floor(o / i);
|
|
349
|
-
},
|
|
350
|
-
if (
|
|
351
|
-
const t = new Date(
|
|
350
|
+
}, he = (r) => {
|
|
351
|
+
if (r !== void 0) {
|
|
352
|
+
const t = new Date(r), o = t.getFullYear(), i = t.getMonth() + 1;
|
|
352
353
|
return `${String(t.getDate()).padStart(2)}. ${i}. ${o}.`;
|
|
353
354
|
}
|
|
354
|
-
},
|
|
355
|
+
}, ye = M((r, t) => {
|
|
355
356
|
var ie;
|
|
356
|
-
const o =
|
|
357
|
+
const o = we(), {
|
|
357
358
|
// uuid,
|
|
358
359
|
shopUuid: i,
|
|
359
|
-
title:
|
|
360
|
+
title: m = "",
|
|
360
361
|
// description,
|
|
361
362
|
// badges,
|
|
362
|
-
coverPhoto:
|
|
363
|
+
coverPhoto: g,
|
|
363
364
|
onSelect: s,
|
|
364
365
|
// status,
|
|
365
|
-
startDate:
|
|
366
|
+
startDate: p,
|
|
366
367
|
endDate: l,
|
|
367
|
-
salesPackages:
|
|
368
|
-
shopName:
|
|
369
|
-
shopCategory:
|
|
370
|
-
shopImage:
|
|
371
|
-
shopImageComponent:
|
|
372
|
-
className:
|
|
373
|
-
onSelectCard:
|
|
368
|
+
salesPackages: w,
|
|
369
|
+
shopName: h,
|
|
370
|
+
shopCategory: I,
|
|
371
|
+
shopImage: f,
|
|
372
|
+
shopImageComponent: b,
|
|
373
|
+
className: C,
|
|
374
|
+
onSelectCard: N = () => {
|
|
374
375
|
},
|
|
375
|
-
onSelectShop:
|
|
376
|
+
onSelectShop: _ = () => {
|
|
376
377
|
},
|
|
377
|
-
upcoming:
|
|
378
|
-
upcomingCampaignText:
|
|
379
|
-
campaignSingleText:
|
|
380
|
-
salesCampaignTypes:
|
|
381
|
-
startsInPrefixTextPlural:
|
|
382
|
-
startsinSuffixTextPlural:
|
|
383
|
-
startsInPrefixTextSingular:
|
|
378
|
+
upcoming: d = !1,
|
|
379
|
+
upcomingCampaignText: u,
|
|
380
|
+
campaignSingleText: $,
|
|
381
|
+
salesCampaignTypes: k = [],
|
|
382
|
+
startsInPrefixTextPlural: F,
|
|
383
|
+
startsinSuffixTextPlural: G,
|
|
384
|
+
startsInPrefixTextSingular: V,
|
|
384
385
|
startsinSuffixTextSingular: ne,
|
|
385
|
-
endsInPrefixTextPlural:
|
|
386
|
-
endsinSuffixTextPlural:
|
|
387
|
-
endsInPrefixTextSingular:
|
|
388
|
-
endsinSuffixTextSingular:
|
|
386
|
+
endsInPrefixTextPlural: A,
|
|
387
|
+
endsinSuffixTextPlural: H,
|
|
388
|
+
endsInPrefixTextSingular: U,
|
|
389
|
+
endsinSuffixTextSingular: q,
|
|
389
390
|
themeData: te,
|
|
390
|
-
numberOfListings:
|
|
391
|
-
numberOfListingsTextSingular:
|
|
392
|
-
numberOfListingsTextPlural:
|
|
393
|
-
metadata:
|
|
394
|
-
...
|
|
395
|
-
} =
|
|
396
|
-
|
|
391
|
+
numberOfListings: T,
|
|
392
|
+
numberOfListingsTextSingular: X,
|
|
393
|
+
numberOfListingsTextPlural: O,
|
|
394
|
+
metadata: e,
|
|
395
|
+
...Y
|
|
396
|
+
} = r, Z = fe(), E = p ? new Date(p) <= /* @__PURE__ */ new Date() : !1, $e = pe(
|
|
397
|
+
p ? new Date(p) : null,
|
|
397
398
|
/* @__PURE__ */ new Date()
|
|
398
|
-
),
|
|
399
|
+
), j = pe(
|
|
399
400
|
l ? new Date(l) : null,
|
|
400
401
|
/* @__PURE__ */ new Date()
|
|
401
|
-
),
|
|
402
|
+
), ke = j !== null && j <= 2 && j > 0, ae = l ? new Date(l).getTime() : null, Ie = Date.now(), J = ae !== null ? ae - Ie : null, R = J !== null && J > 0 && J < 24 * 60 * 60 * 1e3, oe = (v, W, x, P, D) => x === 1 ? `${v} ${x} ${P}` : `${W} ${x} ${D}`, Ce = () => {
|
|
402
403
|
if (!l) return null;
|
|
403
|
-
const
|
|
404
|
-
if (
|
|
405
|
-
const P = Math.floor(
|
|
406
|
-
return { hours: P, minutes: D, seconds:
|
|
407
|
-
}, [
|
|
404
|
+
const v = Ne, x = new Date(l).getTime() - v.getTime();
|
|
405
|
+
if (x <= 0) return null;
|
|
406
|
+
const P = Math.floor(x / (1e3 * 60 * 60)), D = Math.floor(x % (1e3 * 60 * 60) / (1e3 * 60)), Te = Math.floor(x % (1e3 * 60) / 1e3);
|
|
407
|
+
return { hours: P, minutes: D, seconds: Te };
|
|
408
|
+
}, [Ne, De] = K(/* @__PURE__ */ new Date());
|
|
408
409
|
ee(() => {
|
|
409
|
-
if (!
|
|
410
|
-
const
|
|
411
|
-
|
|
410
|
+
if (!R) return;
|
|
411
|
+
const v = setInterval(() => {
|
|
412
|
+
De(/* @__PURE__ */ new Date());
|
|
412
413
|
}, 1e3);
|
|
413
|
-
return () => clearInterval(
|
|
414
|
-
}, [
|
|
415
|
-
const
|
|
414
|
+
return () => clearInterval(v);
|
|
415
|
+
}, [R]);
|
|
416
|
+
const B = R ? Ce() : null;
|
|
416
417
|
return /* @__PURE__ */ c(
|
|
417
|
-
|
|
418
|
+
Be,
|
|
418
419
|
{
|
|
419
|
-
ref:
|
|
420
|
+
ref: Z,
|
|
420
421
|
theme: o,
|
|
421
|
-
className:
|
|
422
|
-
name:
|
|
423
|
-
"data-accessor":
|
|
424
|
-
onClick: (
|
|
425
|
-
...
|
|
422
|
+
className: C,
|
|
423
|
+
name: e == null ? void 0 : e.name,
|
|
424
|
+
"data-accessor": e == null ? void 0 : e.accessor,
|
|
425
|
+
onClick: (v) => N(v, Z),
|
|
426
|
+
...Y,
|
|
426
427
|
children: [
|
|
427
|
-
/* @__PURE__ */ c(
|
|
428
|
-
/* @__PURE__ */ n("img", { src:
|
|
429
|
-
/* @__PURE__ */ n(
|
|
430
|
-
var
|
|
428
|
+
/* @__PURE__ */ c(We, { theme: o, onClick: () => s == null ? void 0 : s(), children: [
|
|
429
|
+
/* @__PURE__ */ n("img", { src: g }),
|
|
430
|
+
/* @__PURE__ */ n(Ve, { children: w == null ? void 0 : w.map((v, W) => {
|
|
431
|
+
var x, P;
|
|
431
432
|
return /* @__PURE__ */ n(
|
|
432
|
-
|
|
433
|
+
Ae,
|
|
433
434
|
{
|
|
434
|
-
color: (
|
|
435
|
+
color: (x = k == null ? void 0 : k.find((D) => D.value === v)) == null ? void 0 : x.color,
|
|
435
436
|
theme: o,
|
|
436
437
|
children: /* @__PURE__ */ n(
|
|
437
|
-
|
|
438
|
+
xe,
|
|
438
439
|
{
|
|
439
|
-
icon: (P =
|
|
440
|
+
icon: (P = k == null ? void 0 : k.find((D) => D.value === v)) == null ? void 0 : P.icon
|
|
440
441
|
}
|
|
441
442
|
)
|
|
442
443
|
},
|
|
443
|
-
`package__${
|
|
444
|
+
`package__${W}`
|
|
444
445
|
);
|
|
445
446
|
}) })
|
|
446
447
|
] }),
|
|
447
|
-
/* @__PURE__ */ c(
|
|
448
|
+
/* @__PURE__ */ c(Fe, { theme: o, children: [
|
|
448
449
|
/* @__PURE__ */ n("div", { className: "text-block-wrapper", children: /* @__PURE__ */ c("div", { className: "title-block-wrapper", children: [
|
|
449
|
-
/* @__PURE__ */ n("div", { className: "campaign-title", children: (ie =
|
|
450
|
-
/* @__PURE__ */ n("div", { className: "campaign-title-text", children:
|
|
451
|
-
l &&
|
|
452
|
-
|
|
450
|
+
/* @__PURE__ */ n("div", { className: "campaign-title", children: (ie = d ? u : $) == null ? void 0 : ie.toUpperCase() }),
|
|
451
|
+
/* @__PURE__ */ n("div", { className: "campaign-title-text", children: m }),
|
|
452
|
+
l && p && /* @__PURE__ */ c("div", { className: "campaign-date", children: [
|
|
453
|
+
he(p),
|
|
453
454
|
" - ",
|
|
454
|
-
|
|
455
|
+
he(l)
|
|
455
456
|
] }),
|
|
456
457
|
/* @__PURE__ */ c("div", { className: "timestamp-text", children: [
|
|
457
|
-
|
|
458
|
-
|
|
458
|
+
T > 0 && /* @__PURE__ */ c("span", { className: "listings-text", children: [
|
|
459
|
+
T,
|
|
459
460
|
" ",
|
|
460
|
-
|
|
461
|
+
T === 1 ? X : O,
|
|
461
462
|
" ",
|
|
462
463
|
"∙",
|
|
463
464
|
" "
|
|
@@ -465,44 +466,44 @@ const de = (e, t) => {
|
|
|
465
466
|
/* @__PURE__ */ n(
|
|
466
467
|
"span",
|
|
467
468
|
{
|
|
468
|
-
className: `duration-text ${
|
|
469
|
-
children:
|
|
470
|
-
|
|
469
|
+
className: `duration-text ${ke ? "urgent" : ""} ${E ? "" : "starts-in"}`,
|
|
470
|
+
children: R && B ? /* @__PURE__ */ c("div", { className: "countdown-timer", children: [
|
|
471
|
+
U,
|
|
471
472
|
" ",
|
|
472
|
-
|
|
473
|
+
B.hours.toString().padStart(2, "0"),
|
|
473
474
|
":",
|
|
474
|
-
|
|
475
|
+
B.minutes.toString().padStart(2, "0"),
|
|
475
476
|
":",
|
|
476
|
-
|
|
477
|
-
] }) :
|
|
478
|
-
|
|
479
|
-
H,
|
|
480
|
-
E,
|
|
481
|
-
X,
|
|
482
|
-
G
|
|
483
|
-
) : oe(
|
|
477
|
+
B.seconds.toString().padStart(2, "0")
|
|
478
|
+
] }) : E ? oe(
|
|
479
|
+
U,
|
|
484
480
|
A,
|
|
485
|
-
|
|
481
|
+
j,
|
|
482
|
+
q,
|
|
483
|
+
H
|
|
484
|
+
) : oe(
|
|
485
|
+
V,
|
|
486
|
+
F,
|
|
486
487
|
$e,
|
|
487
488
|
ne,
|
|
488
|
-
|
|
489
|
+
G
|
|
489
490
|
)
|
|
490
491
|
}
|
|
491
492
|
)
|
|
492
493
|
] })
|
|
493
494
|
] }) }),
|
|
494
495
|
/* @__PURE__ */ n(
|
|
495
|
-
|
|
496
|
+
ve,
|
|
496
497
|
{
|
|
497
498
|
hasPermission: !0,
|
|
498
|
-
image: /* @__PURE__ */ n(
|
|
499
|
-
imageComponent:
|
|
499
|
+
image: /* @__PURE__ */ n(He, { src: f }),
|
|
500
|
+
imageComponent: b,
|
|
500
501
|
themeData: te,
|
|
501
502
|
isActive: !0,
|
|
502
503
|
isUser: !1,
|
|
503
|
-
name:
|
|
504
|
-
shopCategory:
|
|
505
|
-
onClick: () =>
|
|
504
|
+
name: h,
|
|
505
|
+
shopCategory: I,
|
|
506
|
+
onClick: () => _(i)
|
|
506
507
|
}
|
|
507
508
|
)
|
|
508
509
|
] })
|
|
@@ -510,155 +511,13 @@ const de = (e, t) => {
|
|
|
510
511
|
}
|
|
511
512
|
);
|
|
512
513
|
});
|
|
513
|
-
|
|
514
|
+
ye.propTypes = {
|
|
514
515
|
title: a.oneOfType([a.string, a.element]),
|
|
515
516
|
numberOfListings: a.number,
|
|
516
517
|
dropdown: a.any,
|
|
517
518
|
color: a.string
|
|
518
519
|
};
|
|
519
|
-
|
|
520
|
-
display: flex;
|
|
521
|
-
flex-direction: column;
|
|
522
|
-
gap: 1.5rem;
|
|
523
|
-
|
|
524
|
-
& .arrow-icon {
|
|
525
|
-
& i {
|
|
526
|
-
transition: all 0.25s ease;
|
|
527
|
-
transform: ${(e) => e.expanded === !0 ? "rotate(-180deg)" : "rotate(0)"};
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
& .badge-button {
|
|
532
|
-
white-space: nowrap;
|
|
533
|
-
font-weight: 500;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
& .gradient {
|
|
537
|
-
background: transparent !important;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
& .campaign-item {
|
|
541
|
-
min-width: calc(50% - 0.87rem);
|
|
542
|
-
width: calc(50% - 0.87rem);
|
|
543
|
-
margin-right: 1rem;
|
|
544
|
-
|
|
545
|
-
&:nth-child(${(e) => e == null ? void 0 : e.lastItemIdx}) {
|
|
546
|
-
margin-right: 0;
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
@media (max-width: ${T + "px"}) {
|
|
551
|
-
& .campaign-item {
|
|
552
|
-
min-width: 100%;
|
|
553
|
-
width: 100%;
|
|
554
|
-
margin-right: 0;
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
`;
|
|
558
|
-
const F = m.div`
|
|
559
|
-
width: ${(e) => e.width || "100%"};
|
|
560
|
-
height: ${(e) => (e.heightCoeff || 1) * 1.125}rem;
|
|
561
|
-
background-color: var(--gray-200, #dddfe4);
|
|
562
|
-
|
|
563
|
-
${fe("-90deg")}
|
|
564
|
-
`, He = m.div`
|
|
565
|
-
display: flex;
|
|
566
|
-
flex-direction: ${(e) => e != null && e.row ? "row" : "column"};
|
|
567
|
-
gap: ${(e) => (e == null ? void 0 : e.gap) ?? "0.5rem"};
|
|
568
|
-
width: ${(e) => (e == null ? void 0 : e.width) ?? "100%"};
|
|
569
|
-
`, me = m.div`
|
|
570
|
-
border-radius: ${(e) => M(e.theme, (e == null ? void 0 : e.borderRadius) ?? "regular")};
|
|
571
|
-
background: var(--gray-200, #dddfe4);
|
|
572
|
-
position: relative;
|
|
573
|
-
max-height: ${(e) => (e == null ? void 0 : e.height) ?? "5rem"};
|
|
574
|
-
max-width: ${(e) => (e == null ? void 0 : e.width) ?? "5rem"};
|
|
575
|
-
height: ${(e) => (e == null ? void 0 : e.height) ?? "5rem"};
|
|
576
|
-
width: ${(e) => (e == null ? void 0 : e.width) ?? "5rem"};
|
|
577
|
-
flex-shrink: 0;
|
|
578
|
-
|
|
579
|
-
${fe()}
|
|
580
|
-
`, Ge = m.div`
|
|
581
|
-
background: var(--white, #fff);
|
|
582
|
-
border-radius: ${(e) => M(e.theme, "edged")};
|
|
583
|
-
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
|
|
584
|
-
border: 1px solid var(--gray-95012, #14161a1f);
|
|
585
|
-
|
|
586
|
-
display: flex;
|
|
587
|
-
gap: 1rem;
|
|
588
|
-
padding: 1.25rem;
|
|
589
|
-
width: 100%;
|
|
590
|
-
|
|
591
|
-
& .campaign__left-section {
|
|
592
|
-
position: relative;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
& .campaign__right-section {
|
|
596
|
-
display: flex;
|
|
597
|
-
flex-direction: column;
|
|
598
|
-
justify-content: space-between;
|
|
599
|
-
max-width: 18rem;
|
|
600
|
-
width: 100%;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
& .campaign__user {
|
|
604
|
-
display: flex;
|
|
605
|
-
align-items: center;
|
|
606
|
-
gap: 0.5rem;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
@media (max-width: ${T + "px"}) {
|
|
610
|
-
flex-direction: column;
|
|
611
|
-
|
|
612
|
-
& .campaign__user {
|
|
613
|
-
margin-top: 1rem;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
`, Xe = m.div`
|
|
617
|
-
display: flex;
|
|
618
|
-
gap: 1.5rem;
|
|
619
|
-
`, Ye = z(({}, e) => {
|
|
620
|
-
const t = re();
|
|
621
|
-
return /* @__PURE__ */ c(Ge, { ref: e, theme: t, children: [
|
|
622
|
-
/* @__PURE__ */ n("div", { className: "campaign__left-section", children: /* @__PURE__ */ n(
|
|
623
|
-
me,
|
|
624
|
-
{
|
|
625
|
-
theme: t,
|
|
626
|
-
width: "15rem",
|
|
627
|
-
height: "15rem",
|
|
628
|
-
borderRadius: "edged"
|
|
629
|
-
}
|
|
630
|
-
) }),
|
|
631
|
-
/* @__PURE__ */ c("div", { className: "campaign__right-section", children: [
|
|
632
|
-
/* @__PURE__ */ c(He, { theme: t, children: [
|
|
633
|
-
/* @__PURE__ */ n(F, { heightCoeff: 0.75, theme: t, width: "35%" }),
|
|
634
|
-
/* @__PURE__ */ n(F, { heightCoeff: 1.25, theme: t }),
|
|
635
|
-
/* @__PURE__ */ n(F, { heightCoeff: 3, theme: t })
|
|
636
|
-
] }),
|
|
637
|
-
/* @__PURE__ */ c("div", { className: "campaign__user", children: [
|
|
638
|
-
/* @__PURE__ */ n(
|
|
639
|
-
me,
|
|
640
|
-
{
|
|
641
|
-
theme: t,
|
|
642
|
-
width: "2.5rem",
|
|
643
|
-
height: "2.5rem",
|
|
644
|
-
borderRadius: "curved"
|
|
645
|
-
}
|
|
646
|
-
),
|
|
647
|
-
/* @__PURE__ */ n(F, { theme: t, width: "75%" })
|
|
648
|
-
] })
|
|
649
|
-
] })
|
|
650
|
-
] });
|
|
651
|
-
}), Ze = ({ itemsCount: e = 5, keyPrefix: t }) => /* @__PURE__ */ n(Xe, { children: Array.from({ length: e }, (o, i) => /* @__PURE__ */ n(
|
|
652
|
-
Ye,
|
|
653
|
-
{},
|
|
654
|
-
`${t}-skeleton-campaign-card-${i}`
|
|
655
|
-
)) }), qe = ({
|
|
656
|
-
children: e,
|
|
657
|
-
fallbackComponent: t = /* @__PURE__ */ n(De, {}),
|
|
658
|
-
isLoading: o = !1,
|
|
659
|
-
itemsCount: i = 5,
|
|
660
|
-
keyPrefix: d
|
|
661
|
-
}) => /* @__PURE__ */ n(ze, { fallback: t, children: o === !0 ? /* @__PURE__ */ n(Ze, { itemsCount: i, keyPrefix: d }) : e }), Je = m.div`
|
|
520
|
+
const qe = S.div`
|
|
662
521
|
margin: 0 auto;
|
|
663
522
|
display: flex;
|
|
664
523
|
flex-direction: column;
|
|
@@ -697,7 +556,7 @@ const F = m.div`
|
|
|
697
556
|
right: 0;
|
|
698
557
|
}
|
|
699
558
|
|
|
700
|
-
@media (max-width: ${
|
|
559
|
+
@media (max-width: ${z + "px"}) {
|
|
701
560
|
gap: 1.25rem;
|
|
702
561
|
|
|
703
562
|
& .scrollable-section__header {
|
|
@@ -709,13 +568,13 @@ const F = m.div`
|
|
|
709
568
|
}
|
|
710
569
|
}
|
|
711
570
|
}
|
|
712
|
-
`,
|
|
571
|
+
`, Xe = S(ue.div)`
|
|
713
572
|
display: grid;
|
|
714
|
-
grid-template-columns: repeat(${(
|
|
573
|
+
grid-template-columns: repeat(${(r) => r == null ? void 0 : r.numOfColumns}, 1fr);
|
|
715
574
|
gap: 1.5rem;
|
|
716
575
|
width: 100%;
|
|
717
576
|
|
|
718
|
-
@media (max-width: ${
|
|
577
|
+
@media (max-width: ${z + "px"}) {
|
|
719
578
|
display: flex;
|
|
720
579
|
flex-wrap: nowrap;
|
|
721
580
|
overflow-x: scroll;
|
|
@@ -737,39 +596,39 @@ const F = m.div`
|
|
|
737
596
|
/* Safari and Chrome */
|
|
738
597
|
}
|
|
739
598
|
}
|
|
740
|
-
`,
|
|
599
|
+
`, Se = M(
|
|
741
600
|
({
|
|
742
|
-
icon:
|
|
601
|
+
icon: r,
|
|
743
602
|
title: t,
|
|
744
603
|
numOfSlides: o = 2,
|
|
745
604
|
showNavigation: i = !0,
|
|
746
|
-
hasNextPage:
|
|
747
|
-
handleFetchNextPage:
|
|
605
|
+
hasNextPage: m = !1,
|
|
606
|
+
handleFetchNextPage: g = () => {
|
|
748
607
|
},
|
|
749
608
|
children: s
|
|
750
|
-
},
|
|
751
|
-
const [l,
|
|
609
|
+
}, p) => {
|
|
610
|
+
const [l, w] = K(0), [h, I] = K(1), f = be(), b = (s == null ? void 0 : s.length) ?? 1;
|
|
752
611
|
ee(() => {
|
|
753
|
-
const
|
|
754
|
-
|
|
612
|
+
const d = () => {
|
|
613
|
+
I(o);
|
|
755
614
|
};
|
|
756
|
-
return window.addEventListener("resize",
|
|
615
|
+
return window.addEventListener("resize", d), d(), () => window.removeEventListener("resize", d);
|
|
757
616
|
}, []);
|
|
758
|
-
const
|
|
759
|
-
var
|
|
760
|
-
(
|
|
761
|
-
const
|
|
762
|
-
|
|
763
|
-
},
|
|
764
|
-
var
|
|
765
|
-
(
|
|
617
|
+
const C = f ? s : s == null ? void 0 : s.slice(l, l + h), N = (d) => {
|
|
618
|
+
var $;
|
|
619
|
+
($ = d == null ? void 0 : d.target) == null || $.blur();
|
|
620
|
+
const u = l + h;
|
|
621
|
+
u < b && w(u), u + h >= b && m && g();
|
|
622
|
+
}, _ = (d) => {
|
|
623
|
+
var u;
|
|
624
|
+
(u = d == null ? void 0 : d.target) == null || u.blur(), l - h >= 0 && w(l - h);
|
|
766
625
|
};
|
|
767
|
-
return /* @__PURE__ */ c(
|
|
626
|
+
return /* @__PURE__ */ c(qe, { ref: p, children: [
|
|
768
627
|
/* @__PURE__ */ n("div", { className: "scrollable-section__header", children: /* @__PURE__ */ c("div", { className: "scrollable-section__title", children: [
|
|
769
|
-
Q(
|
|
770
|
-
|
|
628
|
+
Q(r) && /* @__PURE__ */ n(
|
|
629
|
+
xe,
|
|
771
630
|
{
|
|
772
|
-
icon:
|
|
631
|
+
icon: r,
|
|
773
632
|
color: "primary",
|
|
774
633
|
sizeInUnits: "1.5rem",
|
|
775
634
|
className: "title__icon"
|
|
@@ -781,10 +640,10 @@ const F = m.div`
|
|
|
781
640
|
] })
|
|
782
641
|
] }) }),
|
|
783
642
|
/* @__PURE__ */ c(
|
|
784
|
-
|
|
643
|
+
Xe,
|
|
785
644
|
{
|
|
786
645
|
numOfColumns: o,
|
|
787
|
-
...!
|
|
646
|
+
...!f && {
|
|
788
647
|
animate: {
|
|
789
648
|
x: 0,
|
|
790
649
|
opacity: 1
|
|
@@ -795,13 +654,13 @@ const F = m.div`
|
|
|
795
654
|
}
|
|
796
655
|
},
|
|
797
656
|
children: [
|
|
798
|
-
|
|
799
|
-
|
|
657
|
+
C,
|
|
658
|
+
f && m && /* @__PURE__ */ n(Re, { onIsVisible: g })
|
|
800
659
|
]
|
|
801
660
|
},
|
|
802
661
|
`scrollable-section__content-${l}`
|
|
803
662
|
),
|
|
804
|
-
i &&
|
|
663
|
+
i && b > h && !f && /* @__PURE__ */ c("div", { className: "scrollable-section__navigation", children: [
|
|
805
664
|
/* @__PURE__ */ n(
|
|
806
665
|
le,
|
|
807
666
|
{
|
|
@@ -811,7 +670,7 @@ const F = m.div`
|
|
|
811
670
|
color: "neutral",
|
|
812
671
|
className: "navigation__arrow",
|
|
813
672
|
disabled: l === 0,
|
|
814
|
-
onClick:
|
|
673
|
+
onClick: _
|
|
815
674
|
}
|
|
816
675
|
),
|
|
817
676
|
/* @__PURE__ */ n(
|
|
@@ -822,15 +681,15 @@ const F = m.div`
|
|
|
822
681
|
btnType: "tinted",
|
|
823
682
|
color: "neutral",
|
|
824
683
|
className: "navigation__arrow",
|
|
825
|
-
disabled: l +
|
|
826
|
-
onClick:
|
|
684
|
+
disabled: l + h >= b,
|
|
685
|
+
onClick: N
|
|
827
686
|
}
|
|
828
687
|
)
|
|
829
688
|
] })
|
|
830
689
|
] });
|
|
831
690
|
}
|
|
832
691
|
);
|
|
833
|
-
|
|
692
|
+
Se.propTypes = {
|
|
834
693
|
icon: a.string,
|
|
835
694
|
title: a.string,
|
|
836
695
|
numOfSlides: a.number,
|
|
@@ -838,11 +697,11 @@ ve.propTypes = {
|
|
|
838
697
|
handleFetchNextPage: a.func,
|
|
839
698
|
showNavigation: a.bool
|
|
840
699
|
};
|
|
841
|
-
const
|
|
700
|
+
const Ye = S.div`
|
|
842
701
|
display: flex;
|
|
843
702
|
flex: 1;
|
|
844
703
|
width: 100%;
|
|
845
|
-
max-height: ${(
|
|
704
|
+
max-height: ${(r) => r == null ? void 0 : r.maxHeight};
|
|
846
705
|
border-radius: 1.25rem;
|
|
847
706
|
|
|
848
707
|
&:hover {
|
|
@@ -855,148 +714,210 @@ const Qe = m.div`
|
|
|
855
714
|
border-radius: 1.25rem;
|
|
856
715
|
object-fit: cover;
|
|
857
716
|
}
|
|
858
|
-
`,
|
|
717
|
+
`, _e = M(
|
|
859
718
|
({
|
|
860
|
-
sectionName:
|
|
719
|
+
sectionName: r,
|
|
861
720
|
imageUrl: t,
|
|
862
721
|
maxHeight: o = "16.25rem",
|
|
863
722
|
className: i = "",
|
|
864
|
-
handleClick:
|
|
723
|
+
handleClick: m = () => {
|
|
865
724
|
}
|
|
866
|
-
},
|
|
867
|
-
|
|
725
|
+
}, g) => /* @__PURE__ */ n(
|
|
726
|
+
Ye,
|
|
868
727
|
{
|
|
869
|
-
ref:
|
|
728
|
+
ref: g,
|
|
870
729
|
maxHeight: o,
|
|
871
|
-
onClick:
|
|
730
|
+
onClick: m,
|
|
872
731
|
className: `itemless-banner ${i}`,
|
|
873
|
-
children: /* @__PURE__ */ n("img", { src: t, alt: `itemless-banner__${
|
|
732
|
+
children: /* @__PURE__ */ n("img", { src: t, alt: `itemless-banner__${r}` })
|
|
874
733
|
}
|
|
875
734
|
)
|
|
876
735
|
);
|
|
877
|
-
|
|
736
|
+
_e.propTypes = {
|
|
878
737
|
sectionName: a.string,
|
|
879
738
|
imageUrl: a.string,
|
|
880
739
|
maxHeight: a.string,
|
|
881
740
|
className: a.string,
|
|
882
741
|
handleClick: a.func
|
|
883
742
|
};
|
|
884
|
-
const
|
|
743
|
+
const Ze = S(L)`
|
|
744
|
+
@media (max-width: ${z + "px"}) {
|
|
745
|
+
flex-direction: column;
|
|
746
|
+
|
|
747
|
+
& .skeleton__image {
|
|
748
|
+
width: 100%;
|
|
749
|
+
height: 100%;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
& > div {
|
|
753
|
+
&:last-of-type {
|
|
754
|
+
display: none;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
`, Je = ({ keyPrefix: r }) => /* @__PURE__ */ c(Ze, { children: [
|
|
759
|
+
/* @__PURE__ */ c(L, { children: [
|
|
760
|
+
/* @__PURE__ */ n(
|
|
761
|
+
ce,
|
|
762
|
+
{
|
|
763
|
+
width: "13.75rem",
|
|
764
|
+
height: "13.75rem",
|
|
765
|
+
className: "skeleton__image"
|
|
766
|
+
},
|
|
767
|
+
`${r}-1`
|
|
768
|
+
),
|
|
769
|
+
/* @__PURE__ */ c(de, { noGradient: !0, children: [
|
|
770
|
+
/* @__PURE__ */ n(y, { height: "1rem" }),
|
|
771
|
+
/* @__PURE__ */ n(y, { height: "1.75rem" }),
|
|
772
|
+
/* @__PURE__ */ n(y, { height: "1.25rem" }),
|
|
773
|
+
/* @__PURE__ */ n(y, { height: "2rem" }),
|
|
774
|
+
/* @__PURE__ */ c(L, { alignItems: "center", noGradient: !0, children: [
|
|
775
|
+
/* @__PURE__ */ n(me, { width: "2.5rem", height: "2.5rem" }),
|
|
776
|
+
/* @__PURE__ */ n(y, { width: "5rem", height: "1.25rem" })
|
|
777
|
+
] })
|
|
778
|
+
] })
|
|
779
|
+
] }),
|
|
780
|
+
/* @__PURE__ */ c(L, { noGradient: !0, children: [
|
|
781
|
+
/* @__PURE__ */ n(
|
|
782
|
+
ce,
|
|
783
|
+
{
|
|
784
|
+
width: "13.75rem",
|
|
785
|
+
height: "13.75rem",
|
|
786
|
+
className: "skeleton__image"
|
|
787
|
+
},
|
|
788
|
+
`${r}-2`
|
|
789
|
+
),
|
|
790
|
+
/* @__PURE__ */ c(de, { noGradient: !0, children: [
|
|
791
|
+
/* @__PURE__ */ n(y, { height: "1rem" }),
|
|
792
|
+
/* @__PURE__ */ n(y, { height: "1.75rem" }),
|
|
793
|
+
/* @__PURE__ */ n(y, { height: "1.25rem" }),
|
|
794
|
+
/* @__PURE__ */ n(y, { height: "2rem" }),
|
|
795
|
+
/* @__PURE__ */ c(L, { alignItems: "center", noGradient: !0, children: [
|
|
796
|
+
/* @__PURE__ */ n(me, { width: "2.5rem", height: "2.5rem" }),
|
|
797
|
+
/* @__PURE__ */ n(y, { width: "5rem", height: "1.25rem" })
|
|
798
|
+
] })
|
|
799
|
+
] })
|
|
800
|
+
] })
|
|
801
|
+
] }), Ke = ({
|
|
802
|
+
keyPrefix: r,
|
|
803
|
+
isLoading: t = !1,
|
|
804
|
+
fallbackComponent: o = /* @__PURE__ */ n(Pe, {}),
|
|
805
|
+
children: i
|
|
806
|
+
}) => /* @__PURE__ */ n(Me, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ n(Je, { keyPrefix: r }) : i }), Qe = Ue(ye), fr = M(
|
|
885
807
|
({
|
|
886
|
-
sellerType:
|
|
808
|
+
sellerType: r = "Shop",
|
|
887
809
|
items: t = [],
|
|
888
810
|
title: o,
|
|
889
811
|
icon: i,
|
|
890
|
-
isLoading:
|
|
891
|
-
onSelectCard:
|
|
812
|
+
isLoading: m,
|
|
813
|
+
onSelectCard: g = () => {
|
|
892
814
|
},
|
|
893
815
|
onSelectShop: s = () => {
|
|
894
816
|
},
|
|
895
|
-
getImage:
|
|
817
|
+
getImage: p = () => {
|
|
896
818
|
},
|
|
897
819
|
campaignSingleText: l,
|
|
898
|
-
upcomingCampaignText:
|
|
899
|
-
salesCampaignTypes:
|
|
900
|
-
startsInPrefixTextPlural:
|
|
901
|
-
startsinSuffixTextPlural:
|
|
902
|
-
startsInPrefixTextSingular:
|
|
903
|
-
startsinSuffixTextSingular:
|
|
904
|
-
endsInPrefixTextPlural:
|
|
905
|
-
endsinSuffixTextPlural:
|
|
906
|
-
endsInPrefixTextSingular:
|
|
907
|
-
endsinSuffixTextSingular:
|
|
908
|
-
numOfSlides:
|
|
909
|
-
showNavigation:
|
|
910
|
-
numberOfListingsTextSingular:
|
|
911
|
-
numberOfListingsTextPlural:
|
|
912
|
-
itemlessImageUrl:
|
|
820
|
+
upcomingCampaignText: w,
|
|
821
|
+
salesCampaignTypes: h = [],
|
|
822
|
+
startsInPrefixTextPlural: I,
|
|
823
|
+
startsinSuffixTextPlural: f,
|
|
824
|
+
startsInPrefixTextSingular: b,
|
|
825
|
+
startsinSuffixTextSingular: C,
|
|
826
|
+
endsInPrefixTextPlural: N,
|
|
827
|
+
endsinSuffixTextPlural: _,
|
|
828
|
+
endsInPrefixTextSingular: d,
|
|
829
|
+
endsinSuffixTextSingular: u,
|
|
830
|
+
numOfSlides: $ = 2,
|
|
831
|
+
showNavigation: k = !0,
|
|
832
|
+
numberOfListingsTextSingular: F,
|
|
833
|
+
numberOfListingsTextPlural: G,
|
|
834
|
+
itemlessImageUrl: V,
|
|
913
835
|
itemlessLink: ne,
|
|
914
|
-
handleItemlessLink:
|
|
836
|
+
handleItemlessLink: A = () => {
|
|
915
837
|
},
|
|
916
|
-
componentName:
|
|
917
|
-
hasNextPage:
|
|
918
|
-
handleFetchNextPage:
|
|
838
|
+
componentName: H,
|
|
839
|
+
hasNextPage: U = !1,
|
|
840
|
+
handleFetchNextPage: q = () => {
|
|
919
841
|
}
|
|
920
842
|
}, te) => {
|
|
921
|
-
const
|
|
922
|
-
let
|
|
923
|
-
|
|
843
|
+
const T = be(), X = Oe(() => {
|
|
844
|
+
let O = t == null ? void 0 : t.map((e, Y) => /* @__PURE__ */ n(
|
|
845
|
+
Qe,
|
|
924
846
|
{
|
|
925
847
|
className: "campaign-item",
|
|
926
|
-
coverPhoto:
|
|
927
|
-
|
|
928
|
-
(
|
|
848
|
+
coverPhoto: p(
|
|
849
|
+
e == null ? void 0 : e.coverPhoto,
|
|
850
|
+
(e == null ? void 0 : e.uuid) || (e == null ? void 0 : e.campaignUuid)
|
|
929
851
|
),
|
|
930
|
-
description:
|
|
931
|
-
endDate:
|
|
932
|
-
salesPackages:
|
|
933
|
-
sellerType:
|
|
934
|
-
shopImage:
|
|
935
|
-
shopImageComponent:
|
|
936
|
-
shopName:
|
|
937
|
-
shopUuid:
|
|
938
|
-
shopCategory:
|
|
939
|
-
startDate:
|
|
940
|
-
title:
|
|
941
|
-
uuid:
|
|
942
|
-
onSelectCard: (
|
|
943
|
-
onSelectShop: () => s(
|
|
852
|
+
description: e == null ? void 0 : e.description,
|
|
853
|
+
endDate: e == null ? void 0 : e.endDate,
|
|
854
|
+
salesPackages: e == null ? void 0 : e.salesPackages,
|
|
855
|
+
sellerType: r,
|
|
856
|
+
shopImage: e == null ? void 0 : e.profileImage,
|
|
857
|
+
shopImageComponent: e == null ? void 0 : e.profileImageComponent,
|
|
858
|
+
shopName: e == null ? void 0 : e.shopName,
|
|
859
|
+
shopUuid: e == null ? void 0 : e.shopUuid,
|
|
860
|
+
shopCategory: e == null ? void 0 : e.shopCategory,
|
|
861
|
+
startDate: e == null ? void 0 : e.startDate,
|
|
862
|
+
title: e == null ? void 0 : e.name,
|
|
863
|
+
uuid: e == null ? void 0 : e.campaignUuid,
|
|
864
|
+
onSelectCard: (Z, E) => g(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, E),
|
|
865
|
+
onSelectShop: () => s(e == null ? void 0 : e.shopUuid),
|
|
944
866
|
campaignSingleText: l,
|
|
945
|
-
upcomingCampaignText:
|
|
946
|
-
upcoming:
|
|
947
|
-
salesCampaignTypes:
|
|
948
|
-
startsInPrefixTextPlural:
|
|
949
|
-
startsinSuffixTextPlural:
|
|
950
|
-
startsInPrefixTextSingular:
|
|
951
|
-
startsinSuffixTextSingular:
|
|
952
|
-
endsInPrefixTextPlural:
|
|
953
|
-
endsinSuffixTextPlural:
|
|
954
|
-
endsInPrefixTextSingular:
|
|
955
|
-
endsinSuffixTextSingular:
|
|
956
|
-
themeData:
|
|
957
|
-
numberOfListings:
|
|
958
|
-
numberOfListingsTextSingular:
|
|
959
|
-
numberOfListingsTextPlural:
|
|
960
|
-
metadata: { name:
|
|
867
|
+
upcomingCampaignText: w,
|
|
868
|
+
upcoming: e == null ? void 0 : e.upcoming,
|
|
869
|
+
salesCampaignTypes: h,
|
|
870
|
+
startsInPrefixTextPlural: I,
|
|
871
|
+
startsinSuffixTextPlural: f,
|
|
872
|
+
startsInPrefixTextSingular: b,
|
|
873
|
+
startsinSuffixTextSingular: C,
|
|
874
|
+
endsInPrefixTextPlural: N,
|
|
875
|
+
endsinSuffixTextPlural: _,
|
|
876
|
+
endsInPrefixTextSingular: d,
|
|
877
|
+
endsinSuffixTextSingular: u,
|
|
878
|
+
themeData: e == null ? void 0 : e.themeData,
|
|
879
|
+
numberOfListings: e == null ? void 0 : e.numberOfListings,
|
|
880
|
+
numberOfListingsTextSingular: F,
|
|
881
|
+
numberOfListingsTextPlural: G,
|
|
882
|
+
metadata: { name: H, accessor: e == null ? void 0 : e.accessor }
|
|
961
883
|
},
|
|
962
|
-
`campaign__item__${
|
|
884
|
+
`campaign__item__${Y}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
|
|
963
885
|
));
|
|
964
|
-
return (t == null ? void 0 : t.length) < 2 && !
|
|
965
|
-
...
|
|
886
|
+
return (t == null ? void 0 : t.length) < 2 && !T ? [
|
|
887
|
+
...O,
|
|
966
888
|
/* @__PURE__ */ n(
|
|
967
|
-
|
|
889
|
+
_e,
|
|
968
890
|
{
|
|
969
|
-
imageUrl:
|
|
891
|
+
imageUrl: V,
|
|
970
892
|
className: "campaign-item",
|
|
971
|
-
handleClick:
|
|
893
|
+
handleClick: A
|
|
972
894
|
},
|
|
973
895
|
"itemless-campaign-section-banner"
|
|
974
896
|
)
|
|
975
|
-
] :
|
|
897
|
+
] : O;
|
|
976
898
|
}, [t]);
|
|
977
899
|
return /* @__PURE__ */ n(
|
|
978
|
-
|
|
900
|
+
Ke,
|
|
979
901
|
{
|
|
980
|
-
isLoading:
|
|
981
|
-
|
|
982
|
-
keyPrefix: "sales-camp",
|
|
902
|
+
isLoading: m,
|
|
903
|
+
keyPrefix: "sales-campaign-skeleton",
|
|
983
904
|
children: /* @__PURE__ */ n(
|
|
984
|
-
|
|
905
|
+
Se,
|
|
985
906
|
{
|
|
986
907
|
icon: i,
|
|
987
908
|
title: o,
|
|
988
|
-
numOfSlides:
|
|
989
|
-
showNavigation:
|
|
990
|
-
hasNextPage:
|
|
991
|
-
handleFetchNextPage:
|
|
992
|
-
children:
|
|
909
|
+
numOfSlides: $,
|
|
910
|
+
showNavigation: k,
|
|
911
|
+
hasNextPage: U,
|
|
912
|
+
handleFetchNextPage: q,
|
|
913
|
+
children: X
|
|
993
914
|
},
|
|
994
|
-
`sales-campaign-section__${
|
|
915
|
+
`sales-campaign-section__${T}`
|
|
995
916
|
)
|
|
996
917
|
}
|
|
997
918
|
);
|
|
998
919
|
}
|
|
999
920
|
);
|
|
1000
921
|
export {
|
|
1001
|
-
|
|
922
|
+
fr as default
|
|
1002
923
|
};
|