@lanaco/lnc-react-ui 4.0.172 → 4.0.174
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/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-laAY-RUT.js → CategorySimpleCard-BA0S7TaN.js} +1 -1
- package/dist/{CategorySimpleCard-Qe5QStrs.cjs → CategorySimpleCard-BNYjZQTH.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-ArAVZsIj.js → CustomStyles-6WboE3g5.js} +1 -1
- package/dist/{CustomStyles-Q6et9atl.cjs → CustomStyles-C86XQqBE.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 +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +23 -22
- 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/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 +25 -25
- package/dist/SalesCampaignsSection.js +317 -322
- 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 +67 -67
- 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-D8KPbcUf.js → index-8quQ_PZS.js} +1 -1
- package/dist/{index-BPntOicE.js → index-B8I1mHMA.js} +2 -2
- package/dist/{index-CsEmnNEh.cjs → index-BD-qUr5R.cjs} +1 -1
- package/dist/{index-BMOLVn8O.js → index-BGiZlEQt.js} +1 -1
- package/dist/{index-DFdPWO4O.js → index-Bhfq_YpE.js} +2 -2
- package/dist/{index-CfT9e5O9.cjs → index-BnYqZk-h.cjs} +1 -1
- package/dist/{index-BvQx3xAm.cjs → index-CSNxZFTX.cjs} +1 -1
- package/dist/{index-BbltNcou.js → index-C_NnINik.js} +1 -1
- package/dist/{index-ELUMKl0N.cjs → index-D0JDnm9b.cjs} +1 -1
- package/dist/{index-D69SKc-n.cjs → index-D55MR8tU.cjs} +1 -1
- package/dist/{index-G6ucyCg3.js → index-DMnFESGw.js} +2 -2
- package/dist/{index-XYs5Cuh5.js → index-DWLKvVyZ.js} +2 -2
- package/dist/{index-C5r__0lD.cjs → index-DoKMLSVY.cjs} +1 -1
- package/dist/{index-BueKsXT8.cjs → index-uwl7BjRF.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{style-D3pIrH3v.js → style-C7FUSHmS.js} +1 -1
- package/dist/{style-Db3VFbfP.cjs → style-CkcozOY6.cjs} +1 -1
- package/dist/{utils-DHfRApMf.js → utils-Dc5zIpaz.js} +138 -96
- package/dist/{utils-Dl9xPH4c.cjs → utils-RnrgDDZP.cjs} +10 -10
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { forwardRef as M, useRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { a as
|
|
5
|
-
import { M as
|
|
6
|
-
import { m as
|
|
7
|
-
import { P as
|
|
8
|
-
import
|
|
9
|
-
import { D as
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import { u as
|
|
14
|
-
import { I as
|
|
15
|
-
import { a as
|
|
16
|
-
const
|
|
1
|
+
import { jsx as n, jsxs as l, Fragment as Oe } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as M, useRef as we, useEffect as ae, Fragment as Me, createElement as je, useState as ne, Suspense as Re, memo as Be, useMemo as We } from "react";
|
|
3
|
+
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { a as oe, k as te, l as Fe, z as Ge, A as Ve, B as Ae, C as ge } from "./utils-Dc5zIpaz.js";
|
|
5
|
+
import { M as E } from "./consts-BuFChS64.js";
|
|
6
|
+
import { m as ye } from "./motion-Ckekul_K.js";
|
|
7
|
+
import { P as t } from "./index-CblbdqjE.js";
|
|
8
|
+
import Se from "./Icon.js";
|
|
9
|
+
import { D as pe } from "./ShopAvatar-4-fCYGEc.js";
|
|
10
|
+
import He from "./Badge.js";
|
|
11
|
+
import { u as _e } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
12
|
+
import he from "./IconButton.js";
|
|
13
|
+
import { u as $e } from "./useDetectMobile-Bkvj0VMa.js";
|
|
14
|
+
import { I as Ze } from "./index-C0LcDEqa.js";
|
|
15
|
+
import { a as O, c as ue, S as fe, b as w, d as xe } from "./style-CXMUA6cI.js";
|
|
16
|
+
const qe = y.div`
|
|
17
17
|
cursor: pointer;
|
|
18
18
|
display: flex;
|
|
19
19
|
gap: 1rem;
|
|
@@ -21,13 +21,13 @@ const Be = S.div`
|
|
|
21
21
|
border-radius: 1.25rem;
|
|
22
22
|
border: 1px solid var(--gray-200, #e4e9f0);
|
|
23
23
|
|
|
24
|
-
@media (max-width: ${
|
|
24
|
+
@media (max-width: ${E + "px"}) {
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
padding: 1rem;
|
|
27
27
|
gap: 0;
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
30
|
-
border-radius: ${(r) =>
|
|
29
|
+
`, Xe = y.div`
|
|
30
|
+
border-radius: ${(r) => oe(r.theme, "edged")};
|
|
31
31
|
height: 13.75rem;
|
|
32
32
|
width: 13.75rem;
|
|
33
33
|
min-width: 13.75rem;
|
|
@@ -49,7 +49,7 @@ const Be = S.div`
|
|
|
49
49
|
transform: scale(1.25);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
`,
|
|
52
|
+
`, Ye = y.div`
|
|
53
53
|
flex: 1;
|
|
54
54
|
display: flex;
|
|
55
55
|
flex-direction: column;
|
|
@@ -132,7 +132,7 @@ const Be = S.div`
|
|
|
132
132
|
color: var(--gray-600, #676e79);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
@media (max-width: ${
|
|
135
|
+
@media (max-width: ${E + "px"}) {
|
|
136
136
|
padding: 1rem 0 0 0;
|
|
137
137
|
|
|
138
138
|
& .campaign-title-text {
|
|
@@ -157,13 +157,13 @@ const Be = S.div`
|
|
|
157
157
|
gap: 0.25rem;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
`,
|
|
160
|
+
`, be = (r = !1, a = !1, o = !1) => `
|
|
161
161
|
display: flex;
|
|
162
|
-
${
|
|
163
|
-
${
|
|
162
|
+
${a ? "flex-wrap: wrap;" : ""}
|
|
163
|
+
${a ? "" : "flex-wrap: nowrap;"}
|
|
164
164
|
${r ? "align-items: center;" : ""}
|
|
165
165
|
${o ? "justify-content: center;" : ""}
|
|
166
|
-
`,
|
|
166
|
+
`, Je = y(ye.div)`
|
|
167
167
|
text-decoration: none;
|
|
168
168
|
${(r) => r.hasPermission === !0 && "cursor: pointer"};
|
|
169
169
|
|
|
@@ -180,14 +180,14 @@ const Be = S.div`
|
|
|
180
180
|
text-decoration: none;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
${
|
|
183
|
+
${be(!0)}
|
|
184
184
|
gap: 0.5rem;
|
|
185
185
|
padding: 0.5rem;
|
|
186
186
|
color: var(--gray-950, #14161a);
|
|
187
187
|
font-weight: 500;
|
|
188
188
|
font-size: 1rem;
|
|
189
189
|
line-height: 1.5rem;
|
|
190
|
-
border-radius: ${(r) =>
|
|
190
|
+
border-radius: ${(r) => oe(r.theme, "slight")};
|
|
191
191
|
transition: all 0.25s ease;
|
|
192
192
|
& .description {
|
|
193
193
|
font-size: 0.85rem;
|
|
@@ -196,7 +196,7 @@ const Be = S.div`
|
|
|
196
196
|
font-weight: 400;
|
|
197
197
|
}
|
|
198
198
|
& .logo-wrapper {
|
|
199
|
-
${
|
|
199
|
+
${be(!0, !1, !0)}
|
|
200
200
|
flex-shrink: 0;
|
|
201
201
|
border-radius: 999px;
|
|
202
202
|
|
|
@@ -235,18 +235,18 @@ const Be = S.div`
|
|
|
235
235
|
background-color: var(--gray-95080, #14161acc);
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
@media (max-width: ${
|
|
238
|
+
@media (max-width: ${E + "px"}) {
|
|
239
239
|
padding: 0;
|
|
240
240
|
font-size: 0.875rem;
|
|
241
241
|
}
|
|
242
|
-
`,
|
|
242
|
+
`, Ke = y.div`
|
|
243
243
|
position: absolute;
|
|
244
244
|
top: 0.5rem;
|
|
245
245
|
${(r) => r.alignToLeft === !0 ? "left: 0.5rem;" : "right: 0.5rem;"}
|
|
246
246
|
display: flex;
|
|
247
247
|
gap: 0.25rem;
|
|
248
|
-
`,
|
|
249
|
-
border-radius: ${(r) =>
|
|
248
|
+
`, Qe = y.div`
|
|
249
|
+
border-radius: ${(r) => oe(r.theme, r.borderRadius || "slight")};
|
|
250
250
|
background-color: ${(r) => r == null ? void 0 : r.color};
|
|
251
251
|
color: white;
|
|
252
252
|
height: 1.5rem;
|
|
@@ -261,76 +261,76 @@ const Be = S.div`
|
|
|
261
261
|
& i {
|
|
262
262
|
font-size: 0.813rem;
|
|
263
263
|
}
|
|
264
|
-
`,
|
|
265
|
-
const
|
|
266
|
-
return
|
|
264
|
+
`, er = M(({ src: r, ...a }, o) => {
|
|
265
|
+
const s = we();
|
|
266
|
+
return ae(() => {
|
|
267
267
|
var g;
|
|
268
|
-
const m = (
|
|
269
|
-
|
|
268
|
+
const m = (i) => {
|
|
269
|
+
i.target.src = pe, i.onerror = null;
|
|
270
270
|
};
|
|
271
|
-
return (g =
|
|
272
|
-
var
|
|
273
|
-
(
|
|
271
|
+
return (g = s == null ? void 0 : s.current) == null || g.addEventListener("error", m), () => {
|
|
272
|
+
var i;
|
|
273
|
+
(i = s == null ? void 0 : s.current) == null || i.removeEventListener("error", m);
|
|
274
274
|
};
|
|
275
|
-
}, []), /* @__PURE__ */ n(
|
|
276
|
-
}),
|
|
275
|
+
}, []), /* @__PURE__ */ n(Me, { ref: o, children: te(r) ? /* @__PURE__ */ n("img", { ref: s, src: r, ...a }) : /* @__PURE__ */ n("img", { src: pe, ...a }) });
|
|
276
|
+
}), ke = (r) => {
|
|
277
277
|
const {
|
|
278
|
-
uuid:
|
|
278
|
+
uuid: a,
|
|
279
279
|
hasPermission: o = !0,
|
|
280
|
-
isUser:
|
|
280
|
+
isUser: s,
|
|
281
281
|
image: m,
|
|
282
282
|
imageComponent: g,
|
|
283
|
-
name:
|
|
284
|
-
notifications:
|
|
285
|
-
color:
|
|
286
|
-
size:
|
|
287
|
-
style:
|
|
283
|
+
name: i,
|
|
284
|
+
notifications: h = 0,
|
|
285
|
+
color: c = "primary",
|
|
286
|
+
size: b = "large",
|
|
287
|
+
style: p,
|
|
288
288
|
disabled: I,
|
|
289
|
-
onClick:
|
|
289
|
+
onClick: u = () => {
|
|
290
290
|
},
|
|
291
|
-
isActive:
|
|
292
|
-
className:
|
|
293
|
-
shopCategory:
|
|
291
|
+
isActive: v,
|
|
292
|
+
className: N,
|
|
293
|
+
shopCategory: T,
|
|
294
294
|
// new
|
|
295
|
-
themeData:
|
|
296
|
-
} = r,
|
|
297
|
-
theme:
|
|
298
|
-
color:
|
|
299
|
-
size:
|
|
300
|
-
style:
|
|
295
|
+
themeData: S
|
|
296
|
+
} = r, f = {
|
|
297
|
+
theme: _e(),
|
|
298
|
+
color: c,
|
|
299
|
+
size: b,
|
|
300
|
+
style: p,
|
|
301
301
|
disabled: I
|
|
302
302
|
};
|
|
303
|
-
return /* @__PURE__ */
|
|
304
|
-
|
|
303
|
+
return /* @__PURE__ */ je(
|
|
304
|
+
Je,
|
|
305
305
|
{
|
|
306
306
|
onClick: ($) => {
|
|
307
|
-
$.stopPropagation(), o === !0 && (
|
|
307
|
+
$.stopPropagation(), o === !0 && (u == null || u());
|
|
308
308
|
},
|
|
309
|
-
...
|
|
310
|
-
key:
|
|
311
|
-
className: `profile-item ${
|
|
309
|
+
...f,
|
|
310
|
+
key: i,
|
|
311
|
+
className: `profile-item ${N}`,
|
|
312
312
|
hasPermission: o,
|
|
313
|
-
isActive:
|
|
314
|
-
themeColor: (
|
|
313
|
+
isActive: v,
|
|
314
|
+
themeColor: (S == null ? void 0 : S.code) || "transparent"
|
|
315
315
|
},
|
|
316
|
-
/* @__PURE__ */ n("div", { className: "logo-wrapper", children:
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
-
/* @__PURE__ */ n("div", { className: "name", children:
|
|
319
|
-
!
|
|
320
|
-
|
|
316
|
+
/* @__PURE__ */ n("div", { className: "logo-wrapper", children: Fe(g) ? g : m }),
|
|
317
|
+
/* @__PURE__ */ l("div", { children: [
|
|
318
|
+
/* @__PURE__ */ n("div", { className: "name", children: i }),
|
|
319
|
+
!s && /* @__PURE__ */ n("div", { className: "description", children: T }),
|
|
320
|
+
h > 0 && /* @__PURE__ */ n("div", { className: "notifications-number", children: /* @__PURE__ */ n(He, { className: "badge", color: "danger", size: "small", children: h > 99 ? "99+" : h }) })
|
|
321
321
|
] })
|
|
322
322
|
);
|
|
323
323
|
};
|
|
324
|
-
|
|
325
|
-
id:
|
|
326
|
-
isUserProfile:
|
|
327
|
-
themeColor:
|
|
328
|
-
image:
|
|
329
|
-
name:
|
|
330
|
-
notifications:
|
|
331
|
-
style:
|
|
332
|
-
className:
|
|
333
|
-
color:
|
|
324
|
+
ke.propTypes = {
|
|
325
|
+
id: t.any,
|
|
326
|
+
isUserProfile: t.bool,
|
|
327
|
+
themeColor: t.string,
|
|
328
|
+
image: t.any,
|
|
329
|
+
name: t.string,
|
|
330
|
+
notifications: t.number,
|
|
331
|
+
style: t.object,
|
|
332
|
+
className: t.string,
|
|
333
|
+
color: t.oneOf([
|
|
334
334
|
"primary",
|
|
335
335
|
"secondary",
|
|
336
336
|
"success",
|
|
@@ -339,126 +339,119 @@ ve.propTypes = {
|
|
|
339
339
|
"information",
|
|
340
340
|
"neutral"
|
|
341
341
|
]),
|
|
342
|
-
size:
|
|
343
|
-
onSelect:
|
|
344
|
-
hasPermission:
|
|
342
|
+
size: t.oneOf(["large"]),
|
|
343
|
+
onSelect: t.func,
|
|
344
|
+
hasPermission: t.bool
|
|
345
345
|
};
|
|
346
|
-
const
|
|
347
|
-
if (!r || !t) return null;
|
|
348
|
-
const o = r.getTime() - t.getTime(), i = 24 * 60 * 60 * 1e3;
|
|
349
|
-
return Math.floor(o / i);
|
|
350
|
-
}, he = (r) => {
|
|
346
|
+
const ve = (r) => {
|
|
351
347
|
if (r !== void 0) {
|
|
352
|
-
const
|
|
353
|
-
return `${String(
|
|
348
|
+
const a = new Date(r), o = a.getFullYear(), s = a.getMonth() + 1;
|
|
349
|
+
return `${String(a.getDate()).padStart(2)}. ${s}. ${o}.`;
|
|
354
350
|
}
|
|
355
|
-
},
|
|
356
|
-
var
|
|
357
|
-
const o =
|
|
351
|
+
}, Ce = M((r, a) => {
|
|
352
|
+
var me;
|
|
353
|
+
const o = _e(), {
|
|
358
354
|
// uuid,
|
|
359
|
-
shopUuid:
|
|
355
|
+
shopUuid: s,
|
|
360
356
|
title: m = "",
|
|
361
357
|
// description,
|
|
362
358
|
// badges,
|
|
363
359
|
coverPhoto: g,
|
|
364
|
-
onSelect:
|
|
360
|
+
onSelect: i,
|
|
365
361
|
// status,
|
|
366
|
-
startDate:
|
|
367
|
-
endDate:
|
|
368
|
-
salesPackages:
|
|
369
|
-
shopName:
|
|
362
|
+
startDate: h,
|
|
363
|
+
endDate: c,
|
|
364
|
+
salesPackages: b,
|
|
365
|
+
shopName: p,
|
|
370
366
|
shopCategory: I,
|
|
371
|
-
shopImage:
|
|
372
|
-
shopImageComponent:
|
|
373
|
-
className:
|
|
374
|
-
onSelectCard:
|
|
367
|
+
shopImage: u,
|
|
368
|
+
shopImageComponent: v,
|
|
369
|
+
className: N,
|
|
370
|
+
onSelectCard: T = () => {
|
|
375
371
|
},
|
|
376
|
-
onSelectShop:
|
|
372
|
+
onSelectShop: S = () => {
|
|
377
373
|
},
|
|
378
374
|
upcoming: d = !1,
|
|
379
|
-
upcomingCampaignText:
|
|
375
|
+
upcomingCampaignText: f,
|
|
380
376
|
campaignSingleText: $,
|
|
381
377
|
salesCampaignTypes: k = [],
|
|
382
378
|
startsInPrefixTextPlural: F,
|
|
383
379
|
startsinSuffixTextPlural: G,
|
|
384
380
|
startsInPrefixTextSingular: V,
|
|
385
|
-
startsinSuffixTextSingular:
|
|
386
|
-
endsInPrefixTextPlural:
|
|
381
|
+
startsinSuffixTextSingular: A,
|
|
382
|
+
endsInPrefixTextPlural: ie,
|
|
387
383
|
endsinSuffixTextPlural: H,
|
|
388
|
-
endsInPrefixTextSingular:
|
|
389
|
-
endsinSuffixTextSingular:
|
|
390
|
-
|
|
391
|
-
|
|
384
|
+
endsInPrefixTextSingular: j,
|
|
385
|
+
endsinSuffixTextSingular: Z,
|
|
386
|
+
endedText: q,
|
|
387
|
+
themeData: se,
|
|
388
|
+
numberOfListings: z,
|
|
392
389
|
numberOfListingsTextSingular: X,
|
|
393
|
-
numberOfListingsTextPlural:
|
|
390
|
+
numberOfListingsTextPlural: R,
|
|
394
391
|
metadata: e,
|
|
395
392
|
...Y
|
|
396
|
-
} = r,
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
ee(() => {
|
|
410
|
-
if (!R) return;
|
|
411
|
-
const v = setInterval(() => {
|
|
412
|
-
De(/* @__PURE__ */ new Date());
|
|
393
|
+
} = r, J = we(), D = Ge(h, c), K = D !== -1 && (D == null ? void 0 : D.isEnded) === !0, Q = D !== -1 && !K, ee = Ve(h), L = Ae(c), Te = L !== null && L <= 2 && L > 0, le = ge(c), ce = le ? new Date(le) : null, De = /* @__PURE__ */ new Date(), re = ce ? ce.getTime() - De.getTime() : null, B = re !== null && re > 0 && re < 24 * 60 * 60 * 1e3, de = (x, U, C, _, P) => C === 1 ? `${x} ${C} ${_}` : `${U} ${C} ${P}`, Pe = () => {
|
|
394
|
+
if (!c) return null;
|
|
395
|
+
const x = ge(c), U = x ? new Date(x) : null;
|
|
396
|
+
if (!U) return null;
|
|
397
|
+
const C = ze, _ = U.getTime() - C.getTime();
|
|
398
|
+
if (_ <= 0) return null;
|
|
399
|
+
const P = Math.floor(_ / (1e3 * 60 * 60)), Ue = Math.floor(_ % (1e3 * 60 * 60) / (1e3 * 60)), Ee = Math.floor(_ % (1e3 * 60) / 1e3);
|
|
400
|
+
return { hours: P, minutes: Ue, seconds: Ee };
|
|
401
|
+
}, [ze, Le] = ne(/* @__PURE__ */ new Date());
|
|
402
|
+
ae(() => {
|
|
403
|
+
if (!B) return;
|
|
404
|
+
const x = setInterval(() => {
|
|
405
|
+
Le(/* @__PURE__ */ new Date());
|
|
413
406
|
}, 1e3);
|
|
414
|
-
return () => clearInterval(
|
|
415
|
-
}, [
|
|
416
|
-
const
|
|
417
|
-
return /* @__PURE__ */
|
|
418
|
-
|
|
407
|
+
return () => clearInterval(x);
|
|
408
|
+
}, [B]);
|
|
409
|
+
const W = B ? Pe() : null;
|
|
410
|
+
return /* @__PURE__ */ l(
|
|
411
|
+
qe,
|
|
419
412
|
{
|
|
420
|
-
ref:
|
|
413
|
+
ref: J,
|
|
421
414
|
theme: o,
|
|
422
|
-
className:
|
|
415
|
+
className: N,
|
|
423
416
|
name: e == null ? void 0 : e.name,
|
|
424
417
|
"data-accessor": e == null ? void 0 : e.accessor,
|
|
425
|
-
onClick: (
|
|
418
|
+
onClick: (x) => T(x, J),
|
|
426
419
|
...Y,
|
|
427
420
|
children: [
|
|
428
|
-
/* @__PURE__ */
|
|
421
|
+
/* @__PURE__ */ l(Xe, { theme: o, onClick: () => i == null ? void 0 : i(), children: [
|
|
429
422
|
/* @__PURE__ */ n("img", { src: g }),
|
|
430
|
-
/* @__PURE__ */ n(
|
|
431
|
-
var
|
|
423
|
+
/* @__PURE__ */ n(Ke, { children: b == null ? void 0 : b.map((x, U) => {
|
|
424
|
+
var C, _;
|
|
432
425
|
return /* @__PURE__ */ n(
|
|
433
|
-
|
|
426
|
+
Qe,
|
|
434
427
|
{
|
|
435
|
-
color: (
|
|
428
|
+
color: (C = k == null ? void 0 : k.find((P) => P.value === x)) == null ? void 0 : C.color,
|
|
436
429
|
theme: o,
|
|
437
430
|
children: /* @__PURE__ */ n(
|
|
438
|
-
|
|
431
|
+
Se,
|
|
439
432
|
{
|
|
440
|
-
icon: (
|
|
433
|
+
icon: (_ = k == null ? void 0 : k.find((P) => P.value === x)) == null ? void 0 : _.icon
|
|
441
434
|
}
|
|
442
435
|
)
|
|
443
436
|
},
|
|
444
|
-
`package__${
|
|
437
|
+
`package__${U}`
|
|
445
438
|
);
|
|
446
439
|
}) })
|
|
447
440
|
] }),
|
|
448
|
-
/* @__PURE__ */
|
|
449
|
-
/* @__PURE__ */ n("div", { className: "text-block-wrapper", children: /* @__PURE__ */
|
|
450
|
-
/* @__PURE__ */ n("div", { className: "campaign-title", children: (
|
|
441
|
+
/* @__PURE__ */ l(Ye, { theme: o, children: [
|
|
442
|
+
/* @__PURE__ */ n("div", { className: "text-block-wrapper", children: /* @__PURE__ */ l("div", { className: "title-block-wrapper", children: [
|
|
443
|
+
/* @__PURE__ */ n("div", { className: "campaign-title", children: (me = d ? f : $) == null ? void 0 : me.toUpperCase() }),
|
|
451
444
|
/* @__PURE__ */ n("div", { className: "campaign-title-text", children: m }),
|
|
452
|
-
|
|
453
|
-
|
|
445
|
+
c && h && /* @__PURE__ */ l("div", { className: "campaign-date", children: [
|
|
446
|
+
ve(h),
|
|
454
447
|
" - ",
|
|
455
|
-
|
|
448
|
+
ve(c)
|
|
456
449
|
] }),
|
|
457
|
-
/* @__PURE__ */
|
|
458
|
-
|
|
459
|
-
|
|
450
|
+
/* @__PURE__ */ l("div", { className: "timestamp-text", children: [
|
|
451
|
+
z > 0 && /* @__PURE__ */ l("span", { className: "listings-text", children: [
|
|
452
|
+
z,
|
|
460
453
|
" ",
|
|
461
|
-
|
|
454
|
+
z === 1 ? X : R,
|
|
462
455
|
" ",
|
|
463
456
|
"∙",
|
|
464
457
|
" "
|
|
@@ -466,44 +459,44 @@ const pe = (r, t) => {
|
|
|
466
459
|
/* @__PURE__ */ n(
|
|
467
460
|
"span",
|
|
468
461
|
{
|
|
469
|
-
className: `duration-text ${
|
|
470
|
-
children:
|
|
471
|
-
|
|
462
|
+
className: `duration-text ${Te ? "urgent" : ""} ${Q ? "" : "starts-in"}`,
|
|
463
|
+
children: B && W ? /* @__PURE__ */ l("div", { className: "countdown-timer", children: [
|
|
464
|
+
j,
|
|
472
465
|
" ",
|
|
473
|
-
|
|
466
|
+
W.hours.toString().padStart(2, "0"),
|
|
474
467
|
":",
|
|
475
|
-
|
|
468
|
+
W.minutes.toString().padStart(2, "0"),
|
|
476
469
|
":",
|
|
477
|
-
|
|
478
|
-
] }) :
|
|
479
|
-
U,
|
|
480
|
-
A,
|
|
470
|
+
W.seconds.toString().padStart(2, "0")
|
|
471
|
+
] }) : Q && !K && L !== null && L > 0 ? de(
|
|
481
472
|
j,
|
|
482
|
-
|
|
473
|
+
ie,
|
|
474
|
+
L,
|
|
475
|
+
Z,
|
|
483
476
|
H
|
|
484
|
-
) :
|
|
477
|
+
) : K ? q || "Završena" : !Q && ee !== null && ee > 0 ? de(
|
|
485
478
|
V,
|
|
486
479
|
F,
|
|
487
|
-
|
|
488
|
-
|
|
480
|
+
ee,
|
|
481
|
+
A,
|
|
489
482
|
G
|
|
490
|
-
)
|
|
483
|
+
) : null
|
|
491
484
|
}
|
|
492
485
|
)
|
|
493
486
|
] })
|
|
494
487
|
] }) }),
|
|
495
488
|
/* @__PURE__ */ n(
|
|
496
|
-
|
|
489
|
+
ke,
|
|
497
490
|
{
|
|
498
491
|
hasPermission: !0,
|
|
499
|
-
image: /* @__PURE__ */ n(
|
|
500
|
-
imageComponent:
|
|
501
|
-
themeData:
|
|
492
|
+
image: /* @__PURE__ */ n(er, { src: u }),
|
|
493
|
+
imageComponent: v,
|
|
494
|
+
themeData: se,
|
|
502
495
|
isActive: !0,
|
|
503
496
|
isUser: !1,
|
|
504
|
-
name:
|
|
497
|
+
name: p,
|
|
505
498
|
shopCategory: I,
|
|
506
|
-
onClick: () =>
|
|
499
|
+
onClick: () => S(s)
|
|
507
500
|
}
|
|
508
501
|
)
|
|
509
502
|
] })
|
|
@@ -511,13 +504,13 @@ const pe = (r, t) => {
|
|
|
511
504
|
}
|
|
512
505
|
);
|
|
513
506
|
});
|
|
514
|
-
|
|
515
|
-
title:
|
|
516
|
-
numberOfListings:
|
|
517
|
-
dropdown:
|
|
518
|
-
color:
|
|
507
|
+
Ce.propTypes = {
|
|
508
|
+
title: t.oneOfType([t.string, t.element]),
|
|
509
|
+
numberOfListings: t.number,
|
|
510
|
+
dropdown: t.any,
|
|
511
|
+
color: t.string
|
|
519
512
|
};
|
|
520
|
-
const
|
|
513
|
+
const rr = y.div`
|
|
521
514
|
margin: 0 auto;
|
|
522
515
|
display: flex;
|
|
523
516
|
flex-direction: column;
|
|
@@ -556,7 +549,7 @@ const qe = S.div`
|
|
|
556
549
|
right: 0;
|
|
557
550
|
}
|
|
558
551
|
|
|
559
|
-
@media (max-width: ${
|
|
552
|
+
@media (max-width: ${E + "px"}) {
|
|
560
553
|
gap: 1.25rem;
|
|
561
554
|
|
|
562
555
|
& .scrollable-section__header {
|
|
@@ -568,13 +561,13 @@ const qe = S.div`
|
|
|
568
561
|
}
|
|
569
562
|
}
|
|
570
563
|
}
|
|
571
|
-
`,
|
|
564
|
+
`, nr = y(ye.div)`
|
|
572
565
|
display: grid;
|
|
573
566
|
grid-template-columns: repeat(${(r) => r == null ? void 0 : r.numOfColumns}, 1fr);
|
|
574
567
|
gap: 1.5rem;
|
|
575
568
|
width: 100%;
|
|
576
569
|
|
|
577
|
-
@media (max-width: ${
|
|
570
|
+
@media (max-width: ${E + "px"}) {
|
|
578
571
|
display: flex;
|
|
579
572
|
flex-wrap: nowrap;
|
|
580
573
|
overflow-x: scroll;
|
|
@@ -596,37 +589,37 @@ const qe = S.div`
|
|
|
596
589
|
/* Safari and Chrome */
|
|
597
590
|
}
|
|
598
591
|
}
|
|
599
|
-
`,
|
|
592
|
+
`, Ie = M(
|
|
600
593
|
({
|
|
601
594
|
icon: r,
|
|
602
|
-
title:
|
|
595
|
+
title: a,
|
|
603
596
|
numOfSlides: o = 2,
|
|
604
|
-
showNavigation:
|
|
597
|
+
showNavigation: s = !0,
|
|
605
598
|
hasNextPage: m = !1,
|
|
606
599
|
handleFetchNextPage: g = () => {
|
|
607
600
|
},
|
|
608
|
-
children:
|
|
609
|
-
},
|
|
610
|
-
const [
|
|
611
|
-
|
|
601
|
+
children: i
|
|
602
|
+
}, h) => {
|
|
603
|
+
const [c, b] = ne(0), [p, I] = ne(1), u = $e(), v = (i == null ? void 0 : i.length) ?? 1;
|
|
604
|
+
ae(() => {
|
|
612
605
|
const d = () => {
|
|
613
606
|
I(o);
|
|
614
607
|
};
|
|
615
608
|
return window.addEventListener("resize", d), d(), () => window.removeEventListener("resize", d);
|
|
616
609
|
}, []);
|
|
617
|
-
const
|
|
610
|
+
const N = u ? i : i == null ? void 0 : i.slice(c, c + p), T = (d) => {
|
|
618
611
|
var $;
|
|
619
612
|
($ = d == null ? void 0 : d.target) == null || $.blur();
|
|
620
|
-
const
|
|
621
|
-
|
|
622
|
-
},
|
|
623
|
-
var
|
|
624
|
-
(
|
|
613
|
+
const f = c + p;
|
|
614
|
+
f < v && b(f), f + p >= v && m && g();
|
|
615
|
+
}, S = (d) => {
|
|
616
|
+
var f;
|
|
617
|
+
(f = d == null ? void 0 : d.target) == null || f.blur(), c - p >= 0 && b(c - p);
|
|
625
618
|
};
|
|
626
|
-
return /* @__PURE__ */
|
|
627
|
-
/* @__PURE__ */ n("div", { className: "scrollable-section__header", children: /* @__PURE__ */
|
|
628
|
-
|
|
629
|
-
|
|
619
|
+
return /* @__PURE__ */ l(rr, { ref: h, children: [
|
|
620
|
+
/* @__PURE__ */ n("div", { className: "scrollable-section__header", children: /* @__PURE__ */ l("div", { className: "scrollable-section__title", children: [
|
|
621
|
+
te(r) && /* @__PURE__ */ n(
|
|
622
|
+
Se,
|
|
630
623
|
{
|
|
631
624
|
icon: r,
|
|
632
625
|
color: "primary",
|
|
@@ -634,16 +627,16 @@ const qe = S.div`
|
|
|
634
627
|
className: "title__icon"
|
|
635
628
|
}
|
|
636
629
|
),
|
|
637
|
-
|
|
630
|
+
te(a) && /* @__PURE__ */ l("div", { className: "title__text", children: [
|
|
638
631
|
" ",
|
|
639
|
-
|
|
632
|
+
a
|
|
640
633
|
] })
|
|
641
634
|
] }) }),
|
|
642
|
-
/* @__PURE__ */
|
|
643
|
-
|
|
635
|
+
/* @__PURE__ */ l(
|
|
636
|
+
nr,
|
|
644
637
|
{
|
|
645
638
|
numOfColumns: o,
|
|
646
|
-
...!
|
|
639
|
+
...!u && {
|
|
647
640
|
animate: {
|
|
648
641
|
x: 0,
|
|
649
642
|
opacity: 1
|
|
@@ -654,50 +647,50 @@ const qe = S.div`
|
|
|
654
647
|
}
|
|
655
648
|
},
|
|
656
649
|
children: [
|
|
657
|
-
|
|
658
|
-
|
|
650
|
+
N,
|
|
651
|
+
u && m && /* @__PURE__ */ n(Ze, { onIsVisible: g })
|
|
659
652
|
]
|
|
660
653
|
},
|
|
661
|
-
`scrollable-section__content-${
|
|
654
|
+
`scrollable-section__content-${c}`
|
|
662
655
|
),
|
|
663
|
-
|
|
656
|
+
s && v > p && !u && /* @__PURE__ */ l("div", { className: "scrollable-section__navigation", children: [
|
|
664
657
|
/* @__PURE__ */ n(
|
|
665
|
-
|
|
658
|
+
he,
|
|
666
659
|
{
|
|
667
660
|
icon: "angle-left",
|
|
668
661
|
borderRadius: "curved",
|
|
669
662
|
btnType: "tinted",
|
|
670
663
|
color: "neutral",
|
|
671
664
|
className: "navigation__arrow",
|
|
672
|
-
disabled:
|
|
673
|
-
onClick:
|
|
665
|
+
disabled: c === 0,
|
|
666
|
+
onClick: S
|
|
674
667
|
}
|
|
675
668
|
),
|
|
676
669
|
/* @__PURE__ */ n(
|
|
677
|
-
|
|
670
|
+
he,
|
|
678
671
|
{
|
|
679
672
|
icon: "angle-right",
|
|
680
673
|
borderRadius: "curved",
|
|
681
674
|
btnType: "tinted",
|
|
682
675
|
color: "neutral",
|
|
683
676
|
className: "navigation__arrow",
|
|
684
|
-
disabled:
|
|
685
|
-
onClick:
|
|
677
|
+
disabled: c + p >= v,
|
|
678
|
+
onClick: T
|
|
686
679
|
}
|
|
687
680
|
)
|
|
688
681
|
] })
|
|
689
682
|
] });
|
|
690
683
|
}
|
|
691
684
|
);
|
|
692
|
-
|
|
693
|
-
icon:
|
|
694
|
-
title:
|
|
695
|
-
numOfSlides:
|
|
696
|
-
numOfSlidesForMobile:
|
|
697
|
-
handleFetchNextPage:
|
|
698
|
-
showNavigation:
|
|
685
|
+
Ie.propTypes = {
|
|
686
|
+
icon: t.string,
|
|
687
|
+
title: t.string,
|
|
688
|
+
numOfSlides: t.number,
|
|
689
|
+
numOfSlidesForMobile: t.number,
|
|
690
|
+
handleFetchNextPage: t.func,
|
|
691
|
+
showNavigation: t.bool
|
|
699
692
|
};
|
|
700
|
-
const
|
|
693
|
+
const tr = y.div`
|
|
701
694
|
display: flex;
|
|
702
695
|
flex: 1;
|
|
703
696
|
width: 100%;
|
|
@@ -714,34 +707,34 @@ const Ye = S.div`
|
|
|
714
707
|
border-radius: 1.25rem;
|
|
715
708
|
object-fit: cover;
|
|
716
709
|
}
|
|
717
|
-
`,
|
|
710
|
+
`, Ne = M(
|
|
718
711
|
({
|
|
719
712
|
sectionName: r,
|
|
720
|
-
imageUrl:
|
|
713
|
+
imageUrl: a,
|
|
721
714
|
maxHeight: o = "16.25rem",
|
|
722
|
-
className:
|
|
715
|
+
className: s = "",
|
|
723
716
|
handleClick: m = () => {
|
|
724
717
|
}
|
|
725
718
|
}, g) => /* @__PURE__ */ n(
|
|
726
|
-
|
|
719
|
+
tr,
|
|
727
720
|
{
|
|
728
721
|
ref: g,
|
|
729
722
|
maxHeight: o,
|
|
730
723
|
onClick: m,
|
|
731
|
-
className: `itemless-banner ${
|
|
732
|
-
children: /* @__PURE__ */ n("img", { src:
|
|
724
|
+
className: `itemless-banner ${s}`,
|
|
725
|
+
children: /* @__PURE__ */ n("img", { src: a, alt: `itemless-banner__${r}` })
|
|
733
726
|
}
|
|
734
727
|
)
|
|
735
728
|
);
|
|
736
|
-
|
|
737
|
-
sectionName:
|
|
738
|
-
imageUrl:
|
|
739
|
-
maxHeight:
|
|
740
|
-
className:
|
|
741
|
-
handleClick:
|
|
729
|
+
Ne.propTypes = {
|
|
730
|
+
sectionName: t.string,
|
|
731
|
+
imageUrl: t.string,
|
|
732
|
+
maxHeight: t.string,
|
|
733
|
+
className: t.string,
|
|
734
|
+
handleClick: t.func
|
|
742
735
|
};
|
|
743
|
-
const
|
|
744
|
-
@media (max-width: ${
|
|
736
|
+
const ar = y(O)`
|
|
737
|
+
@media (max-width: ${E + "px"}) {
|
|
745
738
|
flex-direction: column;
|
|
746
739
|
|
|
747
740
|
& .skeleton__image {
|
|
@@ -755,10 +748,10 @@ const Ze = S(L)`
|
|
|
755
748
|
}
|
|
756
749
|
}
|
|
757
750
|
}
|
|
758
|
-
`,
|
|
759
|
-
/* @__PURE__ */
|
|
751
|
+
`, or = ({ keyPrefix: r }) => /* @__PURE__ */ l(ar, { children: [
|
|
752
|
+
/* @__PURE__ */ l(O, { children: [
|
|
760
753
|
/* @__PURE__ */ n(
|
|
761
|
-
|
|
754
|
+
ue,
|
|
762
755
|
{
|
|
763
756
|
width: "13.75rem",
|
|
764
757
|
height: "13.75rem",
|
|
@@ -766,20 +759,20 @@ const Ze = S(L)`
|
|
|
766
759
|
},
|
|
767
760
|
`${r}-1`
|
|
768
761
|
),
|
|
769
|
-
/* @__PURE__ */
|
|
770
|
-
/* @__PURE__ */ n(
|
|
771
|
-
/* @__PURE__ */ n(
|
|
772
|
-
/* @__PURE__ */ n(
|
|
773
|
-
/* @__PURE__ */ n(
|
|
774
|
-
/* @__PURE__ */
|
|
775
|
-
/* @__PURE__ */ n(
|
|
776
|
-
/* @__PURE__ */ n(
|
|
762
|
+
/* @__PURE__ */ l(fe, { noGradient: !0, children: [
|
|
763
|
+
/* @__PURE__ */ n(w, { height: "1rem" }),
|
|
764
|
+
/* @__PURE__ */ n(w, { height: "1.75rem" }),
|
|
765
|
+
/* @__PURE__ */ n(w, { height: "1.25rem" }),
|
|
766
|
+
/* @__PURE__ */ n(w, { height: "2rem" }),
|
|
767
|
+
/* @__PURE__ */ l(O, { alignItems: "center", noGradient: !0, children: [
|
|
768
|
+
/* @__PURE__ */ n(xe, { width: "2.5rem", height: "2.5rem" }),
|
|
769
|
+
/* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
|
|
777
770
|
] })
|
|
778
771
|
] })
|
|
779
772
|
] }),
|
|
780
|
-
/* @__PURE__ */
|
|
773
|
+
/* @__PURE__ */ l(O, { noGradient: !0, children: [
|
|
781
774
|
/* @__PURE__ */ n(
|
|
782
|
-
|
|
775
|
+
ue,
|
|
783
776
|
{
|
|
784
777
|
width: "13.75rem",
|
|
785
778
|
height: "13.75rem",
|
|
@@ -787,65 +780,66 @@ const Ze = S(L)`
|
|
|
787
780
|
},
|
|
788
781
|
`${r}-2`
|
|
789
782
|
),
|
|
790
|
-
/* @__PURE__ */
|
|
791
|
-
/* @__PURE__ */ n(
|
|
792
|
-
/* @__PURE__ */ n(
|
|
793
|
-
/* @__PURE__ */ n(
|
|
794
|
-
/* @__PURE__ */ n(
|
|
795
|
-
/* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */ n(
|
|
797
|
-
/* @__PURE__ */ n(
|
|
783
|
+
/* @__PURE__ */ l(fe, { noGradient: !0, children: [
|
|
784
|
+
/* @__PURE__ */ n(w, { height: "1rem" }),
|
|
785
|
+
/* @__PURE__ */ n(w, { height: "1.75rem" }),
|
|
786
|
+
/* @__PURE__ */ n(w, { height: "1.25rem" }),
|
|
787
|
+
/* @__PURE__ */ n(w, { height: "2rem" }),
|
|
788
|
+
/* @__PURE__ */ l(O, { alignItems: "center", noGradient: !0, children: [
|
|
789
|
+
/* @__PURE__ */ n(xe, { width: "2.5rem", height: "2.5rem" }),
|
|
790
|
+
/* @__PURE__ */ n(w, { width: "5rem", height: "1.25rem" })
|
|
798
791
|
] })
|
|
799
792
|
] })
|
|
800
793
|
] })
|
|
801
|
-
] }),
|
|
794
|
+
] }), ir = ({
|
|
802
795
|
keyPrefix: r,
|
|
803
|
-
isLoading:
|
|
804
|
-
fallbackComponent: o = /* @__PURE__ */ n(
|
|
805
|
-
children:
|
|
806
|
-
}) => /* @__PURE__ */ n(
|
|
796
|
+
isLoading: a = !1,
|
|
797
|
+
fallbackComponent: o = /* @__PURE__ */ n(Oe, {}),
|
|
798
|
+
children: s
|
|
799
|
+
}) => /* @__PURE__ */ n(Re, { fallbackComponent: o, children: a === !0 ? /* @__PURE__ */ n(or, { keyPrefix: r }) : s }), sr = Be(Ce), _r = M(
|
|
807
800
|
({
|
|
808
801
|
sellerType: r = "Shop",
|
|
809
|
-
items:
|
|
802
|
+
items: a = [],
|
|
810
803
|
title: o,
|
|
811
|
-
icon:
|
|
804
|
+
icon: s,
|
|
812
805
|
isLoading: m,
|
|
813
806
|
onSelectCard: g = () => {
|
|
814
807
|
},
|
|
815
|
-
onSelectShop:
|
|
808
|
+
onSelectShop: i = () => {
|
|
816
809
|
},
|
|
817
|
-
getImage:
|
|
810
|
+
getImage: h = () => {
|
|
818
811
|
},
|
|
819
|
-
campaignSingleText:
|
|
820
|
-
upcomingCampaignText:
|
|
821
|
-
salesCampaignTypes:
|
|
812
|
+
campaignSingleText: c,
|
|
813
|
+
upcomingCampaignText: b,
|
|
814
|
+
salesCampaignTypes: p = [],
|
|
822
815
|
startsInPrefixTextPlural: I,
|
|
823
|
-
startsinSuffixTextPlural:
|
|
824
|
-
startsInPrefixTextSingular:
|
|
825
|
-
startsinSuffixTextSingular:
|
|
826
|
-
endsInPrefixTextPlural:
|
|
827
|
-
endsinSuffixTextPlural:
|
|
816
|
+
startsinSuffixTextPlural: u,
|
|
817
|
+
startsInPrefixTextSingular: v,
|
|
818
|
+
startsinSuffixTextSingular: N,
|
|
819
|
+
endsInPrefixTextPlural: T,
|
|
820
|
+
endsinSuffixTextPlural: S,
|
|
828
821
|
endsInPrefixTextSingular: d,
|
|
829
|
-
endsinSuffixTextSingular:
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
822
|
+
endsinSuffixTextSingular: f,
|
|
823
|
+
endedText: $,
|
|
824
|
+
numOfSlides: k = 2,
|
|
825
|
+
showNavigation: F = !0,
|
|
826
|
+
numberOfListingsTextSingular: G,
|
|
827
|
+
numberOfListingsTextPlural: V,
|
|
828
|
+
itemlessImageUrl: A,
|
|
829
|
+
itemlessLink: ie,
|
|
830
|
+
handleItemlessLink: H = () => {
|
|
837
831
|
},
|
|
838
|
-
componentName:
|
|
839
|
-
hasNextPage:
|
|
832
|
+
componentName: j,
|
|
833
|
+
hasNextPage: Z = !1,
|
|
840
834
|
handleFetchNextPage: q = () => {
|
|
841
835
|
}
|
|
842
|
-
},
|
|
843
|
-
const
|
|
844
|
-
let
|
|
845
|
-
|
|
836
|
+
}, se) => {
|
|
837
|
+
const z = $e(), X = We(() => {
|
|
838
|
+
let R = a == null ? void 0 : a.map((e, Y) => /* @__PURE__ */ n(
|
|
839
|
+
sr,
|
|
846
840
|
{
|
|
847
841
|
className: "campaign-item",
|
|
848
|
-
coverPhoto:
|
|
842
|
+
coverPhoto: h(
|
|
849
843
|
e == null ? void 0 : e.coverPhoto,
|
|
850
844
|
(e == null ? void 0 : e.uuid) || (e == null ? void 0 : e.campaignUuid)
|
|
851
845
|
),
|
|
@@ -861,63 +855,64 @@ const Ze = S(L)`
|
|
|
861
855
|
startDate: e == null ? void 0 : e.startDate,
|
|
862
856
|
title: e == null ? void 0 : e.name,
|
|
863
857
|
uuid: e == null ? void 0 : e.campaignUuid,
|
|
864
|
-
onSelectCard: (
|
|
865
|
-
onSelectShop: () =>
|
|
866
|
-
campaignSingleText:
|
|
867
|
-
upcomingCampaignText:
|
|
858
|
+
onSelectCard: (J, D) => g(e == null ? void 0 : e.campaignUuid, e == null ? void 0 : e.shopUuid, D),
|
|
859
|
+
onSelectShop: () => i(e == null ? void 0 : e.shopUuid),
|
|
860
|
+
campaignSingleText: c,
|
|
861
|
+
upcomingCampaignText: b,
|
|
868
862
|
upcoming: e == null ? void 0 : e.upcoming,
|
|
869
|
-
salesCampaignTypes:
|
|
863
|
+
salesCampaignTypes: p,
|
|
870
864
|
startsInPrefixTextPlural: I,
|
|
871
|
-
startsinSuffixTextPlural:
|
|
872
|
-
startsInPrefixTextSingular:
|
|
873
|
-
startsinSuffixTextSingular:
|
|
874
|
-
endsInPrefixTextPlural:
|
|
875
|
-
endsinSuffixTextPlural:
|
|
865
|
+
startsinSuffixTextPlural: u,
|
|
866
|
+
startsInPrefixTextSingular: v,
|
|
867
|
+
startsinSuffixTextSingular: N,
|
|
868
|
+
endsInPrefixTextPlural: T,
|
|
869
|
+
endsinSuffixTextPlural: S,
|
|
876
870
|
endsInPrefixTextSingular: d,
|
|
877
|
-
endsinSuffixTextSingular:
|
|
871
|
+
endsinSuffixTextSingular: f,
|
|
872
|
+
endedText: $,
|
|
878
873
|
themeData: e == null ? void 0 : e.themeData,
|
|
879
874
|
numberOfListings: e == null ? void 0 : e.numberOfListings,
|
|
880
|
-
numberOfListingsTextSingular:
|
|
881
|
-
numberOfListingsTextPlural:
|
|
882
|
-
metadata: { name:
|
|
875
|
+
numberOfListingsTextSingular: G,
|
|
876
|
+
numberOfListingsTextPlural: V,
|
|
877
|
+
metadata: { name: j, accessor: e == null ? void 0 : e.accessor }
|
|
883
878
|
},
|
|
884
879
|
`campaign__item__${Y}__${e == null ? void 0 : e.startDate}___${e == null ? void 0 : e.endDate}`
|
|
885
880
|
));
|
|
886
|
-
return (
|
|
887
|
-
...
|
|
881
|
+
return (a == null ? void 0 : a.length) < 2 && !z ? [
|
|
882
|
+
...R,
|
|
888
883
|
/* @__PURE__ */ n(
|
|
889
|
-
|
|
884
|
+
Ne,
|
|
890
885
|
{
|
|
891
|
-
imageUrl:
|
|
886
|
+
imageUrl: A,
|
|
892
887
|
className: "campaign-item",
|
|
893
|
-
handleClick:
|
|
888
|
+
handleClick: H
|
|
894
889
|
},
|
|
895
890
|
"itemless-campaign-section-banner"
|
|
896
891
|
)
|
|
897
|
-
] :
|
|
898
|
-
}, [
|
|
892
|
+
] : R;
|
|
893
|
+
}, [a]);
|
|
899
894
|
return /* @__PURE__ */ n(
|
|
900
|
-
|
|
895
|
+
ir,
|
|
901
896
|
{
|
|
902
897
|
isLoading: m,
|
|
903
898
|
keyPrefix: "sales-campaign-skeleton",
|
|
904
899
|
children: /* @__PURE__ */ n(
|
|
905
|
-
|
|
900
|
+
Ie,
|
|
906
901
|
{
|
|
907
|
-
icon:
|
|
902
|
+
icon: s,
|
|
908
903
|
title: o,
|
|
909
|
-
numOfSlides:
|
|
910
|
-
showNavigation:
|
|
911
|
-
hasNextPage:
|
|
904
|
+
numOfSlides: k,
|
|
905
|
+
showNavigation: F,
|
|
906
|
+
hasNextPage: Z,
|
|
912
907
|
handleFetchNextPage: q,
|
|
913
908
|
children: X
|
|
914
909
|
},
|
|
915
|
-
`sales-campaign-section__${
|
|
910
|
+
`sales-campaign-section__${z}`
|
|
916
911
|
)
|
|
917
912
|
}
|
|
918
913
|
);
|
|
919
914
|
}
|
|
920
915
|
);
|
|
921
916
|
export {
|
|
922
|
-
|
|
917
|
+
_r as default
|
|
923
918
|
};
|