@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
@@ -1,10 +1,10 @@
1
- import { jsx as o, Fragment as $, jsxs as y } from "react/jsx-runtime";
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 "./suspense-product-card-detailed-CxiFuUOT.js";
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
- `, C = T(z), K = F((a, S) => {
81
+ `, S = T(z), K = F((a, w) => {
82
82
  const {
83
83
  items: r,
84
- limit: t = 5,
84
+ limit: n = 5,
85
85
  limitMobile: s = 4,
86
86
  onSelectCard: c = () => {
87
87
  },
88
- title: w = "Urgent sale",
89
- showLessText: N = "Show less",
90
- showMoreText: P = "Show more",
91
- isLoading: L = !1,
92
- getImage: u = () => {
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: g,
95
- freeText: p,
96
- onBookmark: f = () => {
94
+ negotiableText: p,
95
+ freeText: f,
96
+ onBookmark: k = () => {
97
97
  },
98
98
  bookmarkComponent: b,
99
- componentName: k,
100
- sponsoredText: h
101
- } = a, l = E(), [n, M] = I(!1), U = _(() => {
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, n === !0 ? r == null ? void 0 : r.length : s)) == null ? void 0 : i.map((e, m) => /* @__PURE__ */ o(
104
- C,
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: u(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
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: g,
126
- freeText: p,
127
- onBookmark: f,
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: k, accessor: e == null ? void 0 : e.accessor },
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: h
136
+ sponsoredText: y
137
137
  },
138
138
  m
139
- )) : r == null ? void 0 : r.slice(0, t).map((e, m) => /* @__PURE__ */ o(
140
- C,
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: u(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
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: g,
162
- freeText: p,
163
- onBookmark: f,
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: k, accessor: e == null ? void 0 : e.accessor },
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: h,
172
+ sponsoredText: y,
173
173
  sellerName: e == null ? void 0 : e.sellerName
174
174
  },
175
175
  m
176
176
  )) });
