@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.
Files changed (173) hide show
  1. package/dist/Accordion.js +1 -1
  2. package/dist/AccordionSummary.js +1 -1
  3. package/dist/ActionsToolbar.js +1 -1
  4. package/dist/Alert.js +1 -1
  5. package/dist/Avatar.js +1 -1
  6. package/dist/Badge.js +1 -1
  7. package/dist/BannerSectionCarousel.cjs +9 -48
  8. package/dist/BannerSectionCarousel.js +208 -249
  9. package/dist/BannerSectionSimple.js +1 -1
  10. package/dist/BannerSectionWithList.js +1 -1
  11. package/dist/BlogCardsSponsoredSection.cjs +8 -8
  12. package/dist/BlogCardsSponsoredSection.js +67 -68
  13. package/dist/BlogCategoryCardsSection.cjs +1 -1
  14. package/dist/BlogCategoryCardsSection.js +22 -30
  15. package/dist/BlogExploreSection.js +9 -9
  16. package/dist/BlogListSection.cjs +11 -5
  17. package/dist/BlogListSection.js +187 -123
  18. package/dist/BlogProductCardsSection.cjs +1 -1
  19. package/dist/BlogProductCardsSection.js +28 -37
  20. package/dist/BlogShopCardsSection.cjs +1 -1
  21. package/dist/BlogShopCardsSection.js +40 -67
  22. package/dist/BlogSingleSection.cjs +16 -1
  23. package/dist/BlogSingleSection.js +47 -45
  24. package/dist/BlogsSectionDetailed.cjs +8 -27
  25. package/dist/BlogsSectionDetailed.js +111 -159
  26. package/dist/BlogsSectionLarge.cjs +19 -4
  27. package/dist/BlogsSectionLarge.js +73 -37
  28. package/dist/BlogsSectionSimple.cjs +9 -9
  29. package/dist/BlogsSectionSimple.js +81 -107
  30. package/dist/BlogsSectionSimpleCentered.cjs +25 -23
  31. package/dist/BlogsSectionSimpleCentered.js +103 -96
  32. package/dist/BlogsSectionWithFilters.cjs +31 -29
  33. package/dist/BlogsSectionWithFilters.js +173 -134
  34. package/dist/BrandHitsSection.cjs +10 -14
  35. package/dist/BrandHitsSection.js +93 -45
  36. package/dist/Breadcrumbs.js +1 -1
  37. package/dist/Button.js +1 -1
  38. package/dist/ButtonGroup.js +1 -1
  39. package/dist/CalorieCalculatorSection.js +1 -1
  40. package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
  41. package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
  42. package/dist/CheckBoxInput.js +1 -1
  43. package/dist/Chip.js +1 -1
  44. package/dist/ColorInput.js +1 -1
  45. package/dist/ConfirmationForm.js +1 -1
  46. package/dist/CustomLoanMapSection.js +1 -1
  47. package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
  48. package/dist/DateInput.js +1 -1
  49. package/dist/DecimalInput.js +1 -1
  50. package/dist/DecimalInputV2.js +1 -1
  51. package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
  52. package/dist/DetailedProductsInfinitiveSection.js +35 -36
  53. package/dist/DetailedProductsSection.cjs +4 -4
  54. package/dist/DetailedProductsSection.js +62 -63
  55. package/dist/DetailsView.js +1 -1
  56. package/dist/DoubleRangeSlider.js +1 -1
  57. package/dist/DragAndDropFile.js +1 -1
  58. package/dist/DragDropFiles.js +1 -1
  59. package/dist/Drawer.js +1 -1
  60. package/dist/Dropdown.js +2 -2
  61. package/dist/DropdownItem.js +1 -1
  62. package/dist/DropdownLookup.js +1 -1
  63. package/dist/DropdownMenu.js +1 -1
  64. package/dist/EditableTable.js +1 -1
  65. package/dist/FeedbackSection.js +1 -1
  66. package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
  67. package/dist/FieldOfInterestsMasonrySection.js +228 -154
  68. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
  69. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
  70. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
  71. package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
  72. package/dist/FileInput.js +1 -1
  73. package/dist/FlexGridItem.js +1 -1
  74. package/dist/FormField.js +1 -1
  75. package/dist/FormView.js +1 -1
  76. package/dist/GeneralWithTagsCardsSection.cjs +11 -27
  77. package/dist/GeneralWithTagsCardsSection.js +87 -99
  78. package/dist/GiftCardsSection.cjs +18 -23
  79. package/dist/GiftCardsSection.js +146 -77
  80. package/dist/Icon.js +1 -1
  81. package/dist/IconButton.js +1 -1
  82. package/dist/Kanban.js +1 -1
  83. package/dist/KanbanActionsToolbar.js +1 -1
  84. package/dist/KanbanView.js +1 -1
  85. package/dist/Link.js +1 -1
  86. package/dist/LoanCalculatorSection.js +1 -1
  87. package/dist/LocationFinderSection.js +1 -1
  88. package/dist/LocationSearchSection.js +1 -1
  89. package/dist/MasonryGeneralCardsSection.cjs +33 -19
  90. package/dist/MasonryGeneralCardsSection.js +114 -68
  91. package/dist/MenuItem.js +1 -1
  92. package/dist/Modal.js +1 -1
  93. package/dist/MultiSelectDropdown.js +1 -1
  94. package/dist/MultiSelectDropdownLookup.js +1 -1
  95. package/dist/NestedDropdownItem.js +1 -1
  96. package/dist/NestedMenuItem.js +1 -1
  97. package/dist/NotificationContainer.js +1 -1
  98. package/dist/NotificationMessage.js +1 -1
  99. package/dist/NumberInput.js +1 -1
  100. package/dist/OverlayGeneralCardsSection.cjs +5 -5
  101. package/dist/OverlayGeneralCardsSection.js +54 -40
  102. package/dist/PasswordInput.js +1 -1
  103. package/dist/PopoverContent.js +1 -1
  104. package/dist/ProductsWithBannerSection.cjs +15 -20
  105. package/dist/ProductsWithBannerSection.js +176 -104
  106. package/dist/ProgressBar.js +1 -1
  107. package/dist/QuattroCardsSection.cjs +6 -6
  108. package/dist/QuattroCardsSection.js +42 -34
  109. package/dist/QuizSection.js +1 -1
  110. package/dist/RadioInput.js +1 -1
  111. package/dist/RangeSlider.js +1 -1
  112. package/dist/ReviewsSection.cjs +24 -30
  113. package/dist/ReviewsSection.js +170 -137
  114. package/dist/SalesCampaignsSection.cjs +46 -130
  115. package/dist/SalesCampaignsSection.js +354 -433
  116. package/dist/Separator.js +1 -1
  117. package/dist/ShopCardsSection.cjs +18 -5
  118. package/dist/ShopCardsSection.js +145 -88
  119. package/dist/Sidebar.js +1 -1
  120. package/dist/SimpleCategoriesSection.cjs +10 -4
  121. package/dist/SimpleCategoriesSection.js +79 -51
  122. package/dist/SimpleProductsSection.cjs +16 -3
  123. package/dist/SimpleProductsSection.js +172 -70
  124. package/dist/Spinner.js +1 -1
  125. package/dist/StatsSection.js +4 -4
  126. package/dist/Surface.js +1 -1
  127. package/dist/SwipeableDrawer.js +1 -1
  128. package/dist/TabItem.js +1 -1
  129. package/dist/Table.js +1 -1
  130. package/dist/TableView.js +1 -1
  131. package/dist/TextAreaInput.js +1 -1
  132. package/dist/TextInput.js +1 -1
  133. package/dist/ThemeProvider.js +1 -1
  134. package/dist/TimeInput.js +1 -1
  135. package/dist/Toggle.js +1 -1
  136. package/dist/TreeMenuSeparator.js +1 -1
  137. package/dist/UploadedFile.js +1 -1
  138. package/dist/UrgentSaleProductsSection.cjs +2 -2
  139. package/dist/UrgentSaleProductsSection.js +62 -61
  140. package/dist/index-BAJkosVg.cjs +11 -0
  141. package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
  142. package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
  143. package/dist/index-BSpdEGFd.js +42 -0
  144. package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
  145. package/dist/index-BhBRZf4M.js +742 -0
  146. package/dist/index-BovNbKxB.js +54 -0
  147. package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
  148. package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
  149. package/dist/index-D-3I_Ppj.cjs +16 -0
  150. package/dist/index-D0IYt1s3.cjs +20 -0
  151. package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
  152. package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
  153. package/dist/index-DFdPWO4O.js +133 -0
  154. package/dist/index-DFyV_EK2.cjs +305 -0
  155. package/dist/index-DxwIu0Wn.js +84 -0
  156. package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
  157. package/dist/index.js +1 -1
  158. package/dist/style-BAcV7F53.cjs +64 -0
  159. package/dist/style-CXMUA6cI.js +74 -0
  160. package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
  161. package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
  162. package/package.json +1 -1
  163. package/dist/index-1Dm1i6WK.js +0 -52
  164. package/dist/index-BGTtoLxz.cjs +0 -1
  165. package/dist/skeleton-BdbB-LdT.cjs +0 -97
  166. package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
  167. package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
  168. package/dist/suspense-large-BMO7JH52.js +0 -26
  169. package/dist/suspense-large-CFmcSzX-.cjs +0 -1
  170. package/dist/suspense-product-card-detailed-CxiFuUOT.js +0 -653
  171. package/dist/suspense-product-card-detailed-IR4sh-l4.cjs +0 -330
  172. package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
  173. 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-BdsZgOUE.js";
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"),d=require("react"),u=require("./Button.cjs"),_=require("./skeleton-Ccd6EDeB.cjs"),C=require("./utils-Dl9xPH4c.cjs"),k=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),N=k.styled.div`
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: ${i=>`repeat(${i==null?void 0:i.limitCards}, minmax(0, 1fr))`};
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: ${S.MOBILE_SIZE_PX+"px"}) {
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
- ${i=>i!=null&&i.gridView?`
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
- `,q=d.forwardRef(({title:i,subtitle:o,items:n,limit:g=4,limitForMobile:w=2,buttonText:a="Show More",onSelectCard:f=()=>{},onButtonAction:r=()=>{},icon:p,getImage:h=()=>{},getProductImage:x=()=>{},hideProducts:y=!1,showRating:c=!0,gridView:l=!1,componentName:v},b)=>{var m;return t.jsxs(N,{ref:b,limitCards:g,limitCardsForMobile:w,gridView:l,children:[t.jsxs("div",{className:"wrapper__heading",children:[t.jsxs("div",{className:"wrapper__title",children:[i&&t.jsxs("div",{className:"title__text",children:[C.isDefinedNotEmptyString(p)&&t.jsx("i",{className:p}),t.jsx("span",{children:i})]}),r&&t.jsx(u,{text:a,color:"neutral",borderRadius:"curved",btnType:"tinted",className:`title__action ${l?"grid":""}`,onClick:r})]}),o&&t.jsx("div",{className:"wrapper__subtitle",children:o})]}),t.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,s)=>t.jsx(_.ShopCard,{showRating:c,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:($,j)=>f(e==null?void 0:e.uuid,j),image:h(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,getProductImage:x,canAcceptPayments:e==null?void 0:e.canAcceptPayments,hideProducts:y,metadata:{name:v,accessor:e==null?void 0:e.accessor}},`shop-card__${s+1}`)):(m=Array.from("1234"))==null?void 0:m.map((e,s)=>t.jsx(_.ShopCardSkeleton,{},`shop-card-skeleton__${s+1}`))}),l&&r&&t.jsx(u,{text:a,borderRadius:"curved",btnType:"basic",color:"neutral",className:"wrapper__view-all",onClick:r})]})});module.exports=q;
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;
@@ -1,11 +1,12 @@
1
- import { jsxs as n, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as C } from "react";
3
- import _ from "./Button.js";
4
- import { S as k, a as S } from "./skeleton-5mO22c5S.js";
5
- import { k as N } from "./utils-BdsZgOUE.js";
6
- import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
- import { M } from "./consts-BuFChS64.js";
8
- const j = $.div`
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: ${M + "px"}) {
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
- `, L = C(
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: s,
142
- items: l,
143
- limit: g = 4,
144
- limitForMobile: u = 2,
145
- buttonText: p = "Show More",
146
- onSelectCard: w = () => {
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: r = () => {
201
+ onButtonAction: a = () => {
149
202
  },
150
- icon: m,
151
- getImage: h = () => {
203
+ icon: f,
204
+ getImage: b = () => {
152
205
  },
153
- getProductImage: y = () => {
206
+ getProductImage: v = () => {
154
207
  },
155
- hideProducts: v = !1,
156
- showRating: x = !0,
157
- gridView: o = !1,
158
- componentName: b
159
- }, c) => {
160
- var f;
161
- return /* @__PURE__ */ n(
162
- j,
163
- {
164
- ref: c,
165
- limitCards: g,
166
- limitCardsForMobile: u,
167
- gridView: o,
168
- children: [
169
- /* @__PURE__ */ n("div", { className: "wrapper__heading", children: [
170
- /* @__PURE__ */ n("div", { className: "wrapper__title", children: [
171
- t && /* @__PURE__ */ n("div", { className: "title__text", children: [
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
- s && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: s })
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__ */ i("div", { className: "wrapper__cards", children: l && (l == null ? void 0 : l.length) > 0 ? l == null ? void 0 : l.map((e, a) => /* @__PURE__ */ i(
190
- k,
191
- {
192
- showRating: x,
193
- uuid: e == null ? void 0 : e.uuid,
194
- title: e == null ? void 0 : e.name,
195
- subtitle: e == null ? void 0 : e.shortDescription,
196
- rating: e == null ? void 0 : e.ratingArithmeticMean,
197
- reviewCount: e == null ? void 0 : e.reviewCount,
198
- products: e == null ? void 0 : e.products,
199
- imageComponent: e == null ? void 0 : e.imageComponent,
200
- onSelectCard: (z, d) => w(e == null ? void 0 : e.uuid, d),
201
- image: h(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
202
- getProductImage: y,
203
- canAcceptPayments: e == null ? void 0 : e.canAcceptPayments,
204
- hideProducts: v,
205
- metadata: { name: b, accessor: e == null ? void 0 : e.accessor }
206
- },
207
- `shop-card__${a + 1}`
208
- )) : (f = Array.from("1234")) == null ? void 0 : f.map((e, a) => /* @__PURE__ */ i(S, {}, `shop-card-skeleton__${a + 1}`)) }),
209
- o && r && /* @__PURE__ */ i(
210
- _,
211
- {
212
- text: p,
213
- borderRadius: "curved",
214
- btnType: "basic",
215
- color: "neutral",
216
- className: "wrapper__view-all",
217
- onClick: r
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
- L as default
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-BdsZgOUE.js";
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 t=require("react/jsx-runtime"),s=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),q=require("./useDetectMobile-zkbzoOGV.cjs"),d=require("./utils-Dl9xPH4c.cjs"),k=require("./style-Db3VFbfP.cjs"),v=require("./Button.cjs"),p=require("./suspense-categories-card-simple-CjGtzfzp.cjs"),M=w.styled.div`
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: ${a=>"repeat(6, minmax(0, 1fr))"};
3
+ grid-template-columns: ${t=>"repeat(6, minmax(0, 1fr))"};
4
4
  gap: 2rem;
5
5
 
6
- @media (max-width: ${C.MOBILE_SIZE_PX+"px"}) {
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
- `,m=s.memo(p.CategorySimpleCard),N=s.forwardRef((a,g)=>{const{icon:l,title:b="Shop by category",items:r,buttonText:y="Shop now",buttonLink:u,limit:o=12,onButtonAction:h=()=>{},onSelectCard:i=()=>{},isLoading:f=!1,getImage:c=()=>{}}=a,S=q.useDetectMobile(),j=s.useMemo(()=>t.jsx(t.Fragment,{children:S===!0?r==null?void 0:r.map((e,n)=>t.jsx(m,{uuid:e==null?void 0:e.uuid,image:c(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},n)):r==null?void 0:r.slice(0,o).map((e,n)=>t.jsx(m,{uuid:e==null?void 0:e.uuid,image:c(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e)},n))}),[r]);return t.jsxs(k.RegulatTitleSectionWrapper,{ref:g,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[d.isDefinedNotEmptyString(l)&&t.jsx("i",{className:l}),t.jsx("span",{children:b})]}),d.isDefinedNotEmptyString(u)&&t.jsx(v,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),h(u)},borderRadius:"curved",className:"button-link",children:y})]}),t.jsx(M,{limit:o,children:t.jsx(p.SuspenseSimpleCategoryCard,{isLoading:f,limit:o,keyPrefix:"explore-landing",children:j})})]})});module.exports=N;
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 { jsx as r, Fragment as S, jsxs as n } from "react/jsx-runtime";
2
- import { memo as k, forwardRef as C, useMemo as v } from "react";
3
- import { s as M } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as N } from "./consts-BuFChS64.js";
5
- import { u as E } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { k as p } from "./utils-BdsZgOUE.js";
7
- import { R as I } from "./style-DKAOBWn3.js";
8
- import R from "./Button.js";
9
- import { C as B, S as L } from "./suspense-categories-card-simple-BGj475Ca.js";
10
- const P = M.div`
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: ${(l) => "repeat(6, minmax(0, 1fr))"};
13
+ grid-template-columns: ${(r) => "repeat(6, minmax(0, 1fr))"};
13
14
  gap: 2rem;
14
15
 
15
- @media (max-width: ${N + "px"}) {
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
- `, u = k(B), G = C((l, c) => {
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: g = "Shop by category",
38
- items: o,
39
- buttonText: f = "Shop now",
40
- buttonLink: s,
41
- limit: a = 12,
42
- onButtonAction: b = () => {
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: t = () => {
73
+ onSelectCard: a = () => {
45
74
  },
46
- isLoading: h = !1,
47
- getImage: d = () => {
75
+ isLoading: S = !1,
76
+ getImage: b = () => {
48
77
  }
49
- } = l, y = E(), w = v(() => /* @__PURE__ */ r(S, { children: y === !0 ? o == null ? void 0 : o.map((e, i) => /* @__PURE__ */ r(
50
- u,
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: d(e == null ? void 0 : e.image) || null,
82
+ image: b(e == null ? void 0 : e.image) || null,
54
83
  name: e == null ? void 0 : e.name,
55
- onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid)
84
+ onSelectCard: () => a == null ? void 0 : a(e == null ? void 0 : e.uuid)
56
85
  },
57
- i
58
- )) : o == null ? void 0 : o.slice(0, a).map((e, i) => /* @__PURE__ */ r(
59
- u,
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: d(e == null ? void 0 : e.image) || null,
91
+ image: b(e == null ? void 0 : e.image) || null,
63
92
  name: e == null ? void 0 : e.name,
64
- onSelectCard: () => t == null ? void 0 : t(e)
93
+ onSelectCard: () => a == null ? void 0 : a(e)
65
94
  },
66
- i
67
- )) }), [o]);
68
- return /* @__PURE__ */ n(I, { ref: c, children: [
69
- /* @__PURE__ */ n("div", { className: "regular-title", children: [
70
- /* @__PURE__ */ n("div", { className: "regular-title-text", children: [
71
- p(m) && /* @__PURE__ */ r("i", { className: m }),
72
- /* @__PURE__ */ r("span", { children: g })
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
- p(s) && /* @__PURE__ */ r(
75
- R,
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 i;
82
- (i = e == null ? void 0 : e.target) == null || i.blur(), b(s);
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: f
115
+ children: h
87
116
  }
88
117
  )
89
118
  ] }),
90
- /* @__PURE__ */ r(P, { limit: a, children: /* @__PURE__ */ r(
91
- L,
119
+ /* @__PURE__ */ t(
120
+ D,
92
121
  {
93
- isLoading: h,
94
- limit: a,
95
- keyPrefix: "explore-landing",
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
- G as default
130
+ Q as default
103
131
  };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),n=require("react"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),U=require("./consts-goSZX3xP.cjs"),F=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./index-DicTpiG0.cjs"),T=require("./index-CSgGox95.cjs"),_=require("./suspense-product-card-simple-DJ8UYolb.cjs"),B=N.styled.div`
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: ${U.MOBILE_SIZE_PX+"px"}) {
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
- `,b=n.memo(v.SimpleProductCard),I=n.forwardRef((S,h)=>{const{title:w,subtitle:q,description:y,buttonText:P,buttonLink:f,items:i,onButtonAction:j=()=>{},onSelectCard:c=()=>{},isLoading:C=!1,limit:r=6,getImage:o=()=>{},negotiableText:a,freeText:l,componentName:d}=S,m=F.useDetectMobile(),k=n.useMemo(()=>{var p,g;return t.jsx(t.Fragment,{children:m===!0?(p=i==null?void 0:i.slice(0,4))==null?void 0:p.map((e,s)=>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:(M,u)=>c({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:u}),image:o(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:a,freeText:l,metadata:{name:d,accessor:e==null?void 0:e.accessor}},s)):(g=i==null?void 0:i.slice(0,9))==null?void 0:g.map((e,s)=>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:(M,u)=>c({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:u}),image:o(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:a,freeText:l,metadata:{name:d,accessor:e==null?void 0:e.accessor}},s))})},[i,m,r]);return t.jsxs(B,{ref:h,limit:r,children:[t.jsx(T.TextBlockV1,{subtitle:q,title:w,description:y,buttonText:P,buttonLink:f,onButtonAction:j,className:"text-block-v1"}),t.jsx(_.SuspenseSimpleProductCard,{isLoading:C,limit:r,keyPrefix:"explore-landing",children:k})]})});module.exports=I;
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;