diff --git a/public/index.html b/public/index.html
index 71ddf109..6c6e477a 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1 +1 @@
-
YouAuto
\ No newline at end of file
+YouAuto
\ No newline at end of file
diff --git a/public/main.a278e3509ad2fb1eb9f3.js b/public/main.a278e3509ad2fb1eb9f3.js
new file mode 100644
index 00000000..f464efb9
--- /dev/null
+++ b/public/main.a278e3509ad2fb1eb9f3.js
@@ -0,0 +1 @@
+(()=>{var e,t,a,r={6363:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={banks_list:"BankList-module__banks_list--GqXY5",banks_list__item:"BankList-module__banks_list__item--XAzuw",banks_list__img:"BankList-module__banks_list__img--R8p6X",banks_list__helper:"BankList-module__banks_list__helper--LnbKP",banks_list__link:"BankList-module__banks_list__link--OrSWX"}},7400:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={benefits:"Benefits-module__benefits--CJ9oX",benefits__item:"Benefits-module__benefits__item--lZ48H"}},3996:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={breadCrump:"BreadCrumpPage-module__breadCrump--pNYBC",breadCrump__item:"BreadCrumpPage-module__breadCrump__item--fBPfC",breadCrump__item_active:"BreadCrumpPage-module__breadCrump__item_active--gkVH6"}},2416:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={burger_menu:"BurgerMenu-module__burger_menu--mooWU",burger_menu__list:"BurgerMenu-module__burger_menu__list--WMwnK",burger_menu__item:"BurgerMenu-module__burger_menu__item--rncQ1",burger_menu__link:"BurgerMenu-module__burger_menu__link--Dbfj8",burger_menu_active:"BurgerMenu-module__burger_menu_active--efFf7"}},8094:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={call_box:"ButtonBoxCallCar-module__call_box--Nomu_",call_box__link:"ButtonBoxCallCar-module__call_box__link--uzL2X",call_box__button:"ButtonBoxCallCar-module__call_box__button--uUjHg"}},5086:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={button_card_open_modal:"ButtonCardOpenModal-module__button_card_open_modal--UrgJC"}},6428:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={button_favorite:"ButtonFavorite-module__button_favorite--lX8fu",heart_active:"ButtonFavorite-module__heart_active--xoxH6",heart_link:"ButtonFavorite-module__heart_link--VS0L_",heart:"ButtonFavorite-module__heart--YbXzr"}},1174:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={slider_wrapper:"CarCardSlider-module__slider_wrapper--UtubE",slider_card:"CarCardSlider-module__slider_card--QM8wY",slider_card__item:"CarCardSlider-module__slider_card__item--rumQx",slider_horizontal:"CarCardSlider-module__slider_horizontal--btVWY",slider_horizontal__item_img:"CarCardSlider-module__slider_horizontal__item_img--K1una",box_vector:"CarCardSlider-module__box_vector--VVA4b",box_vector__vector:"CarCardSlider-module__box_vector__vector--PDch7",active:"CarCardSlider-module__active--fALhd",slider_horizontal__item:"CarCardSlider-module__slider_horizontal__item--rXV1B",preview_root:"CarCardSlider-module__preview_root--mRKd9",preview_modal:"CarCardSlider-module__preview_modal--NG07j",preview_toolbar:"CarCardSlider-module__preview_toolbar--qmVWE",preview_counter:"CarCardSlider-module__preview_counter--zP5nb",slider_main_container:"CarCardSlider-module__slider_main_container--R0reA"}},9e3:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={equipment:"CarEquipment-module__equipment--QwoxU",equipment__list:"CarEquipment-module__equipment__list--ASBZD",equipment__item:"CarEquipment-module__equipment__item--hMgC4",equipment__title_equipment:"CarEquipment-module__equipment__title_equipment--unE5R",equipment__title_review:"CarEquipment-module__equipment__title_review--EsPdq",equipment__button:"CarEquipment-module__equipment__button--YjtOM"}},5810:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={car_price__full:"CarPrice-module__car_price__full--Nur7S",car_price__month:"CarPrice-module__car_price__month--Tr6nh"}},3112:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={select:"CarSelection-module__select--GepD7",select__title:"CarSelection-module__select__title--INlZv",find_btn:"CarSelection-module__find_btn--SMaaD",reset_btn:"CarSelection-module__reset_btn--C8YWb",catalog_filter:"CarSelection-module__catalog_filter--VrAnq",filter:"CarSelection-module__filter--DHZP1"}},660:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={select_filter:"CarSelectionFilter-module__select_filter--Q6QmC",select_filter__header:"CarSelectionFilter-module__select_filter__header--OtX7i",select_filter__list:"CarSelectionFilter-module__select_filter__list--R7ooQ",select_filter__item:"CarSelectionFilter-module__select_filter__item--qSlLj",vector:"CarSelectionFilter-module__vector--GY8GV"}},7478:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={card_auto:"CardAuto-module__card_auto--bZ1bg",card_auto__title:"CardAuto-module__card_auto__title--SGLqd",card_auto__body:"CardAuto-module__card_auto__body--F5a3f",card_auto__header:"CardAuto-module__card_auto__header--xXK74",card_auto__slider:"CardAuto-module__card_auto__slider--at4FO",card_auto__slider_item:"CardAuto-module__card_auto__slider_item--Zd7h2",card_auto__slider_item_active:"CardAuto-module__card_auto__slider_item_active--idjh3",card_auto__picture_container:"CardAuto-module__card_auto__picture_container--u2lJD",card_auto__picture:"CardAuto-module__card_auto__picture--BJIR1",card_auto__name:"CardAuto-module__card_auto__name--lKLUt",card_auto__tags:"CardAuto-module__card_auto__tags--xJe9v",card_auto__footer:"CardAuto-module__card_auto__footer--VrKkY",card_auto__price_box:"CardAuto-module__card_auto__price_box--c9C3W",card_auto__price:"CardAuto-module__card_auto__price--vpRn_",card_auto__price_no_fee:"CardAuto-module__card_auto__price_no_fee--hfWTw",card_auto__link:"CardAuto-module__card_auto__link--oHyRZ",card_auto__buy:"CardAuto-module__card_auto__buy--DqQEC",card_auto__in_stock:"CardAuto-module__card_auto__in_stock--ra49z"}},1654:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={card_auto_horizontal:"CardAutoHorizontal-module__card_auto_horizontal--f_ElI",card_auto_horizontal__slider:"CardAutoHorizontal-module__card_auto_horizontal__slider--VYh8T",card_auto_horizontal__img:"CardAutoHorizontal-module__card_auto_horizontal__img--GcFpM",card_auto_horizontal__slider_item:"CardAutoHorizontal-module__card_auto_horizontal__slider_item--zTD8E",card_auto_horizontal__box_vector:"CardAutoHorizontal-module__card_auto_horizontal__box_vector--h5d2d",card_auto_horizontal__vector:"CardAutoHorizontal-module__card_auto_horizontal__vector--mKZvP",card_auto_horizontal__info:"CardAutoHorizontal-module__card_auto_horizontal__info--GarnV",card_auto_horizontal__info_main:"CardAutoHorizontal-module__card_auto_horizontal__info_main--o3IET",card_auto_horizontal__name:"CardAutoHorizontal-module__card_auto_horizontal__name--IXcP_",card_auto_horizontal__price:"CardAutoHorizontal-module__card_auto_horizontal__price--KUJ8a",card_auto_horizontal__price_month:"CardAutoHorizontal-module__card_auto_horizontal__price_month--lAB6Q",card_auto_horizontal__tags:"CardAutoHorizontal-module__card_auto_horizontal__tags--NgT4_",card_auto_horizontal__callback:"CardAutoHorizontal-module__card_auto_horizontal__callback--eHaX5",card_auto_horizontal__callback_slide:"CardAutoHorizontal-module__card_auto_horizontal__callback_slide--f4Ndv",card_auto_horizontal__swiper:"CardAutoHorizontal-module__card_auto_horizontal__swiper--ng1Os",card_auto_horizontal__in_stock:"CardAutoHorizontal-module__card_auto_horizontal__in_stock--L1JhS"}},8318:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={filter_cars:"CarsFilter-module__filter_cars--VYMF1",vertical:"CarsFilter-module__vertical--E9mtL",horizontal:"CarsFilter-module__horizontal--ioFZ5"}},7144:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={check_history:"CheckHistory-module__check_history--KeD8b",check_history__title:"CheckHistory-module__check_history__title--hQ21A",check_history__list:"CheckHistory-module__check_history__list--xUKRj",check_history__item:"CheckHistory-module__check_history__item--o7PKL",check_history__report_look:"CheckHistory-module__check_history__report_look--fCD4R"}},4238:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={checkbox_label:"Checkbox-module__checkbox_label--ijBMP",checkbox_label__checkbox:"Checkbox-module__checkbox_label__checkbox--QyrmC",checkbox_label__checkbox_custom:"Checkbox-module__checkbox_label__checkbox_custom--C_0KA",checkbox_label__text:"Checkbox-module__checkbox_label__text--y_dCI"}},486:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={checkbox_label:"CheckboxAgree-module__checkbox_label--e4Cg8",checkbox_label__checkbox:"CheckboxAgree-module__checkbox_label__checkbox--rWdYH",checkbox_label__checkbox_custom:"CheckboxAgree-module__checkbox_label__checkbox_custom--svw7t",checkbox_label__text:"CheckboxAgree-module__checkbox_label__text--CdZZl",checkbox_label__link:"CheckboxAgree-module__checkbox_label__link--_w0vb"}},410:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={credit_about:"CreditAbout-module__credit_about--S5ZQ8",credit_about__title:"CreditAbout-module__credit_about__title--iNaQr",credit_about__description:"CreditAbout-module__credit_about__description--ZOmA3"}},346:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={bank_info:"CreditBankInfo-module__bank_info--oopOx",bank_info__bank:"CreditBankInfo-module__bank_info__bank--w4nfk",bank_info__img:"CreditBankInfo-module__bank_info__img--f_Ng9",bank_info__name:"CreditBankInfo-module__bank_info__name--jrjb8",bank_info__rate:"CreditBankInfo-module__bank_info__rate--I42zN",bank_info__payment:"CreditBankInfo-module__bank_info__payment--VYYAb"}},1514:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={bank_program:"CreditBankProgram-module__bank_program--w1NtI",bank_program__name:"CreditBankProgram-module__bank_program__name--OTMUh",bank_program__rate:"CreditBankProgram-module__bank_program__rate--NjwqL",bank_program__btn:"CreditBankProgram-module__bank_program__btn--Dq28x"}},5502:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={offer:"CreditOffer-module__offer--flDuG",offer_active_open:"CreditOffer-module__offer_active_open--YFUFI",offer_active_program:"CreditOffer-module__offer_active_program--WF99K",offer__programs:"CreditOffer-module__offer__programs--ocCMW"}},5576:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={credit_offers:"CreditOffersList-module__credit_offers--oXypD",credit_offers__title:"CreditOffersList-module__credit_offers__title--j7wDY",credit_offers__list:"CreditOffersList-module__credit_offers__list--x6X6v"}},7468:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={error_message:"ErrorLoading-module__error_message--mIcIG"}},1908:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={extra_information:"ExtraInformation-module__extra_information--w6uhU",extra_information__title:"ExtraInformation-module__extra_information__title--KcP1p",extra_information__list:"ExtraInformation-module__extra_information__list--oOzwh",extra_information__item:"ExtraInformation-module__extra_information__item--StCDe",extra_information__dashed:"ExtraInformation-module__extra_information__dashed--JOzpe"}},2602:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={field_slider:"FieldSlider-module__field_slider--f9pEs",field_slider__title:"FieldSlider-module__field_slider__title--mQFn2",field_slider__input:"FieldSlider-module__field_slider__input--QvChD",field_slider__box:"FieldSlider-module__field_slider__box--R2tVj",field_slider__input_background:"FieldSlider-module__field_slider__input_background--ld_mN",field_slider__ticks:"FieldSlider-module__field_slider__ticks--E7DRW"}},4338:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={footer:"Footer-module__footer--nskFT",footer__inner:"Footer-module__footer__inner--IxqGI"}},9092:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={footer_contacts:"FooterContacts-module__footer_contacts--PFmR6",footer_contacts__list:"FooterContacts-module__footer_contacts__list--RHZ9b",footer_contacts__item:"FooterContacts-module__footer_contacts__item--ut3I7",footer_contacts__logo:"FooterContacts-module__footer_contacts__logo--oAU6q"}},4348:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={footer_disclaimer:"FooterDisclaimer-module__footer_disclaimer--JcRDe"}},5398:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={footer_information:"FooterInformation-module__footer_information--ooD6f",footer_information__list:"FooterInformation-module__footer_information__list--JXzYP",footer_information__item:"FooterInformation-module__footer_information__item--Fi5oK"}},2172:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={footer_legal_info:"FooterLegalInformation-module__footer_legal_info--HYgKZ",footer_legal_info__list:"FooterLegalInformation-module__footer_legal_info__list--ri6fr",footer_legal_info__item:"FooterLegalInformation-module__footer_legal_info__item--BhFMY"}},3230:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={form_credit:"FormCredit-module__form_credit--Z4XoA",form_credit__payment:"FormCredit-module__form_credit__payment--d_d5a"}},3866:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={exchange__form:"FormExchange-module__exchange__form--OlZN3",exchange__extra_fields:"FormExchange-module__exchange__extra_fields--SXnTo",exchange__description:"FormExchange-module__exchange__description--CGfDF",exchange__payment:"FormExchange-module__exchange__payment--uRsqD"}},2454:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={form_field:"FormField-module__form_field--tFLPe",form_field__input:"FormField-module__form_field__input--lNSUP"}},8660:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={label_phone:"FormFieldPhone-module__label_phone--FiHcw",label_phone__input:"FormFieldPhone-module__label_phone__input--s_ktL"}},4142:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={form_field_select:"FormFieldSelect-module__form_field_select--pXVat",form_field_select__input:"FormFieldSelect-module__form_field_select__input--JD_4W",form_field_select__list:"FormFieldSelect-module__form_field_select__list--xF3pN",form_field_select__item:"FormFieldSelect-module__form_field_select__item--yDmpC"}},9708:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={form_send_button:"FormSendButton-module__form_send_button--ID6F7"}},1222:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={header:"Header-module__header--buRw0",header_active:"Header-module__header_active--S14ni",header__inner:"Header-module__header__inner--wSsIo",logo__img:"Header-module__logo__img--Fsid6",logo_active:"Header-module__logo_active--sjYhz",logo:"Header-module__logo--xMX1p"}},2308:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={header_contacts:"HeaderContacts-module__header_contacts--I9kHM",header_contacts__item:"HeaderContacts-module__header_contacts__item--JDm2X",header_contacts__item_phone:"HeaderContacts-module__header_contacts__item_phone--Dmf4d"}},4706:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={header_nav:"HeaderNavigation-module__header_nav--K0m7d",header_nav__list:"HeaderNavigation-module__header_nav__list--iA4HH",header_nav__link:"HeaderNavigation-module__header_nav__link--skTU9",header_nav__link_active:"HeaderNavigation-module__header_nav__link_active--s5mvV"}},1450:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={header_navigation_mobile:"HeaderNavigationMobile-module__header_navigation_mobile--psiG3",header_navigation_mobile__phone:"HeaderNavigationMobile-module__header_navigation_mobile__phone--OjNE1",header_navigation_mobile__heart_link:"HeaderNavigationMobile-module__header_navigation_mobile__heart_link--fAZsF",header_navigation_mobile__count:"HeaderNavigationMobile-module__header_navigation_mobile__count--vL7_x",hamburger:"HeaderNavigationMobile-module__hamburger--NMb5G",hamburger__element:"HeaderNavigationMobile-module__hamburger__element--bTT6N",hamburger_active:"HeaderNavigationMobile-module__hamburger_active--pjxCM",heart:"HeaderNavigationMobile-module__heart--nAN54",header_nav__list:"HeaderNavigationMobile-module__header_nav__list--kH87D",theme_toggle:"HeaderNavigationMobile-module__theme_toggle--kF8ZH"}},3354:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={slide:"HeaderSliderElement-module__slide--dJywn",slide__insert:"HeaderSliderElement-module__slide__insert--Vlimd",slide__title:"HeaderSliderElement-module__slide__title--TID7K",slide__description:"HeaderSliderElement-module__slide__description--DGS9M",slide__img:"HeaderSliderElement-module__slide__img--sx4CC"}},5030:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={in_stock:"InStock-module__in_stock--aatpm",in_stock__inner:"InStock-module__in_stock__inner--cYhL5",in_stock__title:"InStock-module__in_stock__title--qKkvm"}},9502:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={in_stock__list:"InStockList-module__in_stock__list--lEtvh",in_stock__item:"InStockList-module__in_stock__item--P51xS",in_stock__name:"InStockList-module__in_stock__name--P1y06",in_stock__link:"InStockList-module__in_stock__link--BmKEQ",in_stock__count:"InStockList-module__in_stock__count--Hbt2O",in_stock__btn_more:"InStockList-module__in_stock__btn_more--bC_py",in_stock__arrow_icon:"InStockList-module__in_stock__arrow_icon--j2l_W"}},2122:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={in_stock_sign:"InStockSign-module__in_stock_sign--ajUVu"}},1976:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={latest_arrivals:"LastArrivals-module__latest_arrivals--ppjqi",latest_arrivals__inner:"LastArrivals-module__latest_arrivals__inner--kc6Jw",latest_arrivals__title:"LastArrivals-module__latest_arrivals__title--cWKFV",latest_arrivals__link:"LastArrivals-module__latest_arrivals__link--FXvWp"}},8124:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={body_inner:"Layout-module__body_inner--9jzcj",main:"Layout-module__main--WCNY5"}},9370:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={loader_wrapper:"Loader-module__loader_wrapper--j5tdI"}},2276:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={modal_benefit:"ModalBenefit-module__modal_benefit--mQ3ub",modal_benefit__inner:"ModalBenefit-module__modal_benefit__inner--DLJJw",modal_benefit__title:"ModalBenefit-module__modal_benefit__title--nFyq3",modal_benefit__description:"ModalBenefit-module__modal_benefit__description--rXMit",modal_benefit__btn:"ModalBenefit-module__modal_benefit__btn--V2koU",modal_benefit_active:"ModalBenefit-module__modal_benefit_active--FISzp",modal_promotion__btn:"ModalBenefit-module__modal_promotion__btn--DXbzu",modal_promotion__cross:"ModalBenefit-module__modal_promotion__cross--jGOMb",modal_promotion__inner:"ModalBenefit-module__modal_promotion__inner--eOhHO"}},4746:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={modal_callback:"ModalCallback-module__modal_callback--AiRpm",modal_callback__inner:"ModalCallback-module__modal_callback__inner--HWDXE",modal_callback__title:"ModalCallback-module__modal_callback__title--zOns1",modal_callback__cross:"ModalCallback-module__modal_callback__cross--QAxkc",modal_callback__content:"ModalCallback-module__modal_callback__content--lXSvm",modal_callback__form:"ModalCallback-module__modal_callback__form--Azyk5",modal_callback__form_title:"ModalCallback-module__modal_callback__form_title--iAYY9",modal_callback_active:"ModalCallback-module__modal_callback_active--zzxIu"}},6602:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={modal_credit:"ModalCredit-module__modal_credit--bSZ4r",modal_credit__inner:"ModalCredit-module__modal_credit__inner--p37LJ",modal_credit__cross:"ModalCredit-module__modal_credit__cross--y0fup",modal_credit__header:"ModalCredit-module__modal_credit__header--mDbLX",modal_credit__benefits:"ModalCredit-module__modal_credit__benefits--N88px",modal_credit__benefits_item:"ModalCredit-module__modal_credit__benefits_item--INwU4",modal_credit__title:"ModalCredit-module__modal_credit__title--oD24S",modal_credit__content:"ModalCredit-module__modal_credit__content--S9yt9",modal_credit__application:"ModalCredit-module__modal_credit__application--O7MpQ",modal_credit_active:"ModalCredit-module__modal_credit_active--bvFmq",modal_credit__card_car:"ModalCredit-module__modal_credit__card_car--lPgOH"}},6386:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={modal_equipment:"ModalEquipment-module__modal_equipment--jZywK",modal_equipment__inner:"ModalEquipment-module__modal_equipment__inner--LGnQd",modal_equipment__cross:"ModalEquipment-module__modal_equipment__cross--zF0kS",modal_equipment__header:"ModalEquipment-module__modal_equipment__header--bI9_Q",modal_equipment__title:"ModalEquipment-module__modal_equipment__title--aB0zG",modal_equipment__content:"ModalEquipment-module__modal_equipment__content--duWie",modal_equipment__category_list:"ModalEquipment-module__modal_equipment__category_list--d9OST",modal_equipment__category_item:"ModalEquipment-module__modal_equipment__category_item--Zp1t3",modal_equipment__name_list:"ModalEquipment-module__modal_equipment__name_list--FOkge",modal_equipment__name_item:"ModalEquipment-module__modal_equipment__name_item--S5nXP",modal_equipment_active:"ModalEquipment-module__modal_equipment_active--tQz9e"}},5546:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={modal_exchange:"ModalExchange-module__modal_exchange--gM9Y3",modal_exchange__inner:"ModalExchange-module__modal_exchange__inner--Z5ENt",modal_exchange__cross:"ModalExchange-module__modal_exchange__cross--RBPwU",modal_exchange__header:"ModalExchange-module__modal_exchange__header--Pe8Cr",modal_exchange__benefits:"ModalExchange-module__modal_exchange__benefits--_5NFN",modal_exchange__benefits_item:"ModalExchange-module__modal_exchange__benefits_item--uMD6K",modal_exchange__title:"ModalExchange-module__modal_exchange__title--9CQ33",modal_exchange__content:"ModalExchange-module__modal_exchange__content--Qdar_",modal_exchange__application:"ModalExchange-module__modal_exchange__application--uTeLL",modal_exchange_active:"ModalExchange-module__modal_exchange_active--unuqt",modal_exchange__card_car:"ModalExchange-module__modal_exchange__card_car--gJ2Ai"}},3430:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={modal_report:"ModalReport-module__modal_report--XjEMf",modal_report__inner:"ModalReport-module__modal_report__inner--OYRf6",modal_report__cross:"ModalReport-module__modal_report__cross--KziS2",modal_report__header:"ModalReport-module__modal_report__header--FT2Gp",modal_report__title:"ModalReport-module__modal_report__title--hFajC",modal_report__content:"ModalReport-module__modal_report__content--NS2XY",modal_report__characters:"ModalReport-module__modal_report__characters--m55KZ",modal_report__characters_item:"ModalReport-module__modal_report__characters_item--dgVB8",modal_report__content_item:"ModalReport-module__modal_report__content_item--Cg1w2",vin:"ModalReport-module__vin--FI8J8",vin__img:"ModalReport-module__vin__img--Gsbac",vin__loader:"ModalReport-module__vin__loader--caG9E",vin__link:"ModalReport-module__vin__link--mekQW",vin__download:"ModalReport-module__vin__download--AJXJo",modal_report_active:"ModalReport-module__modal_report_active--FXMmK"}},6094:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={modal_select:"ModalSelectCar-module__modal_select--vDgn6",modal_select__inner:"ModalSelectCar-module__modal_select__inner--FbdCS",modal_select__header:"ModalSelectCar-module__modal_select__header--yUt3h",modal_select__title:"ModalSelectCar-module__modal_select__title--YRanI",modal_select__cross:"ModalSelectCar-module__modal_select__cross--tdmBF",modal_select__panel:"ModalSelectCar-module__modal_select__panel--hpFbL",modal_select__label:"ModalSelectCar-module__modal_select__label--icBk0",modal_select__label_disabled:"ModalSelectCar-module__modal_select__label_disabled--nZ2sY",modal_select_active:"ModalSelectCar-module__modal_select_active--NKRXp",modal_select__list:"ModalSelectCar-module__modal_select__list--BtTd2"}},6497:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={modal_select__list:"ModalSelectList-module__modal_select__list--NPhrN",modal_select__item:"ModalSelectList-module__modal_select__item--YySGF"}},9272:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={pagination:"Pagination-module__pagination--bJ6Q6",page:"Pagination-module__page--VBohH",active:"Pagination-module__active--RIwyx"}},9282:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={promotion__list:"Promotion-module__promotion__list--ZXnQt",promotion__item:"Promotion-module__promotion__item--Kn0y5",promotion__title:"Promotion-module__promotion__title--XCA42",promotion__img:"Promotion-module__promotion__img--resoy"}},2498:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={select_auto_button:"SelectAutoButton-module__select_auto_button--JE6Np"}},9344:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={sort_filter:"SortFilter-module__sort_filter--aWaoE",sort_filter__list:"SortFilter-module__sort_filter__list--tL1V1",sort_filter__item:"SortFilter-module__sort_filter__item--io2tq"}},9174:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={vertical_layout:"Svg-module__vertical_layout--gtw6m",horizont_layout:"Svg-module__horizont_layout--stWQS",vector:"Svg-module__vector--VOWie",vector_active:"Svg-module__vector_active--jKTvN",phone:"Svg-module__phone--gYsB2",phone_link:"Svg-module__phone_link--wHeQ8",logo_link:"Svg-module__logo_link--BvhGB",cross:"Svg-module__cross--fOonQ",heart:"Svg-module__heart--saVNR"}},2635:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={authorization:"Authorization-module__authorization--Zvdjv",authorization__inner:"Authorization-module__authorization__inner--OaSrh"}},2505:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={layout:"Layout-module__layout--nMTjF",header:"Layout-module__header--ZwJRD",logo:"Layout-module__logo--L0dmc",menu:"Layout-module__menu--XZjGD",content:"Layout-module__content--oiRhH"}},3120:(e,t,a)=>{"use strict";a.r(t)},1046:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={about__text:"About-module__about__text--zLzj9"}},5422:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={banks:"Banks-module__banks--DCidp",banks__title:"Banks-module__banks__title--htoDO"}},3184:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={buyout__content:"Buyout-module__buyout__content--Xihao",buyout__form:"Buyout-module__buyout__form--h_bbG",buyout__description:"Buyout-module__buyout__description--lLGBA"}},3570:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={car__main:"Car-module__car__main--bmO80",car__content:"Car-module__car__content--dZjiN",car__content_inner:"Car-module__car__content_inner--zZRel",car__callback:"Car-module__car__callback--Mhrnu",car__callback_price:"Car-module__car__callback_price--mxMkW",car__aside:"Car-module__car__aside--oAx4a",car__aside_buy:"Car-module__car__aside_buy--npxvV",car__modal_buttons:"Car-module__car__modal_buttons--auYd5",car__modal_button_trade:"Car-module__car__modal_button_trade--DASUg",car__modal_button_credit:"Car-module__car__modal_button_credit--sxorp",car__subtitle:"Car-module__car__subtitle--r6w43",price:"Car-module__price--quW_j",in_stock_sign:"Car-module__in_stock_sign--EDCGE"}},9526:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={contacts__content:"Contacts-module__contacts__content--o5_zy",contacts__list:"Contacts-module__contacts__list--UCmGj",contacts__item:"Contacts-module__contacts__item--2tC9D",contacts__item_text:"Contacts-module__contacts__item_text--So9ih",contacts__map:"Contacts-module__contacts__map--diK29"}},5214:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={credit__content:"Credit-module__credit__content--uoH0i",credit__column_form:"Credit-module__credit__column_form--BjUUk",credit__column_about:"Credit-module__credit__column_about--jpToi",credit__banks:"Credit-module__credit__banks--nCcAG",credit__banks_title:"Credit-module__credit__banks_title--Efj2G"}},8514:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={error:"Error-module__error--rekBm",error__title:"Error-module__error__title--dC2Qm",error__link:"Error-module__error__link--FKZLu"}},2518:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={exchange__content:"Exchange-module__exchange__content--pkS8c",exchange__banks:"Exchange-module__exchange__banks--QRfLd",exchange__banks_title:"Exchange-module__exchange__banks_title--lMjXb"}},2085:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={favorites__list:"Favorites-module__favorites__list--cPnB1"}},4734:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={installment:"Installment-module__installment--DQnaJ",installment__title:"Installment-module__installment__title--eixnu",installment__content:"Installment-module__installment__content--EZeAf",installment__form:"Installment-module__installment__form--EkSKf",installment__description:"Installment-module__installment__description--WwTSy",installment__payment:"Installment-module__installment__payment--c86K9",installment__banks_title:"Installment-module__installment__banks_title--Ct4vM"}},2526:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={privacy:"Privacy-module__privacy--sRmA3",privacy__title:"Privacy-module__privacy__title--ElkVO",privacy__list:"Privacy-module__privacy__list--b7dvY",privacy__item:"Privacy-module__privacy__item--jVwPe",privacy__subtitle:"Privacy-module__privacy__subtitle--o01R5",privacy__sublist:"Privacy-module__privacy__sublist--ZlFSq",privacy__sublist_item:"Privacy-module__privacy__sublist_item--ZF1cV",privacy__extra_list:"Privacy-module__privacy__extra_list--cQmpL"}},1358:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});const r={success:"Success-module__success--WP0Vm",success__subtitle:"Success-module__success__subtitle--FCU5Y",success__description:"Success-module__success__description--UwPcf"}},7358:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BanksList=void 0;var n=r(a(6540)),l=r(a(6363)),o=a(3551),i=a(7540),u=a(5110),c=a(2648),s=a(4955),d=a(2966),f=a(6081),m=a(3729);t.BanksList=function(){var e=(0,m.useDispatch)(),t=(0,m.useSelector)(o.banksListSelector).banksList,a=(0,m.useSelector)(o.banksListSelector).stateLoad.isLoad,r=(0,m.useSelector)(o.banksListSelector).stateLoad.error;return r?n.default.createElement(i.ErrorLoading,null):a?n.default.createElement(d.Loader,null):n.default.createElement("ul",{className:l.default.banks_list},t.map((function(t){var a=t.name,r=t.id;return n.default.createElement("li",{className:l.default.banks_list__item,key:r},(0,u.getBankImage)(a)?n.default.createElement("img",{className:l.default.banks_list__img,src:(0,u.getBankImage)(a),alt:a}):n.default.createElement("div",null,a),n.default.createElement("div",{className:l.default.banks_list__helper},n.default.createElement("p",null,"Отправить заявку"),n.default.createElement("p",null,"в ",a)),n.default.createElement(c.Link,{className:l.default.banks_list__link,to:"/credit/".concat((0,s.convertToUrl)(a)),onClick:function(){return t=r,e((0,f.setTargetBankId)(t));var t}}))})))}},348:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Benefits=void 0;var n=r(a(6540)),l=r(a(7400)),o=a(3729),i=a(919);t.Benefits=function(e){var t=e.benefits,a=(0,o.useDispatch)();return n.default.createElement("ul",{className:l.default.benefits},t.map((function(e){return n.default.createElement("li",{className:l.default.benefits__item,onClick:function(){return t={title:e.title,description:e.description},a((0,i.openModal)("promotion")),void a((0,i.setPromotionData)(t));var t},key:e.title},e.title)})))}},9988:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BreadCrumpPage=void 0;var n=r(a(6540)),l=r(a(3996));t.BreadCrumpPage=function(e){var t=e.links;return n.default.createElement("div",{className:l.default.breadCrump},t.slice(0,t.length-1).map((function(e){return n.default.createElement("a",{className:l.default.breadCrump__item,href:e.url},e.name)})),n.default.createElement("a",{className:"".concat(l.default.breadCrump__item," ").concat(l.default.breadCrump__item_active),href:t[t.length-1].url,onClick:function(e){e.preventDefault(),e.stopPropagation()}},t[t.length-1].name))}},6056:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BurgerMenu=void 0;var n=r(a(6540)),l=r(a(2416)),o=a(2648),i=a(3551),u=a(3729),c=a(919),s=r(a(1306)),d=a(3218);t.BurgerMenu=function(){var e=(0,u.useDispatch)(),t=function(){e((0,c.closeModal)("burgerMenu"))},a=(0,u.useSelector)(i.modalSelector).burgerMenu.menuNavigation,r=(0,u.useSelector)(i.modalSelector).burgerMenu.modalState,f=(0,d.useTheme)(),m=f.theme,_=f.toggleTheme;return n.default.createElement("nav",{className:"".concat(l.default.burger_menu," ").concat(r?l.default.burger_menu_active:"")},n.default.createElement("ul",{className:l.default.burger_menu__list},a.map((function(e){var a=e.name,r=e.link;return n.default.createElement("li",{className:l.default.burger_menu__item,key:a,onClick:t},n.default.createElement(o.Link,{className:l.default.burger_menu__link,to:r},a))})),n.default.createElement("li",{className:"".concat(l.default.burger_menu__item," ").concat(l.default[m]),style:{display:"flex",alignItems:"center"}},n.default.createElement("span",{style:{padding:"16px"}}," ","Сменить тему:"),n.default.createElement("img",{onClick:_,id:"theme-icon",className:l.default.theme_toggle,src:s.default,alt:"Theme Icon",style:{width:"32px",height:"32px",margin:"6px",marginLeft:"6px"}}))))}},5445:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonBoxCallCar=void 0;var n=r(a(6540)),l=a(3729),o=a(3551),i=a(919),u=a(8549),c=r(a(8094));t.ButtonBoxCallCar=function(e){var t=e.extraStyles,a=(0,l.useDispatch)(),r=(0,l.useSelector)(o.contactsSelector).contacts;return n.default.createElement("div",{className:c.default.call_box,style:t},n.default.createElement("a",{className:c.default.call_box__link,href:"tel: +".concat(r.phone)},(0,u.transformPhoneNumber)(r.phone)),n.default.createElement("button",{className:c.default.call_box__button,type:"button",onClick:function(){return a((0,i.openModal)("callback"))}},"Перезвонить"))}},5049:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonCardOpenModal=void 0;var n=r(a(6540)),l=r(a(5086));t.ButtonCardOpenModal=function(e){var t=e.handler,a=e.className,r=e.extraClassName,o=e.textContent;return n.default.createElement("button",{className:"".concat(a||l.default.button_card_open_modal," ").concat(r),type:"button",onClick:t},o)}},9876:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonFavorite=void 0;var n=r(a(6540)),l=r(a(6428)),o=a(334),i=a(3305);t.ButtonFavorite=function(e){var t=e.car,a=(0,i.useFavorite)(t),r=a.isFavorite,u=a.removeFavorites,c=a.addFavorites;return n.default.createElement("button",{className:l.default.button_favorite,type:"button",onClick:function(){r?u():c()}},n.default.createElement(o.Heart,{customClass:"".concat(r?l.default.heart_active:"")}))}},7790:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CarCardSlider=void 0;var n=r(a(6540)),l=r(a(1174)),o=a(1094),i=a(3325),u=a(3326),c=a(197);a(7823);t.CarCardSlider=function(e){var t=e.images,a=(0,u.useCarSlider)(),r=a.swiperCardRef,s=a.swiperHorizontalRef,d=a.activeIndex,f=a.slidesPerView,m=a.handleNext,_=a.handlePrev,p=a.handleSlideChange,h=a.handleThumbnailClick;return n.default.useEffect((function(){return c.Fancybox.bind("[data-fancybox]"),function(){c.Fancybox.destroy()}}),[]),n.default.createElement("div",{className:l.default.slider_wrapper},n.default.createElement("div",{className:l.default.slider_main_container},n.default.createElement("div",{"data-fancybox":"gallery"},n.default.createElement(i.Swiper,{effect:"cards",grabCursor:!0,loop:!0,modules:[o.EffectCards],className:l.default.slider_card,ref:r,onSlideChange:p},t.map((function(e){return n.default.createElement(i.SwiperSlide,{className:l.default.slider_card__item,key:e.id,"data-fancybox":"gallery","data-src":e.url},n.default.createElement("img",{src:e.url,alt:"car"}))})))),n.default.createElement("div",{className:l.default.box_vector},n.default.createElement("button",{className:l.default.box_vector__vector,onClick:_},"<"),n.default.createElement("button",{className:l.default.box_vector__vector,onClick:m},">"))),n.default.createElement(i.Swiper,{className:l.default.slider_horizontal,spaceBetween:16,slidesPerView:f,ref:s},t.map((function(e,t){return n.default.createElement(i.SwiperSlide,{className:l.default.slider_horizontal__item,key:t,onClick:function(e){return h(t,e)}},n.default.createElement("img",{className:l.default.slider_horizontal__item_img,src:e.url,alt:"car",style:{opacity:d===t?1:.5}}))}))))}},752:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CarEquipment=void 0;var n=r(a(6540)),l=r(a(9e3)),o=a(3729),i=a(919);t.CarEquipment=function(e){var t=e.car,a=(0,o.useDispatch)();return n.default.createElement("div",{className:l.default.equipment},n.default.createElement("ul",{className:l.default.equipment__list},n.default.createElement("li",{className:l.default.equipment__item},n.default.createElement("span",{className:l.default.equipment__title_equipment},"Комплектация"),n.default.createElement("span",null,t.complectation_name)),n.default.createElement("li",{className:l.default.equipment__item},n.default.createElement("span",{className:l.default.equipment__title_review},"Обзор"),t.extras.slice(0,1).map((function(e){return e.names.slice(0,3).map((function(e){return n.default.createElement("span",{key:e},e)}))})))),n.default.createElement("button",{className:l.default.equipment__button,type:"button",onClick:function(){a((0,i.openModal)("equipment"))}},"Показать больше"))}},7230:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CarPrice=void 0;var n=r(a(6540)),l=r(a(5810)),o=a(4714),i=a(4677);t.CarPrice=function(e){var t=e.price;return n.default.createElement(n.default.Fragment,null,n.default.createElement("span",{className:l.default.car_price__full},(0,o.formatPrice)(t)," ₽")," ",n.default.createElement("br",null),n.default.createElement("span",{className:l.default.car_price__month},(0,o.formatPrice)((0,i.getPayment)(t,0,96,0)),"₽/мес. без взноса"))}},1484:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CarSelection=void 0;var n=r(a(6540)),l=r(a(3112)),o=a(9088),i=a(334),u=a(9064),c=a(3357),s=a(3551),d=a(880),f=a(3729),m=d.DEFAULT_FILTER_VALUES;t.CarSelection=function(){var e=(0,f.useSelector)(s.mediaQuerySelector).isSmall,t=(0,c.useCarSelection)(),a=t.carCount,r=t.filterList,d=t.openFilter,_=t.isSortOpen,p=t.handlers,h=p.handleToggleFilter,v=p.handleToggleSort,b=p.handleFindCars,y=p.handleResetFilters,g=p.handleViewModeChange;return n.default.createElement("div",{className:l.default.select},n.default.createElement("h2",{className:l.default.select__title},"Подбор автомобиля"),n.default.createElement("form",{className:l.default.filter},r.map((function(e){return n.default.createElement(u.CarSelectionFilter,{key:e.key,dropValue:e.values,hasVector:!0,title:m[e.key],filterKey:e.key,isOpen:d===e.key,onToggle:h})})),n.default.createElement("button",{className:l.default.find_btn,type:"button",onClick:b},a?"Показать (".concat(a,")"):"Не найдено"),n.default.createElement("button",{className:l.default.reset_btn,type:"button",onClick:y},"Сбросить фильтр")),n.default.createElement("div",{className:l.default.catalog_filter},n.default.createElement(o.SortFilter,{isOpen:_,onToggle:v}),e?null:n.default.createElement("div",null,n.default.createElement(i.VerticalLayoutVector,{handler:function(){return g("vertical")}}),n.default.createElement(i.HorizontLayoutVector,{handler:function(){return g("horizontal")}}))))}},9064:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CarSelectionFilter=void 0;var n=r(a(6540)),l=r(a(660)),o=a(334),i=a(8487);t.CarSelectionFilter=function(e){var t=e.className,a=e.dropValue,r=e.hasVector,u=void 0===r||r,c=e.title,s=e.isOpen,d=e.onToggle,f=e.filterKey,m=(0,i.useCarSelectionFilter)({filterKey:f,title:c,isOpen:s,onToggle:d}),_=m.filterRef,p=m.getCurrentValue,h=m.handleClick,v=m.handleSelectItem;return n.default.createElement("div",{className:"".concat(l.default.select_filter," ").concat(t||""),ref:_},n.default.createElement("div",{className:l.default.select_filter__header,onClick:h},n.default.createElement("span",null,p()),u&&n.default.createElement(o.Vector,{className:"".concat(l.default.vector," ").concat(s?l.default.vector_open:""),isOpen:s})),s&&n.default.createElement("ul",{className:l.default.select_filter__list},a.map((function(e,t){return n.default.createElement("li",{key:t,className:l.default.select_filter__item,onClick:function(){return v(e)}},e)}))))}},4150:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return n(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CardAuto=void 0;var i=l(a(6540)),u=o(a(7478)),c=a(9876),s=a(4714),d=a(7506),f=a(4677),m=a(5049),_=a(3292),p=a(3688),h=a(3325),v=a(1094);a(6218);t.CardAuto=function(e){var t,a,r,n=(0,i.useState)(!1),l=n[0],o=n[1];(0,i.useEffect)((function(){var e=function(){o(window.innerWidth<768)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]);var b=e.year,y=e.model,g=e.brand,E=e.price,k=e.engine_name_type,C=e.engine_power_type,S=e.engine_capacity_type,w=e.inModalSelect,x=e.history_cars,M=e.gearbox_type,N=e.drive_type,O=e.body_type,P=e.images,F=e.extraClassName,L=e.inModalCredit,T=e.online_view_available,I=(0,_.useCardAuto)({car:e,inModalSelect:w}),j=I.currentImageIndex,D=I.isSelected,B=I.handlers,A=B.handleCardClick,V=B.handleCreditButtonClick,q=B.handleImageClick,R=B.handleMouseMove;return i.default.createElement("article",{className:"".concat(u.default.card_auto," ").concat(F||""),onClick:A},i.default.createElement("section",{className:u.default.card_auto__body},i.default.createElement("header",{className:u.default.card_auto__header},i.default.createElement(d.InStockSign,{state:T}),!L&&i.default.createElement(c.ButtonFavorite,{car:e})),i.default.createElement("div",{className:u.default.card_auto__picture_container,onClick:q},l?i.default.createElement(h.Swiper,{effect:"cards",grabCursor:!0,loop:!0,modules:[v.EffectCards],className:u.default.slider_card},P.slice(0,8).map((function(e,t){return i.default.createElement(h.SwiperSlide,{key:t,className:u.default.card_auto__slider_item},i.default.createElement("img",{className:"".concat(u.default.card_auto__slider_item," ").concat(j===t?u.default.card_auto__slider_item_active:""),src:e.url,alt:"".concat(g.name," ").concat(b)}))}))):i.default.createElement("div",{className:u.default.card_auto__picture_container},i.default.createElement("img",{className:u.default.card_auto__picture,src:(null===(t=P[j])||void 0===t?void 0:t.url)?P[j].url:"",alt:"".concat(g.name," ").concat(b)}),i.default.createElement("div",{className:u.default.card_auto__slider},Array.from({length:P.length>8?8:P.length},(function(e,t){return i.default.createElement("div",{key:t,className:"".concat(u.default.card_auto__slider_item," ").concat(j===t?u.default.card_auto__slider_item_active:""),onMouseMove:function(){return R(t)}})}))))),i.default.createElement("h3",{className:u.default.card_auto__name},g.name," ",y.name," ",i.default.createElement("span",null,b)),i.default.createElement("p",{className:u.default.card_auto__tags},i.default.createElement("span",null,S.capacity,"л.")," ",i.default.createElement("span",null,null===(a=x[0])||void 0===a?void 0:a.last_mileage,"км.")," ",i.default.createElement("span",null,C.power,"л.с.")," ",i.default.createElement("span",null,M.abbreviation)," ",i.default.createElement("span",null,k.name)," ",i.default.createElement("span",null,(0,p.getCountOwner)(null===(r=x[0])||void 0===r?void 0:r.previous_owners))," ",i.default.createElement("span",null,N.name)," ",i.default.createElement("span",null,O.name,"л.")," ")),i.default.createElement("section",{className:u.default.card_auto__footer},i.default.createElement("div",{className:u.default.card_auto__price_box},i.default.createElement("span",{className:u.default.card_auto__price},(0,s.formatPrice)(E)," ₽"),i.default.createElement("span",{className:u.default.card_auto__price_no_fee},(0,s.formatPrice)((0,f.getPayment)(E,0,96,0)),"₽/мес. без взноса")),!L&&!w&&i.default.createElement(m.ButtonCardOpenModal,{textContent:"Купить в кредит",handler:V}),w&&i.default.createElement("button",{className:u.default.card_auto__buy,type:"button",onClick:A},D?"Выбрана":"Выбрать")))}},5074:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CardAutoHorizontal=void 0;var n=r(a(6540)),l=r(a(1654)),o=a(3325),i=a(4714),u=a(7506),c=a(4677),s=a(3688),d=a(3551),f=a(3729);t.CardAutoHorizontal=function(e){var t,a,r=e.year,m=e.brand,_=e.price,p=e.engine_name_type,h=e.engine_power_type,v=e.engine_capacity_type,b=e.history_cars,y=e.gearbox_type,g=e.drive_type,E=e.body_type,k=e.images,C=e.model,S=(0,f.useSelector)(d.contactsSelector).contacts,w=n.default.useRef(null);return n.default.createElement("article",{className:l.default.card_auto_horizontal},n.default.createElement("section",{className:l.default.card_auto_horizontal__slider},n.default.createElement(u.InStockSign,{extraClassName:l.default.card_auto_horizontal__in_stock,state:e.online_view_available}),n.default.createElement(o.Swiper,{ref:w,slidesPerView:4,spaceBetween:16,className:l.default.card_auto_horizontal__swiper},k.map((function(e){return n.default.createElement(o.SwiperSlide,{className:l.default.card_auto_horizontal__slider_item,key:e.id},n.default.createElement("img",{className:l.default.card_auto_horizontal__img,src:e.url,alt:"car"}))})),n.default.createElement(o.SwiperSlide,{className:"".concat(l.default.card_auto_horizontal__slider_item," ").concat(l.default.card_auto_horizontal__callback_slide)},n.default.createElement("a",{className:l.default.card_auto_horizontal__callback,href:"tel:+".concat(S.phone)},"Позвонить в центр")),n.default.createElement("div",{className:l.default.card_auto_horizontal__box_vector},n.default.createElement("button",{className:l.default.card_auto_horizontal__vector,onClick:function(){var e;null===(e=w.current)||void 0===e||e.swiper.slidePrev()}},"<"),n.default.createElement("button",{className:l.default.card_auto_horizontal__vector,onClick:function(){var e;null===(e=w.current)||void 0===e||e.swiper.slideNext()}},">")))),n.default.createElement("section",{className:l.default.card_auto_horizontal__info},n.default.createElement("div",{className:l.default.card_auto_horizontal__info_main},n.default.createElement("h3",{className:l.default.card_auto_horizontal__name},m.name," ",C.name," ",n.default.createElement("span",null,r)),n.default.createElement("div",{className:l.default.card_auto_horizontal__price},n.default.createElement("span",{className:l.default.card_auto_horizontal__price_car},(0,i.formatPrice)(_)," ₽"),n.default.createElement("span",{className:l.default.card_auto_horizontal__price_month},(0,i.formatPrice)((0,c.getPayment)(_,0,96,0)),"₽/мес. без взноса"))),n.default.createElement("p",{className:l.default.card_auto_horizontal__tags},n.default.createElement("span",null,v.capacity,"л."),n.default.createElement("span",null,null===(t=b[0])||void 0===t?void 0:t.last_mileage,"км."),n.default.createElement("span",null,h.power,"л.с."),n.default.createElement("span",null,y.abbreviation),n.default.createElement("span",null,p.name),n.default.createElement("span",null,(0,s.getCountOwner)(null===(a=b[0])||void 0===a?void 0:a.previous_owners)),n.default.createElement("span",null,g.name),n.default.createElement("span",null,E.name))))}},5190:function(e,t,a){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,a=1,r=arguments.length;a1&&l.default.createElement("div",{onClick:_},l.default.createElement(u.Pagination,{currentPage:m.currentPage,totalPages:m.totalPages})))}},4590:function(e,t,a){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,a=1,r=arguments.length;a,.?/]/.test(e)||"Специальные символы не допускаются"}}}),id:"trade_in_your_auto",placeholder:"Ваш автомобиль",isError:Boolean(p.customer_car)}),n.default.createElement(c.FormField,{register:_("name",{required:!0,minLength:{value:2,message:"Минимальная длина - 2 символа."},pattern:{value:/^[a-zA-Zа-яА-ЯёЁ\s-]+$/,message:"Используйте только буквы, пробел или дефис"}}),id:"trade_in_your_name",placeholder:"ФИО",isError:Boolean(p.name)}),n.default.createElement(s.FormFieldPhone,{register:_,id:"trade_in_credit_phone",isError:Boolean(p.phone)}),n.default.createElement(i.CheckboxAgree,{register:_("agree",{required:!0}),id:"trade_in_agree",isError:Boolean(p.agree)}),n.default.createElement(d.FormSendButton,{textContent:"Оставить заявку"}))}},3662:function(e,t,a){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,a=1,r=arguments.length;a0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0&&l(e)}),[t]),u.default.createElement("section",null,u.default.createElement(c.Swiper,{modules:[d.Autoplay,d.Pagination,d.Navigation],slidesPerView:1,autoplay:{delay:5e3,disableOnInteraction:!1},pagination:{clickable:!0,type:"progressbar"},rewind:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},loop:!0},n?n.map((function(e){return u.default.createElement(u.default.Fragment,null,u.default.createElement(c.SwiperSlide,null,u.default.createElement(s.HeaderSliderElement,{title:e.main_text,descriptionStroke:[e.second_text],linkPath:"/",imgPath:e.image})))})):u.default.createElement(c.SwiperSlide,null,u.default.createElement("div",null,"Загрузка баннеров...")," "),u.default.createElement("div",{className:"swiper-button-next"}),u.default.createElement("div",{className:"swiper-button-prev"})))}},2218:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HeaderSliderElement=void 0;var n=r(a(6540)),l=r(a(3354)),o=a(2648);t.HeaderSliderElement=function(e){var t=e.imgPath,a=e.title,r=e.descriptionStroke,i=e.linkPath;return n.default.createElement("div",{className:l.default.slide},n.default.createElement("div",{className:l.default.slide__insert},n.default.createElement("h2",{className:l.default.slide__title},a),n.default.createElement("p",{className:l.default.slide__description},r.map((function(e,t,a){return n.default.createElement(n.default.Fragment,{key:t},e," ",t!==a.length-1?n.default.createElement("br",null):"")}))),n.default.createElement(o.Link,{className:l.default.slide__link,to:i})),n.default.createElement("picture",{className:l.default.slide__picture},n.default.createElement("img",{className:l.default.slide__img,src:t,alt:"car slider image"})))}},150:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InStock=void 0;var n=r(a(6540)),l=r(a(5030)),o=a(646);t.InStock=function(){return n.default.createElement("section",{className:l.default.in_stock},n.default.createElement("div",{className:"container"},n.default.createElement("div",{className:l.default.in_stock__inner},n.default.createElement("h2",{className:l.default.in_stock__title},"Автомобили в наличии"),n.default.createElement(o.InStockList,null))))}},646:function(e,t,a){"use strict";var r=this&&this.__spreadArray||function(e,t,a){if(a||2===arguments.length)for(var r,n=0,l=t.length;n0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0;if(!(null==g?void 0:g.history_cars)||0===g.history_cars.length)return o.default.createElement("div",null,"Нет данных о истории автомобиля");var D=(null===(e=g.history_cars[0])||void 0===e?void 0:e.vin)||null,B=(0,m.vinTransform)(D);return o.default.createElement("div",{className:"".concat(u.default.modal_report," ").concat(S?u.default.modal_report_active:""),onClick:N},o.default.createElement("div",{className:u.default.modal_report__inner,onClick:function(e){return e.stopPropagation()}},o.default.createElement("header",{className:u.default.modal_report__header},o.default.createElement("h3",{className:u.default.modal_report__title},"Отчёт по VIN"),o.default.createElement("h4",null,(0,h.getVinDate)()),o.default.createElement(f.Cross,{className:u.default.modal_report__cross,handler:N})),o.default.createElement("div",{className:u.default.vin},o.default.createElement("img",{className:u.default.vin__img,src:i.default,alt:"vin"}),o.default.createElement("div",{className:u.default.vin__download},o.default.createElement("a",{className:u.default.vin__link,href:"#",onClick:function(e){return r(void 0,void 0,void 0,(function(){var t,a,r,l,o;return n(this,(function(n){switch(n.label){case 0:if(e.preventDefault(),!(null==g?void 0:g.id))return[2];n.label=1;case 1:return n.trys.push([1,4,5,6]),M(!0),[4,fetch("".concat("https://youautoplus.ru","/reports/").concat(g.id),{method:"GET"})];case 2:if(!(t=n.sent()).ok)throw new Error("Download failed");return[4,t.blob()];case 3:return a=n.sent(),r=window.URL.createObjectURL(a),(l=document.createElement("a")).href=r,l.download="report-".concat(g.id,".pdf"),document.body.appendChild(l),l.click(),document.body.removeChild(l),window.URL.revokeObjectURL(r),[3,6];case 4:return o=n.sent(),console.error("Error downloading PDF:",o),[3,6];case 5:return setTimeout((function(){M(!1)}),200),[7];case 6:return[2]}}))}))},style:{pointerEvents:x?"none":"auto"}},x?o.default.createElement(b.Loader,{extraClass:u.default.vin__loader}):o.default.createElement(o.default.Fragment,null,o.default.createElement(v.DownloadOutlined,{className:u.default.modal_report__download_icon}),o.default.createElement("span",null,"Скачать отчёт"))))),j?o.default.createElement("ul",{className:u.default.modal_report__content},o.default.createElement("li",{className:u.default.modal_report__content_item},o.default.createElement("span",null,"Технические характеристики:"),o.default.createElement("ul",{className:u.default.modal_report__characters},o.default.createElement("li",{className:u.default.modal_report__characters_item},"VIN: ",o.default.createElement("span",null,B||"Нет данных")),o.default.createElement("li",{className:u.default.modal_report__characters_item},"№ кузова: ",o.default.createElement("span",null,B||"Нет данных")),o.default.createElement("li",{className:u.default.modal_report__characters_item},"Тип ТС: ",o.default.createElement("span",null,(null==P?void 0:P.name)||"Нет данных")),o.default.createElement("li",{className:u.default.modal_report__characters_item},"Объём двигателя: ",o.default.createElement("span",null,(null==L?void 0:L.capacity)||"Нет данных","л.")),o.default.createElement("li",{className:u.default.modal_report__characters_item},"Последний пробег:"," ",o.default.createElement("span",null,(null===(t=O[0])||void 0===t?void 0:t.last_mileage)?(0,p.formatPrice)(O[0].last_mileage):"Нет данных")," ","км"),o.default.createElement("li",{className:u.default.modal_report__characters_item},"Госномер: ",o.default.createElement("span",null,(null===(a=O[0])||void 0===a?void 0:a.registration_number)||"Нет данных")),o.default.createElement("li",{className:u.default.modal_report__characters_item},"Год выпуска: ",o.default.createElement("span",null,T||"Нет данных")),o.default.createElement("li",{className:u.default.modal_report__characters_item},"Цвет: ",o.default.createElement("span",null,(null==I?void 0:I.name)||"Нет данных")),o.default.createElement("li",{className:u.default.modal_report__characters_item},"Мощность: ",o.default.createElement("span",null,(null==F?void 0:F.power)||"Нет данных","л.с.")))),(0,_.splitArrIntoPairs)(Object.entries(O[0]).slice(5)).map((function(e,t){return o.default.createElement("li",{className:u.default.modal_report__content_item,key:t},e.map((function(e){return o.default.createElement("span",{key:e[0]},e[1])})))}))):o.default.createElement("div",{className:u.default.modal_report__no_history},o.default.createElement("p",null,"История автомобиля отсутствует"),o.default.createElement("p",null,"К сожалению, для данного автомобиля нет доступной информации об истории"))))}},9846:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalSelectCar=void 0;var n=r(a(6540)),l=r(a(6094)),o=a(919),i=a(334),u=a(7348),c=a(277),s=a(2391),d=a(1420),f=a(3551),m=a(919),_=a(3729);t.ModalSelectCar=function(){var e=(0,_.useDispatch)(),t=(0,_.useSelector)(f.modalSelector).selectCar.filter,a=(0,_.useSelector)(f.modalSelector).selectCar.modalState,r=(0,_.useSelector)(f.modalSelector).selectCar.filter.stage,p=function(e){return e?"".concat(l.default.modal_select__label," ").concat(t[e].status?"":l.default.modal_select__label_disabled):l.default.modal_select__label},h=function(){return e((0,o.closeModal)("selectCar"))},v=function(t){e((0,m.setStageFilter)(t))};return n.default.createElement("div",{className:"".concat(l.default.modal_select," ").concat(a?l.default.modal_select_active:""),onClick:h},n.default.createElement("div",{className:l.default.modal_select__inner,onClick:function(e){return e.stopPropagation()}},n.default.createElement("header",{className:l.default.modal_select__header},n.default.createElement("h3",{className:l.default.modal_select__title},"Выберите автомобиль"),n.default.createElement(i.Cross,{className:l.default.modal_select__cross,handler:h})),n.default.createElement("div",{className:l.default.modal_select__panel},n.default.createElement("label",{className:p(null),htmlFor:"select-marka",onClick:function(){return v(1)}},n.default.createElement("span",{className:l.default.modal_select__label_text},"".concat(t.brand.selected)||"1. Марка"),n.default.createElement("input",{id:"select-marka",type:"radio",name:"select",checked:1===r,readOnly:!0})),n.default.createElement("label",{className:p("model"),htmlFor:"select-model",onClick:function(){return v(2)}},n.default.createElement("span",{className:l.default.modal_select__label_text},"".concat(t.model.selected)||"2. Модель"),n.default.createElement("input",{id:"select-model",type:"radio",name:"select",checked:2===r,readOnly:!0})),n.default.createElement("label",{className:p("generation"),htmlFor:"select-generation",onClick:function(){return v(3)}},n.default.createElement("span",{className:l.default.modal_select__label_text},"".concat(t.generation.selected)||"3. Поколение"),n.default.createElement("input",{id:"select-generation",type:"radio",name:"select",checked:3===r,readOnly:!0})),n.default.createElement("label",{className:p("car"),htmlFor:"select-car",onClick:function(){return v(4)}},n.default.createElement("span",{className:l.default.modal_select__label_text},"4. Автомобиль"),n.default.createElement("input",{id:"select-car",type:"radio",name:"select",checked:4===r,readOnly:!0}))),1===r?n.default.createElement(u.ModalSelectCarBrandList,null):2===r?n.default.createElement(d.ModalSelectCarModelList,null):3===r?n.default.createElement(c.ModalSelectCarGenerationList,null):n.default.createElement(s.ModalSelectCarList,null)))}},7348:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return n(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalSelectCarBrandList=void 0;var i=l(a(6540)),u=o(a(6497)),c=a(3551),s=a(919),d=a(9389),f=a(3729);t.ModalSelectCarBrandList=function(){var e=(0,f.useDispatch)(),t=(0,f.useSelector)(c.inStockListSelector).inStockList,a=(0,f.useSelector)(c.inStockListSelector).stateLoad.isLoad;(0,i.useEffect)((function(){t.length||e((0,d.inStockListLoader)())}),[e,t.length]);return a?i.default.createElement("div",null,"Загрузка..."):i.default.createElement("ul",{className:u.default.modal_select__list},t.map((function(a){var r=a;return i.default.createElement("li",{className:u.default.modal_select__item,key:a.brand,onClick:function(){return r={nextValue:a.models,status:!0,selected:a.brand,thisValue:t},void e((0,s.setFilterBrand)(r));var r}},r.brand," ",i.default.createElement("span",null,r.total))})))}},277:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalSelectCarGenerationList=void 0;var n=r(a(6540)),l=r(a(6497)),o=a(3551),i=a(919),u=a(3729),c=a(1766);t.ModalSelectCarGenerationList=function(){var e=(0,u.useDispatch)(),t=(0,u.useSelector)(o.modalSelector).selectCar.filter.brand.selected,a=(0,u.useSelector)(o.modalSelector).selectCar.filter.model.selected,r=(0,u.useSelector)(o.modalSelector).selectCar.filter.generation.thisValue;return n.default.createElement("ul",{className:l.default.modal_select__list},r.map((function(o){var u=o;return n.default.createElement("li",{className:l.default.modal_select__item,key:u.name,onClick:function(){var n;n={thisValue:r,nextValue:[],status:!0,selected:u.name},e((0,i.setFilterGeneration)(n)),e((0,i.selectCarsLoader)((0,c.createUrl)(t,a,u.name)))}},u.name," ",n.default.createElement("span",null,u.count))})))}},2391:function(e,t,a){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,a=1,r=arguments.length;a0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]1&&c.default.createElement(d.MinusCircleOutlined,{className:"dynamic-delete-button",onClick:function(){return l(t.name)},style:{margin:"0 8px"}}))})),c.default.createElement(s.Form.Item,null,c.default.createElement(s.Button,{type:"dashed",onClick:function(){return n()},icon:c.default.createElement(d.PlusOutlined,null),style:{width:"100%"}},"Добавить изображение"),c.default.createElement(s.Form.ErrorList,{errors:o})))}))),c.default.createElement(s.Card,{style:{marginTop:"20px"}},c.default.createElement(_,{level:2},"Категории и дополнительные характеристики"),c.default.createElement(s.Form.List,{name:"categoryExtras",initialValue:[{}]},(function(e,t){var a=t.add,n=t.remove;return c.default.createElement(c.default.Fragment,null,e.map((function(t){var a=t.key,l=t.name,i=o(t,["key","name"]);return c.default.createElement(s.Space,{key:a,style:{display:"flex",marginBottom:8,alignItems:"flex-start"},align:"baseline"},c.default.createElement(s.Form.Item,r({},i,{name:[l,"category_id"],rules:[{required:!0,message:"Выберите категорию"}]}),c.default.createElement(s.Select,{style:{width:"200px"},placeholder:"Выберите категорию",showSearch:!0,optionFilterProp:"children"},S.map((function(e){return c.default.createElement(s.Select.Option,{key:e.id,value:e.id},e.name)})))),c.default.createElement(s.Form.Item,r({},i,{name:[l,"extra_ids"],rules:[{required:!0,message:"Выберите характеристики"}]}),c.default.createElement(s.Select,{style:{width:"400px"},placeholder:"Выберите характеристики",showSearch:!0,optionFilterProp:"children"},C.sort((function(e,t){return e.name.localeCompare(t.name)})).map((function(e){return c.default.createElement(s.Select.Option,{key:e.id,value:e.id},e.name)})))),e.length>1&&c.default.createElement(d.MinusCircleOutlined,{onClick:function(){return n(l)},style:{marginLeft:"8px",color:"#999",fontSize:"20px",cursor:"pointer"}}))})),c.default.createElement(s.Form.Item,null,c.default.createElement(s.Button,{type:"dashed",onClick:function(){return a()},block:!0,icon:c.default.createElement(d.PlusOutlined,null)},"Добавить категорию с характеристиками")))}))),c.default.createElement(s.Form.Item,{style:{marginTop:"20px"}},c.default.createElement(s.Button,{type:"primary",htmlType:"submit",size:"large"},"Добавить автомобиль"))))}},1259:function(e,t,a){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,a=1,r=arguments.length;a0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0&&(O(a[0])?t.push({title:"Объем",dataIndex:"capacity",key:"capacity",sorter:function(e,t){return O(e)&&O(t)?e.capacity-t.capacity:0}}):P(a[0])?t.push({title:"Мощность",dataIndex:"power",key:"power",sorter:function(e,t){return P(e)&&P(t)?e.power-t.power:0}}):(t.push({title:"Название",dataIndex:"name",key:"name",sorter:function(e,t){var a="name"in e?e.name:"",r="name"in t?t.name:"";return a.localeCompare(r)}}),"gearbox_types"===o&&t.push({title:"Аббревиатура",dataIndex:"abbreviation",key:"abbreviation"}),F&&m&&t.push({title:"Бренд",key:"brand",render:function(e,t){if(function(e){return"brand_id"in e}(t)){var a=m.find((function(e){return e.id===t.brand_id}));return(null==a?void 0:a.name)||"Неизвестно"}return"Неизвестно"}}),L&&_&&t.push({title:"Модель",key:"model",render:function(e,t){if(function(e){return"model_id"in e}(t)){var a=_.find((function(e){return e.id===t.model_id}));return(null==a?void 0:a.name)||"Неизвестно"}return"Неизвестно"}}))),t.push({title:"Действия",key:"actions",width:120,render:function(e,t){return i.default.createElement(u.Space,null,i.default.createElement(u.Button,{icon:i.default.createElement(c.EditOutlined,null),onClick:function(){return function(e){w(e),O(e)?h.setFieldsValue({capacity:e.capacity}):P(e)?h.setFieldsValue({power:e.power}):"abbreviation"in e?h.setFieldsValue({name:e.name,abbreviation:e.abbreviation}):h.setFieldsValue({name:e.name}),k(!0)}(t)}}),i.default.createElement(u.Button,{icon:i.default.createElement(c.DeleteOutlined,null),danger:!0,onClick:function(){return e=t.id,n(void 0,void 0,void 0,(function(){return l(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,fetch("".concat("https://youautoplus.ru","/").concat(o,"/").concat(e),{method:"DELETE",headers:{"Content-Type":"application/json"}})];case 1:return t.sent().ok?(b("Успешно удалено"),f()):y("Ошибка при удалении"),[3,3];case 2:return t.sent(),y("Ошибка при удалении"),[3,3];case 3:return[2]}}))}));var e}}))}}),t),rowKey:"id",pagination:{pageSize:10}}),i.default.createElement(u.Modal,{title:"".concat(S?"Редактировать":"Добавить"," ").concat(d.toLowerCase()),open:E,onCancel:function(){return k(!1)},footer:null},i.default.createElement(u.Form,{form:h,onFinish:function(e){return n(void 0,void 0,void 0,(function(){var t,a,n,i;return l(this,(function(l){switch(l.label){case 0:N(!0),l.label=1;case 1:return l.trys.push([1,3,4,5]),t=S?"PATCH":"POST",a=S?"".concat("https://youautoplus.ru","/").concat(o,"/").concat(S.id):"".concat("https://youautoplus.ru","/").concat(o),"gearbox_types"!==o||e.name&&e.abbreviation?((i={})[p]=r(r({},e),"gearbox_types"===o&&{name:e.name,abbreviation:e.abbreviation}),n=i,[4,fetch(a,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})]):(y("Необходимо заполнить название и аббревиатуру"),[2]);case 2:return l.sent().ok?(b("".concat(d," успешно ").concat(S?"обновлен":"добавлен")),k(!1),f()):y("Ошибка при ".concat(S?"обновлении":"добавлении")),[3,5];case 3:return l.sent(),y("Ошибка при ".concat(S?"обновлении":"добавлении")),[3,5];case 4:return N(!1),[7];case 5:return[2]}}))}))},layout:"vertical"},function(){if(!S&&"gearbox_types"===o)return i.default.createElement(i.default.Fragment,null,i.default.createElement(u.Form.Item,{name:"name",label:"Название",rules:[{required:!0,message:"Введите название"}]},i.default.createElement(u.Input,{placeholder:"Например: Автоматическая"})),i.default.createElement(u.Form.Item,{name:"abbreviation",label:"Аббревиатура",rules:[{required:!0,message:"Введите аббревиатуру"}],tooltip:"Сокращенное название коробки передач"},i.default.createElement(u.Input,{placeholder:"Например: АКПП"})));if(a.length>0){if(O(a[0]))return i.default.createElement(u.Form.Item,{name:"capacity",label:"Объем двигателя",rules:[{required:!0,message:"Введите объем двигателя"}]},i.default.createElement(u.InputNumber,{min:0,step:.1,style:{width:"100%"}}));if(P(a[0]))return i.default.createElement(u.Form.Item,{name:"power",label:"Мощность двигателя",rules:[{required:!0,message:"Введите мощность двигателя"}]},i.default.createElement(u.InputNumber,{min:0,style:{width:"100%"}}))}return i.default.createElement(i.default.Fragment,null,i.default.createElement(u.Form.Item,{name:"name",label:"Название",rules:[{required:!0,message:"Введите название"}]},i.default.createElement(u.Input,null)),"gearbox_types"===o&&i.default.createElement(u.Form.Item,{name:"abbreviation",label:"Аббревиатура",rules:[{required:!0,message:"Введите аббревиатуру"}],tooltip:"Сокращенное название коробки передач"},i.default.createElement(u.Input,{placeholder:"Например: АКПП, МКПП, РКП"})),F&&m&&i.default.createElement(u.Form.Item,{name:"brand_id",label:"Бренд",rules:[{required:!0,message:"Выберите бренд"}]},i.default.createElement(u.Select,{showSearch:!0,optionFilterProp:"children",placeholder:"Выберите бренд"},m.map((function(e){return i.default.createElement(u.Select.Option,{key:e.id,value:e.id},e.name)})))),L&&_&&i.default.createElement(u.Form.Item,{name:"model_id",label:"Модель",rules:[{required:!0,message:"Выберите модель"}]},i.default.createElement(u.Select,{showSearch:!0,optionFilterProp:"children",placeholder:"Выберите модель"},_.map((function(e){return i.default.createElement(u.Select.Option,{key:e.id,value:e.id},e.name)})))))}(),i.default.createElement(u.Form.Item,null,i.default.createElement(u.Space,null,i.default.createElement(u.Button,{type:"primary",htmlType:"submit",loading:M},S?"Сохранить":"Добавить"),i.default.createElement(u.Button,{onClick:function(){return k(!1)}},"Отмена"))))))}},467:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return n(t,e),t},o=this&&this.__awaiter||function(e,t,a,r){return new(a||(a=Promise))((function(n,l){function o(e){try{u(r.next(e))}catch(e){l(e)}}function i(e){try{u(r.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(o,i)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var a,r,n,l,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return l={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function i(i){return function(u){return function(i){if(a)throw new TypeError("Generator is already executing.");for(;l&&(l=0,i[0]&&(o=0)),o;)try{if(a=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0?t.map((function(e){return u.default.createElement(c.Col,{key:e.id,xs:24,sm:12,md:8,lg:6,style:{filter:e.status?"none":"grayscale(1)"}},u.default.createElement(c.Card,{hoverable:!0,cover:u.default.createElement("img",{alt:"banner",src:e.images,style:{height:"200px",objectFit:"cover",filter:e.status?"none":"grayscale(100%) brightness(0.8)"}}),actions:[u.default.createElement(c.Button,{key:"edit",type:"text",onClick:function(){return function(e){b(e),r.setFieldsValue({main_text:e.text.main_text,second_text:e.text.second_text,images:e.images,status:e.status}),p(!0)}(e)}},"Редактировать"),u.default.createElement(c.Button,{key:"delete",type:"text",danger:!0,onClick:function(){return r=e.id,o(void 0,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,fetch("".concat("https://youautoplus.ru","/banners/").concat(r),{method:"DELETE"})];case 1:return e.sent().ok?(l("Баннер успешно удален"),a(t.filter((function(e){return e.id!==r})))):f("Ошибка при удалении баннера"),[3,3];case 2:return e.sent(),f("Ошибка при удалении баннера"),[3,3];case 3:return[2]}}))}));var r}},"Удалить")]},u.default.createElement(c.Card.Meta,{title:Object.values(e.text).join("\n"),description:e.text.secondary_text})))})):u.default.createElement("div",{style:{textAlign:"center",padding:"20px"}},u.default.createElement(c.Typography.Text,{type:"secondary"},"Нет доступных баннеров"))),u.default.createElement(c.Modal,{title:"".concat(v?"Редактировать":"Добавить"," баннер"),visible:_,onCancel:function(){return p(!1)},footer:null},u.default.createElement(c.Form,{form:r,onFinish:function(e){return o(void 0,void 0,void 0,(function(){var t,a,r;return i(this,(function(n){switch(n.label){case 0:E(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),t=v?"PATCH":"POST",a=v?"".concat("https://youautoplus.ru","/banners/").concat(v.id):"".concat("https://youautoplus.ru","/banners"),r={main_text:e.main_text,second_text:e.second_text,image:e.images,status:e.status},[4,fetch(a,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify({banner:r})})];case 2:return n.sent().ok?(l("Баннер успешно ".concat(v?"обновлен":"добавлен")),p(!1),k()):f("Ошибка при ".concat(v?"обновлении":"добавлении"," баннера")),[3,5];case 3:return n.sent(),f("Ошибка при ".concat(v?"обновлении":"добавлении"," баннера")),[3,5];case 4:return E(!1),[7];case 5:return[2]}}))}))},layout:"vertical"},u.default.createElement(c.Form.Item,{name:"main_text",rules:[{required:!0,message:"Введите основной текст"}]},u.default.createElement(c.Input,{placeholder:"Основной текст первого слайда"})),u.default.createElement(c.Form.Item,{name:"second_text",rules:[{required:!0,message:"Введите второстепенный текст"}]},u.default.createElement(c.Input,{placeholder:"Второстепенный текст первого слайда"})),u.default.createElement(c.Form.Item,{name:"images",rules:[{required:!0,message:"Введите URL изображения"}]},u.default.createElement(c.Input,{placeholder:"URL изображения"})),u.default.createElement(c.Form.Item,{name:"status",valuePropName:"checked"},u.default.createElement(c.Checkbox,{checked:r.getFieldValue("status")}," Активный ")),u.default.createElement(c.Form.Item,null,u.default.createElement(c.Button,{type:"primary",htmlType:"submit",loading:g},v?"Сохранить":"Добавить")))))}},8169:function(e,t,a){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,a=1,r=arguments.length;a0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scrollManager=void 0;var a=function(){function e(){this.scrollPosition=0}return e.prototype.scrollOn=function(){setTimeout((function(){document.body.style.cssText="",document.documentElement.style.scrollBehavior=""}),50)},e.prototype.scrollOff=function(){this.scrollPosition=window.scrollY,document.body.style.cssText="\n overflow: hidden;\n padding-right: ".concat(window.innerWidth-document.body.offsetWidth,"px;\n height: 100vh;\n width: 100vw;\n "),document.documentElement.style.scrollBehavior="unset"},e.prototype.resetScrollPosition=function(){this.scrollPosition=0},e}();t.scrollManager=new a},7469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCountProgram=void 0;t.getCountProgram=function(e){return 1===e?"1 программа":"".concat(e,e>=2&&e<=4?" программы":" программ")}},5110:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBankImage=void 0;var r={Сбербанк:"sberbank","Т Банк":"t-bank","Альфа Банк":"alfa",АТБ:"ATB",ВТБ:"VTB",Газпромбанк:"gazprom","Банк Зенит":"zenit","Ингосстрах Банк":"ingosstrakh","Райффайзен Банк":"raiffeisen",Открытие:"opening",Экспобанк:"expobank","Абсолют Банк":"absolute",МКБ:"MKB","Оранжевый Банк":"orange","Отп Банк":"OTP",Россельхозбанк:"rosselkhoz","Почта Банк":"mail","Ренессанс Кредит":"renessans",ЛокоБанк:"lokobank",Совкомбанк:"sovcombank",ПСБ:"PSB",Юрганк:"ural","Хоум Банк":"homebank","Банк Центр-Инвест":"bank-center-invest",ДрайвКлик:"drive-click",ПримСоцБанк:"prim-soc-bank","Банк Авангард":"avangard"};t.getBankImage=function(e){var t=r[e];return t?a(8543)("./".concat(t,".svg")):""}},3909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInterestRate=void 0;t.getInterestRate=function(e){var t=e.flatMap((function(e){return e.interest_rate}));return"".concat(Math.min.apply(Math,t),"% - ").concat(Math.max.apply(Math,t),"%")}},3223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortBankByBestOffers=void 0;t.sortBankByBestOffers=function(e){return e.map((function(e){return e.programs.sort((function(e,t){return e.interest_rate-t.interest_rate})),e})).sort((function(e,t){return e.programs.reduce((function(e,t){return e+t.interest_rate}),0)-t.programs.reduce((function(e,t){return e+t.interest_rate}),0)}))}},2540:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkForDamage=void 0;t.checkForDamage=function(e){return/не найден/i.test(e)?"Повреждения не найдены":"Есть повреждения"}},1766:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUrl=void 0;t.createUrl=function(e,t,a){return"brand_name=".concat(e,"&model_name=").concat(t,"&generation_name=").concat(a)}},4677:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPayment=void 0;t.getPayment=function(e,t,a,r){if(!e)return 0;var n=e-t/100*e;if(0===r)return n/a;var l=r/100/12;return n*(l/(1-Math.pow(1+l,-a)))}},1314:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVinDate=void 0;t.getVinDate=function(){var e=new Date,t=e.getDate(),a=["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][e.getMonth()];return"От ".concat(t," ").concat(a," ").concat(e.getFullYear()," года")}},4955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertToUrl=void 0;var a={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"ts",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"," ":"-",А:"a",Б:"b",В:"v",Г:"g",Д:"d",Е:"e",Ё:"yo",Ж:"zh",З:"z",И:"i",Й:"y",К:"k",Л:"l",М:"m",Н:"n",О:"o",П:"p",Р:"r",С:"s",Т:"t",У:"u",Ф:"f",Х:"h",Ц:"ts",Ч:"ch",Ш:"sh",Щ:"sch",Ъ:"",Ы:"y",Ь:"",Э:"e",Ю:"yu",Я:"ya"};t.convertToUrl=function(e){return e.toLowerCase().split("").map((function(e){return a[e]||e})).join("").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-")}},7567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createYearsArray=void 0;t.createYearsArray=function(e,t){return Array.from({length:t-e+1}).fill(e).map((function(e,t){return e+t}))}},1611:function(e,t){"use strict";var a=this&&this.__awaiter||function(e,t,a,r){return new(a||(a=Promise))((function(n,l){function o(e){try{u(r.next(e))}catch(e){l(e)}}function i(e){try{u(r.throw(e))}catch(e){l(e)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(o,i)}u((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var a,r,n,l,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return l={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function i(i){return function(u){return function(i){if(a)throw new TypeError("Generator is already executing.");for(;l&&(l=0,i[0]&&(o=0)),o;)try{if(a=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatPrice=void 0;t.formatPrice=function(e){var t="number"==typeof e?e:parseFloat(e);return Math.floor(t).toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}},3688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCountOwner=void 0;t.getCountOwner=function(e){return"".concat(e,e>1?" владельцев":" владелец")}},9278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getValueFromLocalStorage=void 0;t.getValueFromLocalStorage=function(e,t){var a=localStorage.getItem(e);return a?JSON.parse(a):t}},647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setValueToLocalStorage=void 0;t.setValueToLocalStorage=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}}},4874:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitArrIntoPairs=void 0;t.splitArrIntoPairs=function(e){for(var t=[],a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformPhoneNumber=void 0;t.transformPhoneNumber=function(e){var t=e.toString();return t.length>10?"+".concat(t.slice(0,1)," (").concat(t.slice(1,4),") ").concat(t.slice(4,7),"-").concat(t.slice(7,9),"-").concat(t.slice(9)):"+7 (".concat(t.slice(0,3),") ").concat(t.slice(3,6),"-").concat(t.slice(6,8),"-").concat(t.slice(8))}},861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUrl=void 0;t.validateUrl=function(e){try{var t=decodeURIComponent(e);new URL(t);var a=t.toLowerCase();return!["