@lanaco/lnc-react-ui 4.0.169 → 4.0.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +9 -48
- package/dist/BannerSectionCarousel.js +208 -249
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +67 -68
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +22 -30
- package/dist/BlogExploreSection.js +9 -9
- package/dist/BlogListSection.cjs +11 -5
- package/dist/BlogListSection.js +187 -123
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +28 -37
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +40 -67
- package/dist/BlogSingleSection.cjs +16 -1
- package/dist/BlogSingleSection.js +47 -45
- package/dist/BlogsSectionDetailed.cjs +8 -27
- package/dist/BlogsSectionDetailed.js +111 -159
- package/dist/BlogsSectionLarge.cjs +19 -4
- package/dist/BlogsSectionLarge.js +73 -37
- package/dist/BlogsSectionSimple.cjs +9 -9
- package/dist/BlogsSectionSimple.js +81 -107
- package/dist/BlogsSectionSimpleCentered.cjs +25 -23
- package/dist/BlogsSectionSimpleCentered.js +103 -96
- package/dist/BlogsSectionWithFilters.cjs +31 -29
- package/dist/BlogsSectionWithFilters.js +173 -134
- package/dist/BrandHitsSection.cjs +10 -14
- package/dist/BrandHitsSection.js +93 -45
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
- package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +35 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +62 -63
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
- package/dist/FieldOfInterestsMasonrySection.js +228 -154
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
- package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +11 -27
- package/dist/GeneralWithTagsCardsSection.js +87 -99
- package/dist/GiftCardsSection.cjs +18 -23
- package/dist/GiftCardsSection.js +146 -77
- package/dist/Icon.js +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +33 -19
- package/dist/MasonryGeneralCardsSection.js +114 -68
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +54 -40
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +15 -20
- package/dist/ProductsWithBannerSection.js +176 -104
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +6 -6
- package/dist/QuattroCardsSection.js +42 -34
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -30
- package/dist/ReviewsSection.js +170 -137
- package/dist/SalesCampaignsSection.cjs +46 -130
- package/dist/SalesCampaignsSection.js +354 -433
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +18 -5
- package/dist/ShopCardsSection.js +145 -88
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +10 -4
- package/dist/SimpleCategoriesSection.js +79 -51
- package/dist/SimpleProductsSection.cjs +16 -3
- package/dist/SimpleProductsSection.js +172 -70
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.js +4 -4
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +62 -61
- package/dist/index-BAJkosVg.cjs +11 -0
- package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
- package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
- package/dist/index-BSpdEGFd.js +42 -0
- package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
- package/dist/index-BhBRZf4M.js +742 -0
- package/dist/index-BovNbKxB.js +54 -0
- package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
- package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
- package/dist/index-D-3I_Ppj.cjs +16 -0
- package/dist/index-D0IYt1s3.cjs +20 -0
- package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
- package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
- package/dist/index-DFdPWO4O.js +133 -0
- package/dist/index-DFyV_EK2.cjs +305 -0
- package/dist/index-DxwIu0Wn.js +84 -0
- package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
- package/dist/index.js +1 -1
- package/dist/style-BAcV7F53.cjs +64 -0
- package/dist/style-CXMUA6cI.js +74 -0
- package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
- package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
- package/package.json +1 -1
- package/dist/index-1Dm1i6WK.js +0 -52
- package/dist/index-BGTtoLxz.cjs +0 -1
- package/dist/skeleton-BdbB-LdT.cjs +0 -97
- package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
- package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
- package/dist/suspense-large-BMO7JH52.js +0 -26
- package/dist/suspense-large-CFmcSzX-.cjs +0 -1
- package/dist/suspense-product-card-detailed-CxiFuUOT.js +0 -653
- package/dist/suspense-product-card-detailed-IR4sh-l4.cjs +0 -330
- package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
- package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
package/dist/Separator.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as p } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
3
|
import { P as e } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as i } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { b as n } from "./utils-
|
|
5
|
+
import { b as n } from "./utils-DHfRApMf.js";
|
|
6
6
|
import { u as c } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const f = i.div`
|
|
8
8
|
height: 1px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),h=require("react"),u=require("./Button.cjs"),k=require("./index-C5r__0lD.cjs"),$=require("./utils-Dl9xPH4c.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./consts-goSZX3xP.cjs"),s=require("./style-BAcV7F53.cjs"),R=g.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
|
|
61
61
|
& .wrapper__cards {
|
|
62
62
|
display: grid;
|
|
63
|
-
grid-template-columns: ${
|
|
63
|
+
grid-template-columns: ${r=>`repeat(${r==null?void 0:r.limitCards}, minmax(0, 1fr))`};
|
|
64
64
|
gap: 1.25rem;
|
|
65
65
|
justify-items: center;
|
|
66
66
|
align-items: center;
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
display: none;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
@media (max-width: ${
|
|
86
|
+
@media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
|
|
87
87
|
gap: 1.25rem;
|
|
88
88
|
|
|
89
89
|
& .wrapper__view-all {
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
& .wrapper__cards {
|
|
104
104
|
gap: 1rem;
|
|
105
105
|
|
|
106
|
-
${
|
|
106
|
+
${r=>r!=null&&r.gridView?`
|
|
107
107
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
108
108
|
& > div {
|
|
109
109
|
min-width:100%;
|
|
@@ -128,4 +128,17 @@
|
|
|
128
128
|
}`}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
`,
|
|
131
|
+
`,N=g.styled(s.SkeletonRowWrapper)`
|
|
132
|
+
@media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
|
|
133
|
+
& > div {
|
|
134
|
+
background: linear-gradient(
|
|
135
|
+
to right,
|
|
136
|
+
transparent 0%,
|
|
137
|
+
#f4f6fb 10%,
|
|
138
|
+
#f4f6fb 100%
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
box-shadow: none;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
`,q=({keyPrefix:r})=>t.jsxs(N,{children:[t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-1`),t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-2`),t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-3`),t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-4`)]}),E=({keyPrefix:r,isLoading:l=!1,fallbackComponent:i=t.jsx(t.Fragment,{}),children:n})=>t.jsx(h.Suspense,{fallbackComponent:i,children:l===!0?t.jsx(q,{keyPrefix:r}):n}),I=h.forwardRef(({title:r,subtitle:l,items:i,isLoading:n=!1,limit:_=4,limitForMobile:f=2,buttonText:p="Show More",onSelectCard:w=()=>{},onButtonAction:o=()=>{},icon:m,getImage:c=()=>{},getProductImage:d=()=>{},hideProducts:b=!1,showRating:y=!0,gridView:a=!1,componentName:v},j)=>t.jsxs(R,{ref:j,limitCards:_,limitCardsForMobile:f,gridView:a,children:[t.jsxs("div",{className:"wrapper__heading",children:[t.jsxs("div",{className:"wrapper__title",children:[r&&t.jsxs("div",{className:"title__text",children:[$.isDefinedNotEmptyString(m)&&t.jsx("i",{className:m}),t.jsx("span",{children:r})]}),o&&!n&&t.jsx(u,{text:p,color:"neutral",borderRadius:"curved",btnType:"tinted",className:`title__action ${a?"grid":""}`,onClick:o})]}),l&&t.jsx("div",{className:"wrapper__subtitle",children:l})]}),t.jsx(E,{isLoading:n,keyPrefix:"shop-cards-skeleton",children:t.jsx("div",{className:"wrapper__cards",children:i==null?void 0:i.map((e,S)=>t.jsx(k.ShopCard,{showRating:y,uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.ratingArithmeticMean,reviewCount:e==null?void 0:e.reviewCount,products:e==null?void 0:e.products,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(P,C)=>w(e==null?void 0:e.uuid,C),image:c(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,getProductImage:d,canAcceptPayments:e==null?void 0:e.canAcceptPayments,hideProducts:b,metadata:{name:v,accessor:e==null?void 0:e.accessor}},`shop-card__${S+1}`))})}),a&&o&&!n&&t.jsx(u,{text:p,borderRadius:"curved",btnType:"basic",color:"neutral",className:"wrapper__view-all",onClick:o})]}));module.exports=I;
|
package/dist/ShopCardsSection.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import { S as
|
|
5
|
-
import { k as
|
|
6
|
-
import { s as
|
|
7
|
-
import { M } from "./consts-BuFChS64.js";
|
|
8
|
-
|
|
1
|
+
import { jsxs as l, jsx as r, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as N, forwardRef as R } from "react";
|
|
3
|
+
import h from "./Button.js";
|
|
4
|
+
import { S as M } from "./index-BPntOicE.js";
|
|
5
|
+
import { k as j } from "./utils-DHfRApMf.js";
|
|
6
|
+
import { s as u } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
|
+
import { M as g } from "./consts-BuFChS64.js";
|
|
8
|
+
import { a as z, b as s } from "./style-CXMUA6cI.js";
|
|
9
|
+
const E = u.div`
|
|
9
10
|
display: flex;
|
|
10
11
|
flex-direction: column;
|
|
11
12
|
align-items: flex-start;
|
|
@@ -90,7 +91,7 @@ const j = $.div`
|
|
|
90
91
|
display: none;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
@media (max-width: ${
|
|
94
|
+
@media (max-width: ${g + "px"}) {
|
|
94
95
|
gap: 1.25rem;
|
|
95
96
|
|
|
96
97
|
& .wrapper__view-all {
|
|
@@ -135,93 +136,149 @@ const j = $.div`
|
|
|
135
136
|
}`}
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
|
-
`,
|
|
139
|
+
`, I = u(z)`
|
|
140
|
+
@media (max-width: ${g + "px"}) {
|
|
141
|
+
& > div {
|
|
142
|
+
background: linear-gradient(
|
|
143
|
+
to right,
|
|
144
|
+
transparent 0%,
|
|
145
|
+
#f4f6fb 10%,
|
|
146
|
+
#f4f6fb 100%
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
box-shadow: none;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
`, F = ({ keyPrefix: t }) => /* @__PURE__ */ l(I, { children: [
|
|
153
|
+
/* @__PURE__ */ r(
|
|
154
|
+
s,
|
|
155
|
+
{
|
|
156
|
+
height: "18rem",
|
|
157
|
+
borderRadius: "0.75rem"
|
|
158
|
+
},
|
|
159
|
+
`${t}-1`
|
|
160
|
+
),
|
|
161
|
+
/* @__PURE__ */ r(
|
|
162
|
+
s,
|
|
163
|
+
{
|
|
164
|
+
height: "18rem",
|
|
165
|
+
borderRadius: "0.75rem"
|
|
166
|
+
},
|
|
167
|
+
`${t}-2`
|
|
168
|
+
),
|
|
169
|
+
/* @__PURE__ */ r(
|
|
170
|
+
s,
|
|
171
|
+
{
|
|
172
|
+
height: "18rem",
|
|
173
|
+
borderRadius: "0.75rem"
|
|
174
|
+
},
|
|
175
|
+
`${t}-3`
|
|
176
|
+
),
|
|
177
|
+
/* @__PURE__ */ r(
|
|
178
|
+
s,
|
|
179
|
+
{
|
|
180
|
+
height: "18rem",
|
|
181
|
+
borderRadius: "0.75rem"
|
|
182
|
+
},
|
|
183
|
+
`${t}-4`
|
|
184
|
+
)
|
|
185
|
+
] }), D = ({
|
|
186
|
+
keyPrefix: t,
|
|
187
|
+
isLoading: o = !1,
|
|
188
|
+
fallbackComponent: i = /* @__PURE__ */ r($, {}),
|
|
189
|
+
children: n
|
|
190
|
+
}) => /* @__PURE__ */ r(N, { fallbackComponent: i, children: o === !0 ? /* @__PURE__ */ r(F, { keyPrefix: t }) : n }), H = R(
|
|
139
191
|
({
|
|
140
192
|
title: t,
|
|
141
|
-
subtitle:
|
|
142
|
-
items:
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
193
|
+
subtitle: o,
|
|
194
|
+
items: i,
|
|
195
|
+
isLoading: n = !1,
|
|
196
|
+
limit: w = 4,
|
|
197
|
+
limitForMobile: _ = 2,
|
|
198
|
+
buttonText: m = "Show More",
|
|
199
|
+
onSelectCard: d = () => {
|
|
147
200
|
},
|
|
148
|
-
onButtonAction:
|
|
201
|
+
onButtonAction: a = () => {
|
|
149
202
|
},
|
|
150
|
-
icon:
|
|
151
|
-
getImage:
|
|
203
|
+
icon: f,
|
|
204
|
+
getImage: b = () => {
|
|
152
205
|
},
|
|
153
|
-
getProductImage:
|
|
206
|
+
getProductImage: v = () => {
|
|
154
207
|
},
|
|
155
|
-
hideProducts:
|
|
156
|
-
showRating:
|
|
157
|
-
gridView:
|
|
158
|
-
componentName:
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
N(m) && /* @__PURE__ */ i("i", { className: m }),
|
|
173
|
-
/* @__PURE__ */ i("span", { children: t })
|
|
174
|
-
] }),
|
|
175
|
-
r && /* @__PURE__ */ i(
|
|
176
|
-
_,
|
|
177
|
-
{
|
|
178
|
-
text: p,
|
|
179
|
-
color: "neutral",
|
|
180
|
-
borderRadius: "curved",
|
|
181
|
-
btnType: "tinted",
|
|
182
|
-
className: `title__action ${o ? "grid" : ""}`,
|
|
183
|
-
onClick: r
|
|
184
|
-
}
|
|
185
|
-
)
|
|
208
|
+
hideProducts: x = !1,
|
|
209
|
+
showRating: c = !0,
|
|
210
|
+
gridView: p = !1,
|
|
211
|
+
componentName: y
|
|
212
|
+
}, S) => /* @__PURE__ */ l(
|
|
213
|
+
E,
|
|
214
|
+
{
|
|
215
|
+
ref: S,
|
|
216
|
+
limitCards: w,
|
|
217
|
+
limitCardsForMobile: _,
|
|
218
|
+
gridView: p,
|
|
219
|
+
children: [
|
|
220
|
+
/* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
|
|
221
|
+
/* @__PURE__ */ l("div", { className: "wrapper__title", children: [
|
|
222
|
+
t && /* @__PURE__ */ l("div", { className: "title__text", children: [
|
|
223
|
+
j(f) && /* @__PURE__ */ r("i", { className: f }),
|
|
224
|
+
/* @__PURE__ */ r("span", { children: t })
|
|
186
225
|
] }),
|
|
187
|
-
|
|
226
|
+
a && !n && /* @__PURE__ */ r(
|
|
227
|
+
h,
|
|
228
|
+
{
|
|
229
|
+
text: m,
|
|
230
|
+
color: "neutral",
|
|
231
|
+
borderRadius: "curved",
|
|
232
|
+
btnType: "tinted",
|
|
233
|
+
className: `title__action ${p ? "grid" : ""}`,
|
|
234
|
+
onClick: a
|
|
235
|
+
}
|
|
236
|
+
)
|
|
188
237
|
] }),
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
238
|
+
o && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: o })
|
|
239
|
+
] }),
|
|
240
|
+
/* @__PURE__ */ r(
|
|
241
|
+
D,
|
|
242
|
+
{
|
|
243
|
+
isLoading: n,
|
|
244
|
+
keyPrefix: "shop-cards-skeleton",
|
|
245
|
+
children: /* @__PURE__ */ r("div", { className: "wrapper__cards", children: i == null ? void 0 : i.map((e, C) => /* @__PURE__ */ r(
|
|
246
|
+
M,
|
|
247
|
+
{
|
|
248
|
+
showRating: c,
|
|
249
|
+
uuid: e == null ? void 0 : e.uuid,
|
|
250
|
+
title: e == null ? void 0 : e.name,
|
|
251
|
+
subtitle: e == null ? void 0 : e.shortDescription,
|
|
252
|
+
rating: e == null ? void 0 : e.ratingArithmeticMean,
|
|
253
|
+
reviewCount: e == null ? void 0 : e.reviewCount,
|
|
254
|
+
products: e == null ? void 0 : e.products,
|
|
255
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
256
|
+
onSelectCard: (P, k) => d(e == null ? void 0 : e.uuid, k),
|
|
257
|
+
image: b(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
|
|
258
|
+
getProductImage: v,
|
|
259
|
+
canAcceptPayments: e == null ? void 0 : e.canAcceptPayments,
|
|
260
|
+
hideProducts: x,
|
|
261
|
+
metadata: { name: y, accessor: e == null ? void 0 : e.accessor }
|
|
262
|
+
},
|
|
263
|
+
`shop-card__${C + 1}`
|
|
264
|
+
)) })
|
|
265
|
+
}
|
|
266
|
+
),
|
|
267
|
+
p && a && !n && /* @__PURE__ */ r(
|
|
268
|
+
h,
|
|
269
|
+
{
|
|
270
|
+
text: m,
|
|
271
|
+
borderRadius: "curved",
|
|
272
|
+
btnType: "basic",
|
|
273
|
+
color: "neutral",
|
|
274
|
+
className: "wrapper__view-all",
|
|
275
|
+
onClick: a
|
|
276
|
+
}
|
|
277
|
+
)
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
)
|
|
224
281
|
);
|
|
225
282
|
export {
|
|
226
|
-
|
|
283
|
+
H as default
|
|
227
284
|
};
|
package/dist/Sidebar.js
CHANGED
|
@@ -3,7 +3,7 @@ import { forwardRef as S, useState as x, useEffect as C } from "react";
|
|
|
3
3
|
import { P as o } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as l } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import y from "./Icon.js";
|
|
6
|
-
import { u as $ } from "./utils-
|
|
6
|
+
import { u as $ } from "./utils-DHfRApMf.js";
|
|
7
7
|
import { u as _ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
const v = l.aside`
|
|
9
9
|
direction: ${(e) => e.placement == "right" ? "rtl" : "ltr"};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),i=require("react"),q=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),C=require("./useDetectMobile-zkbzoOGV.cjs"),u=require("./utils-Dl9xPH4c.cjs"),_=require("./style-Db3VFbfP.cjs"),y=require("./Button.cjs"),N=require("./CategorySimpleCard-Qe5QStrs.cjs"),o=require("./style-BAcV7F53.cjs"),v=q.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${t=>"repeat(6, minmax(0, 1fr))"};
|
|
4
4
|
gap: 2rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
display: flex;
|
|
8
8
|
gap: 1rem;
|
|
9
9
|
overflow-x: auto;
|
|
@@ -22,4 +22,10 @@
|
|
|
22
22
|
/* Safari and Chrome */
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,E=q.styled(o.SkeletonColumnWrapper)`
|
|
26
|
+
@media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
|
|
27
|
+
& .skeleton__cards {
|
|
28
|
+
overflow-x: hidden;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
`,R=({keyPrefix:t})=>e.jsxs(E,{children:[e.jsxs(o.SkeletonRowWrapper,{className:"skeleton__cards",children:[e.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-1`),e.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-2`),e.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-3`),e.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-4`),e.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-5`),e.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-6`)]}),e.jsx(o.SkeletonRowWrapper,{children:e.jsxs(o.SkeletonRowWrapper,{className:"skeleton__cards",children:[e.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-7`),e.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-8`),e.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-9`),e.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-10`),e.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-11`),e.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-12`)]})})]}),M=({keyPrefix:t,isLoading:c=!1,fallbackComponent:a=e.jsx(e.Fragment,{}),children:d})=>e.jsx(i.Suspense,{fallbackComponent:a,children:c===!0?e.jsx(R,{keyPrefix:t}):d}),j=i.memo(N.CategorySimpleCard),I=i.forwardRef((t,c)=>{const{icon:a,title:d="Shop by category",items:l,buttonText:m="Shop now",buttonLink:h,limit:S=12,onButtonAction:k=()=>{},onSelectCard:s=()=>{},isLoading:p=!1,getImage:g=()=>{}}=t,w=C.useDetectMobile(),$=i.useMemo(()=>e.jsx(e.Fragment,{children:w===!0?l==null?void 0:l.map((r,n)=>e.jsx(j,{uuid:r==null?void 0:r.uuid,image:g(r==null?void 0:r.image)||null,name:r==null?void 0:r.name,onSelectCard:()=>s==null?void 0:s(r==null?void 0:r.uuid)},n)):l==null?void 0:l.slice(0,S).map((r,n)=>e.jsx(j,{uuid:r==null?void 0:r.uuid,image:g(r==null?void 0:r.image)||null,name:r==null?void 0:r.name,onSelectCard:()=>s==null?void 0:s(r)},n))}),[l]);return e.jsxs(_.RegulatTitleSectionWrapper,{ref:c,children:[e.jsxs("div",{className:"regular-title",children:[e.jsxs("div",{className:"regular-title-text",children:[u.isDefinedNotEmptyString(a)&&e.jsx("i",{className:a}),e.jsx("span",{children:d})]}),u.isDefinedNotEmptyString(m)&&u.isDefinedNotEmptyString(h)&&!p&&e.jsx(y,{type:"button",btnType:"tinted",color:"neutral",onClick:r=>{var n;(n=r==null?void 0:r.target)==null||n.blur(),k(h)},borderRadius:"curved",className:"button-link",children:m})]}),e.jsx(M,{isLoading:p,keyPrefix:"simple-categories-skeleton",children:e.jsx(v,{limit:S,children:$})})]})});module.exports=I;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { memo as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { k as
|
|
7
|
-
import { R as
|
|
8
|
-
import
|
|
9
|
-
import { C as
|
|
10
|
-
|
|
1
|
+
import { jsxs as l, jsx as t, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as N, memo as M, forwardRef as R, useMemo as E } from "react";
|
|
3
|
+
import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as C } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { k as c } from "./utils-DHfRApMf.js";
|
|
7
|
+
import { R as W } from "./style-D3pIrH3v.js";
|
|
8
|
+
import B from "./Button.js";
|
|
9
|
+
import { C as L } from "./CategorySimpleCard-laAY-RUT.js";
|
|
10
|
+
import { S as T, a as p, c as o } from "./style-CXMUA6cI.js";
|
|
11
|
+
const j = w.div`
|
|
11
12
|
display: grid;
|
|
12
|
-
grid-template-columns: ${(
|
|
13
|
+
grid-template-columns: ${(r) => "repeat(6, minmax(0, 1fr))"};
|
|
13
14
|
gap: 2rem;
|
|
14
15
|
|
|
15
|
-
@media (max-width: ${
|
|
16
|
+
@media (max-width: ${C + "px"}) {
|
|
16
17
|
display: flex;
|
|
17
18
|
gap: 1rem;
|
|
18
19
|
overflow-x: auto;
|
|
@@ -31,73 +32,100 @@ const P = M.div`
|
|
|
31
32
|
/* Safari and Chrome */
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
|
-
`,
|
|
35
|
+
`, y = w(T)`
|
|
36
|
+
@media (max-width: ${C + "px"}) {
|
|
37
|
+
& .skeleton__cards {
|
|
38
|
+
overflow-x: hidden;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`, z = ({ keyPrefix: r }) => /* @__PURE__ */ l(y, { children: [
|
|
42
|
+
/* @__PURE__ */ l(p, { className: "skeleton__cards", children: [
|
|
43
|
+
/* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-1`),
|
|
44
|
+
/* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-2`),
|
|
45
|
+
/* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-3`),
|
|
46
|
+
/* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-4`),
|
|
47
|
+
/* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-5`),
|
|
48
|
+
/* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-6`)
|
|
49
|
+
] }),
|
|
50
|
+
/* @__PURE__ */ t(p, { children: /* @__PURE__ */ l(p, { className: "skeleton__cards", children: [
|
|
51
|
+
/* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-7`),
|
|
52
|
+
/* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-8`),
|
|
53
|
+
/* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-9`),
|
|
54
|
+
/* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-10`),
|
|
55
|
+
/* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-11`),
|
|
56
|
+
/* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-12`)
|
|
57
|
+
] }) })
|
|
58
|
+
] }), D = ({
|
|
59
|
+
keyPrefix: r,
|
|
60
|
+
isLoading: s = !1,
|
|
61
|
+
fallbackComponent: m = /* @__PURE__ */ t(f, {}),
|
|
62
|
+
children: d
|
|
63
|
+
}) => /* @__PURE__ */ t(N, { fallbackComponent: m, children: s === !0 ? /* @__PURE__ */ t(z, { keyPrefix: r }) : d }), $ = M(L), Q = R((r, s) => {
|
|
35
64
|
const {
|
|
36
65
|
icon: m,
|
|
37
|
-
title:
|
|
38
|
-
items:
|
|
39
|
-
buttonText:
|
|
40
|
-
buttonLink:
|
|
41
|
-
limit:
|
|
42
|
-
onButtonAction:
|
|
66
|
+
title: d = "Shop by category",
|
|
67
|
+
items: i,
|
|
68
|
+
buttonText: h = "Shop now",
|
|
69
|
+
buttonLink: u,
|
|
70
|
+
limit: g = 12,
|
|
71
|
+
onButtonAction: v = () => {
|
|
43
72
|
},
|
|
44
|
-
onSelectCard:
|
|
73
|
+
onSelectCard: a = () => {
|
|
45
74
|
},
|
|
46
|
-
isLoading:
|
|
47
|
-
getImage:
|
|
75
|
+
isLoading: S = !1,
|
|
76
|
+
getImage: b = () => {
|
|
48
77
|
}
|
|
49
|
-
} =
|
|
50
|
-
|
|
78
|
+
} = r, _ = I(), k = E(() => /* @__PURE__ */ t(f, { children: _ === !0 ? i == null ? void 0 : i.map((e, n) => /* @__PURE__ */ t(
|
|
79
|
+
$,
|
|
51
80
|
{
|
|
52
81
|
uuid: e == null ? void 0 : e.uuid,
|
|
53
|
-
image:
|
|
82
|
+
image: b(e == null ? void 0 : e.image) || null,
|
|
54
83
|
name: e == null ? void 0 : e.name,
|
|
55
|
-
onSelectCard: () =>
|
|
84
|
+
onSelectCard: () => a == null ? void 0 : a(e == null ? void 0 : e.uuid)
|
|
56
85
|
},
|
|
57
|
-
|
|
58
|
-
)) :
|
|
59
|
-
|
|
86
|
+
n
|
|
87
|
+
)) : i == null ? void 0 : i.slice(0, g).map((e, n) => /* @__PURE__ */ t(
|
|
88
|
+
$,
|
|
60
89
|
{
|
|
61
90
|
uuid: e == null ? void 0 : e.uuid,
|
|
62
|
-
image:
|
|
91
|
+
image: b(e == null ? void 0 : e.image) || null,
|
|
63
92
|
name: e == null ? void 0 : e.name,
|
|
64
|
-
onSelectCard: () =>
|
|
93
|
+
onSelectCard: () => a == null ? void 0 : a(e)
|
|
65
94
|
},
|
|
66
|
-
|
|
67
|
-
)) }), [
|
|
68
|
-
return /* @__PURE__ */
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
|
|
72
|
-
/* @__PURE__ */
|
|
95
|
+
n
|
|
96
|
+
)) }), [i]);
|
|
97
|
+
return /* @__PURE__ */ l(W, { ref: s, children: [
|
|
98
|
+
/* @__PURE__ */ l("div", { className: "regular-title", children: [
|
|
99
|
+
/* @__PURE__ */ l("div", { className: "regular-title-text", children: [
|
|
100
|
+
c(m) && /* @__PURE__ */ t("i", { className: m }),
|
|
101
|
+
/* @__PURE__ */ t("span", { children: d })
|
|
73
102
|
] }),
|
|
74
|
-
|
|
75
|
-
|
|
103
|
+
c(h) && c(u) && !S && /* @__PURE__ */ t(
|
|
104
|
+
B,
|
|
76
105
|
{
|
|
77
106
|
type: "button",
|
|
78
107
|
btnType: "tinted",
|
|
79
108
|
color: "neutral",
|
|
80
109
|
onClick: (e) => {
|
|
81
|
-
var
|
|
82
|
-
(
|
|
110
|
+
var n;
|
|
111
|
+
(n = e == null ? void 0 : e.target) == null || n.blur(), v(u);
|
|
83
112
|
},
|
|
84
113
|
borderRadius: "curved",
|
|
85
114
|
className: "button-link",
|
|
86
|
-
children:
|
|
115
|
+
children: h
|
|
87
116
|
}
|
|
88
117
|
)
|
|
89
118
|
] }),
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
|
|
119
|
+
/* @__PURE__ */ t(
|
|
120
|
+
D,
|
|
92
121
|
{
|
|
93
|
-
isLoading:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
children: w
|
|
122
|
+
isLoading: S,
|
|
123
|
+
keyPrefix: "simple-categories-skeleton",
|
|
124
|
+
children: /* @__PURE__ */ t(j, { limit: g, children: k })
|
|
97
125
|
}
|
|
98
|
-
)
|
|
126
|
+
)
|
|
99
127
|
] });
|
|
100
128
|
});
|
|
101
129
|
export {
|
|
102
|
-
|
|
130
|
+
Q as default
|
|
103
131
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),l=require("react"),k=require("./emotion-styled.browser.esm-BtEseadx.cjs"),$=require("./consts-goSZX3xP.cjs"),U=require("./useDetectMobile-zkbzoOGV.cjs"),I=require("./index-CfT9e5O9.cjs"),L=require("./index-CSgGox95.cjs"),i=require("./style-BAcV7F53.cjs"),R=k.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: repeat(6, 1fr);
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
margin: auto;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
@media (max-width: ${
|
|
12
|
+
@media (max-width: ${$.MOBILE_SIZE_PX+"px"}) {
|
|
13
13
|
grid-template-columns: repeat(2, 1fr);
|
|
14
14
|
|
|
15
15
|
& .text-block-v1 {
|
|
@@ -28,4 +28,17 @@
|
|
|
28
28
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`,B=k.styled(i.SkeletonColumnWrapper)`
|
|
32
|
+
@media (max-width: ${$.MOBILE_SIZE_PX+"px"}) {
|
|
33
|
+
& .skeleton__cards {
|
|
34
|
+
& > div {
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
|
|
38
|
+
&:nth-of-type(even) {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`,E=({keyPrefix:r})=>t.jsxs(B,{children:[t.jsxs(i.SkeletonRowWrapper,{className:"skeleton__cards",children:[t.jsx(i.SkeletonLinePlaceholder,{width:"100%",height:"11.125rem"},`${r}-1`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-2`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-3`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-4`)]}),t.jsxs(i.SkeletonRowWrapper,{className:"skeleton__cards",children:[t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-5`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-6`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-7`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-8`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-9`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-10`)]})]}),T=({keyPrefix:r,isLoading:n=!1,fallbackComponent:o=t.jsx(t.Fragment,{}),children:a})=>t.jsx(l.Suspense,{fallbackComponent:o,children:n===!0?t.jsx(E,{keyPrefix:r}):a}),b=l.memo(I.SimpleProductCard),W=l.forwardRef((r,n)=>{const{title:o,subtitle:a,description:_,buttonText:P,buttonLink:N,items:s,onButtonAction:C=()=>{},onSelectCard:u=()=>{},isLoading:M=!1,limit:m=6,getImage:h=()=>{},negotiableText:S,freeText:p,componentName:g}=r,j=U.useDetectMobile(),v=l.useMemo(()=>{var w,q;return t.jsx(t.Fragment,{children:j===!0?(w=s==null?void 0:s.slice(0,4))==null?void 0:w.map((e,d)=>t.jsx(b,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(F,c)=>u({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:c}),image:h(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:S,freeText:p,metadata:{name:g,accessor:e==null?void 0:e.accessor}},d)):(q=s==null?void 0:s.slice(0,9))==null?void 0:q.map((e,d)=>t.jsx(b,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(F,c)=>u({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:c}),image:h(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:S,freeText:p,metadata:{name:g,accessor:e==null?void 0:e.accessor}},d))})},[s,j,m]);return t.jsx(T,{isLoading:M,keyPrefix:"simple-products-skeleton",children:t.jsxs(R,{ref:n,limit:m,children:[t.jsx(L.TextBlockV1,{subtitle:a,title:o,description:_,buttonText:P,buttonLink:N,onButtonAction:C,className:"text-block-v1"}),v]})})});module.exports=W;
|