@lanaco/lnc-react-ui 4.0.125 → 4.0.127

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 (242) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +1 -1
  3. package/dist/AccordionSummary.cjs +1 -1
  4. package/dist/AccordionSummary.js +1 -1
  5. package/dist/ActionsToolbar.cjs +1 -1
  6. package/dist/ActionsToolbar.js +1 -1
  7. package/dist/Alert.cjs +1 -1
  8. package/dist/Alert.js +1 -1
  9. package/dist/Avatar.cjs +1 -1
  10. package/dist/Avatar.js +1 -1
  11. package/dist/Badge.cjs +1 -1
  12. package/dist/Badge.js +1 -1
  13. package/dist/BannerSectionCarousel.cjs +1 -1
  14. package/dist/BannerSectionCarousel.js +2 -0
  15. package/dist/BannerSectionWithList.cjs +1 -1
  16. package/dist/BannerSectionWithList.js +1 -1
  17. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  18. package/dist/BlogCardsSponsoredSection.js +3 -3
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +1 -1
  21. package/dist/BlogExploreSection.cjs +319 -0
  22. package/dist/BlogExploreSection.js +642 -0
  23. package/dist/BlogListSection.cjs +10 -7
  24. package/dist/BlogListSection.js +32 -29
  25. package/dist/BlogProductCardsSection.cjs +1 -1
  26. package/dist/BlogProductCardsSection.js +32 -26
  27. package/dist/BlogShopCardsSection.cjs +1 -1
  28. package/dist/BlogShopCardsSection.js +1 -1
  29. package/dist/BlogSingleSection.cjs +1 -1
  30. package/dist/BlogSingleSection.js +2 -2
  31. package/dist/BlogsSectionDetailed.cjs +1 -1
  32. package/dist/BlogsSectionDetailed.js +3 -3
  33. package/dist/BlogsSectionLarge.cjs +1 -1
  34. package/dist/BlogsSectionLarge.js +2 -2
  35. package/dist/BlogsSectionSimple.cjs +1 -1
  36. package/dist/BlogsSectionSimple.js +3 -3
  37. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  38. package/dist/BlogsSectionSimpleCentered.js +2 -2
  39. package/dist/BlogsSectionWithFilters.cjs +1 -1
  40. package/dist/BlogsSectionWithFilters.js +4 -4
  41. package/dist/BrandHitsSection.cjs +1 -1
  42. package/dist/BrandHitsSection.js +1 -1
  43. package/dist/Breadcrumbs.cjs +1 -1
  44. package/dist/Breadcrumbs.js +1 -1
  45. package/dist/Button.cjs +1 -1
  46. package/dist/Button.js +1 -1
  47. package/dist/ButtonGroup.cjs +1 -1
  48. package/dist/ButtonGroup.js +1 -1
  49. package/dist/CalorieCalculatorSection.cjs +1 -1
  50. package/dist/CalorieCalculatorSection.js +1 -1
  51. package/dist/CheckBoxInput.cjs +1 -1
  52. package/dist/CheckBoxInput.js +1 -1
  53. package/dist/Chip.cjs +1 -1
  54. package/dist/Chip.js +1 -1
  55. package/dist/ColorInput.cjs +1 -1
  56. package/dist/ColorInput.js +1 -1
  57. package/dist/ConfirmationForm.cjs +1 -1
  58. package/dist/ConfirmationForm.js +1 -1
  59. package/dist/CustomLoanMapSection.cjs +1 -1
  60. package/dist/CustomLoanMapSection.js +1 -1
  61. package/dist/{CustomStyles-DpKzWczC.js → CustomStyles-Dd6IDcq_.js} +1 -1
  62. package/dist/{CustomStyles-D3JePSNK.cjs → CustomStyles-K9rgl5Vl.cjs} +1 -1
  63. package/dist/DateInput.cjs +1 -1
  64. package/dist/DateInput.js +1 -1
  65. package/dist/DecimalInput.cjs +1 -1
  66. package/dist/DecimalInput.js +1 -1
  67. package/dist/DecimalInputV2.cjs +1 -1
  68. package/dist/DecimalInputV2.js +1 -1
  69. package/dist/DetailedProductsSection.cjs +1 -1
  70. package/dist/DetailedProductsSection.js +4 -4
  71. package/dist/DetailsView.cjs +1 -1
  72. package/dist/DetailsView.js +1 -1
  73. package/dist/DoubleRangeSlider.cjs +1 -1
  74. package/dist/DoubleRangeSlider.js +1 -1
  75. package/dist/DragAndDropFile.cjs +1 -1
  76. package/dist/DragAndDropFile.js +1 -1
  77. package/dist/DragDropFiles.cjs +1 -1
  78. package/dist/DragDropFiles.js +1 -1
  79. package/dist/Drawer.cjs +1 -1
  80. package/dist/Drawer.js +1 -1
  81. package/dist/Dropdown.cjs +1 -1
  82. package/dist/Dropdown.js +2 -2
  83. package/dist/DropdownItem.cjs +1 -1
  84. package/dist/DropdownItem.js +1 -1
  85. package/dist/DropdownLookup.cjs +1 -1
  86. package/dist/DropdownLookup.js +1 -1
  87. package/dist/DropdownMenu.cjs +1 -1
  88. package/dist/DropdownMenu.js +1 -1
  89. package/dist/EditableTable.cjs +1 -1
  90. package/dist/EditableTable.js +1 -1
  91. package/dist/FaqSection.cjs +3 -175
  92. package/dist/FaqSection.js +121 -314
  93. package/dist/FeedbackSection.cjs +1 -1
  94. package/dist/FeedbackSection.js +1 -1
  95. package/dist/FieldOfInterestsMasonrySection.cjs +1 -1
  96. package/dist/FieldOfInterestsMasonrySection.js +1 -1
  97. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  98. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
  99. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  100. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  101. package/dist/FileInput.cjs +1 -1
  102. package/dist/FileInput.js +1 -1
  103. package/dist/FlexGridItem.cjs +1 -1
  104. package/dist/FlexGridItem.js +1 -1
  105. package/dist/FormField.cjs +1 -1
  106. package/dist/FormField.js +1 -1
  107. package/dist/FormView.cjs +1 -1
  108. package/dist/FormView.js +1 -1
  109. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  110. package/dist/GeneralWithTagsCardsSection.js +1 -1
  111. package/dist/GiftCardsSection.cjs +1 -1
  112. package/dist/GiftCardsSection.js +2 -2
  113. package/dist/Icon.cjs +1 -1
  114. package/dist/Icon.js +1 -1
  115. package/dist/IconButton.cjs +1 -1
  116. package/dist/IconButton.js +1 -1
  117. package/dist/Kanban.cjs +1 -1
  118. package/dist/Kanban.js +1 -1
  119. package/dist/KanbanActionsToolbar.cjs +1 -1
  120. package/dist/KanbanActionsToolbar.js +1 -1
  121. package/dist/KanbanView.cjs +1 -1
  122. package/dist/KanbanView.js +1 -1
  123. package/dist/Link.cjs +1 -1
  124. package/dist/Link.js +1 -1
  125. package/dist/LoanCalculatorSection.cjs +1 -1
  126. package/dist/LoanCalculatorSection.js +1 -1
  127. package/dist/LocationFinderSection.cjs +1 -1
  128. package/dist/LocationFinderSection.js +1 -1
  129. package/dist/LocationSearchSection.cjs +1 -1
  130. package/dist/LocationSearchSection.js +1 -1
  131. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  132. package/dist/MasonryGeneralCardsSection.js +1 -1
  133. package/dist/MenuItem.cjs +1 -1
  134. package/dist/MenuItem.js +1 -1
  135. package/dist/Modal.cjs +1 -1
  136. package/dist/Modal.js +1 -1
  137. package/dist/MultiSelectDropdown.cjs +1 -1
  138. package/dist/MultiSelectDropdown.js +1 -1
  139. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  140. package/dist/MultiSelectDropdownLookup.js +1 -1
  141. package/dist/NestedDropdownItem.cjs +1 -1
  142. package/dist/NestedDropdownItem.js +1 -1
  143. package/dist/NestedMenuItem.cjs +1 -1
  144. package/dist/NestedMenuItem.js +1 -1
  145. package/dist/NotificationContainer.cjs +1 -1
  146. package/dist/NotificationContainer.js +1 -1
  147. package/dist/NotificationMessage.cjs +1 -1
  148. package/dist/NotificationMessage.js +1 -1
  149. package/dist/NumberInput.cjs +1 -1
  150. package/dist/NumberInput.js +1 -1
  151. package/dist/PasswordInput.cjs +1 -1
  152. package/dist/PasswordInput.js +1 -1
  153. package/dist/PopoverContent.cjs +1 -1
  154. package/dist/PopoverContent.js +1 -1
  155. package/dist/ProductsWithBannerSection.cjs +1 -1
  156. package/dist/ProductsWithBannerSection.js +3 -3
  157. package/dist/ProgressBar.cjs +1 -1
  158. package/dist/ProgressBar.js +1 -1
  159. package/dist/QuattroCardsSection.cjs +1 -1
  160. package/dist/QuattroCardsSection.js +1 -1
  161. package/dist/QuizSection.cjs +1 -1
  162. package/dist/QuizSection.js +1 -1
  163. package/dist/RadioInput.cjs +1 -1
  164. package/dist/RadioInput.js +1 -1
  165. package/dist/RangeSlider.cjs +1 -1
  166. package/dist/RangeSlider.js +1 -1
  167. package/dist/ReviewsSection.cjs +1 -1
  168. package/dist/ReviewsSection.js +2 -2
  169. package/dist/SalesCampaignsSection.cjs +39 -22
  170. package/dist/SalesCampaignsSection.js +307 -248
  171. package/dist/Separator.cjs +1 -1
  172. package/dist/Separator.js +1 -1
  173. package/dist/ShopCardsSection.cjs +1 -1
  174. package/dist/ShopCardsSection.js +2 -2
  175. package/dist/Sidebar.cjs +1 -1
  176. package/dist/Sidebar.js +1 -1
  177. package/dist/SimpleCategoriesSection.cjs +1 -1
  178. package/dist/SimpleCategoriesSection.js +3 -3
  179. package/dist/SimpleProductsSection.cjs +1 -1
  180. package/dist/SimpleProductsSection.js +2 -2
  181. package/dist/Spinner.cjs +1 -1
  182. package/dist/Spinner.js +1 -1
  183. package/dist/StatsSection.cjs +1 -1
  184. package/dist/StatsSection.js +1 -1
  185. package/dist/Surface.cjs +1 -1
  186. package/dist/Surface.js +1 -1
  187. package/dist/SwipeableDrawer.cjs +1 -1
  188. package/dist/SwipeableDrawer.js +1 -1
  189. package/dist/TabItem.cjs +1 -1
  190. package/dist/TabItem.js +1 -1
  191. package/dist/Table.cjs +1 -1
  192. package/dist/Table.js +1 -1
  193. package/dist/TableView.cjs +1 -1
  194. package/dist/TableView.js +1 -1
  195. package/dist/TextAreaInput.cjs +1 -1
  196. package/dist/TextAreaInput.js +1 -1
  197. package/dist/TextInput.cjs +1 -1
  198. package/dist/TextInput.js +1 -1
  199. package/dist/ThemeProvider.cjs +1 -1
  200. package/dist/ThemeProvider.js +1 -1
  201. package/dist/TimeInput.cjs +1 -1
  202. package/dist/TimeInput.js +1 -1
  203. package/dist/Toggle.cjs +1 -1
  204. package/dist/Toggle.js +1 -1
  205. package/dist/TreeMenuSeparator.cjs +1 -1
  206. package/dist/TreeMenuSeparator.js +1 -1
  207. package/dist/UploadedFile.cjs +1 -1
  208. package/dist/UploadedFile.js +1 -1
  209. package/dist/UrgentSaleProductsSection.cjs +1 -1
  210. package/dist/UrgentSaleProductsSection.js +1 -1
  211. package/dist/{index-YGcWbzeb.js → index-3TFXgZHA.js} +1 -1
  212. package/dist/{index-BgRyIsRu.js → index-BRciSeV3.js} +1 -1
  213. package/dist/{index-B2pFbNKc.js → index-CU0KClNt.js} +2 -2
  214. package/dist/{index-Cg4t3q_p.cjs → index-CUu7XMJo.cjs} +1 -1
  215. package/dist/{index-DCFJmN23.cjs → index-D0xZLbyl.cjs} +1 -1
  216. package/dist/{index-C9GK00PM.cjs → index-DgGmKhrL.cjs} +1 -1
  217. package/dist/{index-BvSNRLNa.cjs → index-DiIeF_76.cjs} +1 -1
  218. package/dist/{index-BBMleFo5.js → index-DtyNsg2r.js} +1 -1
  219. package/dist/{index-CTJpJFtr.js → index-EE-IJbC3.js} +2 -2
  220. package/dist/{index-B_HNDmXL.cjs → index-zhTWvtwE.cjs} +1 -1
  221. package/dist/index.cjs +1 -1
  222. package/dist/index.js +37 -35
  223. package/dist/{skeleton-CoErfoMc.cjs → skeleton-BP2LF7xv.cjs} +1 -1
  224. package/dist/{skeleton-BXY2S7mC.cjs → skeleton-Bl1q9Yqe.cjs} +1 -1
  225. package/dist/{skeleton-DWZNwK33.js → skeleton-PMiYQLOs.js} +1 -1
  226. package/dist/{skeleton-C_gJZRTs.js → skeleton-fVxknFUi.js} +2 -2
  227. package/dist/{style-JqDQj4jh.cjs → style-C_BRvopE.cjs} +1 -1
  228. package/dist/{style-08foMKSd.js → style-XXDQBreL.js} +1 -1
  229. package/dist/{suspense-categories-card-simple-BbtBbuWb.js → suspense-categories-card-simple-Bln7_MpK.js} +1 -1
  230. package/dist/{suspense-categories-card-simple-CK7XDK4k.cjs → suspense-categories-card-simple-CWahURI0.cjs} +1 -1
  231. package/dist/{suspense-large-BM9s_kZP.js → suspense-large-DrD8xVZi.js} +1 -1
  232. package/dist/{suspense-large-CtcwWswP.cjs → suspense-large-PHdzP1Ln.cjs} +1 -1
  233. package/dist/{suspense-product-card-detailed-LcBMp1iw.cjs → suspense-product-card-detailed-ByW7-U8H.cjs} +1 -1
  234. package/dist/{suspense-product-card-detailed-PArA5O4M.js → suspense-product-card-detailed-Crkoym56.js} +2 -2
  235. package/dist/{suspense-product-card-simple-Z-FddSb-.js → suspense-product-card-simple-BT5gv-kY.js} +1 -1
  236. package/dist/{suspense-product-card-simple-CJwnghtt.cjs → suspense-product-card-simple-f0s0POCq.cjs} +1 -1
  237. package/dist/tag-Bov1gw34.cjs +173 -0
  238. package/dist/tag-CtleOqEC.js +204 -0
  239. package/dist/{utils-BbgAIA9N.js → utils-BPdU4_1q.js} +7 -7
  240. package/dist/{utils-CZynEOC_.cjs → utils-DmMdPm9O.cjs} +2 -2
  241. package/package.json +3 -2
  242. package/vite.config.js +4 -0
