@bytebrand/fe-ui-core-autobahn 1.0.0
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.
- package/assets/autode-logo.svg +7 -0
- package/cards/CarCard.tsx +174 -0
- package/cards/CarRow.tsx +182 -0
- package/cards/cardParts.tsx +489 -0
- package/cards/index.ts +35 -0
- package/cards/types.ts +114 -0
- package/chrome/Footer.tsx +189 -0
- package/chrome/TopBar.tsx +405 -0
- package/chrome/index.ts +20 -0
- package/chrome/svg.d.ts +11 -0
- package/compat/AccardionSection/AccardionSection.styl +45 -0
- package/compat/AccardionSection/AccardionSection.tsx +56 -0
- package/compat/AccordionWidget/AccordionWidget.styl +221 -0
- package/compat/AccordionWidget/AccordionWidget.tsx +257 -0
- package/compat/AccordionWrapper/AccordionItem/AccordionItem.styl +34 -0
- package/compat/AccordionWrapper/AccordionItem/AccordionItem.tsx +64 -0
- package/compat/AccordionWrapper/AccordionWrapper.tsx +34 -0
- package/compat/AdvantageItem/AdvantageItem.styl +47 -0
- package/compat/AdvantageItem/AdvantageItem.tsx +26 -0
- package/compat/Alternative/DealerInfo.styl +116 -0
- package/compat/Alternative/DealerInfo.tsx +171 -0
- package/compat/Badge/Badge.styl +44 -0
- package/compat/Badge/Badge.tsx +25 -0
- package/compat/BodyTypeIcons/Audi.tsx +9 -0
- package/compat/BodyTypeIcons/Bmw.tsx +860 -0
- package/compat/BodyTypeIcons/Ford.tsx +31 -0
- package/compat/BodyTypeIcons/IconsConfig.tsx +44 -0
- package/compat/BodyTypeIcons/IconsConfigCompact.tsx +30 -0
- package/compat/BodyTypeIcons/Mazda.tsx +44 -0
- package/compat/BodyTypeIcons/MercedesBenz.tsx +38 -0
- package/compat/BodyTypeIcons/Opel.tsx +19 -0
- package/compat/BodyTypeIcons/Search.tsx +19 -0
- package/compat/BodyTypeIcons/SelectorCategoryCombi.tsx +68 -0
- package/compat/BodyTypeIcons/SelectorCategoryCompact.tsx +20 -0
- package/compat/BodyTypeIcons/SelectorCategoryConvertible.tsx +68 -0
- package/compat/BodyTypeIcons/SelectorCategoryCoupe.tsx +60 -0
- package/compat/BodyTypeIcons/SelectorCategoryMinibus.tsx +64 -0
- package/compat/BodyTypeIcons/SelectorCategorySedan.tsx +69 -0
- package/compat/BodyTypeIcons/SelectorCategorySuv.tsx +77 -0
- package/compat/BodyTypeIcons/SelectorCategoryTransporter.tsx +68 -0
- package/compat/BodyTypeIcons/SelectorCategoryVan.tsx +72 -0
- package/compat/BodyTypeIcons/Volkswagen.tsx +330 -0
- package/compat/BodyTypeIcons/index.ts +17 -0
- package/compat/Button/Button.tsx +65 -0
- package/compat/ButtonOld/Button.styl +65 -0
- package/compat/ButtonOld/Button.tsx +84 -0
- package/compat/Checkbox/Checkbox.styl +120 -0
- package/compat/Checkbox/Checkbox.tsx +151 -0
- package/compat/Checkbox/FormCheckbox.styl +22 -0
- package/compat/Checkbox/FormCheckbox.tsx +86 -0
- package/compat/Co2Widget/CO2Efficiency.styl +219 -0
- package/compat/Co2Widget/CO2Efficiency.tsx +93 -0
- package/compat/ContactInfo/ContactInfo.styl +22 -0
- package/compat/ContactInfo/ContactInfo.tsx +161 -0
- package/compat/ContactInfo/TemporaryTranslation.ts +11 -0
- package/compat/CookieModal/CookieModal.tsx +49 -0
- package/compat/CookieModal/Modal.tsx +43 -0
- package/compat/CookieModal/ModalsConfig.tsx +23 -0
- package/compat/CookieModal/modals/ManageCookieModal/ManageCookieModal.styl +87 -0
- package/compat/CookieModal/modals/ManageCookieModal/ManageCookieModal.tsx +184 -0
- package/compat/CookieModal/modals/PreviewCookieModal/PreviewCookieModal.styl +67 -0
- package/compat/CookieModal/modals/PreviewCookieModal/PreviewCookieModal.tsx +51 -0
- package/compat/CookieModal/modals/TestModal.tsx +7 -0
- package/compat/CookieModal/useModal.ts +13 -0
- package/compat/CustomerQuote/CustomerQuote.styl +80 -0
- package/compat/CustomerQuote/CustomerQuote.tsx +68 -0
- package/compat/CustomerQuotesSlider/CustomerQuotesSlider.styl +46 -0
- package/compat/CustomerQuotesSlider/CustomerQuotesSlider.tsx +79 -0
- package/compat/CustomerQuotesSlider/SliderArrow.tsx +20 -0
- package/compat/CustomerQuotesSlider/slider.global.styl +2 -0
- package/compat/ExpansionPanel/ExpansionPanel.tsx +68 -0
- package/compat/FirstInfoBlock/FirstInfoBlock.styl +33 -0
- package/compat/FirstInfoBlock/FirstInfoBlock.tsx +49 -0
- package/compat/FirstInfoBlock/FirstInfoBlockItem/FirstInfoBlockItem.styl +66 -0
- package/compat/FirstInfoBlock/FirstInfoBlockItem/FirstInfoBlockItem.tsx +21 -0
- package/compat/FormattedNumber/FormattedNumber.styl +2 -0
- package/compat/FormattedNumber/FormattedNumber.tsx +90 -0
- package/compat/IconContainer/IconContainer.styl +23 -0
- package/compat/IconContainer/IconContainer.tsx +34 -0
- package/compat/Image/Image.styl +109 -0
- package/compat/Image/Image.tsx +302 -0
- package/compat/ImageSettings/EditableOptionsTable/CustomCheckbox/CustomCheckbox.styl +7 -0
- package/compat/ImageSettings/EditableOptionsTable/CustomCheckbox/CustomCheckbox.tsx +30 -0
- package/compat/ImageSettings/EditableOptionsTable/EditableOptionsTable.styl +122 -0
- package/compat/ImageSettings/EditableOptionsTable/EditableOptionsTable.tsx +199 -0
- package/compat/ImageSettings/EditableOptionsTable/ImageIcon/ImageIcon.styl +3 -0
- package/compat/ImageSettings/EditableOptionsTable/ImageIcon/ImageIcon.tsx +15 -0
- package/compat/ImageSettings/OptionsTable/OptionsTable.styl +47 -0
- package/compat/ImageSettings/OptionsTable/OptionsTable.tsx +122 -0
- package/compat/ImageSettings/PricePlan/PricePlan.styl +63 -0
- package/compat/ImageSettings/PricePlan/PricePlan.tsx +32 -0
- package/compat/ImageSettings/index.ts +42 -0
- package/compat/ImagesSet/ImagesSet.styl +28 -0
- package/compat/ImagesSet/ImagesSet.tsx +76 -0
- package/compat/InfoBlockWrapper/InfoBlockWrapper.styl +41 -0
- package/compat/InfoBlockWrapper/InfoBlockWrapper.tsx +46 -0
- package/compat/Loader/Loader.styl +39 -0
- package/compat/Loader/Loader.tsx +32 -0
- package/compat/MagnifyGlass/MagnifyGlass.styl +33 -0
- package/compat/MagnifyGlass/MagnifyGlass.tsx +213 -0
- package/compat/MdAccordionGroup/MdAccordionGroup.tsx +53 -0
- package/compat/MdCheckbox/MdCheckbox.tsx +69 -0
- package/compat/MdField/MdField.tsx +100 -0
- package/compat/MdSelect/MdSelect.tsx +103 -0
- package/compat/MdSwitch/MdSwitch.tsx +29 -0
- package/compat/MdTabs/MdTabs.tsx +47 -0
- package/compat/MdTooltip/MdTooltip.tsx +31 -0
- package/compat/OfferDetailedSection/OfferDetailedSection.styl +31 -0
- package/compat/OfferDetailedSection/OfferDetailedSection.tsx +100 -0
- package/compat/OfferDetailedSection/partials/PanelConfig.styl +132 -0
- package/compat/OfferDetailedSection/partials/PanelConfig.tsx +121 -0
- package/compat/OfferPanel/AboAccordion/AboAccordion.styl +25 -0
- package/compat/OfferPanel/AboAccordion/AboAccordion.tsx +128 -0
- package/compat/OfferPanel/AboAccordion/AboColorOptions/AboColorOptions.styl +12 -0
- package/compat/OfferPanel/AboAccordion/AboColorOptions/AboColorOptions.tsx +35 -0
- package/compat/OfferPanel/AboAccordion/AboFaq/AboFaq.styl +21 -0
- package/compat/OfferPanel/AboAccordion/AboFaq/AboFaq.tsx +25 -0
- package/compat/OfferPanel/AboAccordion/AboIncludedServices/AboIncludedServices.styl +14 -0
- package/compat/OfferPanel/AboAccordion/AboIncludedServices/AboIncludedServices.tsx +39 -0
- package/compat/OfferPanel/MuiOfferPeriod/MuiOfferPeriod.tsx +42 -0
- package/compat/OfferPanel/OfferCheckboxGroup/CheckboxContainer.tsx +140 -0
- package/compat/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.styl +144 -0
- package/compat/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.tsx +23 -0
- package/compat/OfferPanel/OfferPanel.styl +194 -0
- package/compat/OfferPanel/OfferPanel.tsx +81 -0
- package/compat/OfferPanel/OfferPeriod/OfferPeriod.styl +25 -0
- package/compat/OfferPanel/OfferPeriod/OfferPeriod.tsx +45 -0
- package/compat/OfferPanel/RangeGroup/RangeGroup.tsx +39 -0
- package/compat/OfferRequestButtonWrapper/OfferRequestButtonWrapper.styl +120 -0
- package/compat/OfferRequestButtonWrapper/OfferRequestButtonWrapper.styled.tsx +33 -0
- package/compat/OfferRequestButtonWrapper/OfferRequestButtonWrapper.tsx +122 -0
- package/compat/PriceRating/PriceRating.styl +47 -0
- package/compat/PriceRating/PriceRating.tsx +64 -0
- package/compat/PriceRatingDetailed/PriceRatingDetailed.styl +120 -0
- package/compat/PriceRatingDetailed/PriceRatingDetailed.tsx +191 -0
- package/compat/PricingToolBlock/PricingTool.styl +7 -0
- package/compat/PricingToolBlock/PricingTool.tsx +29 -0
- package/compat/Radio/Radio.styl +115 -0
- package/compat/Radio/Radio.tsx +141 -0
- package/compat/Radio/RadioGroup.styl +5 -0
- package/compat/Radio/RadioGroup.tsx +65 -0
- package/compat/Range/Range.tsx +79 -0
- package/compat/RateSearchValue/RateSearchValue.styl +22 -0
- package/compat/RateSearchValue/RateSearchValue.tsx +55 -0
- package/compat/RateSearchWidget/RateSearchWidget.styl +107 -0
- package/compat/RateSearchWidget/RateSearchWidget.tsx +163 -0
- package/compat/ServiceBlockItem/ServiceBlockItem.styl +48 -0
- package/compat/ServiceBlockItem/ServiceBlockItem.tsx +25 -0
- package/compat/SkeletonItem/SkeletonItem.styl +81 -0
- package/compat/SkeletonItem/SkeletonItem.tsx +80 -0
- package/compat/StarButton/StarButton.styl +39 -0
- package/compat/StarButton/StarButton.tsx +31 -0
- package/compat/TabPanel/TabPanel.tsx +29 -0
- package/compat/TimePicker/TimePicker.styl +23 -0
- package/compat/TimePicker/TimePicker.tsx +156 -0
- package/compat/Tooltip/Tooltip.styl +117 -0
- package/compat/Tooltip/Tooltip.tsx +63 -0
- package/compat/Usp/Usp.styl +78 -0
- package/compat/Usp/Usp.tsx +30 -0
- package/compat/Usp/uspTranslate.ts +12 -0
- package/compat/VehicleDetailedSidebar/VehicleDetailedSidebar.styl +37 -0
- package/compat/VehicleDetailedSidebar/VehicleDetailedSidebar.tsx +178 -0
- package/compat/VehicleDetailedSidebar/partials/Price.styl +27 -0
- package/compat/VehicleDetailedSidebar/partials/Price.tsx +41 -0
- package/compat/VehicleDetailedSidebar/partials/PriceContent.styl +124 -0
- package/compat/VehicleDetailedSidebar/partials/PriceContent.tsx +128 -0
- package/compat/VehicleDetailedSidebar/partials/Properties.styl +58 -0
- package/compat/VehicleDetailedSidebar/partials/Properties.tsx +155 -0
- package/compat/VehicleDetailedSidebar/partials/Title.styl +35 -0
- package/compat/VehicleDetailedSidebar/partials/Title.tsx +33 -0
- package/compat/VehicleDetailedSlider/VehicleDetailedSlider.styl +147 -0
- package/compat/VehicleDetailedSlider/VehicleDetailedSlider.tsx +382 -0
- package/compat/VehicleDetailedSlider/partials/MobileStast.tsx +61 -0
- package/compat/VehicleDetailedSlider/partials/MobileStats.styl +71 -0
- package/compat/VehicleDetailedSlider/partials/PriceData.styl +51 -0
- package/compat/VehicleDetailedSlider/partials/PriceData.tsx +67 -0
- package/compat/VehicleDetailedSlider/partials/Stats.styl +80 -0
- package/compat/VehicleDetailedSlider/partials/Stats.tsx +62 -0
- package/compat/VehicleDetailedSlider/partials/Title.styl +45 -0
- package/compat/VehicleDetailedSlider/partials/Title.tsx +36 -0
- package/compat/VehicleFormattedPrice/VehicleFormattedPrice.styl +149 -0
- package/compat/VehicleFormattedPrice/VehicleFormattedPrice.tsx +163 -0
- package/compat/VehicleSlider/VehicleSlider.styl +63 -0
- package/compat/VehicleSlider/VehicleSlider.tsx +125 -0
- package/compat/VehicleSlider/VehicleSliderForSRL.tsx +175 -0
- package/compat/VehicleSmallCard/SeoText/SeoText.styl +8 -0
- package/compat/VehicleSmallCard/SeoText/SeoText.tsx +16 -0
- package/compat/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl +204 -0
- package/compat/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +199 -0
- package/compat/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +273 -0
- package/compat/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +179 -0
- package/compat/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.styl +165 -0
- package/compat/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.tsx +299 -0
- package/compat/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +33 -0
- package/compat/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.tsx +35 -0
- package/compat/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.styl +136 -0
- package/compat/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.tsx +91 -0
- package/compat/VehicleSmallCard/VehicleSmallCard.styl +310 -0
- package/compat/VehicleSmallCard/VehicleSmallCard.tsx +448 -0
- package/compat/index.ts +77 -0
- package/compat/legacy-theme/mixins.styl +93 -0
- package/compat/legacy-theme/priceReviewColors.styl +12 -0
- package/compat/legacy-theme/slider.global.styl +5 -0
- package/compat/legacy-theme/theme.styl +136 -0
- package/compat/withLabel/withLabel.styl +33 -0
- package/compat/withLabel/withLabel.tsx +44 -0
- package/compat/withStats/withStats.styl +174 -0
- package/compat/withStats/withStats.tsx +238 -0
- package/constants/RateSearchWidget.ts +15 -0
- package/constants/Search.ts +290 -0
- package/constants/SearchWidget.ts +108 -0
- package/constants/app.ts +223 -0
- package/constants/common.ts +127 -0
- package/constants/core.ts +131 -0
- package/constants/highlights.ts +165 -0
- package/constants/price.ts +9 -0
- package/constants/selectors.ts +38 -0
- package/constants.ts +91 -0
- package/data/DataTransformers.ts +88 -0
- package/data/fieldMapping.ts +342 -0
- package/data/toAutobahnCar.ts +442 -0
- package/iconsvg/IconSVG.tsx +30 -0
- package/iconsvg/IconSVGConfig.tsx +768 -0
- package/iconsvg/SVG/AboPartner.tsx +16 -0
- package/iconsvg/SVG/ArrowQuotes.tsx +22 -0
- package/iconsvg/SVG/CloseIcon.tsx +17 -0
- package/iconsvg/SVG/CloseIconSelect.tsx +18 -0
- package/iconsvg/SVG/ClosedLockIcon.tsx +18 -0
- package/iconsvg/SVG/DealerCheckIcon.tsx +18 -0
- package/iconsvg/SVG/DealerPopoverMail.tsx +21 -0
- package/iconsvg/SVG/DealerPopoverPhone.tsx +21 -0
- package/iconsvg/SVG/GrayPhoneIcon.tsx +22 -0
- package/iconsvg/SVG/InternetIcon.tsx +18 -0
- package/iconsvg/SVG/WhiteEnvelopeIcon.tsx +21 -0
- package/iconsvg/SVG/bodyType/Cabrio.tsx +23 -0
- package/iconsvg/SVG/bodyType/Coupe.tsx +22 -0
- package/iconsvg/SVG/bodyType/Minibus.tsx +22 -0
- package/iconsvg/SVG/bodyType/Other.tsx +25 -0
- package/iconsvg/SVG/bodyType/Sedan.tsx +22 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryCombi.tsx +68 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryCompact.tsx +20 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryConvertible.tsx +68 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryCoupe.tsx +60 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryMinibus.tsx +64 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryOther.tsx +60 -0
- package/iconsvg/SVG/bodyType/SelectorCategorySedan.tsx +69 -0
- package/iconsvg/SVG/bodyType/SelectorCategorySuv.tsx +77 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryTransporter.tsx +68 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryVan.tsx +72 -0
- package/iconsvg/SVG/bodyType/Small.tsx +23 -0
- package/iconsvg/SVG/bodyType/Suv.tsx +23 -0
- package/iconsvg/SVG/bodyType/Van.tsx +23 -0
- package/iconsvg/SVG/bodyType/Wagon.tsx +23 -0
- package/iconsvg/SVG/common/AddIcon.tsx +16 -0
- package/iconsvg/SVG/common/AddPlus.tsx +16 -0
- package/iconsvg/SVG/common/AddressDashboard.tsx +29 -0
- package/iconsvg/SVG/common/AddressIcon.tsx +20 -0
- package/iconsvg/SVG/common/ArrowDetailedAccordionBlue.tsx +26 -0
- package/iconsvg/SVG/common/ArrowDownBlue.tsx +21 -0
- package/iconsvg/SVG/common/ArrowSelect.tsx +23 -0
- package/iconsvg/SVG/common/ArrowStepDown.tsx +18 -0
- package/iconsvg/SVG/common/Autocheck.tsx +19 -0
- package/iconsvg/SVG/common/AutodeLogo.tsx +36 -0
- package/iconsvg/SVG/common/Avatar.tsx +17 -0
- package/iconsvg/SVG/common/BellGray.tsx +19 -0
- package/iconsvg/SVG/common/BigInfoTransparent.tsx +13 -0
- package/iconsvg/SVG/common/Browse.tsx +20 -0
- package/iconsvg/SVG/common/Calendar.tsx +24 -0
- package/iconsvg/SVG/common/CallbackDashboard.tsx +30 -0
- package/iconsvg/SVG/common/Camera.tsx +17 -0
- package/iconsvg/SVG/common/Car.tsx +16 -0
- package/iconsvg/SVG/common/CarBody.tsx +19 -0
- package/iconsvg/SVG/common/CarFront.tsx +43 -0
- package/iconsvg/SVG/common/CarInspectionCheck.tsx +21 -0
- package/iconsvg/SVG/common/CarInspectionScheme0.tsx +32 -0
- package/iconsvg/SVG/common/CarInspectionScheme1.tsx +53 -0
- package/iconsvg/SVG/common/CarInspectionScheme2.tsx +52 -0
- package/iconsvg/SVG/common/CarInspectionScheme3.tsx +32 -0
- package/iconsvg/SVG/common/CarInspectionScheme4.tsx +32 -0
- package/iconsvg/SVG/common/CarInspectionScheme5.tsx +32 -0
- package/iconsvg/SVG/common/CarInspectionScheme6.tsx +32 -0
- package/iconsvg/SVG/common/CarInspectionSchemeGeneral copy.tsx +24 -0
- package/iconsvg/SVG/common/CarInspectionSchemeGeneral.tsx +24 -0
- package/iconsvg/SVG/common/CheckBlue.tsx +18 -0
- package/iconsvg/SVG/common/CheckGreen.tsx +22 -0
- package/iconsvg/SVG/common/CheckMark.tsx +16 -0
- package/iconsvg/SVG/common/CheckWhite.tsx +19 -0
- package/iconsvg/SVG/common/Chevron.tsx +17 -0
- package/iconsvg/SVG/common/CircledCheckmark.tsx +25 -0
- package/iconsvg/SVG/common/Clock.tsx +18 -0
- package/iconsvg/SVG/common/Close.tsx +19 -0
- package/iconsvg/SVG/common/CloseGrey.tsx +22 -0
- package/iconsvg/SVG/common/ContactEmail.tsx +21 -0
- package/iconsvg/SVG/common/ContactPhone.tsx +28 -0
- package/iconsvg/SVG/common/CopyIcon copy.tsx +22 -0
- package/iconsvg/SVG/common/CopyIcon.tsx +22 -0
- package/iconsvg/SVG/common/CopyIconForDealer.tsx +21 -0
- package/iconsvg/SVG/common/DashboardIcon.tsx +20 -0
- package/iconsvg/SVG/common/DashboardQuestionMark.tsx +20 -0
- package/iconsvg/SVG/common/DealersIcon.tsx +20 -0
- package/iconsvg/SVG/common/DeleteCircle.tsx +31 -0
- package/iconsvg/SVG/common/DeleteV1Icon.tsx +18 -0
- package/iconsvg/SVG/common/DeliveryDashboard.tsx +25 -0
- package/iconsvg/SVG/common/DeliveryMail.tsx +24 -0
- package/iconsvg/SVG/common/Discount100De.tsx +18 -0
- package/iconsvg/SVG/common/Discount100En.tsx +19 -0
- package/iconsvg/SVG/common/Discount66De.tsx +28 -0
- package/iconsvg/SVG/common/Discount66En.tsx +20 -0
- package/iconsvg/SVG/common/DoneIcon.tsx +18 -0
- package/iconsvg/SVG/common/EditCircle.tsx +32 -0
- package/iconsvg/SVG/common/EditPriceIcon.tsx +20 -0
- package/iconsvg/SVG/common/EuroCurrency.tsx +18 -0
- package/iconsvg/SVG/common/Export.tsx +20 -0
- package/iconsvg/SVG/common/Eye.tsx +17 -0
- package/iconsvg/SVG/common/EyeCatch.tsx +19 -0
- package/iconsvg/SVG/common/FavoritesIcon.tsx +20 -0
- package/iconsvg/SVG/common/FilterRange.tsx +16 -0
- package/iconsvg/SVG/common/FilterToolBlack.tsx +23 -0
- package/iconsvg/SVG/common/FlagDe.tsx +21 -0
- package/iconsvg/SVG/common/FlagEn.tsx +43 -0
- package/iconsvg/SVG/common/GrayEnvelopeIcon.tsx +19 -0
- package/iconsvg/SVG/common/HamburgerMenuIcon.tsx +18 -0
- package/iconsvg/SVG/common/HandingOverDashboard.tsx +32 -0
- package/iconsvg/SVG/common/ImageSettingsIcon.tsx +20 -0
- package/iconsvg/SVG/common/Info.tsx +16 -0
- package/iconsvg/SVG/common/InfoIcon.tsx +17 -0
- package/iconsvg/SVG/common/InfoTransparent.tsx +18 -0
- package/iconsvg/SVG/common/LogoutIcon.tsx +20 -0
- package/iconsvg/SVG/common/MagnifyingGlass.tsx +31 -0
- package/iconsvg/SVG/common/MenuArrow.tsx +16 -0
- package/iconsvg/SVG/common/MenuGrey.tsx +22 -0
- package/iconsvg/SVG/common/MobileDeLogo.tsx +108 -0
- package/iconsvg/SVG/common/MyOrderIcon.tsx +20 -0
- package/iconsvg/SVG/common/MyVehiclesIcon.tsx +20 -0
- package/iconsvg/SVG/common/NewFlagDe.tsx +25 -0
- package/iconsvg/SVG/common/NewFlagEn.tsx +34 -0
- package/iconsvg/SVG/common/OrderReceivedDashboard.tsx +27 -0
- package/iconsvg/SVG/common/Package.tsx +30 -0
- package/iconsvg/SVG/common/Phone.tsx +18 -0
- package/iconsvg/SVG/common/PhoneGrey.tsx +22 -0
- package/iconsvg/SVG/common/PickupDashboard.tsx +30 -0
- package/iconsvg/SVG/common/Picture.tsx +24 -0
- package/iconsvg/SVG/common/Pictures.tsx +32 -0
- package/iconsvg/SVG/common/Plus.tsx +16 -0
- package/iconsvg/SVG/common/PlusNew.tsx +16 -0
- package/iconsvg/SVG/common/PreparationDashboard.tsx +29 -0
- package/iconsvg/SVG/common/ProfileDashboard.tsx +24 -0
- package/iconsvg/SVG/common/ProfileIcon.tsx +17 -0
- package/iconsvg/SVG/common/Question.tsx +19 -0
- package/iconsvg/SVG/common/QuestionBold.tsx +25 -0
- package/iconsvg/SVG/common/RegistrationDashboard.tsx +31 -0
- package/iconsvg/SVG/common/SavedSearchsIcon.tsx +20 -0
- package/iconsvg/SVG/common/Search.tsx +19 -0
- package/iconsvg/SVG/common/SearchGrey.tsx +22 -0
- package/iconsvg/SVG/common/SettingPenIcon.tsx +20 -0
- package/iconsvg/SVG/common/Share.tsx +16 -0
- package/iconsvg/SVG/common/ShoppingCart.tsx +18 -0
- package/iconsvg/SVG/common/SliderArrow.tsx +21 -0
- package/iconsvg/SVG/common/SliderEye.tsx +17 -0
- package/iconsvg/SVG/common/SortUpDownArrows.tsx +18 -0
- package/iconsvg/SVG/common/Speedometer.tsx +23 -0
- package/iconsvg/SVG/common/Star.tsx +20 -0
- package/iconsvg/SVG/common/StarNew.tsx +16 -0
- package/iconsvg/SVG/common/StarOutline.tsx +20 -0
- package/iconsvg/SVG/common/StarRoundedCorners.tsx +18 -0
- package/iconsvg/SVG/common/Stats.tsx +17 -0
- package/iconsvg/SVG/common/Step1.tsx +21 -0
- package/iconsvg/SVG/common/Step2.tsx +20 -0
- package/iconsvg/SVG/common/Step3.tsx +21 -0
- package/iconsvg/SVG/common/SupportCallbackIcon.tsx +20 -0
- package/iconsvg/SVG/common/Telephone.tsx +22 -0
- package/iconsvg/SVG/common/Time.tsx +17 -0
- package/iconsvg/SVG/common/Timetable.tsx +18 -0
- package/iconsvg/SVG/common/Trash.tsx +22 -0
- package/iconsvg/SVG/common/TrashRed.tsx +23 -0
- package/iconsvg/SVG/common/Upload.tsx +17 -0
- package/iconsvg/SVG/common/UserGrey.tsx +22 -0
- package/iconsvg/SVG/common/UserProfileIcon.tsx +20 -0
- package/iconsvg/SVG/common/ValidateFailure.tsx +21 -0
- package/iconsvg/SVG/common/ValidateSuccess.tsx +21 -0
- package/iconsvg/SVG/common/WarningTriangle.tsx +20 -0
- package/iconsvg/SVG/common/WhiteArrowUp.tsx +21 -0
- package/iconsvg/SVG/common/WhiteKey.tsx +21 -0
- package/iconsvg/SVG/common/WhitePeople.tsx +23 -0
- package/iconsvg/SVG/common/WhiteTick.tsx +19 -0
- package/iconsvg/SVG/flags/AT.tsx +19 -0
- package/iconsvg/SVG/flags/BE.tsx +20 -0
- package/iconsvg/SVG/flags/BG.tsx +20 -0
- package/iconsvg/SVG/flags/CH.tsx +22 -0
- package/iconsvg/SVG/flags/CZ.tsx +18 -0
- package/iconsvg/SVG/flags/DE.tsx +18 -0
- package/iconsvg/SVG/flags/DK.tsx +18 -0
- package/iconsvg/SVG/flags/ES.tsx +2585 -0
- package/iconsvg/SVG/flags/FI.tsx +18 -0
- package/iconsvg/SVG/flags/FR.tsx +20 -0
- package/iconsvg/SVG/flags/GB.tsx +26 -0
- package/iconsvg/SVG/flags/HR.tsx +135 -0
- package/iconsvg/SVG/flags/HU.tsx +20 -0
- package/iconsvg/SVG/flags/IT.tsx +20 -0
- package/iconsvg/SVG/flags/LI.tsx +106 -0
- package/iconsvg/SVG/flags/LU.tsx +18 -0
- package/iconsvg/SVG/flags/NL.tsx +18 -0
- package/iconsvg/SVG/flags/NO.tsx +20 -0
- package/iconsvg/SVG/flags/PL.tsx +19 -0
- package/iconsvg/SVG/flags/RO.tsx +20 -0
- package/iconsvg/SVG/flags/RU.tsx +20 -0
- package/iconsvg/SVG/flags/SE.tsx +20 -0
- package/iconsvg/SVG/flags/SI.tsx +54 -0
- package/iconsvg/SVG/flags/SK.tsx +34 -0
- package/iconsvg/SVG/flags/UA.tsx +19 -0
- package/iconsvg/SVG/infoBlocks/14DaysReturnPolicy.tsx +18 -0
- package/iconsvg/SVG/infoBlocks/AlertInfo.tsx +19 -0
- package/iconsvg/SVG/infoBlocks/Autocheck.tsx +19 -0
- package/iconsvg/SVG/infoBlocks/CheckTheStory.tsx +22 -0
- package/iconsvg/SVG/infoBlocks/CustomerServiceWhite.tsx +16 -0
- package/iconsvg/SVG/infoBlocks/Guarantee.tsx +16 -0
- package/iconsvg/SVG/infoBlocks/OrderWhite.tsx +13 -0
- package/iconsvg/SVG/infoBlocks/PriceGuarantee.tsx +19 -0
- package/iconsvg/SVG/infoBlocks/PriceGuaranteeWhite.tsx +17 -0
- package/iconsvg/SVG/infoBlocks/TransportAndDelivery.tsx +21 -0
- package/iconsvg/SVG/infoBlocks/Warranty.tsx +23 -0
- package/iconsvg/SVG/popower/Mail.tsx +18 -0
- package/iconsvg/SVG/popower/Phone.tsx +19 -0
- package/iconsvg/SVG/popower/Schedule.tsx +18 -0
- package/iconsvg/SVG/searchWidgets/drive/AAllWheelDrive.tsx +26 -0
- package/iconsvg/SVG/searchWidgets/drive/AllWheelDrive.tsx +26 -0
- package/iconsvg/SVG/searchWidgets/drive/FrontWheelDrive.tsx +25 -0
- package/iconsvg/SVG/searchWidgets/drive/OtherWheelDrive.tsx +26 -0
- package/iconsvg/SVG/searchWidgets/drive/RearWheelDrive.tsx +25 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelDiesel.tsx +18 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelElectrical.tsx +19 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelElectricalDiesel.tsx +34 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelElectricalPetrol.tsx +20 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelEthanol.tsx +53 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelHydrogen.tsx +24 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelLpg.tsx +24 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelNaturalGas.tsx +23 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelOther.tsx +28 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelPetrol.tsx +18 -0
- package/iconsvg/SVG/settings/Account.tsx +17 -0
- package/iconsvg/SVG/settings/DataUsage.tsx +17 -0
- package/iconsvg/SVG/settings/MarketResearch.tsx +17 -0
- package/iconsvg/SVG/settings/Newsletter.tsx +17 -0
- package/iconsvg/SVG/settings/RemoveEye.tsx +17 -0
- package/iconsvg/SVG/settings/RemoveEyeOff.tsx +17 -0
- package/iconsvg/SVG/settings/Security.tsx +17 -0
- package/iconsvg/SVG/settings/Warning.tsx +17 -0
- package/iconsvg/SVG/slider/360.tsx +23 -0
- package/iconsvg/SVG/slider/360New.tsx +20 -0
- package/iconsvg/SVG/slider/Checked.tsx +19 -0
- package/iconsvg/SVG/slider/DiscountRibbon.tsx +51 -0
- package/iconsvg/SVG/slider/DiscountRibbonMobile.tsx +47 -0
- package/iconsvg/SVG/slider/DiscountRibbonNew.tsx +29 -0
- package/iconsvg/SVG/slider/Easy.tsx +19 -0
- package/iconsvg/SVG/slider/Fullscreen.tsx +16 -0
- package/iconsvg/SVG/slider/FullscreenWindow.tsx +23 -0
- package/iconsvg/SVG/slider/Safe.tsx +19 -0
- package/iconsvg/SVG/slider/ToBuy.tsx +19 -0
- package/iconsvg/SVG/slider/YoutubeButton.tsx +26 -0
- package/iconsvg/SVG/slider/ZoomIn.tsx +21 -0
- package/iconsvg/SVG/slider/ZoomOut.tsx +21 -0
- package/iconsvg/SVG/social/AndroidLogo.tsx +18 -0
- package/iconsvg/SVG/social/Apple.tsx +19 -0
- package/iconsvg/SVG/social/FacebookF.tsx +19 -0
- package/iconsvg/SVG/social/GooglePlusG.tsx +19 -0
- package/iconsvg/SVG/social/Instagram.tsx +17 -0
- package/iconsvg/SVG/social/Pinterest.tsx +19 -0
- package/iconsvg/SVG/social/SharingInterface.tsx +21 -0
- package/iconsvg/SVG/social/Twitter.tsx +19 -0
- package/iconsvg/SVG/social/Youtube.tsx +19 -0
- package/iconsvg/SVG/vehicle/AboIcon.tsx +11 -0
- package/iconsvg/SVG/vehicle/Abs.tsx +24 -0
- package/iconsvg/SVG/vehicle/AirCond.tsx +34 -0
- package/iconsvg/SVG/vehicle/Airbag.tsx +21 -0
- package/iconsvg/SVG/vehicle/AuxiliaryHeating.tsx +23 -0
- package/iconsvg/SVG/vehicle/Bluetooth.tsx +22 -0
- package/iconsvg/SVG/vehicle/BuyIcon.tsx +15 -0
- package/iconsvg/SVG/vehicle/CarAvailability.tsx +22 -0
- package/iconsvg/SVG/vehicle/CarInspectionCheck.tsx +21 -0
- package/iconsvg/SVG/vehicle/CarInspectionCross.tsx +21 -0
- package/iconsvg/SVG/vehicle/CheckoutChecked.tsx +15 -0
- package/iconsvg/SVG/vehicle/Co2.tsx +24 -0
- package/iconsvg/SVG/vehicle/CruiseControl.tsx +25 -0
- package/iconsvg/SVG/vehicle/Date.tsx +21 -0
- package/iconsvg/SVG/vehicle/Delivery.tsx +12 -0
- package/iconsvg/SVG/vehicle/Diesel.tsx +28 -0
- package/iconsvg/SVG/vehicle/Display.tsx +25 -0
- package/iconsvg/SVG/vehicle/Done.tsx +11 -0
- package/iconsvg/SVG/vehicle/Door.tsx +19 -0
- package/iconsvg/SVG/vehicle/DoubleDone.tsx +18 -0
- package/iconsvg/SVG/vehicle/EditIcon.tsx +11 -0
- package/iconsvg/SVG/vehicle/EmergencyBrakeAssistant.tsx +27 -0
- package/iconsvg/SVG/vehicle/Eps.tsx +24 -0
- package/iconsvg/SVG/vehicle/Esp.tsx +24 -0
- package/iconsvg/SVG/vehicle/FinancingIcon.tsx +20 -0
- package/iconsvg/SVG/vehicle/FuelConsumption.tsx +20 -0
- package/iconsvg/SVG/vehicle/Fueling.tsx +22 -0
- package/iconsvg/SVG/vehicle/FullDrive.tsx +24 -0
- package/iconsvg/SVG/vehicle/GasElectric.tsx +28 -0
- package/iconsvg/SVG/vehicle/HandsFreePhoneSystem.tsx +24 -0
- package/iconsvg/SVG/vehicle/Kw.tsx +23 -0
- package/iconsvg/SVG/vehicle/LastCrawledAt.tsx +22 -0
- package/iconsvg/SVG/vehicle/LeasingIcon.tsx +14 -0
- package/iconsvg/SVG/vehicle/Led.tsx +24 -0
- package/iconsvg/SVG/vehicle/LightSensor.tsx +22 -0
- package/iconsvg/SVG/vehicle/LinkAlternative.tsx +15 -0
- package/iconsvg/SVG/vehicle/Location.tsx +17 -0
- package/iconsvg/SVG/vehicle/MinusIcon.tsx +11 -0
- package/iconsvg/SVG/vehicle/Mirror.tsx +19 -0
- package/iconsvg/SVG/vehicle/Navigation.tsx +27 -0
- package/iconsvg/SVG/vehicle/NewCar.tsx +21 -0
- package/iconsvg/SVG/vehicle/NoImage.tsx +17 -0
- package/iconsvg/SVG/vehicle/Owner.tsx +18 -0
- package/iconsvg/SVG/vehicle/PanoramicRoof.tsx +23 -0
- package/iconsvg/SVG/vehicle/ParkingAssistants.tsx +24 -0
- package/iconsvg/SVG/vehicle/PickYourself.tsx +18 -0
- package/iconsvg/SVG/vehicle/PlusIcon.tsx +11 -0
- package/iconsvg/SVG/vehicle/Power.tsx +21 -0
- package/iconsvg/SVG/vehicle/Ps.tsx +19 -0
- package/iconsvg/SVG/vehicle/Question.tsx +24 -0
- package/iconsvg/SVG/vehicle/Seats.tsx +21 -0
- package/iconsvg/SVG/vehicle/SeatsHeating.tsx +26 -0
- package/iconsvg/SVG/vehicle/SelectorGearboxAutomatic.tsx +24 -0
- package/iconsvg/SVG/vehicle/SelectorGearboxManualShift.tsx +19 -0
- package/iconsvg/SVG/vehicle/SelectorGearboxOther.tsx +24 -0
- package/iconsvg/SVG/vehicle/SelectorGearboxSemiAutomatic.tsx +30 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypeAlcantara.tsx +225 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypeFabric.tsx +29 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypeFullLeather.tsx +29 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypeOther.tsx +26 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypePartLeather.tsx +142 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypeSyntheticLeather.tsx +27 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypeVelours.tsx +39 -0
- package/iconsvg/SVG/vehicle/Shield.tsx +39 -0
- package/iconsvg/SVG/vehicle/Speedometer.tsx +17 -0
- package/iconsvg/SVG/vehicle/StartStopSystem.tsx +30 -0
- package/iconsvg/SVG/vehicle/Stop.tsx +25 -0
- package/iconsvg/SVG/vehicle/TickMark.tsx +21 -0
- package/iconsvg/SVG/vehicle/TrafficSignRecognition.tsx +29 -0
- package/iconsvg/SVG/vehicle/TrailerCoupling.tsx +24 -0
- package/iconsvg/SVG/vehicle/Transmission.tsx +27 -0
- package/iconsvg/SVG/vehicle/Wheel.tsx +43 -0
- package/iconsvg/SVG/vehicle/Wipers.tsx +22 -0
- package/iconsvg/SVG/vehicle/Wrench.tsx +17 -0
- package/iconsvg/index.ts +7 -0
- package/index.ts +18 -0
- package/locales/de/autobahn.json +671 -0
- package/locales/en/autobahn.json +671 -0
- package/locales/legacy/SearchDetailedPage.ts +205 -0
- package/locales/legacy/cbd.ts +719 -0
- package/locales/legacy/common.ts +109 -0
- package/locales/legacy/data.ts +1118 -0
- package/locales/legacy/priceRating.ts +10 -0
- package/locales/legacy/sortingOptions.ts +21 -0
- package/media/images/question.svg +1 -0
- package/media/images/raiting-stars-min.svg +7 -0
- package/media/images/refresh-button.svg +49 -0
- package/media/images/searchWidget/selector_emissionSticker_green.png +0 -0
- package/media/images/searchWidget/selector_emissionSticker_red.png +0 -0
- package/media/images/searchWidget/selector_emissionSticker_yellow.png +0 -0
- package/media/images/slider-arrow-new.svg +1 -0
- package/media/images/user-icon.svg +16 -0
- package/media/svg/common/eye.svg +1 -0
- package/media/svg/common/star.svg +1 -0
- package/media/svg/infoBlocks/whyAutodeIconSet-F.svg +9 -0
- package/media/svg/infoBlocks/whyAutodeIconSet-G.svg +8 -0
- package/media/svg/infoBlocks/whyAutodeIconSet-Q.svg +6 -0
- package/media/svg/infoBlocks/whyAutodeIconSet-R.svg +9 -0
- package/media/svg/usp/icon1.svg +16 -0
- package/media/svg/usp/icon2.svg +13 -0
- package/media/svg/usp/icon3.svg +10 -0
- package/media/svg/usp/icon4.svg +14 -0
- package/package.json +30 -0
- package/schemes/AggregationScheme.ts +73 -0
- package/searchFilters/filterOptions.ts +119 -0
- package/searchFilters/filterProps.ts +35 -0
- package/searchFilters/index.ts +15 -0
- package/theme/autobahn.css +25 -0
- package/theme/colors_and_type.css +113 -0
- package/theme/md3.css +2034 -0
- package/types/types.ts +374 -0
- package/types.ts +8 -0
- package/ui/Accordion.tsx +134 -0
- package/ui/Button.tsx +62 -0
- package/ui/CardCarousel.tsx +133 -0
- package/ui/Chip.tsx +29 -0
- package/ui/DatePicker.tsx +145 -0
- package/ui/Dropdown.tsx +205 -0
- package/ui/FileUpload.tsx +154 -0
- package/ui/FormCheckbox.tsx +79 -0
- package/ui/FormDropdown.tsx +327 -0
- package/ui/FormField.tsx +88 -0
- package/ui/FormRadio.tsx +93 -0
- package/ui/FormRadioGroup.tsx +106 -0
- package/ui/Icon.tsx +391 -0
- package/ui/IconButton.tsx +44 -0
- package/ui/Modal.tsx +187 -0
- package/ui/Pagination.tsx +140 -0
- package/ui/Price.tsx +25 -0
- package/ui/PriceEvalBar.tsx +48 -0
- package/ui/SaveChip.tsx +34 -0
- package/ui/Segmented.tsx +48 -0
- package/ui/Skeleton.tsx +75 -0
- package/ui/Spec.tsx +24 -0
- package/ui/Stars.tsx +29 -0
- package/ui/StatChip.tsx +21 -0
- package/ui/Stepper.tsx +106 -0
- package/ui/Switch.tsx +65 -0
- package/ui/Table.tsx +156 -0
- package/ui/Textarea.tsx +58 -0
- package/ui/index.ts +88 -0
- package/utils/CommonUtils.ts +649 -0
- package/utils/DateUtils.ts +101 -0
- package/utils/index.ts +74 -0
- package/utils/power.ts +11 -0
- package/utils/query.ts +21 -0
- package/vdp/FinanceCalculator.tsx +465 -0
- package/vdp/VdpModules.tsx +1490 -0
- package/vdp/VdpViewer.tsx +139 -0
- package/vdp/index.ts +75 -0
- package/vdp/types.ts +197 -0
- package/vehiclesProps/cbdSelectors.ts +117 -0
- package/vehiclesProps/decoratedLightProps.tsx +572 -0
- package/vehiclesProps/decoratedProps.tsx +1746 -0
- package/vehiclesProps/equipment.ts +129 -0
- package/vehiclesProps/vehicleDetails.ts +428 -0
- package/widgets/SearchBox.tsx +256 -0
- package/widgets/index.ts +5 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/*** FONTS VARIABLES START ***/
|
|
2
|
+
// font styles
|
|
3
|
+
$font-style-arial = Arial, Helvetica, sans-serif
|
|
4
|
+
$font-style-arial-black = "Arial Black", Gadget, sans-serif
|
|
5
|
+
|
|
6
|
+
$font-weight-default = 400
|
|
7
|
+
$font-size-default = 12px
|
|
8
|
+
|
|
9
|
+
// font sizes
|
|
10
|
+
$font-size-paragraph = $font-size-default
|
|
11
|
+
$font-size-h6 = 14px
|
|
12
|
+
$font-size-h5 = 16px
|
|
13
|
+
$font-size-h4 = 18px
|
|
14
|
+
$font-size-h3 = 20px
|
|
15
|
+
$font-size-h2 = 22px
|
|
16
|
+
$font-size-h1 = 24px
|
|
17
|
+
|
|
18
|
+
// font weight
|
|
19
|
+
$font-weight-thin = 300
|
|
20
|
+
$font-weight-normal = $font-weight-default
|
|
21
|
+
$font-weight-medium = 500
|
|
22
|
+
$font-weight-bold = 600
|
|
23
|
+
$font-weight-bolder = 800
|
|
24
|
+
/*** FONT VARIABLES END ***/
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
// Color scheme
|
|
28
|
+
$grey-1 = #1F1F1F
|
|
29
|
+
$grey-1e = #1E1E1E
|
|
30
|
+
$grey-3 = #333333
|
|
31
|
+
$grey-32 = #323232
|
|
32
|
+
$grey-3a = #3A3A3A
|
|
33
|
+
$grey-6 = #666666
|
|
34
|
+
$grey-7 = #797979
|
|
35
|
+
$grey-70 = #707070
|
|
36
|
+
$grey-74 = #747474
|
|
37
|
+
$grey-75 = #757575
|
|
38
|
+
$grey-9 = #999999
|
|
39
|
+
$grey-b = #B0B0B0
|
|
40
|
+
$grey-c = #CCCCCC
|
|
41
|
+
$grey-d = #D7D7D7
|
|
42
|
+
$grey-d3 = #D3D3D3
|
|
43
|
+
$grey-e = #E8E8E8
|
|
44
|
+
$grey-f2 = #F2F2F2
|
|
45
|
+
$grey-f5 = #F5F5F5
|
|
46
|
+
$grey-f8 = #F8F8F8
|
|
47
|
+
$grey-52 = #525252
|
|
48
|
+
$grey-54 = #545454
|
|
49
|
+
$grey-e3 = #e3e3e3
|
|
50
|
+
$grey-e9 = #E9E9E9
|
|
51
|
+
$grey-ef = #efefef
|
|
52
|
+
$grey-ae = #aeaeae
|
|
53
|
+
$grey-d3 = #d3d3d3
|
|
54
|
+
$grey-a3 = #a3a3a3
|
|
55
|
+
$grey-74 = #747474
|
|
56
|
+
$grey-75 = #757575
|
|
57
|
+
$grey-a7 = #a7a7a7
|
|
58
|
+
|
|
59
|
+
// used mostly for borders and dividers
|
|
60
|
+
$grey-trans = rgba($grey-d, 0.5)
|
|
61
|
+
|
|
62
|
+
$skyBlue = #005CCB
|
|
63
|
+
$blue-10 = #104EC9
|
|
64
|
+
$darkBlue = #37508f
|
|
65
|
+
$spaceGrey = #60605F
|
|
66
|
+
|
|
67
|
+
$primary = $skyBlue
|
|
68
|
+
$primary70 = rgba($primary, 70%)
|
|
69
|
+
$primary40 = rgba($primary, 40%)
|
|
70
|
+
$primary15 = rgba($primary, 15%)
|
|
71
|
+
$primary8 = rgba($primary, 8%)
|
|
72
|
+
|
|
73
|
+
$secondary = $spaceGrey
|
|
74
|
+
$secondary70 = rgba($spaceGrey, 70%)
|
|
75
|
+
$secondary40 = rgba($spaceGrey, 40%)
|
|
76
|
+
$secondary15 = rgba($spaceGrey, 15%)
|
|
77
|
+
|
|
78
|
+
$blue-eaeef4 = #EAEEF4
|
|
79
|
+
|
|
80
|
+
$alternative = #00B800
|
|
81
|
+
|
|
82
|
+
$lightBlue = #9DA9CC
|
|
83
|
+
$primaryLight = $lightBlue
|
|
84
|
+
$grayBlue = #C2CEE1
|
|
85
|
+
|
|
86
|
+
$carrotOrange = #E89F1F
|
|
87
|
+
$yellow = #CDDC39
|
|
88
|
+
$red = red
|
|
89
|
+
$darkRed = #C80000
|
|
90
|
+
$fireRed = #F50B05
|
|
91
|
+
$orangeText = #FFCE00
|
|
92
|
+
$orange-fd = #FD5A1C
|
|
93
|
+
$darkOrange = #ff0b00
|
|
94
|
+
$white = #ffffff
|
|
95
|
+
|
|
96
|
+
$aqua = #336666
|
|
97
|
+
$green = green
|
|
98
|
+
$grassGreen = #4CAF50
|
|
99
|
+
$wasabiGreen = #6D9636
|
|
100
|
+
$mantisGreen = #91C153
|
|
101
|
+
$lightGreen = #00B800
|
|
102
|
+
$green-2 = #257A05
|
|
103
|
+
|
|
104
|
+
$yellow-f1 = #F1C40A
|
|
105
|
+
$yellow-ff = #FFDF4D
|
|
106
|
+
|
|
107
|
+
$paleViolet = #DBE1EA
|
|
108
|
+
|
|
109
|
+
$black = #000000
|
|
110
|
+
$black30 = rgba($black, 38%)
|
|
111
|
+
$black38 = rgba($black, 38%)
|
|
112
|
+
$black50 = rgba($black, 50%)
|
|
113
|
+
$black60 = rgba($black, 60%)
|
|
114
|
+
$black80 = rgba($black, 87%)
|
|
115
|
+
|
|
116
|
+
// Z-index master list
|
|
117
|
+
//
|
|
118
|
+
$zIndex-icon = 99
|
|
119
|
+
$zIndex-dropdown = 111
|
|
120
|
+
$zIndex-sticky = 222
|
|
121
|
+
$zIndex-fixed = 333
|
|
122
|
+
$zIndex-modal-backdrop = 444
|
|
123
|
+
$zIndex-modal = 555
|
|
124
|
+
$zIndex-popover = 666
|
|
125
|
+
$zIndex-tooltip = 777
|
|
126
|
+
|
|
127
|
+
// media breakpoints
|
|
128
|
+
// with idea of mobile first
|
|
129
|
+
// i.e @media screen and (min-width: $tablet)
|
|
130
|
+
$phoneMax = 576px
|
|
131
|
+
$tablet = 768px
|
|
132
|
+
$phoneMaxLandscape = 992px
|
|
133
|
+
$tabletLandscape = 992px
|
|
134
|
+
$desktop = 1200px
|
|
135
|
+
$desktopBig = 1800px
|
|
136
|
+
$smStart = 575px
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@import '../legacy-theme/theme.styl'
|
|
2
|
+
|
|
3
|
+
.wrapper
|
|
4
|
+
position: relative
|
|
5
|
+
border: 1px solid $mantisGreen
|
|
6
|
+
box-sizing: border-box
|
|
7
|
+
overflow: hidden
|
|
8
|
+
.wrapper::after
|
|
9
|
+
content: ''
|
|
10
|
+
|
|
11
|
+
.label
|
|
12
|
+
position: absolute
|
|
13
|
+
top: -32px
|
|
14
|
+
left: -32px
|
|
15
|
+
z-index: $zIndex-dropdown
|
|
16
|
+
display: flex
|
|
17
|
+
justify-content: center
|
|
18
|
+
align-items: flex-end
|
|
19
|
+
box-sizing: border-box
|
|
20
|
+
width: 65px
|
|
21
|
+
height: 65px
|
|
22
|
+
padding-bottom: 5px
|
|
23
|
+
transform: rotate(-45deg)
|
|
24
|
+
color: white
|
|
25
|
+
background-color: $mantisGreen
|
|
26
|
+
text-transform uppercase
|
|
27
|
+
font-family: $font-style-arial
|
|
28
|
+
font-weight: bold
|
|
29
|
+
font-size: 12px
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
|
|
4
|
+
import styles from './withLabel.styl';
|
|
5
|
+
|
|
6
|
+
export interface IWithLabelProps {
|
|
7
|
+
labelVisible?: boolean;
|
|
8
|
+
labelText?: string;
|
|
9
|
+
|
|
10
|
+
labelWrapperClassName?: string;
|
|
11
|
+
labelClassName?: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// TODO: Correct types from WrappedComponent
|
|
16
|
+
// TODO: Correct default props for WrappedComponent
|
|
17
|
+
|
|
18
|
+
// This component adds TOP label(left-top corner) and green border.
|
|
19
|
+
// But actual purpose of this components should be
|
|
20
|
+
// adding the labels over the Image and ImageSlider with price quality texts,
|
|
21
|
+
// with vehicle condition texts
|
|
22
|
+
|
|
23
|
+
// TODO: Re-work component to fit requirements described above.
|
|
24
|
+
export default function withLabel(WrappedComponent: any) {
|
|
25
|
+
const WithLabel: React.FunctionComponent<IWithLabelProps> = (props) => {
|
|
26
|
+
const { labelVisible, labelText, labelWrapperClassName, labelClassName, ...rest } = props;
|
|
27
|
+
|
|
28
|
+
if (!labelVisible) return <WrappedComponent {...rest} />;
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<div className={classnames(styles.wrapper, labelWrapperClassName)}>
|
|
32
|
+
<strong className={classnames(styles.label, labelClassName)}>{labelText}</strong>
|
|
33
|
+
<WrappedComponent {...rest} />
|
|
34
|
+
</div>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
WithLabel.defaultProps = {
|
|
39
|
+
visible: true,
|
|
40
|
+
labelText: 'top'
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return WithLabel;
|
|
44
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
@import '../legacy-theme/mixins.styl'
|
|
2
|
+
|
|
3
|
+
$xs-height = 24px
|
|
4
|
+
$sm-height = 30px
|
|
5
|
+
$md-height = 34px
|
|
6
|
+
$indent = 10px
|
|
7
|
+
|
|
8
|
+
.wrapper
|
|
9
|
+
position: relative
|
|
10
|
+
|
|
11
|
+
.controls
|
|
12
|
+
position: absolute
|
|
13
|
+
right: 0
|
|
14
|
+
bottom: $indent;
|
|
15
|
+
width: 100%
|
|
16
|
+
display: flex
|
|
17
|
+
flex-wrap: wrap
|
|
18
|
+
justify-content: flex-start
|
|
19
|
+
font-size: $font-size-default
|
|
20
|
+
padding: 0 16px
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
gap: 0.6em;
|
|
23
|
+
user-select: none;
|
|
24
|
+
|
|
25
|
+
+media-tablet-landscape-up()
|
|
26
|
+
padding: 0 6px
|
|
27
|
+
|
|
28
|
+
&::after
|
|
29
|
+
position: absolute;
|
|
30
|
+
width: calc(100% - 20px);
|
|
31
|
+
height: 1px;
|
|
32
|
+
left: 10px;
|
|
33
|
+
bottom: -10px;
|
|
34
|
+
background-color: rgba(76,78,100,0.12);
|
|
35
|
+
|
|
36
|
+
.section
|
|
37
|
+
background-color: rgba(255, 255, 255, 0.75);
|
|
38
|
+
border-radius: 2px
|
|
39
|
+
display: flex
|
|
40
|
+
line-height: 1;
|
|
41
|
+
align-items: center
|
|
42
|
+
justify-content: space-around;
|
|
43
|
+
height: inherit;
|
|
44
|
+
|
|
45
|
+
&:last-of-type
|
|
46
|
+
margin-left: auto
|
|
47
|
+
|
|
48
|
+
.starButton
|
|
49
|
+
cursor: pointer
|
|
50
|
+
fill: white
|
|
51
|
+
margin-right: .6em
|
|
52
|
+
flex-shrink: 0
|
|
53
|
+
margin-bottom: $indent
|
|
54
|
+
z-index: 1
|
|
55
|
+
path
|
|
56
|
+
stroke: $skyBlue
|
|
57
|
+
&.starButtonFavored
|
|
58
|
+
fill: $skyBlue
|
|
59
|
+
path
|
|
60
|
+
stroke: white
|
|
61
|
+
|
|
62
|
+
.statsViewsCount
|
|
63
|
+
.statsFavoritesCount
|
|
64
|
+
display: flex
|
|
65
|
+
align-items: center
|
|
66
|
+
|
|
67
|
+
.statsFavoritesCount
|
|
68
|
+
padding-left: 0.8em
|
|
69
|
+
|
|
70
|
+
.clickable
|
|
71
|
+
cursor: pointer
|
|
72
|
+
|
|
73
|
+
.statsEyeIcon
|
|
74
|
+
margin-right: 5px
|
|
75
|
+
width: 1.5em
|
|
76
|
+
height: 1.5em
|
|
77
|
+
|
|
78
|
+
.statsStarIcon
|
|
79
|
+
margin-right: 5px
|
|
80
|
+
margin-bottom: 3px
|
|
81
|
+
width: 20px
|
|
82
|
+
height: 20px
|
|
83
|
+
fill: rgb(100, 100, 100)
|
|
84
|
+
transform:scale(0.8)
|
|
85
|
+
|
|
86
|
+
.accented
|
|
87
|
+
color: $primary
|
|
88
|
+
fill: $primary
|
|
89
|
+
|
|
90
|
+
.xs
|
|
91
|
+
height: $xs-height
|
|
92
|
+
.section
|
|
93
|
+
padding: 0 5px
|
|
94
|
+
font-size: 12px
|
|
95
|
+
color: rgba(51, 51, 51, 0.8);
|
|
96
|
+
|
|
97
|
+
.starButton
|
|
98
|
+
width: 1.5em
|
|
99
|
+
height: 1.5em
|
|
100
|
+
|
|
101
|
+
.sm
|
|
102
|
+
height: $sm-height
|
|
103
|
+
.section
|
|
104
|
+
padding: 0 6px
|
|
105
|
+
font-size: 16px
|
|
106
|
+
|
|
107
|
+
.cameraIcon
|
|
108
|
+
width: 24px
|
|
109
|
+
height: 18px
|
|
110
|
+
margin-right: 5px
|
|
111
|
+
|
|
112
|
+
.starButton
|
|
113
|
+
width: 2.4em
|
|
114
|
+
height: 2.3em
|
|
115
|
+
|
|
116
|
+
.md
|
|
117
|
+
height: $md-height
|
|
118
|
+
|
|
119
|
+
.section
|
|
120
|
+
padding: 0 6px
|
|
121
|
+
font-size: 16px
|
|
122
|
+
|
|
123
|
+
.cameraIcon
|
|
124
|
+
width: 24px
|
|
125
|
+
height: 18px
|
|
126
|
+
margin-right: 5px
|
|
127
|
+
|
|
128
|
+
.starButton
|
|
129
|
+
width: 2.4em
|
|
130
|
+
height: 2.3em
|
|
131
|
+
|
|
132
|
+
.topWrapper
|
|
133
|
+
position: absolute
|
|
134
|
+
left: 16px
|
|
135
|
+
right: 16px
|
|
136
|
+
top: 5px
|
|
137
|
+
user-select: none
|
|
138
|
+
z-index: 1
|
|
139
|
+
display: flex;
|
|
140
|
+
gap: 10px;
|
|
141
|
+
|
|
142
|
+
+media-tablet-landscape-up()
|
|
143
|
+
left: 6px
|
|
144
|
+
right: 6px
|
|
145
|
+
|
|
146
|
+
&.fourBadges
|
|
147
|
+
+media-tablet-landscape-up()
|
|
148
|
+
gap: 6px
|
|
149
|
+
.badgeItem
|
|
150
|
+
height: 18px
|
|
151
|
+
font-size: 10px
|
|
152
|
+
min-width: 30px
|
|
153
|
+
.badgeFull
|
|
154
|
+
display: none
|
|
155
|
+
.badgeShort
|
|
156
|
+
display: inline
|
|
157
|
+
|
|
158
|
+
.badgeItem
|
|
159
|
+
// hook class for compact-mode overrides
|
|
160
|
+
|
|
161
|
+
.badgeFull
|
|
162
|
+
display: inline
|
|
163
|
+
|
|
164
|
+
.badgeShort
|
|
165
|
+
display: none
|
|
166
|
+
|
|
167
|
+
.priceDifferencePerCent
|
|
168
|
+
margin-left: auto;
|
|
169
|
+
|
|
170
|
+
.new
|
|
171
|
+
text-transform: uppercase
|
|
172
|
+
|
|
173
|
+
.imagesCount
|
|
174
|
+
margin-left: 0 !important
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
|
|
4
|
+
import IconSVG from '../../iconsvg/IconSVG';
|
|
5
|
+
import Badge from '../Badge/Badge';
|
|
6
|
+
import FormattedNumber from '../FormattedNumber/FormattedNumber';
|
|
7
|
+
|
|
8
|
+
import styles from './withStats.styl';
|
|
9
|
+
|
|
10
|
+
export interface IStatsData {
|
|
11
|
+
totalCarImpCount: number;
|
|
12
|
+
totalFavCount: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
type TStatsSize = 'xs' | 'sm' | 'md';
|
|
16
|
+
|
|
17
|
+
export type TPrice = {
|
|
18
|
+
currency?: string;
|
|
19
|
+
amount?: number;
|
|
20
|
+
oldPrice?: number;
|
|
21
|
+
historyPriceDifference?: number;
|
|
22
|
+
historyPriceDifferencePerCent?: number;
|
|
23
|
+
vatRate?: number | null;
|
|
24
|
+
financing?: { firstInstallment?: number; [key: string]: any };
|
|
25
|
+
leasing?: { firstInstallment?: number; [key: string]: any };
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export interface IStatsWrapperProps {
|
|
29
|
+
t?: (key: string, options?: object) => string;
|
|
30
|
+
statsSize?: TStatsSize;
|
|
31
|
+
price?: TPrice;
|
|
32
|
+
isFavoured?: boolean;
|
|
33
|
+
statsData?: IStatsData;
|
|
34
|
+
imagesCount?: number;
|
|
35
|
+
showNewLabel?: boolean;
|
|
36
|
+
showDownPayment?: boolean;
|
|
37
|
+
disableDownPaymentLocalStorage?: boolean;
|
|
38
|
+
onFavoriteClick?: (event: any) => void;
|
|
39
|
+
getCarImagesData?: (carId: string, force?: boolean, includeAll?: boolean, type?: any, typeAlternative?: string) => Promise<any>;
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const withStats = (WrappedComponent: any) => ({
|
|
44
|
+
t,
|
|
45
|
+
images,
|
|
46
|
+
hasInteriorExteriorPhoto,
|
|
47
|
+
imagesCount,
|
|
48
|
+
statsData,
|
|
49
|
+
isFavoured,
|
|
50
|
+
onFavoriteClick,
|
|
51
|
+
isReferenceSearch,
|
|
52
|
+
onSlideChange,
|
|
53
|
+
classWrapPrice = '',
|
|
54
|
+
showNewLabel = false,
|
|
55
|
+
showDownPayment = false,
|
|
56
|
+
disableDownPaymentLocalStorage = false,
|
|
57
|
+
statsSize = 'xs',
|
|
58
|
+
price: { historyPriceDifference = 0, historyPriceDifferencePerCent = 0 },
|
|
59
|
+
...props
|
|
60
|
+
}: IStatsWrapperProps) => {
|
|
61
|
+
const [activeSlide, setActiveSlide] = React.useState<number>(0);
|
|
62
|
+
const [isWideScreen, setIsWideScreen] = React.useState<boolean>(
|
|
63
|
+
typeof window !== 'undefined' ? window.matchMedia('(min-width: 992px)').matches : false
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
React.useEffect(() => {
|
|
67
|
+
const mq = window.matchMedia('(min-width: 992px)');
|
|
68
|
+
const handler = (e: MediaQueryListEvent) => setIsWideScreen(e.matches);
|
|
69
|
+
mq.addEventListener('change', handler);
|
|
70
|
+
return () => mq.removeEventListener('change', handler);
|
|
71
|
+
}, []);
|
|
72
|
+
|
|
73
|
+
const MIN_PERCENT = 5;
|
|
74
|
+
const MIN_PRICE_DIFFERENCE = 500;
|
|
75
|
+
|
|
76
|
+
const [showByLocalStorage, setShowByLocalStorage] = React.useState(false);
|
|
77
|
+
const [anyLsBlocked, setAnyLsBlocked] = React.useState(false);
|
|
78
|
+
|
|
79
|
+
React.useEffect(() => {
|
|
80
|
+
const raw = localStorage.getItem('financing_store');
|
|
81
|
+
const parsed = raw ? JSON.parse(raw) : null;
|
|
82
|
+
const fin = parsed?.userCommonConfig?.financing?.firstInstallment;
|
|
83
|
+
const lea = parsed?.userCommonConfig?.leasing?.firstInstallment;
|
|
84
|
+
const finBlocked = fin !== undefined && fin !== null && fin !== 0;
|
|
85
|
+
const leaBlocked = lea !== undefined && lea !== null && lea !== 0;
|
|
86
|
+
const anyBlocked = finBlocked || leaBlocked;
|
|
87
|
+
const hasZero = fin === 0 || lea === 0;
|
|
88
|
+
setAnyLsBlocked(anyBlocked);
|
|
89
|
+
setShowByLocalStorage(hasZero && !anyBlocked);
|
|
90
|
+
}, []);
|
|
91
|
+
|
|
92
|
+
const showByBackend = disableDownPaymentLocalStorage
|
|
93
|
+
? !!showDownPayment
|
|
94
|
+
: showDownPayment && !anyLsBlocked;
|
|
95
|
+
const effectiveShowByLocalStorage = disableDownPaymentLocalStorage ? false : showByLocalStorage;
|
|
96
|
+
|
|
97
|
+
const onHandleSlideChange = (activeSlide: number) => {
|
|
98
|
+
setActiveSlide(activeSlide);
|
|
99
|
+
|
|
100
|
+
if (typeof onSlideChange === 'function') {
|
|
101
|
+
onSlideChange(activeSlide);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const renderImagesData = (): JSX.Element => {
|
|
106
|
+
if (!Number.isFinite(imagesCount)) return null;
|
|
107
|
+
|
|
108
|
+
const delimiters = { xs: '|', sm: '|', md: 'von' };
|
|
109
|
+
|
|
110
|
+
return (
|
|
111
|
+
<div className={classnames(styles.section, styles.imagesCount)}>
|
|
112
|
+
{statsSize === 'md' ? <IconSVG name='common_camera' customDimensions className={styles.cameraIcon} /> : null}
|
|
113
|
+
{!!imagesCount && <span>{`${activeSlide + 1} ${delimiters[statsSize]} ${imagesCount}`}</span>}
|
|
114
|
+
</div>
|
|
115
|
+
);
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const renderRotateSvg = (): JSX.Element => {
|
|
119
|
+
const hasExteriorPhotos = hasInteriorExteriorPhoto && imagesCount > 0;
|
|
120
|
+
if (!hasExteriorPhotos) return null;
|
|
121
|
+
return (
|
|
122
|
+
<div className={styles.section}>
|
|
123
|
+
{hasExteriorPhotos ? (
|
|
124
|
+
<IconSVG name='rotate360New' customDimensions className={styles.statsEyeIcon} />
|
|
125
|
+
) : null}
|
|
126
|
+
</div>
|
|
127
|
+
);
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const renderStarButton = () => {
|
|
131
|
+
if (!onFavoriteClick) return null;
|
|
132
|
+
|
|
133
|
+
return (
|
|
134
|
+
<IconSVG
|
|
135
|
+
name='common_StarRoundedCorners'
|
|
136
|
+
customDimensions
|
|
137
|
+
className={classnames(styles.starButton, { [styles.starButtonFavored]: isFavoured })}
|
|
138
|
+
onClick={onFavoriteClick}
|
|
139
|
+
/>
|
|
140
|
+
);
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const renderStatsData = (): JSX.Element => {
|
|
144
|
+
if (!statsData) return null;
|
|
145
|
+
const { totalCarImpCount, totalFavCount } = statsData;
|
|
146
|
+
const favoritesClassName = classnames(
|
|
147
|
+
styles.statsFavoritesCount,
|
|
148
|
+
{
|
|
149
|
+
[styles.accented]: isFavoured,
|
|
150
|
+
[styles.clickable]: typeof onFavoriteClick === 'function'
|
|
151
|
+
});
|
|
152
|
+
const favoritesIconClassName = classnames(styles.statsStarIcon, { [styles.accented]: isFavoured });
|
|
153
|
+
|
|
154
|
+
return (
|
|
155
|
+
<>
|
|
156
|
+
{(!!totalCarImpCount || !!totalFavCount) && <div className={styles.section}>
|
|
157
|
+
{!!totalCarImpCount ? <div className={styles.statsViewsCount}>
|
|
158
|
+
<IconSVG name='common_SliderEye' customDimensions className={styles.statsEyeIcon} />
|
|
159
|
+
<span>
|
|
160
|
+
{totalCarImpCount}
|
|
161
|
+
</span>
|
|
162
|
+
</div> : null}
|
|
163
|
+
{!!totalFavCount ? <div className={favoritesClassName} onClick={onFavoriteClick}>
|
|
164
|
+
<IconSVG name='star' customDimensions className={favoritesIconClassName} />
|
|
165
|
+
<span>
|
|
166
|
+
{totalFavCount}
|
|
167
|
+
</span>
|
|
168
|
+
</div> : null}
|
|
169
|
+
</div>
|
|
170
|
+
}
|
|
171
|
+
</>
|
|
172
|
+
);
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
const renderPriceData = () => {
|
|
176
|
+
const newText = !!t ? t('vehicleProps:promoSlider.new') : 'neu';
|
|
177
|
+
const downPaymentText = !!t ? t('vehicleProps:promoSlider.downPayment') : '0\u20AC Anzahlung';
|
|
178
|
+
const downPaymentShortText = !!t ? t('vehicleProps:promoSlider.downPaymentShort') : '0\u20AC Anz.';
|
|
179
|
+
const EUR = `\u20AC`;
|
|
180
|
+
|
|
181
|
+
const allFourActive = showNewLabel
|
|
182
|
+
&& !!historyPriceDifference && historyPriceDifference >= MIN_PRICE_DIFFERENCE
|
|
183
|
+
&& (effectiveShowByLocalStorage || showByBackend)
|
|
184
|
+
&& !!historyPriceDifferencePerCent && historyPriceDifferencePerCent >= MIN_PERCENT;
|
|
185
|
+
|
|
186
|
+
const activeBadgesCount = [
|
|
187
|
+
showNewLabel,
|
|
188
|
+
!!historyPriceDifference && historyPriceDifference >= MIN_PRICE_DIFFERENCE,
|
|
189
|
+
effectiveShowByLocalStorage || showByBackend,
|
|
190
|
+
!!historyPriceDifferencePerCent && historyPriceDifferencePerCent >= MIN_PERCENT
|
|
191
|
+
].filter(Boolean).length;
|
|
192
|
+
|
|
193
|
+
return (
|
|
194
|
+
<div className={classnames(styles.topWrapper, classWrapPrice, { [styles.fourBadges]: allFourActive })}>
|
|
195
|
+
{showNewLabel && <Badge type='blue' className={classnames(styles.new, styles.badgeItem)}>{newText}</Badge>}
|
|
196
|
+
{!!historyPriceDifference && historyPriceDifference >= MIN_PRICE_DIFFERENCE && (
|
|
197
|
+
<Badge type='green' className={styles.badgeItem}>
|
|
198
|
+
{`-`}
|
|
199
|
+
<FormattedNumber value={historyPriceDifference} numbersAfterDot={0} />
|
|
200
|
+
{` ${EUR}`}
|
|
201
|
+
</Badge>
|
|
202
|
+
)}
|
|
203
|
+
{(effectiveShowByLocalStorage || showByBackend) && (
|
|
204
|
+
<Badge type='lightBlue' className={styles.badgeItem}>
|
|
205
|
+
{isWideScreen && activeBadgesCount >= 3 ? downPaymentShortText : downPaymentText}
|
|
206
|
+
</Badge>
|
|
207
|
+
)}
|
|
208
|
+
{!!historyPriceDifferencePerCent && historyPriceDifferencePerCent >= MIN_PERCENT && (
|
|
209
|
+
<Badge type='red' className={classnames(styles.priceDifferencePerCent, styles.badgeItem)}>-{historyPriceDifferencePerCent}%</Badge>
|
|
210
|
+
)}
|
|
211
|
+
</div>
|
|
212
|
+
);
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
const wrappedComponentProps = {
|
|
216
|
+
t,
|
|
217
|
+
images,
|
|
218
|
+
hasInteriorExteriorPhoto,
|
|
219
|
+
imagesCount,
|
|
220
|
+
classWrapPrice,
|
|
221
|
+
...props
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
return (
|
|
225
|
+
<div className={styles.wrapper}>
|
|
226
|
+
{!isReferenceSearch && renderPriceData()}
|
|
227
|
+
<WrappedComponent onSlideChange={onHandleSlideChange} isReferenceSearch={isReferenceSearch} {...wrappedComponentProps} />
|
|
228
|
+
<div className={classnames(styles.controls, styles[statsSize])}>
|
|
229
|
+
{renderImagesData()}
|
|
230
|
+
{renderRotateSvg()}
|
|
231
|
+
{renderStarButton()}
|
|
232
|
+
{renderStatsData()}
|
|
233
|
+
</div>
|
|
234
|
+
</div>
|
|
235
|
+
);
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
export default withStats;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
export const FIRST_INSTALLMENT_FIX = [
|
|
3
|
+
0, 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, // tslint:disable-line
|
|
4
|
+
6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000, 14000, 15000, // tslint:disable-line
|
|
5
|
+
17500, 20000, 22500, 25000, 27500, 30000, 35000, 40000, 45000, 50000 // tslint:disable-line
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export const MONTHLY_INSTALLMENT_FIX = [
|
|
9
|
+
'any', 50, 60, 70, 80, 90, 100, 125, 150, 175, 200, 225, 250, 275, 300, 350, 400, 450, 500, // tslint:disable-line
|
|
10
|
+
550, 600, 650, 700, 750, 800, 850, 900, 950, 1000, 1100, 1200, 1300, 1400, 1500 // tslint:disable-line
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
export const PAYBACK_PERIOD_FIX = [
|
|
14
|
+
12, 24, 36, 48, 60, 72, 84, 96 // tslint:disable-line
|
|
15
|
+
];
|