@bytebrand/fe-ui-core 4.2.125 → 4.2.126

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 (1052) hide show
  1. package/.editorconfig +10 -10
  2. package/.gitlab-ci.yml +62 -62
  3. package/.storybook/addons.js +4 -4
  4. package/.storybook/config.js +64 -64
  5. package/.storybook/postcss.config.js +6 -6
  6. package/.storybook/preview-head.html +9 -9
  7. package/.storybook/webpack.config.js +130 -130
  8. package/__tests__/components/Checkout/OrderOverviewItem/OrderOverviewItem.test.tsx +42 -42
  9. package/__tests__/components/Checkout/PaymentTypeCard/PaymentTypeCard.test.tsx +49 -49
  10. package/__tests__/components/Checkout/RadioGroup.test.tsx +95 -95
  11. package/__tests__/components/Checkout/ServiceCardWrapper.test.tsx +53 -53
  12. package/__tests__/components/Checkout/Switcher.test.tsx +43 -43
  13. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/AdditionalOrderInfo.test.tsx +127 -127
  14. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusCar.test.tsx +58 -58
  15. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusCard.test.tsx +74 -74
  16. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusSection.test.tsx +62 -62
  17. package/__tests__/components/UserDasboardPage/sections/RequestedCarsSection/RequestedCarsSection.test.tsx +117 -117
  18. package/__tests__/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.test.tsx +58 -58
  19. package/__tests__/components/VehicleSmallCard/VehicleInfo.test.tsx +87 -87
  20. package/__tests__/components/VehicleSmallCard/VehicleTitle.test.tsx +90 -90
  21. package/__tests__/components/_common/Badge/Badge.test.tsx +15 -15
  22. package/__tests__/components/_common/IconSVG/IconSVG.test.tsx +22 -22
  23. package/__tests__/components/_common/Image/Image.test.tsx +82 -82
  24. package/__tests__/components/_common/MaterialAutocomplete/MaterialAutocomplete.test.tsx +48 -48
  25. package/__tests__/components/_common/MaterialDatePicker/MaterialDatePicker.test.tsx +54 -54
  26. package/__tests__/components/_common/MaterialField/MaterialField.test.tsx +58 -58
  27. package/__tests__/components/_common/StarButton/StarButton.test.tsx +45 -45
  28. package/__tests__/mockedData/financingConfig.js +201 -201
  29. package/__tests__/mockedData/mockedPendingRequestedCar.js +68 -68
  30. package/__tests__/utils/CommonUtils/addPrefixToKeys.test.ts +18 -18
  31. package/__tests__/utils/CommonUtils/arrToObj.test.js +32 -32
  32. package/__tests__/utils/CommonUtils/checkRangeValuesOnEqual.test.ts +16 -16
  33. package/__tests__/utils/CommonUtils/fixNumber.test.ts +19 -19
  34. package/__tests__/utils/CommonUtils/formatMileage.test.ts +8 -8
  35. package/__tests__/utils/CommonUtils/getChipFilterValue.test.ts +22 -22
  36. package/__tests__/utils/CommonUtils/getFormattedNumber.test.ts +18 -18
  37. package/__tests__/utils/CommonUtils/getFormattedPrice.test.ts +19 -19
  38. package/__tests__/utils/CommonUtils/getGroupValuesForQuery.test.ts +51 -51
  39. package/__tests__/utils/CommonUtils/getOfferSliders.test.ts +61 -61
  40. package/__tests__/utils/CommonUtils/getPriceRating.test.ts +26 -26
  41. package/__tests__/utils/CommonUtils/getPriceRatingConfig.test.ts +33 -33
  42. package/__tests__/utils/CommonUtils/preloadNearbyImages.test.ts +8 -8
  43. package/__tests__/utils/CommonUtils/sliceLessThan.test.ts +23 -23
  44. package/__tests__/utils/CommonUtils/sliceMoreThan.test.ts +23 -23
  45. package/common.ts +164 -164
  46. package/feWpComponents.ts +25 -25
  47. package/index.ts +4 -4
  48. package/jest.config.js +43 -43
  49. package/landing.ts +38 -38
  50. package/media/images/advantages/advantage_cart.svg +4 -4
  51. package/media/images/advantages/advantage_check.svg +4 -4
  52. package/media/images/advantages/advantage_like.svg +10 -10
  53. package/media/images/advantages/advantage_secure.svg +6 -6
  54. package/media/images/check-blue.svg +40 -40
  55. package/media/images/raiting-star.svg +3 -3
  56. package/media/images/raiting-stars-min.svg +7 -7
  57. package/media/images/refresh-button.svg +49 -49
  58. package/media/images/slider-arrow-big.svg +11 -11
  59. package/media/images/user-icon.svg +16 -16
  60. package/media/locales/de/promoSlider.json +25 -25
  61. package/media/locales/en/promoSlider.json +25 -25
  62. package/media/svg/common/arrow_breadcrumps.svg +3 -3
  63. package/media/svg/common/home.svg +8 -8
  64. package/media/svg/common/whyAutodeIconSet-F.svg +9 -9
  65. package/media/svg/common/whyAutodeIconSet-G.svg +8 -8
  66. package/media/svg/common/whyAutodeIconSet-Q.svg +6 -6
  67. package/media/svg/common/whyAutodeIconSet-R.svg +9 -9
  68. package/media/svg/infoBlocks/whyAutodeIconSet-F.svg +9 -9
  69. package/media/svg/infoBlocks/whyAutodeIconSet-G.svg +8 -8
  70. package/media/svg/infoBlocks/whyAutodeIconSet-Q.svg +6 -6
  71. package/media/svg/infoBlocks/whyAutodeIconSet-R.svg +9 -9
  72. package/media/svg/usp/icon1.svg +16 -16
  73. package/media/svg/usp/icon2.svg +13 -13
  74. package/media/svg/usp/icon3.svg +10 -10
  75. package/media/svg/usp/icon4.svg +14 -14
  76. package/package.json +125 -125
  77. package/profile.ts +1 -1
  78. package/setupTests.js +7 -7
  79. package/source/components/AccardionSection/AccardionSection.styl +45 -45
  80. package/source/components/AccardionSection/AccardionSection.tsx +47 -47
  81. package/source/components/AccordionWidget/AccordionWidget.styl +205 -205
  82. package/source/components/AccordionWidget/AccordionWidget.tsx +223 -223
  83. package/source/components/AdvantageItem/AdvantageItem.story.js +23 -23
  84. package/source/components/AdvantageItem/AdvantageItem.styl +47 -47
  85. package/source/components/AdvantageItem/AdvantageItem.tsx +26 -26
  86. package/source/components/Alternative/Dealer.story.js +31 -31
  87. package/source/components/Alternative/Dealer.story.styl +2 -2
  88. package/source/components/Alternative/DealerInfo.styl +116 -116
  89. package/source/components/Alternative/DealerInfo.tsx +171 -171
  90. package/source/components/Breadcrumbs/Breadcrumbs.story.js +40 -40
  91. package/source/components/Breadcrumbs/Breadcrumbs.styl +136 -136
  92. package/source/components/Breadcrumbs/Breadcrumbs.tsx +93 -93
  93. package/source/components/Breadcrumbs/FirstInfoBlock/FirstInfoBlock.story.js +45 -45
  94. package/source/components/Breadcrumbs/FirstInfoBlock/FirstInfoBlock.styl +54 -54
  95. package/source/components/Breadcrumbs/FirstInfoBlock/FirstInfoBlock.tsx +17 -17
  96. package/source/components/Checkout/CheckoutStepper/CheckoutStepper.styl +221 -221
  97. package/source/components/Checkout/CheckoutStepper/CheckoutStepper.tsx +70 -70
  98. package/source/components/Checkout/CheckoutStepper/CheckoutStepperClasses.js +173 -173
  99. package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.story.js +243 -243
  100. package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.story.styl +20 -20
  101. package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.styl +36 -36
  102. package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.tsx +53 -53
  103. package/source/components/Checkout/RadioCards/AdditionalServiceCard/ServiceCardWrapper.styl +201 -201
  104. package/source/components/Checkout/RadioCards/AdditionalServiceCard/ServiceCardWrapper.tsx +212 -212
  105. package/source/components/Checkout/RadioCards/ContentCard/AdditionalServiceContent.styl +30 -30
  106. package/source/components/Checkout/RadioCards/ContentCard/AdditionalServiceContent.tsx +62 -62
  107. package/source/components/Checkout/RadioCards/ContentCard/VehicleDeliveryContent.styl +73 -73
  108. package/source/components/Checkout/RadioCards/ContentCard/VehicleDeliveryContent.tsx +61 -61
  109. package/source/components/Checkout/RadioCards/PaymentTypeCard/PaymentTypeCard.styl +193 -193
  110. package/source/components/Checkout/RadioCards/PaymentTypeCard/PaymentTypeCard.tsx +181 -181
  111. package/source/components/Checkout/RadioCards/RadioCheckout.styl +158 -158
  112. package/source/components/Checkout/RadioCards/RadioCheckout.tsx +178 -178
  113. package/source/components/Checkout/RadioCards/RadioGroupCheckout.story.js +105 -105
  114. package/source/components/Checkout/RadioCards/RadioGroupCheckout.story.styl +37 -37
  115. package/source/components/Checkout/Switcher/Switcher.story.js +41 -41
  116. package/source/components/Checkout/Switcher/Switcher.story.styl +1 -1
  117. package/source/components/Checkout/Switcher/Switcher.styled.tsx +53 -53
  118. package/source/components/Checkout/Switcher/Switcher.tsx +48 -48
  119. package/source/components/CompactSearchWidget/CompactSearchFields/CompactSearchFields.styl +176 -176
  120. package/source/components/CompactSearchWidget/CompactSearchFields/CompactSearchFields.tsx +477 -477
  121. package/source/components/CompactSearchWidget/CompactSearchWidget.story.js +187 -187
  122. package/source/components/CompactSearchWidget/CompactSearchWidget.styl +43 -43
  123. package/source/components/CompactSearchWidget/CompactSearchWidget.tsx +165 -165
  124. package/source/components/ContactForm/ContactForm.story.js +93 -93
  125. package/source/components/ContactForm/ContactForm.styl +260 -260
  126. package/source/components/ContactForm/ContactForm.tsx +588 -588
  127. package/source/components/ContactForm/WpContactForm.tsx +287 -287
  128. package/source/components/ContactInfo/ContactInfo.story.js +58 -58
  129. package/source/components/ContactInfo/ContactInfo.styl +22 -22
  130. package/source/components/ContactInfo/ContactInfo.tsx +161 -161
  131. package/source/components/ContactInfo/TemporaryTranslation.ts +11 -11
  132. package/source/components/CustomerQuote/CustomerQuote.story.js +41 -41
  133. package/source/components/CustomerQuote/CustomerQuote.styl +79 -79
  134. package/source/components/CustomerQuote/CustomerQuote.tsx +68 -68
  135. package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.story.js +73 -73
  136. package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.story.styl +4 -4
  137. package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.styl +46 -46
  138. package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.tsx +79 -79
  139. package/source/components/CustomerQuotesSlider/SliderArrow.tsx +20 -20
  140. package/source/components/FormattedNumber/FormattedNumber.story.js +114 -114
  141. package/source/components/FormattedNumber/FormattedNumber.styl +1 -1
  142. package/source/components/FormattedNumber/FormattedNumber.tsx +90 -90
  143. package/source/components/ImageSettings/EditableOptionsTable/CustomCheckbox/CustomCheckbox.styl +7 -7
  144. package/source/components/ImageSettings/EditableOptionsTable/CustomCheckbox/CustomCheckbox.tsx +30 -30
  145. package/source/components/ImageSettings/EditableOptionsTable/EditableOptionsTable.styl +122 -122
  146. package/source/components/ImageSettings/EditableOptionsTable/EditableOptionsTable.tsx +199 -199
  147. package/source/components/ImageSettings/EditableOptionsTable/ImageIcon/ImageIcon.styl +3 -3
  148. package/source/components/ImageSettings/EditableOptionsTable/ImageIcon/ImageIcon.tsx +15 -15
  149. package/source/components/ImageSettings/OptionsTable/OptionsTable.styl +47 -47
  150. package/source/components/ImageSettings/OptionsTable/OptionsTable.tsx +122 -122
  151. package/source/components/ImageSettings/PricePlan/PricePlan.styl +63 -63
  152. package/source/components/ImageSettings/PricePlan/PricePlan.tsx +32 -32
  153. package/source/components/ImageSettings/index.ts +42 -42
  154. package/source/components/ImageSettings/story.js +1212 -1212
  155. package/source/components/InfoBlocks/FirstInfoBlock/FirstInfoBlock.styl +33 -33
  156. package/source/components/InfoBlocks/FirstInfoBlock/FirstInfoBlock.tsx +48 -48
  157. package/source/components/InfoBlocks/FirstInfoBlock/FirstInfoBlockItem/FirstInfoBlockItem.styl +68 -68
  158. package/source/components/InfoBlocks/FirstInfoBlock/FirstInfoBlockItem/FirstInfoBlockItem.tsx +21 -21
  159. package/source/components/InfoBlocks/InfoBlockWrapper/InfoBlockWrapper.styl +41 -41
  160. package/source/components/InfoBlocks/InfoBlockWrapper/InfoBlockWrapper.tsx +45 -45
  161. package/source/components/InfoBlocks/InfoBlockWrapper.story.js +101 -101
  162. package/source/components/InfoBlocks/InfoBlockWrapper.story.styl +45 -45
  163. package/source/components/InfoBlocks/PricingToolBlock/PricingTool.styl +6 -6
  164. package/source/components/InfoBlocks/PricingToolBlock/PricingTool.tsx +29 -29
  165. package/source/components/InfoBlocks/PricingToolBlock/PricingToolBlock.styl +45 -45
  166. package/source/components/InfoBlocks/PricingToolBlock/PricingToolBlock.tsx +81 -81
  167. package/source/components/InfoBlocks/ServicesBlock/ServiceBlockItem.styl +47 -47
  168. package/source/components/InfoBlocks/ServicesBlock/ServiceBlockItem.tsx +25 -25
  169. package/source/components/OfferDetailedSection/OfferDetailedSection.styl +31 -31
  170. package/source/components/OfferDetailedSection/OfferDetailedSection.tsx +100 -100
  171. package/source/components/OfferDetailedSection/partials/PanelConfig.styl +131 -131
  172. package/source/components/OfferDetailedSection/partials/PanelConfig.tsx +121 -121
  173. package/source/components/OfferPanel/AboAccordion/AboAccordion.styl +24 -24
  174. package/source/components/OfferPanel/AboAccordion/AboAccordion.tsx +128 -128
  175. package/source/components/OfferPanel/AboAccordion/AboColorOptions/AboColorOptions.styl +11 -11
  176. package/source/components/OfferPanel/AboAccordion/AboColorOptions/AboColorOptions.tsx +35 -35
  177. package/source/components/OfferPanel/AboAccordion/AboFaq/AboFaq.story.js +97 -97
  178. package/source/components/OfferPanel/AboAccordion/AboFaq/AboFaq.styl +20 -20
  179. package/source/components/OfferPanel/AboAccordion/AboFaq/AboFaq.tsx +25 -25
  180. package/source/components/OfferPanel/AboAccordion/AboIncludedServices/AboIncludedServices.styl +13 -13
  181. package/source/components/OfferPanel/AboAccordion/AboIncludedServices/AboIncludedServices.tsx +39 -39
  182. package/source/components/OfferPanel/MuiOfferPeriod/MuiOfferPeriod.theme.tsx +25 -25
  183. package/source/components/OfferPanel/MuiOfferPeriod/MuiOfferPeriod.tsx +73 -73
  184. package/source/components/OfferPanel/OfferCheckboxGroup/CheckboxContainer.tsx +140 -140
  185. package/source/components/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.styl +120 -120
  186. package/source/components/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.tsx +24 -24
  187. package/source/components/OfferPanel/OfferPanel.story.js +139 -139
  188. package/source/components/OfferPanel/OfferPanel.styl +193 -193
  189. package/source/components/OfferPanel/OfferPanel.tsx +81 -81
  190. package/source/components/OfferPanel/OfferPeriod/OfferPeriod.styl +24 -24
  191. package/source/components/OfferPanel/OfferPeriod/OfferPeriod.tsx +45 -45
  192. package/source/components/OfferPanel/RangeGroup/RangeGroup.story.js +35 -35
  193. package/source/components/OfferPanel/RangeGroup/RangeGroup.story.styl +2 -2
  194. package/source/components/OfferPanel/RangeGroup/RangeGroup.tsx +37 -37
  195. package/source/components/PriceRating/PriceRating.story.js +39 -39
  196. package/source/components/PriceRating/PriceRating.story.styl +1 -1
  197. package/source/components/PriceRating/PriceRating.styl +47 -47
  198. package/source/components/PriceRating/PriceRating.tsx +64 -64
  199. package/source/components/PriceRatingDetailed/PriceRatingDetailed.story.js +78 -78
  200. package/source/components/PriceRatingDetailed/PriceRatingDetailed.story.styl +11 -11
  201. package/source/components/PriceRatingDetailed/PriceRatingDetailed.styl +120 -120
  202. package/source/components/PriceRatingDetailed/PriceRatingDetailed.tsx +191 -191
  203. package/source/components/RateSearchValue/RateSearchValue.story.js +78 -78
  204. package/source/components/RateSearchValue/RateSearchValue.story.styl +1 -1
  205. package/source/components/RateSearchValue/RateSearchValue.styl +22 -22
  206. package/source/components/RateSearchValue/RateSearchValue.tsx +55 -55
  207. package/source/components/RateSearchWidget/RateSearchWidget.story.js +57 -57
  208. package/source/components/RateSearchWidget/RateSearchWidget.story.styl +12 -12
  209. package/source/components/RateSearchWidget/RateSearchWidget.styl +106 -106
  210. package/source/components/RateSearchWidget/RateSearchWidget.tsx +163 -163
  211. package/source/components/SearchFilters/FiltersFactory.story.js +273 -273
  212. package/source/components/SearchFilters/FiltersFactory.tsx +85 -85
  213. package/source/components/SearchFilters/Slider.styl +66 -66
  214. package/source/components/SearchFilters/common/Color/Color.styl +29 -29
  215. package/source/components/SearchFilters/common/Color/Color.tsx +60 -60
  216. package/source/components/SearchFilters/common/FilterBlock/FilterBlock.styl +39 -39
  217. package/source/components/SearchFilters/common/FilterBlock/FilterBlock.styled.tsx +28 -28
  218. package/source/components/SearchFilters/common/FilterBlock/FilterBlock.tsx +54 -54
  219. package/source/components/SearchFilters/common/FilterBlock/FilterBlockFactory.tsx +151 -151
  220. package/source/components/SearchFilters/common/RangeControlled/RangeControlled.tsx +155 -155
  221. package/source/components/SearchFilters/filters/AlternativeID.styl +98 -98
  222. package/source/components/SearchFilters/filters/AlternativeID.tsx +79 -79
  223. package/source/components/SearchFilters/filters/Consumption.styl +41 -41
  224. package/source/components/SearchFilters/filters/Consumption.tsx +52 -52
  225. package/source/components/SearchFilters/filters/Cost.styl +43 -43
  226. package/source/components/SearchFilters/filters/Cost.tsx +112 -112
  227. package/source/components/SearchFilters/filters/CubicCapacity.styl +30 -30
  228. package/source/components/SearchFilters/filters/CubicCapacity.tsx +134 -134
  229. package/source/components/SearchFilters/filters/Damaged.styl +1 -1
  230. package/source/components/SearchFilters/filters/Damaged.tsx +40 -40
  231. package/source/components/SearchFilters/filters/Doors.styl +18 -18
  232. package/source/components/SearchFilters/filters/Doors.tsx +113 -113
  233. package/source/components/SearchFilters/filters/DriveType.styl +22 -22
  234. package/source/components/SearchFilters/filters/DriveType.tsx +72 -72
  235. package/source/components/SearchFilters/filters/EmissionClass.tsx +35 -35
  236. package/source/components/SearchFilters/filters/EmissionSticker.styl +46 -46
  237. package/source/components/SearchFilters/filters/EmissionSticker.tsx +52 -52
  238. package/source/components/SearchFilters/filters/FirstRegistration.tsx +96 -96
  239. package/source/components/SearchFilters/filters/Fuel.styl +27 -27
  240. package/source/components/SearchFilters/filters/Fuel.tsx +75 -75
  241. package/source/components/SearchFilters/filters/Highlights.styl +38 -38
  242. package/source/components/SearchFilters/filters/Highlights.tsx +69 -69
  243. package/source/components/SearchFilters/filters/ImagesCount.tsx +66 -66
  244. package/source/components/SearchFilters/filters/InteriorColor.styl +29 -29
  245. package/source/components/SearchFilters/filters/InteriorColor.tsx +71 -71
  246. package/source/components/SearchFilters/filters/InteriorMaterial.styl +28 -28
  247. package/source/components/SearchFilters/filters/InteriorMaterial.tsx +72 -72
  248. package/source/components/SearchFilters/filters/MakeModel.styl +106 -106
  249. package/source/components/SearchFilters/filters/MakeModel.tsx +164 -164
  250. package/source/components/SearchFilters/filters/Mileage.tsx +108 -108
  251. package/source/components/SearchFilters/filters/OwnerID.styl +14 -14
  252. package/source/components/SearchFilters/filters/OwnerID.tsx +65 -65
  253. package/source/components/SearchFilters/filters/Owners.styl +23 -23
  254. package/source/components/SearchFilters/filters/Owners.tsx +72 -72
  255. package/source/components/SearchFilters/filters/Power.tsx +176 -176
  256. package/source/components/SearchFilters/filters/PriceDifference.tsx +67 -67
  257. package/source/components/SearchFilters/filters/Rate.styl +34 -34
  258. package/source/components/SearchFilters/filters/Rate.tsx +53 -53
  259. package/source/components/SearchFilters/filters/Seats.styl +31 -31
  260. package/source/components/SearchFilters/filters/Seats.tsx +53 -53
  261. package/source/components/SearchFilters/filters/StateOptions.styl +16 -16
  262. package/source/components/SearchFilters/filters/StateOptions.tsx +57 -57
  263. package/source/components/SearchFilters/filters/StateOptionsNew.styl +23 -23
  264. package/source/components/SearchFilters/filters/StateOptionsNew.tsx +72 -72
  265. package/source/components/SearchFilters/filters/Transmission.styl +20 -20
  266. package/source/components/SearchFilters/filters/Transmission.tsx +71 -71
  267. package/source/components/SearchFilters/filters/commonFilters.styl +93 -93
  268. package/source/components/SearchPage/ChipFilter/ChipFilter.styl +45 -45
  269. package/source/components/SearchPage/ChipFilter/ChipFilter.tsx +21 -21
  270. package/source/components/SearchPage/DropDown/DropDown.styl +99 -99
  271. package/source/components/SearchPage/DropDown/DropDown.tsx +52 -52
  272. package/source/components/SearchPage/DropDown/MultiDropDown.tsx +84 -84
  273. package/source/components/SearchPage/DropDown/index.ts +8 -8
  274. package/source/components/SearchPage/Filters/HistogramSlider.styl +77 -77
  275. package/source/components/SearchPage/Filters/MakeModel/MakeModel.story.js +11 -11
  276. package/source/components/SearchPage/Filters/MakeModel/MakeModel.styl +95 -95
  277. package/source/components/SearchPage/Filters/MakeModel/MakeModel.tsx +152 -152
  278. package/source/components/SearchPage/Pagination/Pagination.styl +95 -95
  279. package/source/components/SearchPage/Pagination/Pagination.tsx +89 -89
  280. package/source/components/SearchPage/SearchChips/SearchChips.styl +52 -52
  281. package/source/components/SearchPage/SearchChips/SearchChips.tsx +76 -76
  282. package/source/components/SearchPage/SearchTopBar/SearchTopBar.styl +109 -109
  283. package/source/components/SearchPage/SearchTopBar/SearchTopBar.tsx +116 -116
  284. package/source/components/SearchPageMobile/FiltersContainer/FiltersContainer.styl +44 -44
  285. package/source/components/SearchPageMobile/FiltersContainer/FiltersContainer.tsx +162 -162
  286. package/source/components/SearchPageMobile/FiltersDetailed/BodyType.styl +47 -47
  287. package/source/components/SearchPageMobile/FiltersDetailed/BodyType.tsx +85 -85
  288. package/source/components/SearchPageMobile/FiltersDetailed/Consumption.styl +48 -48
  289. package/source/components/SearchPageMobile/FiltersDetailed/Consumption.tsx +76 -76
  290. package/source/components/SearchPageMobile/FiltersDetailed/Doors.styl +52 -52
  291. package/source/components/SearchPageMobile/FiltersDetailed/Doors.tsx +103 -103
  292. package/source/components/SearchPageMobile/FiltersDetailed/FirstRegistration.tsx +69 -69
  293. package/source/components/SearchPageMobile/FiltersDetailed/Fuel.styl +31 -31
  294. package/source/components/SearchPageMobile/FiltersDetailed/Fuel.tsx +83 -83
  295. package/source/components/SearchPageMobile/FiltersDetailed/HistogramSlider.styl +100 -100
  296. package/source/components/SearchPageMobile/FiltersDetailed/MakeModel.styl +95 -95
  297. package/source/components/SearchPageMobile/FiltersDetailed/MakeModel.tsx +171 -171
  298. package/source/components/SearchPageMobile/FiltersDetailed/MakeModelExclude.styl +112 -112
  299. package/source/components/SearchPageMobile/FiltersDetailed/MakeModelExclude.tsx +122 -122
  300. package/source/components/SearchPageMobile/FiltersDetailed/Mileage.tsx +80 -80
  301. package/source/components/SearchPageMobile/FiltersDetailed/Power.tsx +116 -116
  302. package/source/components/SearchPageMobile/FiltersDetailed/Price.tsx +129 -129
  303. package/source/components/SearchPageMobile/FiltersDetailed/Rate.tsx +252 -252
  304. package/source/components/SearchPageMobile/FiltersDetailed/Seats.styl +41 -41
  305. package/source/components/SearchPageMobile/FiltersDetailed/Seats.tsx +85 -85
  306. package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.story.js +834 -834
  307. package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.story.styl +40 -40
  308. package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.styl +37 -37
  309. package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.tsx +130 -130
  310. package/source/components/SearchWidget/ColorWidget/BodyColorWidget.styl +54 -54
  311. package/source/components/SearchWidget/ColorWidget/BodyColorWidget.tsx +122 -122
  312. package/source/components/SearchWidget/DriveTransmissionWidget/DriveTransmissionWidget.styl +17 -17
  313. package/source/components/SearchWidget/DriveTransmissionWidget/DriveTransmissionWidget.tsx +36 -36
  314. package/source/components/SearchWidget/EnvironmentWidget/DetailedEnvironmentWidget.styl +25 -25
  315. package/source/components/SearchWidget/EnvironmentWidget/DetailedEnvironmentWidget.tsx +126 -126
  316. package/source/components/SearchWidget/EnvironmentWidget/EnvironmentWidget.styl +54 -54
  317. package/source/components/SearchWidget/EnvironmentWidget/EnvironmentWidget.tsx +173 -173
  318. package/source/components/SearchWidget/HighlightsWidget/HighlightsWidget.styl +39 -39
  319. package/source/components/SearchWidget/HighlightsWidget/HighlightsWidget.tsx +99 -99
  320. package/source/components/SearchWidget/InteriorWidget/DetailedInteriorWidget.tsx +44 -44
  321. package/source/components/SearchWidget/InteriorWidget/InteriorWidget.styl +28 -28
  322. package/source/components/SearchWidget/InteriorWidget/InteriorWidget.tsx +42 -42
  323. package/source/components/SearchWidget/OfferDetalisWidget/OfferDetailsWidgetMobile.tsx +59 -59
  324. package/source/components/SearchWidget/SearchWidget.story.js +191 -191
  325. package/source/components/SearchWidget/SearchWidget.story.styl +5 -5
  326. package/source/components/SearchWidget/SearchWidget.styl +196 -196
  327. package/source/components/SearchWidget/SearchWidget.tsx +208 -208
  328. package/source/components/SearchWidget/StateWidget/StateWidget.styl +57 -57
  329. package/source/components/SearchWidget/StateWidget/StateWidget.tsx +106 -106
  330. package/source/components/SearchWidget/SuperAdminWidget/SuperAdminWidget.styl +10 -10
  331. package/source/components/SearchWidget/SuperAdminWidget/SuperAdminWidget.tsx +64 -64
  332. package/source/components/SearchWidget/partials/BuyCar/BuyCar.styl +19 -19
  333. package/source/components/SearchWidget/partials/BuyCar/BuyCar.tsx +162 -162
  334. package/source/components/SearchWidget/partials/DropDown/DropDown.styl +70 -70
  335. package/source/components/SearchWidget/partials/DropDown/DropDown.tsx +36 -36
  336. package/source/components/SearchWidget/partials/DropDown/MultiDropDown.tsx +76 -76
  337. package/source/components/SearchWidget/partials/DropDown/index.ts +7 -7
  338. package/source/components/SearchWidget/partials/DropDownGroup/DropDownGroup.styl +48 -48
  339. package/source/components/SearchWidget/partials/DropDownGroup/DropDownGroup.tsx +101 -101
  340. package/source/components/SearchWidget/partials/FastSearch/FastSearch.tsx +55 -55
  341. package/source/components/SearchWidget/partials/MakerFilter/MakerFilter.styl +8 -8
  342. package/source/components/SearchWidget/partials/MakerFilter/MakerFilter.tsx +69 -69
  343. package/source/components/SearchWidget/partials/PanelFilter/Item.tsx +43 -43
  344. package/source/components/SearchWidget/partials/PanelFilter/PanelFilter.styl +32 -32
  345. package/source/components/SearchWidget/partials/PanelFilter/PanelFilter.tsx +53 -53
  346. package/source/components/SearchWidget/partials/TabPanel/TabPanel.tsx +29 -29
  347. package/source/components/SearchWidget/partials/Tabs/Tab.tsx +20 -20
  348. package/source/components/SearchWidget/partials/Tabs/Tabs.styl +27 -27
  349. package/source/components/SearchWidget/partials/Tabs/Tabs.tsx +69 -69
  350. package/source/components/SearchWidget/partials/Tabs/index.ts +7 -7
  351. package/source/components/SearchWidgetsMobile/BasicDataWidgetMobile/BasicDataWidgetMobile.styl +91 -91
  352. package/source/components/SearchWidgetsMobile/BasicDataWidgetMobile/BasicDataWidgetMobile.tsx +219 -219
  353. package/source/components/SearchWidgetsMobile/EngineTransDriveWidget/EngineTransDriveWidget.styl +47 -47
  354. package/source/components/SearchWidgetsMobile/EngineTransDriveWidget/EngineTransDriveWidget.tsx +126 -126
  355. package/source/components/SearchWidgetsMobile/EquipmentsWidget/EquipmentsWidget.styl +62 -62
  356. package/source/components/SearchWidgetsMobile/EquipmentsWidget/EquipmentsWidget.styled.tsx +38 -38
  357. package/source/components/SearchWidgetsMobile/EquipmentsWidget/EquipmentsWidget.tsx +294 -294
  358. package/source/components/SearchWidgetsMobile/EquipmentsWidget/EquipmentsWidgetCategory.tsx +50 -50
  359. package/source/components/SearchWidgetsMobile/HighlightsWidgetMobile/HighlightsWidgetMobile.styl +50 -50
  360. package/source/components/SearchWidgetsMobile/HighlightsWidgetMobile/HighlightsWidgetMobile.tsx +96 -96
  361. package/source/components/SearchWidgetsMobile/InteriorWidget/InteriorWidget.styl +30 -30
  362. package/source/components/SearchWidgetsMobile/InteriorWidget/InteriorWidget.tsx +33 -33
  363. package/source/components/SearchWidgetsMobile/InteriorWidget/InteriorWidgetMobile.tsx +44 -44
  364. package/source/components/SearchWidgetsMobile/SafetyWidget/SafetyWidget.styl +45 -45
  365. package/source/components/SearchWidgetsMobile/SafetyWidget/SafetyWidget.tsx +149 -149
  366. package/source/components/SearchWidgetsMobile/StateWidget/StateWidget.styl +59 -59
  367. package/source/components/SearchWidgetsMobile/StateWidget/StateWidget.tsx +172 -172
  368. package/source/components/SearchWidgetsMobile/index.ts +18 -18
  369. package/source/components/Stepper/Step/Step.styl +46 -46
  370. package/source/components/Stepper/Step/Step.tsx +44 -44
  371. package/source/components/Stepper/Stepper.story.js +119 -119
  372. package/source/components/Stepper/Stepper.story.styl +41 -41
  373. package/source/components/Stepper/Stepper.styl +10 -10
  374. package/source/components/Stepper/Stepper.tsx +68 -68
  375. package/source/components/Stepper/StepsDivider/StepsDivider.styl +15 -15
  376. package/source/components/Stepper/StepsDivider/StepsDivider.tsx +23 -23
  377. package/source/components/Theme.story.js +36 -36
  378. package/source/components/Theme.story.styl +85 -85
  379. package/source/components/TickerText/TickerText.story.js +17 -17
  380. package/source/components/TickerText/TickerText.styl +43 -43
  381. package/source/components/TickerText/TickerText.tsx +24 -24
  382. package/source/components/UserDashboardPage/sections/OrderStatusSection/AdditionalOrderInfo.styl +90 -90
  383. package/source/components/UserDashboardPage/sections/OrderStatusSection/AdditionalOrderInfo.tsx +90 -90
  384. package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusCar.tsx +130 -130
  385. package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusCard.styl +53 -53
  386. package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusCard.tsx +41 -41
  387. package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusSection.story.js +95 -95
  388. package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusSection.styl +166 -166
  389. package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusSection.tsx +182 -182
  390. package/source/components/UserDashboardPage/sections/RequestedCarsSection/RequestedCarsSection.story.js +97 -97
  391. package/source/components/UserDashboardPage/sections/RequestedCarsSection/RequestedCarsSection.styl +144 -144
  392. package/source/components/UserDashboardPage/sections/RequestedCarsSection/RequestedCarsSection.tsx +123 -123
  393. package/source/components/UserDashboardPage/sections/RequestedCarsSection/SupportSection.styl +46 -46
  394. package/source/components/UserDashboardPage/sections/RequestedCarsSection/SupportSection.tsx +32 -32
  395. package/source/components/Vehicle/VehicleConsumption/VehicleConsumption.styl +10 -10
  396. package/source/components/Vehicle/VehicleConsumption/VehicleConsumption.tsx +44 -44
  397. package/source/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.story.js +247 -247
  398. package/source/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.styl +148 -148
  399. package/source/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.tsx +154 -154
  400. package/source/components/VehicleCompared/CompareGeneral/CompareGeneral.story.js +30 -30
  401. package/source/components/VehicleCompared/CompareGeneral/CompareGeneral.styl +49 -49
  402. package/source/components/VehicleCompared/CompareGeneral/CompareGeneral.tsx +55 -55
  403. package/source/components/VehicleCompared/ComparePrice/ComparePrice.story.js +18 -18
  404. package/source/components/VehicleCompared/ComparePrice/ComparePrice.styl +17 -17
  405. package/source/components/VehicleCompared/ComparePrice/ComparePrice.tsx +33 -33
  406. package/source/components/VehicleCompared/CompareTitle/CompareTitle.story.js +19 -19
  407. package/source/components/VehicleCompared/CompareTitle/CompareTitle.styl +38 -38
  408. package/source/components/VehicleCompared/CompareTitle/CompareTitle.tsx +32 -32
  409. package/source/components/VehicleDetailedSidebar/VehicleDetailedSidebar.story.js +44 -44
  410. package/source/components/VehicleDetailedSidebar/VehicleDetailedSidebar.styl +28 -28
  411. package/source/components/VehicleDetailedSidebar/VehicleDetailedSidebar.tsx +168 -168
  412. package/source/components/VehicleDetailedSidebar/partials/Price.styl +26 -26
  413. package/source/components/VehicleDetailedSidebar/partials/Price.tsx +41 -41
  414. package/source/components/VehicleDetailedSidebar/partials/PriceContent.styl +130 -130
  415. package/source/components/VehicleDetailedSidebar/partials/PriceContent.tsx +128 -128
  416. package/source/components/VehicleDetailedSidebar/partials/Properties.styl +53 -53
  417. package/source/components/VehicleDetailedSidebar/partials/Properties.tsx +117 -117
  418. package/source/components/VehicleDetailedSidebar/partials/Title.styl +35 -35
  419. package/source/components/VehicleDetailedSidebar/partials/Title.tsx +33 -33
  420. package/source/components/VehicleDetailedSlider/VehicleDetailedSlider.story.js +120 -120
  421. package/source/components/VehicleDetailedSlider/VehicleDetailedSlider.styl +102 -102
  422. package/source/components/VehicleDetailedSlider/VehicleDetailedSlider.tsx +296 -296
  423. package/source/components/VehicleDetailedSlider/partials/MobileStast.tsx +61 -61
  424. package/source/components/VehicleDetailedSlider/partials/MobileStats.styl +71 -71
  425. package/source/components/VehicleDetailedSlider/partials/PriceData.styl +48 -48
  426. package/source/components/VehicleDetailedSlider/partials/PriceData.tsx +37 -37
  427. package/source/components/VehicleDetailedSlider/partials/Stats.styl +80 -80
  428. package/source/components/VehicleDetailedSlider/partials/Stats.tsx +62 -62
  429. package/source/components/VehicleDetailedSlider/partials/Title.styl +44 -44
  430. package/source/components/VehicleDetailedSlider/partials/Title.tsx +36 -36
  431. package/source/components/VehiclePromoSlider/VehiclePromoInfo/VehiclePromoInfo.story.js +42 -42
  432. package/source/components/VehiclePromoSlider/VehiclePromoInfo/VehiclePromoInfo.styl +298 -298
  433. package/source/components/VehiclePromoSlider/VehiclePromoInfo/VehiclePromoInfo.tsx +201 -201
  434. package/source/components/VehiclePromoSlider/VehiclePromoSlide/VehiclePromoSlide.story.js +62 -62
  435. package/source/components/VehiclePromoSlider/VehiclePromoSlide/VehiclePromoSlide.styl +263 -263
  436. package/source/components/VehiclePromoSlider/VehiclePromoSlide/VehiclePromoSlide.tsx +141 -141
  437. package/source/components/VehiclePromoSlider/VehiclePromoSlider.story.js +42 -42
  438. package/source/components/VehiclePromoSlider/VehiclePromoSlider.styl +122 -122
  439. package/source/components/VehiclePromoSlider/VehiclePromoSlider.tsx +111 -111
  440. package/source/components/VehiclePromoSlider/cars.js +220 -220
  441. package/source/components/VehicleSmallCard/SeoText/SeoText.styl +8 -8
  442. package/source/components/VehicleSmallCard/SeoText/SeoText.tsx +16 -16
  443. package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl +162 -162
  444. package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +188 -188
  445. package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +218 -218
  446. package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +154 -154
  447. package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.styl +129 -129
  448. package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.tsx +282 -282
  449. package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +21 -21
  450. package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.tsx +32 -32
  451. package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.styl +126 -126
  452. package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.tsx +90 -90
  453. package/source/components/VehicleSmallCard/VehicleSmallCard.story.js +412 -412
  454. package/source/components/VehicleSmallCard/VehicleSmallCard.story.styl +55 -55
  455. package/source/components/VehicleSmallCard/VehicleSmallCard.styl +242 -242
  456. package/source/components/VehicleSmallCard/VehicleSmallCard.tsx +408 -408
  457. package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.story.js +199 -199
  458. package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.story.styl +40 -40
  459. package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.styl +150 -150
  460. package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.tsx +185 -185
  461. package/source/components/_common/Accordion/Accordion.story.js +36 -36
  462. package/source/components/_common/Accordion/Accordion.styl +2 -2
  463. package/source/components/_common/Accordion/Accordion.tsx +132 -132
  464. package/source/components/_common/Accordion/AccordionTitle/AccordionTitle.styl +49 -49
  465. package/source/components/_common/Accordion/AccordionTitle/AccordionTitle.tsx +33 -33
  466. package/source/components/_common/AccordionWrapper/AccordionItem/AccordionItem.styl +34 -34
  467. package/source/components/_common/AccordionWrapper/AccordionItem/AccordionItem.tsx +64 -64
  468. package/source/components/_common/AccordionWrapper/AccordionWrapper.tsx +34 -34
  469. package/source/components/_common/Badge/Badge.story.js +27 -27
  470. package/source/components/_common/Badge/Badge.story.styl +5 -5
  471. package/source/components/_common/Badge/Badge.styl +41 -41
  472. package/source/components/_common/Badge/Badge.tsx +25 -25
  473. package/source/components/_common/BodyTypeIcons/Audi.tsx +9 -9
  474. package/source/components/_common/BodyTypeIcons/Bmw.tsx +860 -860
  475. package/source/components/_common/BodyTypeIcons/Ford.tsx +31 -31
  476. package/source/components/_common/BodyTypeIcons/IconsConfig.tsx +44 -44
  477. package/source/components/_common/BodyTypeIcons/IconsConfigCompact.tsx +30 -30
  478. package/source/components/_common/BodyTypeIcons/Mazda.tsx +44 -44
  479. package/source/components/_common/BodyTypeIcons/MercedesBenz.tsx +38 -38
  480. package/source/components/_common/BodyTypeIcons/Opel.tsx +19 -19
  481. package/source/components/_common/BodyTypeIcons/Search.tsx +19 -19
  482. package/source/components/_common/BodyTypeIcons/SelectorCategoryCombi.tsx +68 -68
  483. package/source/components/_common/BodyTypeIcons/SelectorCategoryCompact.tsx +20 -20
  484. package/source/components/_common/BodyTypeIcons/SelectorCategoryConvertible.tsx +68 -68
  485. package/source/components/_common/BodyTypeIcons/SelectorCategoryCoupe.tsx +60 -60
  486. package/source/components/_common/BodyTypeIcons/SelectorCategoryMinibus.tsx +64 -64
  487. package/source/components/_common/BodyTypeIcons/SelectorCategorySedan.tsx +69 -69
  488. package/source/components/_common/BodyTypeIcons/SelectorCategorySuv.tsx +77 -77
  489. package/source/components/_common/BodyTypeIcons/SelectorCategoryTransporter.tsx +68 -68
  490. package/source/components/_common/BodyTypeIcons/SelectorCategoryVan.tsx +72 -72
  491. package/source/components/_common/BodyTypeIcons/Volkswagen.tsx +330 -330
  492. package/source/components/_common/BodyTypeIcons/index.ts +17 -17
  493. package/source/components/_common/Bubble/Bubble.story.js +52 -52
  494. package/source/components/_common/Bubble/Bubble.styl +53 -53
  495. package/source/components/_common/Bubble/Bubble.tsx +37 -37
  496. package/source/components/_common/Button/Button.story.js +52 -52
  497. package/source/components/_common/Button/Button.story.styl +5 -5
  498. package/source/components/_common/Button/Button.styl +12 -12
  499. package/source/components/_common/Button/Button.styled.tsx +51 -51
  500. package/source/components/_common/Button/Button.tsx +78 -78
  501. package/source/components/_common/ButtonOld/Button.story.js +54 -54
  502. package/source/components/_common/ButtonOld/Button.story.styl +5 -5
  503. package/source/components/_common/ButtonOld/Button.styl +65 -65
  504. package/source/components/_common/ButtonOld/Button.tsx +84 -84
  505. package/source/components/_common/Checkbox/Checkbox.story.js +85 -85
  506. package/source/components/_common/Checkbox/Checkbox.story.styl +14 -14
  507. package/source/components/_common/Checkbox/Checkbox.styl +119 -119
  508. package/source/components/_common/Checkbox/Checkbox.tsx +151 -151
  509. package/source/components/_common/Checkbox/FormCheckbox.styl +22 -22
  510. package/source/components/_common/Checkbox/FormCheckbox.tsx +86 -86
  511. package/source/components/_common/Checkbox/index.js +4 -4
  512. package/source/components/_common/CheckboxMaterial/CheckboxMaterial.story.js +126 -126
  513. package/source/components/_common/CheckboxMaterial/CheckboxMaterial.story.styl +14 -14
  514. package/source/components/_common/CheckboxMaterial/CheckboxMaterial.styl +155 -155
  515. package/source/components/_common/CheckboxMaterial/CheckboxMaterial.tsx +210 -210
  516. package/source/components/_common/Chip/Chip.story.js +43 -43
  517. package/source/components/_common/Chip/Chip.styl +69 -69
  518. package/source/components/_common/Chip/Chip.tsx +38 -38
  519. package/source/components/_common/ChipList/ChipList.story.js +36 -36
  520. package/source/components/_common/ChipList/ChipList.styl +80 -80
  521. package/source/components/_common/ChipList/ChipList.tsx +58 -58
  522. package/source/components/_common/Co2Widget/CO2Efficiency.styl +114 -114
  523. package/source/components/_common/Co2Widget/CO2Efficiency.tsx +49 -49
  524. package/source/components/_common/Divider/Divider.styl +8 -8
  525. package/source/components/_common/Divider/Divider.tsx +16 -16
  526. package/source/components/_common/DoorSelector/DoorSelector.styl +35 -35
  527. package/source/components/_common/DoorSelector/DoorSelector.tsx +39 -39
  528. package/source/components/_common/DropDown/DropDown.story.js +35 -35
  529. package/source/components/_common/DropDown/DropDown.styl +129 -129
  530. package/source/components/_common/DropDown/DropDown.tsx +111 -111
  531. package/source/components/_common/DropDown/DropDownComponents.tsx +53 -53
  532. package/source/components/_common/DropDown/DropDownGroup.styl +20 -20
  533. package/source/components/_common/DropDown/DropDownGroup.tsx +136 -136
  534. package/source/components/_common/DropDown/FormDropDown.styl +35 -35
  535. package/source/components/_common/DropDown/FormDropDown.tsx +53 -53
  536. package/source/components/_common/DropDown/MultiDropDown.tsx +84 -84
  537. package/source/components/_common/DropDown/index.ts +7 -7
  538. package/source/components/_common/ExpandablePanel/ExpandablePanel.story.js +41 -41
  539. package/source/components/_common/ExpandablePanel/ExpandablePanel.styl +19 -19
  540. package/source/components/_common/ExpandablePanel/ExpandablePanel.tsx +88 -88
  541. package/source/components/_common/ExpansionPanel/ExpansionPanel.styl +36 -36
  542. package/source/components/_common/ExpansionPanel/ExpansionPanel.styled.tsx +28 -28
  543. package/source/components/_common/ExpansionPanel/ExpansionPanel.tsx +99 -99
  544. package/source/components/_common/FilterLabel/FilterLabel.styl +25 -25
  545. package/source/components/_common/FilterLabel/FilterLabel.tsx +27 -27
  546. package/source/components/_common/Histogram/Histogram.story.js +51 -51
  547. package/source/components/_common/IconContainer/IconContainer.styl +23 -23
  548. package/source/components/_common/IconContainer/IconContainer.tsx +34 -34
  549. package/source/components/_common/IconSVG/IconSVG.story.js +21 -21
  550. package/source/components/_common/IconSVG/IconSVG.story.styl +25 -25
  551. package/source/components/_common/IconSVG/IconSVG.tsx +30 -30
  552. package/source/components/_common/IconSVG/IconSVGConfig.tsx +766 -766
  553. package/source/components/_common/IconSVG/SVG/AboPartner.tsx +16 -16
  554. package/source/components/_common/IconSVG/SVG/ArrowQuotes.tsx +22 -22
  555. package/source/components/_common/IconSVG/SVG/CloseIcon.tsx +17 -17
  556. package/source/components/_common/IconSVG/SVG/CloseIconSelect.tsx +18 -18
  557. package/source/components/_common/IconSVG/SVG/ClosedLockIcon.tsx +18 -18
  558. package/source/components/_common/IconSVG/SVG/DealerCheckIcon.tsx +18 -18
  559. package/source/components/_common/IconSVG/SVG/DealerPopoverMail.tsx +21 -21
  560. package/source/components/_common/IconSVG/SVG/DealerPopoverPhone.tsx +21 -21
  561. package/source/components/_common/IconSVG/SVG/GrayPhoneIcon.tsx +22 -22
  562. package/source/components/_common/IconSVG/SVG/InternetIcon.tsx +18 -18
  563. package/source/components/_common/IconSVG/SVG/WhiteEnvelopeIcon.tsx +21 -21
  564. package/source/components/_common/IconSVG/SVG/bodyType/Cabrio.tsx +23 -23
  565. package/source/components/_common/IconSVG/SVG/bodyType/Coupe.tsx +22 -22
  566. package/source/components/_common/IconSVG/SVG/bodyType/Minibus.tsx +22 -22
  567. package/source/components/_common/IconSVG/SVG/bodyType/Other.tsx +25 -25
  568. package/source/components/_common/IconSVG/SVG/bodyType/Sedan.tsx +22 -22
  569. package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryCombi.tsx +68 -68
  570. package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryCompact.tsx +20 -20
  571. package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryConvertible.tsx +68 -68
  572. package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryCoupe.tsx +60 -60
  573. package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryMinibus.tsx +64 -64
  574. package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryOther.tsx +60 -60
  575. package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategorySedan.tsx +69 -69
  576. package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategorySuv.tsx +77 -77
  577. package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryTransporter.tsx +68 -68
  578. package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryVan.tsx +72 -72
  579. package/source/components/_common/IconSVG/SVG/bodyType/Small.tsx +23 -23
  580. package/source/components/_common/IconSVG/SVG/bodyType/Suv.tsx +23 -23
  581. package/source/components/_common/IconSVG/SVG/bodyType/Van.tsx +23 -23
  582. package/source/components/_common/IconSVG/SVG/bodyType/Wagon.tsx +23 -23
  583. package/source/components/_common/IconSVG/SVG/common/AddIcon.tsx +16 -16
  584. package/source/components/_common/IconSVG/SVG/common/AddPlus.tsx +16 -16
  585. package/source/components/_common/IconSVG/SVG/common/AddressDashboard.tsx +29 -29
  586. package/source/components/_common/IconSVG/SVG/common/AddressIcon.tsx +20 -20
  587. package/source/components/_common/IconSVG/SVG/common/ArrowDetailedAccordionBlue.tsx +26 -26
  588. package/source/components/_common/IconSVG/SVG/common/ArrowDownBlue.tsx +21 -21
  589. package/source/components/_common/IconSVG/SVG/common/ArrowSelect.tsx +23 -23
  590. package/source/components/_common/IconSVG/SVG/common/ArrowStepDown.tsx +18 -18
  591. package/source/components/_common/IconSVG/SVG/common/Autocheck.tsx +19 -19
  592. package/source/components/_common/IconSVG/SVG/common/AutodeLogo.tsx +36 -36
  593. package/source/components/_common/IconSVG/SVG/common/Avatar.tsx +17 -17
  594. package/source/components/_common/IconSVG/SVG/common/BellGray.tsx +19 -19
  595. package/source/components/_common/IconSVG/SVG/common/BigInfoTransparent.tsx +13 -13
  596. package/source/components/_common/IconSVG/SVG/common/Browse.tsx +20 -20
  597. package/source/components/_common/IconSVG/SVG/common/Calendar.tsx +24 -24
  598. package/source/components/_common/IconSVG/SVG/common/CallbackDashboard.tsx +30 -30
  599. package/source/components/_common/IconSVG/SVG/common/Camera.tsx +17 -17
  600. package/source/components/_common/IconSVG/SVG/common/Car.tsx +16 -16
  601. package/source/components/_common/IconSVG/SVG/common/CarBody.tsx +19 -19
  602. package/source/components/_common/IconSVG/SVG/common/CarFront.tsx +43 -43
  603. package/source/components/_common/IconSVG/SVG/common/CarInspectionCheck.tsx +21 -21
  604. package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme0.tsx +32 -32
  605. package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme1.tsx +53 -53
  606. package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme2.tsx +52 -52
  607. package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme3.tsx +32 -32
  608. package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme4.tsx +32 -32
  609. package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme5.tsx +32 -32
  610. package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme6.tsx +32 -32
  611. package/source/components/_common/IconSVG/SVG/common/CarInspectionSchemeGeneral copy.tsx +24 -24
  612. package/source/components/_common/IconSVG/SVG/common/CarInspectionSchemeGeneral.tsx +24 -24
  613. package/source/components/_common/IconSVG/SVG/common/CheckBlue.tsx +18 -18
  614. package/source/components/_common/IconSVG/SVG/common/CheckGreen.tsx +22 -22
  615. package/source/components/_common/IconSVG/SVG/common/CheckMark.tsx +16 -16
  616. package/source/components/_common/IconSVG/SVG/common/CheckWhite.tsx +19 -19
  617. package/source/components/_common/IconSVG/SVG/common/Chevron.tsx +17 -17
  618. package/source/components/_common/IconSVG/SVG/common/CircledCheckmark.tsx +25 -25
  619. package/source/components/_common/IconSVG/SVG/common/Clock.tsx +18 -18
  620. package/source/components/_common/IconSVG/SVG/common/Close.tsx +19 -19
  621. package/source/components/_common/IconSVG/SVG/common/CloseGrey.tsx +22 -22
  622. package/source/components/_common/IconSVG/SVG/common/ContactEmail.tsx +21 -21
  623. package/source/components/_common/IconSVG/SVG/common/ContactPhone.tsx +28 -28
  624. package/source/components/_common/IconSVG/SVG/common/CopyIcon copy.tsx +22 -22
  625. package/source/components/_common/IconSVG/SVG/common/CopyIcon.tsx +22 -22
  626. package/source/components/_common/IconSVG/SVG/common/CopyIconForDealer.tsx +21 -21
  627. package/source/components/_common/IconSVG/SVG/common/DashboardIcon.tsx +20 -20
  628. package/source/components/_common/IconSVG/SVG/common/DashboardQuestionMark.tsx +20 -20
  629. package/source/components/_common/IconSVG/SVG/common/DealersIcon.tsx +20 -20
  630. package/source/components/_common/IconSVG/SVG/common/DeleteCircle.tsx +31 -31
  631. package/source/components/_common/IconSVG/SVG/common/DeleteV1Icon.tsx +18 -18
  632. package/source/components/_common/IconSVG/SVG/common/DeliveryDashboard.tsx +25 -25
  633. package/source/components/_common/IconSVG/SVG/common/DeliveryMail.tsx +24 -24
  634. package/source/components/_common/IconSVG/SVG/common/Discount100De.tsx +18 -18
  635. package/source/components/_common/IconSVG/SVG/common/Discount100En.tsx +19 -19
  636. package/source/components/_common/IconSVG/SVG/common/Discount66De.tsx +28 -28
  637. package/source/components/_common/IconSVG/SVG/common/Discount66En.tsx +20 -20
  638. package/source/components/_common/IconSVG/SVG/common/DoneIcon.tsx +18 -18
  639. package/source/components/_common/IconSVG/SVG/common/EditCircle.tsx +32 -32
  640. package/source/components/_common/IconSVG/SVG/common/EditPriceIcon.tsx +20 -20
  641. package/source/components/_common/IconSVG/SVG/common/EuroCurrency.tsx +18 -18
  642. package/source/components/_common/IconSVG/SVG/common/Export.tsx +20 -20
  643. package/source/components/_common/IconSVG/SVG/common/Eye.tsx +17 -17
  644. package/source/components/_common/IconSVG/SVG/common/EyeCatch.tsx +19 -19
  645. package/source/components/_common/IconSVG/SVG/common/FavoritesIcon.tsx +20 -20
  646. package/source/components/_common/IconSVG/SVG/common/FilterRange.tsx +16 -16
  647. package/source/components/_common/IconSVG/SVG/common/FilterToolBlack.tsx +23 -23
  648. package/source/components/_common/IconSVG/SVG/common/FlagDe.tsx +21 -21
  649. package/source/components/_common/IconSVG/SVG/common/FlagEn.tsx +43 -43
  650. package/source/components/_common/IconSVG/SVG/common/GrayEnvelopeIcon.tsx +19 -19
  651. package/source/components/_common/IconSVG/SVG/common/HamburgerMenuIcon.tsx +18 -18
  652. package/source/components/_common/IconSVG/SVG/common/HandingOverDashboard.tsx +32 -32
  653. package/source/components/_common/IconSVG/SVG/common/ImageSettingsIcon.tsx +20 -20
  654. package/source/components/_common/IconSVG/SVG/common/Info.tsx +16 -16
  655. package/source/components/_common/IconSVG/SVG/common/InfoIcon.tsx +17 -17
  656. package/source/components/_common/IconSVG/SVG/common/InfoTransparent.tsx +18 -18
  657. package/source/components/_common/IconSVG/SVG/common/LogoutIcon.tsx +20 -20
  658. package/source/components/_common/IconSVG/SVG/common/MagnifyingGlass.tsx +31 -31
  659. package/source/components/_common/IconSVG/SVG/common/MenuArrow.tsx +16 -16
  660. package/source/components/_common/IconSVG/SVG/common/MenuGrey.tsx +22 -22
  661. package/source/components/_common/IconSVG/SVG/common/MobileDeLogo.tsx +108 -108
  662. package/source/components/_common/IconSVG/SVG/common/MyOrderIcon.tsx +20 -20
  663. package/source/components/_common/IconSVG/SVG/common/MyVehiclesIcon.tsx +20 -20
  664. package/source/components/_common/IconSVG/SVG/common/NewFlagDe.tsx +25 -25
  665. package/source/components/_common/IconSVG/SVG/common/NewFlagEn.tsx +34 -34
  666. package/source/components/_common/IconSVG/SVG/common/OrderReceivedDashboard.tsx +27 -27
  667. package/source/components/_common/IconSVG/SVG/common/Package.tsx +30 -30
  668. package/source/components/_common/IconSVG/SVG/common/Phone.tsx +18 -18
  669. package/source/components/_common/IconSVG/SVG/common/PhoneGrey.tsx +22 -22
  670. package/source/components/_common/IconSVG/SVG/common/PickupDashboard.tsx +30 -30
  671. package/source/components/_common/IconSVG/SVG/common/Picture.tsx +24 -24
  672. package/source/components/_common/IconSVG/SVG/common/Pictures.tsx +32 -32
  673. package/source/components/_common/IconSVG/SVG/common/Plus.tsx +16 -16
  674. package/source/components/_common/IconSVG/SVG/common/PlusNew.tsx +16 -16
  675. package/source/components/_common/IconSVG/SVG/common/PreparationDashboard.tsx +29 -29
  676. package/source/components/_common/IconSVG/SVG/common/ProfileDashboard.tsx +24 -24
  677. package/source/components/_common/IconSVG/SVG/common/ProfileIcon.tsx +17 -17
  678. package/source/components/_common/IconSVG/SVG/common/Question.tsx +19 -19
  679. package/source/components/_common/IconSVG/SVG/common/QuestionBold.tsx +25 -25
  680. package/source/components/_common/IconSVG/SVG/common/RegistrationDashboard.tsx +31 -31
  681. package/source/components/_common/IconSVG/SVG/common/SavedSearchsIcon.tsx +20 -20
  682. package/source/components/_common/IconSVG/SVG/common/Search.tsx +19 -19
  683. package/source/components/_common/IconSVG/SVG/common/SearchGrey.tsx +22 -22
  684. package/source/components/_common/IconSVG/SVG/common/SettingPenIcon.tsx +20 -20
  685. package/source/components/_common/IconSVG/SVG/common/Share.tsx +16 -16
  686. package/source/components/_common/IconSVG/SVG/common/ShoppingCart.tsx +18 -18
  687. package/source/components/_common/IconSVG/SVG/common/SliderArrow.tsx +21 -21
  688. package/source/components/_common/IconSVG/SVG/common/SliderEye.tsx +17 -17
  689. package/source/components/_common/IconSVG/SVG/common/SortUpDownArrows.tsx +18 -18
  690. package/source/components/_common/IconSVG/SVG/common/Speedometer.tsx +23 -23
  691. package/source/components/_common/IconSVG/SVG/common/Star.tsx +20 -20
  692. package/source/components/_common/IconSVG/SVG/common/StarNew.tsx +16 -16
  693. package/source/components/_common/IconSVG/SVG/common/StarOutline.tsx +20 -20
  694. package/source/components/_common/IconSVG/SVG/common/StarRoundedCorners.tsx +18 -18
  695. package/source/components/_common/IconSVG/SVG/common/Stats.tsx +17 -17
  696. package/source/components/_common/IconSVG/SVG/common/Step1.tsx +21 -21
  697. package/source/components/_common/IconSVG/SVG/common/Step2.tsx +20 -20
  698. package/source/components/_common/IconSVG/SVG/common/Step3.tsx +21 -21
  699. package/source/components/_common/IconSVG/SVG/common/SupportCallbackIcon.tsx +20 -20
  700. package/source/components/_common/IconSVG/SVG/common/Telephone.tsx +22 -22
  701. package/source/components/_common/IconSVG/SVG/common/Time.tsx +17 -17
  702. package/source/components/_common/IconSVG/SVG/common/Timetable.tsx +18 -18
  703. package/source/components/_common/IconSVG/SVG/common/Trash.tsx +22 -22
  704. package/source/components/_common/IconSVG/SVG/common/TrashRed.tsx +23 -23
  705. package/source/components/_common/IconSVG/SVG/common/Upload.tsx +17 -17
  706. package/source/components/_common/IconSVG/SVG/common/UserGrey.tsx +22 -22
  707. package/source/components/_common/IconSVG/SVG/common/UserProfileIcon.tsx +20 -20
  708. package/source/components/_common/IconSVG/SVG/common/ValidateFailure.tsx +21 -21
  709. package/source/components/_common/IconSVG/SVG/common/ValidateSuccess.tsx +21 -21
  710. package/source/components/_common/IconSVG/SVG/common/WarningTriangle.tsx +20 -20
  711. package/source/components/_common/IconSVG/SVG/common/WhiteArrowUp.tsx +21 -21
  712. package/source/components/_common/IconSVG/SVG/common/WhiteKey.tsx +21 -21
  713. package/source/components/_common/IconSVG/SVG/common/WhitePeople.tsx +23 -23
  714. package/source/components/_common/IconSVG/SVG/common/WhiteTick.tsx +19 -19
  715. package/source/components/_common/IconSVG/SVG/flags/AT.tsx +19 -19
  716. package/source/components/_common/IconSVG/SVG/flags/BE.tsx +20 -20
  717. package/source/components/_common/IconSVG/SVG/flags/BG.tsx +20 -20
  718. package/source/components/_common/IconSVG/SVG/flags/CH.tsx +22 -22
  719. package/source/components/_common/IconSVG/SVG/flags/CZ.tsx +18 -18
  720. package/source/components/_common/IconSVG/SVG/flags/DE.tsx +18 -18
  721. package/source/components/_common/IconSVG/SVG/flags/DK.tsx +18 -18
  722. package/source/components/_common/IconSVG/SVG/flags/ES.tsx +2585 -2585
  723. package/source/components/_common/IconSVG/SVG/flags/FI.tsx +18 -18
  724. package/source/components/_common/IconSVG/SVG/flags/FR.tsx +20 -20
  725. package/source/components/_common/IconSVG/SVG/flags/GB.tsx +26 -26
  726. package/source/components/_common/IconSVG/SVG/flags/HR.tsx +135 -135
  727. package/source/components/_common/IconSVG/SVG/flags/HU.tsx +20 -20
  728. package/source/components/_common/IconSVG/SVG/flags/IT.tsx +20 -20
  729. package/source/components/_common/IconSVG/SVG/flags/LI.tsx +106 -106
  730. package/source/components/_common/IconSVG/SVG/flags/LU.tsx +18 -18
  731. package/source/components/_common/IconSVG/SVG/flags/NL.tsx +18 -18
  732. package/source/components/_common/IconSVG/SVG/flags/NO.tsx +20 -20
  733. package/source/components/_common/IconSVG/SVG/flags/PL.tsx +19 -19
  734. package/source/components/_common/IconSVG/SVG/flags/RO.tsx +20 -20
  735. package/source/components/_common/IconSVG/SVG/flags/RU.tsx +20 -20
  736. package/source/components/_common/IconSVG/SVG/flags/SE.tsx +20 -20
  737. package/source/components/_common/IconSVG/SVG/flags/SI.tsx +54 -54
  738. package/source/components/_common/IconSVG/SVG/flags/SK.tsx +34 -34
  739. package/source/components/_common/IconSVG/SVG/flags/UA.tsx +19 -19
  740. package/source/components/_common/IconSVG/SVG/infoBlocks/14DaysReturnPolicy.tsx +18 -18
  741. package/source/components/_common/IconSVG/SVG/infoBlocks/AlertInfo.tsx +19 -19
  742. package/source/components/_common/IconSVG/SVG/infoBlocks/Autocheck.tsx +19 -19
  743. package/source/components/_common/IconSVG/SVG/infoBlocks/CheckTheStory.tsx +22 -22
  744. package/source/components/_common/IconSVG/SVG/infoBlocks/CustomerServiceWhite.tsx +16 -16
  745. package/source/components/_common/IconSVG/SVG/infoBlocks/Guarantee.tsx +16 -16
  746. package/source/components/_common/IconSVG/SVG/infoBlocks/OrderWhite.tsx +13 -13
  747. package/source/components/_common/IconSVG/SVG/infoBlocks/PriceGuarantee.tsx +19 -19
  748. package/source/components/_common/IconSVG/SVG/infoBlocks/PriceGuaranteeWhite.tsx +17 -17
  749. package/source/components/_common/IconSVG/SVG/infoBlocks/TransportAndDelivery.tsx +21 -21
  750. package/source/components/_common/IconSVG/SVG/infoBlocks/Warranty.tsx +23 -23
  751. package/source/components/_common/IconSVG/SVG/popower/Mail.tsx +18 -18
  752. package/source/components/_common/IconSVG/SVG/popower/Phone.tsx +19 -19
  753. package/source/components/_common/IconSVG/SVG/popower/Schedule.tsx +18 -18
  754. package/source/components/_common/IconSVG/SVG/searchWidgets/drive/AAllWheelDrive.tsx +26 -26
  755. package/source/components/_common/IconSVG/SVG/searchWidgets/drive/AllWheelDrive.tsx +26 -26
  756. package/source/components/_common/IconSVG/SVG/searchWidgets/drive/FrontWheelDrive.tsx +25 -25
  757. package/source/components/_common/IconSVG/SVG/searchWidgets/drive/OtherWheelDrive.tsx +26 -26
  758. package/source/components/_common/IconSVG/SVG/searchWidgets/drive/RearWheelDrive.tsx +25 -25
  759. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelDiesel.tsx +18 -18
  760. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelElectrical.tsx +19 -19
  761. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelElectricalDiesel.tsx +34 -34
  762. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelElectricalPetrol.tsx +20 -20
  763. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelEthanol.tsx +53 -53
  764. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelHydrogen.tsx +24 -24
  765. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelLpg.tsx +24 -24
  766. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelNaturalGas.tsx +23 -23
  767. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelOther.tsx +28 -28
  768. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelPetrol.tsx +18 -18
  769. package/source/components/_common/IconSVG/SVG/settings/Account.tsx +17 -17
  770. package/source/components/_common/IconSVG/SVG/settings/DataUsage.tsx +17 -17
  771. package/source/components/_common/IconSVG/SVG/settings/MarketResearch.tsx +17 -17
  772. package/source/components/_common/IconSVG/SVG/settings/Newsletter.tsx +17 -17
  773. package/source/components/_common/IconSVG/SVG/settings/RemoveEye.tsx +17 -17
  774. package/source/components/_common/IconSVG/SVG/settings/RemoveEyeOff.tsx +17 -17
  775. package/source/components/_common/IconSVG/SVG/settings/Security.tsx +17 -17
  776. package/source/components/_common/IconSVG/SVG/settings/Warning.tsx +17 -17
  777. package/source/components/_common/IconSVG/SVG/slider/360.tsx +23 -23
  778. package/source/components/_common/IconSVG/SVG/slider/360New.tsx +20 -20
  779. package/source/components/_common/IconSVG/SVG/slider/Checked.tsx +19 -19
  780. package/source/components/_common/IconSVG/SVG/slider/DiscountRibbon.tsx +51 -51
  781. package/source/components/_common/IconSVG/SVG/slider/DiscountRibbonMobile.tsx +47 -47
  782. package/source/components/_common/IconSVG/SVG/slider/DiscountRibbonNew.tsx +29 -29
  783. package/source/components/_common/IconSVG/SVG/slider/Easy.tsx +19 -19
  784. package/source/components/_common/IconSVG/SVG/slider/Fullscreen.tsx +16 -16
  785. package/source/components/_common/IconSVG/SVG/slider/FullscreenWindow.tsx +23 -23
  786. package/source/components/_common/IconSVG/SVG/slider/Safe.tsx +19 -19
  787. package/source/components/_common/IconSVG/SVG/slider/ToBuy.tsx +19 -19
  788. package/source/components/_common/IconSVG/SVG/slider/ZoomIn.tsx +21 -21
  789. package/source/components/_common/IconSVG/SVG/slider/ZoomOut.tsx +21 -21
  790. package/source/components/_common/IconSVG/SVG/social/AndroidLogo.tsx +18 -18
  791. package/source/components/_common/IconSVG/SVG/social/Apple.tsx +19 -19
  792. package/source/components/_common/IconSVG/SVG/social/FacebookF.tsx +19 -19
  793. package/source/components/_common/IconSVG/SVG/social/GooglePlusG.tsx +19 -19
  794. package/source/components/_common/IconSVG/SVG/social/Instagram.tsx +17 -17
  795. package/source/components/_common/IconSVG/SVG/social/Pinterest.tsx +19 -19
  796. package/source/components/_common/IconSVG/SVG/social/SharingInterface.tsx +21 -21
  797. package/source/components/_common/IconSVG/SVG/social/Twitter.tsx +19 -19
  798. package/source/components/_common/IconSVG/SVG/social/Youtube.tsx +19 -19
  799. package/source/components/_common/IconSVG/SVG/vehicle/AboIcon.tsx +11 -11
  800. package/source/components/_common/IconSVG/SVG/vehicle/Abs.tsx +24 -24
  801. package/source/components/_common/IconSVG/SVG/vehicle/AirCond.tsx +34 -34
  802. package/source/components/_common/IconSVG/SVG/vehicle/Airbag.tsx +21 -21
  803. package/source/components/_common/IconSVG/SVG/vehicle/AuxiliaryHeating.tsx +23 -23
  804. package/source/components/_common/IconSVG/SVG/vehicle/Bluetooth.tsx +22 -22
  805. package/source/components/_common/IconSVG/SVG/vehicle/BuyIcon.tsx +15 -15
  806. package/source/components/_common/IconSVG/SVG/vehicle/CarAvailability.tsx +22 -22
  807. package/source/components/_common/IconSVG/SVG/vehicle/CarInspectionCheck.tsx +21 -21
  808. package/source/components/_common/IconSVG/SVG/vehicle/CarInspectionCross.tsx +21 -21
  809. package/source/components/_common/IconSVG/SVG/vehicle/CheckoutChecked.tsx +15 -15
  810. package/source/components/_common/IconSVG/SVG/vehicle/Co2.tsx +24 -24
  811. package/source/components/_common/IconSVG/SVG/vehicle/CruiseControl.tsx +25 -25
  812. package/source/components/_common/IconSVG/SVG/vehicle/Date.tsx +21 -21
  813. package/source/components/_common/IconSVG/SVG/vehicle/Delivery.tsx +12 -12
  814. package/source/components/_common/IconSVG/SVG/vehicle/Diesel.tsx +28 -28
  815. package/source/components/_common/IconSVG/SVG/vehicle/Display.tsx +25 -25
  816. package/source/components/_common/IconSVG/SVG/vehicle/Done.tsx +11 -11
  817. package/source/components/_common/IconSVG/SVG/vehicle/Door.tsx +19 -19
  818. package/source/components/_common/IconSVG/SVG/vehicle/DoubleDone.tsx +18 -18
  819. package/source/components/_common/IconSVG/SVG/vehicle/EditIcon.tsx +11 -11
  820. package/source/components/_common/IconSVG/SVG/vehicle/EmergencyBrakeAssistant.tsx +27 -27
  821. package/source/components/_common/IconSVG/SVG/vehicle/Eps.tsx +24 -24
  822. package/source/components/_common/IconSVG/SVG/vehicle/Esp.tsx +24 -24
  823. package/source/components/_common/IconSVG/SVG/vehicle/FinancingIcon.tsx +20 -20
  824. package/source/components/_common/IconSVG/SVG/vehicle/FuelConsumption.tsx +20 -20
  825. package/source/components/_common/IconSVG/SVG/vehicle/Fueling.tsx +22 -22
  826. package/source/components/_common/IconSVG/SVG/vehicle/FullDrive.tsx +24 -24
  827. package/source/components/_common/IconSVG/SVG/vehicle/GasElectric.tsx +28 -28
  828. package/source/components/_common/IconSVG/SVG/vehicle/HandsFreePhoneSystem.tsx +24 -24
  829. package/source/components/_common/IconSVG/SVG/vehicle/Kw.tsx +23 -23
  830. package/source/components/_common/IconSVG/SVG/vehicle/LastCrawledAt.tsx +22 -22
  831. package/source/components/_common/IconSVG/SVG/vehicle/LeasingIcon.tsx +14 -14
  832. package/source/components/_common/IconSVG/SVG/vehicle/Led.tsx +24 -24
  833. package/source/components/_common/IconSVG/SVG/vehicle/LightSensor.tsx +22 -22
  834. package/source/components/_common/IconSVG/SVG/vehicle/LinkAlternative.tsx +15 -15
  835. package/source/components/_common/IconSVG/SVG/vehicle/Location.tsx +17 -17
  836. package/source/components/_common/IconSVG/SVG/vehicle/MinusIcon.tsx +11 -11
  837. package/source/components/_common/IconSVG/SVG/vehicle/Mirror.tsx +19 -19
  838. package/source/components/_common/IconSVG/SVG/vehicle/Navigation.tsx +27 -27
  839. package/source/components/_common/IconSVG/SVG/vehicle/NewCar.tsx +21 -21
  840. package/source/components/_common/IconSVG/SVG/vehicle/NoImage.tsx +17 -17
  841. package/source/components/_common/IconSVG/SVG/vehicle/Owner.tsx +18 -18
  842. package/source/components/_common/IconSVG/SVG/vehicle/PanoramicRoof.tsx +23 -23
  843. package/source/components/_common/IconSVG/SVG/vehicle/ParkingAssistants.tsx +24 -24
  844. package/source/components/_common/IconSVG/SVG/vehicle/PickYourself.tsx +18 -18
  845. package/source/components/_common/IconSVG/SVG/vehicle/PlusIcon.tsx +11 -11
  846. package/source/components/_common/IconSVG/SVG/vehicle/Power.tsx +21 -21
  847. package/source/components/_common/IconSVG/SVG/vehicle/Ps.tsx +19 -19
  848. package/source/components/_common/IconSVG/SVG/vehicle/Question.tsx +24 -24
  849. package/source/components/_common/IconSVG/SVG/vehicle/Seats.tsx +21 -21
  850. package/source/components/_common/IconSVG/SVG/vehicle/SeatsHeating.tsx +26 -26
  851. package/source/components/_common/IconSVG/SVG/vehicle/SelectorGearboxAutomatic.tsx +24 -24
  852. package/source/components/_common/IconSVG/SVG/vehicle/SelectorGearboxManualShift.tsx +19 -19
  853. package/source/components/_common/IconSVG/SVG/vehicle/SelectorGearboxOther.tsx +24 -24
  854. package/source/components/_common/IconSVG/SVG/vehicle/SelectorGearboxSemiAutomatic.tsx +30 -30
  855. package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypeAlcantara.tsx +225 -225
  856. package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypeFabric.tsx +29 -29
  857. package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypeFullLeather.tsx +29 -29
  858. package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypeOther.tsx +26 -26
  859. package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypePartLeather.tsx +142 -142
  860. package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypeSyntheticLeather.tsx +27 -27
  861. package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypeVelours.tsx +39 -39
  862. package/source/components/_common/IconSVG/SVG/vehicle/Shield.tsx +39 -39
  863. package/source/components/_common/IconSVG/SVG/vehicle/Speedometer.tsx +17 -17
  864. package/source/components/_common/IconSVG/SVG/vehicle/StartStopSystem.tsx +30 -30
  865. package/source/components/_common/IconSVG/SVG/vehicle/Stop.tsx +25 -25
  866. package/source/components/_common/IconSVG/SVG/vehicle/TickMark.tsx +21 -21
  867. package/source/components/_common/IconSVG/SVG/vehicle/TrafficSignRecognition.tsx +29 -29
  868. package/source/components/_common/IconSVG/SVG/vehicle/TrailerCoupling.tsx +24 -24
  869. package/source/components/_common/IconSVG/SVG/vehicle/Transmission.tsx +27 -27
  870. package/source/components/_common/IconSVG/SVG/vehicle/Wheel.tsx +43 -43
  871. package/source/components/_common/IconSVG/SVG/vehicle/Wipers.tsx +22 -22
  872. package/source/components/_common/IconSVG/SVG/vehicle/Wrench.tsx +17 -17
  873. package/source/components/_common/Image/Image.story.js +142 -142
  874. package/source/components/_common/Image/Image.story.styl +18 -18
  875. package/source/components/_common/Image/Image.styl +109 -109
  876. package/source/components/_common/Image/Image.tsx +302 -302
  877. package/source/components/_common/ImagesSet/ImagesSet.story.js +34 -34
  878. package/source/components/_common/ImagesSet/ImagesSet.story.styl +3 -3
  879. package/source/components/_common/ImagesSet/ImagesSet.styl +27 -27
  880. package/source/components/_common/ImagesSet/ImagesSet.tsx +76 -76
  881. package/source/components/_common/Loader/Loader.story.js +21 -21
  882. package/source/components/_common/Loader/Loader.styl +39 -39
  883. package/source/components/_common/Loader/Loader.tsx +32 -32
  884. package/source/components/_common/MagnifyGlass/MagnifyGlass.styl +33 -33
  885. package/source/components/_common/MagnifyGlass/MagnifyGlass.tsx +213 -213
  886. package/source/components/_common/MaterialAccordion/MaterialAccordion.tsx +141 -141
  887. package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.story.js +49 -49
  888. package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.styled.tsx +71 -71
  889. package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.tsx +40 -40
  890. package/source/components/_common/MaterialAutocomplete/MaterialAutocomplete.styled.tsx +204 -204
  891. package/source/components/_common/MaterialAutocomplete/MaterialAutocomplete.tsx +248 -248
  892. package/source/components/_common/MaterialDatePicker/MaterialDatePicker.story.js +45 -45
  893. package/source/components/_common/MaterialDatePicker/MaterialDatePicker.story.styl +5 -5
  894. package/source/components/_common/MaterialDatePicker/MaterialDatePicker.styled.tsx +20 -20
  895. package/source/components/_common/MaterialDatePicker/MaterialDatePicker.tsx +112 -112
  896. package/source/components/_common/MaterialField/MaterialField.story.js +87 -87
  897. package/source/components/_common/MaterialField/MaterialField.story.styl +33 -33
  898. package/source/components/_common/MaterialField/MaterialField.styled.tsx +52 -52
  899. package/source/components/_common/MaterialField/MaterialField.tsx +129 -129
  900. package/source/components/_common/MaterialSelect/MaterialSelect.story.js +52 -52
  901. package/source/components/_common/MaterialSelect/MaterialSelect.story.styl +5 -5
  902. package/source/components/_common/MaterialSelect/MaterialSelect.styled.tsx +123 -123
  903. package/source/components/_common/MaterialSelect/MaterialSelect.tsx +222 -222
  904. package/source/components/_common/MaterialStepButton/MaterialStepButton.story.js +47 -47
  905. package/source/components/_common/MaterialStepButton/MaterialStepButton.story.styl +5 -5
  906. package/source/components/_common/MaterialStepButton/MaterialStepButton.styl +32 -32
  907. package/source/components/_common/MaterialStepButton/MaterialStepButton.tsx +61 -61
  908. package/source/components/_common/MaterialSwitch/MaterialSwitch.story.js +17 -17
  909. package/source/components/_common/MaterialSwitch/MaterialSwitch.styled.tsx +5 -5
  910. package/source/components/_common/MaterialSwitch/MaterialSwitch.tsx +35 -35
  911. package/source/components/_common/MaterialTooltip/MaterialTooltip.story.js +10 -10
  912. package/source/components/_common/MaterialTooltip/MaterialTooltip.styled.tsx +24 -24
  913. package/source/components/_common/MaterialTooltip/MaterialTooltip.tsx +87 -87
  914. package/source/components/_common/Modal/CookieModal.tsx +49 -49
  915. package/source/components/_common/Modal/Modal.story.js +37 -37
  916. package/source/components/_common/Modal/Modal.styled.tsx +15 -15
  917. package/source/components/_common/Modal/Modal.tsx +24 -24
  918. package/source/components/_common/Modal/ModalsConfig.tsx +23 -23
  919. package/source/components/_common/Modal/modals/ManageCookieModal/ManageCookieModal.styl +75 -75
  920. package/source/components/_common/Modal/modals/ManageCookieModal/ManageCookieModal.tsx +140 -140
  921. package/source/components/_common/Modal/modals/PreviewCookieModal/PreviewCookieModal.styl +66 -66
  922. package/source/components/_common/Modal/modals/PreviewCookieModal/PreviewCookieModal.tsx +47 -47
  923. package/source/components/_common/Modal/modals/TestModal.tsx +7 -7
  924. package/source/components/_common/MuiDropDown/MuiDropDown.tsx +93 -93
  925. package/source/components/_common/MuiGroupedSelect/MuiGroupedSelect.story.js +21 -21
  926. package/source/components/_common/MuiGroupedSelect/MuiGroupedSelect.tsx +87 -87
  927. package/source/components/_common/OfferRequestButtonWrapper/OfferRequestButtonWrapper.styl +119 -119
  928. package/source/components/_common/OfferRequestButtonWrapper/OfferRequestButtonWrapper.styled.tsx +23 -23
  929. package/source/components/_common/OfferRequestButtonWrapper/OfferRequestButtonWrapper.tsx +114 -114
  930. package/source/components/_common/PropertySelector/PSGroup.story.js +93 -93
  931. package/source/components/_common/PropertySelector/PSGroup.story.styl +25 -25
  932. package/source/components/_common/PropertySelector/PSGroup.styl +5 -5
  933. package/source/components/_common/PropertySelector/PSGroup.tsx +98 -98
  934. package/source/components/_common/PropertySelector/PropertySelector.styl +139 -139
  935. package/source/components/_common/PropertySelector/PropertySelector.tsx +100 -100
  936. package/source/components/_common/PropertySelector/ProperySelector.story.js +83 -83
  937. package/source/components/_common/Radio/FormRadioGroup.story.js +28 -28
  938. package/source/components/_common/Radio/FormRadioGroup.story.styl +2 -2
  939. package/source/components/_common/Radio/FormRadioGroup.styl +22 -22
  940. package/source/components/_common/Radio/FormRadioGroup.tsx +77 -77
  941. package/source/components/_common/Radio/Radio.story.js +54 -54
  942. package/source/components/_common/Radio/Radio.styl +115 -115
  943. package/source/components/_common/Radio/Radio.tsx +141 -141
  944. package/source/components/_common/Radio/RadioGroup.story.js +90 -90
  945. package/source/components/_common/Radio/RadioGroup.story.styl +39 -39
  946. package/source/components/_common/Radio/RadioGroup.styl +5 -5
  947. package/source/components/_common/Radio/RadioGroup.tsx +65 -65
  948. package/source/components/_common/Range/Range.story.js +46 -46
  949. package/source/components/_common/Range/Range.story.styl +4 -4
  950. package/source/components/_common/Range/Range.styl +71 -71
  951. package/source/components/_common/Range/Range.tsx +69 -69
  952. package/source/components/_common/Skeleton/SkeletonItem.styl +80 -80
  953. package/source/components/_common/Skeleton/SkeletonItem.tsx +80 -80
  954. package/source/components/_common/Skeleton/SkeletonSearchItem.styl +123 -123
  955. package/source/components/_common/Skeleton/SkeletonSearchItem.tsx +92 -92
  956. package/source/components/_common/Slider/Slider.styl +2 -2
  957. package/source/components/_common/Slider/Slider.tsx +130 -130
  958. package/source/components/_common/SliderArrow/SliderArrow.story.js +18 -18
  959. package/source/components/_common/SliderArrow/SliderArrow.styl +32 -32
  960. package/source/components/_common/SliderArrow/SliderArrow.tsx +36 -36
  961. package/source/components/_common/StarButton/StarButton.styl +39 -39
  962. package/source/components/_common/StarButton/StarButton.tsx +31 -31
  963. package/source/components/_common/Tabs/TabPanel.tsx +28 -28
  964. package/source/components/_common/Tabs/Tabs.story.js +55 -55
  965. package/source/components/_common/Tabs/Tabs.styl +40 -40
  966. package/source/components/_common/Tabs/Tabs.tsx +44 -44
  967. package/source/components/_common/TextAreaField/TextAreaField.styl +47 -47
  968. package/source/components/_common/TextAreaField/TextAreaField.tsx +74 -74
  969. package/source/components/_common/TextField/TextField.styl +37 -37
  970. package/source/components/_common/TextField/TextField.tsx +77 -77
  971. package/source/components/_common/TimePicker/TimePicker.story.js +37 -37
  972. package/source/components/_common/TimePicker/TimePicker.styl +22 -22
  973. package/source/components/_common/TimePicker/TimePicker.tsx +155 -155
  974. package/source/components/_common/Tooltip/Tooltip.story.js +28 -28
  975. package/source/components/_common/Tooltip/Tooltip.styl +117 -117
  976. package/source/components/_common/Tooltip/Tooltip.tsx +62 -62
  977. package/source/components/_common/UserMenu/MaterialMenu.story.js +73 -73
  978. package/source/components/_common/UserMenu/MaterialMenu.styled.tsx +84 -84
  979. package/source/components/_common/UserMenu/MaterialMenu.tsx +101 -101
  980. package/source/components/_common/UserMenu/MaterialMenuItem.tsx +76 -76
  981. package/source/components/_common/UserMenu/NestedMenu.tsx +59 -59
  982. package/source/components/_common/Usp/Usp.styl +78 -78
  983. package/source/components/_common/Usp/Usp.tsx +30 -30
  984. package/source/components/_common/VehicleSlider/VehicleSlider.story.js +99 -99
  985. package/source/components/_common/VehicleSlider/VehicleSlider.styl +62 -62
  986. package/source/components/_common/VehicleSlider/VehicleSlider.tsx +125 -125
  987. package/source/components/_common/VehicleSlider/VehicleSliderForSRL.tsx +175 -175
  988. package/source/components/_common/withLabel/withLabel.story.js +62 -62
  989. package/source/components/_common/withLabel/withLabel.styl +33 -33
  990. package/source/components/_common/withLabel/withLabel.tsx +44 -44
  991. package/source/components/_common/withPopover/withPopover.story.js +48 -48
  992. package/source/components/_common/withPopover/withPopover.story.styl +53 -53
  993. package/source/components/_common/withPopover/withPopover.styl +3 -3
  994. package/source/components/_common/withPopover/withPopover.tsx +88 -88
  995. package/source/components/_common/withStats/withStats.story.js +75 -75
  996. package/source/components/_common/withStats/withStats.styl +150 -150
  997. package/source/components/_common/withStats/withStats.tsx +179 -179
  998. package/source/components/containers/DasboardSection/DashboardSection.styl +14 -14
  999. package/source/components/containers/DasboardSection/DashboardSection.tsx +23 -23
  1000. package/source/components/containers/SearchPage/FiltersContainer/FiltersContainer.styl +54 -54
  1001. package/source/components/containers/SearchPage/FiltersContainer/FiltersContainer.tsx +427 -427
  1002. package/source/framework/DataTransformers.ts +80 -80
  1003. package/source/framework/constants/RateSearchWidget.ts +15 -15
  1004. package/source/framework/constants/Search.ts +290 -290
  1005. package/source/framework/constants/SearchWidget.ts +108 -108
  1006. package/source/framework/constants/app.ts +223 -223
  1007. package/source/framework/constants/cars.ts +36 -36
  1008. package/source/framework/constants/common.ts +85 -85
  1009. package/source/framework/constants/data.ts +52 -52
  1010. package/source/framework/constants/filters.ts +11 -11
  1011. package/source/framework/constants/highlights.ts +165 -165
  1012. package/source/framework/constants/price.ts +9 -9
  1013. package/source/framework/constants/queryBuilder.ts +4 -4
  1014. package/source/framework/constants/selectors.ts +38 -38
  1015. package/source/framework/constants.ts +116 -116
  1016. package/source/framework/data.ts +6 -6
  1017. package/source/framework/factories/BreadcrumbsFactory.tsx +285 -285
  1018. package/source/framework/factories/FactoryTypes.d.ts +30 -30
  1019. package/source/framework/factories/FilterFactory.ts +364 -364
  1020. package/source/framework/factories/ModalsFactory.tsx +11 -11
  1021. package/source/framework/hooks/useModal.ts +13 -13
  1022. package/source/framework/schemes/AggregationScheme.ts +73 -73
  1023. package/source/framework/types/types.ts +349 -349
  1024. package/source/framework/utils/CommonUtils.ts +630 -630
  1025. package/source/framework/utils/CookieUtils.ts +61 -61
  1026. package/source/framework/utils/DateUtils.ts +93 -93
  1027. package/source/framework/utils/FiltersUtils.ts +234 -234
  1028. package/source/framework/utils/RequestUtils.ts +20 -20
  1029. package/source/framework/utils/StyledComponent.ts +2 -2
  1030. package/source/framework/vehiclesProps/cbdSelectors.ts +117 -117
  1031. package/source/framework/vehiclesProps/decoratedLightProps.tsx +345 -345
  1032. package/source/framework/vehiclesProps/decoratedProps.tsx +1057 -1057
  1033. package/source/framework/vehiclesProps/equipment.ts +129 -129
  1034. package/source/framework/vehiclesProps/highlights.ts +54 -54
  1035. package/source/framework/vehiclesProps/vehicleDetails.ts +329 -329
  1036. package/source/globals.d.ts +18 -18
  1037. package/source/locales/SearchDetailedPage.ts +205 -205
  1038. package/source/locales/SearchPage.ts +224 -224
  1039. package/source/locales/cbd.ts +719 -719
  1040. package/source/locales/common.ts +109 -109
  1041. package/source/locales/data.ts +1078 -1078
  1042. package/source/locales/priceRating.ts +10 -10
  1043. package/source/locales/sortingOptions.ts +21 -21
  1044. package/source/theme/colors.styl +46 -46
  1045. package/source/theme/mixins.styl +93 -93
  1046. package/source/theme/priceReviewColors.styl +12 -12
  1047. package/source/theme/selector_colors.styl +61 -61
  1048. package/source/theme/slider.global.styl +3 -3
  1049. package/source/theme/theme.styl +136 -136
  1050. package/tsconfig.json +65 -65
  1051. package/tslint.json +38 -38
  1052. package/utils.ts +57 -57