@@ -1,176 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),f=require("react"),n=require("./index-BpbMKBf_.cjs"),q=require("./Chip.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),N=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./Icon.cjs"),P=require("./IconButton.cjs"),C=require("./Button.cjs"),M=b.styled.div`
2
- display: flex;
3
- gap: 0.75rem;
4
- align-items: center;
5
- align-content: center;
6
-
7
- & .tags__item {
8
- color: var(--gray-900, #0c1520);
9
- background: var(--gray-100, #f3f6fb);
10
- font-size: 0.875rem;
11
- font-style: normal;
12
- font-weight: 400;
13
- line-height: 1.25rem;
14
- letter-spacing: -0.0056rem;
15
- padding: 0.5rem 0.75rem;
16
-
17
- &.active {
18
- color: var(--white, #fff);
19
- background: var(--gray-900, #0c1520);
20
- font-weight: 500;
21
-
22
- &:hover {
23
- color: var(--white, #fff);
24
- background: var(--gray-900, #0c1520);
25
- }
26
- }
27
-
28
- &:hover {
29
- background: var(--gray-200, #e4e9f0);
30
- }
31
-
32
- &:focus {
33
- outline: none;
34
- }
35
- }
36
-
37
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
38
- width: 100%;
39
- overflow-x: auto;
40
- white-space: nowrap;
41
-
42
- -webkit-overflow-scrolling: touch;
43
- ::-webkit-scrollbar {
44
- -webkit-appearance: none;
45
- }
46
- -ms-overflow-style: none;
47
- /* Internet Explorer 10+ */
48
- scrollbar-width: none;
49
- /* Firefox */
50
-
51
- &::-webkit-scrollbar {
52
- display: none;
53
- /* Safari and Chrome */
54
- }
55
- }
56
- `,E=b.styled.div`
57
- display: flex;
58
- gap: 1.25rem;
59
- width: 100%;
60
-
61
- & .section__column {
62
- display: flex;
63
- flex-direction: column;
64
- gap: 1.25rem;
65
- width: 100%;
66
- }
67
-
68
- & .section__show-more {
69
- color: var(--neutral-600, #0f2a46);
70
- font-size: 0.875rem;
71
- font-style: normal;
72
- font-weight: 500;
73
- line-height: 1.25rem;
74
- letter-spacing: -0.0056rem;
75
-
76
- &:focus {
77
- outline: none;
78
- }
79
- }
80
-
81
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
82
- flex-direction: column;
83
- }
84
- `,$=b.styled.div`
85
- width: 100%;
86
- height: fit-content;
87
- background: var(--white, #fff);
88
- border: 1px solid var(--gray-100, #f3f6fb);
89
- display: flex;
90
- flex-direction: column;
91
- gap: 0.75rem;
92
- padding: 1rem;
93
- border-radius: 0.75rem;
94
-
95
- &:hover {
96
- cursor: pointer;
97
- }
98
-
99
- &.expanded {
100
- border: 1px solid #ff7621;
101
- box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.16),
102
- 0 1px 4px 0 rgba(255, 118, 33, 0.5) inset;
103
- }
104
-
105
- & .card__heading {
106
- display: flex;
107
- justify-content: space-between;
108
- width: 100%;
109
-
110
- & .card__title {
111
- color: var(--neutral-600, #0f2a46);
112
- font-size: 1rem;
113
- font-style: normal;
114
- font-weight: 500;
115
- line-height: 1.5rem;
116
- }
117
-
118
- & .card__icon {
119
- color: var(--neutral-600, #0f2a46);
120
- }
121
- }
122
-
123
- & .card__description {
124
- color: var(--neutral-400, #47607b);
125
- font-size: 0.875rem;
126
- font-style: normal;
127
- font-weight: 400;
128
- line-height: 1.25rem;
129
- letter-spacing: 0.0156rem;
130
- }
131
-
132
- & .card__impression {
133
- display: flex;
134
- align-items: center;
135
- gap: 0.75rem;
136
-
137
- & .imppression__question {
138
- color: var(--gray-500, #7a8594);
139
- font-size: 0.75rem;
140
- font-style: normal;
141
- font-weight: 500;
142
- line-height: 1rem;
143
- letter-spacing: 0.0313rem;
144
- }
145
-
146
- & .impression__actions {
147
- display: flex;
148
- gap: 0.5rem;
149
-
150
- button {
151
- color: var(--gray-600, #676e79);
152
-
153
- &:focus {
154
- outline: none;
155
- }
156
- }
157
- }
158
-
159
- &.feedback {
160
- gap: 0.25rem;
161
- }
162
- }
163
-
164
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
165
- & .card__impression {
166
- justify-content: space-between;
167
-
168
- &.feedback {
169
- justify-content: flex-start;
170
- }
171
- }
172
- }
173
- `,I=f.forwardRef(({tags:i=[],allTagText:c,selectedTagCode:l=null,onSelectTag:h=()=>{}},d)=>e.jsx(M,{children:[{name:c,code:null},...i].map((t,p)=>e.jsx(q,{label:t==null?void 0:t.name,borderRadius:"curved",color:"neutral",className:`tags__item ${l===(t==null?void 0:t.code)?"active":""}`,onClick:()=>{h(t)}},`faq-section-tag__${p+1}`))}));I.propTypes={tags:n.PropTypes.array,allTagText:n.PropTypes.string,onSelectTag:n.PropTypes.func};const w=({title:i,description:c,questionText:l,feedbackText:h,impressions:d=!1,onSelectItem:t=()=>{},onImpressed:p=()=>{}})=>{const[u,a]=f.useState(!1),[_,m]=f.useState(!1),x=()=>{a(o=>!o),t()},s=(o,g)=>{o==null||o.stopPropagation(),m(!0),p(g)};return e.jsxs($,{className:u?"expanded":"",onClick:x,children:[e.jsxs("div",{className:"card__heading",children:[e.jsx("div",{className:"card__title",children:i}),e.jsx(j,{icon:u?" mng-lnc-subtract":" mng-lnc-add",sizeInUnits:"1.25rem",className:"card__icon"})]}),u&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"card__description",children:c}),d&&e.jsx(e.Fragment,{children:_?e.jsxs("div",{className:"card__impression feedback",children:[e.jsx(j,{icon:" mng-lnc-checkmark--outline",sizeInUnits:"1.25rem",color:"success"}),e.jsx("div",{className:"imppression__question",children:h})]}):e.jsxs("div",{className:"card__impression",children:[e.jsx("div",{className:"imppression__question",children:l}),e.jsxs("div",{className:"impression__actions",children:[e.jsx(P,{icon:" mng-lnc-thumbs-up",borderRadius:"curved",btnType:"outline",onClick:o=>s(o,!0)}),e.jsx(P,{icon:" mng-lnc-thumbs-down",borderRadius:"curved",btnType:"outline",onClick:o=>s(o,!1)})]})]})})]})]})},S=f.forwardRef(({items:i=[],questionText:c,feedbackText:l,showMoreText:h,impressions:d=!1,onSelectItem:t=()=>{},onImpressed:p=()=>{}},u)=>{const a=N.useDetectMobile(),[_,m]=f.useState(!1),x=()=>{m(o=>!o)},s=f.useMemo(()=>{if(a)return i==null?void 0:i.map((r,y)=>e.jsx(w,{title:r==null?void 0:r.title,description:r==null?void 0:r.description,questionText:c,feedbackText:l,impressions:d,onSelectItem:()=>t(r),onImpressed:T=>p(r,T)},`faq-section-item__${y+1}`));const o=[],g=[];return i==null||i.forEach((r,y)=>{y%2===0?o.push(e.jsx(w,{title:r==null?void 0:r.title,description:r==null?void 0:r.description,questionText:c,feedbackText:l,impressions:d,onSelectItem:()=>t(r),onImpressed:T=>p(r,T)},`faq-section-item__${y+1}`)):g.push(e.jsx(w,{title:r==null?void 0:r.title,description:r==null?void 0:r.description,questionText:c,feedbackText:l,impressions:d,onSelectItem:()=>t(r),onImpressed:T=>p(r,T)},`faq-section-item__${y+1}`))}),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section__column",children:o}),e.jsx("div",{className:"section__column",children:g})]})},[i,a]);return e.jsx(E,{children:a?_?s:e.jsxs(e.Fragment,{children:[s==null?void 0:s.slice(0,4),(s==null?void 0:s.length)>4&&e.jsx(C,{text:h,btnType:"basic",color:"neutral",className:"section__show-more",onClick:x})]}):s})});w.propTypes={title:n.PropTypes.string,description:n.PropTypes.string,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};S.propTypes={items:n.PropTypes.array,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};const F=b.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),h=require("react"),n=require("./index-BpbMKBf_.cjs"),P=require("./tag-Bov1gw34.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),q=require("./Icon.cjs"),b=require("./IconButton.cjs"),I=require("./Button.cjs"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./consts-goSZX3xP.cjs"),m=({title:t,description:i,questionText:a,feedbackText:g,impressions:l=!1,onSelectItem:p=()=>{},onImpressed:d=()=>{}})=>{const[u,c]=h.useState(!1),[x,f]=h.useState(!1),y=()=>{c(o=>!o),p()},r=(o,_)=>{o==null||o.stopPropagation(),f(!0),d(_)};return e.jsxs(P.ItemContainer,{className:u?"expanded":"",onClick:y,children:[e.jsxs("div",{className:"card__heading",children:[e.jsx("div",{className:"card__title",children:t}),e.jsx(q,{icon:u?" mng-lnc-subtract":" mng-lnc-add",sizeInUnits:"1.25rem",className:"card__icon"})]}),u&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"card__description",children:i}),l&&e.jsx(e.Fragment,{children:x?e.jsxs("div",{className:"card__impression feedback",children:[e.jsx(q,{icon:" mng-lnc-checkmark--outline",sizeInUnits:"1.25rem",color:"success"}),e.jsx("div",{className:"imppression__question",children:g})]}):e.jsxs("div",{className:"card__impression",children:[e.jsx("div",{className:"imppression__question",children:a}),e.jsxs("div",{className:"impression__actions",children:[e.jsx(b,{icon:" mng-lnc-thumbs-up",borderRadius:"curved",btnType:"outline",onClick:o=>r(o,!0)}),e.jsx(b,{icon:" mng-lnc-thumbs-down",borderRadius:"curved",btnType:"outline",onClick:o=>r(o,!1)})]})]})})]})]})},v=h.forwardRef(({items:t=[],questionText:i,feedbackText:a,showMoreText:g,impressions:l=!1,onSelectItem:p=()=>{},onImpressed:d=()=>{}},u)=>{const c=w.useDetectMobile(),[x,f]=h.useState(!1),y=()=>{f(o=>!o)},r=h.useMemo(()=>{if(c)return t==null?void 0:t.map((s,T)=>e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${T+1}`));const o=[],_=[];return t==null||t.forEach((s,T)=>{T%2===0?o.push(e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${T+1}`)):_.push(e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${T+1}`))}),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section__column",children:o}),e.jsx("div",{className:"section__column",children:_})]})},[t,c]);return e.jsx(P.ItemsContainer,{children:c?x?r:e.jsxs(e.Fragment,{children:[r==null?void 0:r.slice(0,4),(r==null?void 0:r.length)>4&&e.jsx(I,{text:g,btnType:"basic",color:"neutral",className:"section__show-more",onClick:y})]}):r})});m.propTypes={title:n.PropTypes.string,description:n.PropTypes.string,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};v.propTypes={items:n.PropTypes.array,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};const M=N.styled.div`
174
2
  display: flex;
175
3
  flex-direction: column;
176
4
  align-items: center;
@@ -202,7 +30,7 @@
202
30
  line-height: 1.5rem;
203
31
  }
204
32
 
205
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
33
+ @media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
206
34
  & .section__title {
207
35
  font-size: 1rem;
208
36
  font-weight: 500;
@@ -216,4 +44,4 @@
216
44
  letter-spacing: 0.25px;
217
45
  }
218
46
  }
219
- `,k=f.forwardRef(({title:i,description:c,questionText:l="What do you think about this answer?",feedbackText:h="Thank you for feedback!",showMoreText:d="Show more",allTagText:t="All",impressions:p=!1,tags:u=[],items:a=[],onSelectItem:_=()=>{},onImpressed:m=()=>{}},x)=>{const[s,o]=f.useState(null),g=r=>{o(r==null?void 0:r.code)};return e.jsxs(F,{ref:x,children:[e.jsxs("div",{className:"section__heading",children:[i&&e.jsx("div",{className:"section__title",children:i}),c&&e.jsx("div",{className:"section__description",children:c})]}),e.jsx(I,{tags:u,allTagText:t,selectedTagCode:s,onSelectTag:g}),e.jsx(S,{items:s===null?a:a==null?void 0:a.filter(r=>(r==null?void 0:r.tagCode)===s),questionText:l,feedbackText:h,showMoreText:d,impressions:p,onSelectItem:_,onImpressed:m},`faq-section-items__${s}`)]})});k.propTypes={title:n.PropTypes.string,description:n.PropTypes.string,tags:n.PropTypes.array,items:n.PropTypes.array,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,allTagText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};module.exports=k;
47
+ `,S=h.forwardRef(({title:t,description:i,questionText:a="What do you think about this answer?",feedbackText:g="Thank you for feedback!",showMoreText:l="Show more",allTagText:p="All",impressions:d=!1,tags:u=[],items:c=[],onSelectItem:x=()=>{},onImpressed:f=()=>{}},y)=>{const[r,o]=h.useState(null),_=s=>{o(s==null?void 0:s.code)};return e.jsxs(M,{ref:y,children:[e.jsxs("div",{className:"section__heading",children:[t&&e.jsx("div",{className:"section__title",children:t}),i&&e.jsx("div",{className:"section__description",children:i})]}),e.jsx(P.FaqSectionTags,{tags:u,allTagText:p,selectedTagCode:r,onSelectTag:_}),e.jsx(v,{items:r===null?c:c==null?void 0:c.filter(s=>(s==null?void 0:s.tagCode)===r),questionText:a,feedbackText:g,showMoreText:l,impressions:d,onSelectItem:x,onImpressed:f},`faq-section-items__${r}`)]})});S.propTypes={title:n.PropTypes.string,description:n.PropTypes.string,tags:n.PropTypes.array,items:n.PropTypes.array,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,allTagText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};module.exports=S;