(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[434],{9677:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/avtokredity/[[...segments]]",function(){return l(12411)}])},94781:function(e,t){"use strict";t.Z={src:"/kredity/assets/_next/static/media/banner-2.9368ea40.svg",height:218,width:318,blurWidth:0,blurHeight:0}},93842:function(e,t){"use strict";t.Z={src:"/kredity/assets/_next/static/media/banner-4.fc5b15be.svg",height:222,width:324,blurWidth:0,blurHeight:0}},58484:function(e,t,l){"use strict";l.d(t,{V:function(){return p}});var a=l(85893),n=l(44076),i=l(86010),o=l(67294),s=l(65737),r=l(21308),c=l(94347),u=l(83226),d=l.n(u);let p=(0,o.memo)(e=>{let{region:t,town:l,subtitle:o,title:u,mainPageUrl:p}=e,{town:v,region:m}=(0,c.T)(),{handleToggleModal:_}=(0,n.ar)(),b=e=>{(0,s.l)({event:"data-event",eventAction:e,eventCategory:p})};return(0,a.jsxs)("div",{className:(0,i.Z)(d().titleWrapper,d().newTitle),children:[(0,a.jsxs)("h1",{className:d().title,children:[u," ",((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),b("show_pop_up_city_modal")},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)(r.N,{tag:"p",className:d().subtitle,children:o})]})});p.displayName="RegionTitle"},77624:function(e,t,l){"use strict";l.d(t,{n:function(){return a}});let a=(e,t)=>{var l;let a=null!==(l=null==t?void 0:t.map(e=>+e))&&void 0!==l?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}))}},12411:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return le},default:function(){return lt}});var a,n,i=l(85893),o=l(44076),s=l(67294),r=l(34588),c=l(41664),u=l.n(c),d=l(73172),p=l(84444),v=l(19438),m=l(72335),_=l(54663),b=l(20070),h=l(57696);let g=[{id:1,label:"Условия",name:h.cQ.conditions},{id:2,label:"Требования к заемщику",name:h.cQ.requirements},{id:3,label:"Требование к ТС",name:h.cQ.requirementsVehicles},{id:4,label:"Погашение",name:h.cQ.redemption}];var f=l(44727);let x=e=>{let{data:t}=e,l=(0,s.useMemo)(()=>(0,b.m8)(t),[t]),a=(0,s.useMemo)(()=>g.filter(e=>l[e.name].some(e=>(0,f.B)(e.value))),[l]);return{tabsContent:l,tabsList:a}},C=(0,s.memo)(e=>{var t,l;let{data:a,bank:n,pageUrl:o}=e,{tabsContent:s,tabsList:r}=x({data:a});return(0,i.jsx)(m.z,{scrollBlockId:_.q6,pageUrl:o,seoText:(null==a?void 0:a.short_description)&&(null==a?void 0:a.short_description.length)>5?null==a?void 0:a.short_description:void 0,title:"Об автокредите",offerUpdateData:null==a?void 0:a.m_updated_at,bank:{logoMobile:null==n?void 0:n.logo_mob,description:null==n?void 0:n.short_description,url:"/banki/".concat(null==n?void 0:n.url),name:null==n?void 0:n.name,creditRating:null==n?void 0:n.credit_rating,netAssetsPlace:null==n?void 0:null===(t=n.ratings)||void 0===t?void 0:t.net_assets_place,netProfitRating:null==n?void 0:n.net_profit_rating},tabsList:r,tabsContent:s,aboutCompanyLabel:"О банке",site:null!==(l=null==n?void 0:n.site.title)&&void 0!==l?l:void 0})});C.displayName="AutoCreditAbout";var y=l(17722),j=l(94781),N=l(93842),k=l(64062);(a=n||(n={})).LEAD="lead",a.MASS="mass";var A=l(73897),T=l(5753),w=l.n(T);let S=e=>{let{url:t,offerType:l,isMobile:a,className:o}=e,r=(0,s.useMemo)(()=>[{id:3,image:N.Z,text:"Перейдите на сайт банка,<br /> чтобы оформить заявку",types:[n.LEAD],buttonText:"Оформить на сайте банка",link:t},{id:4,image:y.Z,text:n.LEAD?"Этот кредит нельзя открыть через Финуслуги":"Этот автокредит сейчас нельзя открыть онлайн на Финуслугах",types:[n.LEAD,n.MASS],buttonText:"Выбрать другой автокредит",link:"/avtokredity"},{id:5,image:j.Z,text:"Чтобы оформить автокредит, обратитесь в банк",types:[n.MASS]}].filter(e=>e.types.find(e=>e===l)),[t,l]);return(0,i.jsx)("div",{className:w().container,children:(0,i.jsx)(k.B,{className:o,title:"Где оформить автокредит",pageUrl:A.u.AUTOCREDIT,id:_.VT,isMobile:a,slides:r})})};var L=l(86010),D=l(77019),I=l(24443),M=l(28644),P=l(48766),R=l(26024),F=l(90999),U=l(72798),O=l(17950),E=l(41262),$=l(66566),W=l(39918),Z=l(37220),B=l(6584),V=l(94466),z=l(93478),q=l(21172),H=l.n(q);let Q="Оформить на сайте банка",X="Где оформить автокредит",J=e=>{var t,l,a;let{offerType:o,bank:c,data:u,isMobile:d,calculator:p}=e,[m,b]=(0,s.useState)(!1),h=(0,s.useRef)(null),g=(0,s.useMemo)(()=>{let{domestic_new:e,domestic_old:t,foreign_new:l,foreign_old:a}=u.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?"Любое б/у":"Любое":"Отечественная новая":"Отечественная б/у":"Иномарка б/у":"Иномарка новая"},[u.vehicle_state]),f=(0,s.useCallback)(()=>{h.current&&h.current.focus()},[]),x=(0,s.useCallback)(e=>{e&&((0,W.D)({eventCategory:A.u.AUTOCREDIT,eventAction:W.i.filterCatalog,eventLabel:"Платеж",eventValue:e.label}),p.setPaymentTypeValue(e.value))},[p]),C=(0,s.useMemo)(()=>({value:p.period,max:p.periodMax,min:p.periodMin===p.periodMax?p.periodMin-1:p.periodMin,onChange:e=>{e=null!=e?e:p.periodMin,p.periodMin!==p.periodMax&&p.setPeriod(e)},step:1,ticks:[{label:(0,E.H3)(p.periodMin),value:p.periodMin},{label:(0,E.H3)(p.periodMax),value:p.periodMax}],unit:[B.mp.ONE,B.mp.FEW,B.mp.MANY]}),[p]),y=(0,s.useMemo)(()=>p.paymentTypeOptions.filter(e=>e.value===p.paymentTypeValue),[p.paymentTypeOptions,p.paymentTypeValue]),j=(0,s.useMemo)(()=>[{id:1,label:(0,E.S_)(p.period)},{id:2,label:"".concat(p.amount)}],[p.amount,p.period]),N=(0,s.useMemo)(()=>{var e;let t=(null===(e=u.application_term.custom_text)||void 0===e?void 0:e.from)!==void 0?(0,P.B)(u.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,$.$)("".concat(n,"-").concat(a,"-").concat(i)))},[null===(t=u.application_term.custom_text)||void 0===t?void 0:t.from]),k=p.amount,T=(0,s.useMemo)(()=>{let e=p.firstPayment,t=p.period,l=u.vehicle_type.text,a=p.paymentTypeValue,n=[],o=Number(e)/(Number(k)/100);Number.isInteger(o)||(o=Number(o.toFixed(5)));let s=k?(0,Z.z)(o,1):0;n.push({label:"Первый взнос",value:"".concat(s,"%").replace(".",",")}),n.push({label:"Срок погашения",value:(0,E.S_)(t)});let r=u.full_price;if(r){let e=u.interest_rate;n.push({label:"ПСК",value:(0,D.W)(r),description:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n    Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."},{label:"Процентная ставка",value:(0,V.sz)(Number(e.from),Number(e.to))})}return n.push({label:"Тип&#160;ТС",value:l},{label:"Состояние&#160;ТС",value:g,description:"Некоторые банки указывают, что получить кредит можно только на новый автомобиль, а для других это не принципиально."}),a&&n.push({label:"Тип платежа",value:a===O.T.annuity?"Аннуитетный":"Дифференцированный",description:(0,i.jsx)("div",{className:H().tooltipContent,children:(0,i.jsx)(R.a,{type:a})})}),n},[p.firstPayment,p.period,p.paymentTypeValue,u.vehicle_type.text,u.full_price,u.interest_rate,g,k]);return(0,i.jsxs)(v.t,{className:(0,L.Z)(H().container,H().containerFull),children:[(0,i.jsx)(F.F,{url:u.url,bank:{logoMob:null==c?void 0:c.logo_mob,url:"/banki/".concat(null==c?void 0:c.url),name:null!==(l=null==c?void 0:c.name)&&void 0!==l?l:u.bank_name},pageUrl:A.u.AUTOCREDIT,title:"Автокредит \xab".concat(u.title,"\xbb от ").concat(null!==(a=null==c?void 0:c.name)&&void 0!==a?a:u.bank_name),isSmall:void 0,isMobile:d,tagTheme:"red",className:H().promo}),(0,i.jsxs)("div",{className:H().left,children:[(0,i.jsx)(I.y,{isMobile:d,title:"Настройка автокредита",pageUrl:A.u.AUTOCREDIT,infoLink:{isShow:!d,text:"Подробнее об автокредите",idScrollBlock:_.q6,offPadding:!0,widthMaxContent:!0},items:[{elements:[{type:"moneyInput",props:{label:"Сумма",value:p.amount,onChange:p.setAmount,onFocus:()=>b(!0)}}]},{elements:[{type:"moneyInput",props:{label:"Первый взнос",value:p.firstPayment,onChange:p.setFirstPayment,onFocus:()=>b(!0)}}]},{elements:[{type:"inputRange",props:{label:"Срок погашения",...C}}]},{elements:[{type:"select",isHidden:!p.paymentTypeValue||p.paymentTypeOptions.length<=1,desription:p.paymentTypeValue&&(0,i.jsx)(R.a,{className:H().typeDescription,type:p.paymentTypeValue}),props:{label:"Платеж",options:p.paymentTypeOptions,onChange:x,value:y}}]}],chips:j,isShowChips:d&&!!(null==j?void 0:j.length)&&!m,isExpandSettings:m,onToggleSettings:()=>b(e=>!e)}),(0,i.jsx)(U.S,{isSmall:!0,className:H().qrDesc})]}),(0,i.jsxs)("div",{className:H().right,children:[(0,i.jsx)(M.y,{captionTitle:N,pageUrl:A.u.AUTOCREDIT,onEdit:f,amount:Number(p.amount),disclaimer:"Предварительные условия. Не оферта",tag:u.online_application.commercial_desc,footerActions:(0,i.jsxs)(i.Fragment,{children:[o===n.LEAD&&(0,i.jsx)(r.zx,{as:"a",onClick:()=>{(0,W.D)({eventCategory:A.u.AUTOCREDIT,eventAction:W.i.link,eventActionText:Q,eventLabel:u.id})},href:u.online_application.url,target:"_blank",className:H().button,children:Q}),(0,i.jsx)(r.zx,{onClick:()=>{(0,W.D)({eventCategory:A.u.AUTOCREDIT,eventAction:W.i.button,eventActionText:X}),(0,z.l)(_.VT,{offset:d?0:-100,position:"top"})},className:H().button,variant:"secondary",children:X})]}),valuesList:T}),(0,i.jsx)(U.S,{isSmall:!0,className:H().qrMobile})]})]})};var G=l(25675),K=l.n(G),Y=l(65737),ee=l(40741),et=l(30976),el=l(73654),ea=l.n(el);let en=(0,s.memo)(e=>{var t,l;let{data:a,detailData:n,className:o,onDetailInfoClick:r,onClick:c}=e,u=[],d=(0,s.useRef)(null),p=(0,s.useRef)(!1),v=(0,s.useRef)(null),m={text:"",caption:""},[_,b]=(null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.online_application.commercial)===1?["Оформить",n.data.online_application.url]:["Подробнее",a.url],h=null==n?void 0:null===(l=n.data)||void 0===l?void 0:l.full_price;h&&(m.caption="ПСК",m.text=(0,D.W)(h),m.tooltipText="ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n        Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре.");let g={text:(0,V.dN)({from:a.amountFrom,to:a.amountTo},{currency:a.currency}),caption:"Сумма"},f={text:"от ".concat((0,V.uf)(a.payment),"%"),caption:"Первый взнос"};u.push({label:"Заявка через сайт банка",variant:"primary"}),a.isKascko&&u.push({label:"Потребуется каско",variant:"primary"}),a.isPermanentRegistation&&u.push({label:"Постоянная регистрация",variant:"primary"});let x=e=>{(0,Y.l)({event:"data-event",eventAction:e,eventCategory:A.u.AUTOCREDIT,eventLabel:a.id,eventValue:a.eventValue}),null==c||c(a)},C=(0,s.useCallback)(e=>{let[t]=e;1===t.intersectionRatio&&!p.current&&((0,Y.l)({event:"data-event",eventAction:"show_in_catalog",eventCategory:A.u.AUTOCREDIT,eventLabel:a.id}),p.current=!0,d.current&&v.current&&d.current.unobserve(v.current))},[a.id]);return(0,s.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,i.jsx)("div",{ref:v,className:o,onClick:()=>x("click_button_".concat((0,ee.b)("Подать заявку"))),children:(0,i.jsx)(et.J,{icon:a.logo?(0,i.jsx)("div",{className:ea().logo,children:(0,i.jsx)(K(),{width:56,height:56,src:a.logo,alt:"logo"})}):(0,i.jsx)("div",{className:ea().placeholderLogo}),companyName:a.bankName,productName:a.title,productUrl:a.url,buttonText:_,buttonUrl:b,tags:u,advantageAmountFrom:m,advantageAmountTo:f,advantageBonus:g,onDetailInfoClick:()=>{r(a),(0,W.D)({eventCategory:A.u.AUTOCREDIT,eventAction:W.i.button,eventActionText:"open_modal"})},className:ea().plate})})});en.displayName="AutoCreditListItem";var ei=l(13442),eo=l(84135),es=l(89504),er=l(32244);let ec=e=>(null==e?void 0:e.online_application.commercial)===1?n.LEAD:n.MASS,eu=e=>{var t,l,a,n,i,o;let{banks:s,autoCredit:r,period:c}=e,u="/".concat(A.u.AUTOCREDIT,"/").concat(r.url),d="",p="",v=s.find(e=>+r.bank_id==+e.id);return 1===r.online_application.commercial&&3!==r.online_application.type&&(d="Подача заявки на сайте банка",p="non_commercial"),3===r.online_application.type?(d="Открытие онлайн на Финуслугах",p="platform"):1!==r.online_application.commercial&&3!==r.online_application.type&&(d="Открытие в банке"),{id:r.id,bankName:null!==(l=null==v?void 0:v.name)&&void 0!==l?l:r.bank_name,bankId:null!==(a=null==v?void 0:v.id)&&void 0!==a?a:"",isCard:!1,logo:null!==(n=null==v?void 0:v.logo_mob)&&void 0!==n?n:"",title:r.title,url:u,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?void 0:null===(t=v.legal_entities)||void 0===t?void 0:t[0].name),isKascko:1==+r.insurance_need.need,isPermanentRegistation:1==+r.registration_address.permanent,period:c||+r.period.to,rate:+r.interest_rate.from,rateTo:+r.interest_rate.to,payment:+r.first_payment.from||0,currency:"₽",detailUrl:"/".concat(A.u.AUTOCREDIT,"/").concat(r.url),notLoan:1===r.loan.not_required,incomeProof:0===r.income_proof.not_required,typeText:d,eventValue:p,serviceTooltip:null,amountFrom:Number(r.amount.from),amountTo:Number(r.amount.to),type:ec(r),site:{title:null!==(i=null==v?void 0:v.site.title)&&void 0!==i?i:null,url:null!==(o=null==v?void 0:v.site.url)&&void 0!==o?o:null}}};var ed=l(84053),ep=l(94347),ev=l(5569),em=l.n(ev);let e_=(0,s.memo)(e=>{let{bank:t,banks:l,currentCardId:a,autocredits:n,autocreditsFinuslugi:o,className:r}=e,{town:c}=(0,ep.T)(),[u,d]=(0,s.useState)(),p=(0,s.useCallback)(()=>{d(void 0)},[]),m=(0,s.useCallback)(e=>{(0,W.D)({eventCategory:A.u.AUTOCREDIT,eventAction:W.i.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},[]),_=(0,s.useMemo)(()=>{let e=n?n.filter(e=>e.id!==a):[];return(0,er.$)({productList:e,anotherList:e,count:es.NU})},[n,a]),b=(0,s.useMemo)(()=>{let e=o||[];return(0,er.$)({productList:e,anotherList:e,count:es.wo-_.length})},[_.length,o]),h=(0,s.useMemo)(()=>({bankList:_.map(e=>eu({banks:[t],autoCredit:e})),finuslugiList:b.map(e=>eu({banks:l,autoCredit:e}))}),[t,l,_,b]),g=(0,s.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)&&void 0!==l?l:"",logo:e.logo,url:null!==(a=e.url)&&void 0!==a?a:""}}},[_,b]),f=(0,s.useCallback)(e=>{d(g(e)),e&&(0,W.D)({eventCategory:A.u.AUTOCREDIT,eventAction:W.i.popup,eventActionText:e.title,eventLabel:e.id})},[g]),x="".concat((0,ed.ZR)().mainBaseUrl,"/banki/").concat(t.url,"/avtokredity").concat((null==c?void 0:c.url.length)?"/reg_"+c.url:"");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("section",{className:(0,L.Z)(em().container,r),children:[(0,i.jsx)("h3",{className:em().title,children:"Другие автокредиты"}),(0,i.jsxs)(v.t,{children:[!!h.bankList.length&&(0,i.jsxs)("section",{className:em().offersListContainer,children:[(0,i.jsxs)("p",{className:em().listTitle,children:["Автокредиты от ",t.name]}),h.bankList.map(e=>(0,i.jsx)(en,{onDetailInfoClick:f,className:em().listItem,data:e,onClick:m,text:"Подать заявку",detailData:{data:g(e),mainPageUrl:A.u.AUTOCREDIT}},e.url)),(0,i.jsx)(ei.j,{offPadding:!0,text:"Bсе предложения от банка",href:x,target:"_blank",iconColor:"light",mainPageUrl:A.u.AUTOCREDIT})]}),!!h.finuslugiList.length&&(0,i.jsxs)("section",{className:em().offersListContainer,children:[(0,i.jsx)("p",{className:em().listTitle,children:"Автокредиты на Финуслугах"}),h.finuslugiList.map(e=>(0,i.jsx)(en,{onDetailInfoClick:f,className:em().listItem,data:e,onClick:m,text:"Подать заявку",detailData:{data:g(e),mainPageUrl:A.u.AUTOCREDIT}},e.url)),(0,i.jsx)(ei.j,{offPadding:!0,text:"Bсе предложения на Финуслугах",href:"/avtokredity",target:"_blank",iconColor:"light",mainPageUrl:A.u.AUTOCREDIT})]})]})]}),(0,i.jsx)(eo.h,{data:u,isOpen:!!u,onClose:p,mainPageUrl:A.u.AUTOCREDIT})]})});e_.displayName="AutoCreditsList";var eb=l(11163),eh=l(82080);let eg=e=>Array.isArray(e)?e[0]:e,ef=e=>{var t,l,a,n,i,o;let{asPath:r}=(0,eb.useRouter)(),[c,u]=(0,s.useState)(Number(null!==(l=e.amount.from)&&void 0!==l?l:0)),[d,p]=(0,s.useState)(0),[v,m]=(0,s.useState)(Number(null!==(a=e.period.to)&&void 0!==a?a:1)),_=Number(null!==(n=e.period.from)&&void 0!==n?n:1),b=Number(null!==(i=e.period.to)&&void 0!==i?i:1),h=(0,s.useMemo)(()=>{let t=[];return 0!==e.repayment_procedure.annuity&&t.push({label:"Аннуитетный",value:O.T.annuity}),void 0!==e.repayment_procedure.differentiated&&0!==e.repayment_procedure.differentiated&&t.push({label:"Дифференцированный",value:O.T.differentiated}),t},[e.repayment_procedure]),[g,f]=(0,s.useState)(null!==(o=null===(t=h[0])||void 0===t?void 0:t.value)&&void 0!==o?o:null),x=(0,s.useCallback)(e=>{u(null!=e?e:0)},[]),C=(0,s.useCallback)(e=>{p(null!=e?e:0)},[]),y=(0,s.useMemo)(()=>({value:c,onChange:x}),[c,x]),j=(0,s.useMemo)(()=>({value:d,onChange:C}),[d,C]);return(0,s.useEffect)(()=>{let e=(0,eh.p)(r,"#"),t=eg(e.amount),l=eg(e.first_payment),a=eg(e.period);void 0!==t&&u(+t),void 0!==l&&p(+l);let n=Number(a);!Number.isNaN(n)&&n>=_&&n<=b&&m(n)},[]),(0,s.useMemo)(()=>({amount:c,setAmount:u,amountInputProperties:y,firstPayment:d,setFirstPayment:p,firstPaymentInputProperties:j,period:v,setPeriod:m,periodMin:_,periodMax:b,paymentTypeOptions:h,paymentTypeValue:g,setPaymentTypeValue:f}),[c,y,d,j,v,_,b,h,g])};var ex=l(54228),eC=l(51469),ey=l(71276),ej=l(53487),eN=l(37502),ek=l(44215),eA=l(56381),eT=l.n(eA);function ew(e){var t;let{offer:l,posts:a,questions:n,description:o,banks:s,refererTag:c,offers:m,offersFinuslugi:_,support:b}=e,h=ec(l),g=(0,ex.S0)(),f=ef(l),{region:x,town:y}=(0,ep.T)(),j=s.find(e=>Number(e.id)===l.bank_id),N=(null==n?void 0:n.map(e=>({title:e.title,text:e.text.map(e=>e.data.html).join(""),plainText:e.text.map(e=>(0,d.MK)(e.data.html)).join("").trim()})))||[],k="Автокредит \xab".concat(l.title,"\xbb от ").concat(null!==(t=null==j?void 0:j.name_r)&&void 0!==t?t:"");return(0,i.jsxs)("main",{className:eT().page,children:[(0,i.jsx)(p.N,{productId:String(l.id),title:k,description:null!=o?o:""}),(0,i.jsx)(ey.o,{}),(0,i.jsx)(eC.g,{questions:N}),(0,i.jsx)("div",{className:eT().navigationWrapper,children:(0,i.jsx)(v.t,{children:(0,i.jsx)(r.Oo,{className:eT().breadcrumbs,items:(()=>{var e;let t=(null==y?void 0:y.name_p)||(null==x?void 0:x.name_p)?" в ".concat((null==y?void 0:y.name_p)||(null==x?void 0:x.name_p)):"",a="".concat((null==x?void 0:x.url)?"/reg_".concat(null==x?void 0:x.url):"").concat((null==y?void 0:y.url)?"/".concat(null==y?void 0:y.url):""),n=[{label:"Главная",href:"/"},{label:"Автокредиты".concat(t),href:"/".concat(A.u.AUTOCREDIT).concat(a)}];return c&&n.push({label:"".concat(c.name).concat(t),href:"/".concat(A.u.AUTOCREDIT,"/teg_").concat(c.url).concat(a)}),n.push({label:"".concat(null!==(e=null==j?void 0:j.name)&&void 0!==e?e:l.bank_name," Автокредит ").concat(l.title)}),n})()})})}),(0,i.jsx)(J,{calculator:f,bank:j,offerType:h,data:l,isMobile:g}),(0,i.jsx)(v.t,{className:eT().about,children:(0,i.jsx)(C,{data:l,bank:j,pageUrl:A.u.AUTOCREDIT})}),(0,i.jsx)(S,{isMobile:g,offerType:h,url:l.online_application.url}),void 0!==j&&(0,i.jsx)(e_,{bank:j,banks:s,currentCardId:l.id,autocredits:m,autocreditsFinuslugi:_}),a.length>0&&(0,i.jsx)(ej.t,{posts:a,eventCategory:A.u.AUTOCREDIT}),(0,i.jsxs)("div",{className:eT().supportSection,children:[(0,i.jsx)(eN.B,{value:b}),(0,i.jsx)(ek.B,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,i.jsx)(u(),{...e}),dataLayerPush:Y.l,questions:N,eventCategory:"cards_support_block",href:"".concat((0,ed.ZR)().mainBaseUrl,"/help"),checkAllText:"Читать все вопросы про автокредиты"})]})]})}var eS=l(98670);l(93188);var eL=l(53850),eD=l(22504);let eI={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"},eM=[{value:"not_required",label:"Не требуется"},{value:"ndfl",label:"Справка 2-НДФЛ"},{value:"bank_form",label:"Справка по форме банка"},{value:"custom_form",label:"Альтернативные формы"}];A.u.AUTOCREDIT;let eP=[{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 лет"}],eR=[{value:"moto",label:"Мототранспорт"},{value:"car",label:"Легковое транспорт"},{value:"track",label:"Грузовое транспорт"},{value:"commercial",label:"Коммерческое транспорт"},{value:"water",label:"Водное транспорт"},{value:"custom",label:"Другое"}],eF=[{value:"moto",labelShort:"Мототранспорт"},{value:"car",labelShort:"Легковое ТС"},{value:"track",labelShort:"Грузовое ТС"},{value:"commercial",labelShort:"Коммерческое ТС"},{value:"water",labelShort:"Водное ТС"},{value:"custom",labelShort:"Другое"}],eU=[{value:"foreign_new",label:"Иномарка с завода"},{value:"foreign_old",label:"Иномарка с пробегом"},{value:"domestic_new",label:"Отечественная с завода"},{value:"domestic_old",label:"Отечественная с пробегом"}],eO=[{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:"Залог и поручительство"}],e$=[{label:"По ставке",value:"rate"},{label:"По первому взносу",value:"firstPayment"}],eW="Указали больше чем запрашиваете кредитных денег";var eZ=l(51858),eB={src:"/kredity/assets/_next/static/media/adv-auto-desktop.6c981f82.svg",height:132,width:1110,blurWidth:0,blurHeight:0},eV={src:"/kredity/assets/_next/static/media/adv-auto-mobile.07d07b83.svg",height:132,width:343,blurWidth:0,blurHeight:0},ez=l(41172),eq=l.n(ez);let eH=(0,s.memo)(e=>{let{className:t}=e,{mainBaseUrl:l}=(0,ed.ZR)();return(0,i.jsxs)(u(),{href:"".concat(l,"/osago"),target:"_blank",className:(0,L.Z)(eq().wrapper,t),children:[(0,i.jsx)(K(),{className:(0,L.Z)(eq().bg,eq().bgDesktop),src:eB,alt:""}),(0,i.jsx)(K(),{className:(0,L.Z)(eq().bg,eq().bgMobile),src:eV,alt:""}),(0,i.jsx)(r.zx,{className:eq().button,size:"s",children:"Оформить"})]})});eH.displayName="OsagoAd";var eQ=l(65848);let eX=[],eJ=(e,t)=>{let{amount:l,firstPayment:a,period:n,payment:i,incomeProof:o,vehicleType:s,vehicleState:r,banks:c,insuranceNeed:u,stateCoFinancing:d,notFirstPayment:p}=e,v=[{id:eI.amount,label:"Сумма кредита: ".concat(l?"".concat((0,V.uf)(l)," ₽"):"не имеет значения")},{id:eI.firstPayment,label:"Первый взнос: ".concat(a?"".concat((0,V.uf)(a)," ₽"):"не имеет значения")}];if("number"==typeof n){let e=eP.find(e=>e.value===n);void 0!==e&&v.push({id:eI.period,label:0===e.value?"Срок: ".concat(e.label):e.label})}if(void 0!==i&&0!==i&&v.push({id:eI.payment,label:"До ".concat((0,V.uf)(i)," ₽ в мес")}),void 0!==o&&0!==o.length){let e=eM.filter(e=>o.includes(e.value)),t=1===e.length?e[0].label:"Подтверждение дохода: (".concat(e.length,")");v.push({id:eI.period,label:t})}if(void 0!==s&&0!==s.length){let e=eR.filter(e=>s.includes(e.value)),t=1===e.length?e[0].label:"Тип транспорта: (".concat(e.length,")");v.push({id:eI.vehicleType,label:t})}if(void 0!==r&&0!==r.length){let e=eU.filter(e=>r.includes(e.value)),t=1===e.length?e[0].label:"Состояние транспорта: (".concat(e.length,")");v.push({id:eI.vehicleState,label:t})}if(void 0!==c&&0!==c.length){let e=t.filter(e=>c.includes(+e.value)),l=1===e.length?e[0].label:"Банки: (".concat(e.length,")");v.push({id:eI.bank,label:l})}return(u&&v.push({id:eI.insuranceNeed,label:"Без каско"}),d&&v.push({id:eI.stateCoFinancing,label:"С господдержкой"}),p&&v.push({id:"notFirstPayment",label:"Без первого взноса"}),eX.length===v.length&&v.every((e,t)=>e.label===eX[t].label&&e.id===eX[t].id))?eX:(eX=v,v)},eG=e=>e?56:80;var eK=l(71147),eY=l(6252),e0=l(50586),e1=l.n(e0),e2=l(75340),e4=l(29023),e3=l(88060),e6=l(10034),e5=l.n(e6);let e8=e=>{(0,W.D)({eventCategory:A.u.AUTOCREDIT,eventAction:W.i.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},e9=e=>{let{filter:t,className:l,isMobile:a,bankOptions:n,banks:o,town:r,region:c}=e,u=(0,e2.lJ)(),d=(0,s.useRef)(null),p=(0,s.useRef)(()=>null),[m,_]=(0,s.useState)(!1),[b,h]=(0,s.useState)(!1),{count:g,totalCount:f,increaseSort:x,sort:C,handleToggleModal:y,setIncreaseSort:j,setSort:N,isPageLoading:k,handleLoadMore:T,autoCredits:w,isLoading:S,amount:D,firstPayment:I,period:M}=t,[P,R]=(0,s.useState)(),F=(0,s.useMemo)(()=>eJ(t,n),[n,t]),U=(0,s.useCallback)(()=>{y()},[y]),O=(0,s.useMemo)(()=>w.map(e=>{let t=eu({banks:o,autoCredit:e}),l={};void 0!==D&&0!==D&&(l.amount=D),void 0!==I&&0!==I&&(l.first_payment=I),void 0!==M&&0!==M&&(l.period=M);let a=(0,eY.R)(l);return Object.keys(l).length&&(t.url="".concat(t.url,"#").concat(a)),t}),[D,w,o,I,M]),E=(0,s.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)&&void 0!==l?l:"",logo:e.logo,url:null!==(a=e.url)&&void 0!==a?a:""}}},[w]),$=(0,s.useCallback)(()=>{R(void 0)},[]),Z=(0,s.useCallback)(e=>{R(E(e)),null!==e&&(0,W.D)({eventCategory:A.u.AUTOCREDIT,eventAction:W.i.popup,eventActionText:e.title,eventLabel:e.id})},[E]);(0,s.useEffect)(()=>{window.removeEventListener("scroll",p.current);let e=eG(a);return p.current=()=>{if(null===d.current)return;let{top:t}=d.current.getBoundingClientRect();_(t<e-3),h(t<=e+1)},window.addEventListener("scroll",p.current),()=>window.removeEventListener("scroll",p.current)},[a]);let B=(null==c?void 0:c.name_p)!==void 0?(null==r?void 0:r.name_p)?"в ".concat(null==r?void 0:r.name_p):"в ".concat(null==c?void 0:c.name_p):null,V=10*t.page<g;return(0,i.jsxs)("section",{className:(0,L.Z)(e5().section,l),children:[(0,i.jsx)(v.t,{children:(0,i.jsxs)("p",{className:e5().title,children:["Найдено ",g," ",(0,i.jsx)("span",{className:e5().titleHide,children:(0,eK.s)(g)})," ",B,g===f||0===g?"":"из ".concat(f)]})}),(0,i.jsx)("div",{ref:d,className:(0,L.Z)(e5().filter,e5().newLayout,{[e5().filterBottom]:m}),children:(0,i.jsx)(eZ.p,{chips:F,onChangeIncreaseSort:j,onChangeSortType:N,onClickChip:U,onClickParams:y,sortTypeItems:e$,sortTypeValue:C,isIncreaseSort:x,isMobile:a,isFixed:b})}),(0,i.jsxs)(v.t,{children:[(0,i.jsx)("p",{className:e5().listTitle,ref:u,children:"Предложения рынка кредитов"}),(0,i.jsx)("div",{children:!S&&O.map((e,t)=>(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(en,{onDetailInfoClick:Z,className:e5().listItem,data:e,onClick:e8,text:"Подать заявку",detailData:{data:E(e),mainPageUrl:A.u.AUTOCREDIT}},e.url),2===t&&(0,i.jsx)(eH,{className:e5().adv})]},e.id))}),S&&Array.from({length:6},(e,t)=>(0,i.jsx)(eQ.O,{className:e5().listItem},t)),V&&(0,i.jsx)(e3.f,{page:t.page,loading:k,onClick:T}),(0,i.jsx)(e4.i,{tag:"p",className:e1().subtitle,children:t.subtitle})]}),(0,i.jsx)(eo.h,{data:P,isOpen:!!P,onClose:$,mainPageUrl:A.u.AUTOCREDIT})]})};function e7(e){let t=(0,D.b)(e.full_price);return{...e,full_price:t}}async function te(e,t){let{tagUrl:l,regionUrl:a,townUrl:n,limit:i=10,...o}=e,s=function(e){let{limit:t,tagUrl:l,regionUrl:a,townUrl:n,amount:i,firstPayment:o,period:s,loan:r,incomeProof:c,insuranceNeed:u,vehicleState:d,vehicleType:p,stateCoFinancing:v,bank:m,sort:_,order:b,payment:h,page:g,borrower:f}=e,x=new URLSearchParams;return void 0!==t&&x.set("limit",String(t)),void 0!==l&&x.set("tag",l),void 0!==a&&x.set("region",a),void 0!==n&&x.set("town",n),void 0!==i&&x.set(eI.amount,i),void 0!==o&&x.set(eI.firstPayment,String(o)),void 0!==s&&x.set(eI.period,String(s)),void 0!==r&&x.set(eI.loan,r.join(",")),void 0!==c&&x.set(eI.incomeProof,Array.isArray(c)?c.join(","):c),void 0!==u&&x.set(eI.insuranceNeed,u?"1":"0"),void 0!==d&&x.set(eI.vehicleState,d.join(",")),void 0!==p&&x.set(eI.vehicleType,p.join(",")),void 0!==v&&x.set(eI.stateCoFinancing,v?"1":"0"),void 0!==m&&x.set(eI.bank,m.join(",")),void 0!==_&&x.set(eI.sort,_),void 0!==b&&x.set(eI.order,b),void 0!==h&&x.set(eI.payment,h),void 0!==g&&x.set(eI.page,String(g)),void 0!==f&&x.set(eI.borrower,f.join(",")),x.set("archive","0"),x.toString()}({limit:i,regionUrl:a,tagUrl:l,townUrl:n,...o}),{data:r,error:c}=await (0,eS.D)("/money_data/AutoCredits.json?".concat(s),{signal:t});if(c||null===r)throw Error(null!=c?c:"Ошибка загрузки данных");if(void 0!==o.page&&1!==o.page&&0===r.autoCredits.length)throw new eL.dR("Invalid autocredits page: ".concat(o.page));return{offers:r.autoCredits.map(e7),count:r.autoCredits_count,totalCount:r.autoCredits_total_count,title:r.title,subtitle:r.subtitle,description:r.description}}var tt=l(65709),tl=l(32368),ta=l(60007),tn=l(44735);async function ti(){return(await (0,tt.$u)("AutoCredits.json?tags&short=1")).autoCredit_tags.reduce((e,t)=>(t.name!==tn.V4&&e.set(t.url,function(e){let{name:t,url:l,url_redirect:a}=e,n={name:t,url:l},i=(0,ta.d)(a);return void 0!==i&&(n.url_redirect=i),n}(t)),e),new Map)}new tl.$(ti),l(51138),l(21952);var to=l(45752);function ts(e){let{banks:t,layout:l,refererTag:a,description:n,offer:o,posts:s,questions:r,offers:c,offersFinuslugi:u,support:d}=e;return(0,i.jsx)(to.A,{data:l,children:(0,i.jsx)(ew,{offer:o,posts:s,questions:r,description:n,banks:t,refererTag:a,offers:c,offersFinuslugi:u,support:d})})}l(48206);var tr=l(423),tc=l(66535),tu={src:"/kredity/assets/_next/static/media/filter.0c02ec9e.svg",height:16,width:16,blurWidth:0,blurHeight:0},td=l(65594),tp=l.n(td);let tv=(0,s.memo)(e=>{let{count:t,onClickParams:l,onClickShow:a,isLoading:n,className:o}=e;return(0,i.jsxs)("div",{className:(0,L.Z)(tp().buttons,o),children:[(0,i.jsx)(r.zx,{variant:"secondary",pending:n,disabled:n,onClick:e=>l(e),iconLeft:(0,i.jsx)(K(),{src:tu,alt:""}),children:"Все параметры"}),(0,i.jsxs)(r.zx,{pending:n,disabled:n,onClick:a,children:["Показать ",t]})]})});tv.displayName="FilterActions";var tm=l(58484),t_=l(91646),tb=l(98028),th=l(7835),tg=l.n(th);let tf=(0,s.memo)(e=>{let{checkedState:t,onChange:l,className:a}=e;return(0,i.jsxs)("ul",{className:(0,L.Z)(tg().wrapper,a),children:[(0,i.jsxs)("li",{className:tg().item,children:[(0,i.jsx)(r.XZ,{className:tg().checkbox,onChange:()=>l("insuranceNeed",!t.insuranceNeed),checked:t.insuranceNeed,value:t.insuranceNeed,label:"Без каско"}),(0,i.jsx)(tb.J,{content:"По закону, каско покупать необязательно, но такая страховка компенсирует вам ущерб, даже если вы виновны в ДТП. Каско можно включить в стоимость кредита.",children:(0,i.jsx)(tb.L,{className:tg().detailIcon})})]}),(0,i.jsxs)("li",{className:tg().item,children:[(0,i.jsx)(r.XZ,{className:tg().checkbox,onChange:()=>l("stateCoFinancing",!t.stateCoFinancing),checked:t.stateCoFinancing,value:t.stateCoFinancing,label:"С господдержкой"}),(0,i.jsx)(tb.J,{content:"Поддержка, при которой часть средств предоставляет государство. Их можно потратить только на автомобили определенных марок.",children:(0,i.jsx)(tb.L,{className:tg().detailIcon})})]}),(0,i.jsx)("li",{children:(0,i.jsx)(r.XZ,{className:tg().checkbox,onChange:()=>l("notFirstPayment",!t.notFirstPayment),checked:t.notFirstPayment,value:t.notFirstPayment,label:"Без первого взноса"})})]})});tf.displayName="AutoCreditsFilterDops";var tx=l(4645),tC=l.n(tx);let ty=(0,s.memo)(e=>{let{activeIds:t=[],items:l,onChange:a,className:n}=e,o=(e,l)=>{a(l?t.filter(t=>String(e)!==t):[...t,String(e)])};return(0,i.jsx)("div",{className:(0,L.Z)(tC().tagsWrapper,n),children:l.map(e=>{let l=t.some(t=>t===e.value);return(0,i.jsx)(r.zx,{className:tC().tag,variant:l?"primary":"secondary",onClick:()=>o(e.value,l),children:e.labelShort},e.value)})})});ty.displayName="AutoCreditsTags";var tj=l(45117),tN=l(86992),tk=l(30715),tA=l.n(tk);let tT=e=>{(0,Y.l)({event:"data-event",eventAction:e,eventCategory:A.u.AUTOCREDIT})},tw=e=>{var t;let l=null!==(t=e.currentTarget.textContent)&&void 0!==t?t:"";tT("click_button_".concat((0,ee.b)(l)))},tS=e=>{let{region:t,town:l,className:a,tag:n,isMobile:o,filter:r,subtitle:c,adFoxConfig:u}=e,{scrollSmooth:d}=(0,e2.vO)(),{count:p,isLoading:v,amount:m,firstPayment:_,vehicleType:b,setVehicleType:h,insuranceNeed:g,stateCoFinancing:f,notFirstPayment:x,setInsuranceNeed:C,setStateCoFinancing:y,setNotFirstPayment:j,handleToggleModal:N,firstPaymentPercent:k,handleChangeFirstPayment:T,handleChangeAmount:w}=r,S=(0,s.useCallback)(e=>{tw(e),N()},[N]),D=(0,s.useCallback)(e=>{tw(e),d({offset:-90})},[d]),I=(0,s.useMemo)(()=>({insuranceNeed:g,stateCoFinancing:f,notFirstPayment:x}),[g,x,f]),M=(0,s.useCallback)((e,t)=>{switch(e){case"insuranceNeed":C(t);break;case"notFirstPayment":j(t),T(t?0:void 0);break;case"stateCoFinancing":y(t)}},[T,C,j,y]);return(0,i.jsxs)("div",{className:(0,L.Z)(a),children:[(0,i.jsxs)("div",{className:tA().pageHeadingWrap,children:[(0,i.jsx)(tm.V,{region:t,town:l,title:n&&"DEFAULT"!==n.tag_name?null==n?void 0:n.name:"Автокредиты",subtitle:c,mainPageUrl:A.u.AUTOCREDIT}),(0,i.jsx)("div",{className:tA().banner,children:(0,i.jsx)(t_.Z,{config:u,params:tj.P3})})]}),(0,i.jsxs)(tc.W2,{className:tA().container,children:[(0,i.jsxs)("div",{className:tA().filter,children:[(0,i.jsxs)("div",{className:tA().fields,children:[(0,i.jsx)(tN.P,{className:tA().field,label:"Сумма кредита",value:m,onChange:w}),(0,i.jsx)(tN.P,{className:tA().field,label:"Первый взнос",value:_,rightLabel:"".concat(k,"%").replace(".",","),caption:k>100?eW:void 0,state:k>100?"error":void 0,onChange:T})]}),!o&&(0,i.jsx)(tv,{count:p,onClickParams:S,onClickShow:D,isLoading:v})]}),(0,i.jsx)(ty,{className:tA().tagsWrapper,items:eF,activeIds:b,onChange:h}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:tA().dopsTitle,children:"Дополнительно"}),(0,i.jsx)(tf,{className:tA().dops,onChange:M,checkedState:I})]}),o&&(0,i.jsx)(tv,{count:p,onClickParams:S,onClickShow:D,isLoading:v})]})]})};var tL=l(7766);let tD=(e,t)=>{(0,Y.l)({event:"data-event",eventAction:A.u.AUTOCREDIT,eventCategory:"filter_catalog",eventLabel:(0,ee.b)(e),eventValue:t})},tI=(e,t)=>{tD(e,(null!=t?t:[]).map(e=>e.label).join(","))};var tM=l(10622),tP=l.n(tM);let tR=e=>{let{filter:t,isMobile:l,bankOptions:a}=e,{handleToggleModal:n,resetFilter:o,amount:c,firstPayment:u,setPeriod:d,period:p,payment:v,incomeProof:m,setIncomeProof:b,vehicleType:h,setVehicleType:g,vehicleState:f,setVehicleState:x,borrower:C,setBorrower:y,loan:j,setLoan:N,banks:k,setBank:T,isLoading:w,insuranceNeed:S,stateCoFinancing:D,setInsuranceNeed:I,setStateCoFinancing:M,setSort:P,sort:R,notFirstPayment:F,setNotFirstPayment:U,firstPaymentPercent:O,handleChangeAmount:E,handleChangeFirstPayment:$,handleChangePayment:W}=t,Z=(0,s.useMemo)(()=>eP.find(e=>e.value===p),[p]),B=(0,s.useMemo)(()=>eM.filter(e=>null==m?void 0:m.includes(e.value)),[m]),V=(0,s.useMemo)(()=>eR.filter(e=>null==h?void 0:h.includes(e.value)),[h]),q=(0,s.useMemo)(()=>eU.filter(e=>null==f?void 0:f.includes(e.value)),[f]),H=(0,s.useMemo)(()=>eO.filter(e=>null==C?void 0:C.includes(e.value)),[C]),Q=(0,s.useMemo)(()=>eE.filter(e=>null==j?void 0:j.includes(e.value)),[j]),X=(0,s.useMemo)(()=>a.filter(e=>null==k?void 0:k.includes(Number(e.value))),[a,k]),J=(0,s.useCallback)(()=>{n(),(0,z.l)(_.Tm,{offset:l?0:-140,position:"top"})},[n,l]),{handleChangePeriod:G,handleChangeIncomeProf:K,handleChangeVehicleType:Y,handleChangeVehicleState:ee,handleChangeBorrower:et,handleChangeLoan:el,handleChangeBanks:ea}=(0,s.useMemo)(()=>({handleChangePeriod:e=>{d(null==e?void 0:e.value),tI("Срок",eP)},handleChangeIncomeProf:e=>{var t;b(null!==(t=null==e?void 0:e.map(e=>String(e.value)))&&void 0!==t?t:[]),tI("Подтверждение дохода",e)},handleChangeVehicleType:e=>{var t;g(null!==(t=null==e?void 0:e.map(e=>String(e.value)))&&void 0!==t?t:[]),tI("Тип транспорта",e)},handleChangeVehicleState:e=>{var t;x(null!==(t=null==e?void 0:e.map(e=>String(e.value)))&&void 0!==t?t:[]),tI("Состояние транспорта",e)},handleChangeBorrower:e=>{var t;y(null!==(t=null==e?void 0:e.map(e=>String(e.value)))&&void 0!==t?t:[]),tI("Категория заемщикаа",e)},handleChangeLoan:e=>{var t;N(null!==(t=null==e?void 0:e.map(e=>String(e.value)))&&void 0!==t?t:[]),tI("Обеспечение",e)},handleChangeBanks:e=>{var t;T(null!==(t=null==e?void 0:e.map(e=>Number(e.value)))&&void 0!==t?t:[]),tI("Банки",e)}}),[T,y,b,N,d,x,g]),en=(0,s.useMemo)(()=>({insuranceNeed:S,stateCoFinancing:D,notFirstPayment:F}),[S,F,D]),ei=(0,s.useCallback)((e,t)=>{switch(e){case"insuranceNeed":I(t);break;case"notFirstPayment":U(t);break;case"stateCoFinancing":M(t)}},[I,U,M]);return(0,i.jsx)(tL.D,{count:t.count,isMobile:l,isOpen:t.isOpenModal,pageUrl:A.u.AUTOCREDIT,title:"Все параметры",onCLickShow:J,onClose:n,onClickReset:o,isLoading:w,children:(0,i.jsxs)("div",{className:tP().wrapper,children:[(0,i.jsxs)("div",{className:tP().fields,children:[(0,i.jsx)(tN.P,{className:tP().field,label:"Сумма кредита",value:c,onChange:E}),(0,i.jsx)(tN.P,{label:"Первый взнос",value:u,rightLabel:"".concat(O,"%").replace(".",","),caption:O>100?eW:void 0,state:O>100?"error":void 0,onChange:$}),(0,i.jsx)(r.Ph,{value:Z,onChange:G,label:"Срок",optionValue:"value",optionLabel:"label",options:eP}),(0,i.jsx)(tN.P,{label:"Ежемесячный платеж до",value:v,onChange:W}),(0,i.jsx)(r.Ph,{value:B.length>0?B:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,onChange:K,multiple:!0,label:"Подтверждение дохода",optionValue:"value",optionLabel:"label",options:eM}),(0,i.jsx)(r.Ph,{value:V.length>0?V:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,multiple:!0,onChange:Y,optionValue:"value",optionLabel:"label",label:"Тип транспорта",options:eR}),(0,i.jsx)(r.Ph,{value:q.length>0?q:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,multiple:!0,onChange:ee,optionValue:"value",optionLabel:"label",label:"Состояние транспорта",options:eU}),(0,i.jsx)(r.Ph,{value:H.length>0?H:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,multiple:!0,optionValue:"value",optionLabel:"label",onChange:et,label:"Категория заемщика",options:eO}),(0,i.jsx)(r.Ph,{value:Q.length>0?Q: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,i.jsx)(r.Ph,{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:a})]}),(0,i.jsxs)("div",{className:tP().checkboxWrapper,children:[(0,i.jsx)("p",{className:tP().title,children:"Дополнительно:"}),(0,i.jsx)(tf,{className:tP().dops,checkedState:en,onChange:ei}),(0,i.jsx)("p",{className:(0,L.Z)(tP().title,tP().titleSort),children:"Сортировать"}),e$.map(e=>(0,i.jsx)(r.Y8,{label:e.label,name:e.value,value:e.value,checked:e.value===R,onChange:()=>P(e.value)},e.value))]})]})})};async function tF(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,eS.D)("/money_data/AutoCreditRegion.json?".concat(a));if(i||null===n)throw Error(null!=i?i:"Ошибка загрузки данных");return{...n,posts:(0,eD.yb)(n.posts)}}var tU=l(91886);async function tO(e){let t=await (0,tt.$u)("AutoCredits.json?".concat("url","=").concat(encodeURIComponent(e)));if(1!==t.length)throw new eL.dR("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:s}=e,r={url:t,name:l,tag_name:a,text:n,filter:i,default:o};if(null!==s){let{region_titles:e,town_titles:t,region_content:l,town_content:a}=s;r.region_page={region_titles:e,town_titles:t,region_content:l,town_content:a}}return r}(t[0])}new tl.n(tO);let tE=(e,t)=>{var l,a,n,i,o,s,r;let c=(0,eh.p)(e),{page:u}=c,d=String(null!==(a=null!==(l=c.amount)&&void 0!==l?l:null==t?void 0:t.filter.amount)&&void 0!==a?a:""),p=String(null!==(i=null!==(n=c.first_payment)&&void 0!==n?n:null==t?void 0:t.filter.first_payment)&&void 0!==i?i:""),v=String(null!==(s=null!==(o=c.period)&&void 0!==o?o:null==t?void 0:t.filter.period)&&void 0!==s?s:""),m=String(null!==(r=c.payment)&&void 0!==r?r:""),_=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(u)||1}},t$=(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};var tW=l(30292);let tZ=e=>{var t,l,a,n;let{region:i,tag:o,town:r,init:c}=e,{asPath:u}=(0,eb.useRouter)(),d=(0,s.useMemo)(()=>tE(u,o),[u,o]),p=(0,s.useRef)(null),[v,m]=(0,s.useState)(void 0!==d.amount?Number(d.amount):void 0),[_,b]=(0,s.useState)(void 0!==d.firstPayment?Number(d.firstPayment):void 0),[h,g]=(0,s.useState)(void 0!==d.payment?Number(d.payment):void 0),f=t$(null!=v?v:0,null!=_?_:0),x=v&&v>0?(0,Z.z)(null!=f?f:0,1):0,{query:C}=(0,eb.useRouter)(),[y,j]=(0,s.useState)(Number(C.page)||1),[N,k]=(0,s.useState)(c.title),[A,T]=(0,s.useState)(c.subtitle),[w,S]=(0,s.useState)(c.description),[L,D]=(0,s.useState)(!1),[I,M]=(0,s.useState)(!1),[P,R]=(0,s.useState)(null!==(t=c.count)&&void 0!==t?t:0),[F,U]=(0,s.useState)(null!==(l=c.count)&&void 0!==l?l:0),[O,E]=(0,s.useState)(!1),[$,W]=(0,s.useState)(null!==(a=c.list)&&void 0!==a?a:[]),[B,V]=(0,s.useState)(d.period),[z,q]=(0,s.useState)(d.vehicleType),[H,Q]=(0,s.useState)(d.vehicleState),[X,J]=(0,s.useState)(d.borrower),[G,K]=(0,s.useState)(d.loan),[Y,ee]=(0,s.useState)([]),[et,el]=(0,s.useState)(d.insuranceNeed),[ea,en]=(0,s.useState)(d.stateCoFinancing),[ei,eo]=(0,s.useState)(e$[0].value),[es,er]=(0,s.useState)(!1),[ec,eu]=(0,s.useState)(null!==(n=null==o?void 0:o.filter.proof_income)&&void 0!==n?n:void 0),[ed,ep]=(0,s.useState)(!1),ev=(0,s.useRef)(!0),em=(0,s.useCallback)(()=>{E(e=>!e)},[]),e_=(0,s.useCallback)(async e=>{var t,l,a,n,s,c;p.current&&p.current.abort(),p.current=new AbortController;let u={amount:void 0!==v?String(v):"",firstPayment:void 0!==v?f:void 0,period:B,loan:G,incomeProof:ec,insuranceNeed:et,stateCoFinancing:ea,vehicleState:H,vehicleType:z,bank:Y,order:ed?"desc":"asc",sort:ei,payment:void 0!==h?String(h):void 0,borrower:X};e>1?(u.page=e,M(!0)):D(!0);let d=await te({tagUrl:null==o?void 0:o.url,regionUrl:null==i?void 0:i.url,townUrl:null==r?void 0:r.url,...u},p.current.signal),m=null!==(t=null==d?void 0:d.offers)&&void 0!==t?t:[],_=null!==(l=null==d?void 0:d.title)&&void 0!==l?l:"",b=null!==(a=null==d?void 0:d.subtitle)&&void 0!==a?a:"",g=null!==(n=null==d?void 0:d.description)&&void 0!==n?n:"";R(null!==(s=null==d?void 0:d.count)&&void 0!==s?s:0),U(null!==(c=null==d?void 0:d.totalCount)&&void 0!==c?c:0),k(_),T(b),S(g),W(t=>e>1?[...t,...m]:m),M(!1),D(!1)},[v,Y,X,f,ec,ed,et,G,h,B,i,ei,ea,o,r,H,z]),eh=(0,s.useCallback)(()=>{j(e=>{let t=e+1;return e_(t),t})},[e_]),eg=(0,s.useCallback)(e=>{m(void 0!==e&&0!==e?Math.abs(e):void 0)},[]),ef=(0,s.useCallback)(e=>{b(void 0!==e&&0!==e?Math.abs(e):void 0)},[]),ex=(0,s.useCallback)(e=>{g(void 0!==e&&0!==e?Math.abs(e):void 0)},[]);(0,s.useEffect)(()=>{eg(void 0!==d.amount?Number(d.amount):void 0),ef(void 0!==d.firstPayment?Number(d.firstPayment):void 0),ex(void 0!==d.payment?Number(d.payment):void 0),q(d.vehicleType),Q(d.vehicleState),V(d.period),J(d.borrower),K(d.loan),el(d.insuranceNeed),en(d.stateCoFinancing),eu(d.incomeProof)},[d.amount,d.borrower,d.firstPayment,d.incomeProof,d.insuranceNeed,d.loan,d.payment,d.period,d.stateCoFinancing,d.vehicleState,d.vehicleType,eg,ef,ex,o]),(0,s.useEffect)(()=>{er(0===_)},[_]);let eC=(0,s.useCallback)(()=>{m(void 0),b(void 0),g(void 0),V(void 0),W([]),q(void 0),Q(void 0),J(void 0),K(void 0),ee([]),el(void 0),en(void 0),eu(void 0),ep(!1)},[]);return(0,tW.b)(()=>{ev.current?ev.current=!1:e_(y)},[e_],300),{isLoading:L,isPageLoading:I,title:N,subtitle:A,description:w,handleLoadMore:eh,autoCredits:$,count:P,totalCount:F,page:y,period:B,setPeriod:V,amount:v,firstPayment:_,isOpenModal:O,setIsOpenModal:E,vehicleType:z,setVehicleType:q,insuranceNeed:et,stateCoFinancing:ea,setInsuranceNeed:el,setStateCoFinancing:en,handleToggleModal:em,resetFilter:eC,payment:h,incomeProof:ec,setIncomeProof:eu,vehicleState:H,setVehicleState:Q,borrower:X,setBorrower:J,loan:G,setLoan:K,banks:Y,setBank:ee,sort:ei,setSort:eo,increaseSort:ed,setIncreaseSort:ep,notFirstPayment:es,setNotFirstPayment:er,firstPaymentPercent:x,handleChangeFirstPayment:ef,handleChangeAmount:eg,handleChangePayment:ex}};var tB=l(61929),tV=l(77624),tz=l(93259),tq=l(42968),tH=l(23259),tQ=l(30942),tX=l(93890),tJ=l(12261),tG=l(27480),tK=l(30975),tY=l(38090),t0=l(78575),t1=l(91500),t2=l(97647),t4=l.n(t2);let t3=e=>{var t;let l=(null==e?void 0:null===(t=e.currentTarget)||void 0===t?void 0:t.textContent)?(0,ee.b)(e.currentTarget.textContent):"glavnaya";(0,Y.l)({event:"data-event",eventAction:"click_link_".concat(l),eventCategory:A.u.AUTOCREDIT})},t6=[(0,i.jsx)(s.Fragment,{children:"Используйте фильтры для указания желаемых параметров: суммы, срока и формы выдачи"},0),(0,i.jsx)(s.Fragment,{children:"Изучите и выберите подходящее предложение"},1),(0,i.jsx)(s.Fragment,{children:"Перейдите к оформлению"},2),(0,i.jsx)(s.Fragment,{children:"Заполните анкету, дождитесь одобрения и получите деньги любым удобным для вас способом"},3)],t5=e=>{var t,l,a,n,o;let{offers:c,count:d,tag:m,tags:_,townDublicates:b,posts:h,regions:g,banks:f,title:x,subtitle:C,description:y,expertQuote:j,support:N}=e,k=(0,ex.S0)(),{region:T,town:w}=(0,ep.T)(),[S,D]=(0,s.useState)(j),{asPath:I}=(0,eb.useRouter)(),M=null!==(l=null===(t=I.split("/").find(e=>e.includes("teg_")))||void 0===t?void 0:t.slice(4))&&void 0!==l?l:"DEFAULT",P=function(e,t){let[l,a]=(0,s.useState)(e);return(0,tU.rf)(()=>{(0,tt.m6)("autocredits/tag?".concat("url","=").concat(t)).then(a)},[a,t]),l}(m,M),R=function(e,t,l,a){let[n,i]=(0,s.useState)(e);return(0,tU.rf)(()=>{tF(t,l,a).then(e=>{let{posts:t}=e;return i(t)})},[t,l,a]),n}(h,M,null==T?void 0:T.url,null==w?void 0:w.url),F=tZ({region:T,town:w,tag:P,init:{count:d,list:c,subtitle:C,title:x,description:y}}),U=(0,tJ.iN)(I);(0,tU.rf)(()=>{(0,tY.r5)(U).then(D)},[U]);let O=(0,tH.I)(),E=(0,tQ.U)(),$=(0,s.useMemo)(()=>(0,tV.n)(f,F.banks),[f,F.banks]),{mainBaseUrl:W}=(0,ed.ZR)(),Z=(0,s.useMemo)(()=>{var e;let{autoCredits:t}=F,{lowPrice:l,highPrice:a}=t.reduce((e,t)=>{let{amount:l}=t,a=""!==l.from?Number(l.from):1e4,n=void 0!==l.to&&""!==l.to?Number(l.to):void 0;return e.lowPrice=Math.min(e.lowPrice,a),void 0!==n&&(e.highPrice=Math.max(e.highPrice,n)),e},{lowPrice:1/0,highPrice:0}),n=null!==(e=F.description)&&void 0!==e?e:"",i='"offers":{"@type":"AggregateOffer","url":"'.concat(W).concat(I,'","priceCurrency":"').concat("RUB",'","lowPrice":"').concat((0,V.uf)(l),'","highPrice":"').concat((0,V.uf)(a),'"}');return'{"@context":"https://schema.org","@type":"Product","name":"'.concat(F.title,'","image":"').concat(W).concat(tr.oQ,'","description":"').concat(n,'",').concat(i,"}")},[F,W,I]),B=P&&"DEFAULT"!==P.tag_name?null==P?void 0:P.name:"Автокредиты",z=(null==w?void 0:w.name_p)||(null==T?void 0:T.name_p)?" в ".concat((null==w?void 0:w.name_p)||(null==T?void 0:T.name_p)):"",q="".concat((null==T?void 0:T.url)?"/reg_".concat(null==T?void 0:T.url):"").concat((null==w?void 0:w.url)?"/".concat(null==w?void 0:w.url):""),H=(()=>{let e=P&&"DEFAULT"!==P.tag_name?',{"@type":"ListItem","position":3,"name":"&#128181 '.concat(B).concat(z,'","item":"').concat(W).concat(I,'"}'):"",t='{"@type":"ListItem","position":1,"name":"Финуслуги","item":"'.concat(W,'"}'),l='{"@type":"ListItem","position":2,"name":"Автокредиты'.concat(z,'","item":"').concat(W,"/").concat(A.u.AUTOCREDIT).concat(q,'"}');return"{".concat('"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":['.concat(t),",").concat(l).concat(e,"]}")})(),Q=(0,s.useMemo)(()=>{let e=[];e.push(...(0,t1.a)(A.u.AUTOCREDIT,g,P,T,w,{nominativeCase:"Автокредиты",genitiveCase:"автокредитов"}));let t=_.reduce((e,t)=>{if(void 0===t.url_redirect){let l=(0,tq.h)(A.u.AUTOCREDIT,t,T,w),a=(0,tX.q9)(l,t.name);e.push(a)}return e},[]);if(e.push({title:"Виды автокредитов",text:(0,i.jsx)(tX.oP,{children:t})}),T){var l,a;e.push(...null!==(a=null===(l=P.region_page)||void 0===l?void 0:l.town_content.map(e=>({title:(0,tz.Q)(e.title,T,w,b,void 0,P),text:(0,tz.Q)(e.content.map(tB.Rp).join(""),T,w,b,void 0,P)})))&&void 0!==a?a:[])}else e.push(...P.text.map(e=>({title:(0,tz.Q)(e.title,T,w,b,void 0,P),text:(0,tz.Q)(e.content.map(tB.Rp).join(""),T,w,b,void 0,P)})));return e},[T,_,g,P,w,b]);return(0,i.jsxs)("main",{className:t4().page,children:[(0,i.jsx)(p.N,{title:null!==(a=F.title)&&void 0!==a?a:"",description:null!==(n=F.description)&&void 0!==n?n:""}),(0,i.jsx)(ey.o,{}),(0,i.jsx)("div",{className:(0,L.Z)(t4().background,"bg-".concat(E))}),(0,i.jsx)("div",{className:t4().navigationWrapper,children:(0,i.jsxs)(v.t,{children:[(0,i.jsx)(r.Oo,{className:t4().breadcrumbs,items:(()=>{let e=[{label:"Главная",href:"/"},{label:"Автокредиты".concat(z),href:"/".concat(A.u.AUTOCREDIT).concat(q)}];return"DEFAULT"!==M&&e.push({label:"".concat(B).concat(z),href:"/".concat(A.u.AUTOCREDIT,"/teg_").concat(M).concat(q)}),e.pop(),e.push({label:"".concat(B).concat((null==P?void 0:P.default)?z:"")}),e})(),onClick:t3}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:H}})]})}),(0,i.jsx)(v.t,{children:(0,i.jsx)(tS,{region:null!=T?T:null,town:null!=w?w:null,isMobile:k,tag:P,filter:F,subtitle:null!==(o=F.subtitle)&&void 0!==o?o:"",adFoxConfig:O})}),(0,i.jsx)(e9,{banks:f,bankOptions:$,filter:F,isMobile:k,town:w,region:T}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:Z}}),(0,i.jsx)(tG.C,{steps:t6,variant:"secondary"}),void 0!==S&&(0,i.jsx)(t0.c,{quote:S}),(0,i.jsx)(tK.n,{type:"bank"}),(0,i.jsx)(ek.B,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,i.jsx)(u(),{...e}),dataLayerPush:Y.l,questions:Q,eventCategory:"cards_support_block",href:"".concat(W,"/help"),checkAllText:"Читать все вопросы про автокредиты"}),(0,i.jsx)(tR,{bankOptions:$,isMobile:k,filter:F}),R.length>0&&(0,i.jsx)(ej.t,{posts:R,eventCategory:A.u.AUTOCREDIT}),(0,i.jsx)(eN.B,{value:N})]})};function t8(e){let{layout:t,root:l,banks:a,offers:n,posts:o,tags:s,tag:r,expertQuote:c,support:u}=e;return(0,i.jsx)(to.A,{data:t,withLocationConfirm:!0,children:(0,i.jsx)(t5,{regions:l.regions,townDublicates:l.town_dublicates,banks:a,posts:o,description:n.description,offers:n.offers,count:n.count,tags:s,tag:r,totalCount:n.totalCount,title:n.title,subtitle:n.subtitle,expertQuote:null!=c?c:void 0,support:u})})}l(35388),l(45522);var t9=l(28254),t7=l(80330),le=!0,lt=(0,s.memo)(function(e){var t,l;return(0,i.jsx)(o.sM,{children:e.isShowcase?(0,i.jsx)(t9.p,{region:null!==(t=e.region)&&void 0!==t?t:void 0,town:null!==(l=e.town)&&void 0!==l?l:void 0,children:(0,i.jsx)(t8,{...e})}):(0,i.jsx)(t7.M,{children:(0,i.jsx)(ts,{...e})})})})},73654:function(e){e.exports={logo:"AutoCreditListItem_logo__KzLbz",placeholderLogo:"AutoCreditListItem_placeholderLogo__9xMXP"}},65594:function(e){e.exports={buttons:"FilterActions_buttons__M1NwR"}},41172:function(e){e.exports={wrapper:"OsagoAd_wrapper__MOwoz",bg:"OsagoAd_bg__m4rki",bgDesktop:"OsagoAd_bgDesktop__13CJL",bgMobile:"OsagoAd_bgMobile__4zRc9",button:"OsagoAd_button__2LK3h"}},83226:function(e){e.exports={title:"RegionTitle_title__ouhKs",link:"RegionTitle_link__r_rJV",titleWrapper:"RegionTitle_titleWrapper__yuBaG",newTitle:"RegionTitle_newTitle__SeVuV",subtitle:"RegionTitle_subtitle__T8Ha1"}},56381:function(e){e.exports={page:"AutoCreditDetail_page__jr_3y",supportSection:"AutoCreditDetail_supportSection__7506m",breadcrumbs:"AutoCreditDetail_breadcrumbs__XrqGb",about:"AutoCreditDetail_about__5FUQp"}},5753:function(e){e.exports={container:"AutoCreditApplySteps_container__wmZpQ"}},21172:function(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"}},5569:function(e){e.exports={title:"AutoCreditsList_title__kiemn",offersListContainer:"AutoCreditsList_offersListContainer__44vNc",listTitle:"AutoCreditsList_listTitle__fP1nX",container:"AutoCreditsList_container__aH3my",listItem:"AutoCreditsList_listItem__Y0xBf"}},97647:function(e){e.exports={page:"AutoCredits_page__EqZNI",sectionWrapper:"AutoCredits_sectionWrapper__QwfNp",breadcrumbs:"AutoCredits_breadcrumbs__3OKah",adFox:"AutoCredits_adFox__W0ah4",background:"AutoCredits_background__EAWXM"}},30715:function(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"}},7835:function(e){e.exports={wrapper:"AutoCreditsFilterDops_wrapper__8_0qa",checkbox:"AutoCreditsFilterDops_checkbox__8RLWl",item:"AutoCreditsFilterDops_item__GdL_E",detailIcon:"AutoCreditsFilterDops_detailIcon__lVAWv"}},10622:function(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"}},10034:function(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_"}},4645:function(e){e.exports={tagsWrapper:"AutoCreditsTags_tagsWrapper___62bH",tag:"AutoCreditsTags_tag__KsRe2"}},50586:function(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"}},83343:function(e,t,l){"use strict";l.d(t,{c:function(){return c}});var a=l(85893),n=l(66535),i=l(86010),o=l(67294);let s=(0,l(84941).g)("expert-quote","sc"),r=Object.freeze({expertQuote:s,wrapper:`${s}__wrapper`,title:`${s}__title`,card:`${s}__card`,content:`${s}__content`,aboutText:`${s}__aboutText`,about:`${s}__about`,img:`${s}__img`,name:`${s}__name`,position:`${s}__position`,text:`${s}__text`}),c=(0,o.memo)(({className:e,quote:t})=>(0,a.jsx)("section",{className:(0,i.Z)(r.wrapper,e),children:(0,a.jsxs)(n.W2,{children:[(0,a.jsx)(n.X6,{as:"h2",type:"display",weight:"bold",className:(0,i.Z)(r.title,"mb-6"),children:"Мнение эксперта"}),(0,a.jsx)("div",{className:r.card,children:(0,a.jsxs)("div",{className:r.content,children:[(0,a.jsxs)("div",{className:r.about,children:[t.expert.photo&&(0,a.jsx)("a",{href:t.expert.url,children:(0,a.jsx)("div",{className:r.img,style:{backgroundImage:`url(${t.expert.photo})`}})}),(0,a.jsxs)("div",{className:r.aboutText,children:[(0,a.jsx)("a",{href:t.expert.url,className:r.name,children:t.expert.name}),(0,a.jsx)("p",{className:r.position,children:t.expert.position})]})]}),(0,a.jsx)("p",{className:r.text,dangerouslySetInnerHTML:{__html:t.content}})]})})]})}));c.displayName="ExpertQuote"},29329:function(e,t,l){"use strict";l.d(t,{t:function(){return N}});var a=l(85893),n=l(66535),i=l(34588),o=l(86010),s=l(67294),r=l(43803),c=l(81069),u=l(59194),d=l(84941);let p=(0,d.g)("check-all","sc"),v=Object.freeze({wrapper:`${p}__wrapper`,link:`${p}__link`,icon:`${p}__icon`,iconGray:`${p}__icon--gray`}),m=({children:e,className:t,linkClassName:l,iconGrayBackground:n,Link:s,event:r,href:c,dataLayerPush:d})=>{let p=s??i.rU;return(0,a.jsx)("div",{className:(0,o.Z)(v.wrapper,t),onClick:()=>{r&&d(r)},children:(0,a.jsxs)(p,{className:(0,o.Z)(v.link,l),href:c,children:[e,(0,a.jsx)("span",{className:(0,o.Z)(v.icon,{[v.iconGray]:n}),children:(0,a.jsx)(u.IconFdsArrowUpRightSmallO,{size:24})})]})})},_=e=>{if(!e||!/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e))return"";let t=new Date(e.replace(" ","T"));if(isNaN(t.getTime()))return"";let l=t.getDate(),a=t.getMonth();return`${l} ${["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][a]}`},b=e=>!!e&&/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),h=(0,d.g)("subscribe-block","sc"),g=Object.freeze({block:`${h}__block`,title:`${h}__title`,form:`${h}__form`,input:`${h}__input`,button:`${h}__button`,checkbox:`${h}__checkbox`,checkboxLabel:`${h}__checkbox-label`,success:`${h}__success`,error:`${h}__error`}),f=({data:e,eventCategory:t})=>{var l,n,c,u;let[d,p]=(0,s.useState)(!1),[v,m]=(0,s.useState)(!1),[_,h]=(0,s.useState)(""),[f,x]=(0,s.useState)(""),[C,y]=(0,s.useState)(!1),[j,N]=(0,s.useState)(!1),[k,A]=(0,s.useState)(!1),T=(null==e?void 0:e.title)||"Подписка на рассылку",w=(null==(l=null==e?void 0:e.params)?void 0:l.inputPlaceholder)||"Электронная почта",S=!v&&!_;return(0,a.jsxs)("div",{className:(0,o.Z)(g.block),children:[(0,a.jsx)("div",{className:g.title,children:T}),S&&(0,a.jsxs)("div",{className:g.form,children:[(0,a.jsx)(i.MA,{className:g.input,label:w,variant:"secondary",size:"s",value:f,onChange:e=>{C&&y(!(b(e)||!e)),x(e)},onClick:()=>{(0,r.h)({eventCategory:t,eventActionType:r.D.block,eventActionText:w})},state:C?"error":void 0,caption:C?"Неверный e-mail":void 0}),(0,a.jsx)(i.zx,{className:g.button,label:(null==(n=null==e?void 0:e.buttons)?void 0:n.tile)||"Подписаться",style:{background:null==(c=null==e?void 0:e.buttons)?void 0:c.background},size:"xs",onClick:()=>{var l;(0,r.h)({eventCategory:t,eventActionType:r.D.button,eventActionText:(null==(l=null==e?void 0:e.buttons)?void 0:l.tile)||"Подписаться"}),y(!b(f)),A(!j),b(f)&&j&&(p(!0),fetch("https://forms.dashamail.ru/subscribe.php?list_id=56713Embedded",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({merge_:f})}).then(e=>{!e||200===e.status||e.ok?(window.localStorage.setItem("subscribed","1"),m(!0)):h(409===e.status?'Кажется, вы уже подписаны на нашу рассылку. Если письма не приходят, рекомендуем обратиться в поддержу по телефону <span class="nowrap">8\xa0800\xa0505-32-32</span>.':401===e.status?"Неверный формат e-mail адреса":"Возникла ошибка, повторите попытку позднее")}).catch(()=>h("Возникла ошибка, повторите попытку позднее")))},disabled:C,pending:d}),(0,a.jsx)(i.XZ,{className:g.checkbox,checked:j,onChange:e=>{(0,r.d)({eventCategory:t,eventAction:"click_check_box_soglashenie_blok_check_box_soglashenie"}),k&&A(!1),N(e)},state:k?"error":"default",children:(0,a.jsx)("span",{className:g.checkboxLabel,dangerouslySetInnerHTML:{__html:(null==(u=null==e?void 0:e.params)?void 0:u.agreement)||'Я принимаю <a href="https://assets.finuslugi.ru/mp-assets/privacy-policy.pdf">условия политики</a> обработки моих данных и даю <a href="https://assets.finuslugi.ru/mp-assets/privacy-policy.pdf">согласие</a> ПАО Московская биржа на их обработку'},onClick:e=>{let l=e.target;if(!(null!=l&&l.href))return;let a=l.textContent||"";a.includes("условия")&&(a="politiki_obrabotki_personalnyh_dannyh_pao_moskovskaya_birzha"),a.includes("согласие")&&(a="dayu_soglasie_na_obrabotku_pao_moskovskaya_birzha_moih_personalnyh_dannyh"),(0,r.h)({eventCategory:t,eventActionType:r.D.link,eventActionText:a,eventLabel:l.href})}})})]}),v&&(0,a.jsx)("div",{className:g.success,children:"Подтвердите подписку по ссылке, отправленной на указанную электронную почту."}),_&&(0,a.jsx)("div",{className:g.error,dangerouslySetInnerHTML:{__html:_}})]})},x=(0,d.g)("journal","sc"),C=Object.freeze({wrapper:`${x}__wrapper`,title:`${x}__title`,subtitle:`${x}__subtitle`,scrollableWrapper:`${x}__scrollable-wrapper`,chipsWrapper:`${x}__chips-wrapper`,sliderWrapper:`${x}__slider-wrapper`,slider:`${x}__slider`,sliderItem:`${x}__slider-item`,fixed:`${x}__slider-item--fixed`,article:`${x}__article`,imgWrapper:`${x}__img-wrapper`,articleBody:`${x}__article-body`,articleTitle:`${x}__article-title`,articleDate:`${x}__article-date`,checkAllLink:`${x}__check-all-link`}),y="finkit-widgets-sc-journal",j="https://assets.finuslugi.ru/mp-assets/pl-common-blocks-renderer/journal/default_post_image.png",N=({data:e,eventCategory:t=y,className:l})=>{var u;let d=(0,i._m)("xl"),[p,v]=(0,s.useState)(!0),[b,h]=(0,s.useState)(0),g=e.chips||[],x=(null==(u=null==g?void 0:g[Number(b)])?void 0:u.items)||[];if((0,s.useEffect)(()=>{v(!d)},[d]),0===g.length||0===x.length)return null;let N=(e,l)=>()=>{(0,r.h)({eventCategory:t,eventActionType:r.D.block,eventActionText:e||"",eventLabel:l})},k=e=>{e.target.src!==j&&(e.target.src=j)};return(0,a.jsxs)("div",{className:(0,o.Z)(C.wrapper,l),children:[(0,a.jsxs)(n.W2,{children:[(0,a.jsx)("h2",{className:C.title,children:null==e?void 0:e.title}),(0,a.jsx)("div",{className:C.subtitle,children:null==e?void 0:e.description})]}),(0,a.jsx)("div",{className:C.scrollableWrapper,children:(0,a.jsx)(n.W2,{children:(0,a.jsx)("div",{className:C.chipsWrapper,children:g.length>1&&(0,a.jsx)(i.cL,{chips:g,value:b,variant:"secondary",size:p?"m":"l",onChipClick:e=>{var l;let a=(null==(l=g[Number(e)])?void 0:l.label)||"";(0,r.h)({eventCategory:t,eventActionType:r.D.tab,eventActionText:a}),h(e)}})})})}),(0,a.jsxs)(n.W2,{children:[e.subscribeBlock&&(0,a.jsx)("div",{className:C.sliderWrapper,children:(0,a.jsx)(i.wI,{className:(0,o.Z)(C.sliderItem,C.fixed),children:(0,a.jsx)("div",{className:C.article,children:(0,a.jsx)(f,{data:e.subscribeBlock,eventCategory:t})})})}),(0,a.jsxs)(i.iR,{className:C.slider,options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3500,disableOnInteraction:!0},loop:!0},pagination:!0,navigation:!0,navigationVariant:"secondary",navigationSize:"s",children:[x.map(e=>(0,a.jsx)(i.wI,{className:C.sliderItem,children:(0,a.jsxs)("a",{className:C.article,href:e.url,onClick:N(e.title,e.url),children:[(0,a.jsx)("div",{className:C.imgWrapper,children:(0,a.jsx)("img",{src:e.img,alt:`изображение: ${e.title}`,onError:k})}),(0,a.jsxs)("div",{className:C.articleBody,children:[(0,a.jsx)("div",{className:C.articleTitle,children:e.title}),(0,a.jsx)("div",{className:C.articleDate,children:_(e.dt)})]})]})},e.title)),e.subscribeBlock&&p&&(0,a.jsx)(i.wI,{className:C.sliderItem,children:(0,a.jsx)("div",{className:C.article,children:(0,a.jsx)(f,{data:e.subscribeBlock,eventCategory:t})})})]},b),(0,a.jsx)(m,{href:(null==e?void 0:e.url)||"",event:{event:"data-event",eventCategory:t,eventAction:`link_${(0,c.t)((null==e?void 0:e.urlText)||"Показать все статьи")}`,eventLabel:(null==e?void 0:e.url)||""},dataLayerPush:r.d,className:C.checkAllLink,children:(null==e?void 0:e.urlText)||"Показать все статьи"})]})]})}},6024:function(e,t,l){"use strict";l.d(t,{B:function(){return x}});var a=l(85893),n=l(66535),i=l(86010),o=l(59194),s=l(34588),r=l(43803),c=l(84941),u=l(67294);let d=(0,c.g)("support","sc"),p=Object.freeze({support:d,title:`${d}__title`,cardsContainer:`${d}__cards-container`}),v="cb-support",m=(0,c.g)("support-app-card","sc"),_=Object.freeze({supportAppCard:m,textWrapper:`${m}__text-wrapper`,imageContainer:`${m}__image-container`,title:`${m}__title`,description:`${m}__description`,icon:`${m}__icon`,imageWrapper:`${m}__image-wrapper`,image:`${m}__image`}),b=({title:e,linkUrl:t,s3Assets:l,description:n})=>{let i=(0,s.aF)("s");return(0,a.jsxs)("div",{className:_.supportAppCard,onClick:()=>{i&&((0,r.h)({eventCategory:v,eventActionType:r.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,a.jsx)(o.IconFdsArrowUpRightSmallO,{className:_.icon,size:32}),(0,a.jsxs)("div",{className:_.textWrapper,children:[(0,a.jsx)("div",{className:_.title,children:e}),!!n&&(0,a.jsx)("div",{className:_.description,children:n})]}),(0,a.jsx)("div",{className:_.imageContainer,children:(0,a.jsxs)("picture",{className:_.imageWrapper,children:[(0,a.jsx)("source",{media:"(max-width: 767px)",srcSet:`${l}/mp-assets/widgets/SupportBlock/mobile-app.png 1x, ${l}/mp-assets/widgets/SupportBlock/mobile-app@2x.png 2x`}),(0,a.jsx)("img",{className:_.image,loading:"lazy",src:`${l}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg`,srcSet:`${l}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg 1x, ${l}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.jpg 2x`})]})})]})},h=(0,c.g)("support-phone-card","sc"),g=Object.freeze({supportPhoneCard:h,contacts:`${h}__contacts`,phone:`${h}__phone`,chat:`${h}__chat`,info:`${h}__info`,image:`${h}__image`}),f=({phones:e,description:t,s3Assets:l})=>{let n=(0,u.useCallback)(()=>{var e,t,l;null==(l=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||l.call(t),(0,r.h)({eventCategory:v,eventActionType:r.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),i=e=>{let t=e.replace(/[\s-]/g,"");(0,r.h)({eventCategory:v,eventActionType:r.D.link,eventActionText:"phone",eventLabel:t})};return(0,a.jsxs)("div",{className:g.supportPhoneCard,children:[(0,a.jsxs)("div",{className:g.contacts,children:[e.map(e=>(0,a.jsx)("a",{className:g.phone,href:e.href,onClick:()=>i(e.label),children:e.label},e.label)),(0,a.jsx)("span",{className:g.chat,onClick:n,children:"Онлайн чат"})]}),(0,a.jsx)("div",{className:g.info,children:t}),(0,a.jsx)("img",{className:g.image,src:`${l}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`})]})},x=({className:e,phoneCard:t,appCard:l,s3Assets:o})=>(0,a.jsx)("section",{className:(0,i.Z)(p.support,e),children:(0,a.jsxs)(n.W2,{children:[(0,a.jsx)(n.X6,{as:"h2",type:"display",weight:"bold",className:(0,i.Z)(p.title,"mb-6"),children:"Поддержка"}),(0,a.jsxs)("div",{className:p.cardsContainer,children:[(0,a.jsx)(f,{s3Assets:o,...t}),(0,a.jsx)(b,{s3Assets:o,...l})]})]})});x.displayName="Support"}},function(e){e.O(0,[6832,5249,2935,4581,5675,1127,3996,3803,1911,4152,5344,9461,7876,6429,2888,9774,179],function(){return e(e.s=9677)}),_N_E=e.O()}]);