@@ -1,427 +1,427 @@
1
- import * as React from 'react';
2
- import _get from 'lodash/get';
3
- import _startsWith from 'lodash/startsWith';
4
- import _debounce from 'lodash/debounce';
5
- import qs from 'qs';
6
- import { isEqual } from 'lodash';
7
- import { checkRangeValuesOnEqual, getGroupValuesForQuery } from '../../../../framework/utils/CommonUtils';
8
- import { FilterBlockFactory } from '../../../SearchFilters/common/FilterBlock/FilterBlockFactory';
9
- import { FilterGroups, IFilters } from '../../../SearchFilters/FiltersFactory';
10
- import { MANUFACTURER_KEY, MM_GROUPS_EXCLUDE_KEY, MODEL_KEY, RANGE_FILTERS, SERIES_KEY, SUPER_ADMIN_FILTER_NAME } from '../../../../framework/constants/Search';
11
- import { MMS_GROUPS_KEY, OBJECT_FILTERS } from '../../../../framework/constants/SearchWidget';
12
- import { resolveMmsValue } from '../../../../framework/utils/FiltersUtils';
13
- import FilterBlock from '../../../SearchFilters/common/FilterBlock/FilterBlock';
14
- import styles from './FiltersContainer.styl';
15
- import AlternativeID from '../../../SearchFilters/filters/AlternativeID';
16
-
17
- type PathParamsType = {
18
- location?: any;
19
- [key: string]: string;
20
- };
21
-
22
- interface IRouteComponentProps<Params extends { [K in keyof Params]?: string } = {}> {
23
- history: any;
24
- location: any;
25
- match: any;
26
- staticContext?: any;
27
- }
28
-
29
- interface IFiltersContainerProps extends IRouteComponentProps<PathParamsType> {
30
- filters: IFilters;
31
- activeSorting: string;
32
- locationSearch: string;
33
- aggregation: {};
34
- setActiveSorting: (newActiveSorting: string) => void;
35
- setLastSearchString: (filters: IFilters, query: string) => void;
36
- search: (filters: any, page?: number, getStats?: boolean) => void;
37
- resetFiltersToDefault: () => void;
38
- clearSearchState: (clearSorting?: boolean) => void;
39
- addMmsGroup: () => void;
40
- onFilterChange?: () => void;
41
- addMmExcludeGroup: () => void;
42
- clearSearchConfig: () => void;
43
- setSearchConfig: (config: {}) => void;
44
- removeMmsGroup: (index: number) => boolean;
45
- addModelsToFilters: (models: any, index: number) => void;
46
- getManufacturers: (onlyWithOnlineCars?: boolean) => Promise<any>;
47
- changeRangeFilterControls: (filterKey: string, value: any) => void;
48
- changeSeries: (field: string, filterValue: string, index: number) => void;
49
- addManufacturersToFilters: (brands: any, clearModelValue?: boolean) => void;
50
- changeFilterValue: (filterKey: string, filterValue: string, index?: number) => void;
51
- onAlternativeRedirect: (value: string) => void;
52
- getModelsInfoByMaker: (maker: string, onlyWithOnlineCars?: boolean) => Promise<any>;
53
- readonly isDealerSuperAdmin: boolean;
54
- t?: (phrase: string) => string;
55
- isDealerPage?: boolean;
56
- isAlternative?: boolean;
57
- successTransition?: boolean;
58
- isErrorAlternativeField: boolean;
59
- Link?: any;
60
- }
61
-
62
- class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
63
- componentDidMount() {
64
- this.getFiltersFromQuery();
65
- this.updateFinancingSearchConfig();
66
- }
67
-
68
- componentDidUpdate(prevProps: IFiltersContainerProps) {
69
- const { location, filters, resetFiltersToDefault, clearSearchState, search, activeSorting, setActiveSorting } = this.props;
70
- if ((prevProps.location.search !== location.search) && !_startsWith(location.search, '?pageNumber')) {
71
- const queryFromFilters = this.getQueryFromFilters();
72
- const prevQueryFromFilters = ['pageNumber', 'activeSort'].reduce((url, param) => url.replace(new RegExp(`(^${param}=\\w*&|&${param}=\\w*)`), ''), prevProps.location.search.slice(1));
73
- const paramsFromQuery = qs.parse(location.search, { ignoreQueryPrefix: true });
74
- const pageNumber = paramsFromQuery.pageNumber;
75
- const activeSort = paramsFromQuery.activeSort;
76
-
77
- // if we get url from another place
78
- // for example from Navigation
79
- if (queryFromFilters !== prevQueryFromFilters) {
80
- resetFiltersToDefault();
81
- this.getFiltersFromQuery();
82
- }
83
-
84
- if (activeSort !== activeSorting) {
85
- // activeSorting = activeSort; // TODO make a function to change at searchStore
86
- setActiveSorting(activeSort);
87
- }
88
-
89
- clearSearchState(!activeSort);
90
- search(filters, pageNumber || 1, true);
91
- }
92
-
93
- this.updateFinancingSearchConfig();
94
- }
95
-
96
- componentWillUnmount(): void {
97
- const { location, filters, setLastSearchString, resetFiltersToDefault } = this.props;
98
- setLastSearchString(filters, location.search);
99
- resetFiltersToDefault();
100
- }
101
-
102
- onFilterChange = (field: string, value: any, index?: number, isSeries?: boolean) => {
103
- const { addModelsToFilters, changeFilterValue, changeSeries, getModelsInfoByMaker } = this.props;
104
- let newValue = _get(value, 'value') || value;
105
-
106
- if (newValue && newValue.from === 0) {
107
- newValue.from = '0';
108
- }
109
-
110
- if (newValue && newValue.to === 0) {
111
- newValue.to = '0';
112
- }
113
-
114
- if (field === MANUFACTURER_KEY || field === MODEL_KEY) { //tslint:disable-line
115
- newValue = resolveMmsValue(newValue);
116
- }
117
-
118
- if (field === MANUFACTURER_KEY) {
119
- changeFilterValue(MODEL_KEY, '', index);
120
- changeFilterValue(SERIES_KEY, '', index);
121
-
122
- if (newValue) {
123
- getModelsInfoByMaker(newValue, true).then((response: any) => {
124
- const models = response || [];
125
- addModelsToFilters(models, index);
126
- });
127
- } else {
128
- addModelsToFilters([], index);
129
- }
130
- }
131
-
132
- if (field === MODEL_KEY) {
133
- const seriesValue = isSeries ? newValue : '';
134
- newValue = isSeries ? '' : newValue;
135
- changeSeries(field, seriesValue, index);
136
- }
137
-
138
- changeFilterValue(field, newValue, index);
139
- this.props.onFilterChange();
140
- };
141
-
142
- onChangeFilterControls = (field: string, value: any) => {
143
- const { changeRangeFilterControls } = this.props;
144
- changeRangeFilterControls(field, value);
145
- this.props.onFilterChange();
146
- };
147
-
148
- onAddMmsGroupClick = () => {
149
- const { getManufacturers, addMmsGroup, addManufacturersToFilters } = this.props;
150
- getManufacturers(true).then((manufacturers: any) => {
151
- addMmsGroup();
152
- addManufacturersToFilters(manufacturers, false);
153
- });
154
- };
155
-
156
- onRemoveMmsGroup = (index: number) => {
157
- const { filters, removeMmsGroup, clearSearchState, search, onFilterChange } = this.props;
158
-
159
- const needToRefreshPage = removeMmsGroup(index);
160
-
161
- if (needToRefreshPage) {
162
- onFilterChange();
163
- clearSearchState();
164
- search(filters, 1, true);
165
- }
166
- };
167
-
168
- updateFinancingSearchConfig = () => {
169
- const { setSearchConfig, clearSearchConfig, location } = this.props;
170
- const paramsFromQuery = qs.parse(location.search, { ignoreQueryPrefix: true });
171
- if ('RATE' in paramsFromQuery && typeof paramsFromQuery.RATE === 'object') {
172
- setSearchConfig(paramsFromQuery.RATE);
173
- } else {
174
- clearSearchConfig();
175
- }
176
- }
177
-
178
- getFiltersFromQuery = () => {
179
- const { location, changeFilterValue,
180
- addModelsToFilters,
181
- addMmsGroup,
182
- addMmExcludeGroup,
183
- changeRangeFilterControls, getModelsInfoByMaker,
184
- getManufacturers,
185
- addManufacturersToFilters
186
- } = this.props;
187
-
188
- const paramsFromQuery = qs.parse(location.search, { ignoreQueryPrefix: true });
189
- const paramsKeys = Object.keys(paramsFromQuery);
190
- const clearModelValue = !paramsKeys.length;
191
- const rangeFiltersStrings = Object.keys(RANGE_FILTERS);
192
- const objectFiltersStrings = Object.keys(OBJECT_FILTERS);
193
-
194
- if (paramsKeys.length) {
195
- paramsKeys.forEach((filter: string) => {
196
- const paramValue = paramsFromQuery[filter];
197
-
198
- if (filter === MMS_GROUPS_KEY) { //tslint:disable-line
199
- paramValue.map((group: any, index: number) => {
200
- if (index >= 1) {
201
- if (filter === MMS_GROUPS_KEY) addMmsGroup();
202
- }
203
-
204
- Object.keys(group).forEach((key: string) => {
205
- changeFilterValue(key, group[key], index);
206
- if (key === MANUFACTURER_KEY) {
207
- getModelsInfoByMaker(group[key], true).then((response: any) => {
208
- const models = response || [];
209
- addModelsToFilters(models, index);
210
- });
211
- }
212
- });
213
- });
214
- } else if (filter === MM_GROUPS_EXCLUDE_KEY) {
215
- paramValue.map((group: any, index: number) => {
216
- if (index >= 1) {
217
- addMmExcludeGroup();
218
- }
219
-
220
- Object.keys(group).forEach((key: string) => {
221
- changeFilterValue(key, group[key], index);
222
- });
223
- });
224
- } else {
225
- // Defines whether filter is range or not.
226
- const isRange = rangeFiltersStrings.indexOf(filter) !== -1;
227
- const isObject = objectFiltersStrings.indexOf(filter) !== -1;
228
-
229
- // Transform url encoded param into range filter object.
230
- const valueToSend = isRange ? qs.parse(paramValue, { ignoreQueryPrefix: true }) : paramValue;
231
- changeFilterValue(filter, valueToSend);
232
- if (isRange || isObject) { changeRangeFilterControls(filter, valueToSend); }
233
- }
234
- });
235
- }
236
-
237
- getManufacturers(true).then((response: any) => {
238
- addManufacturersToFilters(response, clearModelValue);
239
- });
240
- };
241
-
242
- getQueryFromFilters = () => {
243
- const { filters } = this.props;
244
- const filtersKeys = Object.keys(filters);
245
- const query: { [key: string]: any } = {};
246
-
247
- filtersKeys.forEach((filter: string) => {
248
- const filterObj = filters[filter];
249
- const filterValue = filter === MMS_GROUPS_KEY ? getGroupValuesForQuery(filterObj) : filterObj.value;
250
- const isRangeFilter = typeof filterValue === 'object' && filterObj.isRange;
251
- const isRateFilter = typeof filterValue === 'object' && filterObj.isRate;
252
-
253
- if (filterValue && (filterValue.length || isRateFilter)) {
254
- query[filter] = filterValue;
255
- }
256
-
257
- if (isRangeFilter) {
258
- const defaultValue = RANGE_FILTERS[filter].defaultValue;
259
- const valueIsDefault = checkRangeValuesOnEqual(defaultValue, filterValue);
260
-
261
- if (!valueIsDefault) {
262
- query[filter] = filterValue;
263
- }
264
- }
265
- });
266
-
267
- return qs.stringify(query, { encode: false });
268
- };
269
-
270
- getMmsGroupsProps = (filter: string) => {
271
- const { filters } = this.props;
272
- const mmsGroups = filters[filter];
273
- return mmsGroups.map((filterGroup: any, index: number) => {
274
- const group: any = {};
275
-
276
- Object.keys(filterGroup).forEach((fl: string) => {
277
-
278
- group[fl] = {
279
- values: filters[filter][index][fl].value,
280
- options: filters[filter][index][fl].options
281
- };
282
- });
283
-
284
- return group;
285
- });
286
- };
287
-
288
- getDefaultFilterProps = (filter: string) => {
289
- const { filters, aggregation } = this.props;
290
- const agg: any = aggregation;
291
- const controls = filters[filter].controls;
292
- const controlsType = _get(controls, 'type', '');
293
- const filterField = `${filters[filter].field}${controlsType}`;
294
- const histograms = agg['HISTOGRAM'] || {};
295
- const isHistogram = Object.keys(histograms).indexOf(filterField) !== -1;
296
-
297
- const typeOptions = filters[filter].typeOptions;
298
- let filterProps = {
299
- ...(controls && Object.keys(controls).length && { controls }),
300
- ...(typeOptions && Object.keys(typeOptions).length && { typeOptions })
301
- };
302
-
303
- if (isHistogram) {
304
- const histogramData = histograms[filterField].length ? histograms[filterField] : RANGE_FILTERS[filter].options;
305
- const actualValues = {
306
- from: histogramData[0].from,
307
- to: histogramData[histogramData.length - 1].to
308
- };
309
-
310
- filterProps = Object.assign({}, filterProps, {
311
- values: { ...actualValues, type: controlsType },
312
- options: histogramData
313
- });
314
- } else {
315
- const values = filters[filter].value;
316
- const options = filters[filter].options;
317
- const optionsWithoutUnknown = removeUnknownOptions(options);
318
-
319
- filterProps = Object.assign({}, filterProps, {
320
- values,
321
- options: optionsWithoutUnknown,
322
- ...(agg[filter] && { aggregation: agg[filter] })
323
- });
324
- }
325
-
326
- return filterProps;
327
- };
328
-
329
- renderFilters = () => {
330
- const { t, isDealerSuperAdmin, Link, isDealerPage, isAlternative } = this.props;
331
- // const { isDealerSuperAdmin } = authStore;
332
-
333
- return Object.keys(FilterGroups).map((groupKey: string, index: number) => {
334
- const basicDataProps = {
335
- onAddMmsGroup: this.onAddMmsGroupClick,
336
- onRemoveMmsGroup: this.onRemoveMmsGroup
337
- };
338
-
339
- const baseProps = {
340
- t,
341
- onFilterChange: this.onFilterChange,
342
- onChangeFilterControls: this.onChangeFilterControls,
343
- ...(groupKey === 'BASIC_DATA' && basicDataProps),
344
- ...(groupKey === 'EQUIPMENTS' && { Link }),
345
- isDealerPage
346
- };
347
-
348
- const compProps: any = {};
349
-
350
- FilterGroups[groupKey].filters.forEach((filter: string) => {
351
- if (filter === MMS_GROUPS_KEY) {
352
- compProps[filter] = this.getMmsGroupsProps(filter);
353
- } else {
354
- compProps[filter] = this.getDefaultFilterProps(filter);
355
- }
356
- });
357
-
358
- const _props = Object.assign({}, baseProps, compProps);
359
- const component = FilterBlockFactory[groupKey](_props);
360
- const title = FilterGroups[groupKey].title;
361
-
362
- // TODO: find better way to exclude super admin filters
363
- // Specific case for additional super admin widgets.
364
- // We do not need to show them to normal customer.
365
- if ((!isDealerSuperAdmin || isAlternative) && title === SUPER_ADMIN_FILTER_NAME) return null;
366
-
367
- return (
368
- <FilterBlock
369
- isAdminPanel={title === SUPER_ADMIN_FILTER_NAME}
370
- key={index} title={t(`SearchPage:filterGroups.${title}`)}
371
- expand={index === (isDealerSuperAdmin && !isAlternative ? 0 : 1)}
372
- className={title}
373
- >
374
- {component}
375
- </FilterBlock>
376
- );
377
- });
378
- };
379
-
380
- render() {
381
- const { t, onAlternativeRedirect, isAlternative, isErrorAlternativeField, Link, locationSearch, successTransition } = this.props;
382
- const paramsFromQuery = qs.parse(location.search, { ignoreQueryPrefix: true });
383
- const alternativeIDProps = {
384
- t,
385
- successTransition,
386
- autoDeId: paramsFromQuery.autoDeId,
387
- error: isErrorAlternativeField,
388
- onChange: onAlternativeRedirect
389
- };
390
-
391
- return (
392
- <div className={styles.filters}>
393
- {isAlternative ? (
394
- <div className={styles.titleAlternative}>
395
- <div className={styles.titleWrap}>
396
- <h3 className={styles.titleTextAlternative}>auto.de-ID</h3>
397
- <Link to={ `/alternative/detailed${locationSearch}` } className={styles.titleLink}>
398
- {this.props.t('SearchPage:detailedSearch')}
399
- </Link>
400
- </div>
401
- <AlternativeID {...alternativeIDProps} />
402
- </div>
403
- ) : ''}
404
- <div className={styles.title}>
405
- <h3 className={styles.titleText}>{this.props.t('SearchPage:filterBy')}</h3>
406
- </div>
407
- {this.renderFilters()}
408
- <Link className={styles.linkToDetailed} to={ `/${isAlternative ? 'alternative' : 'search'}/detailed${locationSearch}` }>{t('SearchPage:detailedSearch')}</Link>
409
- </div>
410
- );
411
- }
412
- }
413
-
414
- const removeUnknownOptions = (options: any) => {
415
- if (!options || !options.length || typeof options[0] !== 'string') return options;
416
- return options.filter((o: string) => o !== 'selector_unknown');
417
- };
418
-
419
- // export default React.memo(FiltersContainer);
420
-
421
- export default React.memo(FiltersContainer, (props, nextProps) => {
422
- const { t, location, filters, aggregation } = props;
423
- return t === nextProps.t &&
424
- location.search === nextProps.location.search &&
425
- isEqual(aggregation, nextProps.aggregation) &&
426
- isEqual(filters.MMS_GROUPS, nextProps.filters.MMS_GROUPS);
427
- });
1
+ import * as React from 'react';
2
+ import _get from 'lodash/get';
3
+ import _startsWith from 'lodash/startsWith';
4
+ import _debounce from 'lodash/debounce';
5
+ import qs from 'qs';
6
+ import { isEqual } from 'lodash';
7
+ import { checkRangeValuesOnEqual, getGroupValuesForQuery } from '../../../../framework/utils/CommonUtils';
8
+ import { FilterBlockFactory } from '../../../SearchFilters/common/FilterBlock/FilterBlockFactory';
9
+ import { FilterGroups, IFilters } from '../../../SearchFilters/FiltersFactory';
10
+ import { MANUFACTURER_KEY, MM_GROUPS_EXCLUDE_KEY, MODEL_KEY, RANGE_FILTERS, SERIES_KEY, SUPER_ADMIN_FILTER_NAME } from '../../../../framework/constants/Search';
11
+ import { MMS_GROUPS_KEY, OBJECT_FILTERS } from '../../../../framework/constants/SearchWidget';
12
+ import { resolveMmsValue } from '../../../../framework/utils/FiltersUtils';
13
+ import FilterBlock from '../../../SearchFilters/common/FilterBlock/FilterBlock';
14
+ import styles from './FiltersContainer.styl';
15
+ import AlternativeID from '../../../SearchFilters/filters/AlternativeID';
16
+
17
+ type PathParamsType = {
18
+ location?: any;
19
+ [key: string]: string;
20
+ };
21
+
22
+ interface IRouteComponentProps<Params extends { [K in keyof Params]?: string } = {}> {
23
+ history: any;
24
+ location: any;
25
+ match: any;
26
+ staticContext?: any;
27
+ }
28
+
29
+ interface IFiltersContainerProps extends IRouteComponentProps<PathParamsType> {
30
+ filters: IFilters;
31
+ activeSorting: string;
32
+ locationSearch: string;
33
+ aggregation: {};
34
+ setActiveSorting: (newActiveSorting: string) => void;
35
+ setLastSearchString: (filters: IFilters, query: string) => void;
36
+ search: (filters: any, page?: number, getStats?: boolean) => void;
37
+ resetFiltersToDefault: () => void;
38
+ clearSearchState: (clearSorting?: boolean) => void;
39
+ addMmsGroup: () => void;
40
+ onFilterChange?: () => void;
41
+ addMmExcludeGroup: () => void;
42
+ clearSearchConfig: () => void;
43
+ setSearchConfig: (config: {}) => void;
44
+ removeMmsGroup: (index: number) => boolean;
45
+ addModelsToFilters: (models: any, index: number) => void;
46
+ getManufacturers: (onlyWithOnlineCars?: boolean) => Promise<any>;
47
+ changeRangeFilterControls: (filterKey: string, value: any) => void;
48
+ changeSeries: (field: string, filterValue: string, index: number) => void;
49
+ addManufacturersToFilters: (brands: any, clearModelValue?: boolean) => void;
50
+ changeFilterValue: (filterKey: string, filterValue: string, index?: number) => void;
51
+ onAlternativeRedirect: (value: string) => void;
52
+ getModelsInfoByMaker: (maker: string, onlyWithOnlineCars?: boolean) => Promise<any>;
53
+ readonly isDealerSuperAdmin: boolean;
54
+ t?: (phrase: string) => string;
55
+ isDealerPage?: boolean;
56
+ isAlternative?: boolean;
57
+ successTransition?: boolean;
58
+ isErrorAlternativeField: boolean;
59
+ Link?: any;
60
+ }
61
+
62
+ class FiltersContainer extends React.Component<IFiltersContainerProps, {}> {
63
+ componentDidMount() {
64
+ this.getFiltersFromQuery();
65
+ this.updateFinancingSearchConfig();
66
+ }
67
+
68
+ componentDidUpdate(prevProps: IFiltersContainerProps) {
69
+ const { location, filters, resetFiltersToDefault, clearSearchState, search, activeSorting, setActiveSorting } = this.props;
70
+ if ((prevProps.location.search !== location.search) && !_startsWith(location.search, '?pageNumber')) {
71
+ const queryFromFilters = this.getQueryFromFilters();
72
+ const prevQueryFromFilters = ['pageNumber', 'activeSort'].reduce((url, param) => url.replace(new RegExp(`(^${param}=\\w*&|&${param}=\\w*)`), ''), prevProps.location.search.slice(1));
73
+ const paramsFromQuery = qs.parse(location.search, { ignoreQueryPrefix: true });
74
+ const pageNumber = paramsFromQuery.pageNumber;
75
+ const activeSort = paramsFromQuery.activeSort;
76
+
77
+ // if we get url from another place
78
+ // for example from Navigation
79
+ if (queryFromFilters !== prevQueryFromFilters) {
80
+ resetFiltersToDefault();
81
+ this.getFiltersFromQuery();
82
+ }
83
+
84
+ if (activeSort !== activeSorting) {
85
+ // activeSorting = activeSort; // TODO make a function to change at searchStore
86
+ setActiveSorting(activeSort);
87
+ }
88
+
89
+ clearSearchState(!activeSort);
90
+ search(filters, pageNumber || 1, true);
91
+ }
92
+
93
+ this.updateFinancingSearchConfig();
94
+ }
95
+
96
+ componentWillUnmount(): void {
97
+ const { location, filters, setLastSearchString, resetFiltersToDefault } = this.props;
98
+ setLastSearchString(filters, location.search);
99
+ resetFiltersToDefault();
100
+ }
101
+
102
+ onFilterChange = (field: string, value: any, index?: number, isSeries?: boolean) => {
103
+ const { addModelsToFilters, changeFilterValue, changeSeries, getModelsInfoByMaker } = this.props;
104
+ let newValue = _get(value, 'value') || value;
105
+
106
+ if (newValue && newValue.from === 0) {
107
+ newValue.from = '0';
108
+ }
109
+
110
+ if (newValue && newValue.to === 0) {
111
+ newValue.to = '0';
112
+ }
113
+
114
+ if (field === MANUFACTURER_KEY || field === MODEL_KEY) { //tslint:disable-line
115
+ newValue = resolveMmsValue(newValue);
116
+ }
117
+
118
+ if (field === MANUFACTURER_KEY) {
119
+ changeFilterValue(MODEL_KEY, '', index);
120
+ changeFilterValue(SERIES_KEY, '', index);
121
+
122
+ if (newValue) {
123
+ getModelsInfoByMaker(newValue, true).then((response: any) => {
124
+ const models = response || [];
125
+ addModelsToFilters(models, index);
126
+ });
127
+ } else {
128
+ addModelsToFilters([], index);
129
+ }
130
+ }
131
+
132
+ if (field === MODEL_KEY) {
133
+ const seriesValue = isSeries ? newValue : '';
134
+ newValue = isSeries ? '' : newValue;
135
+ changeSeries(field, seriesValue, index);
136
+ }
137
+
138
+ changeFilterValue(field, newValue, index);
139
+ this.props.onFilterChange();
140
+ };
141
+
142
+ onChangeFilterControls = (field: string, value: any) => {
143
+ const { changeRangeFilterControls } = this.props;
144
+ changeRangeFilterControls(field, value);
145
+ this.props.onFilterChange();
146
+ };
147
+
148
+ onAddMmsGroupClick = () => {
149
+ const { getManufacturers, addMmsGroup, addManufacturersToFilters } = this.props;
150
+ getManufacturers(true).then((manufacturers: any) => {
151
+ addMmsGroup();
152
+ addManufacturersToFilters(manufacturers, false);
153
+ });
154
+ };
155
+
156
+ onRemoveMmsGroup = (index: number) => {
157
+ const { filters, removeMmsGroup, clearSearchState, search, onFilterChange } = this.props;
158
+
159
+ const needToRefreshPage = removeMmsGroup(index);
160
+
161
+ if (needToRefreshPage) {
162
+ onFilterChange();
163
+ clearSearchState();
164
+ search(filters, 1, true);
165
+ }
166
+ };
167
+
168
+ updateFinancingSearchConfig = () => {
169
+ const { setSearchConfig, clearSearchConfig, location } = this.props;
170
+ const paramsFromQuery = qs.parse(location.search, { ignoreQueryPrefix: true });
171
+ if ('RATE' in paramsFromQuery && typeof paramsFromQuery.RATE === 'object') {
172
+ setSearchConfig(paramsFromQuery.RATE);
173
+ } else {
174
+ clearSearchConfig();
175
+ }
176
+ }
177
+
178
+ getFiltersFromQuery = () => {
179
+ const { location, changeFilterValue,
180
+ addModelsToFilters,
181
+ addMmsGroup,
182
+ addMmExcludeGroup,
183
+ changeRangeFilterControls, getModelsInfoByMaker,
184
+ getManufacturers,
185
+ addManufacturersToFilters
186
+ } = this.props;
187
+
188
+ const paramsFromQuery = qs.parse(location.search, { ignoreQueryPrefix: true });
189
+ const paramsKeys = Object.keys(paramsFromQuery);
190
+ const clearModelValue = !paramsKeys.length;
191
+ const rangeFiltersStrings = Object.keys(RANGE_FILTERS);
192
+ const objectFiltersStrings = Object.keys(OBJECT_FILTERS);
193
+
194
+ if (paramsKeys.length) {
195
+ paramsKeys.forEach((filter: string) => {
196
+ const paramValue = paramsFromQuery[filter];
197
+
198
+ if (filter === MMS_GROUPS_KEY) { //tslint:disable-line
199
+ paramValue.map((group: any, index: number) => {
200
+ if (index >= 1) {
201
+ if (filter === MMS_GROUPS_KEY) addMmsGroup();
202
+ }
203
+
204
+ Object.keys(group).forEach((key: string) => {
205
+ changeFilterValue(key, group[key], index);
206
+ if (key === MANUFACTURER_KEY) {
207
+ getModelsInfoByMaker(group[key], true).then((response: any) => {
208
+ const models = response || [];
209
+ addModelsToFilters(models, index);
210
+ });
211
+ }
212
+ });
213
+ });
214
+ } else if (filter === MM_GROUPS_EXCLUDE_KEY) {
215
+ paramValue.map((group: any, index: number) => {
216
+ if (index >= 1) {
217
+ addMmExcludeGroup();
218
+ }
219
+
220
+ Object.keys(group).forEach((key: string) => {
221
+ changeFilterValue(key, group[key], index);
222
+ });
223
+ });
224
+ } else {
225
+ // Defines whether filter is range or not.
226
+ const isRange = rangeFiltersStrings.indexOf(filter) !== -1;
227
+ const isObject = objectFiltersStrings.indexOf(filter) !== -1;
228
+
229
+ // Transform url encoded param into range filter object.
230
+ const valueToSend = isRange ? qs.parse(paramValue, { ignoreQueryPrefix: true }) : paramValue;
231
+ changeFilterValue(filter, valueToSend);
232
+ if (isRange || isObject) { changeRangeFilterControls(filter, valueToSend); }
233
+ }
234
+ });
235
+ }
236
+
237
+ getManufacturers(true).then((response: any) => {
238
+ addManufacturersToFilters(response, clearModelValue);
239
+ });
240
+ };
241
+
242
+ getQueryFromFilters = () => {
243
+ const { filters } = this.props;
244
+ const filtersKeys = Object.keys(filters);
245
+ const query: { [key: string]: any } = {};
246
+
247
+ filtersKeys.forEach((filter: string) => {
248
+ const filterObj = filters[filter];
249
+ const filterValue = filter === MMS_GROUPS_KEY ? getGroupValuesForQuery(filterObj) : filterObj.value;
250
+ const isRangeFilter = typeof filterValue === 'object' && filterObj.isRange;
251
+ const isRateFilter = typeof filterValue === 'object' && filterObj.isRate;
252
+
253
+ if (filterValue && (filterValue.length || isRateFilter)) {
254
+ query[filter] = filterValue;
255
+ }
256
+
257
+ if (isRangeFilter) {
258
+ const defaultValue = RANGE_FILTERS[filter].defaultValue;
259
+ const valueIsDefault = checkRangeValuesOnEqual(defaultValue, filterValue);
260
+
261
+ if (!valueIsDefault) {
262
+ query[filter] = filterValue;
263
+ }
264
+ }
265
+ });
266
+
267
+ return qs.stringify(query, { encode: false });
268
+ };
269
+
270
+ getMmsGroupsProps = (filter: string) => {
271
+ const { filters } = this.props;
272
+ const mmsGroups = filters[filter];
273
+ return mmsGroups.map((filterGroup: any, index: number) => {
274
+ const group: any = {};
275
+
276
+ Object.keys(filterGroup).forEach((fl: string) => {
277
+
278
+ group[fl] = {
279
+ values: filters[filter][index][fl].value,
280
+ options: filters[filter][index][fl].options
281
+ };
282
+ });
283
+
284
+ return group;
285
+ });
286
+ };
287
+
288
+ getDefaultFilterProps = (filter: string) => {
289
+ const { filters, aggregation } = this.props;
290
+ const agg: any = aggregation;
291
+ const controls = filters[filter].controls;
292
+ const controlsType = _get(controls, 'type', '');
293
+ const filterField = `${filters[filter].field}${controlsType}`;
294
+ const histograms = agg['HISTOGRAM'] || {};
295
+ const isHistogram = Object.keys(histograms).indexOf(filterField) !== -1;
296
+
297
+ const typeOptions = filters[filter].typeOptions;
298
+ let filterProps = {
299
+ ...(controls && Object.keys(controls).length && { controls }),
300
+ ...(typeOptions && Object.keys(typeOptions).length && { typeOptions })
301
+ };
302
+
303
+ if (isHistogram) {
304
+ const histogramData = histograms[filterField].length ? histograms[filterField] : RANGE_FILTERS[filter].options;
305
+ const actualValues = {
306
+ from: histogramData[0].from,
307
+ to: histogramData[histogramData.length - 1].to
308
+ };
309
+
310
+ filterProps = Object.assign({}, filterProps, {
311
+ values: { ...actualValues, type: controlsType },
312
+ options: histogramData
313
+ });
314
+ } else {
315
+ const values = filters[filter].value;
316
+ const options = filters[filter].options;
317
+ const optionsWithoutUnknown = removeUnknownOptions(options);
318
+
319
+ filterProps = Object.assign({}, filterProps, {
320
+ values,
321
+ options: optionsWithoutUnknown,
322
+ ...(agg[filter] && { aggregation: agg[filter] })
323
+ });
324
+ }
325
+
326
+ return filterProps;
327
+ };
328
+
329
+ renderFilters = () => {
330
+ const { t, isDealerSuperAdmin, Link, isDealerPage, isAlternative } = this.props;
331
+ // const { isDealerSuperAdmin } = authStore;
332
+
333
+ return Object.keys(FilterGroups).map((groupKey: string, index: number) => {
334
+ const basicDataProps = {
335
+ onAddMmsGroup: this.onAddMmsGroupClick,
336
+ onRemoveMmsGroup: this.onRemoveMmsGroup
337
+ };
338
+
339
+ const baseProps = {
340
+ t,
341
+ onFilterChange: this.onFilterChange,
342
+ onChangeFilterControls: this.onChangeFilterControls,
343
+ ...(groupKey === 'BASIC_DATA' && basicDataProps),
344
+ ...(groupKey === 'EQUIPMENTS' && { Link }),
345
+ isDealerPage
346
+ };
347
+
348
+ const compProps: any = {};
349
+
350
+ FilterGroups[groupKey].filters.forEach((filter: string) => {
351
+ if (filter === MMS_GROUPS_KEY) {
352
+ compProps[filter] = this.getMmsGroupsProps(filter);
353
+ } else {
354
+ compProps[filter] = this.getDefaultFilterProps(filter);
355
+ }
356
+ });
357
+
358
+ const _props = Object.assign({}, baseProps, compProps);
359
+ const component = FilterBlockFactory[groupKey](_props);
360
+ const title = FilterGroups[groupKey].title;
361
+
362
+ // TODO: find better way to exclude super admin filters
363
+ // Specific case for additional super admin widgets.
364
+ // We do not need to show them to normal customer.
365
+ if ((!isDealerSuperAdmin || isAlternative) && title === SUPER_ADMIN_FILTER_NAME) return null;
366
+
367
+ return (
368
+ <FilterBlock
369
+ isAdminPanel={title === SUPER_ADMIN_FILTER_NAME}
370
+ key={index} title={t(`SearchPage:filterGroups.${title}`)}
371
+ expand={index === (isDealerSuperAdmin && !isAlternative ? 0 : 1)}
372
+ className={title}
373
+ >
374
+ {component}
375
+ </FilterBlock>
376
+ );
377
+ });
378
+ };
379
+
380
+ render() {
381
+ const { t, onAlternativeRedirect, isAlternative, isErrorAlternativeField, Link, locationSearch, successTransition } = this.props;
382
+ const paramsFromQuery = qs.parse(location.search, { ignoreQueryPrefix: true });
383
+ const alternativeIDProps = {
384
+ t,
385
+ successTransition,
386
+ autoDeId: paramsFromQuery.autoDeId,
387
+ error: isErrorAlternativeField,
388
+ onChange: onAlternativeRedirect
389
+ };
390
+
391
+ return (
392
+ <div className={styles.filters}>
393
+ {isAlternative ? (
394
+ <div className={styles.titleAlternative}>
395
+ <div className={styles.titleWrap}>
396
+ <h3 className={styles.titleTextAlternative}>auto.de-ID</h3>
397
+ <Link to={ `/alternative/detailed${locationSearch}` } className={styles.titleLink}>
398
+ {this.props.t('SearchPage:detailedSearch')}
399
+ </Link>
400
+ </div>
401
+ <AlternativeID {...alternativeIDProps} />
402
+ </div>
403
+ ) : ''}
404
+ <div className={styles.title}>
405
+ <h3 className={styles.titleText}>{this.props.t('SearchPage:filterBy')}</h3>
406
+ </div>
407
+ {this.renderFilters()}
408
+ <Link className={styles.linkToDetailed} to={ `/${isAlternative ? 'alternative' : 'search'}/detailed${locationSearch}` }>{t('SearchPage:detailedSearch')}</Link>
409
+ </div>
410
+ );
411
+ }
412
+ }
413
+
414
+ const removeUnknownOptions = (options: any) => {
415
+ if (!options || !options.length || typeof options[0] !== 'string') return options;
416
+ return options.filter((o: string) => o !== 'selector_unknown');
417
+ };
418
+
419
+ // export default React.memo(FiltersContainer);
420
+
421
+ export default React.memo(FiltersContainer, (props, nextProps) => {
422
+ const { t, location, filters, aggregation } = props;
423
+ return t === nextProps.t &&
424
+ location.search === nextProps.location.search &&
425
+ isEqual(aggregation, nextProps.aggregation) &&
426
+ isEqual(filters.MMS_GROUPS, nextProps.filters.MMS_GROUPS);
427
+ });