@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
package/dist/ReviewsSection.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r, Fragment as S } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
2
|
+
import { forwardRef as w, Suspense as C, memo as y, useMemo as N } from "react";
|
|
3
|
+
import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as $ } from "./consts-BuFChS64.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { t as
|
|
7
|
-
import { useTheme as
|
|
8
|
-
import { P as
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
const F = s.div`
|
|
5
|
+
import { u as z } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { t as M, m as P, b as L, g as W } from "./utils-DtEfC-TX.js";
|
|
7
|
+
import { useTheme as E } from "./ThemeProvider.js";
|
|
8
|
+
import { P as I } from "./index-B22BZVBG.js";
|
|
9
|
+
import { s as j, S as x, b as f, c as b, a as o } from "./style-BwQ4djFC.js";
|
|
10
|
+
const G = d.div`
|
|
12
11
|
display: flex;
|
|
13
12
|
flex-direction: column;
|
|
14
13
|
color: var(--darkest-950);
|
|
@@ -18,7 +17,7 @@ const F = s.div`
|
|
|
18
17
|
font-weight: 600;
|
|
19
18
|
font-size: 1.5rem;
|
|
20
19
|
}
|
|
21
|
-
`,
|
|
20
|
+
`, F = d.div`
|
|
22
21
|
display: grid;
|
|
23
22
|
grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
|
|
24
23
|
gap: 1.25rem;
|
|
@@ -26,12 +25,12 @@ const F = s.div`
|
|
|
26
25
|
@media (max-width: ${$ + "px"}) {
|
|
27
26
|
grid-template-columns: repeat(1, 1fr);
|
|
28
27
|
}
|
|
29
|
-
`,
|
|
28
|
+
`, T = d.a`
|
|
30
29
|
padding-top: 5rem;
|
|
31
30
|
overflow: hidden;
|
|
32
31
|
text-decoration: none;
|
|
33
32
|
color: var(--gray-950);
|
|
34
|
-
`,
|
|
33
|
+
`, A = d.div`
|
|
35
34
|
position: relative;
|
|
36
35
|
cursor: pointer;
|
|
37
36
|
display: flex;
|
|
@@ -63,11 +62,11 @@ const F = s.div`
|
|
|
63
62
|
font-size: 1.375rem;
|
|
64
63
|
font-weight: 600;
|
|
65
64
|
color: var(--gray-950, #14161a);
|
|
66
|
-
${
|
|
65
|
+
${M()}
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
& .cont-text {
|
|
70
|
-
${
|
|
69
|
+
${P(2)}
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
|
|
@@ -87,15 +86,15 @@ const F = s.div`
|
|
|
87
86
|
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
88
87
|
0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
89
88
|
}
|
|
90
|
-
`,
|
|
89
|
+
`, v = (t, n) => W(
|
|
91
90
|
t.theme,
|
|
92
91
|
"StarRating",
|
|
93
92
|
t.color,
|
|
94
93
|
t.disabled === !0 ? "disabled" : "enabled",
|
|
95
94
|
n
|
|
96
|
-
),
|
|
97
|
-
font-size: ${(t) =>
|
|
98
|
-
line-height: ${(t) =>
|
|
95
|
+
), B = d.div`
|
|
96
|
+
font-size: ${(t) => v(t, "fontSize")};
|
|
97
|
+
line-height: ${(t) => v(t, "lineHeight")};
|
|
99
98
|
line-height: 1.5rem;
|
|
100
99
|
width: fit-content;
|
|
101
100
|
display: flex;
|
|
@@ -114,7 +113,7 @@ const F = s.div`
|
|
|
114
113
|
line-height: 1.5rem;
|
|
115
114
|
color: ${(t) => t.color};
|
|
116
115
|
}
|
|
117
|
-
`,
|
|
116
|
+
`, V = d.span`
|
|
118
117
|
position: absolute;
|
|
119
118
|
z-index: 1;
|
|
120
119
|
display: block;
|
|
@@ -123,112 +122,93 @@ const F = s.div`
|
|
|
123
122
|
overflow: hidden;
|
|
124
123
|
width: ${(t) => t.width}%;
|
|
125
124
|
|
|
126
|
-
color: ${(t) =>
|
|
125
|
+
color: ${(t) => L(
|
|
127
126
|
t.theme,
|
|
128
127
|
"StarRating",
|
|
129
128
|
t.color,
|
|
130
129
|
t.disabled === !0 ? "disabled" : "enabled",
|
|
131
130
|
"filledColor"
|
|
132
131
|
)};
|
|
133
|
-
`,
|
|
132
|
+
`, _ = d.span`
|
|
134
133
|
padding: 0;
|
|
135
134
|
display: block;
|
|
136
135
|
z-index: 0;
|
|
137
136
|
color: ${(t) => t.color};
|
|
138
|
-
`,
|
|
137
|
+
`, q = w((t, n) => {
|
|
139
138
|
const {
|
|
140
139
|
rating: l = 0,
|
|
141
140
|
reviewCount: i = null,
|
|
142
|
-
disabled:
|
|
143
|
-
tabIndex:
|
|
144
|
-
className:
|
|
145
|
-
style:
|
|
146
|
-
color:
|
|
147
|
-
size:
|
|
148
|
-
} = t, { theme: e } =
|
|
141
|
+
disabled: s = !1,
|
|
142
|
+
tabIndex: m = 0,
|
|
143
|
+
className: g = "",
|
|
144
|
+
style: p = {},
|
|
145
|
+
color: c = "primary",
|
|
146
|
+
size: u = "large"
|
|
147
|
+
} = t, { theme: e } = E(), h = {
|
|
149
148
|
theme: e,
|
|
150
|
-
color:
|
|
151
|
-
size:
|
|
152
|
-
style:
|
|
153
|
-
disabled:
|
|
149
|
+
color: c,
|
|
150
|
+
size: u,
|
|
151
|
+
style: p,
|
|
152
|
+
disabled: s
|
|
154
153
|
}, k = l / 5 * 100;
|
|
155
154
|
return /* @__PURE__ */ a(
|
|
156
|
-
|
|
155
|
+
B,
|
|
157
156
|
{
|
|
158
157
|
ref: n,
|
|
159
|
-
tabIndex:
|
|
160
|
-
...
|
|
161
|
-
className: `star-rating ${
|
|
158
|
+
tabIndex: m,
|
|
159
|
+
...h,
|
|
160
|
+
className: `star-rating ${g}`,
|
|
162
161
|
children: [
|
|
163
162
|
/* @__PURE__ */ a("div", { className: "rating", children: [
|
|
164
163
|
/* @__PURE__ */ r(
|
|
165
|
-
|
|
164
|
+
V,
|
|
166
165
|
{
|
|
167
166
|
className: "filled-stars",
|
|
168
|
-
...
|
|
167
|
+
...h,
|
|
169
168
|
width: k,
|
|
170
169
|
children: "★★★★★"
|
|
171
170
|
}
|
|
172
171
|
),
|
|
173
|
-
/* @__PURE__ */ r(
|
|
172
|
+
/* @__PURE__ */ r(_, { ...h, children: "★★★★★" })
|
|
174
173
|
] }),
|
|
175
174
|
!isNaN(i) && Number.isFinite(i) && /* @__PURE__ */ r("div", { className: "review-count", children: `(${i.toLocaleString()})` })
|
|
176
175
|
]
|
|
177
176
|
}
|
|
178
177
|
);
|
|
179
|
-
})
|
|
180
|
-
C.propTypes = {
|
|
181
|
-
rating: d.number,
|
|
182
|
-
reviewCount: d.any,
|
|
183
|
-
disabled: d.bool,
|
|
184
|
-
tabIndex: d.number,
|
|
185
|
-
style: d.object,
|
|
186
|
-
className: d.string,
|
|
187
|
-
color: d.oneOf([
|
|
188
|
-
"primary",
|
|
189
|
-
"secondary",
|
|
190
|
-
"success",
|
|
191
|
-
"warning",
|
|
192
|
-
"danger",
|
|
193
|
-
"information",
|
|
194
|
-
"neutral"
|
|
195
|
-
]),
|
|
196
|
-
size: d.oneOf(["small", "medium", "large"])
|
|
197
|
-
};
|
|
198
|
-
const D = v((t, n) => {
|
|
178
|
+
}), D = w((t, n) => {
|
|
199
179
|
const {
|
|
200
180
|
image: l,
|
|
201
181
|
text: i,
|
|
202
|
-
title:
|
|
203
|
-
link:
|
|
204
|
-
rating:
|
|
205
|
-
onSelectCard:
|
|
182
|
+
title: s,
|
|
183
|
+
link: m,
|
|
184
|
+
rating: g,
|
|
185
|
+
onSelectCard: p = () => {
|
|
206
186
|
},
|
|
207
|
-
LinkComponent:
|
|
187
|
+
LinkComponent: c
|
|
208
188
|
} = t;
|
|
209
189
|
return /* @__PURE__ */ r(
|
|
210
|
-
|
|
190
|
+
T,
|
|
211
191
|
{
|
|
212
192
|
ref: n,
|
|
213
193
|
className: "review-card",
|
|
214
|
-
onClick:
|
|
215
|
-
as:
|
|
216
|
-
...
|
|
217
|
-
to: `/${
|
|
194
|
+
onClick: p,
|
|
195
|
+
as: c || "a",
|
|
196
|
+
...c ? {
|
|
197
|
+
to: `/${m}`
|
|
218
198
|
} : {
|
|
219
|
-
href: `/${
|
|
199
|
+
href: `/${m}`
|
|
220
200
|
},
|
|
221
|
-
children: /* @__PURE__ */ a(
|
|
222
|
-
/* @__PURE__ */ r(
|
|
201
|
+
children: /* @__PURE__ */ a(A, { children: [
|
|
202
|
+
/* @__PURE__ */ r(I, { src: l }),
|
|
223
203
|
/* @__PURE__ */ a("div", { className: "cont", children: [
|
|
224
|
-
/* @__PURE__ */ r("span", { className: "cont-title", children:
|
|
204
|
+
/* @__PURE__ */ r("span", { className: "cont-title", children: s }),
|
|
225
205
|
/* @__PURE__ */ r("div", { className: "cont-text", children: i })
|
|
226
206
|
] }),
|
|
227
|
-
/* @__PURE__ */ r(
|
|
207
|
+
/* @__PURE__ */ r(q, { color: "warning", rating: g })
|
|
228
208
|
] })
|
|
229
209
|
}
|
|
230
210
|
);
|
|
231
|
-
}), H =
|
|
211
|
+
}), H = d(x)`
|
|
232
212
|
@media (max-width: ${$ + "px"}) {
|
|
233
213
|
flex-direction: column;
|
|
234
214
|
|
|
@@ -236,14 +216,14 @@ const D = v((t, n) => {
|
|
|
236
216
|
flex-direction: column;
|
|
237
217
|
|
|
238
218
|
& > div {
|
|
239
|
-
${
|
|
219
|
+
${j}
|
|
240
220
|
}
|
|
241
221
|
}
|
|
242
222
|
}
|
|
243
|
-
`,
|
|
223
|
+
`, O = ({ keyPrefix: t }) => /* @__PURE__ */ a(H, { children: [
|
|
244
224
|
/* @__PURE__ */ a(f, { children: [
|
|
245
225
|
/* @__PURE__ */ r(
|
|
246
|
-
|
|
226
|
+
b,
|
|
247
227
|
{
|
|
248
228
|
height: "6.25rem",
|
|
249
229
|
width: "6.25rem",
|
|
@@ -264,7 +244,7 @@ const D = v((t, n) => {
|
|
|
264
244
|
] }, `${t}-1`),
|
|
265
245
|
/* @__PURE__ */ a(f, { noGradient: !0, children: [
|
|
266
246
|
/* @__PURE__ */ r(
|
|
267
|
-
|
|
247
|
+
b,
|
|
268
248
|
{
|
|
269
249
|
height: "6.25rem",
|
|
270
250
|
width: "6.25rem",
|
|
@@ -285,7 +265,7 @@ const D = v((t, n) => {
|
|
|
285
265
|
] }, `${t}-2`),
|
|
286
266
|
/* @__PURE__ */ a(f, { noGradient: !0, children: [
|
|
287
267
|
/* @__PURE__ */ r(
|
|
288
|
-
|
|
268
|
+
b,
|
|
289
269
|
{
|
|
290
270
|
height: "6.25rem",
|
|
291
271
|
width: "6.25rem",
|
|
@@ -304,50 +284,50 @@ const D = v((t, n) => {
|
|
|
304
284
|
}
|
|
305
285
|
)
|
|
306
286
|
] }, `${t}-3`)
|
|
307
|
-
] }),
|
|
287
|
+
] }), X = ({
|
|
308
288
|
keyPrefix: t,
|
|
309
289
|
isLoading: n = !1,
|
|
310
290
|
fallbackComponent: l = /* @__PURE__ */ r(S, {}),
|
|
311
291
|
children: i
|
|
312
|
-
}) => /* @__PURE__ */ r(
|
|
292
|
+
}) => /* @__PURE__ */ r(C, { fallbackComponent: l, children: n === !0 ? /* @__PURE__ */ r(O, { keyPrefix: t }) : i }), R = y(D), ie = w((t, n) => {
|
|
313
293
|
const {
|
|
314
294
|
title: l = "Electronics reviews",
|
|
315
295
|
items: i,
|
|
316
|
-
limit:
|
|
317
|
-
onSelectCard:
|
|
296
|
+
limit: s = 3,
|
|
297
|
+
onSelectCard: m = () => {
|
|
318
298
|
},
|
|
319
|
-
isLoading:
|
|
320
|
-
LinkComponent:
|
|
321
|
-
} = t,
|
|
322
|
-
|
|
299
|
+
isLoading: g = !1,
|
|
300
|
+
LinkComponent: p
|
|
301
|
+
} = t, c = z(), u = N(() => /* @__PURE__ */ r(S, { children: c === !0 ? i == null ? void 0 : i.map((e, h) => /* @__PURE__ */ r(
|
|
302
|
+
R,
|
|
323
303
|
{
|
|
324
304
|
text: e == null ? void 0 : e.text,
|
|
325
305
|
title: e == null ? void 0 : e.title,
|
|
326
306
|
image: e == null ? void 0 : e.image,
|
|
327
307
|
link: e == null ? void 0 : e.link,
|
|
328
308
|
rating: e == null ? void 0 : e.ratingArithmeticMean,
|
|
329
|
-
onSelectCard: () =>
|
|
330
|
-
LinkComponent:
|
|
309
|
+
onSelectCard: () => m(e),
|
|
310
|
+
LinkComponent: p
|
|
331
311
|
},
|
|
332
|
-
|
|
333
|
-
)) : i == null ? void 0 : i.slice(0,
|
|
334
|
-
|
|
312
|
+
h
|
|
313
|
+
)) : i == null ? void 0 : i.slice(0, s).map((e, h) => /* @__PURE__ */ r(
|
|
314
|
+
R,
|
|
335
315
|
{
|
|
336
316
|
text: e == null ? void 0 : e.text,
|
|
337
317
|
title: e == null ? void 0 : e.title,
|
|
338
318
|
image: e == null ? void 0 : e.image,
|
|
339
319
|
link: e == null ? void 0 : e.link,
|
|
340
320
|
rating: e == null ? void 0 : e.ratingArithmeticMean,
|
|
341
|
-
onSelectCard: () =>
|
|
342
|
-
LinkComponent:
|
|
321
|
+
onSelectCard: () => m(e),
|
|
322
|
+
LinkComponent: p
|
|
343
323
|
},
|
|
344
|
-
|
|
345
|
-
)) }), [i,
|
|
346
|
-
return /* @__PURE__ */ a(
|
|
324
|
+
h
|
|
325
|
+
)) }), [i, c, s]);
|
|
326
|
+
return /* @__PURE__ */ a(G, { ref: n, children: [
|
|
347
327
|
/* @__PURE__ */ r("div", { className: "container-title", children: l }),
|
|
348
|
-
/* @__PURE__ */ r(
|
|
328
|
+
/* @__PURE__ */ r(X, { isLoading: g, keyPrefix: "reviews-skeleton", children: /* @__PURE__ */ r(F, { limit: s, children: u }) })
|
|
349
329
|
] });
|
|
350
330
|
});
|
|
351
331
|
export {
|
|
352
|
-
|
|
332
|
+
ie as default
|
|
353
333
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),c=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./utils-RnrgDDZP.cjs"),T=require("./consts-goSZX3xP.cjs"),me=require("./Icon.cjs"),ce=require("./ShopAvatar-CV3lj34D.cjs"),ye=require("./Badge.cjs"),ue=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),de=require("./IconButton.cjs"),pe=require("./useDetectMobile-zkbzoOGV.cjs"),_e=require("./index-CX2A-q39.cjs"),$e=require("./motion-B_VPZaJq.cjs"),a=require("./style-BAcV7F53.cjs"),ke=b.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
cursor: pointer;
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
border-radius: 1.25rem;
|
|
9
9
|
border: 1px solid var(--gray-200, #e4e9f0);
|
|
10
10
|
|
|
11
|
-
@media (max-width: ${
|
|
11
|
+
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
padding: 1rem;
|
|
14
14
|
gap: 0;
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`,Ie=b.styled.div`
|
|
17
17
|
border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,"edged")};
|
|
18
18
|
height: 13.75rem;
|
|
19
19
|
width: 13.75rem;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
transform: scale(1.25);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
`,
|
|
39
|
+
`,Ce=b.styled.div`
|
|
40
40
|
flex: 1;
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: column;
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
color: var(--gray-600, #676e79);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
@media (max-width: ${
|
|
122
|
+
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
123
123
|
padding: 1rem 0 0 0;
|
|
124
124
|
|
|
125
125
|
& .campaign-title-text {
|
|
@@ -144,13 +144,13 @@
|
|
|
144
144
|
gap: 0.25rem;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`,ge=(n=!1,t=!1,
|
|
147
|
+
`,ge=(n=!1,t=!1,s=!1)=>`
|
|
148
148
|
display: flex;
|
|
149
149
|
${t?"flex-wrap: wrap;":""}
|
|
150
150
|
${t?"":"flex-wrap: nowrap;"}
|
|
151
151
|
${n?"align-items: center;":""}
|
|
152
|
-
${
|
|
153
|
-
`,
|
|
152
|
+
${s?"justify-content: center;":""}
|
|
153
|
+
`,Pe=b.styled.a`
|
|
154
154
|
text-decoration: none;
|
|
155
155
|
color: var(--gray-950);
|
|
156
156
|
${n=>n.hasPermission===!0&&"cursor: pointer"};
|
|
@@ -223,17 +223,17 @@
|
|
|
223
223
|
background-color: var(--gray-95080, #14161acc);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
@media (max-width: ${
|
|
226
|
+
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
227
227
|
padding: 0;
|
|
228
228
|
font-size: 0.875rem;
|
|
229
229
|
}
|
|
230
|
-
`,
|
|
230
|
+
`,De=b.styled.div`
|
|
231
231
|
position: absolute;
|
|
232
232
|
top: 0.5rem;
|
|
233
233
|
${n=>n.alignToLeft===!0?"left: 0.5rem;":"right: 0.5rem;"}
|
|
234
234
|
display: flex;
|
|
235
235
|
gap: 0.25rem;
|
|
236
|
-
`,
|
|
236
|
+
`,Ne=b.styled.div`
|
|
237
237
|
border-radius: ${n=>w.getBorderRadiusValueWithUnits(n.theme,n.borderRadius||"slight")};
|
|
238
238
|
background-color: ${n=>n==null?void 0:n.color};
|
|
239
239
|
color: white;
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
& i {
|
|
250
250
|
font-size: 0.813rem;
|
|
251
251
|
}
|
|
252
|
-
`,
|
|
252
|
+
`,Le=c.forwardRef(({src:n,...t},s)=>{const o=c.useRef();return c.useEffect(()=>{var m;const d=i=>{i.target.src=ce.DefaultShopImage,i.onerror=null};return(m=o==null?void 0:o.current)==null||m.addEventListener("error",d),()=>{var i;(i=o==null?void 0:o.current)==null||i.removeEventListener("error",d)}},[]),r.jsx(c.Fragment,{ref:s,children:w.isDefinedNotEmptyString(n)?r.jsx("img",{ref:o,src:n,...t}):r.jsx("img",{src:ce.DefaultShopImage,...t})})}),Ee=n=>{const{uuid:t,hasPermission:s=!0,isUser:o,image:d,imageComponent:m,name:i,notifications:_=0,color:g="primary",size:u="large",style:h,disabled:k,onClick:f=()=>{},isActive:S,className:I,shopCategory:C,themeData:j,LinkComponent:l}=n,x=l||"a",z={theme:ue.useTheme(),color:g,size:u,style:h,disabled:k};return c.createElement(Pe,{onClick:p=>{p==null||p.preventDefault(),p.stopPropagation(),s===!0&&(f==null||f())},...z,key:i,className:`profile-item ${I}`,hasPermission:s,isActive:S,themeColor:(j==null?void 0:j.code)||"transparent",as:x,...l?{to:`/${o?"user":"shop"}/${t}`}:{href:`/${o?"user":"shop"}/${t}`}},r.jsx("div",{className:"logo-wrapper",children:w.isDefined(m)?m:d}),r.jsxs("div",{children:[r.jsx("div",{className:"name",children:i}),!o&&r.jsx("div",{className:"description",children:C}),_>0&&r.jsx("div",{className:"notifications-number",children:r.jsx(ye,{className:"badge",color:"danger",size:"small",children:_>99?"99+":_})})]}))},he=n=>{if(n!==void 0){const t=new Date(n),s=t.getFullYear(),o=t.getMonth()+1;return`${String(t.getDate()).padStart(2)}. ${o}. ${s}.`}},Te=c.forwardRef((n,t)=>{var le;const s=ue.useTheme(),{uuid:o,shopUuid:d,title:m="",coverPhoto:i,onSelect:_,startDate:g,endDate:u,salesPackages:h,shopName:k,shopCategory:f,shopImage:S,shopImageComponent:I,className:C,onSelectCard:j=()=>{},onSelectShop:l=()=>{},upcoming:x=!1,upcomingCampaignText:P,campaignSingleText:z,salesCampaignTypes:p=[],startsInPrefixTextPlural:O,startsinSuffixTextPlural:V,startsInPrefixTextSingular:Z,startsinSuffixTextSingular:re,endsInPrefixTextPlural:X,endsinSuffixTextPlural:G,endsInPrefixTextSingular:M,endsinSuffixTextSingular:F,endedText:A,themeData:ne,numberOfListings:N,numberOfListingsTextSingular:H,numberOfListingsTextPlural:U,metadata:e,LinkComponent:q,...te}=n,Y=q||"a",oe=c.useRef(),R=w.getDayNumberPrecise(g,u),J=R!==-1&&(R==null?void 0:R.isEnded)===!0,K=R!==-1&&!J,Q=w.calcDaysUntil(g),L=w.calcDaysRemaining(u),fe=L!==null&&L<=2&&L>0,se=w.normalizeDate(u),ae=se?new Date(se):null,xe=new Date,ee=ae?ae.getTime()-xe.getTime():null,B=ee!==null&&ee>0&&ee<24*60*60*1e3,ie=(v,E,$,y,D)=>$===1?`${v} ${$} ${y}`:`${E} ${$} ${D}`,we=()=>{if(!u)return null;const v=w.normalizeDate(u),E=v?new Date(v):null;if(!E)return null;const $=ve,y=E.getTime()-$.getTime();if(y<=0)return null;const D=Math.floor(y/(1e3*60*60)),be=Math.floor(y%(1e3*60*60)/(1e3*60)),je=Math.floor(y%(1e3*60)/1e3);return{hours:D,minutes:be,seconds:je}},[ve,Se]=c.useState(new Date);c.useEffect(()=>{if(!B)return;const v=setInterval(()=>{Se(new Date)},1e3);return()=>clearInterval(v)},[B]);const W=B?we():null;return r.jsxs(ke,{ref:oe,theme:s,className:C,name:e==null?void 0:e.name,"data-accessor":e==null?void 0:e.accessor,onClick:v=>j(v,oe),as:Y,...q?{to:`/shop/${d}/campaign/${o}`}:{href:`/shop/${d}/campaign/${o}`},...te,children:[r.jsxs(Ie,{theme:s,children:[r.jsx("img",{src:i}),r.jsx(De,{children:h==null?void 0:h.map((v,E)=>{var $,y;return r.jsx(Ne,{color:($=p==null?void 0:p.find(D=>D.value===v))==null?void 0:$.color,theme:s,children:r.jsx(me,{icon:(y=p==null?void 0:p.find(D=>D.value===v))==null?void 0:y.icon})},`package__${E}`)})})]}),r.jsxs(Ce,{theme:s,children:[r.jsx("div",{className:"text-block-wrapper",children:r.jsxs("div",{className:"title-block-wrapper",children:[r.jsx("div",{className:"campaign-title",children:(le=x?P:z)==null?void 0:le.toUpperCase()}),r.jsx("div",{className:"campaign-title-text",children:m}),u&&g&&r.jsxs("div",{className:"campaign-date",children:[he(g)," - ",he(u)]}),r.jsxs("div",{className:"timestamp-text",children:[N>0&&r.jsxs("span",{className:"listings-text",children:[N," ",N===1?H:U," ","∙"," "]}),r.jsx("span",{className:`duration-text ${fe?"urgent":""} ${K?"":"starts-in"}`,children:B&&W?r.jsxs("div",{className:"countdown-timer",children:[M," ",W.hours.toString().padStart(2,"0"),":",W.minutes.toString().padStart(2,"0"),":",W.seconds.toString().padStart(2,"0")]}):K&&!J&&L!==null&&L>0?ie(M,X,L,F,G):J?A||"Završena":!K&&Q!==null&&Q>0?ie(Z,O,Q,re,V):null})]})]})}),r.jsx(Ee,{hasPermission:!0,image:r.jsx(Le,{src:S}),imageComponent:I,themeData:ne,isActive:!0,isUser:!1,name:k,shopCategory:f,uuid:d,onClick:()=>l(d)})]})]})}),ze=b.styled.div`
|
|
253
253
|
margin: 0 auto;
|
|
254
254
|
display: flex;
|
|
255
255
|
flex-direction: column;
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
right: 0;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
@media (max-width: ${
|
|
291
|
+
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
292
292
|
gap: 1.25rem;
|
|
293
293
|
|
|
294
294
|
& .scrollable-section__header {
|
|
@@ -300,13 +300,13 @@
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
`,
|
|
303
|
+
`,Re=b.styled($e.motion.div)`
|
|
304
304
|
display: grid;
|
|
305
305
|
grid-template-columns: repeat(${n=>n==null?void 0:n.numOfColumns}, 1fr);
|
|
306
306
|
gap: 1.5rem;
|
|
307
307
|
width: 100%;
|
|
308
308
|
|
|
309
|
-
@media (max-width: ${
|
|
309
|
+
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
310
310
|
display: flex;
|
|
311
311
|
flex-wrap: nowrap;
|
|
312
312
|
overflow-x: scroll;
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
/* Safari and Chrome */
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
`,
|
|
331
|
+
`,Me=c.forwardRef(({icon:n,title:t,numOfSlides:s=2,showNavigation:o=!0,hasNextPage:d=!1,handleFetchNextPage:m=()=>{},children:i},_)=>{const[g,u]=c.useState(0),[h,k]=c.useState(1),f=pe.useDetectMobile(),S=(i==null?void 0:i.length)??1;c.useEffect(()=>{const l=()=>{k(s)};return window.addEventListener("resize",l),l(),()=>window.removeEventListener("resize",l)},[]);const I=f?i:i==null?void 0:i.slice(g,g+h),C=l=>{var P;(P=l==null?void 0:l.target)==null||P.blur();const x=g+h;x<S&&u(x),x+h>=S&&d&&m()},j=l=>{var x;(x=l==null?void 0:l.target)==null||x.blur(),g-h>=0&&u(g-h)};return r.jsxs(ze,{ref:_,children:[r.jsx("div",{className:"scrollable-section__header",children:r.jsxs("div",{className:"scrollable-section__title",children:[w.isDefinedNotEmptyString(n)&&r.jsx(me,{icon:n,color:"primary",sizeInUnits:"1.5rem",className:"title__icon"}),w.isDefinedNotEmptyString(t)&&r.jsxs("div",{className:"title__text",children:[" ",t]})]})}),r.jsxs(Re,{numOfColumns:s,...!f&&{animate:{x:0,opacity:1},initial:{x:10,opacity:0}},children:[I,f&&d&&r.jsx(_e.InfiniteScrollEndElement,{onIsVisible:m})]},`scrollable-section__content-${g}`),o&&S>h&&!f&&r.jsxs("div",{className:"scrollable-section__navigation",children:[r.jsx(de,{icon:"angle-left",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:g===0,onClick:j}),r.jsx(de,{icon:"angle-right",borderRadius:"curved",btnType:"tinted",color:"neutral",className:"navigation__arrow",disabled:g+h>=S,onClick:C})]})]})}),Ue=b.styled.div`
|
|
332
332
|
display: flex;
|
|
333
333
|
flex: 1;
|
|
334
334
|
width: 100%;
|
|
@@ -345,8 +345,8 @@
|
|
|
345
345
|
border-radius: 1.25rem;
|
|
346
346
|
object-fit: cover;
|
|
347
347
|
}
|
|
348
|
-
`,
|
|
349
|
-
@media (max-width: ${
|
|
348
|
+
`,qe=c.forwardRef(({sectionName:n,imageUrl:t,maxHeight:s="16.25rem",className:o="",handleClick:d=()=>{}},m)=>r.jsx(Ue,{ref:m,maxHeight:s,onClick:d,className:`itemless-banner ${o}`,children:r.jsx("img",{src:t,alt:`itemless-banner__${n}`})})),Be=b.styled(a.SkeletonRowWrapper)`
|
|
349
|
+
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
350
350
|
flex-direction: column;
|
|
351
351
|
|
|
352
352
|
& .skeleton__image {
|
|
@@ -360,4 +360,4 @@
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
`,We=({keyPrefix:n})=>r.jsxs(Be,{children:[r.jsxs(
|
|
363
|
+
`,We=({keyPrefix:n})=>r.jsxs(Be,{children:[r.jsxs(a.SkeletonRowWrapper,{children:[r.jsx(a.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-1`),r.jsxs(a.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(a.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(a.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(a.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(a.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]}),r.jsxs(a.SkeletonRowWrapper,{noGradient:!0,children:[r.jsx(a.SkeletonSquarePlaceholder,{width:"13.75rem",height:"13.75rem",className:"skeleton__image"},`${n}-2`),r.jsxs(a.SkeletonColumnWrapper,{noGradient:!0,children:[r.jsx(a.SkeletonLinePlaceholder,{height:"1rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.75rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"1.25rem"}),r.jsx(a.SkeletonLinePlaceholder,{height:"2rem"}),r.jsxs(a.SkeletonRowWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(a.SkeletonCirclePlaceholder,{width:"2.5rem",height:"2.5rem"}),r.jsx(a.SkeletonLinePlaceholder,{width:"5rem",height:"1.25rem"})]})]})]})]}),Oe=({keyPrefix:n,isLoading:t=!1,fallbackComponent:s=r.jsx(r.Fragment,{}),children:o})=>r.jsx(c.Suspense,{fallbackComponent:s,children:t===!0?r.jsx(We,{keyPrefix:n}):o}),Ve=c.memo(Te),Ze=c.forwardRef(({sellerType:n="Shop",items:t=[],title:s,icon:o,isLoading:d,onSelectCard:m=()=>{},onSelectShop:i=()=>{},getImage:_=()=>{},campaignSingleText:g,upcomingCampaignText:u,salesCampaignTypes:h=[],startsInPrefixTextPlural:k,startsinSuffixTextPlural:f,startsInPrefixTextSingular:S,startsinSuffixTextSingular:I,endsInPrefixTextPlural:C,endsinSuffixTextPlural:j,endsInPrefixTextSingular:l,endsinSuffixTextSingular:x,endedText:P,numOfSlides:z=2,showNavigation:p=!0,numberOfListingsTextSingular:O,numberOfListingsTextPlural:V,itemlessImageUrl:Z,itemlessLink:re,handleItemlessLink:X=()=>{},componentName:G,hasNextPage:M=!1,handleFetchNextPage:F=()=>{},LinkComponent:A},ne)=>{const N=pe.useDetectMobile(),H=c.useMemo(()=>{let U=t==null?void 0:t.map((e,q)=>r.jsx(Ve,{className:"campaign-item",coverPhoto:_(e==null?void 0:e.coverPhoto,(e==null?void 0:e.uuid)||(e==null?void 0:e.campaignUuid)),description:e==null?void 0:e.description,endDate:e==null?void 0:e.endDate,salesPackages:e==null?void 0:e.salesPackages,sellerType:n,shopImage:e==null?void 0:e.profileImage,shopImageComponent:e==null?void 0:e.profileImageComponent,shopName:e==null?void 0:e.shopName,shopUuid:e==null?void 0:e.shopUuid,shopCategory:e==null?void 0:e.shopCategory,startDate:e==null?void 0:e.startDate,title:e==null?void 0:e.name,uuid:e==null?void 0:e.campaignUuid,onSelectCard:(te,Y)=>m(e==null?void 0:e.campaignUuid,e==null?void 0:e.shopUuid,Y),onSelectShop:()=>i(e==null?void 0:e.shopUuid),campaignSingleText:g,upcomingCampaignText:u,upcoming:e==null?void 0:e.upcoming,salesCampaignTypes:h,startsInPrefixTextPlural:k,startsinSuffixTextPlural:f,startsInPrefixTextSingular:S,startsinSuffixTextSingular:I,endsInPrefixTextPlural:C,endsinSuffixTextPlural:j,endsInPrefixTextSingular:l,endsinSuffixTextSingular:x,endedText:P,themeData:e==null?void 0:e.themeData,numberOfListings:e==null?void 0:e.numberOfListings,numberOfListingsTextSingular:O,numberOfListingsTextPlural:V,metadata:{name:G,accessor:e==null?void 0:e.accessor},LinkComponent:A},`campaign__item__${q}__${e==null?void 0:e.startDate}___${e==null?void 0:e.endDate}`));return(t==null?void 0:t.length)<2&&!N?[...U,r.jsx(qe,{imageUrl:Z,className:"campaign-item",handleClick:X},"itemless-campaign-section-banner")]:U},[t]);return r.jsx(Oe,{isLoading:d,keyPrefix:"sales-campaign-skeleton",children:r.jsx(Me,{icon:o,title:s,numOfSlides:z,showNavigation:p,hasNextPage:M,handleFetchNextPage:F,children:H},`sales-campaign-section__${N}`)})});module.exports=Ze;
|