@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,63 +1,99 @@
1
- import { jsx as r, Fragment as S } from "react/jsx-runtime";
2
- import { memo as C, forwardRef as b, useMemo as B } from "react";
3
- import { s as M } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as L } from "./consts-BuFChS64.js";
5
- import { u as h } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { B as T } from "./index-1Dm1i6WK.js";
7
- import { S as U } from "./suspense-large-BMO7JH52.js";
8
- const k = M.div`
1
+ import { jsxs as k, jsx as t, Fragment as p } from "react/jsx-runtime";
2
+ import { Suspense as B, memo as L, forwardRef as M, useMemo as $ } from "react";
3
+ import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as S } from "./consts-BuFChS64.js";
5
+ import { u as w } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { B as R } from "./index-DFdPWO4O.js";
7
+ import { a as T, b as u } from "./style-CXMUA6cI.js";
8
+ const U = f.div`
9
9
  display: grid;
10
10
  grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
11
11
  gap: 1.25rem;
12
12
 
13
- @media (max-width: ${L + "px"}) {
13
+ @media (max-width: ${S + "px"}) {
14
14
  grid-template-columns: repeat(1, 1fr);
15
15
  }
16
- `, c = C(T), _ = b((o, u) => {
16
+ `, I = f(T)`
17
+ @media (max-width: ${S + "px"}) {
18
+ flex-direction: column;
19
+
20
+ & > div {
21
+ background: linear-gradient(
22
+ to right,
23
+ transparent 0%,
24
+ #f4f6fb 40%,
25
+ #f4f6fb 100%
26
+ );
27
+
28
+ box-shadow: none;
29
+ }
30
+ }
31
+ `, P = ({ keyPrefix: o }) => /* @__PURE__ */ k(I, { children: [
32
+ /* @__PURE__ */ t(
33
+ u,
34
+ {
35
+ height: "11.25rem",
36
+ borderRadius: "0.75rem"
37
+ },
38
+ `${o}-1`
39
+ ),
40
+ /* @__PURE__ */ t(
41
+ u,
42
+ {
43
+ height: "11.25rem",
44
+ borderRadius: "0.75rem"
45
+ },
46
+ `${o}-2`
47
+ )
48
+ ] }), j = ({
49
+ keyPrefix: o,
50
+ isLoading: a = !1,
51
+ fallbackComponent: r = /* @__PURE__ */ t(p, {}),
52
+ children: i
53
+ }) => /* @__PURE__ */ t(B, { fallbackComponent: r, children: a === !0 ? /* @__PURE__ */ t(P, { keyPrefix: o }) : i }), g = L(R), F = M((o, a) => {
17
54
  const {
18
- items: t,
19
- onSelectCard: a = () => {
55
+ items: r,
56
+ onSelectCard: i = () => {
20
57
  },
21
- limit: i = 2,
22
- isLoading: g = !1,
23
- getImage: n = () => {
58
+ limit: l = 2,
59
+ isLoading: b = !1,
60
+ getImage: m = () => {
24
61
  },
25
- componentName: s
26
- } = o, d = h(), p = B(() => /* @__PURE__ */ r(S, { children: d === !0 ? t == null ? void 0 : t.map((e, l) => /* @__PURE__ */ r(
27
- c,
62
+ componentName: d
63
+ } = o, c = w(), h = $(() => /* @__PURE__ */ t(p, { children: c === !0 ? r == null ? void 0 : r.map((e, n) => /* @__PURE__ */ t(
64
+ g,
28
65
  {
29
66
  title: e == null ? void 0 : e.title,
30
- imageUrl: n(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
67
+ imageUrl: m(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
31
68
  text: e == null ? void 0 : e.description,
32
69
  titleSlug: e == null ? void 0 : e.titleSlug,
33
70
  buttonText: e == null ? void 0 : e.buttonText,
34
- onCardClick: (f, m) => a(e == null ? void 0 : e.titleSlug, m),
35
- metadata: { name: s, accessor: e == null ? void 0 : e.accessor }
71
+ onCardClick: (C, s) => i(e == null ? void 0 : e.titleSlug, s),
72
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
36
73
  },
37
- l
38
- )) : t == null ? void 0 : t.slice(0, i).map((e, l) => /* @__PURE__ */ r(
39
- c,
74
+ n
75
+ )) : r == null ? void 0 : r.slice(0, l).map((e, n) => /* @__PURE__ */ t(
76
+ g,
40
77
  {
41
78
  title: e == null ? void 0 : e.title,
42
- imageUrl: n(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
79
+ imageUrl: m(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
43
80
  text: e == null ? void 0 : e.description,
44
81
  titleSlug: e == null ? void 0 : e.titleSlug,
45
82
  buttonText: e == null ? void 0 : e.buttonText,
46
- onCardClick: (f, m) => a(e == null ? void 0 : e.titleSlug, m),
47
- metadata: { name: s, accessor: e == null ? void 0 : e.accessor }
83
+ onCardClick: (C, s) => i(e == null ? void 0 : e.titleSlug, s),
84
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
48
85
  },
49
- l
50
- )) }), [t, d, i, a]);
51
- return /* @__PURE__ */ r(k, { ref: u, limit: i, children: /* @__PURE__ */ r(
52
- U,
86
+ n
87
+ )) }), [r, c, l, i]);
88
+ return /* @__PURE__ */ t(
89
+ j,
53
90
  {
54
- isLoading: g,
55
- limit: i,
56
- keyPrefix: "explore-landing",
57
- children: p
91
+ isLoading: b,
92
+ keyPrefix: "blogs-large-skeleton",
93
+ children: /* @__PURE__ */ t(U, { ref: a, limit: l, children: h })
58
94
  }
59
- ) });
95
+ );
60
96
  });
61
97
  export {
62
- _ as default
98
+ F as default
63
99
  };
@@ -1,12 +1,12 @@
1
- "use strict";const r=require("react/jsx-runtime"),c=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),M=require("./useDetectMobile-zkbzoOGV.cjs"),f=require("./utils-Dl9xPH4c.cjs"),k=require("./style-Db3VFbfP.cjs"),T=require("./Button.cjs"),$=require("./Link.cjs"),I=require("./index-BueKsXT8.cjs"),P=w.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),m=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),d=require("./utils-Dl9xPH4c.cjs"),k=require("./style-Db3VFbfP.cjs"),M=require("./Button.cjs"),B=require("./Link.cjs"),T=require("./index-BueKsXT8.cjs"),E=require("./index-D-3I_Ppj.cjs"),I=w.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${l=>`repeat(${l.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,N=w.styled.div`
9
+ `,$=w.styled.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  width: 100%;
@@ -30,7 +30,7 @@
30
30
  width: 100%;
31
31
  max-height: 12.5625rem;
32
32
  min-height: 12.5625rem;
33
- background-color: ${f.linearGradientAnimation("-90deg")};
33
+ background-color: ${d.linearGradientAnimation("-90deg")};
34
34
  }
35
35
 
36
36
  & .action {
@@ -56,9 +56,9 @@
56
56
  padding: 1rem;
57
57
  }
58
58
 
59
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
59
+ @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
60
60
  }
61
- `,C=w.styled.div`
61
+ `,D=w.styled.div`
62
62
  padding: 1rem 1rem 0 1rem;
63
63
  display: flex;
64
64
  flex-direction: column;
@@ -76,6 +76,6 @@
76
76
  font-size: 0.875rem;
77
77
  flex: 1;
78
78
  color: var(--gray-700, #4e555f);
79
- ${f.truncateTextInRows(3)}
79
+ ${d.truncateTextInRows(3)}
80
80
  }
81
- `,_=c.forwardRef((t,d)=>{const{title:o,imageUrl:m,text:l,options:a,onCardClick:p,readMoreText:s="Read more",metadata:n}=t,g=c.useRef();return r.jsxs(N,{ref:g,name:n==null?void 0:n.name,"data-accessor":n==null?void 0:n.name,className:"blog-card",onClick:i=>p(i,g),children:[r.jsx(I.ProductImageWrapper,{src:m}),r.jsxs(C,{children:[r.jsx("div",{className:"text-wr-title",children:o}),r.jsx("div",{className:"text-wr",children:l})]}),a&&r.jsx("div",{className:"tags-wr",children:a==null?void 0:a.map((i,h)=>r.jsx(k.BlogTag,{color:i==null?void 0:i.color,children:i==null?void 0:i.name},h))}),r.jsx($,{className:"action",color:"gray",onClick:p,children:s})]})}),E=c.forwardRef(({},t)=>r.jsxs(N,{className:"product-card",children:[r.jsx("div",{className:"skeleton-img"}),r.jsx("div",{className:"card-title"}),r.jsx(C,{})]})),z=({limit:t=3,isLoading:d=!1,keyPrefix:o})=>r.jsx(r.Fragment,{children:Array.from({length:t},(m,l)=>r.jsx(E,{isLoading:d},`${o}-skeleton-product-card-${l}`))}),U=({children:t,fallbackComponent:d=r.jsx(r.Fragment,{}),isLoading:o=!1,limit:m,keyPrefix:l})=>r.jsx(c.Suspense,{fallbackComponent:d,children:o===!0?r.jsx(z,{isLoading:o,limit:m,keyPrefix:l}):t}),b=c.memo(_),W=c.forwardRef((t,d)=>{const{icon:o,title:m,onButtonAction:l=()=>{},onSelectCard:a=()=>{},buttonLink:p,items:s,buttonText:n,limit:g=3,isLoading:i=!1,getImage:h=()=>{},readMoreText:y="Read more",componentName:S}=t,R=M.useDetectMobile(),q=c.useMemo(()=>r.jsx(r.Fragment,{children:R===!0?s==null?void 0:s.map((e,u)=>r.jsx(b,{title:e==null?void 0:e.title,imageUrl:h(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:y,options:e==null?void 0:e.options,onCardClick:(B,j)=>a(e==null?void 0:e.titleSlug,j),metadata:{name:S,accessor:e==null?void 0:e.accessor}},u)):s==null?void 0:s.slice(0,g).map((e,u)=>r.jsx(b,{title:e==null?void 0:e.title,imageUrl:h(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:y,options:e==null?void 0:e.options,onCardClick:(B,j)=>a(e==null?void 0:e.titleSlug,j),metadata:{name:S,accessor:e==null?void 0:e.accessor}},u))}),[s]);return r.jsxs(k.RegulatTitleSectionWrapper,{ref:d,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[f.isDefinedNotEmptyString(o)&&r.jsx("i",{className:o}),r.jsx("span",{children:m})]}),f.isDefinedNotEmptyString(p)&&r.jsx(T,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var u;(u=e==null?void 0:e.target)==null||u.blur(),l(p)},borderRadius:"curved",className:"button-link",children:n})]}),r.jsx(P,{limit:g,children:r.jsx(U,{isLoading:i,limit:g,keyPrefix:"explore-landing",children:q})})]})});module.exports=W;
81
+ `,P=m.forwardRef((l,y)=>{const{title:g,imageUrl:u,text:h,options:n,onCardClick:a,readMoreText:i="Read more",metadata:o}=l,c=m.useRef();return r.jsxs($,{ref:c,name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.name,className:"blog-card",onClick:t=>a(t,c),children:[r.jsx(T.ProductImageWrapper,{src:u}),r.jsxs(D,{children:[r.jsx("div",{className:"text-wr-title",children:g}),r.jsx("div",{className:"text-wr",children:h})]}),n&&r.jsx("div",{className:"tags-wr",children:n==null?void 0:n.map((t,p)=>r.jsx(k.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},p))}),r.jsx(B,{className:"action",color:"gray",onClick:a,children:i})]})}),v=m.memo(P),_=m.forwardRef((l,y)=>{const{icon:g,title:u,onButtonAction:h=()=>{},onSelectCard:n=()=>{},buttonLink:a,items:i,buttonText:o,limit:c=3,isLoading:t=!1,getImage:p=()=>{},readMoreText:b="Read more",componentName:j}=l,N=R.useDetectMobile(),C=m.useMemo(()=>r.jsx(r.Fragment,{children:N===!0?i==null?void 0:i.map((e,s)=>r.jsx(v,{title:e==null?void 0:e.title,imageUrl:p(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:b,options:e==null?void 0:e.options,onCardClick:(q,f)=>n(e==null?void 0:e.titleSlug,f),metadata:{name:j,accessor:e==null?void 0:e.accessor}},s)):i==null?void 0:i.slice(0,c).map((e,s)=>r.jsx(v,{title:e==null?void 0:e.title,imageUrl:p(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:b,options:e==null?void 0:e.options,onCardClick:(q,f)=>n(e==null?void 0:e.titleSlug,f),metadata:{name:j,accessor:e==null?void 0:e.accessor}},s))}),[i]);return r.jsxs(k.RegulatTitleSectionWrapper,{ref:y,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[d.isDefinedNotEmptyString(g)&&r.jsx("i",{className:g}),r.jsx("span",{children:u})]}),d.isDefinedNotEmptyString(o)&&d.isDefinedNotEmptyString(a)&&!t&&r.jsx(M,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var s;(s=e==null?void 0:e.target)==null||s.blur(),h(a)},borderRadius:"curved",className:"button-link",children:o})]}),r.jsx(E.SuspenseBlogsSectionDetailed,{isLoading:t,keyPrefix:"blogs-simple-skeleton",children:r.jsx(I,{limit:c,children:C})})]})});module.exports=_;
@@ -1,22 +1,23 @@
1
- import { jsxs as g, jsx as r, Fragment as v } from "react/jsx-runtime";
2
- import { forwardRef as w, useRef as P, Suspense as z, memo as I, useMemo as U } from "react";
3
- import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
1
+ import { jsxs as c, jsx as r, Fragment as M } from "react/jsx-runtime";
2
+ import { forwardRef as k, useRef as T, memo as P, useMemo as $ } from "react";
3
+ import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as C } from "./consts-BuFChS64.js";
5
- import { u as W } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { o as j, p as A, k as y } from "./utils-BdsZgOUE.js";
7
- import { B as E, R as L } from "./style-DKAOBWn3.js";
8
- import _ from "./Button.js";
5
+ import { u as z } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { w as I, o as U, k as h } from "./utils-DHfRApMf.js";
7
+ import { B as W, R as L } from "./style-D3pIrH3v.js";
8
+ import j from "./Button.js";
9
9
  import D from "./Link.js";
10
- import { P as G } from "./index-CF3HhgvN.js";
11
- const F = b.div`
10
+ import { P as E } from "./index-BbltNcou.js";
11
+ import { S as A } from "./index-BovNbKxB.js";
12
+ const G = w.div`
12
13
  display: grid;
13
- grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
14
+ grid-template-columns: ${(n) => `repeat(${n.limit}, minmax(0, 1fr))`};
14
15
  gap: 1.25rem;
15
16
 
16
17
  @media (max-width: ${C + "px"}) {
17
18
  grid-template-columns: repeat(1, 1fr);
18
19
  }
19
- `, B = b.div`
20
+ `, _ = w.div`
20
21
  display: flex;
21
22
  flex-direction: column;
22
23
  width: 100%;
@@ -40,7 +41,7 @@ const F = b.div`
40
41
  width: 100%;
