(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2164],{2515:e=>{e.exports={button:"MainButton_button__FCI2Y",buttonLink:"MainButton_buttonLink__Xw6WW",buttonIcon:"MainButton_buttonIcon__E_yD6"}},7145:e=>{e.exports={background:"PageHeading_background__4jvJ9",breadcrumbs:"PageHeading_breadcrumbs__GLBov",newBannerBreadcrumbs:"PageHeading_newBannerBreadcrumbs__N5_rz"}},12814:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a={src:"/kredity/assets/_next/static/media/banner-3.d8c0abe9.svg",height:228,width:332,blurWidth:0,blurHeight:0}},18345:(e,t,n)=>{"use strict";n.d(t,{l:()=>u});var a=n(37876),i=n(14232),l=n(83188),r=n(87162),o=n(5153),s=n(40946),c=n(62728);let u=(0,i.memo)(e=>{var t,n,u;let{data:d,bank:m,pageUrl:p,className:_,withoutFullInfoLink:g}=e,f={logoMobile:null==m?void 0:m.logo_mob,description:null==m?void 0:m.short_description,url:"/banki/".concat(null==m?void 0:m.url),name:null==m?void 0:m.name,creditRating:null==m?void 0:m.credit_rating,netAssetsPlace:null==m||null==(t=m.ratings)?void 0:t.net_assets_place,netProfitRating:null==m?void 0:m.net_profit_rating,license:null==m?void 0:m.license,licenseDate:null!=(n=null==m?void 0:m.license_date)?n:void 0},{tabsContent:h,tabsList:v}=(e=>{let{data:t}=e,n=(0,i.useMemo)(()=>(0,o.pS)(t),[t]),a=(0,i.useMemo)(()=>s.D.filter(e=>n[e.name].some(e=>(0,c.a)(e.value))),[n]);return{tabsContent:n,tabsList:a}})({data:d});return(0,a.jsx)(l.H,{className:_,scrollBlockId:r.uB,pageUrl:p,seoText:(null==d?void 0:d.short_description)&&(null==d?void 0:d.short_description.length)>5?null==d?void 0:d.short_description:void 0,title:"О кредите",offerUpdateData:null==d?void 0:d.m_updated_at,bank:f,tabsList:v,tabsContent:h,aboutCompanyLabel:"О банке",site:null!=(u=null==m?void 0:m.site.title)?u:void 0,withoutFullInfoLink:g})});u.displayName="CreditAbout"},24273:e=>{e.exports={aboutIcons:"about-icons_aboutIcons__XtW1M",aboutIconsList:"about-icons_aboutIconsList__UMwu9",aboutIconsItem:"about-icons_aboutIconsItem__dvg_e"}},25167:(e,t,n)=>{"use strict";n.d(t,{K:()=>a});let a=(e,t)=>{var n,a;if("Enter"===e.key&&(null==(n=document.activeElement)?void 0:n.tagName)==="INPUT"){let e=document.getElementById(null==(a=document.activeElement)?void 0:a.id);e&&(e.blur(),t())}}},31339:e=>{e.exports={page:"CreditsDetail_page__xr76u",breadcrumbs:"CreditsDetail_breadcrumbs__YIK6Z",list:"CreditsDetail_list__GM2Lp",settings:"CreditsDetail_settings__yAHPK",faqSection:"CreditsDetail_faqSection__cdO8j",supportSection:"CreditsDetail_supportSection__bW6de",pickerSection:"CreditsDetail_pickerSection__hz_ol"}},32272:e=>{e.exports={container:"CreditHowApplyLoanSteps_container__WOS_3",title:"CreditHowApplyLoanSteps_title__2Pj7q",ebaniText:"CreditHowApplyLoanSteps_ebaniText__wbY2K",sliderContainer:"CreditHowApplyLoanSteps_sliderContainer__QD7FO",bannerCard:"CreditHowApplyLoanSteps_bannerCard__tec9j",badge:"CreditHowApplyLoanSteps_badge__JJpHU",text:"CreditHowApplyLoanSteps_text__F5ALs"}},32436:(e,t,n)=>{"use strict";n.d(t,{D:()=>d,Y:()=>u});var a=n(37876),i=n(48230),l=n.n(i),r=n(49995),o=n(36622),s=n.n(o);let c={PLATFORM_RULES:{url:"https://assets.finuslugi.ru/mp-assets/application-platform-rules.pdf",text:"pravilam_platformy"},APPLICATION_PLATFORM_RULES:{url:"https://assets.finuslugi.ru/mp-assets/platform-rules.pdf",text:"zayavlenie_o_prisoedinenii"},USER_AGREEMENT:{url:"https://assets.finuslugi.ru/mp-assets/user-agreement.pdf",text:"polzovatelskim_soglasheniem"},AGREEMENT_PERSONAL_DATA:{url:"https://assets.finuslugi.ru/mp-assets/agreement-personal-data.pdf",text:"soglasie_na_obrabotku_personalnyh_dannyh"}};var u=function(e){return e.blue="blue",e.grey="var(--color-black-300)",e.purple="var(--color-purple-600)",e}({});let d=e=>{let{className:t,onLinkClick:n,linkColor:i="blue",startText:o="Регистрируясь через Госуслуги"}=e;return(0,a.jsxs)("div",{style:{"--link-color":i},className:(0,r.A)(s().agreementBlock,t),children:[o,", вы подписываете своей электронной подписью"," ",(0,a.jsx)(l(),{target:"_blank",className:s().link,href:c.APPLICATION_PLATFORM_RULES.url,onClick:()=>null==n?void 0:n(c.APPLICATION_PLATFORM_RULES),children:"Заявление о присоединении"})," ","к"," ",(0,a.jsx)(l(),{target:"_blank",className:s().link,href:c.PLATFORM_RULES.url,onClick:()=>null==n?void 0:n(c.PLATFORM_RULES),children:"Правилам платформы"})," ","и"," ",(0,a.jsx)(l(),{target:"_blank",className:s().link,href:c.AGREEMENT_PERSONAL_DATA.url,onClick:()=>null==n?void 0:n(c.AGREEMENT_PERSONAL_DATA),children:"Согласие на обработку персональных данных"}),", a также соглашаетесь с"," ",(0,a.jsx)(l(),{target:"_blank",className:s().link,href:c.USER_AGREEMENT.url,onClick:()=>null==n?void 0:n(c.USER_AGREEMENT),children:"Пользовательским соглашением"})]})}},35954:(e,t,n)=>{"use strict";function a(e){let t=0,n=e.split(",").map(e=>e.trim());n[0].match(/^\d+$/)&&(t=1);let a=n.slice(t),i=-1;for(let e=0;e<a.length;e++)if(a[e].startsWith("г.")){i=e;break}let l=1===t?n[0]:void 0;return{"@type":"PostalAddress",addressCountry:"RU",postalCode:l,addressLocality:a.slice(0,i+1).join(", ")||void 0,streetAddress:a.slice(i+1).join(", ")||void 0}}n.d(t,{O:()=>a})},36622:e=>{e.exports={agreementBlock:"EsiaAgreement_agreementBlock__5WEss",link:"EsiaAgreement_link__NDpUV"}},40946:(e,t,n)=>{"use strict";n.d(t,{D:()=>l,M:()=>i});var a=n(5153);let i=n(37105).h.POTREBITELSKIE,l=[{id:1,label:"Условия",name:a.c$.conditions},{id:2,label:"Требования",name:a.c$.requirements},{id:3,label:"Погашения",name:a.c$.redemption},{id:4,label:"Каналы погашения",name:a.c$.repaymentChannels}]},41925:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var a=n(37876),i=n(14232),l=n(89099),r=n(20988),o=n(49995),s=n(16891),c=n(91063),u=n(87087),d=n(38200),m=n(33126),p=n(83024),_=n(92666),g=n(7145),f=n.n(g);function h(e){let{tag:t,inRegion:n,pageUrl:g,title:h,pageTitle:v}=e,b=(0,p.fH)(),{region:x,town:y}=(0,_.z)(),{mainBaseUrl:C}=(0,m.UK)(),k=(0,d.G)(),{asPath:j}=(0,l.useRouter)(),E="".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):""),T=(0,i.useCallback)(e=>{var t;let n=(null==e||null==(t=e.currentTarget)?void 0:t.textContent)?(0,u.y)(e.currentTarget.textContent):"glavnaya";(0,c.o)({event:"data-event",eventAction:"click_link_".concat(n),eventCategory:g,customer_id:b})},[g,b]),N=(e=>{let{tag:t,title:n,pageTitle:a,inRegion:i,mainBaseUrl:l,pathName:r,regionUrl:o,pageUrl:s}=e,c=t&&"DEFAULT"!==t.tag_name?',{"@type":"ListItem","position":3,"name":"&#128181 '.concat(n).concat(i,'","item":"').concat(l).concat(r,'"}'):"",u='{"@type":"ListItem","position":1,"name":"Финуслуги","item":"'.concat(l,'"}'),d='{"@type":"ListItem","position":2,"name":"'.concat(a).concat(i,'","item":"').concat(l,"/").concat(s).concat(o,'"}');return"{".concat('"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":['.concat(u),",").concat(d).concat(c,"]}")})({title:h,pageTitle:v,pathName:j,mainBaseUrl:C,tag:t,inRegion:n,regionUrl:E,pageUrl:g});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:(0,o.A)(f().background,"bg-".concat(k))}),(0,a.jsx)("div",{children:(0,a.jsxs)(s.J,{children:[(0,a.jsx)(r.BI,{className:(0,o.A)(f().breadcrumbs,f().newBannerBreadcrumbs),items:(()=>{let e=[{label:"Главная",href:"/"},{label:"".concat(v).concat(n),href:"/".concat(g).concat(E)}];return"DEFAULT"!==t.url&&e.push({label:"".concat(h).concat(n),href:"/".concat(g,"/teg_").concat(t.url).concat(E)}),e.pop(),e.push({label:"".concat(h).concat((null==t?void 0:t.default)?n:"")}),e})(),onClick:T}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:N}})]})})]})}},47266:(e,t,n)=>{"use strict";n.d(t,{e5:()=>a,j5:()=>l,lD:()=>i});let a=["Каналы погашения","Как я получу свои деньги?","Могу ли я получить предварительное одобрение в одном банке?","Может ли банк в итоге отказать мне в кредите, если предварительно его одобрил?","Как я узнаю, что банк одобрил мне кредит?"],i=["Могу ли я получить предварительное одобрение в одном банке?","Как повысить кредитный рейтинг?"],l=102},47691:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var a=function(e){return e.amount="amount",e.period="period",e.vipPrivilege="vipPrivilege",e.cardType="cardType",e.payment="payment",e.purpose="purpose",e.borrower="borrower",e.proofIncome="proofIncome",e.loan="loan",e.form="form",e.bank="bank",e}({})},48900:e=>{e.exports={offers:"styles_offers__GZ00j"}},50300:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>no,default:()=>ns});var a,i,l=n(37876),r=n(14232),o=n(92385),s=n(33126);n(81136),n(62862);var c=n(81202);n(37397);var u=n(48230),d=n.n(u),m=n(20988),p=n(10027),_=n(16891),g=n(31655),f=n(62576),h=n(47266),v=n(18345),b=n(54587),x=n.n(b),y=n(87162);let C={src:"/kredity/assets/_next/static/media/banner-1.6590dcb3.svg",height:230,width:300,blurWidth:0,blurHeight:0},k={src:"/kredity/assets/_next/static/media/banner-2.4e5dff1a.svg",height:208,width:301,blurWidth:0,blurHeight:0},j={src:"/kredity/assets/_next/static/media/banner-7.8a2298b9.svg",height:230,width:301,blurWidth:0,blurHeight:0};var E=n(5552),T=n(32272),N=n.n(T);let A=[{id:1,image:{src:"/kredity/assets/_next/static/media/banner-3.adc4440a.svg",height:208,width:300,blurWidth:0,blurHeight:0},text:"Выберите кредит на витрине Финуслуг и нажмите \xabВойти через Госуслуги\xbb"},{id:2,image:k,text:"Привяжите Госуслуги и подтвердите документы через Тинькофф ID или у представителя Финуслуг"},{id:3,image:j,text:"Отправьте заявку на кредит.\xa0Деньги будут переведены банком на кошелёк Финуслуг"},{id:4,image:C,text:"Вывести деньги к себе на счет в любом банке можно без комиссий через СБП"}],w=[{id:1,image:k,text:"Войдите на Финуслуги с помощью своего аккаунта Госуслуг"},{id:2,image:j,text:"Заполните кредитную заявку и введите промокод FIN23 в поле для промокода"},{id:3,image:{src:"/kredity/assets/_next/static/media/banner-6.ecb80fa6.svg",height:208,width:301,blurWidth:0,blurHeight:0},text:"Отправьте одну заявку в разные банки, чтобы получить несколько предложений и выбрать выгодное"},{id:4,image:C,text:"Дождитесь звонка или СМС от банка и выберите офис для получения кредита. Получите кредит"}],I=(0,r.memo)(e=>{let{offerType:t,bankName:n=""}=e,a=(0,E.sw)(),i=t===c._.PLATFORM?A:w;return(0,l.jsxs)("section",{id:y.Z5,className:N().container,children:[(0,l.jsxs)("h2",{className:N().title,children:[(0,l.jsxs)("span",{children:["Как оформить кредит в ",n]})," ",(0,l.jsx)("span",{className:N().ebaniText,children:"Финуслугах"})]}),(0,l.jsx)("div",{className:N().sliderContainer,children:(0,l.jsx)(m.Ap,{navigation:!a,navigationPlacement:"outside",navigationSize:"m",navigationVariant:"primary",options:{slidesPerView:a?1:3,spaceBetween:a?16:32,centeredSlides:a},pagination:!0,children:i.map(e=>(0,l.jsxs)(m.DQ,{className:N().bannerCard,children:[(0,l.jsxs)("span",{className:N().badge,children:["Шаг ",e.id]}),(0,l.jsx)("p",{className:N().text,children:e.text}),(0,l.jsx)(x(),{width:300,height:208,alt:"banner"+e.id,src:e.image})]},e.id))})})]})});I.displayName="CreditHowApplyLoanSteps";var L=n(25904),S=n(49995),P=n(30557);let M={src:"/kredity/assets/_next/static/media/app-qr-credits-detail.824367b9.svg",height:256,width:256,blurWidth:0,blurHeight:0};var O=n(14082),R=n(5219),B=n(53244),F=n(32436),U=n(52841),D=n(63292),K=n(95655),H=n(37105),V=n(31257),W=n(83024),q=n(2515),z=n.n(q);let G={[c._.PLATFORM]:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x(),{src:K.A,alt:"",className:z().buttonIcon})," Войти через Госуслуги"]}),[c._.REFERAL]:"Оформить на сайте банка",[c._.UNPLATFORM]:"Оформить кредит",[c._.MASS]:"Подобрать кредит"},Z={[c._.UNPLATFORM]:"Oformit onlayn",[c._.REFERAL]:"Oformit na sayte banka",[c._.MASS]:"oformit_online_seo"},Y=(0,r.memo)(e=>{let{href:t,offerType:n,creditId:a}=e,i=(0,W.fH)();return(0,l.jsx)(m.$n,{rel:"nofollow sponsored",as:"a",href:t,target:"_blank",className:z().button,onClick:()=>{n!==c._.PLATFORM&&(0,V._)({customerId:i,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.button,eventActionText:Z[n],eventLabel:a,url:t})},children:G[n]})});Y.displayName="MainButton";var J=n(79807),$=n(35415),Q=n(21754),X=n(89064),ee=n(63921),et=n(53172),en=n(92568),ea=n.n(en);let ei=e=>{var t,n,a;let{offerType:i,bannerUrl:o,bank:s,credit:u,isMobile:d,calculator:p}=e,g=(0,W.fH)(),[f,h]=(0,r.useState)(!1),{amount:v,periodValue:b,paymentTypeOptions:x,paymentTypeValue:C,periodMax:k,periodMin:j,tag:E,repayment:T,amountMax:N,amountMin:A,url:w,handleChangeAmount:I,handleChangePeriod:K,setPaymentTypeValue:q}=p,z=(0,ee.o)(w),G=(null==(t=C[0])?void 0:t.value)===c.w.differentiated?c.w.differentiated:c.w.annuity,Z=(0,$.l5)(b),en=(0,r.useRef)(null),ei=(0,r.useRef)(null),el=((e,t,n)=>t&&e<t?"Минимальная сумма - ".concat((0,J.ZV)(t)," ₽"):n&&e>n?"Максимальная сумма - ".concat((0,J.ZV)(n)," ₽"):void 0)(v,A,N),er=(0,r.useMemo)(()=>({values:b,max:k,min:j===k?j-1:j,onChange:e=>{e=null!=e?e:j,j!==k&&K(e)},step:1,ticks:[{label:(0,$.Hb)(j),value:j},{label:(0,$.Hb)(k),value:k}],unit:[X.U9.ONE,X.U9.FEW,X.U9.MANY]}),[K,k,j,b]),eo=(0,r.useMemo)(()=>[{id:1,label:Z},{id:2,label:"".concat(v||"1 ₽")}],[v,Z]),es=(0,r.useCallback)(()=>{var e;d&&en.current&&(h(!0),(0,V._)({customerId:g,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.popup,eventActionText:"edit_settings"}),setTimeout(()=>{en.current&&(0,et.e)(en.current,{position:"top"})},300)),d||null==(e=ei.current)||e.focus()},[d,g]),ec=(0,r.useCallback)(e=>{e&&((0,V._)({customerId:g,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.filterCatalog,eventLabel:"Порядок погашения",eventValue:e.label}),q([e]))},[q,g]),eu=(0,r.useMemo)(()=>{let e=new Date;e.setDate(e.getDate()+3);let t=e.getDate(),n=e.getMonth()+1,a=e.getFullYear();return"Сможете получить до ".concat(t," ").concat((0,Q.F)("".concat(n,"-").concat(t,"-").concat(a)))},[]),ed=(0,r.useMemo)(()=>{let e=[],t=u.full_price;if(t){let n=u.interest_rate;e.push({label:"ПСК",value:(0,P.o)(t),description:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n    Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."},{label:"Процентная ставка",value:(0,J.sP)(Number(n.from),Number(n.to))})}e.push({label:"Срок",value:"".concat((0,$.l5)(b))});let n=x.length>1?G:null;return n&&e.push({label:"Платеж",value:n===c.w.annuity?"Аннуитетный":"Дифференцированный",description:(0,l.jsx)("div",{className:ea().tooltipContent,children:(0,l.jsx)(B.q,{type:n})})}),e},[x.length,G,u.full_price,u.interest_rate,b]),em=i===c._.MASS||i===c._.REFERAL?"Где оформить кредит":"Как оформить кредит";return(0,l.jsxs)(_.J,{className:(0,S.A)(ea().container,ea().containerFull),children:[(e=>{var t,n;return(0,l.jsx)(U.E,{url:u.url,bank:{logoMob:null==s?void 0:s.logo_mob,url:"/banki/".concat(null==s?void 0:s.url),name:null!=(t=null==s?void 0:s.name)?t:u.bank_name},pageUrl:H.h.POTREBITELSKIE,title:"Кредит \xab".concat(u.title,"\xbb от ").concat(null!=(n=null==s?void 0:s.name)?n:u.bank_name),isMobile:d,isSmall:e,tagTheme:"purple",className:ea().promo})})(),(0,l.jsxs)("div",{className:ea().left,children:[(0,l.jsx)(O.t,{isMobile:!!d,title:"Настройки кредита",pageUrl:H.h.POTREBITELSKIE,infoLink:{isShow:!d,text:"Подробнее о кредите",idScrollBlock:y.uB,offPadding:!0,widthMaxContent:!0},items:[{elements:[{type:"moneyInput",props:{label:"Сумма",value:v,inputRef:ei,onChange:e=>{(0,V._)({customerId:g,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.filterCatalog,eventLabel:"Сумма",eventValue:String(e)}),I(e)},caption:el,state:el?"error":void 0,size:"l"}}]},(null==(n=C[0])?void 0:n.value)?{elements:[{type:"inputRange",props:{label:"Срок погашения",...er}}]}:null,{elements:[{type:"select",isHidden:!C||x.length<=1,desription:(0,l.jsx)(B.q,{className:ea().typeDescription,type:null==(a=p.paymentTypeValue[0])?void 0:a.value}),props:{label:"Порядок погашения",options:x,onChange:ec,value:C,size:"l"}}]}],chips:eo,isShowChips:d&&!!(null==eo?void 0:eo.length)&&!f,isExpandSettings:f,onToggleSettings:()=>h(e=>!e)}),(0,l.jsx)(D.P,{qr_image:M,bannerUrl:o,isSmall:!0,className:ea().qrDesc})]}),(0,l.jsxs)("div",{className:ea().right,children:[(0,l.jsx)(R.r,{captionTitle:eu,pageUrl:H.h.POTREBITELSKIE,onEdit:es,amount:v,disclaimer:"Предварительные условия. Не оферта",tag:E,repayment:T,footerActions:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Y,{href:z,offerType:i,creditId:u.id}),(0,l.jsx)(m.$n,{variant:"secondary",className:ea().button,onClick:()=>(e=>{let t=i===c._.MASS||i===c._.REFERAL?y.ov:y.Z5;(0,V._)({customerId:g,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.button,eventActionText:e}),(0,et.e)(t,{offset:d?0:-100,position:"top"})})(em),children:em}),(0,l.jsx)(m.$n,{variant:"purple",appearance:"ghost",size:"s",label:"Не подходит предложение?",className:ea().adviceLink,iconRight:(0,l.jsx)(L.IconFdsArrowUpRightSmallO,{}),onClick:()=>{(0,V._)({customerId:g,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.button,eventActionText:"Не подходит предложение"}),(0,et.e)(y.yB,{offset:d?0:-100,position:"top"})}})]}),agreement:i===c._.PLATFORM&&(0,l.jsx)(F.D,{onLinkClick:e=>{let{url:t,text:n}=e;(0,V._)({customerId:g,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.link,eventActionText:n,url:t})}}),valuesList:ed}),(0,l.jsx)(D.P,{qr_image:M,bannerUrl:o,isSmall:!0,className:ea().qrMobile})]})]})};var el=n(40419),er=n(19419),eo=n(13394),es=n(40946),ec=n(96759),eu=n(51451),ed=n(2510),em=n(92666),ep=n(71348),e_=n.n(ep);let eg=(0,r.memo)(e=>{let{bank:t,banks:n,currentCreditId:a,offers:i,offersFinuslugi:o,className:c}=e,u=(0,W.fH)(),{town:d,region:m}=(0,em.z)(),[p,g]=(0,r.useState)(),h=(0,r.useCallback)(()=>{g(void 0)},[]),v=(0,r.useCallback)(e=>{(0,V._)({customerId:u,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},[u]),b=(0,r.useMemo)(()=>{let e=i?i.filter(e=>e.id!==a):[];return(0,ec.q)({productList:e,anotherList:e,count:f.gx})},[i,a]),x=(0,r.useMemo)(()=>{let e=null!=o?o:[];return(0,ec.q)({productList:e,anotherList:e,count:f.a0-b.length})},[b.length,o]),C=(0,r.useMemo)(()=>({bankList:b.map(e=>(0,eu.q)({banks:[t],credit:e,isPlatform:!0})),finuslugiList:x.map(e=>(0,eu.q)({banks:n,credit:e,isPlatform:!0}))}),[t,n,b,x]),k=(0,r.useCallback)(e=>{if(!e)return;let t=[b,x].reduce((e,t)=>[...e,...t],[]).find(t=>t.id===e.id);if(t){var n,a;return{...t,site:{...e.site},bankName:e.bankName,detailUrl:null!=(n=e.detailUrl)?n:"",logo:e.logo,url:null!=(a=e.url)?a:""}}},[b,x]),j=(0,r.useCallback)(e=>{g(k(e)),e&&(0,V._)({customerId:u,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.popup,eventActionText:e.title,eventLabel:e.id})},[k,u]),E=void 0!==m?"/".concat(ed.s6).concat(m.url).concat(void 0!==d?"/".concat(d.url):""):"",T="".concat((0,s.UK)().mainBaseUrl,"/banki/").concat(t.url,"/potrebitelskie_kredity").concat(E);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("section",{id:y.cA,className:(0,S.A)(e_().container,c),children:[(0,l.jsx)("h3",{className:e_().title,children:"Другие кредитные предложения"}),(0,l.jsxs)(_.J,{children:[!!C.bankList.length&&(0,l.jsxs)("section",{className:e_().offersListContainer,children:[(0,l.jsxs)("p",{className:e_().listTitle,children:["Кредиты онлайн от ",t.name]}),C.bankList.map(e=>(0,l.jsx)(r.Fragment,{children:(0,l.jsx)(er.G,{className:e_().listItem,data:e,eventCategory:es.M,text:"Подать заявку",onDetailInfoClick:j,onClick:v},e.url)},e.id)),(0,l.jsx)(el.e,{offPadding:!0,text:"Bсе предложения от банка",href:T,target:"_blank",iconColor:"light",mainPageUrl:H.h.POTREBITELSKIE})]}),!!C.finuslugiList.length&&(0,l.jsxs)("section",{className:e_().offersListContainer,children:[(0,l.jsx)("p",{className:e_().listTitle,children:"Кредиты онлайн на Финуслугах"}),C.finuslugiList.map(e=>(0,l.jsx)(r.Fragment,{children:(0,l.jsx)(er.G,{className:e_().listItem,data:e,eventCategory:es.M,text:"Подать заявку",onClick:v,onDetailInfoClick:j},e.url)},e.id)),(0,l.jsx)(el.e,{offPadding:!0,text:"Bсе предложения на Финуслугах",href:"/potrebitelskie_kredity",target:"_blank",iconColor:"light",mainPageUrl:H.h.POTREBITELSKIE})]})]})]}),(0,l.jsx)(eo.u,{data:p,isOpen:!!p,onClose:h,mainPageUrl:es.M})]})});eg.displayName="CreditsList";var ef=n(26700),eh=n(66295),ev=n(12814),eb=n(99689),ex=n(92152),ey=n(14873),eC=n(39954),ek=n(98560),ej=n.n(ek);let eE=(0,r.memo)(e=>{let{bannerUrl:t,bankUrl:n,offerType:a,urlGivingCredit:i}=e,o=(0,E.sw)(),u=(0,eC.P)(),{lkBaseUrl:d}=(0,s.UK)(),m=(0,r.useMemo)(()=>[{id:4,image:eb.A,text:"Перейдите на сайт банка, чтобы оформить заявку",buttonText:"Оформить на сайте банка",link:n,types:[c._.REFERAL]},{id:1,image:ef.A,text:a===c._.REFERAL?"Этот кредит сейчас нельзя открыть через&#160;Финуслуги":"Этот кредит сейчас нельзя открыть онлайн&#160;на&#160;Финуслугах",buttonText:"Посмотреть кредиты на Финуслугах",link:"/potrebitelskie_kredity",types:[c._.REFERAL]},{id:6,image:ef.A,text:"Этот кредит сейчас нельзя открыть онлайн&#160;на&#160;Финуслугах",buttonText:"Подобрать кредит",link:i,types:[c._.MASS]},{id:2,image:eh.A,text:"Чтобы оформить кредит, обратитесь&#160;в банк",link:"",types:[c._.MASS]},{id:3,image:ev.A,text:"Оформите кредит на сайте <br /> Финуслуг",buttonText:"Оформить через Финуслуги",link:"".concat(d,"/registration?returnTo=%2Fcredits%2Fnew%3FskipName%3Dtrue%26registrationMode%3Dphone"),types:[c._.PLATFORM,c._.UNPLATFORM]},{id:5,image:ex.A,text:"В мобильном приложении <br /> Финуслуг",buttonText:"Скачать приложение",types:[c._.PLATFORM,c._.UNPLATFORM],link:t}].filter(e=>e.types.find(e=>e===a)&&!(e.link===t&&u)),[n,t,u,d,a,i]);return(0,l.jsx)("div",{className:ej().container,children:(0,l.jsx)(ey.N,{title:"Где оформить кредит",pageUrl:H.h.POTREBITELSKIE,id:y.ov,isMobile:o,slides:m,offerType:a})})});eE.displayName="CreditWhereApplyLoanSteps";var eT=n(89099);let eN=(e,t,n)=>{if(!e)return t/n;let a=e/12/100;return a*(1+a)**n/((1+a)**n-1)*t},eA=(e,t,n)=>e?t/n+e/12/100*t:t/n,ew=(e,t,n)=>{if(!e)return{amount:t*n,payment:t};let a=e/12/100;return{amount:t/(a*(1+a)**n/((1+a)**n-1)),payment:t}},eI=(e,t,n)=>{if(!e)return{amount:t*n,payment:t};let a=e/12/100,i=t/(a+1/n);return{amount:i,payment:t/(n*a+1)+i*a}};var eL=n(75464),eS=n(37264),eP=n(99388),eM=n(91063),eO=n(75027),eR=n(30228),eB=n(96470),eF=n(9837),eU=n(66460),eD=n(6980),eK=n(80490),eH=n(99275),eV=n(31339),eW=n.n(eV);function eq(e){var t,n;let{offer:a,journal:i,offerType:o,questions:u,description:b,banks:x,refererTag:y,offers:C,offersFinuslugi:k,support:j}=e,T=(0,E.sw)(),N=(0,eR.I)(f.Js),A=(0,eO.I)({bannersTitle:[f.BZ.CREDITS_DETAIL],queryParams:N});(0,eP.eg)(eP.ch.Credit);let w=(e=>{var t,n,a,i,l,o;let s=Number(null!=(i=e.amount.from)?i:1),u=e.amount.to?Number(e.amount.to):null,d=Number(null!=(l=e.period.from)?l:1),m=Number(null!=(o=e.period.to)?o:1),p=e.online_application.commercial_desc,_=(0,r.useRef)(!1),{asPath:g}=(0,eT.useRouter)(),f=+e.interest_rate.from,h=(0,r.useMemo)(()=>{let t=[];return e.repayment_procedure.annuity&&t.push({label:"Аннуитетный",value:c.w.annuity}),e.repayment_procedure.differentiated&&t.push({label:"Дифференцированный",value:c.w.differentiated}),t},[e.repayment_procedure]),[v,b]=(0,r.useState)(s),[x,y]=(0,r.useState)(0),[C,k]=(0,r.useState)(m),[j,E]=(0,r.useState)(0),[T,N]=(0,r.useState)([h[0]]),A=(null==(t=T[0])?void 0:t.value)===c.w.annuity?j*C-v:((e,t,n,a)=>{let i=e/12/100;return(a*i+t-t*i*(n-1)/2)*n-a})(f,j,C,v),w=(0,eS.Ws)(e,(0,eS.WU)(),{amount:String(v),term:C}),I=(null==(n=T[0])?void 0:n.value)===c.w.annuity?eN:eA,L=(null==(a=T[0])?void 0:a.value)===c.w.annuity?ew:eI,S=(0,r.useCallback)(e=>{let t=null!=e?e:0;b(t);let n=I(f,t,C);y(Math.round(n)),E(n)},[I,C,f]),P=(0,r.useCallback)(e=>{k(e);let t=I(f,v,e);y(Math.round(t)),E(t)},[v,I,f]),M=(0,r.useCallback)(e=>{let t=null!=e?e:0;y(t),b(Math.round(L(f,t,C).amount)),E(+t)},[L,C,f]);return(0,r.useEffect)(()=>{if(_.current)return;let t=(0,eL.$)(g,"#"),n=+t.amount,a=+t.period;(!n||isNaN(n))&&(n=3e5),(!a||isNaN(a))&&(a=m),void 0!==e.amount.from&&+e.amount.from>n&&(n=+e.amount.from),e.amount.to&&+e.amount.to<n&&(n=+e.amount.to),a>m&&(a=m),a<d&&(a=d),b(n),k(a);let i=I(f,n,a);y(Math.round(i)),E(i),_.current=!0},[v,g,e.amount.from,e.amount.to,S,I,x,m,d,f]),(0,r.useMemo)(()=>({amount:v,payment:x,periodValue:C,setPeriod:k,paymentTypeOptions:h,paymentTypeValue:T,setPaymentTypeValue:N,rate:f,amountMin:s,amountMax:u,periodMin:d,periodMax:m,tag:p,handleChangeAmount:S,handleChangePeriod:P,handleChangePayment:M,finalPayment:j,repayment:A,url:w}),[v,x,C,h,T,f,s,u,d,m,p,S,P,M,j,A,w])})(a),L=(0,r.useMemo)(()=>x.find(e=>+e.id==+a.bank_id),[x,a.bank_id]),{region:S,town:P}=(0,em.z)(),M=null==(t=u.find(e=>e.id===h.j5))?void 0:t.questions.filter(e=>h.e5.includes(e.question)).map(e=>({title:e.question,text:e.answer,plainText:(0,eB.NC)(e.answer).trim()})),O="Потребительский кредит \xab".concat(a.title,"\xbb от ").concat(null!=(n=null==L?void 0:L.name_r)?n:"");return(0,l.jsxs)("main",{className:eW().page,children:[(0,l.jsx)(p.I,{productId:String(a.id),title:O,description:null!=b?b:""}),(0,l.jsx)(eU.t,{}),(0,l.jsx)(eF.c,{questions:null!=M?M:[]}),(0,l.jsx)("div",{className:eW().navigationWrapper,children:(0,l.jsx)(_.J,{children:(0,l.jsx)(m.BI,{className:eW().breadcrumbs,items:(()=>{var e;let t=(null==P?void 0:P.name_p)||(null==S?void 0:S.name_p)?" в ".concat((null==P?void 0:P.name_p)||(null==S?void 0:S.name_p)):"",n="".concat((null==S?void 0:S.url)?"/reg_".concat(null==S?void 0:S.url):"").concat((null==P?void 0:P.url)?"/".concat(null==P?void 0:P.url):""),i=[{label:"Главная",href:"/"},{label:"Кредиты".concat(t),href:"/potrebitelskie_kredity".concat(n)}];return y&&i.push({label:"".concat(y.name).concat(t),href:"/potrebitelskie_kredity/teg_".concat(y.url).concat(n)}),i.push({label:"".concat(null!=(e=null==L?void 0:L.name)?e:a.bank_name," Кредит ").concat(a.title)}),i})()})})}),(0,l.jsxs)(_.J,{children:[(0,l.jsx)(ei,{offerType:o,credit:a,isMobile:T,calculator:w,bank:L,bannerUrl:A[f.BZ.CREDITS_DETAIL]}),(0,l.jsx)(v.l,{data:a,bank:L,pageUrl:H.h.POTREBITELSKIE})]}),[c._.PLATFORM,c._.UNPLATFORM].includes(o)&&(0,l.jsx)(I,{offerType:o,bankName:null==L?void 0:L.name_p}),(0,l.jsx)(eE,{bannerUrl:A[f.BZ.CREDITS],bankUrl:a.online_application.url,offerType:o,urlGivingCredit:w.url}),L&&(0,l.jsx)(eg,{bank:L,banks:x,currentCreditId:a.id,offers:C,offersFinuslugi:k}),(0,l.jsx)(g.T,{url:"/master_podbora_kredita",mainPageUrl:es.M,text:"Войдите на Финуслуги и заполните небольшую анкету, а мы подберем для вас несколько кредитов на выбор"}),i.posts.length>0&&(0,l.jsx)(eD.C,{posts:i.posts,eventCategory:H.h.POTREBITELSKIE}),(0,l.jsx)("div",{className:eW().supportSection,children:(0,l.jsx)(eK.E,{value:j})}),(0,l.jsx)("div",{className:eW().faqSection,children:(0,l.jsx)(eH.m,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,l.jsx)(d(),{...e}),dataLayerPush:eM.o,questions:M,eventCategory:"credits_support_block",href:"".concat((0,s.UK)().mainBaseUrl,"/help/credits"),checkAllText:"Читать все вопросы про кредиты"})})]})}var ez=n(80505);n(34711);var eG=n(28131);n(37071),n(81787);var eZ=n(23857);n(7455);let eY=e=>{let{banks:t,offer:n,offerType:a,journal:i,questions:r,description:o,layout:s,refererTag:c,offers:u,offersFinuslugi:d,support:m}=e;return(0,l.jsx)(eZ.P,{data:s,children:(0,l.jsx)(eq,{creditTag:null,offerType:a,questions:r,offer:n,journal:i,description:o,banks:t,refererTag:c,fetchFromNewApi:!1,offers:u,offersFinuslugi:d,support:m})})};n(17154),n(13126);var eJ=n(84266),e$=n(74153),eQ=n.n(e$);let eX=e=>{let{inRegion:t,bestOffers:n}=e;return n.length?(0,l.jsxs)("div",{className:eQ().bestOffers,children:[(0,l.jsxs)("h2",{className:eQ().title,children:["Лучшие предложения по кредитам ",t]}),(0,l.jsx)("div",{className:eQ().content,children:(0,l.jsx)("div",{className:eQ().contentInner,children:(0,l.jsx)("div",{className:eQ().list,children:n.map(e=>(0,l.jsx)(e0,{...e},e.id))})})})]}):null},e0=e=>{let{url:t,logo:n,topCardAdvantage:a,bottomCardAdvantage:i,bankName:r,id:o,description:s}=e;return(0,l.jsxs)("div",{className:eQ().card,children:[(0,l.jsxs)("div",{className:eQ().cardHeading,children:[(0,l.jsx)("div",{className:eQ().cardIcon,children:(0,l.jsx)(x(),{width:56,height:56,src:n,alt:"logo"})}),(0,l.jsxs)("div",{className:eQ().cardHeadingContent,children:[(0,l.jsx)("p",{className:eQ().cardHeadingSubtitle,children:r?s:""}),(0,l.jsx)("p",{className:eQ().cardHeadingTitle,children:r||s})]})]}),(0,l.jsxs)("div",{className:eQ().cardAdvantage,children:[(0,l.jsx)("div",{className:eQ().captionWrapper,children:(0,l.jsx)("p",{className:eQ().cardAdvantageTitle,children:a.title})}),(0,l.jsx)("p",{className:eQ().cardAdvantageValue,children:a.value})]}),(0,l.jsxs)("div",{className:eQ().cardAdvantage,children:[(0,l.jsx)("p",{className:eQ().cardAdvantageTitle,children:i.title}),(0,l.jsx)("p",{className:eQ().cardAdvantageValue,children:i.value})]}),(0,l.jsx)(m.$n,{as:"a",className:eQ().cardBtn,href:t,children:"Подробнее"})]},o)};var e1=n(25972),e2=n(9507),e6=n(62835),e5=n(87768),e3=n(3010),e4=n(40818),e8=n(24523),e7=n(25167),e9=n(87087),te=n(47052),tt=n(87057),tn=n(86601),ta=n(75289),ti=n.n(ta);let tl=(0,e8.O)(),tr=(0,e8.O)(),to=e=>{var t,n,a;let{terms:i,filter:o,isMobile:s,banksOptions:c,onChangeFilter:u,onClose:d}=e,p=(0,W.fH)(),_=(0,r.useCallback)(()=>{d(),(0,et.e)(y.cA,{offset:s?0:-140,position:"top"})},[d,s]),g=(0,r.useCallback)(e=>{"Enter"===e.key&&_()},[_]),f=(0,r.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;tl(()=>{(0,eM.o)({event:"data-event",eventAction:H.h.POTREBITELSKIE,eventCategory:"filter_catalog",eventLabel:(0,e9.y)(e4.Be),eventValue:t,customer_id:p})}),u({amount:t})},[u,p]),h=(0,r.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;tr(()=>{(0,eM.o)({event:"data-event",eventAction:H.h.POTREBITELSKIE,eventCategory:"filter_catalog",eventLabel:(0,e9.y)(e4.So),eventValue:t,customer_id:p})}),u({payment:t})},[u,p]),v=(e,t)=>n=>{let a=[],i=[];if(Array.isArray(n)){var l;a=null==n?void 0:n.map(e=>{let{value:t}=e;return t}),i=null!=(l=null==n?void 0:n.map(e=>{let{label:t}=e;return t}))?l:[]}else a=n.value,i=[n.label];u({[e]:a}),(0,eM.o)({event:"data-event",eventAction:H.h.POTREBITELSKIE,eventCategory:"filter_catalog",eventLabel:(0,e9.y)(t),eventValue:(0,e9.y)(i.join(",")),customer_id:p})},b=e=>{if(o[e])return{value:o[e],label:""}};return(0,l.jsxs)("div",{onKeyDown:g,children:[(0,l.jsxs)("div",{className:ti().fields,children:[(0,l.jsx)(tt.F,{value:o.amount,label:e4.Be,onChange:f,onKeyDown:e=>(0,e7.K)(e,_)}),(0,l.jsx)(tt.F,{value:o.payment,label:e4.So,onChange:h,onKeyDown:e=>(0,e7.K)(e,_)}),(0,l.jsx)(m.l6,{label:"Срок",value:b("period"),options:i,onChange:v("period","Срок")}),(0,l.jsx)(m.l6,{label:"Цель кредита",value:b("purpose"),onChange:v("purpose","Срок"),options:e4.l5}),(0,l.jsx)(m.l6,{label:"Категория заемщика",value:(null==(t=o.borrowers)?void 0:t.map(e=>({value:e,label:""})))||[],selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,onChange:v("borrowers","Категория заемщика"),options:e4.PA,multiple:!0}),(0,l.jsx)(m.l6,{multiple:!0,label:"Подтверждение дохода",value:(null==(n=o.incomeProofs)?void 0:n.map(e=>({value:e,label:""})))||[],selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,onChange:v("incomeProofs","Подтверждение дохода"),options:e4.eb}),(0,l.jsx)(m.l6,{label:"Гарантия возврата денег",value:b("collateral"),onChange:v("collateral","Гарантия возврата денег"),options:e4.ni}),(0,l.jsx)(m.l6,{label:"Способ получения",value:b("form"),onChange:v("form","Способ получения"),options:e4.fy}),(0,l.jsx)(m.l6,{multiple:!0,label:"Банки",value:(null==(a=o.banks)?void 0:a.map(e=>({value:e,label:""})))||[],selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,onChange:v("banks","Банки"),options:c})]}),(0,l.jsx)("div",{className:ti().settings,children:(0,l.jsx)("div",{className:ti().settingsLeftBlock,children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h6",{className:ti().settingsTitle,children:"Сортировать"}),(0,l.jsx)("div",{className:ti().radioGroup,children:e4.s.map(e=>(0,l.jsx)(m.sx,{name:e.field,onChange:()=>{u({sort:e.field}),(0,eM.o)({event:"data-event",eventAction:H.h.POTREBITELSKIE,eventCategory:"filter_catalog",eventLabel:(0,e9.y)("Сортировать"),eventValue:(0,e9.y)(e.label),customer_id:p})},checked:e.field===o.sort,className:ti().radio,value:e.field,label:e.label},e.field))})]})})})]})},ts=e=>{let t=(0,W.fH)(),n=(0,te.Y)();(0,r.useEffect)(()=>{e.isOpen&&(0,eM.o)({event:"data-event",eventAction:"show_pop_up_podbor_kredita",eventCategory:H.h.POTREBITELSKIE,customer_id:t})},[e.isOpen,t]);let a=(0,r.useCallback)(()=>{e.onClose(),(0,et.e)(y.cA,{offset:e.isMobile?0:-140,position:"top"})},[e]);return(0,l.jsx)(e3.Z,{children:(0,l.jsx)(e5.K,{isMobile:e.isMobile,isOpen:e.isOpen,onClose:a,onClickReset:()=>e.onDrop(),footerContent:n&&(0,l.jsx)(tn.$,{className:ti().adfox,config:n,params:{pp:"ehod",ps:"foam",p2:"hojk"}}),onCLickShow:()=>{a(),e.onShow()},pageUrl:H.h.POTREBITELSKIE,title:"Все параметры",count:e.offersCount,children:(0,l.jsx)("div",{className:ti().content,children:(0,l.jsx)(to,{...e})})})})};var tc=n(47691),tu=n(54767),td=n(4149);let tm=["nalichnymi","na_1_god","s_zalogom","refinansirovanie","na_kartu","s_plohoj_kreditnoj_istoriej","pod_zalog_nedvizhimosti","bez_spravok"];var tp=n(72080),t_=n(75972),tg=n(69932),tf=n(41771),th=n(48673),tv=n(58885),tb=n.n(tv);function tx(){return(tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let ty=function(e){return r.createElement("svg",tx({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),a||(a=r.createElement("defs",null,r.createElement("clipPath",{id:"a"},r.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h16v16H0z"})))),i||(i=r.createElement("g",{clipPath:"url(#a)"},r.createElement("path",{fill:"#4C5058",d:"M8 14.66A6.66 6.66 0 0 1 1.33 8c0-3.69 2.98-6.67 6.67-6.67A6.66 6.66 0 0 1 14.66 8c0 3.68-2.98 6.66-6.66 6.66m0-1.33a5.335 5.335 0 1 0-.01-10.67A5.335 5.335 0 0 0 8 13.33M8.66 8h2.67v1.33h-4V4.66h1.33z"}))))},tC=(0,e8.O)(),tk=(0,e8.O)(),tj=(0,e8.O)(),tE=(0,r.memo)(e=>{let{region:t,heading:n,town:a,filter:i,tag:o,subtitle:c,banksOptions:u,tags:d,isMobile:p,isOpenModal:_,offersCount:g,onFilterChange:f,onFilterApply:h,onModalOpen:v,onModalClose:b}=e,x=(0,W.fH)(),C=(0,E._I)(),k=(0,te.Y)(),{push:j}=(0,eT.useRouter)(),T=(e=>{let t=(0,r.useMemo)(()=>{let t=(0,td.$)(e,"url");return tm.reduce((e,n)=>{let a=t[n];return void 0!==a&&e.push(a),e},[])},[e]);return(0,r.useMemo)(()=>t,[t])})(d),[N,A]=(0,r.useState)(i),w="".concat((0,s.UK)().trackerBaseUrl,"/click.php?key=f043af323c732a65e8e5&amount=").concat(N.amount),I=(0,ee.o)(w),L=(0,r.useCallback)(e=>{(0,eM.o)({event:"data-event",eventAction:e,eventCategory:H.h.POTREBITELSKIE,customer_id:x})},[x]),P=(0,r.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;A(e=>{let n={...e,amount:t};return tC(()=>{(0,eM.o)({event:"data-event",eventAction:H.h.POTREBITELSKIE,eventCategory:"filter_catalog",eventLabel:(0,e9.y)(e4.Be),eventValue:t,customer_id:x}),h(n)}),n})},[h,x]),M=(0,r.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;A(e=>{let n={...e,payment:t};return tk(()=>{(0,eM.o)({event:"data-event",eventAction:H.h.POTREBITELSKIE,eventCategory:"filter_catalog",eventLabel:(0,e9.y)(e4.So),eventValue:t,customer_id:x}),h(n)}),n})},[h,x]),O=(0,r.useRef)([]),R=(0,r.useCallback)(()=>{(0,et.e)(y.cA,{offset:C?-140:0,position:"top"})},[C]),{ref:B,isSticky:F}=(0,tf.x)(),U=(0,r.useCallback)(e=>{h({}),j(e,void 0,{shallow:!0})},[h,j]),D=(0,r.useMemo)(()=>T.map(e=>{let n=e.url_redirect||e.url,i=(null==o?void 0:o.url)===n;return{value:(0,tp.b)(H.h.POTREBITELSKIE,i?void 0:e,t,a),label:e.name,color:i?"black":"default",onChipClick:U}}),[T,null==o?void 0:o.url,t,a,U]),K=(0,r.useMemo)(()=>{let e=((e,t)=>{var n,a;let i=(0,tu.O)().unit,l=[];l.push({id:tc.u.amount,label:e.amount?"".concat(e.amount):"Сумма кредита: от ".concat(e.amount||"1 ".concat(i))}),l.push({id:tc.u.payment,label:e.payment?"До ".concat((0,J.ZV)(+e.payment)," ").concat(i," в мес"):"Платеж: не имеет значения"});let r=e4.mr.find(t=>e.period===t.value);if(l.push({id:tc.u.period,label:(null==r?void 0:r.value)?null==r?void 0:r.label:"Срок: не имеет значения"}),e.purpose){let t=e4.l5.find(t=>t.value===e.purpose);t&&l.push({id:tc.u.purpose,label:"".concat(null==t?void 0:t.label)})}if(null==(n=e.borrowers)?void 0:n.length){let t=e.borrowers,n=e4.PA.find(e=>e.value===t[0]),a="";a=1===t.length&&n?"иное"===n.label.toLocaleLowerCase()?"Категория заемщика: "+n.label:n.label:"Категория заемщика: (".concat(t.length,")"),l.push({id:tc.u.borrower,label:a})}if(e.incomeProofs&&e.incomeProofs.length){let t=e.incomeProofs,n=e4.eb.find(e=>e.value===t[0]),a="";a=1===t.length&&n?"не требуется"===n.label.toLocaleLowerCase()?"Подтверждение дохода: "+n.label:n.label:"Подтверждение дохода: (".concat(t.length,")"),l.push({id:tc.u.proofIncome,label:"".concat(a)})}if(e.collateral){let t=e4.ni.find(t=>t.value===e.collateral);t&&l.push({id:tc.u.loan,label:"".concat("Не требуется"===t.label?"Гарантия возврата денег: "+t.label:t.label)})}let o=e4.fy.find(t=>t.value===e.form);if(o&&l.push({id:tc.u.form,label:"".concat(o.label)}),null==(a=e.banks)?void 0:a.length){let n=e.banks,a=t.find(e=>{let{value:t}=e;return String(t)===String(n[0])}),i="";i=1===n.length&&a?": ".concat(a.label):" (".concat(n.length,")"),l.push({id:tc.u.bank,label:"Банки".concat(i)})}return l})(N,u);return O.current.length===e.length&&e.every((e,t)=>e.label===O.current[t].label&&e.id===O.current[t].id)?O.current:e},[N,u]),V=(0,r.useMemo)(()=>K.map(e=>{let{label:t,id:n}=e;return{label:t,value:n,color:"default",onChipClick:v}}),[K,v]),q=(0,r.useCallback)(e=>{A(t=>{let n={...t,...e};return tj(()=>{f(n)}),n})},[f]),z=(0,r.useCallback)(()=>{A({}),h({}),f({})},[h,f]),G=(0,r.useCallback)(()=>{h(N)},[N,h]);return(0,th.w5)(()=>{A(i)},[i]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(e2.F,{region:t,town:a,title:n,subtitle:c,mainPageUrl:H.h.POTREBITELSKIE}),(0,l.jsx)(e6.L,{config:k,params:e4.ZA}),(0,l.jsxs)(e1.mc,{className:tb().container,children:[(0,l.jsxs)("div",{ref:B,className:tb().filter,children:[(0,l.jsxs)("div",{className:tb().fields,children:[(0,l.jsx)(tt.F,{label:e4.Be,value:N.amount,className:tb().field,onChange:P,onKeyDown:e=>(0,e7.K)(e,R)}),(0,l.jsx)(tt.F,{label:e4.So,value:N.payment,className:tb().field,onChange:M,onKeyDown:e=>(0,e7.K)(e,R)})]}),!C&&(0,l.jsx)("div",{className:tb().chipsRowMobile,children:(0,l.jsx)(t_.P,{chips:D,onParamsClick:v,useLinkChips:!0})}),(0,l.jsx)(m.$n,{onClick:()=>{L("anketa_click"),window.open(I,"_self")},size:"s",className:tb().fillButton,children:"Заполнить анкету"}),F&&(0,l.jsx)(tg.W,{chips:V,onParamsClick:v})]}),(0,l.jsxs)("div",{className:tb().timeCaption,children:[(0,l.jsx)(ty,{}),"Это займёт не более 5 минут"]}),C&&(0,l.jsx)("div",{className:(0,S.A)(tb().chipsRow),children:(0,l.jsx)(t_.P,{chips:D,onParamsClick:v,useLinkChips:!0})})]})]}),(0,l.jsx)(ts,{filter:N,isMobile:p,terms:e4.mr,isOpen:_,banksOptions:u,offersCount:g,onChangeFilter:q,onClose:b,onDrop:z,onShow:G})]})});tE.displayName="CreditsFilter";var tT=n(68290),tN=n(78475),tA=n(41925),tw=n(8868),tI=n(21921),tL=n(28036),tS=n(50261),tP=n(58979),tM=n(22252),tO=n(70590),tR=n(68082),tB=n(48900),tF=n.n(tB);let tU=[{title:"Наименование банка",value:"bankName"},{title:"Ежемесячный платёж",value:"paymentValue"},{title:"Ставка",value:"rateValue"},{title:"ПСК",value:"fullPrice"},{title:"Сумма",value:"amountValue"},{title:"Срок кредита",value:"term"}];function tD(e,t){var n,a,i;switch(t){case"bankName":return e.bankName.toLowerCase();case"paymentValue":return e.payment;case"rateValue":return e.rateFrom;case"fullPrice":return null!=(a=null==(n=e.fullPrice)?void 0:n.from)?a:0;case"amountValue":return e.amountTo;case"term":return null==(i=e.periodRange)?void 0:i.from;default:throw Error("Dead code branch")}}function tK(e){let{offers:t}=e,[n,a]=(0,r.useState)("amountValue"),[i,o]=(0,r.useState)("asc"),s=(0,r.useMemo)(()=>(0,tR.Q)(t,n,i,tD),[t,n,i]),c=(0,r.useMemo)(()=>s.map(e=>{let{id:t,bankName:n,rateFrom:a,periodRange:i,logo:l,payment:r,currency:o,amountTo:s,amountFrom:c,fullPrice:u}=e,d=(0,J.ej)({from:c,to:s},{currency:o}),m=null!==u?(0,P.o)(u):"",p=r?"от ".concat((0,J.up)(r)):"",_=(0,$.if)(i.from,i.to);return{id:t,logo:l,name:n,cells:[p,"".concat(a,"%"),m,d,_]}}),[s]),u=(0,tM.s)(new Date);return(0,l.jsx)(tO.A,{caption:"Онлайн-платформа Финуслуги позволяет подобрать кредит из представленных на сервисе предложений по кредитам. Окончательные условия определяются кредитным договором. ООО \xabМБ Маркетплейс\xbb и ПАО Московская Биржа не осуществляют банковские операции. Все предложения, отображенные в рейтинге, являются лучшими исключительно по мнению экспертов Финуслуги.ру. Дата обновления рейтинга: ".concat(u),className:tF().offers,columns:tU,rows:c,sort:n,sortOrder:i,onSortChange:(e,t)=>{a(e),o(t)}})}var tH=n(36012),tV=n(17137),tW=n(18258),tq=n(82596),tz=n(83156),tG=n(3633),tZ=n(12771);async function tY(e){let t=await (0,tZ.zy)("Credits.json?".concat("url","=").concat(encodeURIComponent(e)));if(1!==t.length)throw new eG.m_("Credits tag not found: ".concat(e));return function(e){let{id:t,url:n,title:a,name:i,tag_name:l,text:r,filter:o,disable_filter:s,default:c,region_page:u,bank_region_page:d}=e,m={id:t,url:n,title:a,name:i,tag_name:l,text:r,default:c,bank_region_page:void 0!==d};if(null===o||s||c||(m.filter=function(e){let{amount:t,period:n,borrower:a,proof_income:i,loans:l,form:r,purpose:o,bank_ids:s}=e,c={};if(void 0!==t){let e=Number(t);isNaN(e)?console.warn("Invalid amount of credit tag filter: ".concat(t)):c.amount=e}if(void 0!==n){let e=Number(n);isNaN(e)?console.warn("Invalid period of credit tag filter: ".concat(n)):c.period=e}return void 0!==a&&a.length>0&&(c.borrowers=a),void 0!==i&&(Array.isArray(i)?i.length>0&&(c.incomeProofs=i):c.incomeProofs=[i]),null!=l&&(c.collateral=l.join()),null!=r&&(c.form=r),null!=o&&(c.purpose="any"!==o?o:"other"),s.length>0&&(c.banks=s.map(String)),c}(o)),null!==u){let{region_titles:e,town_titles:t,region_content:n,town_content:a}=u;m.region_page={region_titles:e,town_titles:t,region_content:n,town_content:a}}return m}(t[0])}new(n(73584)).AP(tY);var tJ=n(3187),t$=n(35954),tQ=n(27116);let tX=(0,r.memo)(e=>{let{name:t,description:n,offersCount:a,offers:i,banks:r}=e,o=function(e,t,n,a,i){let{basePath:l,mainBaseUrl:r}=(0,s.UK)();if(0===a.length)return;let{lowPrice:o,highPrice:c,offers:u}=(()=>{let e=a.reduce((e,t)=>{let n=(e=>{let t=e.from,n=e.to;return{minValue:void 0!==t&&""!==t?Number(t):1e4,maxValue:void 0!==n&&""!==n?Number(n):void 0}})(t.amount),a=((e,t)=>{var n;let a,l,o=i.find(t=>-1===e.bank_id?e.bic===Number(t.bic):e.bank_id===Number(t.id));if(void 0===o)throw Error("There is no bank for the credit");let s="string"==typeof o.legal_entities?JSON.parse(o.legal_entities)[0].legal_address:null==(n=o.legal_entities[0])?void 0:n.address,c=e.title,u={"@type":"QuantitativeValue",name:"Срок кредита",minValue:Number(e.period.from),maxValue:Number(e.period.to)},d=(a=Number(e.interest_rate.from),l=Number(e.interest_rate.to),{"@type":"QuantitativeValue",name:"Процентная ставка",minValue:Number(a),maxValue:Number(l)}),m=((e,t)=>{let n={"@type":"MonetaryAmount",name:t,minValue:e.minValue,currency:"RUB"};return void 0!==e.maxValue&&(n.maxValue=e.maxValue),n})(t,c),p=s?(0,t$.O)(s):void 0,_="".concat(r,"/").concat(H.h.POTREBITELSKIE,"/").concat(e.url);return{"@type":"Offer",itemOffered:{"@type":"LoanOrCredit",name:c,url:_,feesAndCommissionsSpecification:_,category:"Потребительские кредиты",loanTerm:u,annualPercentageRate:d,amount:m},priceSpecification:{"@type":"PriceSpecification",price:0,priceCurrency:"RUB",valueAddedTaxIncluded:!0},potentialAction:{"@type":"Action",name:"Оформить",url:(0,eS.Ws)(e,(0,eS.WU)())},broker:{"@type":"BankOrCreditUnion",name:o.name,url:"".concat(r,"/banki/").concat(o.url),image:o.logo_mob,telephone:o.phone,address:p}}})(t,n);return e.lowPrice=Math.min(e.lowPrice,n.minValue),void 0!==n.maxValue&&(e.highPrice=Math.max(e.highPrice,n.maxValue)),e.offers.push(a),e},{lowPrice:1/0,highPrice:-1/0,offers:[]});return{offers:e.offers,...Number.isFinite(e.lowPrice)&&{lowPrice:e.lowPrice},...Number.isFinite(e.highPrice)&&{highPrice:e.highPrice}}})();return{"@context":"https://schema.org","@type":"Product",name:e,description:t,image:"".concat(r).concat(l,"/images/logo-1200x630.jpg"),aggregateRating:{"@type":"AggregateRating",ratingValue:4.8,reviewCount:1130,bestRating:5,worstRating:1},offers:{"@type":"AggregateOffer",url:"".concat(r,"/").concat(H.h.POTREBITELSKIE),highPrice:c,lowPrice:o,priceCurrency:"RUB",offerCount:n,offers:u}}}(t,n,a,i,r);return void 0===o?null:(0,l.jsx)(tQ.S,{schema:o})});tX.displayName="CreditOffersSchema";var t0=n(24323),t1=n(57325),t2=n(33568),t6=n(162),t5=n(64998),t3=n(79790),t4=n(98580),t8=n(6862),t7=n(61850),t9=n(29061),ne=n(69619),nt=n.n(ne);let nn=[(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("span",{children:"Войдите на Финуслуги с помощью"}),(0,l.jsx)(t1.e,{})]},0),(0,l.jsx)(r.Fragment,{children:"Заполните анкету, мы подберем предложения специально для вас"},1),(0,l.jsx)(r.Fragment,{children:"Выберите предложение и отправьте заявку в банк — прямо на Финуслугах"},2),(0,l.jsx)(r.Fragment,{children:"Дождитесь одобрения, банк свяжется c вами и расскажет, как получить деньги"},3)],na=e=>{let{tag:t,credits:n,reviews:a,creditRegion:i,regions:o,banks:c,townDublicates:u,tags:m,rollup:g,partnerOffer:f,expertQuote:h,experts:v,defaultFilter:b,support:x,offersTerms:C,seoText:k}=e,j=(0,E.sw)(),T=(0,W.fH)(),{asPath:N,query:A}=(0,eT.useRouter)(),w=(0,te.Y)(),[I,L]=(0,r.useState)([]),[P,M]=(0,r.useState)(h),[O,R]=(0,r.useState)(),[B,F]=(0,r.useState)(!1),{region:U,town:D}=(0,em.z)(),[K,V]=(0,r.useState)(!1),[q,z]=(0,r.useState)(Number(A.page)||1),[G,Z]=(0,r.useState)(n),[Y,$]=(0,r.useState)(null!=k?k:void 0),X=G.description||"",ee=G.subtitle||"",en=(0,r.useCallback)(()=>{F(!0)},[]),ea=(0,r.useCallback)(()=>{F(!1)},[]),ei=(0,r.useMemo)(()=>{var e,t;return null!=(t=null==(e=N.split("/").find(e=>e.includes("teg_")))?void 0:e.slice(4))?t:"DEFAULT"},[N]),[el,er]=(0,r.useState)(t),eo=(0,tJ.m)(N);(0,th.w5)(()=>{(0,t6.Zs)(eo).then(M)},[eo]),(0,th.w5)(()=>{(0,t7.Rz)(eo).then($)},[eo]),(0,r.useEffect)(()=>{N.includes("purpose")&&(0,et.e)(y.cA,{offset:j?0:-100,position:"top"})},[]),(0,eP.eg)(eP.ch.Credit),(0,r.useEffect)(()=>{var e;ei!==(null!=(e=null==el?void 0:el.url)?e:"DEFAULT")&&(0,tZ.pY)("credits/tag?".concat("url","=").concat(ei)).then(er),(0,tz.g)(void 0,T)},[N,null==el?void 0:el.url,ei,T]),(0,r.useEffect)(()=>{(0,eJ.q)().then(e=>{let t=e.data||void 0;t&&L(t.credits_group.map(e=>({id:e.id,bankName:e.bank_title,description:e.title,topCardAdvantage:{title:"Сумма",value:(0,J.ej)({from:Number(e.amount.from),to:Number(e.amount.to)})},bottomCardAdvantage:{title:"Ставка",value:"от ".concat((0,J.um)(+e.interest_rate.from)," %")},logo:e.logo_mob,url:"".concat(H.h.POTREBITELSKIE,"/").concat(e.url)})))})},[]);let es=(()=>{let e={...U},t={...D},n=e.deposits_count,a=t.deposits_count,i=m.find(e=>"DEFAULT"===e.name),l=null==i?void 0:i.min_credits_json,r=new Date,o=r.getDate(),s=r.getMonth()+1,c=r.getFullYear(),d=(0,Q.F)("".concat(s,"-").concat(o,"-").concat(c)),p="",_=G.count,g=G.title;if(U){let e=u.indexOf((null==D?void 0:D.id)||0)>=0;p=D?" ".concat((0,tL.c)(D.name_p)," ").concat(D.name_p).concat(e?" (".concat(U.name,")"):""):" ".concat((0,tL.c)(U.name_p)," ").concat(U.name_p),_=a||n||12500}if(g){let e={"{min_credits_rate}":"".concat(l||14),"{credits_count}":"".concat(2*_),"{date}":"".concat(o," ").concat(d," ").concat(c,"г.")};return Object.keys(e).forEach(t=>{g=null==g?void 0:g.replace(new RegExp(t),e[t])}),g}return el?((e,t,n,a)=>{let i=(0,tS.w)(e.title?e.title:e.name),l=5+(e?e.id:0)+(t?t.id:0)+(n?n.id:0),r=!1;return"DEFAULT"===e.name&&(i=i.replace(/DEFAULT/g,"Базовый")),n?e.region_page&&e.region_page.town_titles&&e.region_page.town_titles.length?i=(0,tS.w)(e.region_page.town_titles[l%e.region_page.town_titles.length],t,n,a):(r=a.indexOf(n.id)>=0,i+=" "+(0,tL.c)(n.name_p)+" "+n.name_p+(r?" ("+(null==t?void 0:t.name)+")":"")):t&&(e.region_page&&e.region_page.region_titles&&e.region_page.region_titles.length?i=(0,tS.w)(e.region_page.region_titles[l%e.region_page.region_titles.length],t,n,a):i+=" "+(0,tL.c)(t.name_p)+" "+t.name_p),i})(el,null!=U?U:null,null!=D?D:null,u):"Кредиты".concat(p," с максимальной ставкой ").concat(l||14,"% годовых на сегодня ").concat(o," ").concat(d," ").concat(c,"г. ").concat(2*_," aктуальных депозитов – открыть вклад").concat(p," на Финуслуги.ру")})(),{filter:ec,setFilter:eu}=function(){let{query:e,push:t}=(0,eT.useRouter)(),{amount:n,payment:a,period:i,purpose:l,borrowers:o,incomeProofs:s,collateral:c,form:u,banks:d,sort:m,order:p,..._}=e,g=(0,r.useMemo)(()=>(function(e){let{amount:t,payment:n,period:a,purpose:i,borrowers:l,incomeProofs:r,collateral:o,form:s,banks:c,sort:u,order:d}=e,m={};return"string"==typeof t&&(m.amount=Number(t)),"string"==typeof n&&(m.payment=Number(n)),"string"==typeof a&&(m.period=Number(a)),"string"==typeof i&&(m.purpose=i),"string"==typeof l&&(m.borrowers=(0,tJ.pi)(l)),"string"==typeof r&&(m.incomeProofs=(0,tJ.pi)(r)),"string"==typeof o&&(m.collateral=o),"string"==typeof s&&(m.form=s),"string"==typeof c&&(m.banks=(0,tJ.pi)(c)),"string"==typeof u&&(m.sort=u),"string"==typeof d&&(m.order=d),m})({amount:n,payment:a,period:i,purpose:l,borrowers:o,incomeProofs:s,collateral:c,form:u,banks:d,sort:m,order:p}),[n,a,i,l,o,s,c,u,d,m,p]),f=(0,r.useRef)(_),h=(0,r.useRef)(g),v=(0,r.useRef)(t);return f.current=_,h.current=g,v.current=t,{filter:g,setFilter:(0,r.useCallback)(e=>{var t,n,a,i,l,r,o,s,c,u,d,m,p,_;if(t=h.current,n=e,t.amount===n.amount&&t.payment===n.payment&&t.period===n.period&&t.purpose===n.purpose&&(null==(a=t.borrowers)?void 0:a.length)===(null==(i=n.borrowers)?void 0:i.length)&&(null==(l=t.borrowers)?void 0:l.slice().sort().toString())===(null==(r=n.borrowers)?void 0:r.slice().sort().toString())&&(null==(o=t.incomeProofs)?void 0:o.length)===(null==(s=n.incomeProofs)?void 0:s.length)&&(null==(c=t.incomeProofs)?void 0:c.slice().sort().toString())===(null==(u=n.incomeProofs)?void 0:u.slice().sort().toString())&&t.collateral===n.collateral&&t.form===n.form&&(null==(d=t.banks)?void 0:d.length)===(null==(m=n.banks)?void 0:m.length)&&(null==(p=t.banks)?void 0:p.slice().sort().toString())===(null==(_=n.banks)?void 0:_.slice().sort().toString())&&t.sort===n.sort&&t.order===n.order)return!1;let g={...function(e){let{amount:t,payment:n,period:a,purpose:i,borrowers:l,incomeProofs:r,collateral:o,form:s,banks:c,sort:u,order:d}=e,m={};return void 0!==t&&(m.amount=String(t)),void 0!==n&&(m.payment=String(n)),void 0!==a&&(m.period=String(a)),void 0!==i&&(m.purpose=String(i)),void 0!==l&&(m.borrowers=(0,tJ.t9)(l)),void 0!==r&&(m.incomeProofs=(0,tJ.t9)(r)),void 0!==o&&(m.collateral=o),void 0!==s&&(m.form=String(s)),void 0!==c&&(m.banks=(0,tJ.t9)(c)),void 0!==u&&(m.sort=u),void 0!==d&&(m.order=d),m}(e),...f.current};return v.current({query:g},void 0,{shallow:!0}),!0},[])}}(),ed=(0,r.useMemo)(()=>({...b,...el.filter,...ec}),[b,el,ec]),ep=(0,r.useMemo)(()=>(0,tq.H)(c,ed.banks),[c,ed.banks]),e_=(0,r.useMemo)(()=>g.reduce((e,t)=>{let{credits:n}=t;return[...e,...n]},[]),[g]),eg=null==U?void 0:U.url,ef=null==D?void 0:D.url,eh=(0,r.useCallback)(async e=>{z(e),V(!0);try{let t=await (0,ez.fo)({tag:el.url,region:eg,town:ef,page:e,pageSize:e4.v_,filter:ed},e_);e>1?Z(e=>({...e,...t,offers:[...e.offers,...t.offers]})):(Z(t),R(void 0))}finally{V(!1)}},[el,eg,ef,ed,e_]),ev=(0,r.useCallback)(async e=>{R((await (0,ez.fo)({tag:el.url,region:eg,town:ef,filter:e,pageSize:0},e_)).count)},[el.url,eg,ef,e_]);(0,th.w5)(()=>{eh(1)},[eh]);let{unifiedOffers:eb,unifiedPartnerOffers:ex}=(0,r.useMemo)(()=>(0,tN.L)(ed,c,G.offers,f),[ed,c,G,f]),ey=(0,r.useMemo)(()=>(function(e){let{credits:t,creditTags:n,creditRegion:a,regions:i,banks:r,tag:o,region:c,town:u,townDublicates:d=[]}=e,m=H.h.POTREBITELSKIE,p="Кредиты",_="кредитов",g=[],f=(0,tV.$)({offers:t,getBankKey:e=>e.bankId,getAmount:e=>e.amountTo,getRate:e=>e.rateTo}).slice(0,10);f.length>2&&g.push({title:(0,tS.w)("Рейтинг ".concat(_," ").concat(c||u?(0,tL.c)(u?u.name:null==c?void 0:c.name)+" "+(u?u.name_p:null==c?void 0:c.name_p):""," в {year} году"),c,u,d),text:(0,l.jsx)(tK,{offers:f})}),!c&&(null==o?void 0:o.default)!==1&&(null==o?void 0:o.text)&&Array.isArray(o.text)&&o.text.forEach(e=>{g.push({title:(0,tS.w)(e.title,c,u,d),text:(0,l.jsx)(eB.eW,{data:(0,tS.j)(e,c,u,d,void 0,o).content})})}),(null==o?void 0:o.default)===1&&(null==o?void 0:o.text)&&Array.isArray(o.text)&&o.text.forEach(e=>{g.push({title:(0,tS.w)(e.title,c,u,d),text:(0,l.jsx)(eB.eW,{data:(0,tS.j)(e,c,u,d,void 0,o).content})})});let h=c&&o&&o.region_page&&(u||o.region_page.region_content&&o.region_page.region_content.length)&&(!u||o.region_page.town_content&&o.region_page.town_content.length)?(u?o.region_page.town_content:o.region_page.region_content).map(e=>({title:(0,tS.w)(e.title,c,u,d),text:(0,tS.w)(e.content.map(tI.Zf).join(""),c,u,d)})):[];h&&h.length&&h.forEach(e=>{g.push({title:(0,tS.w)(e.title,c,u,d),text:(0,l.jsx)(eB.eW,{data:[{type:tI.$G.Html,data:{html:e.text}}]})})}),g.push(...(0,tW.N)(m,i,o,c,u,{nominativeCase:p,genitiveCase:_}));let v=n.reduce((e,t)=>{if(void 0===t.url_redirect){let n=(0,tp.b)(m,t,c,u),a=(0,tH.AP)(n,t.name);e.push(a)}return e},[]);g.push({title:"Виды ".concat(_),text:(0,l.jsx)(tH.oL,{children:v})});let b=(()=>{if(0===r.length)return[];let e=a?a.credit_interest_rates:[],t=r.filter(t=>e.some(e=>(e.fk_id||e.fk_id)===+t.id)),n=t.filter(e=>tw.MH.includes(e.url)),i=t.filter(e=>!tw.MH.includes(e.url)),l=(0,tP.s)(n,5);return[...l,...(0,tP.s)(i,7)].map(e=>{var t;let n="".concat(o&&(null==o?void 0:o.default)!==1&&(null==o?void 0:o.bank_region_page)?o.name:p," ").concat(e.name_r," ").concat(c&&(null==(t=e.region_ids)?void 0:t.length)?(0,tL.c)(u?u.name:c.name)+" "+(u?u.name_p:c.name_p):""),a=((e,t)=>{var n;let a=(null==(n=t.region_ids)?void 0:n.length)?[c,u]:[void 0,void 0],i=(0,tp.b)("banki/".concat(t.url,"/").concat(m),(null==o?void 0:o.bank_region_page)?o:void 0,...a);return"".concat(e).concat(i)})((0,s.UK)().mainBaseUrl,e);return(0,tH.mZ)(a,n)})})();return b.length>0&&g.push({title:"".concat(p," от банков"),text:(0,l.jsx)(tH.oL,{children:b})}),(()=>{let e=new Set;return g.filter(t=>{let{title:n}=t,a=e.has(n);return a||e.add(n),!a})})()})({credits:eb,creditTags:m,creditRegion:i,regions:o,banks:c,tag:el,region:U,town:D,townDublicates:u}),[c,m,eb,U,i,o,el,D,u]),eC=(null==D?void 0:D.name_p)||(null==U?void 0:U.name_p)?" в ".concat((null==D?void 0:D.name_p)||(null==U?void 0:U.name_p)):"",{mainBaseUrl:ek}=(0,s.UK)(),ej=(0,r.useCallback)((e,t)=>{eu({...ed,sort:e,order:t})},[eu,ed]),eE="DEFAULT"!==el.tag_name?el.name:"Потребительские кредиты",eN=(0,r.useMemo)(()=>null!==f?[...G.offers,f]:G.offers,[G,f]);return(0,l.jsxs)("main",{className:nt().page,children:[(0,l.jsx)(p.I,{title:es,description:X}),(0,l.jsx)(tA.A,{title:eE,tag:el,inRegion:eC,pageUrl:H.h.POTREBITELSKIE,pageTitle:"Кредиты"}),(0,l.jsx)(eU.t,{}),(0,l.jsx)(tX,{name:eE,description:X,offersCount:G.count,offers:eN,banks:c}),(0,l.jsx)(_.J,{className:nt().filterContainer,children:(0,l.jsx)(tE,{region:U,town:D,heading:eE,subtitle:ee,filter:ed,tag:el,tags:m,banksOptions:ep,isMobile:j,isOpenModal:B,offersCount:null!=O?O:G.count,onFilterChange:ev,onFilterApply:eu,onModalOpen:en,onModalClose:ea})}),(0,l.jsx)(t0.I,{steps:nn}),(0,l.jsx)(tT.H,{pageName:H.h.POTREBITELSKIE,unifiedOffers:eb,unifiedPartnerOffers:ex,sort:ed.sort,sortOrder:ed.order,adFoxConfig:w,subtitle:ee,region:U,town:D,credits:G,isLoading:K,page:q,rollup:e_,onChangeSort:ej,onChangePage:eh,onFilterModalOpen:en}),(0,l.jsx)(tG.f,{type:"bank",noPadding:!0,secondary:!0}),(0,l.jsx)("section",{className:(0,S.A)(nt().sectionWrapper),children:(0,l.jsx)(_.J,{children:(0,l.jsx)(t4.U,{data:C})})}),(0,l.jsx)("section",{className:(0,S.A)(nt().sectionWrapper),children:(0,l.jsx)(_.J,{children:(0,l.jsx)(eX,{bestOffers:I,inRegion:eC})})}),void 0!==P&&(0,l.jsx)(t5.V,{quote:P}),void 0!==v&&(0,l.jsx)("section",{className:nt().experts,children:(0,l.jsx)(_.J,{children:(0,l.jsx)(t3.o,{heading:"Потребительские кредиты",experts:v})})}),void 0!==a&&(0,l.jsx)(_.J,{children:(0,l.jsx)(t8.K,{serviceId:t2.E.POTREBITELSKIYE_KREDITY,reviews:a,companies:c})}),void 0!==Y&&(0,l.jsx)(t9.f,{data:Y}),(0,l.jsx)(eH.m,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,l.jsx)(d(),{...e}),dataLayerPush:eM.o,questions:ey,eventCategory:"credits_support_block",href:"".concat(ek,"/help/credits"),checkAllText:"Читать все вопросы про кредиты"}),i.posts.length>0&&(0,l.jsx)("section",{className:(0,S.A)(nt().sectionWrapper,nt().sectionGray),children:(0,l.jsx)(eD.C,{posts:i.posts,eventCategory:H.h.POTREBITELSKIE})}),(0,l.jsx)(eK.E,{value:x})]})};n(51649),n(54267),n(46215),n(99514),n(44860);let ni=e=>{let{tag:t,banks:n,credits:a,reviews:i,creditRegion:r,tags:o,rollup:s,partnerOffer:c,layout:u,root:d,expertQuote:m,experts:p,defaultFilter:_,support:g,offersTerms:f,seoText:h}=e;return(0,l.jsx)(eZ.P,{data:u,children:(0,l.jsx)(na,{tag:t,regions:d.regions,banks:n,townDublicates:d.town_dublicates,credits:a,reviews:null!=i?i:void 0,creditRegion:r,tags:o,rollup:s,partnerOffer:c,expertQuote:null!=m?m:void 0,experts:null!=p?p:void 0,defaultFilter:_,support:g,offersTerms:f,seoText:null!=h?h:void 0})})};var nl=n(48523),nr=n(36612),no=!0;let ns=(0,r.memo)(function(e){var t,n;let{mainApiUrl:a}=(0,s.UK)();return(0,l.jsx)(o.C,{showcaseUrl:a,children:e.isShowcase?(0,l.jsx)(nl.N,{region:null!=(t=e.region)?t:void 0,town:null!=(n=e.town)?n:void 0,children:(0,l.jsx)(ni,{...e})}):(0,l.jsx)(nr.K,{children:(0,l.jsx)(eY,{...e})})})})},53244:(e,t,n)=>{"use strict";n.d(t,{q:()=>m});var a=n(37876),i=n(14232),l=n(48230),r=n.n(l),o=n(49995),s=n(81202),c=n(33126),u=n(55754),d=n.n(u);let m=(0,i.memo)(e=>{let{type:t,className:n}=e;return({[s.w.annuity]:(0,a.jsxs)("p",{className:(0,o.A)(d().typeDescription,n),children:["Тип погашения, при котором ваш обязательный платеж банку остается неизменным в течение всего срока кредита. Подробнее о типах платежей"," ",(0,a.jsx)(r(),{target:"_blank",href:"".concat((0,c.UK)().mainBaseUrl,"/navigator/kredity/stat_chto_vybrat_annuitetnye_ili_differencirovannye_platezhi?ysclid=lm0hhclslg385431421"),children:"написали здесь"})]}),[s.w.differentiated]:(0,a.jsxs)("p",{className:(0,o.A)(d().typeDescription,n),children:["Тип погашения, при котором ваш обязательный платеж банку остается неизменным в течение всего срока кредита. Подробнее о типах платежей"," ",(0,a.jsx)(r(),{target:"_blank",href:"".concat((0,c.UK)().mainBaseUrl,"/navigator/kredity/stat_chto_vybrat_annuitetnye_ili_differencirovannye_platezhi?ysclid=lm0hhclslg385431421"),children:"написали здесь"})]})})[t]});m.displayName="CreditPaymentDescription"},54767:(e,t,n)=>{"use strict";n.d(t,{O:()=>a});let a=e=>{switch(e){case 2:case"2":case"USD":return{shortName:"долл.",unit:"$",name:"долларах",code:"USD",locale:"en",num:2};case 3:case"3":case"EUR":return{shortName:"евро",unit:"€",name:"евро",code:"EUR",locale:"en",num:3};case 4:case"4":case"CNY":return{shortName:"юань",unit:"\xa5",name:"юанях",code:"CNY",locale:"zh-CN",num:4};case 5:case"5":case"CHF":return{shortName:"франк",unit:"₣",name:"франках",code:"CHF",locale:"en",num:5};case 6:case"6":case"GBP":return{shortName:"фунт",unit:"\xa3",name:"фунтах",code:"GBP",locale:"en",num:6};case 7:case"7":case"JPY":return{shortName:"иена",unit:"\xa5",name:"иенах",code:"JPY",locale:"ja-JP",num:7};default:return{shortName:"руб.",unit:"₽",name:"рублях",code:"RUB",locale:"ru",num:1}}}},55754:e=>{e.exports={typeDescription:"CreditPaymentDescription_typeDescription__ksshX"}},57325:(e,t,n)=>{"use strict";n.d(t,{e:()=>c});var a=n(37876),i=n(54587),l=n.n(i),r=n(24273),o=n.n(r);let s=[{icon:{src:"/kredity/assets/_next/static/media/tbank.adea65e7.svg",height:24,width:44,blurWidth:0,blurHeight:0},alt:"Авторизация в личном кабинете Финуслуги через T-ID",title:"Войти в личный кабинет через T-ID"},{icon:{src:"/kredity/assets/_next/static/media/alfa.49fb5264.svg",height:24,width:24,blurWidth:0,blurHeight:0},alt:"Авторизация в личном кабинете Финуслуги через Альфа-ID",title:"Войти в личный кабинет через Альфа-ID"},{icon:{src:"/kredity/assets/_next/static/media/sber.98bc7e7e.svg",height:24,width:24,blurWidth:0,blurHeight:0},alt:"Авторизация в личном кабинете Финуслуги через Сбер-ID",title:"Войти в личный кабинет через Сбер-ID"},{icon:{src:"/kredity/assets/_next/static/media/sovcom.75a4715c.svg",height:24,width:24,blurWidth:0,blurHeight:0},alt:"Авторизация в личном кабинете Финуслуги через SOVCOM-ID",title:"Войти в личный кабинет через SOVCOM-ID"},{icon:{src:"/kredity/assets/_next/static/media/mts.4e3b9a88.svg",height:24,width:24,blurWidth:0,blurHeight:0},alt:"Авторизация в личном кабинете Финуслуги через MTC-ID",title:"Войти в личный кабинет через MTC-ID"},{icon:{src:"/kredity/assets/_next/static/media/vtb.e6fa0012.svg",height:24,width:24,blurWidth:0,blurHeight:0},alt:"Авторизация в личном кабинете Финуслуги через ВТБ-ID",title:"Войти в личный кабинет через ВТБ-ID"},{icon:{src:"/kredity/assets/_next/static/media/gosuslugi.85c20d0b.svg",height:24,width:24,blurWidth:0,blurHeight:0},alt:"Авторизация в личном кабинете Финуслуги через СМС-сообщение",title:"Войти в личный кабинет через СМС-сообщение"},{icon:{src:"/kredity/assets/_next/static/media/phone.005ca153.svg",height:24,width:24,blurWidth:0,blurHeight:0},alt:"Авторизация в личном кабинете Финуслуги через Госуслуги",title:"Войти в личный кабинет через Госуслуги"}];function c(){return(0,a.jsx)("div",{className:o().aboutIcons,children:(0,a.jsx)("div",{className:o().aboutIconsList,children:s.map((e,t)=>{let{icon:n,alt:i,title:r}=e;return(0,a.jsx)(l(),{src:n,alt:i,className:o().aboutIconsItem,title:r},t)})})})}},58885:e=>{e.exports={title:"CreditsFilter_title__9Ol8f",link:"CreditsFilter_link__gmP1H",fillButton:"CreditsFilter_fillButton__JxaM7",chipsRow:"CreditsFilter_chipsRow__rN6kQ",timeCaption:"CreditsFilter_timeCaption__XrSVm",chipsRowMobile:"CreditsFilter_chipsRowMobile__889cC",container:"CreditsFilter_container__P7uXx",filter:"CreditsFilter_filter__AK2Z3",fields:"CreditsFilter_fields__axlbQ",field:"CreditsFilter_field__3VPC1"}},58979:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});let a=(e,t)=>{t=null===t?1:t;let n=null===e?0:e.length;if(!n||t<1)return[];t=t>n?n:t;let a=new Date().getDate(),i=e=>{let t=1e4*Math.sin(e++);return t-Math.floor(t)},l=-1,r=n-1,o=[...e];for(;++l<t;){let e=l+Math.floor(i(a)*(r-l+1)),t=o[e];o[e]=o[l],o[l]=t}return o.slice(0,t)}},62728:(e,t,n)=>{"use strict";function a(e){return"object"==typeof e&&null!==e?!!(e.comment||e.text):!!e}function i(e){return"number"==typeof e||(Array.isArray(e)?e.some(e=>a(e)):a(e))}n.d(t,{a:()=>i})},69619:e=>{e.exports={page:"Credits_page__EsDKz",breadcrumbs:"Credits_breadcrumbs__86tqr",newBannerBreadcrumbs:"Credits_newBannerBreadcrumbs__mYH_T",filterContainer:"Credits_filterContainer__O3Wzt",adFox:"Credits_adFox__oF6nZ",sectionWrapper:"Credits_sectionWrapper__vxuOI",sectionGray:"Credits_sectionGray__4dQPk",experts:"Credits_experts__R_1ZE",personalSelection:"Credits_personalSelection__mxkIY",subtitle:"Credits_subtitle__wMgL_",background:"Credits_background__0PrN1"}},71348:e=>{e.exports={container:"CreditsList_container__8EN_f",title:"CreditsList_title__dWfk4",offersListContainer:"CreditsList_offersListContainer__YS0P_",listTitle:"CreditsList_listTitle__ZZTKF",listItem:"CreditsList_listItem__wR_07"}},74153:e=>{e.exports={bestOffers:"BestOffers_bestOffers__3xKOA",content:"BestOffers_content__zgY2P","content-inner":"BestOffers_content-inner__pEGnI",title:"BestOffers_title__6zPe_",list:"BestOffers_list__d40hB",card:"BestOffers_card__UZOM_",captionWrapper:"BestOffers_captionWrapper__Uk340",cardHeading:"BestOffers_cardHeading__8nf7d",cardIcon:"BestOffers_cardIcon__YnTcZ",cardBtn:"BestOffers_cardBtn__W4pcb",cardHeadingSubtitle:"BestOffers_cardHeadingSubtitle__H67AC",cardHeadingTitle:"BestOffers_cardHeadingTitle__CcZts",cardAdvantage:"BestOffers_cardAdvantage__tFs7H",cardAdvantageTitle:"BestOffers_cardAdvantageTitle__oXTSw",cardAdvantageValue:"BestOffers_cardAdvantageValue__o7NB9",btnMore:"BestOffers_btnMore__EHXWg",btnMoreText:"BestOffers_btnMoreText__zBTej",btnMoreIcon:"BestOffers_btnMoreIcon__eJuUy",tooltipIcon:"BestOffers_tooltipIcon__wISwt"}},74195:(e,t,n)=>{"use strict";n.d(t,{i2:()=>i});var a=n(30557);function i(e,t){return e.cards_group.map(e=>{let n=(0,a.j)(e.full_price);return{...e,full_price:n,online_application:{...e.online_application,...function(e,t){let n=new RegExp("\\b/?".concat(t,"(_(\\d+))?\\b"));for(let t of e){let e=t.description.match(n);if(null!==e)return{url:t.url,order:void 0!==e[2]?Number(e[2]):1/0}}}(e.online_application.links,t)},interest_rate_from:+e.interest_rate.from,interest_rate_to:+e.interest_rate.to,credit_limit_from:+e.credit_limit.from,credit_limit_to:+e.credit_limit.to,bank_name:e.bank_title}})}n(12771)},75289:e=>{e.exports={content:"CreditsFilterModal_content__yX_bx",fields:"CreditsFilterModal_fields__uVaO6",settings:"CreditsFilterModal_settings__yHhdO",settingsLeftBlock:"CreditsFilterModal_settingsLeftBlock__nI29m",settingsTitle:"CreditsFilterModal_settingsTitle__INN9S",tooltip:"CreditsFilterModal_tooltip__BMlBe",iconTooltip:"CreditsFilterModal_iconTooltip__RvsdK",radioGroup:"CreditsFilterModal_radioGroup__jG3cb",radio:"CreditsFilterModal_radio__gJxyi",buttonActions:"CreditsFilterModal_buttonActions__o7buq",button:"CreditsFilterModal_button__empTP",mobilePopup:"CreditsFilterModal_mobilePopup__WCsfT",adfox:"CreditsFilterModal_adfox__gqmkU"}},81136:(e,t,n)=>{"use strict";n(37397),n(30557),n(80505),n(28131)},83156:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});var a=n(37105),i=n(17092),l=n(31257);let r=(e,t)=>{let n=(()=>{let e=new URL(window.location.href).searchParams;return["utm_source","utm_campaign","utm_medium","utm_term"].every(t=>e.has(t))?Array.from(e.entries()).reduce((e,t)=>{let[n,a]=t;return{...e,[n]:a}},{}):null})();if(n){let r={aggregatorId:n.utm_source,clickId:n.utm_term,productId:e};(0,i.u)("@finuslugi/aggregator",r,7),(0,l._)({customerId:t,eventCategory:a.h.POTREBITELSKIE,eventAction:l.y.utm,eventLabel:window.location.search,eventValue:e})}}},84266:(e,t,n)=>{"use strict";n.d(t,{a:()=>r,q:()=>l});var a=n(37397),i=n(74195);let l=()=>(0,a.Q)("/money_data/CreditsGroup.json?id=20&num=4"),r=async()=>{let e=await (0,a.Q)("/money_data/CardsGroup.json?id=27&num=4");return e.data?{data:(0,i.i2)(e.data,""),error:e.error}:e}},87696:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/potrebitelskie_kredity/[[...segments]]",function(){return n(50300)}])},92152:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a={src:"/kredity/assets/_next/static/media/banner-5.28161ec4.svg",height:238,width:347,blurWidth:0,blurHeight:0}},92568:e=>{e.exports={container:"CreditInfo_container__R0626",containerFull:"CreditInfo_containerFull__egD3t",promo:"CreditInfo_promo__SU8xG",left:"CreditInfo_left__4FXSu",right:"CreditInfo_right__MILUZ",qrDesc:"CreditInfo_qrDesc__6mkj5",qrMobile:"CreditInfo_qrMobile__cxqGH",typeDescription:"CreditInfo_typeDescription__utgna",adviceLink:"CreditInfo_adviceLink__f5_hU"}},95655:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a={src:"/kredity/assets/_next/static/media/gosuslugi.a2f413d0.svg",height:24,width:24,blurWidth:0,blurHeight:0}},98560:e=>{e.exports={container:"CreditWhereApplyLoanSteps_container__qbNFw"}}},e=>{e.O(0,[7492,2224,8325,5003,4587,5695,2175,1326,8558,5866,1653,4282,6952,1409,2064,9019,2496,636,6593,8792],()=>e(e.s=87696)),_N_E=e.O()}]);