177
- }, [r, l, t, s, n]);
178
- return /* @__PURE__ */ y(G, { ref: S, limit: t, children: [
179
- /* @__PURE__ */ y("div", { className: "urgent-tag", children: [
180
- /* @__PURE__ */ o("i", { className: "mng mng-lnc-bolt-filled" }),
181
- /* @__PURE__ */ o("span", { children: w })
182
- ] }),
183
- /* @__PURE__ */ o(
184
- A,
185
- {
186
- isLoading: L,
187
- limit: t,
188
- keyPrefix: "explore-landing",
189
- children: U
190
- }
191
- ),
192
- l === !0 && s < (r == null ? void 0 : r.length) && /* @__PURE__ */ o(
193
- j,
194
- {
195
- className: "show-more",
196
- btnType: "basic",
197
- type: "button",
198
- color: "neutral",
199
- onClick: (i) => {
200
- var e;
201
- (e = i == null ? void 0 : i.target) == null || e.blur(), M(!n);
202
- },
203
- children: n === !0 ? N : P
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-BdsZgOUE.js";
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 i, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as v, useRef as d, useEffect as I, Fragment as P } from "react";
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 { p as f, o as h, l as w } from "./utils-BdsZgOUE.js";
5
- import { D as x } from "./ShopAvatar-4-fCYGEc.js";
6
- import { P as z } from "./index-CF3HhgvN.js";
7
- import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
- import { M as D } from "./consts-BuFChS64.js";
9
- const G = b.div`
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: ${D + "px"}) {
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
- `, W = b.div`
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: m,
194
- image: p,
150
+ uuid: d,
151
+ image: o,
195
152
  imageComponent: c,
196
- title: y,
197
- subtitle: N,
198
- badges: k,
199
- rating: S,
200
- reviewCount: o,
153
+ title: x,
154
+ subtitle: v,
155
+ badges: y,
156
+ rating: b,
157
+ reviewCount: m,
201
158
  products: t,
202
- onSelectCard: u = () => {
159
+ onSelectCard: N = () => {
203
160
  },
204
- getProductImage: $ = () => {
161
+ getProductImage: E = () => {
205
162
  },
206
- canAcceptPayments: E,
207
- hideProducts: L = !1,
208
- showRating: j = !0,
163
+ canAcceptPayments: S,
164
+ hideProducts: j = !1,
165
+ showRating: L = !0,
209
166
  metadata: s = {}
210
- }, A) => {
211
- const n = d(), _ = d();
212
- return I(() => {
213
- var l;
167
+ }, W) => {
168
+ const i = _(), p = _();
169
+ return k(() => {
170
+ var n;
214
171
  const e = (a) => {
215
- a.target.src = x, a.onerror = null;
172
+ a.target.src = w, a.onerror = null;
216
173
  };
217
- return (l = n == null ? void 0 : n.current) == null || l.addEventListener("error", e), () => {
174
+ return (n = i == null ? void 0 : i.current) == null || n.addEventListener("error", e), () => {
218
175
  var a;
219
- (a = n == null ? void 0 : n.current) == null || a.removeEventListener("error", e);
176
+ (a = i == null ? void 0 : i.current) == null || a.removeEventListener("error", e);
220
177
  };
221
- }, []), /* @__PURE__ */ i(
222
- G,
178
+ }, []), /* @__PURE__ */ l(
179
+ M,
223
180
  {
224
- ref: _,
225
- onClick: (e) => u(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__ */ i("div", { className: "wrapper__content", children: [
230
- w(c) ? c : p ? /* @__PURE__ */ r("img", { ref: n, src: p, className: "wrapper__image" }) : /* @__PURE__ */ r("img", { src: x, className: "wrapper__image" }),
231
- /* @__PURE__ */ i("div", { className: "wrapper__info", children: [
232
- /* @__PURE__ */ i("div", { className: "wrapper__title", children: [
233
- y,
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
- E && /* @__PURE__ */ r(g, { color: "secondary", icon: "credit-card", className: "card" })
192
+ S && /* @__PURE__ */ r(g, { color: "secondary", icon: "credit-card", className: "card" })
236
193
  ] }),
237
- /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: N }),
238
- k && /* @__PURE__ */ r("div", { className: "wrapper__badges" }),
239
- j && /* @__PURE__ */ i("div", { className: "wrapper__rating", children: [
240
- /* @__PURE__ */ r("div", { className: "wrapper_stars", children: [...Array(5).keys()].map((e, l) => /* @__PURE__ */ r(
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 >= S ? "gold-star" : ""}`
201
+ className: `wrapper__star ${e >= b ? "gold-star" : ""}`
245
202
  },
246
- `shop-card-rating-star__${l + 1}`
203
+ `shop-card-rating-star__${n + 1}`
247
204
  )) }),
248
- /* @__PURE__ */ i("div", { className: "wrapper__review-count", children: [
205
+ /* @__PURE__ */ l("div", { className: "wrapper__review-count", children: [
249
206
  "(",
250
- o == null ? void 0 : o.toLocaleString(),
207
+ m == null ? void 0 : m.toLocaleString(),
251
208
  ")"
252
209
  ] })
253
210
  ] })
254
211
  ] })
255
212
  ] }),
256
- L !== !0 && /* @__PURE__ */ r("div", { className: "wrapper__products", children: t && (t == null ? void 0 : t.map((e, l) => /* @__PURE__ */ r(P, { children: /* @__PURE__ */ r(
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: w(e == null ? void 0 : e.imageComponent) ? e == null ? void 0 : e.imageComponent : /* @__PURE__ */ r(
265
- z,
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
- m
227
+ d
271
228
  ),
272
229
  className: "product__image"
273
230
  }
274
231
  )
275
232
  }
276
- ) }, l))) })
233
+ ) }, n))) })
277
234
  ]
278
235
  }
279
236
  );
280
237
  }
281
- ), q = v(({}, m) => /* @__PURE__ */ r(W, { children: /* @__PURE__ */ i("div", { className: "wrapper__content", children: [
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
- Z as S,
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-BdsZgOUE.js";
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(() => {