41
42
  max-height: 12.5625rem;
42
43
  min-height: 12.5625rem;
43
- background-color: ${j("-90deg")};
44
+ background-color: ${I("-90deg")};
44
45
  }
45
46
 
46
47
  & .action {
@@ -68,7 +69,7 @@ const F = b.div`
68
69
 
69
70
  @media (max-width: ${C + "px"}) {
70
71
  }
71
- `, R = b.div`
72
+ `, F = w.div`
72
73
  padding: 1rem 1rem 0 1rem;
73
74
  display: flex;
74
75
  flex-direction: column;
@@ -86,140 +87,113 @@ const F = b.div`
86
87
  font-size: 0.875rem;
87
88
  flex: 1;
88
89
  color: var(--gray-700, #4e555f);
89
- ${A(3)}
90
+ ${U(3)}
90
91
  }
91
- `, O = w((t, m) => {
92
+ `, O = k((n, b) => {
92
93
  const {
93
- title: o,
94
- imageUrl: s,
95
- text: n,
96
- options: c,
97
- onCardClick: u,
98
- readMoreText: a = "Read more",
99
- metadata: l
100
- } = t, d = P();
101
- return /* @__PURE__ */ g(
102
- B,
94
+ title: d,
95
+ imageUrl: g,
96
+ text: u,
97
+ options: a,
98
+ onCardClick: m,
99
+ readMoreText: i = "Read more",
100
+ metadata: o
101
+ } = n, s = T();
102
+ return /* @__PURE__ */ c(
103
+ _,
103
104
  {
104
- ref: d,
105
- name: l == null ? void 0 : l.name,
106
- "data-accessor": l == null ? void 0 : l.name,
105
+ ref: s,
106
+ name: o == null ? void 0 : o.name,
107
+ "data-accessor": o == null ? void 0 : o.name,
107
108
  className: "blog-card",
108
- onClick: (i) => u(i, d),
109
+ onClick: (t) => m(t, s),
109
110
  children: [
110
- /* @__PURE__ */ r(G, { src: s }),
111
- /* @__PURE__ */ g(R, { children: [
112
- /* @__PURE__ */ r("div", { className: "text-wr-title", children: o }),
113
- /* @__PURE__ */ r("div", { className: "text-wr", children: n })
111
+ /* @__PURE__ */ r(E, { src: g }),
112
+ /* @__PURE__ */ c(F, { children: [
113
+ /* @__PURE__ */ r("div", { className: "text-wr-title", children: d }),
114
+ /* @__PURE__ */ r("div", { className: "text-wr", children: u })
114
115
  ] }),
115
- c && /* @__PURE__ */ r("div", { className: "tags-wr", children: c == null ? void 0 : c.map((i, f) => /* @__PURE__ */ r(E, { color: i == null ? void 0 : i.color, children: i == null ? void 0 : i.name }, f)) }),
116
- /* @__PURE__ */ r(D, { className: "action", color: "gray", onClick: u, children: a })
116
+ a && /* @__PURE__ */ r("div", { className: "tags-wr", children: a == null ? void 0 : a.map((t, p) => /* @__PURE__ */ r(W, { color: t == null ? void 0 : t.color, children: t == null ? void 0 : t.name }, p)) }),
117
+ /* @__PURE__ */ r(D, { className: "action", color: "gray", onClick: m, children: i })
117
118
  ]
118
119
  }
119
120
  );
120
- }), X = w(({}, t) => (
121
- // <LandingPageClearProductCardSkeleton />
122
- /* @__PURE__ */ g(B, { className: "product-card", children: [
123
- /* @__PURE__ */ r("div", { className: "skeleton-img" }),
124
- /* @__PURE__ */ r("div", { className: "card-title" }),
125
- /* @__PURE__ */ r(R, {})
126
- ] })
127
- )), Z = ({ limit: t = 3, isLoading: m = !1, keyPrefix: o }) => /* @__PURE__ */ r(v, { children: Array.from({ length: t }, (s, n) => /* @__PURE__ */ r(
128
- X,
129
- {
130
- isLoading: m
131
- },
132
- `${o}-skeleton-product-card-${n}`
133
- )) }), q = ({
134
- children: t,
135
- fallbackComponent: m = /* @__PURE__ */ r(v, {}),
136
- isLoading: o = !1,
137
- limit: s,
138
- keyPrefix: n
139
- }) => /* @__PURE__ */ r(z, { fallbackComponent: m, children: o === !0 ? /* @__PURE__ */ r(
140
- Z,
141
- {
142
- isLoading: o,
143
- limit: s,
144
- keyPrefix: n
145
- }
146
- ) : t }), N = I(O), ie = w((t, m) => {
121
+ }), S = P(O), re = k((n, b) => {
147
122
  const {
148
- icon: o,
149
- title: s,
150
- onButtonAction: n = () => {
123
+ icon: d,
124
+ title: g,
125
+ onButtonAction: u = () => {
151
126
  },
152
- onSelectCard: c = () => {
127
+ onSelectCard: a = () => {
153
128
  },
154
- buttonLink: u,
155
- items: a,
156
- buttonText: l,
157
- limit: d = 3,
158
- isLoading: i = !1,
159
- getImage: f = () => {
129
+ buttonLink: m,
130
+ items: i,
131
+ buttonText: o,
132
+ limit: s = 3,
133
+ isLoading: t = !1,
134
+ getImage: p = () => {
160
135
  },
161
- readMoreText: S = "Read more",
162
- componentName: k
163
- } = t, M = W(), T = U(() => /* @__PURE__ */ r(v, { children: M === !0 ? a == null ? void 0 : a.map((e, p) => /* @__PURE__ */ r(
164
- N,
136
+ readMoreText: v = "Read more",
137
+ componentName: y
138
+ } = n, N = z(), R = $(() => /* @__PURE__ */ r(M, { children: N === !0 ? i == null ? void 0 : i.map((e, l) => /* @__PURE__ */ r(
139
+ S,
165
140
  {
166
141
  title: e == null ? void 0 : e.title,
167
- imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
142
+ imageUrl: p(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
168
143
  text: e == null ? void 0 : e.description,
169
144
  titleSlug: e == null ? void 0 : e.titleSlug,
170
- readMoreText: S,
145
+ readMoreText: v,
171
146
  options: e == null ? void 0 : e.options,
172
- onCardClick: ($, h) => c(e == null ? void 0 : e.titleSlug, h),
173
- metadata: { name: k, accessor: e == null ? void 0 : e.accessor }
147
+ onCardClick: (B, f) => a(e == null ? void 0 : e.titleSlug, f),
148
+ metadata: { name: y, accessor: e == null ? void 0 : e.accessor }
174
149
  },
175
- p
176
- )) : a == null ? void 0 : a.slice(0, d).map((e, p) => /* @__PURE__ */ r(
177
- N,
150
+ l
151
+ )) : i == null ? void 0 : i.slice(0, s).map((e, l) => /* @__PURE__ */ r(
152
+ S,
178
153
  {
179
154
  title: e == null ? void 0 : e.title,
180
- imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
155
+ imageUrl: p(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
181
156
  text: e == null ? void 0 : e.description,
182
157
  titleSlug: e == null ? void 0 : e.titleSlug,
183
- readMoreText: S,
158
+ readMoreText: v,
184
159
  options: e == null ? void 0 : e.options,
185
- onCardClick: ($, h) => c(e == null ? void 0 : e.titleSlug, h),
186
- metadata: { name: k, accessor: e == null ? void 0 : e.accessor }
160
+ onCardClick: (B, f) => a(e == null ? void 0 : e.titleSlug, f),
161
+ metadata: { name: y, accessor: e == null ? void 0 : e.accessor }
187
162
  },
188
- p
189
- )) }), [a]);
190
- return /* @__PURE__ */ g(L, { ref: m, children: [
191
- /* @__PURE__ */ g("div", { className: "regular-title", children: [
192
- /* @__PURE__ */ g("div", { className: "regular-title-text", children: [
193
- y(o) && /* @__PURE__ */ r("i", { className: o }),
194
- /* @__PURE__ */ r("span", { children: s })
163
+ l
164
+ )) }), [i]);
165
+ return /* @__PURE__ */ c(L, { ref: b, children: [
166
+ /* @__PURE__ */ c("div", { className: "regular-title", children: [
167
+ /* @__PURE__ */ c("div", { className: "regular-title-text", children: [
168
+ h(d) && /* @__PURE__ */ r("i", { className: d }),
169
+ /* @__PURE__ */ r("span", { children: g })
195
170
  ] }),
196
- y(u) && /* @__PURE__ */ r(
197
- _,
171
+ h(o) && h(m) && !t && /* @__PURE__ */ r(
172
+ j,
198
173
  {
199
174
  type: "button",
200
175
  btnType: "tinted",
201
176
  color: "neutral",
202
177
  onClick: (e) => {
203
- var p;
204
- (p = e == null ? void 0 : e.target) == null || p.blur(), n(u);
178
+ var l;
179
+ (l = e == null ? void 0 : e.target) == null || l.blur(), u(m);
205
180
  },
206
181
  borderRadius: "curved",
207
182
  className: "button-link",
208
- children: l
183
+ children: o
209
184
  }
210
185
  )
211
186
  ] }),
212
- /* @__PURE__ */ r(F, { limit: d, children: /* @__PURE__ */ r(
213
- q,
187
+ /* @__PURE__ */ r(
188
+ A,
214
189
  {
215
- isLoading: i,
216
- limit: d,
217
- keyPrefix: "explore-landing",
218
- children: T
190
+ isLoading: t,
191
+ keyPrefix: "blogs-simple-skeleton",
192
+ children: /* @__PURE__ */ r(G, { limit: s, children: R })
219
193
  }
220
- ) })
194
+ )
221
195
  ] });
222
196
  });
223
197
  export {
224
- ie as default
198
+ re as default
225
199
  };
@@ -1,13 +1,13 @@
1
- "use strict";const t=require("react/jsx-runtime"),c=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),C=require("./useDetectMobile-zkbzoOGV.cjs"),h=require("./utils-Dl9xPH4c.cjs"),k=require("./Button.cjs"),x=require("./index-BueKsXT8.cjs"),y=p.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),m=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-goSZX3xP.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./utils-Dl9xPH4c.cjs"),S=require("./Button.cjs"),y=require("./index-BueKsXT8.cjs"),d=require("./style-BAcV7F53.cjs"),C=u.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
  margin: auto;
6
6
  width: fit-content;
7
- @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
7
+ @media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
8
8
  grid-template-columns: repeat(1, 1fr);
9
9
  }
10
- `,b=p.styled.div`
10
+ `,x=u.styled.div`
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  width: 100%;
@@ -43,19 +43,10 @@
43
43
  object-fit: cover;
44
44
  }
45
45
 
46
- & .skeleton-img {
47
- max-width: 6rem;
48
- min-width: 6rem;
49
- min-height: 6rem;
50
- max-height: 6rem;
51
- border-radius: 0.75rem;
52
- background-color: ${h.linearGradientAnimation("-90deg")};
53
- }
54
-
55
- @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
46
+ @media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
56
47
  max-width: unset;
57
48
  }
58
- `,j=p.styled.div`
49
+ `,v=u.styled.div`
59
50
  text-align: center;
60
51
  display: flex;
61
52
  flex-direction: column;
@@ -70,18 +61,29 @@
70
61
  line-height: 1.75rem;
71
62
  }
72
63
 
73
- & .skeleton-title {
74
- height: 1.75rem;
75
- width: 80%;
76
- background-color: ${h.linearGradientAnimation("-90deg")};
77
- }
78
-
79
64
  & .text-wr {
80
65
  font-size: 0.875rem;
81
66
  font-style: normal;
82
67
  font-weight: 400;
83
68
  line-height: 1.25rem;
84
69
  letter-spacing: 0.0156rem;
85
- ${h.truncateTextInRows(3)}
70
+ ${j.truncateTextInRows(3)}
71
+ }
72
+ `,b=m.forwardRef((r,a)=>{const{title:i,image:o,text:l,buttonText:h,onCardClick:c,metadata:n}=r,e=m.useRef(),s=g=>{c(g,e)};return t.jsxs(x,{ref:e,name:n==null?void 0:n.name,"data-accessor":n==null?void 0:n.accessor,className:"blog-card",onClick:s,children:[t.jsx(y.ProductImageWrapper,{src:o}),t.jsxs(v,{children:[t.jsx("div",{className:"text-wr-title",children:i}),t.jsx("div",{className:"text-wr",children:l})]}),t.jsx(S,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:s,size:"medium",children:h})]})}),k=u.styled(d.SkeletonRowWrapper)`
73
+ @media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
74
+ flex-direction: column;
75
+
76
+ & > div {
77
+ width: 100%;
78
+
79
+ background: linear-gradient(
80
+ to right,
81
+ transparent 0%,
82
+ #f4f6fb 40%,
83
+ #f4f6fb 100%
84
+ );
85
+
86
+ box-shadow: none;
87
+ }
86
88
  }
87
- `,f=c.forwardRef((i,a)=>{const{title:r,image:n,text:o,buttonText:m,onCardClick:d,metadata:s}=i,e=c.useRef(),l=g=>{d(g,e)};return t.jsxs(b,{ref:e,name:s==null?void 0:s.name,"data-accessor":s==null?void 0:s.accessor,className:"blog-card",onClick:l,children:[t.jsx(x.ProductImageWrapper,{src:n}),t.jsxs(j,{children:[t.jsx("div",{className:"text-wr-title",children:r}),t.jsx("div",{className:"text-wr",children:o})]}),t.jsx(k,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:l,size:"medium",children:m})]})}),v=c.forwardRef((i,a)=>{const{onCardClick:r}=i;return t.jsxs(b,{className:"product-card",onClick:r,children:[t.jsx("div",{className:"skeleton-img"}),t.jsx(j,{children:t.jsx("div",{className:"skeleton-title"})})]})}),S=({limit:i=3,isLoading:a=!1,keyPrefix:r})=>t.jsx(t.Fragment,{children:Array.from({length:i},(n,o)=>t.jsx(v,{isLoading:a},`${r}-skeleton-product-card-${o}`))}),R=({children:i,fallbackComponent:a=t.jsx(t.Fragment,{}),isLoading:r=!1,limit:n,keyPrefix:o})=>t.jsx(c.Suspense,{fallbackComponent:a,children:r===!0?t.jsx(S,{isLoading:r,limit:n,keyPrefix:o}):i}),$=c.forwardRef((i,a)=>{const{items:r,limit:n=3,onSelectCard:o=()=>{},isLoading:m=!1,componentName:d}=i,s=C.useDetectMobile();return t.jsx(y,{ref:a,limit:n,children:t.jsx(R,{isLoading:m,limit:n,keyPrefix:"explore-landing",children:t.jsx(t.Fragment,{children:s===!0?r==null?void 0:r.map((e,l)=>t.jsx(f,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(g,u)=>o(e,u),metadata:{name:d,accessor:e==null?void 0:e.accessor}},l)):r==null?void 0:r.slice(0,n).map((e,l)=>t.jsx(f,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(g,u)=>o(e,u),metadata:{name:d,accessor:e==null?void 0:e.accessor}},l))})})})});module.exports=$;
89
+ `,R=({keyPrefix:r})=>t.jsxs(k,{justifyContent:"center",alignItems:"center",children:[t.jsx(d.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-1`),t.jsx(d.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-2`),t.jsx(d.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-3`)]}),$=({keyPrefix:r,isLoading:a=!1,fallbackComponent:i=t.jsx(t.Fragment,{}),children:o})=>t.jsx(m.Suspense,{fallbackComponent:i,children:a===!0?t.jsx(R,{keyPrefix:r}):o}),q=m.forwardRef((r,a)=>{const{items:i,limit:o=3,onSelectCard:l=()=>{},isLoading:h=!1,componentName:c}=r,n=w.useDetectMobile();return t.jsx($,{isLoading:h,keyPrefix:"blogs-simple-centered-skeleton",children:t.jsx(C,{ref:a,limit:o,children:t.jsx(t.Fragment,{children:n===!0?i==null?void 0:i.map((e,s)=>t.jsx(b,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(g,p)=>l(e,p),metadata:{name:c,accessor:e==null?void 0:e.accessor}},s)):i==null?void 0:i.slice(0,o).map((e,s)=>t.jsx(b,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(g,p)=>l(e,p),metadata:{name:c,accessor:e==null?void 0:e.accessor}},s))})})})});module.exports=q;