(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(69241),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(84025),o=n(69241),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]),A=(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.B,{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:A}})]})})]})}},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"}},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(69241),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)}},60679:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>ny,default:()=>nC});var a,i,l=n(37876),r=n(14232);n(81136),n(62862);var o=n(81202);n(37397);var s=n(48230),c=n.n(s),u=n(84025),d=n(10027),m=n(16891),p=n(31655),_=n(62576),g=n(47266),f=n(18345),h=n(54587),v=n.n(h),b=n(89287),x=n(87162);let y={src:"/kredity/assets/_next/static/media/banner-1.6590dcb3.svg",height:230,width:300,blurWidth:0,blurHeight:0},C={src:"/kredity/assets/_next/static/media/banner-2.4e5dff1a.svg",height:208,width:301,blurWidth:0,blurHeight:0},k={src:"/kredity/assets/_next/static/media/banner-7.8a2298b9.svg",height:230,width:301,blurWidth:0,blurHeight:0};var j=n(5552),E=n(32272),T=n.n(E);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:C,text:"Привяжите Госуслуги и подтвердите документы через Тинькофф ID или у представителя Финуслуг"},{id:3,image:k,text:"Отправьте заявку на кредит.\xa0Деньги будут переведены банком на кошелёк Финуслуг"},{id:4,image:y,text:"Вывести деньги к себе на счет в любом банке можно без комиссий через СБП"}],N=[{id:1,image:C,text:"Войдите на Финуслуги с помощью своего аккаунта Госуслуг"},{id:2,image:k,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:y,text:"Дождитесь звонка или СМС от банка и выберите офис для получения кредита. Получите кредит"}],I=(0,r.memo)(e=>{let{offerType:t,bankName:n=""}=e,a=(0,j.sw)(),i=t===o._.PLATFORM?A:N;return(0,l.jsxs)("section",{id:x.Z5,className:T().container,children:[(0,l.jsxs)("h2",{className:T().title,children:[(0,l.jsxs)("span",{children:["Как оформить кредит в ",n]})," ",(0,l.jsx)("span",{className:T().ebaniText,children:"Финуслугах"})]}),(0,l.jsx)("div",{className:T().sliderContainer,children:(0,l.jsx)(b.A,{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)(b.D,{className:T().bannerCard,children:[(0,l.jsxs)("span",{className:T().badge,children:["Шаг ",e.id]}),(0,l.jsx)("p",{className:T().text,children:e.text}),(0,l.jsx)(v(),{width:300,height:208,alt:"banner"+e.id,src:e.image})]},e.id))})})]})});I.displayName="CreditHowApplyLoanSteps";var w=n(25904),L=n(13636),S=n(69241),P=n(30557);let O={src:"/kredity/assets/_next/static/media/app-qr-credits-detail.824367b9.svg",height:256,width:256,blurWidth:0,blurHeight:0};var R=n(14082),M=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={[o._.PLATFORM]:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v(),{src:K.A,alt:"",className:z().buttonIcon})," Войти через Госуслуги"]}),[o._.REFERAL]:"Оформить на сайте банка",[o._.UNPLATFORM]:"Оформить кредит",[o._.MASS]:"Подобрать кредит"},Z={[o._.UNPLATFORM]:"Oformit onlayn",[o._.REFERAL]:"Oformit na sayte banka",[o._.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)(L.$,{rel:"nofollow sponsored",as:"a",href:t,target:"_blank",className:z().button,onClick:()=>{n!==o._.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:s,bank:c,credit:u,isMobile:d,calculator:p}=e,_=(0,W.fH)(),[g,f]=(0,r.useState)(!1),{amount:h,periodValue:v,paymentTypeOptions:b,paymentTypeValue:y,periodMax:C,periodMin:k,tag:j,repayment:E,amountMax:T,amountMin:A,url:N,handleChangeAmount:I,handleChangePeriod:K,setPaymentTypeValue:q}=p,z=(0,ee.o)(N),G=(null==(t=y[0])?void 0:t.value)===o.w.differentiated?o.w.differentiated:o.w.annuity,Z=(0,$.l5)(v),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)(h,A,T),er=(0,r.useMemo)(()=>({values:v,max:C,min:k===C?k-1:k,onChange:e=>{e=null!=e?e:k,k!==C&&K(e)},step:1,ticks:[{label:(0,$.Hb)(k),value:k},{label:(0,$.Hb)(C),value:C}],unit:[X.U9.ONE,X.U9.FEW,X.U9.MANY]}),[K,C,k,v]),eo=(0,r.useMemo)(()=>[{id:1,label:Z},{id:2,label:"".concat(h||"1 ₽")}],[h,Z]),es=(0,r.useCallback)(()=>{var e;d&&en.current&&(f(!0),(0,V._)({customerId:_,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,_]),ec=(0,r.useCallback)(e=>{e&&((0,V._)({customerId:_,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.filterCatalog,eventLabel:"Порядок погашения",eventValue:e.label}),q([e]))},[q,_]),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)(v))});let n=b.length>1?G:null;return n&&e.push({label:"Платеж",value:n===o.w.annuity?"Аннуитетный":"Дифференцированный",description:(0,l.jsx)("div",{className:ea().tooltipContent,children:(0,l.jsx)(B.q,{type:n})})}),e},[b.length,G,u.full_price,u.interest_rate,v]),em=i===o._.MASS||i===o._.REFERAL?"Где оформить кредит":"Как оформить кредит";return(0,l.jsxs)(m.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==c?void 0:c.logo_mob,url:"/banki/".concat(null==c?void 0:c.url),name:null!=(t=null==c?void 0:c.name)?t:u.bank_name},pageUrl:H.h.POTREBITELSKIE,title:"Кредит \xab".concat(u.title,"\xbb от ").concat(null!=(n=null==c?void 0:c.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)(R.t,{isMobile:!!d,title:"Настройки кредита",pageUrl:H.h.POTREBITELSKIE,infoLink:{isShow:!d,text:"Подробнее о кредите",idScrollBlock:x.uB,offPadding:!0,widthMaxContent:!0},items:[{elements:[{type:"moneyInput",props:{label:"Сумма",value:h,inputRef:ei,onChange:e=>{(0,V._)({customerId:_,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=y[0])?void 0:n.value)?{elements:[{type:"inputRange",props:{label:"Срок погашения",...er}}]}:null,{elements:[{type:"select",isHidden:!y||b.length<=1,desription:(0,l.jsx)(B.q,{className:ea().typeDescription,type:null==(a=p.paymentTypeValue[0])?void 0:a.value}),props:{label:"Порядок погашения",options:b,onChange:ec,value:y,size:"l"}}]}],chips:eo,isShowChips:d&&!!(null==eo?void 0:eo.length)&&!g,isExpandSettings:g,onToggleSettings:()=>f(e=>!e)}),(0,l.jsx)(D.P,{qr_image:O,bannerUrl:s,isSmall:!0,className:ea().qrDesc})]}),(0,l.jsxs)("div",{className:ea().right,children:[(0,l.jsx)(M.r,{captionTitle:eu,pageUrl:H.h.POTREBITELSKIE,onEdit:es,amount:h,disclaimer:"Предварительные условия. Не оферта",tag:j,repayment:E,footerActions:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Y,{href:z,offerType:i,creditId:u.id}),(0,l.jsx)(L.$,{variant:"secondary",className:ea().button,onClick:()=>(e=>{let t=i===o._.MASS||i===o._.REFERAL?x.ov:x.Z5;(0,V._)({customerId:_,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)(L.$,{variant:"purple",appearance:"ghost",size:"s",label:"Не подходит предложение?",className:ea().adviceLink,iconRight:(0,l.jsx)(w.JuQ,{}),onClick:()=>{(0,V._)({customerId:_,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.button,eventActionText:"Не подходит предложение"}),(0,et.e)(x.yB,{offset:d?0:-100,position:"top"})}})]}),agreement:i===o._.PLATFORM&&(0,l.jsx)(F.D,{onLinkClick:e=>{let{url:t,text:n}=e;(0,V._)({customerId:_,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.link,eventActionText:n,url:t})}}),valuesList:ed}),(0,l.jsx)(D.P,{qr_image:O,bannerUrl:s,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(33126),em=n(2510),ep=n(92666),e_=n(71348),eg=n.n(e_);let ef=(0,r.memo)(e=>{let{bank:t,banks:n,currentCreditId:a,offers:i,offersFinuslugi:o,className:s}=e,c=(0,W.fH)(),{town:u,region:d}=(0,ep.z)(),[p,g]=(0,r.useState)(),f=(0,r.useCallback)(()=>{g(void 0)},[]),h=(0,r.useCallback)(e=>{(0,V._)({customerId:c,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},[c]),v=(0,r.useMemo)(()=>{let e=i?i.filter(e=>e.id!==a):[];return(0,ec.q)({productList:e,anotherList:e,count:_.gx})},[i,a]),b=(0,r.useMemo)(()=>{let e=null!=o?o:[];return(0,ec.q)({productList:e,anotherList:e,count:_.a0-v.length})},[v.length,o]),y=(0,r.useMemo)(()=>({bankList:v.map(e=>(0,eu.q)({banks:[t],credit:e,isPlatform:!0})),finuslugiList:b.map(e=>(0,eu.q)({banks:n,credit:e,isPlatform:!0}))}),[t,n,v,b]),C=(0,r.useCallback)(e=>{if(!e)return;let t=[v,b].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:""}}},[v,b]),k=(0,r.useCallback)(e=>{g(C(e)),e&&(0,V._)({customerId:c,eventCategory:H.h.POTREBITELSKIE,eventAction:V.y.popup,eventActionText:e.title,eventLabel:e.id})},[C,c]),j=void 0!==d?"/".concat(em.s6).concat(d.url).concat(void 0!==u?"/".concat(u.url):""):"",E="".concat((0,ed.UK)().mainBaseUrl,"/banki/").concat(t.url,"/potrebitelskie_kredity").concat(j);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("section",{id:x.cA,className:(0,S.A)(eg().container,s),children:[(0,l.jsx)("h3",{className:eg().title,children:"Другие кредитные предложения"}),(0,l.jsxs)(m.J,{children:[!!y.bankList.length&&(0,l.jsxs)("section",{className:eg().offersListContainer,children:[(0,l.jsxs)("p",{className:eg().listTitle,children:["Кредиты онлайн от ",t.name]}),y.bankList.map(e=>(0,l.jsx)(r.Fragment,{children:(0,l.jsx)(er.G,{className:eg().listItem,data:e,eventCategory:es.M,text:"Подать заявку",onDetailInfoClick:k,onClick:h},e.url)},e.id)),(0,l.jsx)(el.e,{offPadding:!0,text:"Bсе предложения от банка",href:E,target:"_blank",iconColor:"light",mainPageUrl:H.h.POTREBITELSKIE})]}),!!y.finuslugiList.length&&(0,l.jsxs)("section",{className:eg().offersListContainer,children:[(0,l.jsx)("p",{className:eg().listTitle,children:"Кредиты онлайн на Финуслугах"}),y.finuslugiList.map(e=>(0,l.jsx)(r.Fragment,{children:(0,l.jsx)(er.G,{className:eg().listItem,data:e,eventCategory:es.M,text:"Подать заявку",onClick:h,onDetailInfoClick:k},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:f,mainPageUrl:es.M})]})});ef.displayName="CreditsList";var eh=n(26700),ev=n(66295),eb=n(12814),ex=n(99689),ey=n(92152),eC=n(14873),ek=n(39954),ej=n(98560),eE=n.n(ej);let eT=(0,r.memo)(e=>{let{bannerUrl:t,bankUrl:n,offerType:a,urlGivingCredit:i}=e,s=(0,j.sw)(),c=(0,ek.P)(),{lkBaseUrl:u}=(0,ed.UK)(),d=(0,r.useMemo)(()=>[{id:4,image:ex.A,text:"Перейдите на сайт банка, чтобы оформить заявку",buttonText:"Оформить на сайте банка",link:n,types:[o._.REFERAL]},{id:1,image:eh.A,text:a===o._.REFERAL?"Этот кредит сейчас нельзя открыть через&#160;Финуслуги":"Этот кредит сейчас нельзя открыть онлайн&#160;на&#160;Финуслугах",buttonText:"Посмотреть кредиты на Финуслугах",link:"/potrebitelskie_kredity",types:[o._.REFERAL]},{id:6,image:eh.A,text:"Этот кредит сейчас нельзя открыть онлайн&#160;на&#160;Финуслугах",buttonText:"Подобрать кредит",link:i,types:[o._.MASS]},{id:2,image:ev.A,text:"Чтобы оформить кредит, обратитесь&#160;в банк",link:"",types:[o._.MASS]},{id:3,image:eb.A,text:"Оформите кредит на сайте <br /> Финуслуг",buttonText:"Оформить через Финуслуги",link:"".concat(u,"/registration?returnTo=%2Fcredits%2Fnew%3FskipName%3Dtrue%26registrationMode%3Dphone"),types:[o._.PLATFORM,o._.UNPLATFORM]},{id:5,image:ey.A,text:"В мобильном приложении <br /> Финуслуг",buttonText:"Скачать приложение",types:[o._.PLATFORM,o._.UNPLATFORM],link:t}].filter(e=>e.types.find(e=>e===a)&&!(e.link===t&&c)),[n,t,c,u,a,i]);return(0,l.jsx)("div",{className:eE().container,children:(0,l.jsx)(eC.N,{title:"Где оформить кредит",pageUrl:H.h.POTREBITELSKIE,id:x.ov,isMobile:s,slides:d,offerType:a})})});eT.displayName="CreditWhereApplyLoanSteps";var eA=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},eI=(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}},eL=(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 eS=n(75464),eP=n(37264),eO=n(99388),eR=n(91063),eM=n(75027),eB=n(30228),eF=n(35954),eU=n(27116);let eD=e=>{if(void 0!==e&&""!==e)return Number(e)},eK=(e,t,n)=>{var a;let i={"@type":"MonetaryAmount",name:t,currency:"RUB"},l=null!=(a=eD(e.minValue))?a:n,r=eD(e.maxValue);return void 0!==l&&(i.minValue=l),void 0!==r&&(i.maxValue=r),i},eH=(e,t)=>{var n;let a={"@type":"QuantitativeValue",unitText:"YEAR"};void 0!==t&&void 0!==t.name&&(a.name=t.name);let i=null!=(n=null==t?void 0:t.valueDivider)?n:1,l=eD(e.from),r=eD(e.to);return void 0!==l&&(a.minValue=l/i),void 0!==r&&(a.maxValue=r/i),a},eV=(e,t)=>{if(null===e)return;let n=eD(e.from),a=eD(e.to);if(void 0===n&&void 0===a)return;let i={"@type":"QuantitativeValue",unitText:"PERCENT"};return void 0!==t&&(i.name=t.name),void 0!==n&&(i.minValue=n),void 0!==a&&(i.maxValue=a),i},eW=(e,t)=>t.find(t=>-1===e.bank_id?e.bic===Number(t.bic):e.bank_id===Number(t.id)),eq=e=>"object"==typeof e&&null!==e,ez=e=>{var t;if(void 0===e)return;let n=(e=>{let t;if("string"!=typeof e)return e;try{t=JSON.parse(e)}catch(e){return[]}return Array.isArray(t)?t.filter(eq):[]})(e.legal_entities)[0],a=null!=(t=null==n?void 0:n.legal_address)?t:null==n?void 0:n.address;return"string"==typeof a&&a.length>0?a:void 0},eG=e=>{var t;return{minValue:null!=(t=eD(e.from))?t:1e4,maxValue:eD(e.to)}},eZ=(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,ed.UK)();if(0===a.length)return;let{lowPrice:o,highPrice:s,offers:c}=(()=>{let e=a.reduce((e,t)=>{let n=eG(t.amount),a=((e,t)=>{let n=eW(e,i);if(void 0===n)throw Error("There is no bank for the credit");let a=ez(n),l=e.title,o=eH(e.period,{name:"Срок кредита"}),s=eV(e.interest_rate,{name:"Процентная ставка"}),c=eK({minValue:t.minValue,maxValue:t.maxValue},l),u=a?(0,eF.O)(a):void 0,d="".concat(r,"/").concat(H.h.POTREBITELSKIE,"/").concat(e.url);return{"@type":"Offer",itemOffered:{"@type":"LoanOrCredit",name:l,url:d,feesAndCommissionsSpecification:d,category:"Потребительские кредиты",loanTerm:o,annualPercentageRate:s,amount:c},priceSpecification:{"@type":"PriceSpecification",price:0,priceCurrency:"RUB",valueAddedTaxIncluded:!0},potentialAction:{"@type":"Action",name:"Оформить",url:(0,eP.Ws)(e,(0,eP.WU)())},broker:{"@type":"BankOrCreditUnion",name:n.name,url:"".concat(r,"/banki/").concat(n.url),image:n.logo_mob,telephone:n.phone,address:u}}})(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:s,lowPrice:o,priceCurrency:"RUB",offerCount:n,offers:c}}}(t,n,a,i,r);return void 0===o?null:(0,l.jsx)(eU.S,{schema:o})});eZ.displayName="CreditOffersSchema";let eY=(e,t)=>({"@type":"PropertyValue",name:e,value:t}),eJ=(0,r.memo)(e=>{let{offer:t,banks:n}=e,a=function(e,t){var n,a;let{mainBaseUrl:i}=(0,ed.UK)(),l=eW(e,t),r=null!=(n=null==l?void 0:l.name)?n:e.bank_name,o=null!=(a=null==l?void 0:l.name_r)?a:r,s="Кредит \xab".concat(e.title,"\xbb от ").concat(o),c="".concat(i,"/").concat(H.h.POTREBITELSKIE,"/").concat(e.url);return(()=>{let t=eG(e.amount),n={"@context":"https://schema.org","@type":"LoanOrCredit",name:s,url:c,category:"Потребительский кредит",provider:(()=>{let e={"@type":"BankOrCreditUnion",name:r},t=void 0!==l?ez(l):void 0;return void 0!==l&&(e.url="".concat(i,"/banki/").concat(l.url)),(null==l?void 0:l.phone)!==void 0&&(e.telephone=l.phone),(null==l?void 0:l.logo_mob)!==void 0&&(e.image=l.logo_mob),void 0!==t&&(e.address=(0,eF.O)(t)),e})(),amount:eK({minValue:t.minValue,maxValue:t.maxValue}),loanTerm:eH(e.period,{valueDivider:12})},a=eV(e.interest_rate),o=eV(e.full_price),u=(e=>{let t=[];if(""!==e.loan.text&&t.push(eY("Обеспечение",e.loan.text)),""!==e.purpose.text&&t.push(eY("Цель кредита",e.purpose.text)),""!==e.repayment_procedure.text&&t.push(eY("Порядок погашения",e.repayment_procedure.text)),""!==e.application_term.text&&t.push(eY("Срок рассмотрения заявки",e.application_term.text)),""!==e.age.text&&t.push(eY("Возраст заемщика",e.age.text)),""!==e.experience.text&&t.push(eY("Стаж работы",e.experience.text)),""!==e.income_proof.text&&t.push(eY("Подтверждение дохода",e.income_proof.text)),void 0!==e.insurance.text&&""!==e.insurance.text&&t.push(eY("Страхование",e.insurance.text)),0!==t.length)return t})(e);return void 0!==a&&(n.interestRate=a),void 0!==o&&(n.annualPercentageRate=o),void 0!==u&&(n.additionalProperty=u),n})()}(t,n);return(0,l.jsx)(eU.S,{schema:a})});eJ.displayName="CreditDetailSchema";var e$=n(96470),eQ=n(9837),eX=n(66460),e0=n(91403),e1=n(78011),e2=n(99275),e6=n(31339),e3=n.n(e6);function e5(e){var t,n;let{offer:a,journal:i,offerType:s,questions:h,description:v,banks:b,refererTag:x,offers:y,offersFinuslugi:C,support:k}=e,E=(0,j.sw)(),T=(0,eB.I)(_.Js),A=(0,eM.I)({bannersTitle:[_.BZ.CREDITS_DETAIL],queryParams:T});(0,eO.eg)(eO.ch.Credit);let N=(e=>{var t,n,a,i,l,s;let c=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!=(s=e.period.to)?s:1),p=e.online_application.commercial_desc,_=(0,r.useRef)(!1),{asPath:g}=(0,eA.useRouter)(),f=+e.interest_rate.from,h=(0,r.useMemo)(()=>{let t=[];return e.repayment_procedure.annuity&&t.push({label:"Аннуитетный",value:o.w.annuity}),e.repayment_procedure.differentiated&&t.push({label:"Дифференцированный",value:o.w.differentiated}),t},[e.repayment_procedure]),[v,b]=(0,r.useState)(c),[x,y]=(0,r.useState)(0),[C,k]=(0,r.useState)(m),[j,E]=(0,r.useState)(0),[T,A]=(0,r.useState)([h[0]]),N=(null==(t=T[0])?void 0:t.value)===o.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),I=(0,eP.Ws)(e,(0,eP.WU)(),{amount:String(v),term:C}),w=(null==(n=T[0])?void 0:n.value)===o.w.annuity?eN:eI,L=(null==(a=T[0])?void 0:a.value)===o.w.annuity?ew:eL,S=(0,r.useCallback)(e=>{let t=null!=e?e:0;b(t);let n=w(f,t,C);y(Math.round(n)),E(n)},[w,C,f]),P=(0,r.useCallback)(e=>{k(e);let t=w(f,v,e);y(Math.round(t)),E(t)},[v,w,f]),O=(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,eS.$)(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=w(f,n,a);y(Math.round(i)),E(i),_.current=!0},[v,g,e.amount.from,e.amount.to,S,w,x,m,d,f]),(0,r.useMemo)(()=>({amount:v,payment:x,periodValue:C,setPeriod:k,paymentTypeOptions:h,paymentTypeValue:T,setPaymentTypeValue:A,rate:f,amountMin:c,amountMax:u,periodMin:d,periodMax:m,tag:p,handleChangeAmount:S,handleChangePeriod:P,handleChangePayment:O,finalPayment:j,repayment:N,url:I}),[v,x,C,h,T,f,c,u,d,m,p,S,P,O,j,N,I])})(a),w=(0,r.useMemo)(()=>b.find(e=>+e.id==+a.bank_id),[b,a.bank_id]),{region:L,town:S}=(0,ep.z)(),P=null==(t=h.find(e=>e.id===g.j5))?void 0:t.questions.filter(e=>g.e5.includes(e.question)).map(e=>({title:e.question,text:e.answer,plainText:(0,e$.NC)(e.answer).trim()})),O="Потребительский кредит \xab".concat(a.title,"\xbb от ").concat(null!=(n=null==w?void 0:w.name_r)?n:"");return(0,l.jsxs)("main",{className:e3().page,children:[(0,l.jsx)(d.I,{productId:String(a.id),title:O,description:null!=v?v:""}),(0,l.jsx)(eX.t,{}),(0,l.jsx)(eJ,{offer:a,banks:b}),(0,l.jsx)(eQ.c,{questions:null!=P?P:[]}),(0,l.jsx)("div",{className:e3().navigationWrapper,children:(0,l.jsx)(m.J,{children:(0,l.jsx)(u.B,{className:e3().breadcrumbs,items:(()=>{var e;let t=(null==S?void 0:S.name_p)||(null==L?void 0:L.name_p)?" в ".concat((null==S?void 0:S.name_p)||(null==L?void 0:L.name_p)):"",n="".concat((null==L?void 0:L.url)?"/reg_".concat(null==L?void 0:L.url):"").concat((null==S?void 0:S.url)?"/".concat(null==S?void 0:S.url):""),i=[{label:"Главная",href:"/"},{label:"Кредиты".concat(t),href:"/potrebitelskie_kredity".concat(n)}];return x&&i.push({label:"".concat(x.name).concat(t),href:"/potrebitelskie_kredity/teg_".concat(x.url).concat(n)}),i.push({label:"".concat(null!=(e=null==w?void 0:w.name)?e:a.bank_name," Кредит ").concat(a.title)}),i})()})})}),(0,l.jsxs)(m.J,{children:[(0,l.jsx)(ei,{offerType:s,credit:a,isMobile:E,calculator:N,bank:w,bannerUrl:A[_.BZ.CREDITS_DETAIL]}),(0,l.jsx)(f.l,{data:a,bank:w,pageUrl:H.h.POTREBITELSKIE})]}),[o._.PLATFORM,o._.UNPLATFORM].includes(s)&&(0,l.jsx)(I,{offerType:s,bankName:null==w?void 0:w.name_p}),(0,l.jsx)(eT,{bannerUrl:A[_.BZ.CREDITS],bankUrl:a.online_application.url,offerType:s,urlGivingCredit:N.url}),w&&(0,l.jsx)(ef,{bank:w,banks:b,currentCreditId:a.id,offers:y,offersFinuslugi:C}),(0,l.jsx)(p.T,{url:"/master_podbora_kredita",mainPageUrl:es.M,text:"Войдите на Финуслуги и заполните небольшую анкету, а мы подберем для вас несколько кредитов на выбор"}),i.posts.length>0&&(0,l.jsx)(e0.C,{posts:i.posts,eventCategory:H.h.POTREBITELSKIE}),(0,l.jsx)("div",{className:e3().supportSection,children:(0,l.jsx)(e1.E,{value:k})}),(0,l.jsx)("div",{className:e3().faqSection,children:(0,l.jsx)(e2.m,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,l.jsx)(c(),{...e}),dataLayerPush:eR.o,questions:P,eventCategory:"credits_support_block",href:"".concat((0,ed.UK)().mainBaseUrl,"/help/credits"),checkAllText:"Читать все вопросы про кредиты"})})]})}var e4=n(80505);n(34711),n(37071),n(81787);var e7=n(23857);n(7455);let e8=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)(e7.P,{data:s,children:(0,l.jsx)(e5,{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 e9=n(84266),te=n(74153),tt=n.n(te);let tn=e=>{let{inRegion:t,bestOffers:n}=e;return n.length?(0,l.jsxs)("div",{className:tt().bestOffers,children:[(0,l.jsxs)("h2",{className:tt().title,children:["Лучшие предложения по кредитам ",t]}),(0,l.jsx)("div",{className:tt().content,children:(0,l.jsx)("div",{className:tt().contentInner,children:(0,l.jsx)("div",{className:tt().list,children:n.map(e=>(0,l.jsx)(ta,{...e},e.id))})})})]}):null},ta=e=>{let{url:t,logo:n,topCardAdvantage:a,bottomCardAdvantage:i,bankName:r,id:o,description:s}=e;return(0,l.jsxs)("div",{className:tt().card,children:[(0,l.jsxs)("div",{className:tt().cardHeading,children:[(0,l.jsx)("div",{className:tt().cardIcon,children:(0,l.jsx)(v(),{width:56,height:56,src:n,alt:"logo"})}),(0,l.jsxs)("div",{className:tt().cardHeadingContent,children:[(0,l.jsx)("p",{className:tt().cardHeadingSubtitle,children:r?s:""}),(0,l.jsx)("p",{className:tt().cardHeadingTitle,children:r||s})]})]}),(0,l.jsxs)("div",{className:tt().cardAdvantage,children:[(0,l.jsx)("div",{className:tt().captionWrapper,children:(0,l.jsx)("p",{className:tt().cardAdvantageTitle,children:a.title})}),(0,l.jsx)("p",{className:tt().cardAdvantageValue,children:a.value})]}),(0,l.jsxs)("div",{className:tt().cardAdvantage,children:[(0,l.jsx)("p",{className:tt().cardAdvantageTitle,children:i.title}),(0,l.jsx)("p",{className:tt().cardAdvantageValue,children:i.value})]}),(0,l.jsx)(L.$,{as:"a",className:tt().cardBtn,href:t,children:"Подробнее"})]},o)};var ti=n(40317),tl=n(9507),tr=n(62835),to=n(86933),ts=n(16132),tc=n(87768),tu=n(3010),td=n(40818),tm=n(24523),tp=n(25167),t_=n(87087),tg=n(47052),tf=n(87057),th=n(86601),tv=n(75289),tb=n.n(tv);let tx=(0,tm.O)(),ty=(0,tm.O)(),tC=e=>{var t,n,a;let{terms:i,filter:o,isMobile:s,banksOptions:c,onChangeFilter:u,onClose:d}=e,m=(0,W.fH)(),p=(0,r.useCallback)(()=>{d(),(0,et.e)(x.cA,{offset:s?0:-140,position:"top"})},[d,s]),_=(0,r.useCallback)(e=>{"Enter"===e.key&&p()},[p]),g=(0,r.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;tx(()=>{(0,eR.o)({event:"data-event",eventAction:H.h.POTREBITELSKIE,eventCategory:"filter_catalog",eventLabel:(0,t_.y)(td.Be),eventValue:t,customer_id:m})}),u({amount:t})},[u,m]),f=(0,r.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;ty(()=>{(0,eR.o)({event:"data-event",eventAction:H.h.POTREBITELSKIE,eventCategory:"filter_catalog",eventLabel:(0,t_.y)(td.So),eventValue:t,customer_id:m})}),u({payment:t})},[u,m]),h=(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,eR.o)({event:"data-event",eventAction:H.h.POTREBITELSKIE,eventCategory:"filter_catalog",eventLabel:(0,t_.y)(t),eventValue:(0,t_.y)(i.join(",")),customer_id:m})},v=e=>{if(o[e])return{value:o[e],label:""}};return(0,l.jsxs)("div",{onKeyDown:_,children:[(0,l.jsxs)("div",{className:tb().fields,children:[(0,l.jsx)(tf.F,{value:o.amount,label:td.Be,onChange:g,onKeyDown:e=>(0,tp.K)(e,p)}),(0,l.jsx)(tf.F,{value:o.payment,label:td.So,onChange:f,onKeyDown:e=>(0,tp.K)(e,p)}),(0,l.jsx)(ts.l,{label:"Срок",value:v("period"),options:i,onChange:h("period","Срок")}),(0,l.jsx)(ts.l,{label:"Цель кредита",value:v("purpose"),onChange:h("purpose","Срок"),options:td.l5}),(0,l.jsx)(ts.l,{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:h("borrowers","Категория заемщика"),options:td.PA,multiple:!0}),(0,l.jsx)(ts.l,{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:h("incomeProofs","Подтверждение дохода"),options:td.eb}),(0,l.jsx)(ts.l,{label:"Гарантия возврата денег",value:v("collateral"),onChange:h("collateral","Гарантия возврата денег"),options:td.ni}),(0,l.jsx)(ts.l,{label:"Способ получения",value:v("form"),onChange:h("form","Способ получения"),options:td.fy}),(0,l.jsx)(ts.l,{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:h("banks","Банки"),options:c})]}),(0,l.jsx)("div",{className:tb().settings,children:(0,l.jsx)("div",{className:tb().settingsLeftBlock,children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h6",{className:tb().settingsTitle,children:"Сортировать"}),(0,l.jsx)("div",{className:tb().radioGroup,children:td.s.map(e=>(0,l.jsx)(to.s,{name:e.field,onChange:()=>{u({sort:e.field}),(0,eR.o)({event:"data-event",eventAction:H.h.POTREBITELSKIE,eventCategory:"filter_catalog",eventLabel:(0,t_.y)("Сортировать"),eventValue:(0,t_.y)(e.label),customer_id:m})},checked:e.field===o.sort,className:tb().radio,value:e.field,label:e.label},e.field))})]})})})]})},tk=e=>{let t=(0,W.fH)(),n=(0,tg.Y)();(0,r.useEffect)(()=>{e.isOpen&&(0,eR.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)(x.cA,{offset:e.isMobile?0:-140,position:"top"})},[e]);return(0,l.jsx)(tu.Z,{children:(0,l.jsx)(tc.K,{isMobile:e.isMobile,isOpen:e.isOpen,onClose:a,onClickReset:()=>e.onDrop(),footerContent:n&&(0,l.jsx)(th.$,{className:tb().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:tb().content,children:(0,l.jsx)(tC,{...e})})})})};var tj=n(47691),tE=n(54767),tT=n(4149);let tA=["nalichnymi","na_1_god","s_zalogom","refinansirovanie","na_kartu","s_plohoj_kreditnoj_istoriej","pod_zalog_nedvizhimosti","bez_spravok"];var tN=n(72080),tI=n(75972),tw=n(69932),tL=n(41771),tS=n(48673),tP=n(58885),tO=n.n(tP);function tR(){return(tR=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 tM=function(e){return r.createElement("svg",tR({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"}))))},tB=(0,tm.O)(),tF=(0,tm.O)(),tU=(0,tm.O)(),tD=(0,r.memo)(e=>{let{region:t,heading:n,town:a,filter:i,tag:o,subtitle:s,banksOptions:c,tags:u,isMobile:d,isOpenModal:m,offersCount:p,onFilterChange:_,onFilterApply:g,onModalOpen:f,onModalClose:h}=e,v=(0,W.fH)(),b=(0,j._I)(),y=(0,tg.Y)(),{push:C}=(0,eA.useRouter)(),k=(e=>{let t=(0,r.useMemo)(()=>{let t=(0,tT.$)(e,"url");return tA.reduce((e,n)=>{let a=t[n];return void 0!==a&&e.push(a),e},[])},[e]);return(0,r.useMemo)(()=>t,[t])})(u),[E,T]=(0,r.useState)(i),A="".concat((0,ed.UK)().trackerBaseUrl,"/click.php?key=f043af323c732a65e8e5&amount=").concat(E.amount),N=(0,ee.o)(A),I=(0,r.useCallback)(e=>{(0,eR.o)({event:"data-event",eventAction:e,eventCategory:H.h.POTREBITELSKIE,customer_id:v})},[v]),w=(0,r.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;T(e=>{let n={...e,amount:t};return tB(()=>{(0,eR.o)({event:"data-event",eventAction:H.h.POTREBITELSKIE,eventCategory:"filter_catalog",eventLabel:(0,t_.y)(td.Be),eventValue:t,customer_id:v}),g(n)}),n})},[g,v]),P=(0,r.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;T(e=>{let n={...e,payment:t};return tF(()=>{(0,eR.o)({event:"data-event",eventAction:H.h.POTREBITELSKIE,eventCategory:"filter_catalog",eventLabel:(0,t_.y)(td.So),eventValue:t,customer_id:v}),g(n)}),n})},[g,v]),O=(0,r.useRef)([]),R=(0,r.useCallback)(()=>{(0,et.e)(x.cA,{offset:b?-140:0,position:"top"})},[b]),{ref:M,isSticky:B}=(0,tL.x)(),F=(0,r.useCallback)(e=>{g({}),C(e,void 0,{shallow:!0})},[g,C]),U=(0,r.useMemo)(()=>k.map(e=>{let n=e.url_redirect||e.url,i=(null==o?void 0:o.url)===n;return{value:(0,tN.b)(H.h.POTREBITELSKIE,i?void 0:e,t,a),label:e.name,color:i?"black":"default",onChipClick:F}}),[k,null==o?void 0:o.url,t,a,F]),D=(0,r.useMemo)(()=>{let e=((e,t)=>{var n,a;let i=(0,tE.O)().unit,l=[];l.push({id:tj.u.amount,label:e.amount?"".concat(e.amount):"Сумма кредита: от ".concat(e.amount||"1 ".concat(i))}),l.push({id:tj.u.payment,label:e.payment?"До ".concat((0,J.ZV)(+e.payment)," ").concat(i," в мес"):"Платеж: не имеет значения"});let r=td.mr.find(t=>e.period===t.value);if(l.push({id:tj.u.period,label:(null==r?void 0:r.value)?null==r?void 0:r.label:"Срок: не имеет значения"}),e.purpose){let t=td.l5.find(t=>t.value===e.purpose);t&&l.push({id:tj.u.purpose,label:"".concat(null==t?void 0:t.label)})}if(null==(n=e.borrowers)?void 0:n.length){let t=e.borrowers,n=td.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:tj.u.borrower,label:a})}if(e.incomeProofs&&e.incomeProofs.length){let t=e.incomeProofs,n=td.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:tj.u.proofIncome,label:"".concat(a)})}if(e.collateral){let t=td.ni.find(t=>t.value===e.collateral);t&&l.push({id:tj.u.loan,label:"".concat("Не требуется"===t.label?"Гарантия возврата денег: "+t.label:t.label)})}let o=td.fy.find(t=>t.value===e.form);if(o&&l.push({id:tj.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:tj.u.bank,label:"Банки".concat(i)})}return l})(E,c);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},[E,c]),K=(0,r.useMemo)(()=>D.map(e=>{let{label:t,id:n}=e;return{label:t,value:n,color:"default",onChipClick:f}}),[D,f]),V=(0,r.useCallback)(e=>{T(t=>{let n={...t,...e};return tU(()=>{_(n)}),n})},[_]),q=(0,r.useCallback)(()=>{T({}),g({}),_({})},[g,_]),z=(0,r.useCallback)(()=>{g(E)},[E,g]);return(0,tS.w5)(()=>{T(i)},[i]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(tl.F,{region:t,town:a,title:n,subtitle:s,mainPageUrl:H.h.POTREBITELSKIE}),(0,l.jsx)(tr.L,{config:y,params:td.ZA}),(0,l.jsxs)(ti.m,{className:tO().container,children:[(0,l.jsxs)("div",{ref:M,className:tO().filter,children:[(0,l.jsxs)("div",{className:tO().fields,children:[(0,l.jsx)(tf.F,{label:td.Be,value:E.amount,className:tO().field,onChange:w,onKeyDown:e=>(0,tp.K)(e,R)}),(0,l.jsx)(tf.F,{label:td.So,value:E.payment,className:tO().field,onChange:P,onKeyDown:e=>(0,tp.K)(e,R)})]}),!b&&(0,l.jsx)("div",{className:tO().chipsRowMobile,children:(0,l.jsx)(tI.P,{chips:U,onParamsClick:f,useLinkChips:!0})}),(0,l.jsx)(L.$,{onClick:()=>{I("anketa_click"),window.open(N,"_self")},size:"s",className:tO().fillButton,children:"Заполнить анкету"}),B&&(0,l.jsx)(tw.W,{chips:K,onParamsClick:f})]}),(0,l.jsxs)("div",{className:tO().timeCaption,children:[(0,l.jsx)(tM,{}),"Это займёт не более 5 минут"]}),b&&(0,l.jsx)("div",{className:(0,S.A)(tO().chipsRow),children:(0,l.jsx)(tI.P,{chips:U,onParamsClick:f,useLinkChips:!0})})]})]}),(0,l.jsx)(tk,{filter:E,isMobile:d,terms:td.mr,isOpen:m,banksOptions:c,offersCount:p,onChangeFilter:V,onClose:h,onDrop:q,onShow:z})]})});tD.displayName="CreditsFilter";var tK=n(68290),tH=n(78475),tV=n(41925),tW=n(8868),tq=n(21921),tz=n(28036),tG=n(50261),tZ=n(58979),tY=n(22252),tJ=n(70590),t$=n(68082),tQ=n(48900),tX=n.n(tQ);let t0=[{title:"Наименование банка",value:"bankName"},{title:"Ежемесячный платёж",value:"paymentValue"},{title:"Ставка",value:"rateValue"},{title:"ПСК",value:"fullPrice"},{title:"Сумма",value:"amountValue"},{title:"Срок кредита",value:"term"}];function t1(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 t2(e){let{offers:t}=e,[n,a]=(0,r.useState)("amountValue"),[i,o]=(0,r.useState)("asc"),s=(0,r.useMemo)(()=>(0,t$.Q)(t,n,i,t1),[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,tY.s)(new Date);return(0,l.jsx)(tJ.A,{caption:"Онлайн-платформа Финуслуги позволяет подобрать кредит из представленных на сервисе предложений по кредитам. Окончательные условия определяются кредитным договором. ООО \xabМБ Маркетплейс\xbb и ПАО Московская Биржа не осуществляют банковские операции. Все предложения, отображенные в рейтинге, являются лучшими исключительно по мнению экспертов Финуслуги.ру. Дата обновления рейтинга: ".concat(u),className:tX().offers,columns:t0,rows:c,sort:n,sortOrder:i,onSortChange:(e,t)=>{a(e),o(t)}})}var t6=n(36012),t3=n(17137),t5=n(18258),t4=n(82596),t7=n(83156),t8=n(3633),t9=n(12771),ne=n(73584),nt=n(28131);async function nn(e){let t=await (0,t9.zy)("Credits.json?".concat("url","=").concat(encodeURIComponent(e)));if(1!==t.length)throw new nt.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 ne.AP(nn);var na=n(3187),ni=n(24323),nl=n(57325),nr=n(33568),no=n(162),ns=n(50598),nc=n(79790),nu=n(98580),nd=n(6862),nm=n(61850),np=n(69613),n_=n(69619),ng=n.n(n_);let nf=[(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("span",{children:"Войдите на Финуслуги с помощью"}),(0,l.jsx)(nl.e,{})]},0),(0,l.jsx)(r.Fragment,{children:"Заполните анкету, мы подберем предложения специально для вас"},1),(0,l.jsx)(r.Fragment,{children:"Выберите предложение и отправьте заявку в банк — прямо на Финуслугах"},2),(0,l.jsx)(r.Fragment,{children:"Дождитесь одобрения, банк свяжется c вами и расскажет, как получить деньги"},3)],nh=e=>{let{tag:t,credits:n,reviews:a,creditRegion:i,regions:o,banks:s,townDublicates:u,tags:p,rollup:_,partnerOffer:g,expertQuote:f,experts:h,defaultFilter:v,support:b,offersTerms:y,seoText:C}=e,k=(0,j.sw)(),E=(0,W.fH)(),{asPath:T,query:A}=(0,eA.useRouter)(),N=(0,tg.Y)(),[I,w]=(0,r.useState)([]),[L,P]=(0,r.useState)(f),[O,R]=(0,r.useState)(),[M,B]=(0,r.useState)(!1),{region:F,town:U}=(0,ep.z)(),[D,K]=(0,r.useState)(!1),[V,q]=(0,r.useState)(Number(A.page)||1),[z,G]=(0,r.useState)(n),[Z,Y]=(0,r.useState)(null!=C?C:void 0),$=z.description||"",X=z.subtitle||"",ee=(0,r.useCallback)(()=>{B(!0)},[]),en=(0,r.useCallback)(()=>{B(!1)},[]),ea=(0,r.useMemo)(()=>{var e,t;return null!=(t=null==(e=T.split("/").find(e=>e.includes("teg_")))?void 0:e.slice(4))?t:"DEFAULT"},[T]),[ei,el]=(0,r.useState)(t),er=(0,na.m)(T);(0,tS.w5)(()=>{(0,no.Zs)(er).then(P)},[er]),(0,tS.w5)(()=>{(0,nm.Rz)(er).then(Y)},[er]),(0,r.useEffect)(()=>{T.includes("purpose")&&(0,et.e)(x.cA,{offset:k?0:-100,position:"top"})},[]),(0,eO.eg)(eO.ch.Credit),(0,r.useEffect)(()=>{var e;ea!==(null!=(e=null==ei?void 0:ei.url)?e:"DEFAULT")&&(0,t9.pY)("credits/tag?".concat("url","=").concat(ea)).then(el),(0,t7.g)(void 0,E)},[T,null==ei?void 0:ei.url,ea,E]),(0,r.useEffect)(()=>{(0,e9.q)().then(e=>{let t=e.data||void 0;t&&w(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 eo=(()=>{let e={...F},t={...U},n=e.deposits_count,a=t.deposits_count,i=p.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)),m="",_=z.count,g=z.title;if(F){let e=u.indexOf((null==U?void 0:U.id)||0)>=0;m=U?" ".concat((0,tz.c)(U.name_p)," ").concat(U.name_p).concat(e?" (".concat(F.name,")"):""):" ".concat((0,tz.c)(F.name_p)," ").concat(F.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 ei?((e,t,n,a)=>{let i=(0,tG.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,tG.w)(e.region_page.town_titles[l%e.region_page.town_titles.length],t,n,a):(r=a.indexOf(n.id)>=0,i+=" "+(0,tz.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,tG.w)(e.region_page.region_titles[l%e.region_page.region_titles.length],t,n,a):i+=" "+(0,tz.c)(t.name_p)+" "+t.name_p),i})(ei,null!=F?F:null,null!=U?U:null,u):"Кредиты".concat(m," с максимальной ставкой ").concat(l||14,"% годовых на сегодня ").concat(o," ").concat(d," ").concat(c,"г. ").concat(2*_," aктуальных депозитов – открыть вклад").concat(m," на Финуслуги.ру")})(),{filter:es,setFilter:ec}=function(){let{query:e,push:t}=(0,eA.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,na.pi)(l)),"string"==typeof r&&(m.incomeProofs=(0,na.pi)(r)),"string"==typeof o&&(m.collateral=o),"string"==typeof s&&(m.form=s),"string"==typeof c&&(m.banks=(0,na.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{page:g,...b}=f.current,x={...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,na.t9)(l)),void 0!==r&&(m.incomeProofs=(0,na.t9)(r)),void 0!==o&&(m.collateral=o),void 0!==s&&(m.form=String(s)),void 0!==c&&(m.banks=(0,na.t9)(c)),void 0!==u&&(m.sort=u),void 0!==d&&(m.order=d),m}(e),...b};return v.current({query:x},void 0,{shallow:!0}),!0},[])}}(),eu=(0,r.useMemo)(()=>({...v,...ei.filter,...es}),[v,ei,es]),em=(0,r.useMemo)(()=>(0,t4.H)(s,eu.banks),[s,eu.banks]),e_=(0,r.useMemo)(()=>_.reduce((e,t)=>{let{credits:n}=t;return[...e,...n]},[]),[_]),eg=null==F?void 0:F.url,ef=null==U?void 0:U.url,eh=(0,r.useCallback)(async e=>{q(e),K(!0);try{let t=await (0,e4.fo)({tag:ei.url,region:eg,town:ef,page:e,pageSize:td.v_,filter:eu},e_);e>1?G(e=>({...e,...t,offers:[...e.offers,...t.offers]})):(G(t),R(void 0))}finally{K(!1)}},[ei,eg,ef,eu,e_]),ev=(0,r.useCallback)(async e=>{R((await (0,e4.fo)({tag:ei.url,region:eg,town:ef,filter:e,pageSize:0},e_)).count)},[ei.url,eg,ef,e_]);(0,tS.w5)(()=>{eh(1)},[eh]);let{unifiedOffers:eb,unifiedPartnerOffers:ex}=(0,r.useMemo)(()=>(0,tH.L)(eu,s,z.offers,g),[eu,s,z,g]),ey=(0,r.useMemo)(()=>(function(e){let{credits:t,creditTags:n,creditRegion:a,regions:i,banks:r,tag:o,region:s,town:c,townDublicates:u=[]}=e,d=H.h.POTREBITELSKIE,m="Кредиты",p="кредитов",_=[],g=(0,t3.$)({offers:t,getBankKey:e=>e.bankId,getAmount:e=>e.amountTo,getRate:e=>e.rateTo}).slice(0,10);g.length>2&&_.push({title:(0,tG.w)("Рейтинг ".concat(p," ").concat(s||c?(0,tz.c)(c?c.name:null==s?void 0:s.name)+" "+(c?c.name_p:null==s?void 0:s.name_p):""," в {year} году"),s,c,u),text:(0,l.jsx)(t2,{offers:g})}),!s&&(null==o?void 0:o.default)!==1&&(null==o?void 0:o.text)&&Array.isArray(o.text)&&o.text.forEach(e=>{_.push({title:(0,tG.w)(e.title,s,c,u),text:(0,l.jsx)(e$.eW,{data:(0,tG.j)(e,s,c,u,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=>{_.push({title:(0,tG.w)(e.title,s,c,u),text:(0,l.jsx)(e$.eW,{data:(0,tG.j)(e,s,c,u,void 0,o).content})})});let f=s&&o&&o.region_page&&(c||o.region_page.region_content&&o.region_page.region_content.length)&&(!c||o.region_page.town_content&&o.region_page.town_content.length)?(c?o.region_page.town_content:o.region_page.region_content).map(e=>({title:(0,tG.w)(e.title,s,c,u),text:(0,tG.w)(e.content.map(tq.Zf).join(""),s,c,u)})):[];f&&f.length&&f.forEach(e=>{_.push({title:(0,tG.w)(e.title,s,c,u),text:(0,l.jsx)(e$.eW,{data:[{type:tq.$G.Html,data:{html:e.text}}]})})}),_.push(...(0,t5.N)(d,i,o,s,c,{nominativeCase:m,genitiveCase:p}));let h=n.reduce((e,t)=>{if(void 0===t.url_redirect){let n=(0,tN.b)(d,t,s,c),a=(0,t6.AP)(n,t.name);e.push(a)}return e},[]);_.push({title:"Виды ".concat(p),text:(0,l.jsx)(t6.oL,{children:h})});let v=(()=>{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,tZ.s)(n,5);return[...l,...(0,tZ.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:m," ").concat(e.name_r," ").concat(s&&(null==(t=e.region_ids)?void 0:t.length)?(0,tz.c)(c?c.name:s.name)+" "+(c?c.name_p:s.name_p):""),a=((e,t)=>{var n;let a=(null==(n=t.region_ids)?void 0:n.length)?[s,c]:[void 0,void 0],i=(0,tN.b)("banki/".concat(t.url,"/").concat(d),(null==o?void 0:o.bank_region_page)?o:void 0,...a);return"".concat(e).concat(i)})((0,ed.UK)().mainBaseUrl,e);return(0,t6.mZ)(a,n)})})();return v.length>0&&_.push({title:"".concat(m," от банков"),text:(0,l.jsx)(t6.oL,{children:v})}),(()=>{let e=new Set;return _.filter(t=>{let{title:n}=t,a=e.has(n);return a||e.add(n),!a})})()})({credits:eb,creditTags:p,creditRegion:i,regions:o,banks:s,tag:ei,region:F,town:U,townDublicates:u}),[s,p,eb,F,i,o,ei,U,u]),eC=(null==U?void 0:U.name_p)||(null==F?void 0:F.name_p)?" в ".concat((null==U?void 0:U.name_p)||(null==F?void 0:F.name_p)):"",{mainBaseUrl:ek}=(0,ed.UK)(),ej=(0,r.useCallback)((e,t)=>{ec({...eu,sort:e,order:t})},[ec,eu]),eE="DEFAULT"!==ei.tag_name?ei.name:"Потребительские кредиты",eT=(0,r.useMemo)(()=>null!==g?[...z.offers,g]:z.offers,[z,g]);return(0,l.jsxs)("main",{className:ng().page,children:[(0,l.jsx)(d.I,{title:eo,description:$}),(0,l.jsx)(tV.A,{title:eE,tag:ei,inRegion:eC,pageUrl:H.h.POTREBITELSKIE,pageTitle:"Кредиты"}),(0,l.jsx)(eX.t,{}),(0,l.jsx)(eZ,{name:eE,description:$,offersCount:z.count,offers:eT,banks:s}),(0,l.jsx)(m.J,{className:ng().filterContainer,children:(0,l.jsx)(tD,{region:F,town:U,heading:eE,subtitle:X,filter:eu,tag:ei,tags:p,banksOptions:em,isMobile:k,isOpenModal:M,offersCount:null!=O?O:z.count,onFilterChange:ev,onFilterApply:ec,onModalOpen:ee,onModalClose:en})}),(0,l.jsx)(ni.I,{steps:nf}),(0,l.jsx)(tK.H,{pageName:H.h.POTREBITELSKIE,unifiedOffers:eb,unifiedPartnerOffers:ex,sort:eu.sort,sortOrder:eu.order,adFoxConfig:N,subtitle:X,region:F,town:U,credits:z,isLoading:D,page:V,rollup:e_,onChangeSort:ej,onChangePage:eh,onFilterModalOpen:ee}),(0,l.jsx)(t8.f,{type:"bank",secondary:!0}),(0,l.jsx)("section",{className:(0,S.A)(ng().sectionWrapper),children:(0,l.jsx)(m.J,{children:(0,l.jsx)(nu.U,{data:y})})}),(0,l.jsx)("section",{className:(0,S.A)(ng().sectionWrapper),children:(0,l.jsx)(m.J,{children:(0,l.jsx)(tn,{bestOffers:I,inRegion:eC})})}),void 0!==L&&(0,l.jsx)(ns.V,{quote:L}),void 0!==h&&(0,l.jsx)("section",{className:ng().experts,children:(0,l.jsx)(m.J,{children:(0,l.jsx)(nc.o,{heading:"Потребительские кредиты",experts:h})})}),void 0!==a&&(0,l.jsx)(m.J,{children:(0,l.jsx)(nd.K,{serviceId:nr.E.POTREBITELSKIYE_KREDITY,reviews:a,companies:s})}),void 0!==Z&&(0,l.jsx)(np.f,{data:Z}),(0,l.jsx)(e2.m,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,l.jsx)(c(),{...e}),dataLayerPush:eR.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)(ng().sectionWrapper,ng().sectionGray),children:(0,l.jsx)(e0.C,{posts:i.posts,eventCategory:H.h.POTREBITELSKIE})}),(0,l.jsx)(e1.E,{value:b})]})};n(51649),n(54267),n(46215),n(99514),n(44860);let nv=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)(e7.P,{data:u,children:(0,l.jsx)(nh,{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 nb=n(16236),nx=n(21819),ny=!0;let nC=(0,r.memo)(function(e){return(0,l.jsx)(nx.h,{product:nb.H7.Credit,pageProps:e,renderShowcasePage:e=>(0,l.jsx)(nv,{...e}),renderOfferPage:e=>(0,l.jsx)(e8,{...e})})})},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(60679)}])},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,[8325,7492,8585,9967,4587,5695,3941,9799,9992,6537,5948,2631,2158,1326,7586,5866,7100,4999,1409,6296,9019,2496,2463,636,6593,8792],()=>e(e.s=87696)),_N_E=e.O()}]);