@lanaco/lnc-react-ui 4.0.170 → 4.0.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +9 -48
- package/dist/BannerSectionCarousel.js +208 -249
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +67 -68
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +22 -30
- package/dist/BlogExploreSection.js +9 -9
- package/dist/BlogListSection.cjs +11 -5
- package/dist/BlogListSection.js +187 -123
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +28 -37
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +40 -67
- package/dist/BlogSingleSection.cjs +16 -1
- package/dist/BlogSingleSection.js +47 -45
- package/dist/BlogsSectionDetailed.cjs +8 -27
- package/dist/BlogsSectionDetailed.js +111 -159
- package/dist/BlogsSectionLarge.cjs +19 -4
- package/dist/BlogsSectionLarge.js +73 -37
- package/dist/BlogsSectionSimple.cjs +9 -9
- package/dist/BlogsSectionSimple.js +81 -107
- package/dist/BlogsSectionSimpleCentered.cjs +25 -23
- package/dist/BlogsSectionSimpleCentered.js +103 -96
- package/dist/BlogsSectionWithFilters.cjs +31 -29
- package/dist/BlogsSectionWithFilters.js +173 -134
- package/dist/BrandHitsSection.cjs +10 -14
- package/dist/BrandHitsSection.js +93 -45
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
- package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +35 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +62 -63
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
- package/dist/FieldOfInterestsMasonrySection.js +228 -154
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
- package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +11 -27
- package/dist/GeneralWithTagsCardsSection.js +87 -99
- package/dist/GiftCardsSection.cjs +18 -23
- package/dist/GiftCardsSection.js +146 -77
- package/dist/Icon.js +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +33 -19
- package/dist/MasonryGeneralCardsSection.js +114 -68
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +54 -40
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +15 -20
- package/dist/ProductsWithBannerSection.js +176 -104
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +6 -6
- package/dist/QuattroCardsSection.js +42 -34
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -30
- package/dist/ReviewsSection.js +170 -137
- package/dist/SalesCampaignsSection.cjs +46 -130
- package/dist/SalesCampaignsSection.js +354 -433
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +18 -5
- package/dist/ShopCardsSection.js +145 -88
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +10 -4
- package/dist/SimpleCategoriesSection.js +79 -51
- package/dist/SimpleProductsSection.cjs +16 -3
- package/dist/SimpleProductsSection.js +172 -70
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.js +4 -4
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +62 -61
- package/dist/index-BAJkosVg.cjs +11 -0
- package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
- package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
- package/dist/index-BSpdEGFd.js +42 -0
- package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
- package/dist/index-BhBRZf4M.js +742 -0
- package/dist/index-BovNbKxB.js +54 -0
- package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
- package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
- package/dist/index-D-3I_Ppj.cjs +16 -0
- package/dist/index-D0IYt1s3.cjs +20 -0
- package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
- package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
- package/dist/index-DFdPWO4O.js +133 -0
- package/dist/index-DFyV_EK2.cjs +305 -0
- package/dist/index-DxwIu0Wn.js +84 -0
- package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
- package/dist/index.js +1 -1
- package/dist/style-BAcV7F53.cjs +64 -0
- package/dist/style-CXMUA6cI.js +74 -0
- package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
- package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
- package/package.json +1 -1
- package/dist/index-1Dm1i6WK.js +0 -52
- package/dist/index-BGTtoLxz.cjs +0 -1
- package/dist/skeleton-BdbB-LdT.cjs +0 -97
- package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
- package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
- package/dist/suspense-large-BMO7JH52.js +0 -26
- package/dist/suspense-large-CFmcSzX-.cjs +0 -1
- package/dist/suspense-product-card-detailed-BU6DPCvJ.js +0 -652
- package/dist/suspense-product-card-detailed-BbvQuPOP.cjs +0 -329
- package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
- package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as o, Fragment as $, jsxs as
|
|
1
|
+
import { jsx as o, Fragment as $, jsxs as C } from "react/jsx-runtime";
|
|
2
2
|
import { memo as T, forwardRef as F, useState as I, useMemo as _ } from "react";
|
|
3
3
|
import { s as q } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as B, S as D } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as E } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
6
|
import j from "./Button.js";
|
|
7
|
-
import { D as z, S as A } from "./
|
|
7
|
+
import { D as z, S as A } from "./index-BhBRZf4M.js";
|
|
8
8
|
const G = q.div`
|
|
9
9
|
padding: 1.75rem 3rem;
|
|
10
10
|
display: grid;
|
|
@@ -78,30 +78,30 @@ const G = q.div`
|
|
|
78
78
|
display: flex;
|
|
79
79
|
flex-direction: column;
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`, S = T(z), K = F((a, w) => {
|
|
82
82
|
const {
|
|
83
83
|
items: r,
|
|
84
|
-
limit:
|
|
84
|
+
limit: n = 5,
|
|
85
85
|
limitMobile: s = 4,
|
|
86
86
|
onSelectCard: c = () => {
|
|
87
87
|
},
|
|
88
|
-
title:
|
|
89
|
-
showLessText:
|
|
90
|
-
showMoreText:
|
|
91
|
-
isLoading:
|
|
92
|
-
getImage:
|
|
88
|
+
title: N = "Urgent sale",
|
|
89
|
+
showLessText: P = "Show less",
|
|
90
|
+
showMoreText: L = "Show more",
|
|
91
|
+
isLoading: u = !1,
|
|
92
|
+
getImage: g = () => {
|
|
93
93
|
},
|
|
94
|
-
negotiableText:
|
|
95
|
-
freeText:
|
|
96
|
-
onBookmark:
|
|
94
|
+
negotiableText: p,
|
|
95
|
+
freeText: f,
|
|
96
|
+
onBookmark: k = () => {
|
|
97
97
|
},
|
|
98
98
|
bookmarkComponent: b,
|
|
99
|
-
componentName:
|
|
100
|
-
sponsoredText:
|
|
101
|
-
} = a, l = E(), [
|
|
99
|
+
componentName: h,
|
|
100
|
+
sponsoredText: y
|
|
101
|
+
} = a, l = E(), [t, M] = I(!1), U = _(() => {
|
|
102
102
|
var i;
|
|
103
|
-
return /* @__PURE__ */ o($, { children: l === !0 ? (i = r == null ? void 0 : r.slice(0,
|
|
104
|
-
|
|
103
|
+
return /* @__PURE__ */ o($, { children: l === !0 ? (i = r == null ? void 0 : r.slice(0, t === !0 ? r == null ? void 0 : r.length : s)) == null ? void 0 : i.map((e, m) => /* @__PURE__ */ o(
|
|
104
|
+
S,
|
|
105
105
|
{
|
|
106
106
|
sellerName: e == null ? void 0 : e.sellerName,
|
|
107
107
|
name: e == null ? void 0 : e.name,
|
|
@@ -120,24 +120,24 @@ const G = q.div`
|
|
|
120
120
|
cardRef: d
|
|
121
121
|
}),
|
|
122
122
|
image: e == null ? void 0 : e.image,
|
|
123
|
-
imageUrl:
|
|
123
|
+
imageUrl: g(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
124
124
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
125
|
-
negotiableText:
|
|
126
|
-
freeText:
|
|
127
|
-
onBookmark:
|
|
125
|
+
negotiableText: p,
|
|
126
|
+
freeText: f,
|
|
127
|
+
onBookmark: k,
|
|
128
128
|
bookmarkComponent: b,
|
|
129
129
|
bookmarked: e == null ? void 0 : e.bookmarked,
|
|
130
130
|
bookmarkLists: e == null ? void 0 : e.bookmarkLists,
|
|
131
|
-
metadata: { name:
|
|
131
|
+
metadata: { name: h, accessor: e == null ? void 0 : e.accessor },
|
|
132
132
|
tags: e == null ? void 0 : e.tags,
|
|
133
133
|
condition: e == null ? void 0 : e.condition,
|
|
134
134
|
quantity: e == null ? void 0 : e.quantity,
|
|
135
135
|
trade: e == null ? void 0 : e.trade,
|
|
136
|
-
sponsoredText:
|
|
136
|
+
sponsoredText: y
|
|
137
137
|
},
|
|
138
138
|
m
|
|
139
|
-
)) : r == null ? void 0 : r.slice(0,
|
|
140
|
-
|
|
139
|
+
)) : r == null ? void 0 : r.slice(0, n).map((e, m) => /* @__PURE__ */ o(
|
|
140
|
+
S,
|
|
141
141
|
{
|
|
142
142
|
name: e == null ? void 0 : e.name,
|
|
143
143
|
price: e == null ? void 0 : e.price,
|
|
@@ -156,54 +156,55 @@ const G = q.div`
|
|
|
156
156
|
cardRef: d
|
|
157
157
|
}),
|
|
158
158
|
image: e == null ? void 0 : e.image,
|
|
159
|
-
imageUrl:
|
|
159
|
+
imageUrl: g(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
160
160
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
161
|
-
negotiableText:
|
|
162
|
-
freeText:
|
|
163
|
-
onBookmark:
|
|
161
|
+
negotiableText: p,
|
|
162
|
+
freeText: f,
|
|
163
|
+
onBookmark: k,
|
|
164
164
|
bookmarkComponent: b,
|
|
165
165
|
bookmarked: e == null ? void 0 : e.bookmarked,
|
|
166
166
|
bookmarkLists: e == null ? void 0 : e.bookmarkLists,
|
|
167
|
-
metadata: { name:
|
|
167
|
+
metadata: { name: h, accessor: e == null ? void 0 : e.accessor },
|
|
168
168
|
tags: e == null ? void 0 : e.tags,
|
|
169
169
|
condition: e == null ? void 0 : e.condition,
|
|
170
170
|
quantity: e == null ? void 0 : e.quantity,
|
|
171
171
|
trade: e == null ? void 0 : e.trade,
|
|
172
|
-
sponsoredText:
|
|
172
|
+
sponsoredText: y,
|
|
173
173
|
sellerName: e == null ? void 0 : e.sellerName
|
|
174
174
|
},
|
|
175
175
|
m
|
|
176
176
|
)) });
|
|
177
|
-
}, [r, l,
|
|
178
|
-
return /* @__PURE__ */
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
177
|
+
}, [r, l, n, s, t]);
|
|
178
|
+
return /* @__PURE__ */ o(
|
|
179
|
+
A,
|
|
180
|
+
{
|
|
181
|
+
isLoading: u,
|
|
182
|
+
keyPrefix: "urgent-sale-products-skeleton",
|
|
183
|
+
children: /* @__PURE__ */ C(G, { ref: w, limit: n, children: [
|
|
184
|
+
/* @__PURE__ */ C("div", { className: "urgent-tag", children: [
|
|
185
|
+
/* @__PURE__ */ o("i", { className: "mng mng-lnc-bolt-filled" }),
|
|
186
|
+
/* @__PURE__ */ o("span", { children: N })
|
|
187
|
+
] }),
|
|
188
|
+
" ",
|
|
189
|
+
U,
|
|
190
|
+
" ",
|
|
191
|
+
l === !0 && s < (r == null ? void 0 : r.length) && !u && /* @__PURE__ */ o(
|
|
192
|
+
j,
|
|
193
|
+
{
|
|
194
|
+
className: "show-more",
|
|
195
|
+
btnType: "basic",
|
|
196
|
+
type: "button",
|
|
197
|
+
color: "neutral",
|
|
198
|
+
onClick: (i) => {
|
|
199
|
+
var e;
|
|
200
|
+
(e = i == null ? void 0 : i.target) == null || e.blur(), M(!t);
|
|
201
|
+
},
|
|
202
|
+
children: t === !0 ? P : L
|
|
203
|
+
}
|
|
204
|
+
)
|
|
205
|
+
] })
|
|
206
|
+
}
|
|
207
|
+
);
|
|
207
208
|
});
|
|
208
209
|
export {
|
|
209
210
|
K as default
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),i=require("react"),t=require("./style-BAcV7F53.cjs"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./consts-goSZX3xP.cjs"),a=o.styled(t.SkeletonRowWrapper)`
|
|
2
|
+
&.skeleton__tags {
|
|
3
|
+
max-width: 50rem;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
7
|
+
&.skeleton__tags {
|
|
8
|
+
overflow-x: hidden;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`,d=({keyPrefix:n})=>e.jsxs(a,{className:"skeleton__cards",children:[e.jsx(t.SkeletonLinePlaceholder,{height:"13.75rem"},`${n}-1`),e.jsx(t.SkeletonLinePlaceholder,{height:"13.75rem"},`${n}-2`),e.jsx(t.SkeletonLinePlaceholder,{height:"13.75rem"},`${n}-3`)]}),m=({keyPrefix:n,isLoading:r=!1,fallbackComponent:s=e.jsx(e.Fragment,{}),children:l})=>e.jsx(i.Suspense,{fallbackComponent:s,children:r===!0?e.jsx(d,{keyPrefix:n}):l}),c=({keyPrefix:n})=>e.jsxs(a,{className:"skeleton__tags",children:[e.jsx(t.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",children:e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})},`${n}-1`),e.jsx(t.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})},`${n}-2`),e.jsx(t.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})},`${n}-3`),e.jsx(t.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})},`${n}-4`),e.jsx(t.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:e.jsx(t.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})},`${n}-5`)]}),g=({keyPrefix:n,isLoading:r=!1,fallbackComponent:s=e.jsx(e.Fragment,{}),children:l})=>e.jsx(i.Suspense,{fallbackComponent:s,children:r===!0?e.jsx(c,{keyPrefix:n}):l});exports.SuspenseFieldOfInterestsWithTagsCard=m;exports.SuspenseFieldOfInterestsWithTagsTag=g;
|
|
@@ -10,7 +10,7 @@ import { u as J } from "./useDetectMobile-Bkvj0VMa.js";
|
|
|
10
10
|
import { I as H } from "./index-C0LcDEqa.js";
|
|
11
11
|
import V from "./Button.js";
|
|
12
12
|
import Q from "./Icon.js";
|
|
13
|
-
import { l as Y } from "./utils-
|
|
13
|
+
import { l as Y } from "./utils-DHfRApMf.js";
|
|
14
14
|
const ee = Z.div`
|
|
15
15
|
position: relative;
|
|
16
16
|
padding: ${(e) => e.padding};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as $, useRef as _, useEffect as k, Fragment as I } from "react";
|
|
3
3
|
import g from "./Icon.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
const
|
|
4
|
+
import { o as f, l as h } from "./utils-DHfRApMf.js";
|
|
5
|
+
import { s as P } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
+
import { M as z } from "./consts-BuFChS64.js";
|
|
7
|
+
import { D as w } from "./ShopAvatar-4-fCYGEc.js";
|
|
8
|
+
import { P as D } from "./index-BbltNcou.js";
|
|
9
|
+
const M = P.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
align-items: center;
|
|
@@ -135,7 +135,7 @@ const G = b.div`
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
@media (max-width: ${
|
|
138
|
+
@media (max-width: ${z + "px"}) {
|
|
139
139
|
max-width: 10rem;
|
|
140
140
|
min-width: 10rem;
|
|
141
141
|
|
|
@@ -145,115 +145,72 @@ const G = b.div`
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
`,
|
|
149
|
-
display: flex;
|
|
150
|
-
flex-direction: column;
|
|
151
|
-
align-items: center;
|
|
152
|
-
flex: 1 0 0;
|
|
153
|
-
border-radius: 1.25rem;
|
|
154
|
-
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
155
|
-
background: var(--Lanaco-Gray-white, #fff);
|
|
156
|
-
width: 100%;
|
|
157
|
-
|
|
158
|
-
/* drop-shadow-sm */
|
|
159
|
-
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
160
|
-
|
|
161
|
-
& .wrapper__content {
|
|
162
|
-
display: flex;
|
|
163
|
-
padding: 1.25rem;
|
|
164
|
-
flex-direction: column;
|
|
165
|
-
align-items: center;
|
|
166
|
-
gap: 0.75rem;
|
|
167
|
-
align-self: strech;
|
|
168
|
-
width: 100%;
|
|
169
|
-
|
|
170
|
-
& .wrapper__image {
|
|
171
|
-
width: 4rem;
|
|
172
|
-
height: 4rem;
|
|
173
|
-
border-radius: 999px;
|
|
174
|
-
background-color: ${h("-90deg")};
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
& .wrapper__info {
|
|
179
|
-
display: flex;
|
|
180
|
-
flex-direction: column;
|
|
181
|
-
align-items: center;
|
|
182
|
-
gap: 0.375rem;
|
|
183
|
-
width: 100%;
|
|
184
|
-
|
|
185
|
-
& .wrapper__info-item {
|
|
186
|
-
background-color: ${h("-90deg")};
|
|
187
|
-
height: 1rem;
|
|
188
|
-
width: 100%;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
`, Z = v(
|
|
148
|
+
`, X = $(
|
|
192
149
|
({
|
|
193
|
-
uuid:
|
|
194
|
-
image:
|
|
150
|
+
uuid: d,
|
|
151
|
+
image: o,
|
|
195
152
|
imageComponent: c,
|
|
196
|
-
title:
|
|
197
|
-
subtitle:
|
|
198
|
-
badges:
|
|
199
|
-
rating:
|
|
200
|
-
reviewCount:
|
|
153
|
+
title: x,
|
|
154
|
+
subtitle: v,
|
|
155
|
+
badges: y,
|
|
156
|
+
rating: b,
|
|
157
|
+
reviewCount: m,
|
|
201
158
|
products: t,
|
|
202
|
-
onSelectCard:
|
|
159
|
+
onSelectCard: N = () => {
|
|
203
160
|
},
|
|
204
|
-
getProductImage:
|
|
161
|
+
getProductImage: E = () => {
|
|
205
162
|
},
|
|
206
|
-
canAcceptPayments:
|
|
207
|
-
hideProducts:
|
|
208
|
-
showRating:
|
|
163
|
+
canAcceptPayments: S,
|
|
164
|
+
hideProducts: j = !1,
|
|
165
|
+
showRating: L = !0,
|
|
209
166
|
metadata: s = {}
|
|
210
|
-
},
|
|
211
|
-
const
|
|
212
|
-
return
|
|
213
|
-
var
|
|
167
|
+
}, W) => {
|
|
168
|
+
const i = _(), p = _();
|
|
169
|
+
return k(() => {
|
|
170
|
+
var n;
|
|
214
171
|
const e = (a) => {
|
|
215
|
-
a.target.src =
|
|
172
|
+
a.target.src = w, a.onerror = null;
|
|
216
173
|
};
|
|
217
|
-
return (
|
|
174
|
+
return (n = i == null ? void 0 : i.current) == null || n.addEventListener("error", e), () => {
|
|
218
175
|
var a;
|
|
219
|
-
(a =
|
|
176
|
+
(a = i == null ? void 0 : i.current) == null || a.removeEventListener("error", e);
|
|
220
177
|
};
|
|
221
|
-
}, []), /* @__PURE__ */
|
|
222
|
-
|
|
178
|
+
}, []), /* @__PURE__ */ l(
|
|
179
|
+
M,
|
|
223
180
|
{
|
|
224
|
-
ref:
|
|
225
|
-
onClick: (e) =>
|
|
181
|
+
ref: p,
|
|
182
|
+
onClick: (e) => N(e, p),
|
|
226
183
|
name: s == null ? void 0 : s.name,
|
|
227
184
|
"data-accessor": s == null ? void 0 : s.accessor,
|
|
228
185
|
children: [
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
|
|
231
|
-
/* @__PURE__ */
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
|
|
186
|
+
/* @__PURE__ */ l("div", { className: "wrapper__content", children: [
|
|
187
|
+
h(c) ? c : o ? /* @__PURE__ */ r("img", { ref: i, src: o, className: "wrapper__image" }) : /* @__PURE__ */ r("img", { src: w, className: "wrapper__image" }),
|
|
188
|
+
/* @__PURE__ */ l("div", { className: "wrapper__info", children: [
|
|
189
|
+
/* @__PURE__ */ l("div", { className: "wrapper__title", children: [
|
|
190
|
+
x,
|
|
234
191
|
" ",
|
|
235
|
-
|
|
192
|
+
S && /* @__PURE__ */ r(g, { color: "secondary", icon: "credit-card", className: "card" })
|
|
236
193
|
] }),
|
|
237
|
-
/* @__PURE__ */ r("div", { className: "wrapper__subtitle", children:
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
/* @__PURE__ */ r("div", { className: "wrapper_stars", children: [...Array(5).keys()].map((e,
|
|
194
|
+
/* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: v }),
|
|
195
|
+
y && /* @__PURE__ */ r("div", { className: "wrapper__badges" }),
|
|
196
|
+
L && /* @__PURE__ */ l("div", { className: "wrapper__rating", children: [
|
|
197
|
+
/* @__PURE__ */ r("div", { className: "wrapper_stars", children: [...Array(5).keys()].map((e, n) => /* @__PURE__ */ r(
|
|
241
198
|
g,
|
|
242
199
|
{
|
|
243
200
|
icon: " mng-lnc-star--filled",
|
|
244
|
-
className: `wrapper__star ${e >=
|
|
201
|
+
className: `wrapper__star ${e >= b ? "gold-star" : ""}`
|
|
245
202
|
},
|
|
246
|
-
`shop-card-rating-star__${
|
|
203
|
+
`shop-card-rating-star__${n + 1}`
|
|
247
204
|
)) }),
|
|
248
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ l("div", { className: "wrapper__review-count", children: [
|
|
249
206
|
"(",
|
|
250
|
-
|
|
207
|
+
m == null ? void 0 : m.toLocaleString(),
|
|
251
208
|
")"
|
|
252
209
|
] })
|
|
253
210
|
] })
|
|
254
211
|
] })
|
|
255
212
|
] }),
|
|
256
|
-
|
|
213
|
+
j !== !0 && /* @__PURE__ */ r("div", { className: "wrapper__products", children: t && (t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ r(I, { children: /* @__PURE__ */ r(
|
|
257
214
|
"div",
|
|
258
215
|
{
|
|
259
216
|
className: "wrapper__product",
|
|
@@ -261,33 +218,24 @@ const G = b.div`
|
|
|
261
218
|
var a;
|
|
262
219
|
return (a = e == null ? void 0 : e.onSelectProduct) == null ? void 0 : a.call(e, e == null ? void 0 : e.uuid);
|
|
263
220
|
},
|
|
264
|
-
children:
|
|
265
|
-
|
|
221
|
+
children: h(e == null ? void 0 : e.imageComponent) ? e == null ? void 0 : e.imageComponent : /* @__PURE__ */ r(
|
|
222
|
+
D,
|
|
266
223
|
{
|
|
267
|
-
src:
|
|
224
|
+
src: E(
|
|
268
225
|
e == null ? void 0 : e.image,
|
|
269
226
|
e == null ? void 0 : e.uuid,
|
|
270
|
-
|
|
227
|
+
d
|
|
271
228
|
),
|
|
272
229
|
className: "product__image"
|
|
273
230
|
}
|
|
274
231
|
)
|
|
275
232
|
}
|
|
276
|
-
) },
|
|
233
|
+
) }, n))) })
|
|
277
234
|
]
|
|
278
235
|
}
|
|
279
236
|
);
|
|
280
237
|
}
|
|
281
|
-
)
|
|
282
|
-
/* @__PURE__ */ r("div", { className: "wrapper__image" }),
|
|
283
|
-
/* @__PURE__ */ i("div", { className: "wrapper__info", children: [
|
|
284
|
-
/* @__PURE__ */ r("div", { className: "wrapper__info-item" }),
|
|
285
|
-
/* @__PURE__ */ r("div", { className: "wrapper__info-item" }),
|
|
286
|
-
/* @__PURE__ */ r("div", { className: "wrapper__info-item" }),
|
|
287
|
-
/* @__PURE__ */ r("div", { className: "wrapper__info-item" })
|
|
288
|
-
] })
|
|
289
|
-
] }) }));
|
|
238
|
+
);
|
|
290
239
|
export {
|
|
291
|
-
|
|
292
|
-
q as a
|
|
240
|
+
X as S
|
|
293
241
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e, Fragment as l } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as m } from "react";
|
|
3
|
+
import { S as d, a as t, b as o } from "./style-CXMUA6cI.js";
|
|
4
|
+
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
+
import { M as p } from "./consts-BuFChS64.js";
|
|
6
|
+
const c = h(d)`
|
|
7
|
+
@media (max-width: ${p + "px"}) {
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
|
|
10
|
+
& > div {
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
|
|
13
|
+
& > div {
|
|
14
|
+
background: linear-gradient(
|
|
15
|
+
to right,
|
|
16
|
+
transparent 0%,
|
|
17
|
+
#f4f6fb 40%,
|
|
18
|
+
#f4f6fb 100%
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
box-shadow: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`, f = ({ keyPrefix: r }) => /* @__PURE__ */ n(c, { children: [
|
|
26
|
+
/* @__PURE__ */ n(t, { children: [
|
|
27
|
+
/* @__PURE__ */ e(o, { height: "11.25rem" }, `${r}-1`),
|
|
28
|
+
/* @__PURE__ */ e(o, { height: "11.25rem" }, `${r}-2`)
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ n(t, { children: [
|
|
31
|
+
/* @__PURE__ */ e(o, { height: "11.25rem" }, `${r}-3`),
|
|
32
|
+
/* @__PURE__ */ e(o, { height: "11.25rem" }, `${r}-4`)
|
|
33
|
+
] })
|
|
34
|
+
] }), $ = ({
|
|
35
|
+
keyPrefix: r,
|
|
36
|
+
isLoading: s = !1,
|
|
37
|
+
fallbackComponent: a = /* @__PURE__ */ e(l, {}),
|
|
38
|
+
children: i
|
|
39
|
+
}) => /* @__PURE__ */ e(m, { fallbackComponent: a, children: s === !0 ? /* @__PURE__ */ e(f, { keyPrefix: r }) : i });
|
|
40
|
+
export {
|
|
41
|
+
$ as S
|
|
42
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as a, useRef as s, useEffect as d, Fragment as f } from "react";
|
|
3
|
-
import { k as g } from "./utils-
|
|
3
|
+
import { k as g } from "./utils-DHfRApMf.js";
|
|
4
4
|
const n = "data:image/svg+xml,%3csvg%20width='240'%20height='240'%20viewBox='0%200%20240%20240'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='240'%20height='240'%20rx='12'%20fill='%2314161A'%20fill-opacity='0.04'/%3e%3crect%20x='88'%20y='88'%20width='64'%20height='64'%20rx='32'%20fill='%2314161A'%20fill-opacity='0.08'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M110%20108H130C130.53%20108%20131.039%20108.211%20131.414%20108.586C131.789%20108.961%20132%20109.47%20132%20110V130C132%20130.53%20131.789%20131.039%20131.414%20131.414C131.039%20131.789%20130.53%20132%20130%20132H110C109.47%20132%20108.961%20131.789%20108.586%20131.414C108.211%20131.039%20108%20130.53%20108%20130V110C108%20109.47%20108.211%20108.961%20108.586%20108.586C108.961%20108.211%20109.47%20108%20110%20108ZM110%20124V130H130V128L125%20123L123.41%20124.59C123.035%20124.963%20122.528%20125.172%20122%20125.172C121.472%20125.172%20120.965%20124.963%20120.59%20124.59L115%20119L110%20124ZM126.41%20121.58L130%20125.17V110H110V121.17L113.59%20117.58C113.965%20117.207%20114.472%20116.998%20115%20116.998C115.528%20116.998%20116.035%20117.207%20116.41%20117.58L122%20123.17L123.59%20121.58C123.965%20121.207%20124.472%20120.998%20125%20120.998C125.528%20120.998%20126.035%20121.207%20126.41%20121.58ZM124.667%20117.494C124.173%20117.824%20123.593%20118%20123%20118C122.204%20118%20121.441%20117.684%20120.879%20117.121C120.316%20116.559%20120%20115.796%20120%20115C120%20114.407%20120.176%20113.827%20120.506%20113.333C120.835%20112.84%20121.304%20112.455%20121.852%20112.228C122.4%20112.001%20123.003%20111.942%20123.585%20112.058C124.167%20112.173%20124.702%20112.459%20125.121%20112.879C125.541%20113.298%20125.827%20113.833%20125.942%20114.415C126.058%20114.997%20125.999%20115.6%20125.772%20116.148C125.545%20116.696%20125.16%20117.165%20124.667%20117.494ZM123.556%20114.169C123.391%20114.059%20123.198%20114%20123%20114C122.735%20114%20122.48%20114.105%20122.293%20114.293C122.105%20114.48%20122%20114.735%20122%20115C122%20115.198%20122.059%20115.391%20122.169%20115.556C122.278%20115.72%20122.435%20115.848%20122.617%20115.924C122.8%20116%20123.001%20116.019%20123.195%20115.981C123.389%20115.942%20123.567%20115.847%20123.707%20115.707C123.847%20115.567%20123.942%20115.389%20123.981%20115.195C124.019%20115.001%20124%20114.8%20123.924%20114.617C123.848%20114.435%20123.72%20114.278%20123.556%20114.169Z'%20fill='%23868C98'/%3e%3c/svg%3e", u = a(({ src: C, ...o }, c) => {
|
|
5
5
|
const r = s();
|
|
6
6
|
return d(() => {
|