(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4471],{3891:e=>{e.exports={page:"AutoCredits_page__EqZNI",sectionWrapper:"AutoCredits_sectionWrapper__QwfNp",experts:"AutoCredits_experts__b6rj8",breadcrumbs:"AutoCredits_breadcrumbs__3OKah",adFox:"AutoCredits_adFox__W0ah4",background:"AutoCredits_background__EAWXM"}},4488:e=>{e.exports={container:"AutoCreditInfo_container__GOscQ",containerFull:"AutoCreditInfo_containerFull__Vw68s",promo:"AutoCreditInfo_promo__Qx6R9",left:"AutoCreditInfo_left__vBExI",right:"AutoCreditInfo_right__xYmGT",qrDesc:"AutoCreditInfo_qrDesc__u6mDR",qrMobile:"AutoCreditInfo_qrMobile__lHKp1",typeDescription:"AutoCreditInfo_typeDescription__5QoBb"}},6606:e=>{e.exports={title:"AutoCreditsList_title__kiemn",offersListContainer:"AutoCreditsList_offersListContainer__44vNc",listTitle:"AutoCreditsList_listTitle__fP1nX",container:"AutoCreditsList_container__aH3my",listItem:"AutoCreditsList_listItem__Y0xBf"}},9507:(e,t,l)=>{"use strict";l.d(t,{F:()=>p});var a=l(37876),n=l(3207),i=l(49995),o=l(14232),r=l(91063),s=l(67347),u=l(92666),c=l(87622),d=l.n(c);let p=(0,o.memo)(e=>{let{region:t,town:l,subtitle:o,title:c,mainPageUrl:p}=e,{town:v,region:m}=(0,u.z)(),{handleToggleModal:_}=(0,n.u)();return(0,a.jsxs)("div",{className:(0,i.A)(d().titleWrapper,d().newTitle),children:[(0,a.jsxs)("h1",{className:d().title,children:[c," ",((null==v?void 0:v.name_p)||(null==l?void 0:l.name_p)||(null==m?void 0:m.name_p)||(null==t?void 0:t.name_p))&&(0,a.jsxs)(a.Fragment,{children:["в"," ",(0,a.jsx)("button",{onClick:()=>{_(!0),(0,r.o)({event:"data-event",eventAction:"show_pop_up_city_modal",eventCategory:p})},className:d().link,children:(null==v?void 0:v.name_p)||(null==l?void 0:l.name_p)||(null==m?void 0:m.name_p)||(null==t?void 0:t.name_p)})]})]}),(0,a.jsx)(s.j,{tag:"p",className:d().subtitle,children:o})]})});p.displayName="RegionTitle"},15379:e=>{e.exports={page:"AutoCreditDetail_page__jr_3y",supportSection:"AutoCreditDetail_supportSection__7506m",breadcrumbs:"AutoCreditDetail_breadcrumbs__XrqGb",about:"AutoCreditDetail_about__5FUQp"}},26850:e=>{e.exports={wrapper:"OsagoAd_wrapper__MOwoz",bg:"OsagoAd_bg__m4rki",bgDesktop:"OsagoAd_bgDesktop__13CJL",bgMobile:"OsagoAd_bgMobile__4zRc9",button:"OsagoAd_button__2LK3h"}},35990:e=>{e.exports={buttons:"FilterActions_buttons__M1NwR"}},39936:e=>{e.exports={title:"AutoCreditsList_title__FbtDC",listTitle:"AutoCreditsList_listTitle__UHGag",section:"AutoCreditsList_section__kDivH",titleHide:"AutoCreditsList_titleHide__AV_Pr",filter:"AutoCreditsList_filter__2OHf2",filterBottom:"AutoCreditsList_filterBottom__1_rnT",newLayout:"AutoCreditsList_newLayout__SXcV7",subtitle:"AutoCreditsList_subtitle__SiUJT",listItem:"AutoCreditsList_listItem__8sUMu",adv:"AutoCreditsList_adv__2T4FG",listContainer:"AutoCreditsList_listContainer__2BZk8","finkit-container--narrow":"AutoCreditsList_finkit-container--narrow__ziFs_"}},47278:e=>{e.exports={container:"AutoCreditApplySteps_container__wmZpQ"}},51314:e=>{e.exports={logo:"AutoCreditListItem_logo__KzLbz",placeholderLogo:"AutoCreditListItem_placeholderLogo__9xMXP"}},55376:e=>{e.exports={pageHeadingWrap:"AutoCreditsFilter_pageHeadingWrap__HPOkm",banner:"AutoCreditsFilter_banner___JorH",container:"AutoCreditsFilter_container__TTHj_",filter:"AutoCreditsFilter_filter__Z6nkX",fields:"AutoCreditsFilter_fields__CUFW0",field:"AutoCreditsFilter_field__YsbeF",fieldIcon:"AutoCreditsFilter_fieldIcon__JjqAx",tagsWrapper:"AutoCreditsFilter_tagsWrapper__AxhCb",tag:"AutoCreditsFilter_tag__LGfem",dopsTitle:"AutoCreditsFilter_dopsTitle__SLwD5",dops:"AutoCreditsFilter_dops__31hQ1"}},55398:e=>{e.exports={fields:"AutoCreditsFilterModal_fields__bbPf2",checkboxWrapper:"AutoCreditsFilterModal_checkboxWrapper__LkTSZ",title:"AutoCreditsFilterModal_title__lcyEu",titleSort:"AutoCreditsFilterModal_titleSort__5yrZq",dops:"AutoCreditsFilterModal_dops__qbJ_a",wrapper:"AutoCreditsFilterModal_wrapper__WSPtT"}},64345:e=>{e.exports={title:"styles_title__cObN3",list_wrap:"styles_list_wrap__z3_y1",content:"styles_content__tWscR",sort_content:"styles_sort_content__tPWO7",right_block:"styles_right_block__XypvM",viewed_offers_toggle:"styles_viewed_offers_toggle__C0ym7",subtitle:"styles_subtitle__RcERK",sort_label:"styles_sort_label__faPeq",dropdown_wrapper:"styles_dropdown_wrapper__Aj2XD"}},66295:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});let a={src:"/kredity/assets/_next/static/media/banner-2.9368ea40.svg",height:218,width:318,blurWidth:0,blurHeight:0}},67792:e=>{e.exports={wrapper:"AutoCreditsFilterDops_wrapper__8_0qa",checkbox:"AutoCreditsFilterDops_checkbox__8RLWl",item:"AutoCreditsFilterDops_item__GdL_E",detailIcon:"AutoCreditsFilterDops_detailIcon__lVAWv"}},80976:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/avtokredity/[[...segments]]",function(){return l(94925)}])},82596:(e,t,l)=>{"use strict";l.d(t,{H:()=>a});let a=(e,t)=>{var l;let a=null!=(l=null==t?void 0:t.map(e=>+e))?l:[];return[...e].sort((e,t)=>{let l=a.includes(Number(e.id)),n=a.includes(Number(t.id));return!l&&n?1:l&&!n?-1:0}).map(e=>({value:e.id,label:e.name}))}},87622:e=>{e.exports={title:"RegionTitle_title__ouhKs",link:"RegionTitle_link__r_rJV",titleWrapper:"RegionTitle_titleWrapper__yuBaG",newTitle:"RegionTitle_newTitle__SeVuV",subtitle:"RegionTitle_subtitle__T8Ha1"}},88880:e=>{e.exports={tagsWrapper:"AutoCreditsTags_tagsWrapper___62bH",tag:"AutoCreditsTags_tag__KsRe2"}},94925:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSP:()=>t9,default:()=>t3});var a=l(37876),n=l(3207),i=l(14232),o=l(20988),r=l(48230),s=l.n(r),u=l(97563),c=l(10027),d=l(16891),p=l(83188),v=l(87162),m=l(34199),_=l(5153);let b=[{id:1,label:"Условия",name:_.Cu.conditions},{id:2,label:"Требования к заемщику",name:_.Cu.requirements},{id:3,label:"Требование к ТС",name:_.Cu.requirementsVehicles},{id:4,label:"Погашение",name:_.Cu.redemption}];var h=l(62728);let g=(0,i.memo)(e=>{var t,l;let{data:n,bank:o,pageUrl:r}=e,{tabsContent:s,tabsList:u}=(e=>{let{data:t}=e,l=(0,i.useMemo)(()=>(0,m.S$)(t),[t]),a=(0,i.useMemo)(()=>b.filter(e=>l[e.name].some(e=>(0,h.a)(e.value))),[l]);return{tabsContent:l,tabsList:a}})({data:n});return(0,a.jsx)(p.H,{scrollBlockId:v.uB,pageUrl:r,seoText:(null==n?void 0:n.short_description)&&(null==n?void 0:n.short_description.length)>5?null==n?void 0:n.short_description:void 0,title:"Об автокредите",offerUpdateData:null==n?void 0:n.m_updated_at,bank:{logoMobile:null==o?void 0:o.logo_mob,description:null==o?void 0:o.short_description,url:"/banki/".concat(null==o?void 0:o.url),name:null==o?void 0:o.name,creditRating:null==o?void 0:o.credit_rating,netAssetsPlace:null==o||null==(t=o.ratings)?void 0:t.net_assets_place,netProfitRating:null==o?void 0:o.net_profit_rating},tabsList:u,tabsContent:s,aboutCompanyLabel:"О банке",site:null!=(l=null==o?void 0:o.site.title)?l:void 0})});g.displayName="AutoCreditAbout";var f=l(26700),C=l(66295),x=l(99689),y=l(14873),A=function(e){return e.LEAD="lead",e.MASS="mass",e}({}),j=l(37105),N=l(47278),k=l.n(N);let T=e=>{let{url:t,offerType:l,isMobile:n,className:o}=e,r=(0,i.useMemo)(()=>[{id:3,image:x.A,text:"Перейдите на сайт банка,<br /> чтобы оформить заявку",types:[A.LEAD],buttonText:"Оформить на сайте банка",link:t},{id:4,image:f.A,text:A.LEAD?"Этот кредит нельзя открыть через Финуслуги":"Этот автокредит сейчас нельзя открыть онлайн на Финуслугах",types:[A.LEAD,A.MASS],buttonText:"Выбрать другой автокредит",link:"/avtokredity"},{id:5,image:C.A,text:"Чтобы оформить автокредит, обратитесь в банк",types:[A.MASS]}].filter(e=>e.types.find(e=>e===l)),[t,l]);return(0,a.jsx)("div",{className:k().container,children:(0,a.jsx)(y.N,{className:o,title:"Где оформить автокредит",pageUrl:j.h.AUTOCREDIT,id:v.ov,isMobile:n,slides:r})})};var S=l(49995),w=l(30557),L=l(14082),I=l(5219),F=l(56420),U=l(53244),M=l(52841),D=l(63292),E=l(81202),R=l(35415),P=l(21754),O=l(31257),V=l(80010),W=l(89064),q=l(79807),H=l(53172),B=l(4488),J=l.n(B);let K="Оформить на сайте банка",Z="Где оформить автокредит",z=e=>{var t;let{offerType:l,bank:n,data:r,isMobile:s,calculator:u}=e,[c,p]=(0,i.useState)(!1),m=(0,i.useRef)(null),_=(0,i.useMemo)(()=>{let{domestic_new:e,domestic_old:t,foreign_new:l,foreign_old:a}=r.vehicle_state;return!e&&!t&&l&&a?"Иномарка любая":e||t||!l||a?e||t||l||!a?e&&t&&!l&&!a?"Отечественная любая":e||!t||l||a?!e||t||l||a?e&&!t&&l&&!a?"Любое новое":!e&&t&&!l&&a?"Любое б/у":"Любое":"Отечественная новая":"Отечественная б/у":"Иномарка б/у":"Иномарка новая"},[r.vehicle_state]),b=(0,i.useCallback)(()=>{m.current&&m.current.focus()},[]),h=(0,i.useCallback)(e=>{e&&((0,O._)({eventCategory:j.h.AUTOCREDIT,eventAction:O.y.filterCatalog,eventLabel:"Платеж",eventValue:e.label}),u.setPaymentTypeValue(e.value))},[u]),g=(0,i.useMemo)(()=>({value:u.period,max:u.periodMax,min:u.periodMin===u.periodMax?u.periodMin-1:u.periodMin,onChange:e=>{e=null!=e?e:u.periodMin,u.periodMin!==u.periodMax&&u.setPeriod(e)},step:1,ticks:[{label:(0,R.Hb)(u.periodMin),value:u.periodMin},{label:(0,R.Hb)(u.periodMax),value:u.periodMax}],unit:[W.U9.ONE,W.U9.FEW,W.U9.MANY]}),[u]),f=(0,i.useMemo)(()=>u.paymentTypeOptions.filter(e=>e.value===u.paymentTypeValue),[u.paymentTypeOptions,u.paymentTypeValue]),C=(0,i.useMemo)(()=>[{id:1,label:(0,R.l5)(u.period)},{id:2,label:"".concat(u.amount)}],[u.amount,u.period]),x=(0,i.useMemo)(()=>{var e;let t=(null==(e=r.application_term.custom_text)?void 0:e.from)!==void 0?(0,F.v)(r.application_term.custom_text.from):0,l=new Date;l.setDate(l.getDate()+t);let a=l.getDate(),n=l.getMonth()+1,i=l.getFullYear();return"Деньги у вас до ".concat(a," ").concat((0,P.F)("".concat(n,"-").concat(a,"-").concat(i)))},[null==(t=r.application_term.custom_text)?void 0:t.from]),y=u.amount,N=(0,i.useMemo)(()=>{let e=u.firstPayment,t=u.period,l=r.vehicle_type.text,n=u.paymentTypeValue,i=[],o=Number(e)/(Number(y)/100);Number.isInteger(o)||(o=Number(o.toFixed(5)));let s=y?(0,V.r)(o,1):0;i.push({label:"Первый взнос",value:"".concat(s,"%").replace(".",",")}),i.push({label:"Срок погашения",value:(0,R.l5)(t)});let c=r.full_price;if(c){let e=r.interest_rate;i.push({label:"ПСК",value:(0,w.o)(c),description:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n    Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."},{label:"Процентная ставка",value:(0,q.sP)(Number(e.from),Number(e.to))})}return i.push({label:"Тип&#160;ТС",value:l},{label:"Состояние&#160;ТС",value:_,description:"Некоторые банки указывают, что получить кредит можно только на новый автомобиль, а для других это не принципиально."}),n&&i.push({label:"Тип платежа",value:n===E.w.annuity?"Аннуитетный":"Дифференцированный",description:(0,a.jsx)("div",{className:J().tooltipContent,children:(0,a.jsx)(U.q,{type:n})})}),i},[u.firstPayment,u.period,u.paymentTypeValue,r.vehicle_type.text,r.full_price,r.interest_rate,_,y]);return(0,a.jsxs)(d.J,{className:(0,S.A)(J().container,J().containerFull),children:[(e=>{var t,l;return(0,a.jsx)(M.E,{url:r.url,bank:{logoMob:null==n?void 0:n.logo_mob,url:"/banki/".concat(null==n?void 0:n.url),name:null!=(t=null==n?void 0:n.name)?t:r.bank_name},pageUrl:j.h.AUTOCREDIT,title:"Автокредит \xab".concat(r.title,"\xbb от ").concat(null!=(l=null==n?void 0:n.name)?l:r.bank_name),isSmall:void 0,isMobile:s,tagTheme:"red",className:J().promo})})(),(0,a.jsxs)("div",{className:J().left,children:[(0,a.jsx)(L.t,{isMobile:s,title:"Настройка автокредита",pageUrl:j.h.AUTOCREDIT,infoLink:{isShow:!s,text:"Подробнее об автокредите",idScrollBlock:v.uB,offPadding:!0,widthMaxContent:!0},items:[{elements:[{type:"moneyInput",props:{label:"Сумма",value:u.amount,onChange:u.setAmount,onFocus:()=>p(!0)}}]},{elements:[{type:"moneyInput",props:{label:"Первый взнос",value:u.firstPayment,onChange:u.setFirstPayment,onFocus:()=>p(!0)}}]},{elements:[{type:"inputRange",props:{label:"Срок погашения",...g}}]},{elements:[{type:"select",isHidden:!u.paymentTypeValue||u.paymentTypeOptions.length<=1,desription:u.paymentTypeValue&&(0,a.jsx)(U.q,{className:J().typeDescription,type:u.paymentTypeValue}),props:{label:"Платеж",options:u.paymentTypeOptions,onChange:h,value:f}}]}],chips:C,isShowChips:s&&!!(null==C?void 0:C.length)&&!c,isExpandSettings:c,onToggleSettings:()=>p(e=>!e)}),(0,a.jsx)(D.P,{isSmall:!0,className:J().qrDesc})]}),(0,a.jsxs)("div",{className:J().right,children:[(0,a.jsx)(I.r,{captionTitle:x,pageUrl:j.h.AUTOCREDIT,onEdit:b,amount:Number(u.amount),disclaimer:"Предварительные условия. Не оферта",tag:r.online_application.commercial_desc,footerActions:(0,a.jsxs)(a.Fragment,{children:[l===A.LEAD&&(0,a.jsx)(o.$n,{as:"a",onClick:()=>{(0,O._)({eventCategory:j.h.AUTOCREDIT,eventAction:O.y.link,eventActionText:K,eventLabel:r.id})},href:r.online_application.url,target:"_blank",className:J().button,children:K}),(0,a.jsx)(o.$n,{onClick:()=>{(0,O._)({eventCategory:j.h.AUTOCREDIT,eventAction:O.y.button,eventActionText:Z}),(0,H.e)(v.ov,{offset:s?0:-100,position:"top"})},className:J().button,variant:"secondary",children:Z})]}),valuesList:N}),(0,a.jsx)(D.P,{isSmall:!0,className:J().qrMobile})]})]})};var X=l(54587),Q=l.n(X),G=l(91063),$=l(87087),Y=l(44694),ee=l(51314),et=l.n(ee);let el=(0,i.memo)(e=>{var t,l;let{data:n,detailData:o,className:r,onDetailInfoClick:s,onClick:u}=e,c=[],d=(0,i.useRef)(null),p=(0,i.useRef)(!1),v=(0,i.useRef)(null),m={text:"",caption:""},[_,b]=(null==o||null==(t=o.data)?void 0:t.online_application.commercial)===1?["Оформить",o.data.online_application.url]:["Подробнее",n.url],h=null==o||null==(l=o.data)?void 0:l.full_price;h&&(m.caption="ПСК",m.text=(0,w.o)(h),m.tooltipText="ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n        Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре.");let g={text:(0,q.ej)({from:n.amountFrom,to:n.amountTo},{currency:n.currency}),caption:"Сумма"},f={text:"от ".concat((0,q.ZV)(n.payment),"%"),caption:"Первый взнос"};c.push({label:"Заявка через сайт банка",variant:"primary"}),n.isKascko&&c.push({label:"Потребуется каско",variant:"primary"}),n.isPermanentRegistation&&c.push({label:"Постоянная регистрация",variant:"primary"});let C=(0,i.useCallback)(e=>{let[t]=e;1===t.intersectionRatio&&!p.current&&((0,G.o)({event:"data-event",eventAction:"show_in_catalog",eventCategory:j.h.AUTOCREDIT,eventLabel:n.id}),p.current=!0,d.current&&v.current&&d.current.unobserve(v.current))},[n.id]);return(0,i.useEffect)(()=>{d.current&&v.current&&d.current.unobserve(v.current),!p.current&&v.current&&(d.current=new IntersectionObserver(C,{root:null,threshold:[1]}),d.current.observe(v.current))},[C]),(0,a.jsx)("div",{ref:v,className:r,onClick:()=>{var e;return e="click_button_".concat((0,$.y)("Подать заявку")),void((0,G.o)({event:"data-event",eventAction:e,eventCategory:j.h.AUTOCREDIT,eventLabel:n.id,eventValue:n.eventValue}),null==u||u(n))},children:(0,a.jsx)(Y.M,{icon:n.logo?(0,a.jsx)("div",{className:et().logo,children:(0,a.jsx)(Q(),{width:56,height:56,src:n.logo,alt:"logo"})}):(0,a.jsx)("div",{className:et().placeholderLogo}),companyName:n.bankName,productName:n.title,productUrl:n.url,buttonText:_,buttonUrl:b,tags:c,advantageAmountFrom:m,advantageAmountTo:f,advantageBonus:g,onDetailInfoClick:()=>{s(n),(0,O._)({eventCategory:j.h.AUTOCREDIT,eventAction:O.y.button,eventActionText:"open_modal"})},className:et().plate})})});el.displayName="AutoCreditListItem";var ea=l(40419),en=l(13394),ei=l(62576),eo=l(96759);let er=e=>(null==e?void 0:e.online_application.commercial)===1?A.LEAD:A.MASS,es=e=>{var t,l,a,n,i,o;let{banks:r,autoCredit:s,period:u}=e,c="/".concat(j.h.AUTOCREDIT,"/").concat(s.url),d="",p="",v=r.find(e=>+s.bank_id==+e.id);return 1===s.online_application.commercial&&3!==s.online_application.type&&(d="Подача заявки на сайте банка",p="non_commercial"),3===s.online_application.type?(d="Открытие онлайн на Финуслугах",p="platform"):1!==s.online_application.commercial&&3!==s.online_application.type&&(d="Открытие в банке"),{id:s.id,bankName:null!=(l=null==v?void 0:v.name)?l:s.bank_name,bankId:null!=(a=null==v?void 0:v.id)?a:"",isCard:!1,logo:null!=(n=null==v?void 0:v.logo_mob)?n:"",title:s.title,url:c,legalName:(e=>{if(e)try{let t=JSON.parse(e);if(Array.isArray(t))return t[0].name;return t.name}catch(t){return e}return""})("string"==typeof(null==v?void 0:v.legal_entities)?JSON.parse(null==v?void 0:v.legal_entities)[0].name:null==v||null==(t=v.legal_entities)?void 0:t[0].name),isKascko:1==+s.insurance_need.need,isPermanentRegistation:1==+s.registration_address.permanent,period:u||+s.period.to,rate:+s.interest_rate.from,rateTo:+s.interest_rate.to,payment:+s.first_payment.from||0,currency:"₽",detailUrl:"/".concat(j.h.AUTOCREDIT,"/").concat(s.url),notLoan:1===s.loan.not_required,incomeProof:0===s.income_proof.not_required,typeText:d,eventValue:p,serviceTooltip:null,amountFrom:Number(s.amount.from),amountTo:Number(s.amount.to),type:er(s),site:{title:null!=(i=null==v?void 0:v.site.title)?i:null,url:null!=(o=null==v?void 0:v.site.url)?o:null}}};var eu=l(33126),ec=l(92666),ed=l(6606),ep=l.n(ed);let ev=(0,i.memo)(e=>{let{bank:t,banks:l,currentCardId:n,autocredits:o,autocreditsFinuslugi:r,className:s}=e,{town:u}=(0,ec.z)(),[c,p]=(0,i.useState)(),v=(0,i.useCallback)(()=>{p(void 0)},[]),m=(0,i.useCallback)(e=>{(0,O._)({eventCategory:j.h.AUTOCREDIT,eventAction:O.y.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},[]),_=(0,i.useMemo)(()=>{let e=o?o.filter(e=>e.id!==n):[];return(0,eo.q)({productList:e,anotherList:e,count:ei.gx})},[o,n]),b=(0,i.useMemo)(()=>{let e=r||[];return(0,eo.q)({productList:e,anotherList:e,count:ei.a0-_.length})},[_.length,r]),h=(0,i.useMemo)(()=>({bankList:_.map(e=>es({banks:[t],autoCredit:e})),finuslugiList:b.map(e=>es({banks:l,autoCredit:e}))}),[t,l,_,b]),g=(0,i.useCallback)(e=>{if(!e)return;let t=[_,b].reduce((e,t)=>[...e,...t],[]).find(t=>t.id===e.id);if(t){var l,a;return{...t,site:{...e.site},bankName:e.bankName,detailUrl:null!=(l=e.detailUrl)?l:"",logo:e.logo,url:null!=(a=e.url)?a:""}}},[_,b]),f=(0,i.useCallback)(e=>{p(g(e)),e&&(0,O._)({eventCategory:j.h.AUTOCREDIT,eventAction:O.y.popup,eventActionText:e.title,eventLabel:e.id})},[g]),C="".concat((0,eu.UK)().mainBaseUrl,"/banki/").concat(t.url,"/avtokredity").concat((null==u?void 0:u.url.length)?"/reg_"+u.url:"");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{className:(0,S.A)(ep().container,s),children:[(0,a.jsx)("h3",{className:ep().title,children:"Другие автокредиты"}),(0,a.jsxs)(d.J,{children:[!!h.bankList.length&&(0,a.jsxs)("section",{className:ep().offersListContainer,children:[(0,a.jsxs)("p",{className:ep().listTitle,children:["Автокредиты от ",t.name]}),h.bankList.map(e=>(0,a.jsx)(el,{onDetailInfoClick:f,className:ep().listItem,data:e,onClick:m,text:"Подать заявку",detailData:{data:g(e),mainPageUrl:j.h.AUTOCREDIT}},e.url)),(0,a.jsx)(ea.e,{offPadding:!0,text:"Bсе предложения от банка",href:C,target:"_blank",iconColor:"light",mainPageUrl:j.h.AUTOCREDIT})]}),!!h.finuslugiList.length&&(0,a.jsxs)("section",{className:ep().offersListContainer,children:[(0,a.jsx)("p",{className:ep().listTitle,children:"Автокредиты на Финуслугах"}),h.finuslugiList.map(e=>(0,a.jsx)(el,{onDetailInfoClick:f,className:ep().listItem,data:e,onClick:m,text:"Подать заявку",detailData:{data:g(e),mainPageUrl:j.h.AUTOCREDIT}},e.url)),(0,a.jsx)(ea.e,{offPadding:!0,text:"Bсе предложения на Финуслугах",href:"/avtokredity",target:"_blank",iconColor:"light",mainPageUrl:j.h.AUTOCREDIT})]})]})]}),(0,a.jsx)(en.u,{data:c,isOpen:!!c,onClose:v,mainPageUrl:j.h.AUTOCREDIT})]})});ev.displayName="AutoCreditsList";var em=l(89099),e_=l(75464);let eb=e=>Array.isArray(e)?e[0]:e;var eh=l(5552),eg=l(9837),ef=l(66460),eC=l(6980),ex=l(80490),ey=l(99275),eA=l(15379),ej=l.n(eA);function eN(e){var t;let{offer:l,posts:n,questions:r,description:p,banks:v,refererTag:m,offers:_,offersFinuslugi:b,support:h}=e,f=er(l),C=(0,eh.sw)(),x=(e=>{var t,l,a,n,o,r;let{asPath:s}=(0,em.useRouter)(),[u,c]=(0,i.useState)(Number(null!=(l=e.amount.from)?l:0)),[d,p]=(0,i.useState)(0),[v,m]=(0,i.useState)(Number(null!=(a=e.period.to)?a:1)),_=Number(null!=(n=e.period.from)?n:1),b=Number(null!=(o=e.period.to)?o:1),h=(0,i.useMemo)(()=>{let t=[];return 0!==e.repayment_procedure.annuity&&t.push({label:"Аннуитетный",value:E.w.annuity}),void 0!==e.repayment_procedure.differentiated&&0!==e.repayment_procedure.differentiated&&t.push({label:"Дифференцированный",value:E.w.differentiated}),t},[e.repayment_procedure]),[g,f]=(0,i.useState)(null!=(r=null==(t=h[0])?void 0:t.value)?r:null),C=(0,i.useCallback)(e=>{c(null!=e?e:0)},[]),x=(0,i.useCallback)(e=>{p(null!=e?e:0)},[]),y=(0,i.useMemo)(()=>({value:u,onChange:C}),[u,C]),A=(0,i.useMemo)(()=>({value:d,onChange:x}),[d,x]);return(0,i.useEffect)(()=>{let e=(0,e_.$)(s,"#"),t=eb(e.amount),l=eb(e.first_payment),a=eb(e.period);void 0!==t&&c(+t),void 0!==l&&p(+l);let n=Number(a);!Number.isNaN(n)&&n>=_&&n<=b&&m(n)},[]),(0,i.useMemo)(()=>({amount:u,setAmount:c,amountInputProperties:y,firstPayment:d,setFirstPayment:p,firstPaymentInputProperties:A,period:v,setPeriod:m,periodMin:_,periodMax:b,paymentTypeOptions:h,paymentTypeValue:g,setPaymentTypeValue:f}),[u,y,d,A,v,_,b,h,g])})(l),{region:y,town:A}=(0,ec.z)(),N=v.find(e=>Number(e.id)===l.bank_id),k=(null==r?void 0:r.map(e=>({title:e.title,text:e.text.map(e=>e.data.html).join(""),plainText:e.text.map(e=>(0,u.NC)(e.data.html)).join("").trim()})))||[],S="Автокредит \xab".concat(l.title,"\xbb от ").concat(null!=(t=null==N?void 0:N.name_r)?t:"");return(0,a.jsxs)("main",{className:ej().page,children:[(0,a.jsx)(c.I,{productId:String(l.id),title:S,description:null!=p?p:""}),(0,a.jsx)(ef.t,{}),(0,a.jsx)(eg.c,{questions:k}),(0,a.jsx)("div",{className:ej().navigationWrapper,children:(0,a.jsx)(d.J,{children:(0,a.jsx)(o.BI,{className:ej().breadcrumbs,items:(()=>{var e;let t=(null==A?void 0:A.name_p)||(null==y?void 0:y.name_p)?" в ".concat((null==A?void 0:A.name_p)||(null==y?void 0:y.name_p)):"",a="".concat((null==y?void 0:y.url)?"/reg_".concat(null==y?void 0:y.url):"").concat((null==A?void 0:A.url)?"/".concat(null==A?void 0:A.url):""),n=[{label:"Главная",href:"/"},{label:"Автокредиты".concat(t),href:"/".concat(j.h.AUTOCREDIT).concat(a)}];return m&&n.push({label:"".concat(m.name).concat(t),href:"/".concat(j.h.AUTOCREDIT,"/teg_").concat(m.url).concat(a)}),n.push({label:"".concat(null!=(e=null==N?void 0:N.name)?e:l.bank_name," Автокредит ").concat(l.title)}),n})()})})}),(0,a.jsx)(z,{calculator:x,bank:N,offerType:f,data:l,isMobile:C}),(0,a.jsx)(d.J,{className:ej().about,children:(0,a.jsx)(g,{data:l,bank:N,pageUrl:j.h.AUTOCREDIT})}),(0,a.jsx)(T,{isMobile:C,offerType:f,url:l.online_application.url}),void 0!==N&&(0,a.jsx)(ev,{bank:N,banks:v,currentCardId:l.id,autocredits:_,autocreditsFinuslugi:b}),n.length>0&&(0,a.jsx)(eC.C,{posts:n,eventCategory:j.h.AUTOCREDIT}),(0,a.jsxs)("div",{className:ej().supportSection,children:[(0,a.jsx)(ex.E,{value:h}),(0,a.jsx)(ey.m,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,a.jsx)(s(),{...e}),dataLayerPush:G.o,questions:k,eventCategory:"cards_support_block",href:"".concat((0,eu.UK)().mainBaseUrl,"/help"),checkAllText:"Читать все вопросы про автокредиты"})]})]})}var ek=l(37397);l(62862);var eT=l(28131),eS=l(3067);let ew={amount:"amount",firstPayment:"first_payment",period:"period",loan:"loan",incomeProof:"income_proof",insuranceNeed:"insurance_need",vehicleState:"vehicle_state",vehicleType:"vehicle_type",stateCoFinancing:"state_co_financing",bank:"bank",order:"order",sort:"sort",page:"page",payment:"payment",borrower:"borrower"},eL=[{value:"not_required",label:"Не требуется"},{value:"ndfl",label:"Справка 2-НДФЛ"},{value:"bank_form",label:"Справка по форме банка"},{value:"custom_form",label:"Альтернативные формы"}];j.h.AUTOCREDIT;let eI=[{value:0,label:"Не имеет значения"},{value:1,label:"1 месяц"},{value:2,label:"2 месяца"},{value:3,label:"3 месяца"},{value:4,label:"4 месяца"},{value:5,label:"5 месяцев"},{value:6,label:"6 месяцев"},{value:9,label:"9 месяцев"},{value:12,label:"1 год"},{value:18,label:"1,5 года"},{value:24,label:"2 года"},{value:36,label:"3 года"},{value:48,label:"4 года"},{value:60,label:"5 лет"}],eF=[{value:"moto",label:"Мототранспорт"},{value:"car",label:"Легковое транспорт"},{value:"track",label:"Грузовое транспорт"},{value:"commercial",label:"Коммерческое транспорт"},{value:"water",label:"Водное транспорт"},{value:"custom",label:"Другое"}],eU=[{value:"moto",labelShort:"Мототранспорт"},{value:"car",labelShort:"Легковое ТС"},{value:"track",labelShort:"Грузовое ТС"},{value:"commercial",labelShort:"Коммерческое ТС"},{value:"water",labelShort:"Водное ТС"},{value:"custom",labelShort:"Другое"}],eM=[{value:"foreign_new",label:"Иномарка с завода"},{value:"foreign_old",label:"Иномарка с пробегом"},{value:"domestic_new",label:"Отечественная с завода"},{value:"domestic_old",label:"Отечественная с пробегом"}],eD=[{value:"employee_for_hire",label:"Работник по найму"},{value:"soldier",label:"Военнослужащий"},{value:"pensioner",label:"Пенсионер"},{value:"individual_entrepreneur",label:"Индивидуальный предприниматель"},{value:"civil_servant",label:"Госслужащий"},{value:"student",label:"Студент"},{value:"budgetary",label:"Бюджетник"},{value:"personal_farm_owner",label:"Владелец личного подсобного хозяйства"},{value:"nothing",label:"Иное"}],eE=[{value:"not_required",label:"Не требуется"},{value:"pledge",label:"Залог"},{value:"guarantee",label:"Поручительство"},{value:"full",label:"Залог и поручительство"}],eR=[{label:"По ставке",value:"rate"},{label:"По первому взносу",value:"firstPayment"}],eP="Указали больше чем запрашиваете кредитных денег";var eO=l(88508);let eV={src:"/kredity/assets/_next/static/media/adv-auto-desktop.6c981f82.svg",height:132,width:1110,blurWidth:0,blurHeight:0},eW={src:"/kredity/assets/_next/static/media/adv-auto-mobile.07d07b83.svg",height:132,width:343,blurWidth:0,blurHeight:0};var eq=l(26850),eH=l.n(eq);let eB=(0,i.memo)(e=>{let{className:t}=e,{mainBaseUrl:l}=(0,eu.UK)();return(0,a.jsxs)(s(),{href:"".concat(l,"/osago"),target:"_blank",className:(0,S.A)(eH().wrapper,t),children:[(0,a.jsx)(Q(),{className:(0,S.A)(eH().bg,eH().bgDesktop),src:eV,alt:""}),(0,a.jsx)(Q(),{className:(0,S.A)(eH().bg,eH().bgMobile),src:eW,alt:""}),(0,a.jsx)(o.$n,{className:eH().button,size:"s",children:"Оформить"})]})});eB.displayName="OsagoAd";var eJ=l(74356);let eK=[];var eZ=l(60650),ez=l(67642),eX=l(64345),eQ=l.n(eX),eG=l(35987),e$=l(5435),eY=l(95018),e0=l(39936),e1=l.n(e0);let e2=e=>{(0,O._)({eventCategory:j.h.AUTOCREDIT,eventAction:O.y.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},e6=e=>{let{filter:t,className:l,isMobile:n,bankOptions:o,banks:r,town:s,region:u}=e,c=(0,eG.yX)(),p=(0,i.useRef)(null),v=(0,i.useRef)(()=>null),[m,_]=(0,i.useState)(!1),[b,h]=(0,i.useState)(!1),{count:g,totalCount:f,increaseSort:C,sort:x,handleToggleModal:y,setIncreaseSort:A,setSort:N,isPageLoading:k,handleLoadMore:T,autoCredits:w,isLoading:L,amount:I,firstPayment:F,period:U}=t,[M,D]=(0,i.useState)(),E=(0,i.useMemo)(()=>((e,t)=>{let{amount:l,firstPayment:a,period:n,payment:i,incomeProof:o,vehicleType:r,vehicleState:s,banks:u,insuranceNeed:c,stateCoFinancing:d,notFirstPayment:p}=e,v=[{id:ew.amount,label:"Сумма кредита: ".concat(l?"".concat((0,q.ZV)(l)," ₽"):"не имеет значения")},{id:ew.firstPayment,label:"Первый взнос: ".concat(a?"".concat((0,q.ZV)(a)," ₽"):"не имеет значения")}];if("number"==typeof n){let e=eI.find(e=>e.value===n);void 0!==e&&v.push({id:ew.period,label:0===e.value?"Срок: ".concat(e.label):e.label})}if(void 0!==i&&0!==i&&v.push({id:ew.payment,label:"До ".concat((0,q.ZV)(i)," ₽ в мес")}),void 0!==o&&0!==o.length){let e=eL.filter(e=>o.includes(e.value)),t=1===e.length?e[0].label:"Подтверждение дохода: (".concat(e.length,")");v.push({id:ew.period,label:t})}if(void 0!==r&&0!==r.length){let e=eF.filter(e=>r.includes(e.value)),t=1===e.length?e[0].label:"Тип транспорта: (".concat(e.length,")");v.push({id:ew.vehicleType,label:t})}if(void 0!==s&&0!==s.length){let e=eM.filter(e=>s.includes(e.value)),t=1===e.length?e[0].label:"Состояние транспорта: (".concat(e.length,")");v.push({id:ew.vehicleState,label:t})}if(void 0!==u&&0!==u.length){let e=t.filter(e=>u.includes(+e.value)),l=1===e.length?e[0].label:"Банки: (".concat(e.length,")");v.push({id:ew.bank,label:l})}return(c&&v.push({id:ew.insuranceNeed,label:"Без каско"}),d&&v.push({id:ew.stateCoFinancing,label:"С господдержкой"}),p&&v.push({id:"notFirstPayment",label:"Без первого взноса"}),eK.length===v.length&&v.every((e,t)=>e.label===eK[t].label&&e.id===eK[t].id))?eK:(eK=v,v)})(t,o),[o,t]),R=(0,i.useCallback)(()=>{y()},[y]),P=(0,i.useMemo)(()=>w.map(e=>{let t=es({banks:r,autoCredit:e}),l={};void 0!==I&&0!==I&&(l.amount=I),void 0!==F&&0!==F&&(l.first_payment=F),void 0!==U&&0!==U&&(l.period=U);let a=(0,ez.F)(l);return Object.keys(l).length&&(t.url="".concat(t.url,"#").concat(a)),t}),[I,w,r,F,U]),V=(0,i.useCallback)(e=>{if(null===e)return;let t=w.find(t=>t.id===e.id);if(void 0!==t){var l,a;return{...t,site:{...e.site},bankName:e.bankName,detailUrl:null!=(l=e.detailUrl)?l:"",logo:e.logo,url:null!=(a=e.url)?a:""}}},[w]),W=(0,i.useCallback)(()=>{D(void 0)},[]),H=(0,i.useCallback)(e=>{D(V(e)),null!==e&&(0,O._)({eventCategory:j.h.AUTOCREDIT,eventAction:O.y.popup,eventActionText:e.title,eventLabel:e.id})},[V]);(0,i.useEffect)(()=>{window.removeEventListener("scroll",v.current);let e=n?56:80;return v.current=()=>{if(null===p.current)return;let{top:t}=p.current.getBoundingClientRect();_(t<e-3),h(t<=e+1)},window.addEventListener("scroll",v.current),()=>window.removeEventListener("scroll",v.current)},[n]);let B=(null==u?void 0:u.name_p)!==void 0?(null==s?void 0:s.name_p)?"в ".concat(null==s?void 0:s.name_p):"в ".concat(null==u?void 0:u.name_p):null,J=10*t.page<g;return(0,a.jsxs)("section",{className:(0,S.A)(e1().section,l),children:[(0,a.jsx)(d.J,{children:(0,a.jsxs)("p",{className:e1().title,children:["Найдено ",g," ",(0,a.jsx)("span",{className:e1().titleHide,children:(0,eZ.v)(g)})," ",B,g===f||0===g?"":"из ".concat(f)]})}),(0,a.jsx)("div",{ref:p,className:(0,S.A)(e1().filter,e1().newLayout,{[e1().filterBottom]:m}),children:(0,a.jsx)(eO.x,{chips:E,onChangeIncreaseSort:A,onChangeSortType:N,onClickChip:R,onClickParams:y,sortTypeItems:eR,sortTypeValue:x,isIncreaseSort:C,isMobile:n,isFixed:b})}),(0,a.jsxs)(d.J,{children:[(0,a.jsx)("p",{className:e1().listTitle,ref:c,children:"Предложения рынка кредитов"}),(0,a.jsx)("div",{children:!L&&P.map((e,t)=>(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(el,{onDetailInfoClick:H,className:e1().listItem,data:e,onClick:e2,text:"Подать заявку",detailData:{data:V(e),mainPageUrl:j.h.AUTOCREDIT}},e.url),2===t&&(0,a.jsx)(eB,{className:e1().adv})]},e.id))}),L&&Array.from({length:6},(e,t)=>(0,a.jsx)(eJ.E,{className:e1().listItem},t)),J&&(0,a.jsx)(eY.e,{page:t.page,loading:k,onClick:T}),(0,a.jsx)(e$.h,{tag:"p",className:eQ().subtitle,children:t.subtitle})]}),(0,a.jsx)(en.u,{data:M,isOpen:!!M,onClose:W,mainPageUrl:j.h.AUTOCREDIT})]})};function e8(e){let t=(0,w.j)(e.full_price);return{...e,full_price:t}}async function e5(e,t){let{tagUrl:l,regionUrl:a,townUrl:n,limit:i=10,...o}=e,r=function(e){let{limit:t,tagUrl:l,regionUrl:a,townUrl:n,amount:i,firstPayment:o,period:r,loan:s,incomeProof:u,insuranceNeed:c,vehicleState:d,vehicleType:p,stateCoFinancing:v,bank:m,sort:_,order:b,payment:h,page:g,borrower:f}=e,C=new URLSearchParams;return void 0!==t&&C.set("limit",String(t)),void 0!==l&&C.set("tag",l),void 0!==a&&C.set("region",a),void 0!==n&&C.set("town",n),void 0!==i&&C.set(ew.amount,i),void 0!==o&&C.set(ew.firstPayment,String(o)),void 0!==r&&C.set(ew.period,String(r)),void 0!==s&&C.set(ew.loan,s.join(",")),void 0!==u&&C.set(ew.incomeProof,Array.isArray(u)?u.join(","):u),void 0!==c&&C.set(ew.insuranceNeed,c?"1":"0"),void 0!==d&&C.set(ew.vehicleState,d.join(",")),void 0!==p&&C.set(ew.vehicleType,p.join(",")),void 0!==v&&C.set(ew.stateCoFinancing,v?"1":"0"),void 0!==m&&C.set(ew.bank,m.join(",")),void 0!==_&&C.set(ew.sort,_),void 0!==b&&C.set(ew.order,b),void 0!==h&&C.set(ew.payment,h),void 0!==g&&C.set(ew.page,String(g)),void 0!==f&&C.set(ew.borrower,f.join(",")),C.set("archive","0"),C.toString()}({limit:i,regionUrl:a,tagUrl:l,townUrl:n,...o}),{data:s,error:u}=await (0,ek.Q)("/money_data/AutoCredits.json?".concat(r),{signal:t});if(u||null===s)throw Error(null!=u?u:"Ошибка загрузки данных");if(void 0!==o.page&&1!==o.page&&0===s.autoCredits.length)throw new eT.m_("Invalid autocredits page: ".concat(o.page));return{offers:s.autoCredits.map(e8),count:s.autoCredits_count,totalCount:s.autoCredits_total_count,title:s.title,subtitle:s.subtitle,description:s.description}}var e9=l(12771),e3=l(73584),e4=l(23517),e7=l(2510);async function te(){return(await (0,e9.zy)("AutoCredits.json?tags&short=1")).autoCredit_tags.reduce((e,t)=>(t.name!==e7.Z2&&e.set(t.url,function(e){let{name:t,url:l,url_redirect:a}=e,n={name:t,url:l},i=(0,e4.Y)(a);return void 0!==i&&(n.url_redirect=i),n}(t)),e),new Map)}new e3.B(te),l(37071),l(81787);var tt=l(23857);function tl(e){let{banks:t,layout:l,refererTag:n,description:i,offer:o,posts:r,questions:s,offers:u,offersFinuslugi:c,support:d}=e;return(0,a.jsx)(tt.P,{data:l,children:(0,a.jsx)(eN,{offer:o,posts:r,questions:s,description:i,banks:t,refererTag:n,offers:u,offersFinuslugi:c,support:d})})}l(7455);var ta=l(25972);let tn={src:"/kredity/assets/_next/static/media/filter.0c02ec9e.svg",height:16,width:16,blurWidth:0,blurHeight:0};var ti=l(35990),to=l.n(ti);let tr=(0,i.memo)(e=>{let{count:t,onClickParams:l,onClickShow:n,isLoading:i,className:r}=e;return(0,a.jsxs)("div",{className:(0,S.A)(to().buttons,r),children:[(0,a.jsx)(o.$n,{variant:"secondary",pending:i,disabled:i,onClick:e=>l(e),iconLeft:(0,a.jsx)(Q(),{src:tn,alt:""}),children:"Все параметры"}),(0,a.jsxs)(o.$n,{pending:i,disabled:i,onClick:n,children:["Показать ",t]})]})});tr.displayName="FilterActions";var ts=l(9507),tu=l(62835),tc=l(32266),td=l(67792),tp=l.n(td);let tv=(0,i.memo)(e=>{let{checkedState:t,onChange:l,className:n}=e;return(0,a.jsxs)("ul",{className:(0,S.A)(tp().wrapper,n),children:[(0,a.jsxs)("li",{className:tp().item,children:[(0,a.jsx)(o.Sc,{className:tp().checkbox,onChange:()=>l("insuranceNeed",!t.insuranceNeed),checked:t.insuranceNeed,value:t.insuranceNeed,label:"Без каско"}),(0,a.jsx)(tc.A,{content:"По закону, каско покупать необязательно, но такая страховка компенсирует вам ущерб, даже если вы виновны в ДТП. Каско можно включить в стоимость кредита.",children:(0,a.jsx)(tc.X,{className:tp().detailIcon})})]}),(0,a.jsxs)("li",{className:tp().item,children:[(0,a.jsx)(o.Sc,{className:tp().checkbox,onChange:()=>l("stateCoFinancing",!t.stateCoFinancing),checked:t.stateCoFinancing,value:t.stateCoFinancing,label:"С господдержкой"}),(0,a.jsx)(tc.A,{content:"Поддержка, при которой часть средств предоставляет государство. Их можно потратить только на автомобили определенных марок.",children:(0,a.jsx)(tc.X,{className:tp().detailIcon})})]}),(0,a.jsx)("li",{children:(0,a.jsx)(o.Sc,{className:tp().checkbox,onChange:()=>l("notFirstPayment",!t.notFirstPayment),checked:t.notFirstPayment,value:t.notFirstPayment,label:"Без первого взноса"})})]})});tv.displayName="AutoCreditsFilterDops";var tm=l(88880),t_=l.n(tm);let tb=(0,i.memo)(e=>{let{activeIds:t=[],items:l,onChange:n,className:i}=e;return(0,a.jsx)("div",{className:(0,S.A)(t_().tagsWrapper,i),children:l.map(e=>{let l=t.some(t=>t===e.value);return(0,a.jsx)(o.$n,{className:t_().tag,variant:l?"primary":"secondary",onClick:()=>((e,l)=>{n(l?t.filter(t=>String(e)!==t):[...t,String(e)])})(e.value,l),children:e.labelShort},e.value)})})});tb.displayName="AutoCreditsTags";var th=l(40818),tg=l(87057),tf=l(55376),tC=l.n(tf);let tx=e=>{var t,l;let a=null!=(t=e.currentTarget.textContent)?t:"";l="click_button_".concat((0,$.y)(a)),(0,G.o)({event:"data-event",eventAction:l,eventCategory:j.h.AUTOCREDIT})},ty=e=>{let{region:t,town:l,className:n,tag:o,isMobile:r,filter:s,subtitle:u,adFoxConfig:c}=e,{scrollSmooth:d}=(0,eG.Ll)(),{count:p,isLoading:v,amount:m,firstPayment:_,vehicleType:b,setVehicleType:h,insuranceNeed:g,stateCoFinancing:f,notFirstPayment:C,setInsuranceNeed:x,setStateCoFinancing:y,setNotFirstPayment:A,handleToggleModal:N,firstPaymentPercent:k,handleChangeFirstPayment:T,handleChangeAmount:w}=s,L=(0,i.useCallback)(e=>{tx(e),N()},[N]),I=(0,i.useCallback)(e=>{tx(e),d({offset:-90})},[d]),F=(0,i.useMemo)(()=>({insuranceNeed:g,stateCoFinancing:f,notFirstPayment:C}),[g,C,f]),U=(0,i.useCallback)((e,t)=>{switch(e){case"insuranceNeed":x(t);break;case"notFirstPayment":A(t),T(t?0:void 0);break;case"stateCoFinancing":y(t)}},[T,x,A,y]);return(0,a.jsxs)("div",{className:(0,S.A)(n),children:[(0,a.jsxs)("div",{className:tC().pageHeadingWrap,children:[(0,a.jsx)(ts.F,{region:t,town:l,title:o&&"DEFAULT"!==o.tag_name?null==o?void 0:o.name:"Автокредиты",subtitle:u,mainPageUrl:j.h.AUTOCREDIT}),(0,a.jsx)("div",{className:tC().banner,children:(0,a.jsx)(tu.L,{config:c,params:th.ZA})})]}),(0,a.jsxs)(ta.mc,{className:tC().container,children:[(0,a.jsxs)("div",{className:tC().filter,children:[(0,a.jsxs)("div",{className:tC().fields,children:[(0,a.jsx)(tg.F,{className:tC().field,label:"Сумма кредита",value:m,onChange:w}),(0,a.jsx)(tg.F,{className:tC().field,label:"Первый взнос",value:_,rightLabel:"".concat(k,"%").replace(".",","),caption:k>100?eP:void 0,state:k>100?"error":void 0,onChange:T})]}),!r&&(0,a.jsx)(tr,{count:p,onClickParams:L,onClickShow:I,isLoading:v})]}),(0,a.jsx)(tb,{className:tC().tagsWrapper,items:eU,activeIds:b,onChange:h}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:tC().dopsTitle,children:"Дополнительно"}),(0,a.jsx)(tv,{className:tC().dops,onChange:U,checkedState:F})]}),r&&(0,a.jsx)(tr,{count:p,onClickParams:L,onClickShow:I,isLoading:v})]})]})};var tA=l(87768);let tj=(e,t)=>{var l;l=(null!=t?t:[]).map(e=>e.label).join(","),(0,G.o)({event:"data-event",eventAction:j.h.AUTOCREDIT,eventCategory:"filter_catalog",eventLabel:(0,$.y)(e),eventValue:l})};var tN=l(55398),tk=l.n(tN);let tT=e=>{let{filter:t,isMobile:l,bankOptions:n}=e,{handleToggleModal:r,resetFilter:s,amount:u,firstPayment:c,setPeriod:d,period:p,payment:m,incomeProof:_,setIncomeProof:b,vehicleType:h,setVehicleType:g,vehicleState:f,setVehicleState:C,borrower:x,setBorrower:y,loan:A,setLoan:N,banks:k,setBank:T,isLoading:w,insuranceNeed:L,stateCoFinancing:I,setInsuranceNeed:F,setStateCoFinancing:U,setSort:M,sort:D,notFirstPayment:E,setNotFirstPayment:R,firstPaymentPercent:P,handleChangeAmount:O,handleChangeFirstPayment:V,handleChangePayment:W}=t,q=(0,i.useMemo)(()=>eI.find(e=>e.value===p),[p]),B=(0,i.useMemo)(()=>eL.filter(e=>null==_?void 0:_.includes(e.value)),[_]),J=(0,i.useMemo)(()=>eF.filter(e=>null==h?void 0:h.includes(e.value)),[h]),K=(0,i.useMemo)(()=>eM.filter(e=>null==f?void 0:f.includes(e.value)),[f]),Z=(0,i.useMemo)(()=>eD.filter(e=>null==x?void 0:x.includes(e.value)),[x]),z=(0,i.useMemo)(()=>eE.filter(e=>null==A?void 0:A.includes(e.value)),[A]),X=(0,i.useMemo)(()=>n.filter(e=>null==k?void 0:k.includes(Number(e.value))),[n,k]),Q=(0,i.useCallback)(()=>{r(),(0,H.e)(v.cA,{offset:l?0:-140,position:"top"})},[r,l]),{handleChangePeriod:G,handleChangeIncomeProf:$,handleChangeVehicleType:Y,handleChangeVehicleState:ee,handleChangeBorrower:et,handleChangeLoan:el,handleChangeBanks:ea}=(0,i.useMemo)(()=>({handleChangePeriod:e=>{d(null==e?void 0:e.value),tj("Срок",eI)},handleChangeIncomeProf:e=>{var t;b(null!=(t=null==e?void 0:e.map(e=>String(e.value)))?t:[]),tj("Подтверждение дохода",e)},handleChangeVehicleType:e=>{var t;g(null!=(t=null==e?void 0:e.map(e=>String(e.value)))?t:[]),tj("Тип транспорта",e)},handleChangeVehicleState:e=>{var t;C(null!=(t=null==e?void 0:e.map(e=>String(e.value)))?t:[]),tj("Состояние транспорта",e)},handleChangeBorrower:e=>{var t;y(null!=(t=null==e?void 0:e.map(e=>String(e.value)))?t:[]),tj("Категория заемщикаа",e)},handleChangeLoan:e=>{var t;N(null!=(t=null==e?void 0:e.map(e=>String(e.value)))?t:[]),tj("Обеспечение",e)},handleChangeBanks:e=>{var t;T(null!=(t=null==e?void 0:e.map(e=>Number(e.value)))?t:[]),tj("Банки",e)}}),[T,y,b,N,d,C,g]),en=(0,i.useMemo)(()=>({insuranceNeed:L,stateCoFinancing:I,notFirstPayment:E}),[L,E,I]),ei=(0,i.useCallback)((e,t)=>{switch(e){case"insuranceNeed":F(t);break;case"notFirstPayment":R(t);break;case"stateCoFinancing":U(t)}},[F,R,U]);return(0,a.jsx)(tA.K,{count:t.count,isMobile:l,isOpen:t.isOpenModal,pageUrl:j.h.AUTOCREDIT,title:"Все параметры",onCLickShow:Q,onClose:r,onClickReset:s,isLoading:w,children:(0,a.jsxs)("div",{className:tk().wrapper,children:[(0,a.jsxs)("div",{className:tk().fields,children:[(0,a.jsx)(tg.F,{className:tk().field,label:"Сумма кредита",value:u,onChange:O}),(0,a.jsx)(tg.F,{label:"Первый взнос",value:c,rightLabel:"".concat(P,"%").replace(".",","),caption:P>100?eP:void 0,state:P>100?"error":void 0,onChange:V}),(0,a.jsx)(o.l6,{value:q,onChange:G,label:"Срок",optionValue:"value",optionLabel:"label",options:eI}),(0,a.jsx)(tg.F,{label:"Ежемесячный платеж до",value:m,onChange:W}),(0,a.jsx)(o.l6,{value:B.length>0?B:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,onChange:$,multiple:!0,label:"Подтверждение дохода",optionValue:"value",optionLabel:"label",options:eL}),(0,a.jsx)(o.l6,{value:J.length>0?J:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,multiple:!0,onChange:Y,optionValue:"value",optionLabel:"label",label:"Тип транспорта",options:eF}),(0,a.jsx)(o.l6,{value:K.length>0?K:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,multiple:!0,onChange:ee,optionValue:"value",optionLabel:"label",label:"Состояние транспорта",options:eM}),(0,a.jsx)(o.l6,{value:Z.length>0?Z:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,multiple:!0,optionValue:"value",optionLabel:"label",onChange:et,label:"Категория заемщика",options:eD}),(0,a.jsx)(o.l6,{value:z.length>0?z:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,multiple:!0,optionValue:"value",optionLabel:"label",onChange:el,label:"Обеспечение",options:eE}),(0,a.jsx)(o.l6,{value:X.length>0?X:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,multiple:!0,onChange:ea,optionValue:"value",optionLabel:"label",label:"Банки",options:n})]}),(0,a.jsxs)("div",{className:tk().checkboxWrapper,children:[(0,a.jsx)("p",{className:tk().title,children:"Дополнительно:"}),(0,a.jsx)(tv,{className:tk().dops,checkedState:en,onChange:ei}),(0,a.jsx)("p",{className:(0,S.A)(tk().title,tk().titleSort),children:"Сортировать"}),eR.map(e=>(0,a.jsx)(o.sx,{label:e.label,name:e.value,value:e.value,checked:e.value===D,onChange:()=>M(e.value)},e.value))]})]})})};async function tS(e,t,l){let a=new URLSearchParams;a.set("tag_url",e),void 0!==t&&a.set("region",t),void 0!==l&&a.set("town",l);let{data:n,error:i}=await (0,ek.Q)("/money_data/AutoCreditRegion.json?".concat(a));if(i||null===n)throw Error(null!=i?i:"Ошибка загрузки данных");return{...n,posts:(0,eS.nO)(n.posts)}}var tw=l(48673);async function tL(e){let t=await (0,e9.zy)("AutoCredits.json?".concat("url","=").concat(encodeURIComponent(e)));if(1!==t.length)throw new eT.m_("AutoCredits tag not found: ".concat(e));return function(e){let{url:t,name:l,tag_name:a,text:n,filter:i,default:o,region_page:r}=e,s={url:t,name:l,tag_name:a,text:n,filter:i,default:o};if(null!==r){let{region_titles:e,town_titles:t,region_content:l,town_content:a}=r;s.region_page={region_titles:e,town_titles:t,region_content:l,town_content:a}}return s}(t[0])}new e3.A(tL);var tI=l(67221),tF=l(21921),tU=l(82596),tM=l(50261),tD=l(72080),tE=l(47052),tR=l(38200),tP=l(8868),tO=l(41329),tV=l(54926),tW=l(27964),tq=l(27116);let tH=(0,i.memo)(e=>{let t=function(e){let{name:t,description:l,offers:a,offersCount:n}=e,{mainBaseUrl:i}=(0,eu.UK)(),{asPath:o}=(0,em.useRouter)();if(0===a.length)return;let r=(0,tO.l)({url:"".concat(i).concat(o),priceCurrency:"RUB",offers:a,getLowPrice:e=>{let{amount:t}=e;return""!==t.from?Number(t.from):1e4},getHighPrice:e=>{let{amount:t}=e;return void 0!==t.to&&""!==t.to?Number(t.to):void 0},offerCount:n});return(0,tW.Z)({name:t,description:l,image:"".concat(i).concat(tP.au),offers:r,aggregateRating:(0,tV.E)({ratingValue:4.9,reviewCount:1945,bestRating:5,worstRating:1})})}(e);return void 0===t?null:(0,a.jsx)(tq.S,{schema:t})});tH.displayName="AutoCreditOffersSchema";var tB=l(36012),tJ=l(3187),tK=l(24323),tZ=l(58699),tz=l(162),tX=l(64998),tQ=l(79790),tG=l(18258),t$=l(3891),tY=l.n(t$);let t0=e=>{var t;let l=(null==e||null==(t=e.currentTarget)?void 0:t.textContent)?(0,$.y)(e.currentTarget.textContent):"glavnaya";(0,G.o)({event:"data-event",eventAction:"click_link_".concat(l),eventCategory:j.h.AUTOCREDIT})},t1=[(0,a.jsx)(i.Fragment,{children:"Используйте фильтры для указания желаемых параметров: суммы, срока и формы выдачи"},0),(0,a.jsx)(i.Fragment,{children:"Изучите и выберите подходящее предложение"},1),(0,a.jsx)(i.Fragment,{children:"Перейдите к оформлению"},2),(0,a.jsx)(i.Fragment,{children:"Заполните анкету, дождитесь одобрения и получите деньги любым удобным для вас способом"},3)],t2=e=>{var t,l,n,r,u,p,v;let{offers:m,count:_,tag:b,tags:h,townDublicates:g,posts:f,regions:C,banks:x,title:y,subtitle:A,description:N,expertQuote:k,experts:T,support:w}=e,L=(0,eh.sw)(),{region:I,town:F}=(0,ec.z)(),[U,M]=(0,i.useState)(k),{asPath:D}=(0,em.useRouter)(),E=null!=(l=null==(t=D.split("/").find(e=>e.includes("teg_")))?void 0:t.slice(4))?l:"DEFAULT",R=function(e,t){let[l,a]=(0,i.useState)(e);return(0,tw.w5)(()=>{(0,e9.pY)("autocredits/tag?".concat("url","=").concat(t)).then(a)},[a,t]),l}(b,E),P=function(e,t,l,a){let[n,o]=(0,i.useState)(e);return(0,tw.w5)(()=>{tS(t,l,a).then(e=>{let{posts:t}=e;return o(t)})},[t,l,a]),n}(f,E,null==I?void 0:I.url,null==F?void 0:F.url),O=(e=>{var t,l,a,n;let{region:o,tag:r,town:s,init:u}=e,{asPath:c}=(0,em.useRouter)(),d=(0,i.useMemo)(()=>((e,t)=>{var l,a,n,i,o,r,s;let u=(0,e_.$)(e),{page:c}=u,d=String(null!=(a=null!=(l=u.amount)?l:null==t?void 0:t.filter.amount)?a:""),p=String(null!=(i=null!=(n=u.first_payment)?n:null==t?void 0:t.filter.first_payment)?i:""),v=String(null!=(r=null!=(o=u.period)?o:null==t?void 0:t.filter.period)?r:""),m=String(null!=(s=u.payment)?s:""),_=null==t?void 0:t.default;return{amount:d&&!isNaN(+d)?d:void 0,firstPayment:p&&!isNaN(+p)?p:void 0,period:v&&!isNaN(+v)?+v:void 0,payment:m&&!isNaN(+m)?m:void 0,vehicleType:void 0,vehicleState:!_&&(null==t?void 0:t.filter.vehicle_state)?t.filter.vehicle_state:void 0,borrower:void 0,loan:!_&&(null==t?void 0:t.filter.loans)?t.filter.loans:void 0,insuranceNeed:_||(null==t?void 0:t.filter.insurance)===void 0?void 0:(null==t?void 0:t.filter.insurance)===1,stateCoFinancing:_||(null==t?void 0:t.filter.state_co_financing)===void 0?void 0:(null==t?void 0:t.filter.state_co_financing)===1,incomeProof:!_&&(null==t?void 0:t.filter.proof_income)?t.filter.proof_income:void 0,page:Number(c)||1}})(c,r),[c,r]),p=(0,i.useRef)(null),[v,m]=(0,i.useState)(void 0!==d.amount?Number(d.amount):void 0),[_,b]=(0,i.useState)(void 0!==d.firstPayment?Number(d.firstPayment):void 0),[h,g]=(0,i.useState)(void 0!==d.payment?Number(d.payment):void 0),f=((e,t)=>{if(isNaN(e)||isNaN(t)||0===e||0===t)return 0;let l=Number(t)/(Number(e)/100);return Number.isInteger(l)||(l=Number(l.toFixed(5))),l})(null!=v?v:0,null!=_?_:0),C=v&&v>0?(0,V.r)(null!=f?f:0,1):0,{query:x}=(0,em.useRouter)(),[y,A]=(0,i.useState)(Number(x.page)||1),[j,N]=(0,i.useState)(u.title),[k,T]=(0,i.useState)(u.subtitle),[S,w]=(0,i.useState)(u.description),[L,I]=(0,i.useState)(!1),[F,U]=(0,i.useState)(!1),[M,D]=(0,i.useState)(null!=(t=u.count)?t:0),[E,R]=(0,i.useState)(null!=(l=u.count)?l:0),[P,O]=(0,i.useState)(!1),[W,q]=(0,i.useState)(null!=(a=u.list)?a:[]),[H,B]=(0,i.useState)(d.period),[J,K]=(0,i.useState)(d.vehicleType),[Z,z]=(0,i.useState)(d.vehicleState),[X,Q]=(0,i.useState)(d.borrower),[G,$]=(0,i.useState)(d.loan),[Y,ee]=(0,i.useState)([]),[et,el]=(0,i.useState)(d.insuranceNeed),[ea,en]=(0,i.useState)(d.stateCoFinancing),[ei,eo]=(0,i.useState)(eR[0].value),[er,es]=(0,i.useState)(!1),[eu,ec]=(0,i.useState)(null!=(n=null==r?void 0:r.filter.proof_income)?n:void 0),[ed,ep]=(0,i.useState)(!1),ev=(0,i.useRef)(!0),eb=(0,i.useCallback)(()=>{O(e=>!e)},[]),eh=(0,i.useCallback)(async e=>{var t,l,a,n,i,u;p.current&&p.current.abort(),p.current=new AbortController;let c={amount:void 0!==v?String(v):"",firstPayment:void 0!==v?f:void 0,period:H,loan:G,incomeProof:eu,insuranceNeed:et,stateCoFinancing:ea,vehicleState:Z,vehicleType:J,bank:Y,order:ed?"desc":"asc",sort:ei,payment:void 0!==h?String(h):void 0,borrower:X};e>1?(c.page=e,U(!0)):I(!0);let d=await e5({tagUrl:null==r?void 0:r.url,regionUrl:null==o?void 0:o.url,townUrl:null==s?void 0:s.url,...c},p.current.signal),m=null!=(t=null==d?void 0:d.offers)?t:[],_=null!=(l=null==d?void 0:d.title)?l:"",b=null!=(a=null==d?void 0:d.subtitle)?a:"",g=null!=(n=null==d?void 0:d.description)?n:"";D(null!=(i=null==d?void 0:d.count)?i:0),R(null!=(u=null==d?void 0:d.totalCount)?u:0),N(_),T(b),w(g),q(t=>e>1?[...t,...m]:m),U(!1),I(!1)},[v,Y,X,f,eu,ed,et,G,h,H,o,ei,ea,r,s,Z,J]),eg=(0,i.useCallback)(()=>{A(e=>{let t=e+1;return eh(t),t})},[eh]),ef=(0,i.useCallback)(e=>{m(void 0!==e&&0!==e?Math.abs(e):void 0)},[]),eC=(0,i.useCallback)(e=>{b(void 0!==e&&0!==e?Math.abs(e):void 0)},[]),ex=(0,i.useCallback)(e=>{g(void 0!==e&&0!==e?Math.abs(e):void 0)},[]);(0,i.useEffect)(()=>{ef(void 0!==d.amount?Number(d.amount):void 0),eC(void 0!==d.firstPayment?Number(d.firstPayment):void 0),ex(void 0!==d.payment?Number(d.payment):void 0),K(d.vehicleType),z(d.vehicleState),B(d.period),Q(d.borrower),$(d.loan),el(d.insuranceNeed),en(d.stateCoFinancing),ec(d.incomeProof)},[d.amount,d.borrower,d.firstPayment,d.incomeProof,d.insuranceNeed,d.loan,d.payment,d.period,d.stateCoFinancing,d.vehicleState,d.vehicleType,ef,eC,ex,r]),(0,i.useEffect)(()=>{es(0===_)},[_]);let ey=(0,i.useCallback)(()=>{m(void 0),b(void 0),g(void 0),B(void 0),q([]),K(void 0),z(void 0),Q(void 0),$(void 0),ee([]),el(void 0),en(void 0),ec(void 0),ep(!1)},[]);return(0,tI.s)(()=>{ev.current?ev.current=!1:eh(y)},[eh],300),{isLoading:L,isPageLoading:F,title:j,subtitle:k,description:S,handleLoadMore:eg,autoCredits:W,count:M,totalCount:E,page:y,period:H,setPeriod:B,amount:v,firstPayment:_,isOpenModal:P,setIsOpenModal:O,vehicleType:J,setVehicleType:K,insuranceNeed:et,stateCoFinancing:ea,setInsuranceNeed:el,setStateCoFinancing:en,handleToggleModal:eb,resetFilter:ey,payment:h,incomeProof:eu,setIncomeProof:ec,vehicleState:Z,setVehicleState:z,borrower:X,setBorrower:Q,loan:G,setLoan:$,banks:Y,setBank:ee,sort:ei,setSort:eo,increaseSort:ed,setIncreaseSort:ep,notFirstPayment:er,setNotFirstPayment:es,firstPaymentPercent:C,handleChangeFirstPayment:eC,handleChangeAmount:ef,handleChangePayment:ex}})({region:I,town:F,tag:R,init:{count:_,list:m,subtitle:A,title:y,description:N}}),W=(0,tJ.m)(D);(0,tw.w5)(()=>{(0,tz.Zs)(W).then(M)},[W]);let q=(0,tE.Y)(),H=(0,tR.G)(),B=(0,i.useMemo)(()=>(0,tU.H)(x,O.banks),[x,O.banks]),{mainBaseUrl:J}=(0,eu.UK)(),K=R&&"DEFAULT"!==R.tag_name?null==R?void 0:R.name:"Автокредиты",Z=(null==F?void 0:F.name_p)||(null==I?void 0:I.name_p)?" в ".concat((null==F?void 0:F.name_p)||(null==I?void 0:I.name_p)):"",z="".concat((null==I?void 0:I.url)?"/reg_".concat(null==I?void 0:I.url):"").concat((null==F?void 0:F.url)?"/".concat(null==F?void 0:F.url):""),X=(()=>{let e=R&&"DEFAULT"!==R.tag_name?',{"@type":"ListItem","position":3,"name":"&#128181 '.concat(K).concat(Z,'","item":"').concat(J).concat(D,'"}'):"",t='{"@type":"ListItem","position":1,"name":"Финуслуги","item":"'.concat(J,'"}'),l='{"@type":"ListItem","position":2,"name":"Автокредиты'.concat(Z,'","item":"').concat(J,"/").concat(j.h.AUTOCREDIT).concat(z,'"}');return"{".concat('"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":['.concat(t),",").concat(l).concat(e,"]}")})(),Q=(0,i.useMemo)(()=>{let e=[];e.push(...(0,tG.N)(j.h.AUTOCREDIT,C,R,I,F,{nominativeCase:"Автокредиты",genitiveCase:"автокредитов"}));let t=h.reduce((e,t)=>{if(void 0===t.url_redirect){let l=(0,tD.b)(j.h.AUTOCREDIT,t,I,F),a=(0,tB.AP)(l,t.name);e.push(a)}return e},[]);if(e.push({title:"Виды автокредитов",text:(0,a.jsx)(tB.oL,{children:t})}),I){var l,n;e.push(...null!=(n=null==(l=R.region_page)?void 0:l.town_content.map(e=>({title:(0,tM.w)(e.title,I,F,g,void 0,R),text:(0,tM.w)(e.content.map(tF.Zf).join(""),I,F,g,void 0,R)})))?n:[])}else e.push(...R.text.map(e=>({title:(0,tM.w)(e.title,I,F,g,void 0,R),text:(0,tM.w)(e.content.map(tF.Zf).join(""),I,F,g,void 0,R)})));return e},[I,h,C,R,F,g]);return(0,a.jsxs)("main",{className:tY().page,children:[(0,a.jsx)(c.I,{title:null!=(n=O.title)?n:"",description:null!=(r=O.description)?r:""}),(0,a.jsx)(ef.t,{}),(0,a.jsx)("div",{className:(0,S.A)(tY().background,"bg-".concat(H))}),(0,a.jsx)("div",{className:tY().navigationWrapper,children:(0,a.jsxs)(d.J,{children:[(0,a.jsx)(o.BI,{className:tY().breadcrumbs,items:(()=>{let e=[{label:"Главная",href:"/"},{label:"Автокредиты".concat(Z),href:"/".concat(j.h.AUTOCREDIT).concat(z)}];return"DEFAULT"!==E&&e.push({label:"".concat(K).concat(Z),href:"/".concat(j.h.AUTOCREDIT,"/teg_").concat(E).concat(z)}),e.pop(),e.push({label:"".concat(K).concat((null==R?void 0:R.default)?Z:"")}),e})(),onClick:t0}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:X}})]})}),(0,a.jsx)(d.J,{children:(0,a.jsx)(ty,{region:null!=I?I:null,town:null!=F?F:null,isMobile:L,tag:R,filter:O,subtitle:null!=(u=O.subtitle)?u:"",adFoxConfig:q})}),(0,a.jsx)(e6,{banks:x,bankOptions:B,filter:O,isMobile:L,town:F,region:I}),(0,a.jsx)(tH,{name:null!=(p=O.title)?p:"",description:null!=(v=O.description)?v:"",offers:O.autoCredits,offersCount:_}),(0,a.jsx)(tK.I,{steps:t1,variant:"secondary"}),void 0!==U&&(0,a.jsx)(tX.V,{quote:U}),void 0!==T&&(0,a.jsx)("section",{className:tY().experts,children:(0,a.jsx)(d.J,{children:(0,a.jsx)(tQ.o,{heading:"Автокредиты",experts:T})})}),(0,a.jsx)(tZ.f,{type:"bank"}),(0,a.jsx)(ey.m,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,a.jsx)(s(),{...e}),dataLayerPush:G.o,questions:Q,eventCategory:"cards_support_block",href:"".concat(J,"/help"),checkAllText:"Читать все вопросы про автокредиты"}),(0,a.jsx)(tT,{bankOptions:B,isMobile:L,filter:O}),P.length>0&&(0,a.jsx)(eC.C,{posts:P,eventCategory:j.h.AUTOCREDIT}),(0,a.jsx)(ex.E,{value:w})]})};function t6(e){let{layout:t,root:l,banks:n,offers:i,posts:o,tags:r,tag:s,expertQuote:u,experts:c,support:d}=e;return(0,a.jsx)(tt.P,{data:t,children:(0,a.jsx)(t2,{regions:l.regions,townDublicates:l.town_dublicates,banks:n,posts:o,description:i.description,offers:i.offers,count:i.count,tags:r,tag:s,totalCount:i.totalCount,title:i.title,subtitle:i.subtitle,expertQuote:null!=u?u:void 0,experts:null!=c?c:void 0,support:d})})}l(46215),l(99514),l(44860);var t8=l(48523),t5=l(36612),t9=!0;let t3=(0,i.memo)(function(e){var t,l;return(0,a.jsx)(n.C,{children:e.isShowcase?(0,a.jsx)(t8.N,{region:null!=(t=e.region)?t:void 0,town:null!=(l=e.town)?l:void 0,children:(0,a.jsx)(t6,{...e})}):(0,a.jsx)(t5.K,{children:(0,a.jsx)(tl,{...e})})})})},99689:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});let a={src:"/kredity/assets/_next/static/media/banner-4.fc5b15be.svg",height:222,width:324,blurWidth:0,blurHeight:0}}},e=>{e.O(0,[7492,2224,8325,7404,4587,8229,5695,2888,7586,154,4148,3081,1979,4681,636,6593,8792],()=>e(e.s=80976)),_N_E=e.O()}]);