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