(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7821],{75609:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ipoteka/[[...segments]]",function(){return n(68910)}])},77910:function(e,t){"use strict";t.Z={src:"/kredity/assets/_next/static/media/banner-6.5d66df25.svg",height:230,width:256,blurWidth:0,blurHeight:0}},47860:function(e,t){"use strict";t.Z={src:"/kredity/assets/_next/static/media/search.b3dc20e8.svg",height:192,width:212,blurWidth:0,blurHeight:0}},48766:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});let a=e=>{let t=Number(e.split(" ")[0]);return e&&!Number.isNaN(t)?t:0}},48743:function(e,t,n){"use strict";n.d(t,{$:function(){return m}});var a=n(85893),l=n(34588),o=n(67294),r=n(56790),i=n(65848),s=n(87907),c=n(98028),u=n(45446),d=n.n(u);let m=(0,o.memo)(e=>{let{isOpen:t,cancelButton:n,submitButton:u,onClose:m,bankName:p,dataPoints:_,offerType:v,offerUpdateData:h,pageUrl:f}=e,g=(0,a.jsxs)("div",{className:d().content,children:[_.map(e=>(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)("h2",{className:d().title,children:e.sectionTitle}),(0,a.jsx)("div",{className:d().list,children:e.body.length?e.body.map((e,t)=>(0,a.jsxs)("div",{className:d().field,children:[(0,a.jsxs)("div",{className:d().titleWrapper,children:[(0,a.jsx)("h3",{className:d().fieldTitle,children:null==e?void 0:e.label}),(null==e?void 0:e.description)&&(0,a.jsx)(c.J,{triggerClassName:d().icon,content:e.description})]}),(0,a.jsx)("div",{className:d().fieldContent,children:null==e?void 0:e.value})]},t)):Array.from({length:6},(e,t)=>(0,a.jsx)(i.O,{className:d().skeletonContent},t))})]},e.sectionTitle)),(0,a.jsx)(s.j,{className:d().actualDate,offerType:v,pageUrl:f,offerDate:h})]}),b=(0,a.jsxs)("div",{className:d().footer,children:[(0,a.jsx)(l.zx,{variant:"secondary",onClick:n.onClick,children:n.title}),(0,a.jsx)(l.zx,{rel:"nofollow",as:"a",href:u.url,onClick:u.onClick,children:u.title})]});return(0,a.jsx)(r.h,{children:(0,a.jsx)(l.u_,{open:t,onClose:m,footer:{children:b},header:{title:null!=p?p:""},className:d().mobilePopup,size:"l",children:(0,a.jsx)("div",{className:d().container,children:g})})})});m.displayName="OfferInfoModal"},84859:function(e,t,n){"use strict";n.d(t,{D3:function(){return l},em:function(){return a}});let a={pp:"h",ps:"foam",p2:"hojk"},l="К сожалению, мы не нашли кредитов с такими параметрами"},64101:function(e,t,n){"use strict";n.d(t,{t:function(){return d}});var a=n(85893),l=n(34588),o=n(25675),r=n.n(o),i=n(47860),s=n(84859),c=n(19762),u=n.n(c);let d=e=>{let{onChangeParams:t}=e;return(0,a.jsxs)("div",{className:u().notFoundWrapper,children:[(0,a.jsx)(r(),{className:u().infoIcon,src:i.Z,alt:"?"}),(0,a.jsx)("p",{className:u().notFoundText,children:s.D3}),void 0!==t&&(0,a.jsx)(l.zx,{variant:"secondary",className:u().changeParamsButton,onClick:t,children:"Изменить параметры"})]})}},65618:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});let a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,t=null;return n=>{t&&clearInterval(t),t=setTimeout(n,e)}}},15729:function(e,t,n){"use strict";n.d(t,{z:function(){return 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}}}},37220:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});let a=(e,t)=>(t>0&&!Number.isInteger(e)&&!Number.isNaN(e)&&String(e).split(".")[1].length>t&&(e=+e.toFixed(t)),e)},23937:function(e,t,n){"use strict";n.d(t,{P:function(){return l}});var a=n(67294);function l(e){let[t,n]=(0,a.useState)(),l=(0,a.useMemo)(()=>{var n;return null!==(n=e.find(e=>e.id===t))&&void 0!==n?n:null},[t,e]),o=(0,a.useCallback)(()=>n(void 0),[]);return{data:l,visible:null!==t,show:n,hide:o}}},86992:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var a=n(85893),l=n(34588),o=n(86010),r=n(65989),i=n.n(r);let s=e=>(0,a.jsx)(l.Rn,{unit:"₽",decimals:"never",size:"m",withoutControls:!0,...e,className:(0,o.Z)(e.className,i().input)})},30292:function(e,t,n){"use strict";n.d(t,{G:function(){return o},b:function(){return l}});var a=n(67294);let l=(e,t,n)=>{(0,a.useEffect)(()=>{let t=setTimeout(()=>{e()},n);return()=>{clearTimeout(t)}},t)},o=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,[l,o]=(0,a.useState)(n),[r,i]=(0,a.useState)(!1),[s,c]=(0,a.useState)(null);return(0,a.useEffect)(()=>{i(!0),e().then(o).catch(c).then(()=>{i(!1)})},t),[l,r,s]}},97318:function(e,t,n){"use strict";n.d(t,{e:function(){return l}});var a=n(67294);function l(){let[e,t]=(0,a.useState)(!1);return{visible:e,show:(0,a.useCallback)(()=>t(!0),[]),hide:(0,a.useCallback)(()=>t(!1),[])}}},63716:function(e,t,n){"use strict";n.d(t,{p:function(){return l}});let a=["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],l=e=>{let t=new Date(e),n=t.getDate(),l=a[t.getMonth()],o=t.getFullYear(),r=new Date().getFullYear()===o;return"".concat(n," ").concat(l," ").concat(r?"":o)}},86986:function(e,t,n){"use strict";n.d(t,{ZN:function(){return a},uf:function(){return l}});let a=(e,t)=>(null==e?void 0:e.includes(t))?e.filter(e=>e!==t):(e||[]).concat([t]),l=e=>o(e.toString().split("").reverse(),3).reverse().map(e=>e.reverse().join("")).join(" "),o=(e,t)=>{let n=[];for(let a=0;a<e.length;++a){let l=Math.floor(a/t);n[l]||(n[l]=[]),n[l].push(e[a])}return n}},28052:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});var a=n(85893),l=n(45179),o=n.n(l);function r(e){let{comment:t,text:n}=e;return n?t?(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}),(0,a.jsx)("div",{className:o().commentText,dangerouslySetInnerHTML:{__html:t}})]}):(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}):(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})}},49215:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var a=n(85893),l=n(79644);function o(e){let{label:t,options:n,values:o,className:r,search:i,onChange:s}=e,c=null==o?void 0:o.reduce((e,t)=>{let a=n.find(e=>String(e.value)===String(t));return a&&e.push(a),e},[]);return(0,a.jsx)(l.HU,{className:r,label:t,options:n,value:null!=c?c:null,search:i,onChange:e=>{s(e?e.map(e=>e.value):void 0)},multiple:!0})}},31531:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var a=n(85893),l=n(34588);function o(e){let{value:t,...n}=e,o=n.options.find(e=>e.value===t);return(0,a.jsx)(l.Ph,{...n,value:o,onChange:e=>{let t=null==e?void 0:e.value;n.onChange(t)}})}},68910:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return ab},default:function(){return ay}});var a,l,o=n(85893),r=n(53980),i=n(67294);n(93188);var s=n(98670),c=n(77019),u=n(66535),d=n(34588),m=n(25675),p=n.n(m),_=n(41664),v=n.n(_),h=n(44895),f=n(73172),g=n(77868),b=n(84444),y=n(54663),x=n(72335),j=n(26576),k=n(73897);let N=[{id:1,label:"Условия",name:j.i9.conditions},{id:2,label:"Требования",name:j.i9.requirements},{id:3,label:"Требуемые документы",name:j.i9.requirementsDocs},{id:4,label:"Выдача и погашение",name:j.i9.redemption}],C=k.u.IPOTEKA,A=e=>"https://vk.com/share.php?url=".concat(encodeURIComponent(e)),w=e=>"https://t.me/share/url?url=".concat(encodeURIComponent(e)),T=e=>"https://connect.ok.ru/offer?url=".concat(encodeURIComponent(e));var P=n(44727);let M=e=>{let{data:t}=e,n=(0,i.useMemo)(()=>(0,j.sg)(t),[t]),a=(0,i.useMemo)(()=>N.filter(e=>n[e.name].some(e=>(0,P.B)(e.value))),[n]);return{tabsContent:n,tabsList:a}},S=(0,i.memo)(e=>{var t,n;let{data:a,bank:l,offerType:r,pageUrl:i}=e,{tabsContent:s,tabsList:c}=M({data:a});return(0,o.jsx)(x.z,{scrollBlockId:y.q6,pageUrl:i,seoText:(null==a?void 0:a.short_description)&&(null==a?void 0:a.short_description.length)>5?null==a?void 0:a.short_description:void 0,title:"Об ипотеке",offerType:r,offerUpdateData:null==a?void 0:a.m_updated_at,bank:{logoMobile:null==l?void 0:l.logo_mob,description:null==l?void 0:l.short_description,url:"/banki/".concat(null==l?void 0:l.url),name:null==l?void 0:l.name,creditRating:null==l?void 0:l.credit_rating,netAssetsPlace:null==l?void 0:null===(t=l.ratings)||void 0===t?void 0:t.net_assets_place,netProfitRating:null==l?void 0:l.net_profit_rating},tabsList:c,tabsContent:s,aboutCompanyLabel:"О банке",site:null!==(n=null==l?void 0:l.site.title)&&void 0!==n?n:void 0})});S.displayName="MortgageAbout";var L=n(17722),D=n(77910),E=n(64062),B=n(72564),O=n(57063),I=n.n(O);let R=e=>{let{url:t,isMobile:n,className:a}=e,l=(0,i.useMemo)(()=>[{id:3,image:D.Z,text:"Перейдите на сайт банка,<br /> чтобы оформить заявку",buttonText:"Оформить на сайте банка",link:t},{id:4,image:L.Z,text:B.n.LEAD?"Эту ипотеку нельзя открыть через Финуслуги":"Эту ипотеку сейчас нельзя открыть онлайн на Финуслугах",buttonText:"Выбрать другую ипотеку",link:"/".concat(k.u.IPOTEKA)}],[t]);return(0,o.jsx)("div",{className:I().container,children:(0,o.jsx)(E.B,{className:a,title:"Где оформить ипотеку",isDependsOnWidth:!1,pageUrl:k.u.IPOTEKA,id:y.VT,isMobile:n,slides:l})})};var F=n(86010),W=n(24443),z=n(82264),U=n(20760),Z=n(48766),V=n(26024),q=n(90999),H=n(72798);let K=(e,t)=>{let n=.13*e;return e<=2e6?n:(n=n>26e4?26e4:n)+(.13*t>39e4?39e4:.13*t)};var Y=n(27929),G={src:"/kredity/assets/_next/static/media/chain.2d44409a.svg",height:24,width:24,blurWidth:0,blurHeight:0},J=n(16021),Q=n(60207),X=n(74552),$=n(89221),ee=n(56790);let et=(e,t)=>(0,i.useLayoutEffect)(()=>{let n=e.current,a=t.current;if(null===n||null===a)throw Error("Dead code branch");let l=e=>{e.target!==n?n.scrollTop=a.scrollTop:a.scrollTop=n.scrollTop};return n.addEventListener("scroll",l),a.addEventListener("scroll",l),()=>{n.removeEventListener("scroll",l),a.removeEventListener("scroll",l)}},[e,t]);var en=n(17950);let ea=(e,t)=>new Date(e,t+1,0).getDate();var el=n(37220);let eo=e=>{let t=new Date().getFullYear(),n=new Date().getMonth()+e,a=new Date().getDate(),l=n<=12?n:n%12||12,o=t+Math.floor(n<=12?0:n%12?n/12:n/12-1),r=ea(o,l);return{date:"".concat(a>r?r:a,".").concat(l<12?"0":"").concat(l,".").concat(o),year:o}},er=e=>{let{rate:t,periodWithMoth:n,defaultBalanceDebt:a,balanceDebtPrevMonth:l,month:o}=e,r=t/12/100,i=(0,el.z)((1+r)**n,5),s=(0,el.z)(a*r*i/(i-1),1),c=(0,el.z)(l*r,1),u=(0,el.z)(s-c,1),d=(0,el.z)(l-u,1);return{...eo(o),paymentPerMoth:s,interestRepayment:c,loanRepayment:u,balanceDebt:d}},ei=e=>{let{rate:t,periodWithMoth:n,balanceDebtPrevMonth:a,month:l}=e,o=(0,el.z)(t/12/100*a,1),r=(0,el.z)(a/n,1),i=(0,el.z)(o+r,1),s=(0,el.z)(a-r,1);return{...eo(l),paymentPerMoth:i,interestRepayment:o,loanRepayment:r,balanceDebt:s}},es=(e,t)=>{let n=[];for(let l=1,o=0;l<e.periodWithMoth;l++,o++){var a;n.push(t({...e,balanceDebtPrevMonth:(null===(a=n[o-1])||void 0===a?void 0:a.balanceDebt)||e.defaultBalanceDebt,month:l}))}return n},ec=e=>es(e,er),eu=e=>es(e,ei),ed=(e,t,n)=>{let a=n*t;return{totalOverpayment:a-e,totalCost:a}},em=(e,t)=>{let n=[];return e&&n.push({label:"Аннуитетный",value:en.T.annuity}),t&&n.push({label:"Дифференцированный",value:en.T.differentiated}),n};var ep=n(39918),e_=n(40741),ev=n(54228),eh=n(36921),ef=n.n(eh);let eg=e=>{let{elementList:t,isExpanded:n,...a}=e;return(0,o.jsxs)("div",{className:ef().container,children:[(0,o.jsx)("div",{className:(0,F.Z)(ef().expandableContainer,n&&ef().expanded),children:t.map(e=>e)}),(0,o.jsx)(d.zx,{...a})]})},eb=e=>e.reduce((e,t)=>{let n=e.findIndex(e=>e.year===t.year);return -1===n?e.push({year:t.year,schedule:[t]}):e[n].schedule.push(t),e},[]),ey=[{label:"Дата",key:"date"},{label:"Платеж",key:"paymentPerMoth"},{label:"Проценты",key:"interestRepayment"},{label:"Оплата долга",key:"loanRepayment"},{label:"Остаток долга",key:"balanceDebt"}],ex=["vk","tg","ok"];var ej=n(90593),ek=n.n(ej);let eN=e=>{let{children:t,className:n}=e;return(0,o.jsx)("div",{className:(0,F.Z)(ek().field,n),children:t})},eC=(0,i.forwardRef)((e,t)=>{let{data:n,isMobile:a}=e,l=n.reduce((e,t)=>(t.schedule.forEach(t=>{e.balanceDebt+=t.balanceDebt,e.interestRepayment+=t.interestRepayment,e.loanRepayment+=t.loanRepayment,e.paymentPerMoth+=t.paymentPerMoth}),e),{balanceDebt:0,interestRepayment:0,loanRepayment:0,paymentPerMoth:0}),r=()=>(0,o.jsxs)("div",{className:(0,F.Z)(ek().columnTotalParams,ek().rowTabel),children:[(0,o.jsx)(eN,{className:ek().fieldLargeText,children:a?"Итоговая выплата":"Итого"}),ey.map(e=>"date"!==e.key&&(0,o.jsxs)(eN,{children:[a&&(0,o.jsx)("span",{children:e.label}),(0,o.jsxs)("span",{children:[" ",(0,el.z)(l[e.key],1).toLocaleString("ru-RU",{useGrouping:!0}).replace(".",","),a&&" ₽"]})]},e.key))]}),i=e=>{let{it:t,index:n}=e;return(0,o.jsxs)(o.Fragment,{children:[!a&&(0!=n?(0,o.jsx)("h4",{className:ek().titleYearSchedule,children:t.year}):(0,o.jsx)("div",{})),t.schedule.map(e=>(0,o.jsx)("div",{className:(0,F.Z)(ek().rowTabel,ek().bodyField),children:ey.map((t,n)=>(0,o.jsxs)(eN,{children:[!!a&&"date"!==t.key&&(0,o.jsx)("span",{children:t.label+(a?"":", ₽")}),(0,o.jsx)("span",{className:ek().value,children:0===n?e[t.key]:e[t.key].toLocaleString("ru-RU",{useGrouping:!0}).replace(".",",")})]},t.key))},e.date))]})};return(0,o.jsxs)("div",{className:ek().tableSchedule,children:[!a&&(0,o.jsx)("div",{className:(0,F.Z)(ek().columnTitles,ek().rowTabel),children:ey.map(e=>(0,o.jsx)(eN,{children:e.label+("date"===e.key||a?"":", ₽")},e.key))}),(0,o.jsxs)("div",{ref:t,className:ek().contentSchedule,children:[n.map((e,t)=>(0,o.jsx)("div",{className:ek().yearSchedule,children:a?(0,o.jsx)(d.Qd,{id:"years",title:e.year.toString(),className:ek().yearAccordion,children:(0,o.jsx)(i,{it:e,index:t})}):(0,o.jsx)(i,{it:e,index:t})},e.year)),a&&(0,o.jsx)(r,{})]}),!a&&(0,o.jsx)(r,{})]})});eC.displayName="ScheduleTable";let eA=(0,i.forwardRef)((e,t)=>{let{isMobile:n,paymentScheduleParametrs:a,payments:l}=e,r=(0,i.useMemo)(()=>n?l:l.length>1?[...l,{label:"Оба платежа",value:"all"}]:l,[l,n]),[s,c]=(0,i.useState)(r[0].value),u=eb(ec(a)),m=eb(eu(a)),p=(0,i.useRef)(null),_=(0,i.useRef)(null);return(et(p,_),(0,i.useImperativeHandle)(t,()=>({onScrollToBottomHandle(){let e;null==(e=en.T.annuity&&p.current?p.current:_.current)||e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}}),[]),u&&m)?(0,o.jsxs)("div",{className:ek().schedulePaymentsWrapper,children:[l.length>1&&(0,o.jsx)("div",{className:ek().tabsContentWrapper,children:r.map(e=>(0,o.jsx)(d.zx,{variant:"secondary",size:n?"xs":"s",label:e.label,className:(0,F.Z)(ek().button,{[ek().active]:s===e.value}),onClick:()=>c(e.value)},e.label))}),(0,o.jsxs)("div",{className:ek().tabelsWrapper,children:[[en.T.annuity,"all"].includes(s)&&(0,o.jsx)(eC,{ref:p,data:u,isMobile:n}),[en.T.differentiated,"all"].includes(s)&&(0,o.jsx)(eC,{ref:_,data:m,isMobile:n})]})]}):null});eA.displayName="PaymentScheduleModalContent";let ew=e=>{let{isMobile:t,url:n}=e,[a,l]=(0,i.useState)(!1),r=e=>{(0,ep.D)({eventAction:ep.i.button,eventActionText:e,eventCategory:C})},s=async e=>{try{r(e),await navigator.clipboard.writeText(n),l(!0),setTimeout(()=>l(!1),2e3)}catch(e){console.error("Failed to copy uri: ",e)}};return(0,o.jsxs)(d.zx,{variant:"secondary",size:t?"s":"m",className:(0,F.Z)(ek().copyButton,t&&ek().mobileActionButton),onClick:()=>s((0,e_.b)("Скопировать ссылку")),children:[(0,o.jsx)(p(),{src:G,alt:"Чат",height:"24"}),!t&&(a?"Ссылка скопирована":"Скопировать ссылку")]})},eT=e=>{var t;let n=(0,ev.S0)();(0,i.useEffect)(()=>{var t,n;e.bankName&&(null===(t=e.data)||void 0===t?void 0:t.id)&&e.isOpen&&(0,ep.D)({eventAction:ep.i.popup,eventActionText:null==e?void 0:e.bankName,eventCategory:e.mainPageUrl,eventLabel:null===(n=e.data)||void 0===n?void 0:n.id})},[e.isOpen,e.mainPageUrl,e.bankName,null===(t=e.data)||void 0===t?void 0:t.id]);let a=t=>{var a;let l=e.url;if(n){navigator.share({url:l});return}switch(t){case"vk":l=A(e.url);break;case"tg":l=w(e.url);break;case"ok":l=T(e.url)}null===(a=window.open(l,"_blank"))||void 0===a||a.focus(),(0,ep.D)({eventCategory:k.u.IPOTEKA,eventAction:ep.i.button,eventActionText:"share",url:l})},l=e=>{let{socialNetwork:t}=e;switch(t){case"vk":return(0,o.jsx)($.Z,{});case"tg":return(0,o.jsx)(X.Z,{});case"ok":return(0,o.jsx)(J.Z,{});default:return null}},r=e=>{let{socialNetwork:t,className:n}=e;return(0,o.jsx)("button",{onClick:()=>a(t),className:n,children:(0,o.jsx)(l,{socialNetwork:t})})},s=(e,t)=>{e(),setTimeout(t,2e3)},c=(0,o.jsxs)("div",{className:ek().footer,children:[(0,o.jsxs)("div",{className:ek().socialNetworkSection,children:[(0,o.jsx)("p",{className:ek().socialNetworkTitle,children:"Поделиться"}),(0,o.jsx)("div",{className:ek().socialNetworkButtonsWrapper,children:ex.map(e=>(0,o.jsx)(r,{socialNetwork:e,className:(0,F.Z)(ek().action,ek().socialButton)},e))})]}),(0,o.jsx)(ew,{isMobile:n,url:e.url})]}),u=(0,i.useRef)(null),[m,_]=(0,i.useState)(!1),v=(0,o.jsxs)("div",{className:ek().mobileFooter,children:[(0,o.jsx)(d.zx,{className:ek().paymentSummaryButton,size:"normal",onClick:()=>{var e;return null===(e=u.current)||void 0===e?void 0:e.onScrollToBottomHandle()},children:"Итоговая выплата"}),(0,o.jsxs)("div",{children:[(0,o.jsx)(d.u,{text:"Ссылка скопирована",children:(0,o.jsx)(o.Fragment,{children:t=>{let{show:a,hide:l}=t;return(0,o.jsx)("button",{onClick:()=>s(a,l),children:(0,o.jsx)(ew,{isMobile:n,url:e.url})})}})}),(0,o.jsx)(eg,{className:ek().mobileActionButton,variant:"secondary",isExpanded:m,onClick:()=>{_(e=>!e)},elementList:ex.map(e=>(0,o.jsx)(r,{socialNetwork:e,className:ek().expandableSocialMediaButton},e)),children:(0,o.jsx)(p(),{src:Q.Z,alt:"Чат",height:"24"})})]})]});return(0,o.jsx)(ee.h,{children:(0,o.jsx)(d.u_,{open:e.isOpen,onClose:e.onClose,footer:{children:n?v:c},header:{title:"График платежей"},children:(0,o.jsx)("div",{className:(0,F.Z)(ek().container,e.payments.length<=1&&ek().withoutTabsContainer),children:(0,o.jsx)(eA,{ref:u,paymentScheduleParametrs:e.paymentScheduleParametrs,payments:e.payments,isMobile:n})})})})};var eP=n(11163),eM=n(82080),eS=n(1998);let eL=e=>{var t;let n=Number(null!==(t=e.period.from)&&void 0!==t?t:1),a=Number(e.period.to),l=em(!!e.repayment_procedure.annuity,!!e.repayment_procedure.differentiated),[o,r]=(0,i.useState)(a),[s,c]=(0,i.useState)({}),[u,d]=(0,i.useState)([l[0]]),{loanRateFrom:m,loanRateTo:p}=(0,i.useMemo)(()=>{let t=(s?Object.values(s):[]).reduce((e,t)=>e+t,0);return{loanRateFrom:Number(e.interest_rate.from)-t,loanRateTo:Number(e.interest_rate.to)-t}},[s,e.interest_rate.from,e.interest_rate.to]),{asPath:_}=(0,eP.useRouter)(),v=(0,i.useRef)(),h=+e.amount.from+(0,el.z)(+e.amount.from*+e.first_payment.from/(100-+e.first_payment.from-1),1),f=Math.min(1e8,+e.amount.to+(0,el.z)(+e.amount.to*+e.first_payment.from/(100-+e.first_payment.from),1)),g=(0,eS.G)({defaultValue:String(f),format:"currency",type:"float",maxLength:20,unit:"₽"}),b=(0,i.useMemo)(()=>(0,el.z)(h/100*(+e.first_payment.from-1),1),[e.first_payment.from,h]),y=(0,i.useMemo)(()=>(0,el.z)(f/100*+e.first_payment.from,1),[e.first_payment.from,f]),x=(0,eS.G)({defaultValue:String(y),format:"currency",type:"float",maxLength:20,unit:"₽"}),j=(0,i.useMemo)(()=>+g.value>+e.amount.to?(0,el.z)(+g.value-+e.amount.to,1):f===+g.value?y:h===+g.value?b:(0,el.z)(+g.value/100*+e.first_payment.from,1),[g.value,e.amount.to,e.first_payment.from,f,h,y,b]),k=(0,i.useMemo)(()=>{let t=0;return t=h===+g.value?h/100*+e.first_payment.from:+g.value-+e.amount.from,(0,el.z)(t,1)},[e.amount.from,e.first_payment.from,h,g.value]),N=(0,eS.G)({defaultValue:"0",format:"currency",type:"float",maxLength:7,unit:"₽"}),C=(0,eS.G)({defaultValue:String(x.value),format:"currency",type:"float",maxLength:9,unit:"₽"}),A=(0,i.useMemo)(()=>(0,el.z)(Number(x.value)/Number(g.value)*100,1),[x.value,g.value]),w=(0,i.useMemo)(()=>(0,el.z)(h===+g.value?+g.value-k:+g.value-+x.value,1),[h,x,k,g.value]),T=(0,i.useMemo)(()=>"".concat(window.location.href.split("?")[0],"?propertyPrice=").concat((0,el.z)(+g.value,1),"&firstPayment=").concat((0,el.z)(+x.value,1)).concat(+N.value>0?"&matCapital=".concat((0,el.z)(+N.value,1)):"").concat(+C.value>0?"&personalFunds=".concat((0,el.z)(+C.value,1)):"","&period=").concat(o).concat(l.length>1?"&paymentType=".concat(u[0].value):"").concat(Object.keys(s).filter(e=>!!s[e]).length?"&additionalParams=".concat(encodeURIComponent(Object.entries(s).filter(e=>!!e.at(-1)).map(e=>e[0]).join(","))):""),[g.value,x.value,N.value,C.value,o,l.length,u,s]),P=(0,i.useMemo)(()=>{var t,n;let a=(null===(n=e.rate_corrections_first_payment)||void 0===n?void 0:null===(t=n.find(e=>{let t=+x.value/(+g.value/100);return e.rate_from<=t&&t<=e.rate_to}))||void 0===t?void 0:t.rate)||0;return+e.interest_rate.from-Object.values(s).reduce((e,t)=>e+=t,0)-a},[e.rate_corrections_first_payment,e.interest_rate.from,s,g.value,x.value]),{paymentPerMoth:M}=(0,i.useMemo)(()=>{var e;return((null===(e=u[0])||void 0===e?void 0:e.value)===en.T.annuity?er:ei)({rate:P,periodWithMoth:o,defaultBalanceDebt:w,balanceDebtPrevMonth:w,month:1})},[P,w,u,o]),{totalOverpayment:S,totalCost:L}=(0,i.useMemo)(()=>ed(w,o,M),[M,w,o]),D=(0,i.useCallback)(e=>{let{key:t,value:n}=e;c(e=>({...e,[t]:n}))},[]),E=(0,i.useCallback)(e=>{r(e),x.handleChange(M)},[x,M]),B=(0,i.useCallback)(t=>{g.handleChange(t,t=>{let n=0;n=+t>+e.amount.to?+t-+e.amount.to:+t>h?+t/100*+e.first_payment.from:b,x.handleChange(n,e=>{0===Number(N.value)&&C.handleChange(Number(e)-Number(N.value))})})},[g,e.amount.to,e.first_payment.from,x,h,b,N.value,C]),O=(0,i.useCallback)(e=>{x.handleChange(e,e=>{C.handleChange(Number(e)-Number(N.value))})},[x,C,N.value]),I=(0,i.useCallback)(t=>{let n=Number(C.value)+Number(t);n>1e8-+e.amount.from||N.handleChange(t,()=>{if(n>k){let t=n+Number(e.amount.from);g.handleChange(t>1e8?1e8:t)}Number(x.value)<j&&g.handleChange((0,el.z)(Number(C.value)/+e.first_payment.from*100,1)),x.handleChange(n)})},[C.value,e.amount.from,e.first_payment.from,N,k,x,j,g]),R=(0,i.useCallback)(t=>{v.current&&clearInterval(v.current);let n=Number(N.value)+Number(t);n>1e8-+e.amount.from||C.handleChange(t,t=>{if(Number(t)<b){v.current=setTimeout(()=>C.handleChange(x.value),1e3);return}if(n>k){let t=n+Number(e.amount.from);g.handleChange(t>1e8?1e8:t)}Number(t)<j&&g.handleChange((0,el.z)((Number(t)<b?b:Number(t)/+e.first_payment.from)*100,1)),x.handleChange(n)})},[N.value,e.amount.from,e.first_payment.from,C,k,j,x,g,b]);return(0,i.useEffect)(()=>{let t=(0,eM.p)(_,"?"),o=Array.isArray(t.property_price)?t.property_price[0]:t.property_price,i=Array.isArray(t.first_payment)?t.first_payment[0]:t.first_payment,s=Number(Array.isArray(t.period)?t.period[0]:t.period),u=Number(t.matCapital);if(u&&N.handleChange(u),t.additionalParams&&decodeURI(t.additionalParams.toString()).split("%2C").forEach(t=>{var n;let a=null===(n=e.rate_corrections)||void 0===n?void 0:n.find(e=>(0,e_.b)(e.title)===t);a&&null!==a.rate&&c(e=>({...e,[t]:a.rate}))}),g.handleChange(o),x.handleChange(i),t.firstPayment&&x.handleChange(Math.min(j,Math.min(Number(t.firstPayment.toString()),k))),t.personalFunds&&C.handleChange(t.personalFunds.toString()),t.propertyPrice){let n=Math.min(Number(t.propertyPrice.toString()),1e8);n-Number(x.value)>Number(e.amount.to)&&x.handleChange(n-Number(e.amount.to)),g.handleChange(n)}if(t.paymentType){let e=l.find(e=>e.value===t.paymentType);e&&d([e])}return!Number.isNaN(s)&&s>=n&&s<=a&&r(s),()=>clearTimeout(v.current)},[]),(0,i.useMemo)(()=>({totalOverpayment:S,totalCost:L,currectMonthlyPayment:M,firstPaymentPercent:A,calculatorQueryParamsInLink:T,mortgageCredit:w,personalFunds:C,matCapital:N,currectInterestRate:P,firstPaymentMin:j,firstPaymentMax:k,propertyPriceMin:h,propertyPriceMax:1e8,propertyPrice:g,firstPayment:x,period:o,setPeriod:r,periodMin:n,periodMax:a,paymentTypeOptions:l,paymentType:u,setPaymentType:d,additionalParams:s,handleChangePropertyPrice:B,handleChangePeriod:E,handleChangeAdditionalParams:D,handleChangePersonalFunds:R,handleChangeMatCapital:I,handleChangeFirstPayment:O,loanRateFrom:m,loanRateTo:p}),[S,L,M,A,T,w,C,N,P,j,k,h,1e8,g,x,o,n,a,l,u,s,B,E,D,R,I,O,m,p])};var eD=n(41262),eE=n(66566),eB=n(94466),eO=n(93478),eI=n(960),eR=n.n(eI);let eF="Оформить на сайте банка",eW="Где оформить ипотеку",ez=e=>{var t,n,a,l;let{bank:r,data:s,isMobile:m}=e,[p,_]=(0,i.useState)(!1),v=(0,i.useRef)(null),h=eL(s),f=(0,i.useCallback)(()=>{_(e=>!e)},[]),g=(0,i.useMemo)(()=>({values:[h.period],max:h.periodMax,min:h.periodMin===h.periodMax?h.periodMin-1:h.periodMin,onChange:e=>{h.periodMin!==h.periodMax&&h.setPeriod(e[0])},step:1,legend:[h.periodMin,h.periodMax],formatValue:e=>(0,o.jsx)("span",{className:eR().legend,children:(0,eD.S_)(e)})}),[h]),b=(0,i.useMemo)(()=>({values:[+h.propertyPrice.value],max:h.propertyPriceMax,min:h.propertyPriceMin,onChange:e=>{h.propertyPriceMin!==h.propertyPriceMax&&h.handleChangePropertyPrice(e[0])},step:1e5,legend:[h.propertyPriceMin,h.propertyPriceMax],formatValue:e=>(0,o.jsx)("span",{className:eR().legend,children:e>1e6?"".concat((0,eB.D$)(e)," ₽"):"".concat((0,eB.uf)(e)," ₽")})}),[h]),x=(0,i.useMemo)(()=>({values:[+h.firstPayment.value<h.firstPaymentMin?h.firstPaymentMin:+h.firstPayment.value],max:h.firstPaymentMax,min:h.firstPaymentMin,onChange:e=>{h.firstPaymentMin!==h.firstPaymentMax&&h.handleChangeFirstPayment(e[0])},step:1e3,legend:[h.firstPaymentMin,h.firstPaymentMax],formatValue:e=>(0,o.jsx)("span",{className:eR().legend,children:e>1e6?(0,eB.D$)(e):"".concat((0,eB.uf)(e)," ₽")})}),[h]),j=(0,i.useMemo)(()=>h.paymentTypeOptions.filter(e=>{var t;return e.value===(null===(t=h.paymentType[0])||void 0===t?void 0:t.value)}),[h.paymentTypeOptions,h.paymentType]),N=(0,i.useMemo)(()=>{var e;let t=(null===(e=s.application_term.custom_text)||void 0===e?void 0:e.from)!==void 0?(0,Z.B)(s.application_term.custom_text.from):0,n=new Date;n.setDate(n.getDate()+t);let a=n.getDate(),l=n.getMonth()+1,o=n.getFullYear();return"Деньги у вас до ".concat(a," ").concat((0,eE.$)("".concat(l,"-").concat(a,"-").concat(o)))},[null===(t=s.application_term.custom_text)||void 0===t?void 0:t.from]),C=(0,i.useCallback)(()=>{v.current&&v.current.focus()},[]),A=(0,i.useCallback)(()=>{h.propertyPrice.events.onFocus(),_(!0)},[h.propertyPrice.events]),w=(0,i.useCallback)(e=>{e&&((0,ep.D)({eventCategory:k.u.IPOTEKA,eventAction:ep.i.filterCatalog,eventLabel:"Платеж",eventValue:null==e?void 0:e.label}),h.setPaymentType([e]))},[h]),T=(0,i.useMemo)(()=>[{id:1,label:(0,eD.S_)(h.period)},{id:2,label:"".concat((0,eB.uf)(+h.propertyPrice.value)," ₽")}],[h.propertyPrice.value,h.period]),P=(0,i.useMemo)(()=>{let e=[],t=s.full_price;t&&e.push({label:"ПСК",value:(0,c.W)(t),description:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n          Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."},{label:"Процентная ставка",value:(0,eB.sz)(h.loanRateFrom,h.loanRateTo)});let n=Number(h.firstPayment.value);e.push({label:"Первый взнос",value:"".concat((0,eB.D$)((0,el.z)(n,1)),"&#160;₽")},{label:"Платеж в месяц",value:"".concat((0,eB.D$)(h.currectMonthlyPayment),"&#160;₽")},{label:"Налоговый вычет",value:"".concat((0,eB.D$)((0,el.z)(K(+h.propertyPrice.value,h.totalOverpayment),1))," ₽")});let a=h.paymentType;if(a){var l;e.push({label:"Тип погашения",value:(null===(l=a[0])||void 0===l?void 0:l.value)===en.T.annuity?"Аннуитетный":"Дифференцированный"})}return e.push({label:"Переплата",value:"".concat((0,eB.D$)(h.totalOverpayment),"&#160;₽"),description:"Это сумма процентов, которые заемщик платит за пользование кредитом. Она может уменьшиться, если гасить кредит досрочно"},{label:"Итоговая выплата",value:"".concat((0,eB.D$)(h.totalCost),"&#160;₽")}),e},[h.currectMonthlyPayment,h.firstPayment.value,h.loanRateFrom,h.loanRateTo,h.paymentType,h.propertyPrice.value,h.totalCost,h.totalOverpayment,s.full_price]),M=(0,i.useMemo)(()=>{var e;return(null==s?void 0:null===(e=s.rate_corrections)||void 0===e?void 0:e.filter(e=>e.rate).map(e=>({name:e.title,label:e.content,labelPosition:"left",checked:!!h.additionalParams[(0,e_.b)(e.title)],onChange:(t,n)=>h.handleChangeAdditionalParams({key:(0,e_.b)(e.title),value:n.target.checked&&e.rate||0})})))||[]},[h,null==s?void 0:s.rate_corrections]),[S,L]=(0,i.useState)(!1),D=(0,i.useCallback)(()=>{L(e=>!e)},[]),[E,B]=(0,i.useState)(!1);(0,i.useEffect)(()=>{B(!!+h.matCapital.value)},[h.matCapital.value]);let O=(0,i.useCallback)(()=>{h.matCapital.events.onFocus(),B(!0)},[h.matCapital.events]),I=(0,i.useMemo)(()=>[S,D],[S,D]),R=+s.amount.to>+s.amount.from;return(0,o.jsxs)(Y.U.Provider,{value:I,children:[(0,o.jsxs)(u.W2,{className:(0,F.Z)(eR().container,eR().containerFull,{[eR().containerWithoutCalculator]:!R}),children:[(0,o.jsx)(q.F,{url:s.url,bank:{logoMob:null==r?void 0:r.logo_mob,url:"/banki/".concat(null==r?void 0:r.url),name:null!==(l=null==r?void 0:r.name)&&void 0!==l?l:s.bank_name},pageUrl:k.u.IPOTEKA,title:s.title,isSmall:a,isMobile:m,tagTheme:"green",className:eR().promo}),R&&(0,o.jsxs)("div",{className:eR().left,children:[(0,o.jsx)(W.y,{isMobile:m,title:"Настройки ипотеки",pageUrl:k.u.IPOTEKA,infoLink:{isShow:!m,text:"Подробнее об ипотеке",idScrollBlock:y.q6,offPadding:!0,widthMaxContent:!0},items:[{elements:[{type:"inputRange",desription:"Впишите сюда стоимость жилья. Если деньги нужны вам не только на покупку недвижимости, но и на другие цели, выберите другой тип кредита",props:{label:"Стоимость недвижимости",innerRef:v,rangeProps:b,value:h.propertyPrice.isFocused?h.propertyPrice.value:h.propertyPrice.formattedValue,onFocus:A,onBlur:h.propertyPrice.events.onBlur,onChange:e=>h.propertyPrice.events.onChange(e.target.value)}}]},{elements:[{type:"inputRange",props:{label:"Срок погашения",rangeProps:g,value:(0,eD.S_)(h.period)}}]},{elements:[{type:"inputRange",props:{label:"Первый взнос",addonAfter:(0,o.jsxs)("span",{className:eR().firstPaymentAddonAfter,children:[h.firstPaymentPercent,"%"]}),rangeProps:x,value:h.firstPayment.isFocused?h.firstPayment.value:h.firstPayment.formattedValue,onBlur:h.firstPayment.events.onBlur,onFocus:h.firstPayment.events.onFocus,onChange:e=>h.firstPayment.events.onChange(e.target.value)}}]},s.maternal_capital.has>0?{isCollapsedElements:E,titleElements:"Использовать материнский капитал",onToggle:e=>{B(e)},elements:[{type:"input",props:{label:"Сумма сертификата",value:h.matCapital.isFocused?h.matCapital.value:h.matCapital.formattedValue,onBlur:h.matCapital.events.onBlur,onFocus:O,onChange:h.handleChangeMatCapital}},{type:"input",props:{label:"Личные средства",value:h.personalFunds.isFocused?h.personalFunds.value:h.personalFunds.formattedValue,onChange:h.handleChangePersonalFunds,onBlur:h.personalFunds.events.onBlur,onFocus:h.personalFunds.events.onFocus}}]}:null,{elements:[{type:"divider",isHidden:!E||!h.paymentType||h.paymentTypeOptions.length<=1}]},{elements:[{type:"select",isHidden:!h.paymentType||h.paymentTypeOptions.length<=1,desription:(0,o.jsx)(V.a,{className:eR().typeDescription,type:null===(n=h.paymentType[0])||void 0===n?void 0:n.value}),props:{label:"Тип погашения",options:h.paymentTypeOptions,onChange:w,value:j}}]}],chips:T,additionalItemsTitle:"Уменьшить ставку",additionalItems:M,isShowChips:m&&!!(null==T?void 0:T.length)&&!p,isExpandSettings:p,onToggleSettings:f}),(0,o.jsx)(H.S,{text:"Все для ипотеки: страхуем недвижимость, жизнь, здоровье или все сразу",hideButtons:!0,hideQr:!0,isSmall:!0,className:eR().qrDesc})]}),(0,o.jsxs)("div",{className:(0,F.Z)({[eR().right]:R}),children:[(0,o.jsx)(U.y,{captionTitle:N,pageUrl:k.u.IPOTEKA,onEdit:C,amount:h.mortgageCredit,repayment:h.totalOverpayment,disclaimer:"Предварительные условия. Не оферта",tag:s.online_application.commercial_desc,footerActions:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.zx,{as:"a",target:"_blank",className:eR().button,href:s.online_application.url,onClick:()=>{(0,ep.D)({eventCategory:k.u.IPOTEKA,eventAction:ep.i.link,eventActionText:eF})},children:eF}),(0,o.jsx)(d.zx,{as:"a",onClick:()=>{(0,ep.D)({eventCategory:k.u.IPOTEKA,eventAction:ep.i.button,eventActionText:eW}),(0,eO.l)(y.VT,{offset:m?0:-100,position:"top"})},className:eR().button,variant:"secondary",children:eW}),(0,o.jsx)(z.j,{offPadding:!1,widthMaxContent:!1,text:"График платежей",iconColor:"light",mainPageUrl:k.u.IPOTEKA,className:eR().link,onClick:D})]}),valuesList:P,showChart:!0}),(0,o.jsx)(H.S,{text:"Все для ипотеки: страхуем недвижимость, жизнь, здоровье или все сразу",hideButtons:!0,hideQr:!0,isSmall:!0,className:eR().qrMobile})]})]}),(0,o.jsx)(eT,{data:s,bankName:null==r?void 0:r.name,isOpen:S,paymentScheduleParametrs:{rate:Number(h.currectInterestRate),periodWithMoth:Number(h.period),defaultBalanceDebt:h.mortgageCredit},onClose:D,payments:h.paymentTypeOptions,logo:null==r?void 0:r.logo_mob,url:h.calculatorQueryParamsInLink,mainPageUrl:k.u.IPOTEKA})]})};var eU=n(13442),eZ=n(84135),eV=n(19438),eq=n(65737),eH=n(77259),eK=n(10317),eY=n.n(eK);let eG=(0,i.memo)(e=>{let{data:t,className:n,onDetailInfoClick:a,onClick:l}=e,r=[],s=(0,i.useRef)(null),c=(0,i.useRef)(!1),u=(0,i.useRef)(null),d={text:(0,eB.dN)({from:t.amountFrom,to:t.amountTo}),caption:"Сумма кредита"},m={text:"от ".concat((0,eB.uf)(t.payment),"%"),caption:"Первый взнос"};r.push({label:"Ипотека",variant:"green"}),r.push({label:t.typeText,variant:"primary"});let _=e=>{(0,eq.l)({event:"data-event",eventAction:e,eventCategory:k.u.IPOTEKA,eventLabel:t.id,eventValue:t.eventValue}),null==l||l(t)},v=(0,i.useCallback)(e=>{let[n]=e;1===n.intersectionRatio&&!c.current&&((0,eq.l)({event:"data-event",eventAction:"show_in_catalog",eventCategory:k.u.IPOTEKA,eventLabel:t.id}),c.current=!0,s.current&&u.current&&s.current.unobserve(u.current))},[t.id]);return(0,i.useEffect)(()=>{s.current&&u.current&&s.current.unobserve(u.current),!c.current&&u.current&&(s.current=new IntersectionObserver(v,{root:null,threshold:[1]}),s.current.observe(u.current))},[v]),(0,o.jsx)("div",{ref:u,className:n,onClick:()=>_("click_button_".concat((0,e_.b)("Подать заявку"))),children:(0,o.jsx)(eH.J,{icon:t.logo?(0,o.jsx)("div",{className:eY().logo,children:(0,o.jsx)(p(),{width:56,height:56,src:t.logo,alt:"logo"})}):(0,o.jsx)("div",{className:eY().placeholderLogo}),companyName:t.bankName,productName:t.title,productUrl:t.url,buttonUrl:t.url,tags:r,advantageAmountFrom:d,advantageAmountTo:m,onDetailInfoClick:()=>{a(t),(0,ep.D)({eventCategory:k.u.IPOTEKA,eventAction:ep.i.button,eventActionText:"open_modal"})},className:eY().plate})})});eG.displayName="MortgageListItem";var eJ=n(89504),eQ=n(32244);let eX=e=>{var t,n,a,l;let{banks:o,mortgage:r,period:i}=e,s="/".concat(k.u.IPOTEKA,"/").concat(r.url),c=o.find(e=>+r.bank_id==+e.id),u="",d="";return 2===r.online_application.type?u="Открытие в банке":(u="Заявка через сайт банка",d="non_commercial"),{id:r.id,bankName:null!==(n=null==c?void 0:c.name)&&void 0!==n?n:r.bank_name,bankId:null!==(a=null==c?void 0:c.id)&&void 0!==a?a:"",logo:null!==(l=null==c?void 0:c.logo_mob)&&void 0!==l?l:"",title:r.title,url:s,legalName:(e=>{if(e)try{let t=JSON.parse(e);if(Array.isArray(t))return t[0].name;return t.name}catch(t){return e}return""})("string"==typeof(null==c?void 0:c.legal_entities)?JSON.parse(null==c?void 0:c.legal_entities)[0].name:null==c?void 0:null===(t=c.legal_entities)||void 0===t?void 0:t[0].name),isPermanentRegistation:1==+r.registration_address.permanent,period:i||+r.period.to,rate:+r.interest_rate.from,rateTo:+r.interest_rate.to,payment:+r.first_payment.from||0,currency:"₽",detailUrl:"/".concat(k.u.IPOTEKA,"/").concat(r.url),typeText:u,eventValue:d,notLoan:1===r.loan.not_required,incomeProof:0===r.income_proof.not_required,amountFrom:Number(r.amount.from),amountTo:Number(r.amount.to)}};var e$=n(84053),e0=n(94347),e1=n(65844),e2=n.n(e1);let e4=(0,i.memo)(e=>{let{bank:t,banks:n,currentCardId:a,mortgagesList:l,mortgagesFinuslugiList:r,className:s,newContainer:c=!1}=e,{town:d}=(0,e0.T)(),[m,p]=(0,i.useState)(),_=(0,i.useCallback)(()=>{p(void 0)},[]),v=(0,i.useCallback)(e=>{(0,ep.D)({eventCategory:k.u.IPOTEKA,eventAction:ep.i.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},[]),h=(0,i.useMemo)(()=>{let e=l.length?l.filter(e=>e.id!==a):[];return(0,eQ.$)({productList:e,anotherList:e,count:eJ.NU})},[l,a]),f=(0,i.useMemo)(()=>{let e=r||[];return(0,eQ.$)({productList:e,anotherList:e,count:eJ.wo-h.length})},[h.length,r]),g=(0,i.useMemo)(()=>({bankList:h.map(e=>eX({banks:[t],mortgage:e})),finuslugiList:f.map(e=>eX({banks:n,mortgage:e}))}),[t,n,h,f]),b=(0,i.useCallback)(e=>{if(!e)return;let n=[h,f].reduce((e,t)=>[...e,...t],[]).find(t=>t.id===e.id);if(n)return{...n,site:{title:t.site.title,url:t.site.url},bankName:e.bankName,detailUrl:e.detailUrl,logo:e.logo,url:e.url}},[t.site.title,t.site.url,h,f]),y=(0,i.useCallback)(e=>{p(b(e)),e&&(0,ep.D)({eventCategory:k.u.IPOTEKA,eventAction:ep.i.popup,eventActionText:e.title,eventLabel:e.id})},[b]),x="".concat((0,e$.ZR)().mainBaseUrl,"/banki/").concat(t.url,"/ipoteka").concat((null==d?void 0:d.url.length)?"/reg_"+d.url:""),j=(0,o.jsx)(o.Fragment,{children:!!g.bankList.length&&(0,o.jsxs)("section",{className:e2().offersListContainer,children:[(0,o.jsxs)("p",{className:e2().listTitle,children:["Ипотека от ",t.name]}),g.bankList.map(e=>(0,o.jsx)(eG,{text:"Подать заявку",className:e2().listItem,data:e,onDetailInfoClick:y,onClick:v},e.url)),(0,o.jsx)(eU.j,{offPadding:!0,text:"Bсе предложения от банка",href:x,target:"_blank",iconColor:"light",mainPageUrl:k.u.IPOTEKA})]})});return g.finuslugiList.length&&(e2().offersListContainer,e2().listTitle,g.finuslugiList.map(e=>(0,o.jsx)(eG,{text:"Подать заявку",className:e2().listItem,data:e,onClick:v,onDetailInfoClick:y},e.url)),eU.j,k.u.IPOTEKA,k.u.IPOTEKA),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("section",{className:(0,F.Z)(e2().container,s),children:[(0,o.jsx)("h3",{className:e2().title,children:"Другие предложения"}),c?(0,o.jsx)(u.W2,{children:j}):(0,o.jsx)(eV.t,{children:j})]}),(0,o.jsx)(eZ.h,{data:m,isOpen:!!m,onClose:_,mainPageUrl:k.u.IPOTEKA,offerType:B.n.LEAD})]})});e4.displayName="MortgagesList";var e3=n(51469),e8=n(71276),e6=n(44215),e5=n(89519),e9=n(79380),e7=n.n(e9);function te(e){var t;let{offer:n,journal:a,questions:l,description:r,banks:s,refererTag:c,offers:m,offersFinuslugi:_}=e,x=(0,ev.S0)(),{region:j,town:N}=(0,e0.T)(),C=s.find(e=>+e.id===n.bank_id),A=(null==l?void 0:l.map(e=>({title:e.title,text:e.text.map(e=>e.data.html).join(""),plainText:e.text.map(e=>(0,f.MK)(e.data.html)).join("").trim()})))||[],w="Ипотека \xab".concat(n.title,"\xbb от ").concat(null!==(t=null==C?void 0:C.name_r)&&void 0!==t?t:""),T=(0,i.useMemo)(()=>{var e;let t=(null==N?void 0:N.name_p)||(null==j?void 0:j.name_p)?" в ".concat((null==N?void 0:N.name_p)||(null==j?void 0:j.name_p)):"",a="".concat((null==j?void 0:j.url)?"/reg_".concat(null==j?void 0:j.url):"").concat((null==N?void 0:N.url)?"/".concat(null==N?void 0:N.url):""),l=[{label:"Главная",href:"/"},{label:"Ипотеки".concat(t),href:"/".concat(k.u.IPOTEKA).concat(a)}];return c&&l.push({label:"".concat(c.name).concat(t),href:"/".concat(k.u.IPOTEKA,"/teg_").concat(c.url).concat(a)}),l.push({label:"".concat(null!==(e=null==C?void 0:C.name)&&void 0!==e?e:n.bank_name," Ипотека ").concat(n.title)}),l},[null==C?void 0:C.name,n.bank_name,n.title,c,null==j?void 0:j.name_p,null==j?void 0:j.url,null==N?void 0:N.name_p,null==N?void 0:N.url]);return(0,o.jsxs)("main",{className:e7().page,children:[(0,o.jsx)(b.N,{productId:String(n.id),title:w,description:r}),(0,o.jsx)(e8.o,{}),(0,o.jsx)(e3.g,{questions:A}),(0,o.jsx)("div",{className:e7().navigationWrapper,children:(0,o.jsx)(u.W2,{children:(0,o.jsx)(d.Oo,{className:e7().breadcrumbs,items:T})})}),(0,o.jsx)(ez,{bank:C,data:n,isMobile:x}),(0,o.jsx)(u.W2,{className:e7().about,children:(0,o.jsx)(S,{data:n,bank:C,offerType:B.n.LEAD,pageUrl:k.u.IPOTEKA})}),(0,o.jsx)(R,{isMobile:x,url:n.online_application.url}),void 0!==C&&(0,o.jsx)(e4,{newContainer:!0,bank:C,banks:s,currentCardId:n.id,mortgagesList:m,mortgagesFinuslugiList:_}),a&&(0,o.jsx)(u.W2,{children:(0,o.jsx)(g.S,{posts:a.posts,categories:a.ctgs,pageUrl:k.u.IPOTEKA})}),(0,o.jsxs)("div",{className:e7().supportSection,children:[(0,o.jsx)(e5.O,{newContainer:!0,idSupport:y.Je,hasDarkCardBackGround:!0,Image:e=>(0,o.jsx)(p(),{...e,width:555,height:344,src:h.Z,alt:"фоновое изображение"}),dataLayerPush:eq.l,eventEmitter:()=>window.supportWidget.craftTalk.open()}),(0,o.jsx)(e6.B,{isAllExpanded:!0,newContainer:!0,faqBlockTitle:"",Link:e=>(0,o.jsx)(v(),{...e}),dataLayerPush:eq.l,questions:A,eventCategory:"ipoteki_support_block",href:"".concat((0,e$.ZR)().mainBaseUrl,"/help"),checkAllText:"Читать все вопросы про ипотеку"})]})]})}var tt=n(51138);n(96202);var tn=n(37171);function ta(e){let{layout:t,mortgage:n,journal:a,questions:l,description:r,banks:i,offers:s,offersFinuslugi:c}=e;return(0,o.jsx)(tn.A,{data:t,children:(0,o.jsx)(te,{offer:n,journal:a,questions:l,description:r,banks:i,refererTag:null,offers:s,offersFinuslugi:c})})}var tl=n(53850);n(89945),n(60007);let to=e=>(0,s.D)(e).then(e=>{let{data:t,error:n}=e;return n?Promise.reject(n):t}),tr=e=>Object.entries(e).map(e=>{let[t,n]=e;return"".concat(t,"=").concat(encodeURIComponent(n))}).join("&"),ti=e=>{var t,n,a,l,o;let r={amount:null!==(t=e.amount)&&void 0!==t?t:0};return void 0!==e.downpayment&&(r.first_payment=e.downpayment),void 0!==e.term&&(r.period=e.term),void 0!==e.property_type&&(r.property_type=e.property_type),void 0!==e.market&&(r.real_estate_market=null!==(n=({first:"primary",second:"secondary"})[e.market])&&void 0!==n?n:"primary"),void 0!==e.form&&(r.form=null!==(a=({cash:"cash",account:"to_account",third_party_bank_account:"to_custom_account"})[e.form])&&void 0!==a?a:"to_account"),void 0!==e.proof&&(r.income_proof=e.proof),void 0!==e.provision&&(r.loan=null!==(l=({not_required:"not_required",deposit:"pledge",guarantee:"guarantee",not_required_and_guarantee:"pledge,guarantee"})[e.provision])&&void 0!==l?l:""),e.banks&&e.banks.length>0&&(r.bank=e.banks.join(",")),void 0!==e.flags&&e.flags.includes("maternal_capital")&&(r.maternal_capital=1),r.sort=null!==(o=void 0!==e.sort?({rate:"rate",payment:"amount",downpayment:"firstPayment"})[e.sort]:void 0)&&void 0!==o?o:"rate",r.order=e.sortDir,r},ts={offers:{list:(e,t,n,a,l,o)=>to("/money_data/Mortgages.json?".concat(tr({...ti(e),limit:t,page:n}),"&tag=").concat(a).concat(void 0!==l?"&region=".concat(l).concat(void 0!==o?"&town=".concat(o):""):"","&archive=0")).then(e=>{if(!e)return{title:"",subtitle:"",description:"",page:[],count:0,total_count:0};let{title:t,description:a,subtitle:l,mortgages_count:o,mortgages_total_count:r,mortgages:i,mortgages_online:s}=e;if(void 0!==n&&1!==n&&0===i.length&&0===s.length)throw new tl.dR("Invalid mortgages page: ".concat(n));return{title:t,subtitle:l,description:a,page:s.concat(i).map(e=>({...e,full_price:(0,c.b)(e.full_price)})),count:o,total_count:r}})}};n(6604);let tc="/ipoteka",tu="DEFAULT",td="reg_",tm="teg_",tp={RATE:"rate",AMOUNT:"amount",DOWNPAYMENT:"downpayment"};tp.RATE,tp.AMOUNT,tp.DOWNPAYMENT,n(6684);var t_=n(93259),tv=n(83953),th=n.n(tv);let tf=[{id:1,logo:{src:"/kredity/assets/_next/static/media/icon-1.adb0626c.svg",height:60,width:158,blurWidth:0,blurHeight:0},title:"<span>Займы</span>",value:"potrebitelskie_kredity/teg_bystro",isLink:!0},{id:2,logo:{src:"/kredity/assets/_next/static/media/icon-2.0c7d47df.svg",height:60,width:158,blurWidth:0,blurHeight:0},title:"<span>Кредит <br> на любые цели</span>",value:"potrebitelskie_kredity?purpose=other",isLink:!0},{id:3,logo:{src:"/kredity/assets/_next/static/media/icon-3.b9b622cd.svg",height:60,width:158,blurWidth:0,blurHeight:0},title:"<span>Кредит <br> на автомобиль</span>",value:"avtokredity",isLink:!0},{id:4,logo:{src:"/kredity/assets/_next/static/media/icon-4.15a4284d.svg",height:60,width:158,blurWidth:0,blurHeight:0},title:"<span>Кредит <br> на лечение</span>",value:"potrebitelskie_kredity?purpose=treatment",isLink:!0},{id:5,logo:{src:"/kredity/assets/_next/static/media/icon-5.ee0778ef.svg",height:60,width:158,blurWidth:0,blurHeight:0},title:"<span>Кредит <br> на учебу</span>",value:"potrebitelskie_kredity?purpose=education",isLink:!0},{id:6,logo:{src:"/kredity/assets/_next/static/media/icon-6.bc466745.svg",height:60,width:158,blurWidth:0,blurHeight:0},title:"<span>Ипотека</span>",value:"mortgages",isLink:!1}];var tg=(0,i.memo)(e=>{let{pageUrl:t}=e,{mainBaseUrl:n}=(0,e$.ZR)(),a=(0,i.useCallback)((e,a)=>{var l;e.stopPropagation();let o=(0,e_.b)(null!==(l=a.title)&&void 0!==l?l:"");(0,eq.l)({event:"data-event",eventAction:a.isLink?"click_link_".concat(o):"click_button_".concat(o),eventCategory:t}),a.isLink?window.open("".concat(n,"/").concat(a.value),"_blank"):window.scrollTo({top:0,behavior:"smooth"})},[n,t]);return(0,o.jsxs)(u.W2,{className:th().container,children:[(0,o.jsx)("h2",{className:th().title,children:"Каталог кредитов"}),(0,o.jsx)("div",{className:th().cardsList,children:tf.map(e=>(0,o.jsxs)("div",{className:th().card,onClick:t=>a(t,e),children:[(0,o.jsx)(p(),{className:th().icon,width:158,height:60,alt:"banner-".concat(e.value),src:e.logo}),(0,o.jsx)("p",{className:th().subTitle,dangerouslySetInnerHTML:{__html:e.title}})]},e.id))})]})}),tb=n(79644),ty=n(94020),tx=n(68203),tj=n(63716),tk=n(77350),tN=n.n(tk),tC=(0,i.memo)(e=>{let{pageUrl:t,posts:n,categories:a}=e,l=!(0,ty.V)("xl"),{isDragged:r,isTouched:s,onMouseDown:c,onMouseMove:u,resetState:d}=(0,tx.Q)(),m=(e,n,a)=>{(0,ep.D)({eventCategory:t,eventAction:ep.i.link,eventActionText:a,eventLabel:n,url:e}),window.open(e,"_blank")},{mainBaseUrl:_}=(0,e$.ZR)(),v=e=>()=>((0,ep.D)({eventAction:ep.i.link,eventActionText:(0,e_.b)(e.title),url:"information_".concat(e.url)}),!(r&&s)&&m("".concat(_,"/").concat(e.url),e.id,e.title)),h=(0,i.useMemo)(()=>l?300:336,[l]);return(0,o.jsx)(tb.Fp,{width:h,height:l?280:316,spaceBetween:l?16:24,sliderPerView:l?1:4,hideNavigationControl:l,overflowVisible:l,classSliderWrapper:tN().sliderWrapper,classNavigationLeftButton:tN().controlLeft,classNavigationRightButton:tN().controlRight,children:n.map(e=>{let t=null==a?void 0:a.find(t=>t.id===e.ctg);return(0,o.jsxs)("div",{className:tN().bannerCard,onMouseDown:c,onMouseMove:u,onMouseLeave:d,onMouseUp:d,onMouseUpCapture:v(e),children:[e.img&&(0,o.jsx)("div",{className:tN().cardHead,children:(0,o.jsx)(p(),{unoptimized:!0,className:tN().image,width:h,height:l?140:160,alt:"иконка",src:"".concat(_,"/img/posts/small/").concat(e.img.file)})}),(0,o.jsxs)("div",{className:tN().cardBody,children:[t&&(0,o.jsx)("div",{className:tN().categories,children:(0,o.jsx)("div",{className:tN().category,children:t.name},t.id)}),(0,o.jsx)("p",{className:tN().text,children:e.title}),e.publ_date&&(0,o.jsx)("p",{className:tN().publ_date,children:(0,tj.p)(e.publ_date)})]})]},e.id)})})}),tA=n(42316),tw=n.n(tA),tT=e=>{let{posts:t,categories:n,pageUrl:a}=e,{mainBaseUrl:l}=(0,e$.ZR)();return t.length?(0,o.jsx)("section",{className:tw().section,children:(0,o.jsxs)(u.W2,{children:[(0,o.jsx)("h2",{className:tw().title,children:"Журнал Финуслуги"}),(0,o.jsx)("div",{className:tw().sliderContainer,children:(0,o.jsx)(tC,{posts:t,categories:n,pageUrl:a})}),(0,o.jsx)(eU.j,{offPadding:!0,text:"Смотреть все новости",href:"".concat(l,"/navigator/kredity"),mainPageUrl:a,iconColor:"white"})]})}):null},tP=n(93890),tM=n(91500),tS=n(81923),tL=n.n(tS);let tD=(e,t)=>{let n="teg_".concat(e.url_redirect||e.url);if(!t)return"".concat(n);let a=(Array.isArray(t)?t:[t]).filter(e=>!e.includes(tm));return"".concat([n,...a].join("/"))},tE=e=>{let{posts:t,postsCategories:n,regions:a,tags:l,questionsData:r,currentTag:i,region:s,town:c}=e,{query:u}=(0,eP.useRouter)(),d=function(e,t,n,a,l,r){let i=e.map(e=>({title:(0,t_.Q)(e.title),text:(0,o.jsx)(f.Ln,{data:(0,t_.W)(e).content})}));i.push(...(0,tM.a)(k.u.IPOTEKA,n,a,l,r,{nominativeCase:"Ипотека",genitiveCase:"ипотек"}));let s=t.reduce((e,t)=>{if(!1===t.url_redirect){let n=(0,tP.q9)(t.url,t.name);e.push(n)}return e},[]);return i.push({title:"Виды ипотек",text:(0,o.jsx)(tP.oP,{children:s})}),i}(r,l.reduce((e,t)=>(t.url_redirect||e.push({...t,url:tD(t,u.segments)}),e),[]),a,i,s,c);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:tL().faq_container,children:(0,o.jsx)(e6.B,{isAllExpanded:!0,newContainer:!0,Link:e=>(0,o.jsx)(v(),{...e}),dataLayerPush:eq.l,questions:d,eventCategory:"mortgages_support_block",href:"".concat((0,e$.ZR)().mainBaseUrl,"/help"),checkAllText:"Читать все вопросы про ипотеку"})}),(0,o.jsx)(tT,{pageUrl:tc,posts:t,categories:n}),(0,o.jsx)("div",{className:tL().supportWrapper,children:(0,o.jsx)(e5.O,{newContainer:!0,idSupport:y.Je,hasDarkCardBackGround:!0,Image:e=>(0,o.jsx)(p(),{...e,width:555,height:344,src:h.Z,alt:"Фоновое изображение"}),dataLayerPush:eq.l,eventEmitter:()=>window.supportWidget.craftTalk.open()})}),(0,o.jsx)(tg,{pageUrl:tc})]})};var tB=n(65618),tO=n(59194),tI=n(38421),tR=n.n(tI);function tF(e){let{chips:t,onChipClick:n,lastInFirstRowChipIndex:a,isMobile:l,isFirstRow:r,useLinkChips:i}=e,{asPath:s}=(0,eP.useRouter)(),{mainBaseUrl:c}=(0,e$.ZR)(),u="".concat(c).concat(s),d=(e,t)=>{let{value:i,label:s,color:c}=e;return(0,o.jsx)("div",{className:(0,F.Z)(tR().chip,tR()[c],{[tR().transparentChip]:r&&t>a},{[tR().hiddenChip]:!r&&l&&t<=a}),onClick:()=>n(i),children:s},i)};return(0,o.jsx)(o.Fragment,{children:t.map(i?(e,t)=>{let n=e.value,a=new URL(u);return a.searchParams.delete("property_type"),a.searchParams.append("property_type",e.value),(0,o.jsx)(v(),{className:tR().link,href:a.toString(),onClick:e=>e.preventDefault(),children:d(e,t)},n)}:d)})}let tW=(e,t)=>{let[n,a]=(0,i.useState)(e),[l,o]=(0,i.useState)(e),r=(0,i.useRef)(null),s=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=r.current;if(null===e)throw Error("Dead code branch");let n=new ResizeObserver(e=>{let n=e[0];if(n){let{width:e}=n.contentRect,l=0,r=0,i=Array.from(n.target.children);for(let n=0;n<i.length;n++)if((l+=i[n].offsetWidth+12)<=e&&o(n),l<=(t?2*e:e))r=n;else{a(r);break}}});return n.observe(e),()=>{n.unobserve(e)}},[t,n,l]),[l,n,r,s]};var tz=n(65607),tU=n.n(tz);function tZ(){return(tZ=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)}var tV=function(e){return i.createElement("svg",tZ({xmlns:"http://www.w3.org/2000/svg",width:12,height:6,fill:"none",viewBox:"0 0 12 6"},e),a||(a=i.createElement("path",{fill:"#fff",d:"M11.663.28a1.25 1.25 0 0 0-.802-.28c-.301 0-.59.1-.803.28l-4.086 3.4-4.03-3.4A1.25 1.25 0 0 0 1.139 0C.84 0 .55.1.337.28a1 1 0 0 0-.25.312.83.83 0 0 0 0 .739 1 1 0 0 0 .25.312l4.826 4.073q.161.136.37.21a1.32 1.32 0 0 0 .876 0 1.2 1.2 0 0 0 .37-.21l4.884-4.073a1 1 0 0 0 .25-.312.83.83 0 0 0 0-.74 1 1 0 0 0-.25-.312"})))};let tq=e=>{let{onChipClick:t,chips:n,className:a}=e,[l,r]=(0,i.useState)(!1),s=!(0,ty.V)("sm"),c=l?"Скрыть":"Ещё",[u,d,m,p]=tW(n.length,s);return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{ref:m,className:(0,F.Z)(tU().row,a,{[tU().open]:l}),children:[(0,o.jsx)(tF,{chips:n,onChipClick:t,lastInFirstRowChipIndex:u,isMobile:!1,useLinkChips:!0}),d<n.length-1&&(0,o.jsxs)("div",{ref:p,className:(0,F.Z)(tU().toggle,{[tU().open]:l}),onClick:()=>{(0,ep.D)({eventAction:ep.i.button,eventActionText:(0,e_.b)(c)}),r(e=>!e)},children:[(0,o.jsx)(tV,{})," ",c]})]})})};var tH=n(46588),tK=n.n(tH);let tY=e=>{let{count:t,children:n,addon:a,chips:l,header:r,isLoading:i,onChipClick:s,onParamsClick:c,onShowClick:u,useLinkChips:m}=e,p=(0,o.jsx)(tq,{chips:l,onChipClick:s,useLinkChips:m});return(0,o.jsxs)("div",{className:tK().wrap,children:[r,(0,o.jsxs)("div",{className:tK().top_row,children:[(0,o.jsx)("div",{className:tK().top_row_content,children:n}),(0,o.jsxs)("div",{className:tK().top_row_buttons,children:[(0,o.jsx)(d.zx,{size:"s",variant:"secondary",label:"Все параметры",pending:i,disabled:i,onClick:c,iconLeft:(0,o.jsx)(tO.IconFdsParametersHorizontalO,{}),className:tK().params_button}),(0,o.jsx)(d.zx,{size:"s",onClick:u,className:tK().show_button,pending:i,disabled:i,label:"Показать".concat(t?" ".concat(t):"")})]}),(0,o.jsx)("div",{className:tK().chips_row,children:p}),a&&(0,o.jsx)("div",{className:tK().addon,children:a})]})]})};tY.displayName="MainFilter";var tG=n(86992);let tJ=[{value:"not_required",label:"Не требуется"},{value:"ndfl",label:"Справка 2-НДФЛ"},{value:"bank_form",label:"Справка по форме банка"},{value:"custom_form",label:"Альтернативные формы"}],tQ=[{value:"not_required",label:"Не требуется"},{value:"deposit",label:"Залог"},{value:"guarantee",label:"Поручительство"},{value:"not_required_and_guarantee",label:"Залог и поручительство"}],tX=[{value:"cash",label:"Наличными"},{value:"account",label:"На счет"},{value:"third_party_bank_account",label:"На счет в стороннем банке"}],t$=[{value:"flat",label:"Квартира"},{value:"townhouse",label:"Таунхаус"},{value:"vacation_home",label:"Загородный дом или коттедж"},{value:"room",label:"Комната или доля"},{value:"apartment",label:"Апартаменты"},{value:"commerce_estate",label:"Коммерческая недвижимость"},{value:"garage",label:"Гараж"},{value:"other",label:"Другое"}],t0=[{value:"first",label:"Первичный"},{value:"second",label:"Вторичный"}],t1=[{label:"По ставке",value:"rate",shortLabel:"Ставка"},{label:"По взносу",value:"downpayment",shortLabel:"Взнос"},{label:"По платежу",value:"payment",shortLabel:"Платеж"}],t2=[{label:"Семейная ипотека",value:"family"},{label:"Дальневосточная ипотека",value:"far_east"},{label:"Материнский капитал",value:"maternal_capital"}];var t4=n(86986),t3=n(49215),t8=n(31531),t6=n(57167),t5=n.n(t6);let t9="Сбросить параметры",t7=e=>{let{visible:t,filter:n,offersCount:a,banksOptions:l,onHide:r,onChange:s,onDrop:c,onShow:m}=e,p=(0,i.useMemo)(()=>"Показать ".concat(a>0?a:""),[a]),_=(0,i.useCallback)(()=>{(0,ep.D)({eventAction:ep.i.button,eventActionText:(0,e_.b)(t9)}),c()},[c]),v=(0,i.useCallback)(()=>{(0,ep.D)({eventAction:ep.i.button,eventActionText:(0,e_.b)(p)}),m()},[m,p]),h=(0,o.jsxs)("div",{className:t5().footer,children:[(0,o.jsx)(d.zx,{variant:"secondary",onClick:_,children:t9}),(0,o.jsx)(d.zx,{className:t5().submit,onClick:v,children:p})]});return(0,o.jsx)(d.u_,{open:t,onClose:r,footer:{children:h},header:{title:"Все параметры"},children:(0,o.jsxs)("div",{className:t5().form,children:[(0,o.jsx)("div",{className:(0,F.Z)(t5().wrap,t5().half),children:(0,o.jsx)(tG.P,{label:"Сумма кредита",value:n.amount,className:t5().field,onChange:e=>s("amount",null!=e?e:void 0,"Сумма")})}),(0,o.jsx)("div",{className:(0,F.Z)(t5().wrap,t5().half),children:(0,o.jsx)(tG.P,{label:"Ежемесячный платеж до",value:n.payment,className:t5().field,onChange:e=>s("payment",null!=e?e:void 0,"Ежемесячный платеж до")})}),(0,o.jsx)("div",{className:(0,F.Z)(t5().wrap,t5().half),children:(0,o.jsx)(tG.P,{label:"Первый взнос",value:n.downpayment,className:t5().field,onChange:e=>s("downpayment",null!=e?e:void 0,"Первый взнос")})}),(0,o.jsx)("div",{className:(0,F.Z)(t5().wrap,t5().half),children:(0,o.jsx)(tG.P,{label:"Срок",value:n.term,className:t5().field,onChange:e=>s("term",null!=e?e:void 0,"Срок")})}),(0,o.jsx)("div",{className:(0,F.Z)(t5().wrap,t5().half),children:(0,o.jsx)(t8.P,{className:(0,F.Z)(t5().field,t5().select_fix),label:"Вид недвижимости",options:t$,value:n.property_type,onChange:e=>s("property_type",e,"Вид недвижимости")})}),(0,o.jsx)("div",{className:(0,F.Z)(t5().wrap,t5().half),children:(0,o.jsx)(t8.P,{className:(0,F.Z)(t5().field,t5().select_fix),label:"Рынок недвижимости",options:t0,value:n.market,onChange:e=>s("market",e,"Рынок недвижимости")})}),(0,o.jsx)("div",{className:(0,F.Z)(t5().wrap,t5().half),children:(0,o.jsx)(t8.P,{className:(0,F.Z)(t5().field,t5().select_fix),label:"Форма выдачи",options:tX,value:n.form,onChange:e=>s("form",e,"Форма выдачи")})}),(0,o.jsx)("div",{className:(0,F.Z)(t5().wrap,t5().half),children:(0,o.jsx)(t8.P,{className:(0,F.Z)(t5().field,t5().select_fix),label:"Подтверждение дохода",options:tJ,value:n.proof,onChange:e=>s("proof",e,"Подтверждение дохода")})}),(0,o.jsx)("div",{className:(0,F.Z)(t5().wrap,t5().half),children:(0,o.jsx)(t3.i,{className:(0,F.Z)(t5().field,t5().select_fix),label:"Банки",options:l,values:n.banks,onChange:e=>s("banks",e,"Банки"),search:!0})}),(0,o.jsx)("div",{className:(0,F.Z)(t5().wrap,t5().half),children:(0,o.jsx)(t8.P,{className:(0,F.Z)(t5().field,t5().select_fix),label:"Обеспечение",options:tQ,value:n.provision,onChange:e=>s("provision",e,"Обеспечение")})}),(0,o.jsx)("div",{className:(0,F.Z)(t5().wrap),children:(0,o.jsxs)("div",{className:t5().sort,children:[(0,o.jsx)("h3",{className:t5().sort_title,children:"Дополнительно"}),t2.map((e,t)=>{var a;return(0,o.jsx)("div",{className:t5().fieldWrapper,children:(0,o.jsx)(d.XZ,{className:t5().checkboxField,value:null===(a=n.flags)||void 0===a?void 0:a.includes(e.value),label:e.label,onChange:()=>{var t;return s("flags",(0,t4.ZN)(null!==(t=n.flags)&&void 0!==t?t:[],e.value),"Дополнительно")}})},t)})]})}),(0,o.jsx)("div",{className:(0,F.Z)(t5().wrap),children:(0,o.jsx)(u.iz,{className:t5().separator})}),(0,o.jsx)("div",{className:(0,F.Z)(t5().wrap),children:(0,o.jsxs)("div",{className:t5().sort,children:[(0,o.jsx)("h3",{className:t5().sort_title,children:"Сортировка"}),t1.map((e,t)=>(0,o.jsx)("div",{className:t5().sort_wrap,children:(0,o.jsx)(d.Y8,{name:"radio",value:n.sort,label:e.label,checked:n.sort===e.value,className:t5().checkboxField,onChange:()=>s("sort",e.value,"Сортировка")})},t))]})})]})})};var ne=n(91646),nt=n(45117),nn=n(23259),na=n(30942),nl=n(12271),no=n.n(nl),nr=n(41696),ni=n.n(nr);function ns(){return(0,o.jsx)("iframe",{className:ni().widget,src:"https://realty.ya.ru/widgets/back-call-request"})}var nc=n(21308),nu=n(94370),nd=n.n(nu);let nm=(e,t,n,a,l)=>{let o='{"@type":"ListItem","position":1,"name":"Финуслуги","item":"'.concat(e,'"}'),r='{"@type":"ListItem","position":2,"name":"Ипотека'.concat(a,'","item":"').concat(e,"/\n      ").concat(tc).concat(l,'\n      "}'),i=t?',{"@type":"ListItem","position":3,"name":"&#128181 '.concat(n).concat(a,'","item":"').concat(e,"/").concat(tc).concat(t?"/".concat(tm).concat(t.url):"").concat(l,'"}'):"";return"{".concat('"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":['.concat(o),",").concat(r).concat(i,"]}")},np=e=>{let{currentTag:t,subtitle:n,className:a}=e,{handleToggleModal:l}=(0,r.ar)(),s=(0,nn.I)(),c=(0,ev.S0)(),m=(0,na.U)(),p=t?t.name:"Ипотека",{region:_,town:v}=(0,e0.T)(),h=(null==v?void 0:v.name_p)||(null==_?void 0:_.name_p),f=h?" в ".concat(h):"",g="".concat(_?"/".concat(td).concat(_.url):"").concat(v?"/".concat(v.url):""),{mainBaseUrl:b,isYandexRealty:y}=(0,e$.ZR)(),x=nm(b,t,p,f,g),j=(0,i.useCallback)(()=>{(0,ep.D)({eventAction:ep.i.link,eventActionText:(0,e_.b)("Главная"),url:b})},[b]),k=(0,i.useCallback)(()=>{l(!0),(0,ep.D)({eventAction:ep.i.popup,eventActionText:"".concat((0,e_.b)("регион"),"_").concat(h)})},[h,l]);return(0,o.jsxs)("div",{className:(0,F.Z)(a,nd().wrap,"bg-".concat(m)),children:[(0,o.jsx)(u.W2,{children:(0,o.jsxs)("div",{className:(0,F.Z)(nd().breadcrumbs),children:[(0,o.jsx)(d.Oo,{items:(()=>{let e=[{label:"Главная",href:"/"}];return t&&e.push({label:"Ипотека".concat(f),href:"".concat(tc).concat(g)}),e.push({label:"".concat(p).concat(t?"":f)}),e})(),isMobile:c,onClick:j}),(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:x}})]})}),y&&(0,o.jsx)(u.W2,{children:(0,o.jsx)(ns,{})}),(0,o.jsx)(u.W2,{children:(0,o.jsxs)("div",{className:nd().content,children:[(0,o.jsxs)("div",{className:nd().text,children:[(0,o.jsxs)("h1",{className:nd().title,children:[p," ",h&&(0,o.jsxs)(o.Fragment,{children:["в"," ",(0,o.jsx)("span",{onClick:k,className:nd().location,children:h})]})]}),(0,o.jsx)(nc.N,{tag:"p",className:no().subtitle,children:n})]}),(0,o.jsx)("div",{className:nd().banner,children:(0,o.jsx)(ne.Z,{config:s,params:nt.P3})})]})})]})};var n_=n(30292),nv=n(97318),nh=n(12261);function nf(){let{query:e,push:t}=(0,eP.useRouter)(),{amount:n,payment:a,downpayment:l,term:o,property_type:r,market:s,form:c,proof:u,banks:d,provision:m,flags:p,sort:_,sortDir:v,...h}=e,f=(0,i.useMemo)(()=>(function(e){let{amount:t,payment:n,downpayment:a,term:l,property_type:o,market:r,form:i,proof:s,banks:c,provision:u,flags:d,sort:m,sortDir:p}=e,_={};return"string"==typeof t&&(_.amount=Number(t)),"string"==typeof n&&(_.payment=Number(n)),"string"==typeof a&&(_.downpayment=Number(a)),"string"==typeof l&&(_.term=Number(l)),"string"==typeof o&&(_.property_type=o),"string"==typeof r&&(_.market=r),"string"==typeof i&&(_.form=i),"string"==typeof s&&(_.proof=s),"string"==typeof c&&(_.banks=(0,nh.SP)(c)),"string"==typeof u&&(_.provision=u),"string"==typeof d&&(_.flags=(0,nh.SP)(d)),"string"==typeof m?_.sort=m:_.sort="rate","string"==typeof p?_.sortDir=p:_.sortDir="asc",_})({amount:n,payment:a,downpayment:l,term:o,property_type:r,market:s,form:c,proof:u,banks:d,provision:m,flags:p,sort:_,sortDir:v}),[n,a,l,o,r,s,c,u,d,m,p,_,v]),g=(0,i.useRef)(h),b=(0,i.useRef)(f),y=(0,i.useRef)(t);return g.current=h,b.current=f,y.current=t,{filter:f,setFilter:(0,i.useCallback)(e=>{var t,n,a,l,o,r,i,s,c;if((t=b.current).amount===e.amount&&t.payment===e.payment&&t.downpayment===e.downpayment&&t.term===e.term&&t.property_type===e.property_type&&t.market===e.market&&t.form===e.form&&t.proof===e.proof&&(null===(n=t.banks)||void 0===n?void 0:n.length)===(null===(a=e.banks)||void 0===a?void 0:a.length)&&(null===(l=t.banks)||void 0===l?void 0:l.slice().sort().toString())===(null===(o=e.banks)||void 0===o?void 0:o.slice().sort().toString())&&t.provision===e.provision&&(null===(r=t.flags)||void 0===r?void 0:r.length)===(null===(i=e.flags)||void 0===i?void 0:i.length)&&(null===(s=t.flags)||void 0===s?void 0:s.slice().sort().toString())===(null===(c=e.flags)||void 0===c?void 0:c.slice().sort().toString())&&t.sort===e.sort&&t.sortDir===e.sortDir)return!1;let u={...function(e){let{amount:t,payment:n,downpayment:a,term:l,property_type:o,market:r,form:i,proof:s,banks:c,provision:u,flags:d,sort:m,sortDir:p}=e,_={};return void 0!==t&&(_.amount=String(t)),void 0!==n&&(_.payment=String(n)),void 0!==a&&(_.downpayment=String(a)),void 0!==l&&(_.term=String(l)),void 0!==o&&(_.property_type=o),void 0!==r&&(_.market=r),void 0!==i&&(_.form=i),void 0!==s&&(_.proof=s),void 0!==c&&(_.banks=(0,nh.ln)(c)),void 0!==u&&(_.provision=u),void 0!==d&&(_.flags=(0,nh.ln)(d)),void 0!==m&&(_.sort=m),void 0!==p&&(_.sortDir=p),_}(e),...g.current};return y.current({query:u},void 0,{shallow:!0}),!0},[])}}var ng=n(52798);let{useDebugValue:nb}=i,{useSyncExternalStoreWithSelector:ny}=ng,nx=e=>e,nj=e=>{let t;let n=new Set,a=(e,a)=>{let l="function"==typeof e?e(t):e;if(!Object.is(l,t)){let e=t;t=(null!=a?a:"object"!=typeof l||null===l)?l:Object.assign({},t,l),n.forEach(n=>n(t,e))}},l=()=>t,o={setState:a,getState:l,getInitialState:()=>r,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},r=t=e(a,l,o);return o},nk=e=>e?nj(e):nj,nN=null,nC=e=>(function(e,t=nx,n){let a=ny(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,void 0);return nb(a),a})(nN=null!=nN?nN:nk(t=>{var n,a,l,o,r,i,s,c;return{subtitle:null!==(r=null===(n=e.mortgagesData)||void 0===n?void 0:n.subtitle)&&void 0!==r?r:"",offers:null!==(i=null===(a=e.mortgagesData)||void 0===a?void 0:a.page)&&void 0!==i?i:[],loading:!1,count:null!==(s=null===(l=e.mortgagesData)||void 0===l?void 0:l.count)&&void 0!==s?s:0,total_count:null!==(c=null===(o=e.mortgagesData)||void 0===o?void 0:o.total_count)&&void 0!==c?c:0,delayTimer:null,reload:async function(e,n,a,l,o){t({loading:!0});let{subtitle:r,page:i,count:s,total_count:c}=await ts.offers.list(e,n,1,o,a,l),u=null==nN?void 0:nN.getState().delayTimer;u&&clearTimeout(u),null==nN||nN.getState().delayUpdate(()=>{t({subtitle:r}),t({offers:i}),t({count:s}),t({total_count:c}),t({loading:!1})})},delayUpdate:function(e){let n=null==nN?void 0:nN.getState().delayTimer;n&&clearTimeout(n),t({delayTimer:setTimeout(e,1e3)})},load:async function(n,a,l,o,r){var i,s;t({loading:!0});let{subtitle:c,page:u,count:d,total_count:m}=await ts.offers.list(n,a,l,null!==(s=null===(i=e.currentTag)||void 0===i?void 0:i.url)&&void 0!==s?s:tu,o,r);null==nN||nN.getState().delayUpdate(()=>{t({subtitle:c}),t(e=>{let{offers:t}=e;return{offers:t.concat(u)}}),t({count:d}),t({total_count:m}),t({loading:!1})})},clear:()=>{t({subtitle:"",offers:[],count:0,total_count:0,loading:!1})}}}));var nA=n(75340),nw=n(9469),nT=n.n(nw);let nP=(0,tB.b)(),nM=e=>{let{ssr:t}=e,{scrollSmooth:n}=(0,nA.vO)(),{filter:a,setFilter:l}=nf(),{visible:r,show:s,hide:c}=(0,nv.e)(),{subtitle:d,count:m}=nC({filter:a,mortgagesData:t.mortgagesData,currentTag:t.currentTag}),p=(0,i.useMemo)(()=>t$.map(e=>{let{value:t,label:n}=e;return{value:t,label:n,color:a.property_type===t?"black":"default"}}),[a.property_type]),_=(0,i.useCallback)(e=>{var t,n;(0,ep.D)({eventAction:ep.i.filterCatalog,eventCategory:ep.i.filterCatalog,eventLabel:"property_type",eventValue:(0,e_.b)(null!==(n=null===(t=t$.find(t=>t.value===e))||void 0===t?void 0:t.label)&&void 0!==n?n:"")}),l({...a,property_type:e===a.property_type?"":e})},[a,l]),v=(0,i.useCallback)(()=>l({}),[l]),[h]=(0,n_.G)(()=>(0,tt.$)().then(e=>null!=e?e:[]),[]),f=(0,i.useMemo)(()=>(null!=h?h:[]).map(e=>({value:e.id,label:e.name})),[h]),g=()=>{(0,ep.D)({eventAction:ep.i.button,eventActionText:(0,e_.b)("показать")}),n({offset:-90})},b=(0,i.useCallback)(()=>{(0,ep.D)({eventAction:ep.i.button,eventActionText:(0,e_.b)("все параметры")}),s()},[s]),x=(e,t,n)=>{nP(()=>(0,ep.D)({eventAction:ep.i.filterCatalog,eventCategory:ep.i.filterCatalog,eventLabel:(0,e_.b)(n),eventValue:"string"==typeof t?t:JSON.stringify(t)})),l({...a,[e]:t})};return(0,o.jsxs)("div",{className:nT().wrap,children:[(0,o.jsx)(np,{subtitle:d,currentTag:t.currentTag}),(0,o.jsxs)(u.W2,{id:y.of,children:[(0,o.jsxs)(tY,{count:m,onChipClick:_,chips:p,onParamsClick:b,onShowClick:g,children:[(0,o.jsx)(tG.P,{label:"Сумма кредита",value:a.amount,className:nT().field,onChange:e=>x("amount",null!=e?e:void 0,"Сумма")}),(0,o.jsx)(tG.P,{label:"Ежемесячный платеж до",value:a.payment,className:nT().field,onChange:e=>x("payment",null!=e?e:void 0,"Ежемесячный платеж до")})]}),(0,o.jsx)(t7,{offersCount:m,visible:r,filter:a,banksOptions:f,onChange:x,onHide:c,onDrop:v,onShow:()=>{c(),g()}})]})]})};var nS=n(65848),nL=n(423),nD=n(64101),nE=n(15729),nB=n(71147),nO=n(23937),nI=n(48743),nR=n(28052),nF=n(92047),nW=n.n(nF);let nz=e=>{let t={sectionTitle:"Условия ипотеки",body:[{label:"Сумма кредита",value:(0,eB.qO)(Number(e.amount.from),Number(e.amount.to))}]},n=e.full_price;if(n){let a=e.interest_rate;t.body.push({label:"ПСК",value:(0,c.W)(n),description:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n          Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."},{label:"Процентная ставка",value:(0,o.jsxs)("div",{children:[(0,eB.sz)(Number(a.from),Number(a.to)),a.comment&&(0,o.jsx)("div",{className:nW().comment,dangerouslySetInnerHTML:{__html:a.comment}})]})})}return void 0!==e.first_payment.from&&t.body.push({label:"Минимальный первый взнос",value:"от ".concat(e.first_payment.from,"%")}),(e.loan.not_required||e.loan.comment||e.loan.text)&&t.body.push({label:"Обеспечение",value:e.loan.not_required?"Не требуется":(0,nR.m)(e.loan)}),(e.period.from||e.period.to)&&t.body.push({label:"Срок погашения кредита",value:"".concat((0,eB.z1)(Number(e.period.from),Number(e.period.to))," мес.")}),(e.property_type.comment||e.property_type.text)&&t.body.push({label:"Вид недвижимости",value:(0,nR.m)(e.property_type)}),(e.real_estate_market.comment||e.real_estate_market.text)&&t.body.push({label:"Рынок недвижимости",value:(0,nR.m)(e.real_estate_market)}),(e.insurance.comment||e.insurance.text)&&t.body.push({label:"Страхование",value:(0,nR.m)(e.insurance)}),[t,{sectionTitle:"О банке",body:[{label:"Сайт",value:e.site.title}]}]},nU=e=>{let{isOpen:t,url:n,data:a,onAllConditionsClick:l,onClose:r}=e,s=(0,i.useMemo)(()=>a?nz(a):[],[a]);return void 0===a||void 0===n?null:(0,o.jsx)(nI.$,{isOpen:t,cancelButton:{title:"Все условия по ипотеке",onClick:l},submitButton:{title:"Оформить онлайн",url:n},onClose:r,bankName:a.bankName,dataPoints:s,pageUrl:k.u.IPOTEKA,offerType:B.n.LEAD,offerUpdateData:a.m_updated_at})};function nZ(){return(nZ=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)}var nV=function(e){return i.createElement("svg",nZ({xmlns:"http://www.w3.org/2000/svg",width:17,height:17,fill:"none",viewBox:"0 0 17 17"},e),l||(l=i.createElement("path",{fill:"#525BBB",stroke:"#525BBB",strokeWidth:.654,d:"M10.498 6.982 4.073 11.48l-.382-.545 6.426-4.499.642-.45-.772-.14-3.06-.553.085-.5 4.793.867-.822 4.793-.5-.09.524-3.06.133-.772z"})))},nq=n(8760),nH=n.n(nq);let nK="DetailModalText",nY=e=>{var t,n;let{data:a,isMobile:l=!1,onClose:r,mainPageUrl:s,onFlag:c}=e,[u,m]=(0,i.useState)(null),_=null!==(t=null==u?void 0:u.link)&&void 0!==t?t:"",h=null!==(n=null==_?void 0:_.includes("#"))&&void 0!==n&&n,f=(0,nh.sD)(_),g=()=>{if(r(),u&&(0,eq.l)({event:"data-event",eventAction:"click_button_".concat((0,e_.b)(u.modalButtonText)),eventCategory:s}),(null==u?void 0:u.filterFlags)&&c&&c(u.filterFlags),h){let e=_.split("#")[1];(0,eO.l)(e,{position:"top"})}_||(0,eO.l)(y.Tm,{offset:l?0:-100,position:"top"})};return(0,i.useEffect)(()=>{a&&m(a)},[a]),(0,i.useEffect)(()=>{let e=document.querySelectorAll("#".concat(nK," > a")),t=e=>{e.target instanceof HTMLAnchorElement&&(0,ep.D)({eventAction:ep.i.link,eventActionText:e.target.innerText,url:e.target.href})};return e.forEach(e=>{e.addEventListener("click",t)}),()=>{e.forEach(e=>{e.removeEventListener("click",t)})}}),(0,o.jsxs)("div",{className:nH().content,children:[(0,o.jsx)("div",{className:nH().logo,children:(null==u?void 0:u.logo)&&(0,o.jsx)(p(),{width:l?344:494,height:l?128:180,src:null==u?void 0:u.logo,alt:"logo"})}),(0,o.jsxs)("div",{className:nH().body,children:[(0,o.jsx)("h3",{className:nH().title,children:null==u?void 0:u.title}),(0,o.jsx)("p",{id:nK,className:nH().text,dangerouslySetInnerHTML:{__html:u?u.modalText:""}})]}),f||h?(0,o.jsx)(d.zx,{as:"a",target:"_blank",href:h?void 0:_,size:"big",onClick:g,children:null==u?void 0:u.modalButtonText}):(0,o.jsx)(v(),{href:_,children:(0,o.jsx)(d.zx,{size:"big",onClick:g,children:null==u?void 0:u.modalButtonText})})]})},nG=e=>{let{data:t,isOpen:n,onClose:a,mainPageUrl:l,onFlag:r}=e,i=(0,ev.S0)();return(0,o.jsx)(ee.h,{children:(0,o.jsx)(d.u_,{open:n,onClose:a,header:{title:""},size:"l",children:(0,o.jsx)("div",{className:nH().container,children:(0,o.jsx)(nY,{data:t,isMobile:i,onClose:a,mainPageUrl:l,onFlag:r})})})})};var nJ={src:"/kredity/assets/_next/static/media/life-situations-1.a2fc9534.png",height:180,width:494,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAANlBMVEXOsISxuJvSvIjSSUbn3LXYr3/QjW316q/p1Ji+opPZvZaoPEDx7cvLaF7GTU66S1Gxc2fr3p/BBhVOAAAACnRSTlP+/////////Pz4xwPQRQAAAAlwSFlzAAALEwAACxMBAJqcGAAAACNJREFUeJxj4GBnYmDlEGRn4OIR4GNmY2RhYGDh5edmZeAEAAlyALLYLvsDAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:3},nQ={src:"/kredity/assets/_next/static/media/life-situations-2.17787fd4.png",height:180,width:494,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAOVBMVEWuglmBRS/fum+9jljhz4SvVDznzpDy45vVwIHNp2jv14aVQTHx14eydVTHfVuoaULowHPfxYm2mnCYFRyUAAAACnRSTlP9/////v7//Pr4jFI21QAAAAlwSFlzAAALEwAACxMBAJqcGAAAACNJREFUeJxj4OBhE2Rn4WJnEGLiZ+DjFWBjYGBmZORmZeIEAAtCALyiN1LOAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:3},nX={src:"/kredity/assets/_next/static/media/life-situations-3.1396f824.png",height:180,width:494,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAOVBMVEXWxXPMsInKh3LMPiqul1zRwZLd26bt5Jvf7LC5tWna4LDVvnDe1Z/Zx5OhPDnv2qG3LS5wOTXUsWgOjSmWAAAACnRSTlP9/////v///fz45qrS1AAAAAlwSFlzAAALEwAACxMBAJqcGAAAACNJREFUeJxjYGfnYWXl4eBg4Odl5BNg4mJjYOAWYhZkYeAEAAsKAMzpr/83AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:3},n$=n(20676),n0=n.n(n$),n1=(0,i.memo)(e=>{let{mainPageUrl:t,onFlag:n,isMobile:a}=e,[l,r]=(0,i.useState)(!1),[s,c]=(0,i.useState)(null),{isDragged:m,isTouched:_,onMouseDown:v,onMouseMove:h,resetState:f}=(0,tx.Q)(),g=(0,i.useMemo)(()=>a?288:348,[a]),b=e=>e.preventDefault,x=(0,i.useCallback)(e=>{c(e),r(!0),(0,ep.D)({eventAction:ep.i.popup,eventActionText:e.title})},[]),j=(0,i.useCallback)(()=>{var e;(0,ep.D)({eventAction:ep.i.popdown,eventActionText:null!==(e=null==s?void 0:s.title)&&void 0!==e?e:""}),c(null),r(!1)},[null==s?void 0:s.title]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("section",{className:n0().section,id:y.VT,children:(0,o.jsxs)(u.W2,{children:[(0,o.jsx)("h2",{className:n0().title,children:"Как вам помочь?"}),(0,o.jsx)(tb.Fp,{isDependsOnWidth:!1,width:g,height:a?208:240,spaceBetween:a?16:32,sliderPerView:a?1:4,hideNavigationControl:!0,overflowVisible:a,infiniteSlider:a,autoPlayTime:5e3,classSlider:n0().slider,classSliderList:n0().sliderList,classSlide:n0().slide,children:(function(){let{mainBaseUrl:e}=(0,e$.iE)();return[{id:1,logo:nJ,logoMobile:nJ,title:"Льготная ипотека",modalText:"Найдем для вас предложения с пониженной ставкой — например, семейную ипотеку или ипотеку для ИТ-специалистов. Выберите льготную программу и подайте заявку на ипотечный кредит на Финуслугах",modalButtonText:"Выбрать ипотеку",link:"#".concat(y.Tm),filterFlags:["3"]},{id:2,logo:nQ,logoMobile:nQ,title:"Рефинансирование кредита",modalText:"Хотите снизить ставку или уменьшить ежемесячный платеж по ипотеке? Покажем банки, в которые вы сможете перевести свой ипотечный кредит и получить более комфортные условия",modalButtonText:"Выбрать ипотеку",link:"/ipoteka/teg_refinansirovanie"},{id:3,logo:nX,logoMobile:nX,title:"Налоговый вычет за ипотеку",modalText:'Если вы работаете официально, государство может вернуть 13% налога. Это 650 000 ₽ — до 260 000 ₽ от стоимости недвижимости и до 390 000 ₽ за проценты по ипотеке. Больше о том, как оформить налоговый вычет — в <a href="'.concat(e,'/glossariy/imushchestvennyj_nalogovyj_vychet_pri_ipoteke" target="_blank" style="color: var(--color-purple-600)">инструкции</a> на Финуслугах'),modalButtonText:"Выбрать ипотеку",link:"#".concat(y.Tm)}]})().map(e=>(0,o.jsxs)("div",{className:n0().card,onMouseDown:v,onMouseMove:h,onMouseLeave:f,onMouseUp:f,onMouseUpCapture:()=>!(m&&_)&&x(e),onTouchStart:b,onTouchMove:b,onTouchEnd:b,children:[(0,o.jsx)("div",{className:n0().imgWrapper,children:(0,o.jsx)(p(),{width:g,height:128,alt:"banner"+e.id,src:a?e.logoMobile:e.logo})}),(0,o.jsxs)("div",{className:n0().cardBody,children:[(0,o.jsx)("p",{className:n0().subTitle,children:e.title}),(0,o.jsx)(d.zx,{shape:"circle-icon",className:n0().cardButton,iconLeft:(0,o.jsx)(nV,{className:n0().iconArrow})})]})]},e.id))})]})}),(0,o.jsx)(nG,{mainPageUrl:t,data:s,isOpen:l,onClose:j,onFlag:n})]})}),n2=n(94908),n4=n(45939),n3=n.n(n4);let n8=e=>{let t=[];return 3===e.online_application.type?t.push({label:"Открытие онлайн на Финуслугах",variant:"purple"}):1===e.online_application.commercial?t.push({label:"Подача заявки на сайте банка",variant:"primary"}):t.push({label:"Открытие в банке",variant:"primary"}),t.push({label:1===e.income_proof.not_required?"Без справок":"Требуется подтверждение дохода",variant:"primary"}),t},n6=e=>{let{icon:t,offer:n}=e,a=(0,i.useMemo)(()=>{let e=[],t=n.full_price;return t&&e.push({caption:"ПСК",tooltipText:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n        Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре.",text:(0,c.W)(t)}),e.push({caption:"Сумма",text:(0,eB.dN)({from:Number(n.amount.from),to:Number(n.amount.to)},{currency:"₽"})},{caption:"Первый взнос",text:n.first_payment?"от ".concat(n.first_payment.from,"%"):""}),e},[n.first_payment,n.full_price,n.amount]);return(0,o.jsxs)("div",{className:n3().mortgage_info,children:[(0,o.jsxs)("div",{className:n3().bank_info,children:[(0,o.jsx)("div",{className:n3().icon,children:t}),(0,o.jsx)(n2.S,{caption:n.title,text:n.bank_name,className:(0,F.Z)(n3().group,n3().title_group)})]}),(0,o.jsx)("div",{className:n3().groups,children:a.map((e,t)=>e.text&&(0,o.jsx)(n2.S,{caption:e.caption,text:e.text,tooltipText:e.tooltipText,className:n3().group},t))})]})};var n5=e=>{let{className:t,icon:n,offer:a,onDetails:l,onOpen:r,isMobile:s}=e,c=(0,i.useMemo)(()=>n8(a),[a]),u=(0,i.useCallback)(e=>{e.stopPropagation(),null==l||l()},[l]),m=(0,o.jsx)("div",{className:n3().chips_row,children:c.map(e=>(0,o.jsx)("div",{children:(0,o.jsx)(d.Vp,{label:e.label,variant:e.variant,className:n3().chip})},e.label))});return(0,o.jsxs)("div",{className:(0,F.Z)(t,n3().wrap),onClick:r,children:[(0,o.jsxs)("div",{className:n3().top_row,children:[(0,o.jsx)("div",{className:n3().top_row_content,children:(0,o.jsx)(n6,{icon:n,offer:a})}),(0,o.jsxs)("div",{className:n3().top_row_buttons,children:[(0,o.jsx)("div",{className:n3().icon_button,onClick:u,children:(0,o.jsx)(tO.IconFdsInfoCircleO,{})}),s&&m,(0,o.jsx)(d.zx,{className:n3().show_button,size:"xs",label:"Подробнее"})]})]}),!s&&m]})},n9=n(29535),n7=n.n(n9);let ae=e=>{let{className:t,title:n,offers:a,onDetails:l,onOpen:r,isMobile:s}=e,c=(0,i.useCallback)(e=>{(0,ep.D)({eventAction:ep.i.button,eventActionText:"information_".concat(e.bank_url),eventLabel:e.id}),(0,ep.D)({eventAction:ep.i.popup,eventActionText:"information_".concat(e.bank_url),eventLabel:e.id}),l(e.id)},[l]),u=(0,i.useCallback)(e=>{(0,ep.D)({eventAction:ep.i.link,eventActionText:(0,e_.b)(e.title),url:"".concat(tc,"/").concat(e.bank_url)}),r(e)},[r]);return(0,o.jsxs)("div",{className:t,children:[(0,o.jsx)("p",{className:n7().listTitle,children:n}),(0,o.jsx)("div",{className:n7().list,children:a.map(e=>(0,o.jsx)(i.Fragment,{children:(0,o.jsx)(n5,{onDetails:()=>c(e),onOpen:()=>u(e),className:n7().card,icon:(0,o.jsx)(p(),{width:40,height:40,src:e.bank_logo_mob,alt:"logo"}),offer:e,isMobile:s})},e.id))})]})};var at=n(92941),an=n.n(at);let aa=(0,i.memo)(e=>{let{chips:t,sort:n,sortOrder:a,onChangeSort:l,onChangeSortOrder:r,sortOptions:i,onClick:s,inView:c,filterRef:u,className:d,onClickChip:m}=e,p=(0,ty.V)("xs");return(0,o.jsx)("div",{ref:u,className:an().filter,children:(0,o.jsx)(tb.p,{className:d,isNewSortRadios:!0,chips:t,isIncreaseSort:"asc"===a,onChangeIncreaseSort:e=>{let t=e?"asc":"desc";r(t),(0,ep.D)({eventAction:ep.i.button,eventActionText:"sort_direction_".concat(t)})},sortTypeItems:i,sortTypeValue:null!=n?n:tp.RATE,onChangeSortType:e=>{var t;l(e),(0,ep.D)({eventAction:ep.i.button,eventActionText:"sort_type_".concat(null===(t=t1.find(t=>t.value===e))||void 0===t?void 0:t.label)})},onClickParams:s,isMobile:!p,isFixed:c,onClickChip:m})})});aa.displayName="SmallFilter";var al=n(29023),ao=n(88060),ar=n(6207),ai=n.n(ar);let as=e=>[{label:"Сумма кредита: ".concat(e.amount?(0,t4.uf)(e.amount):"от 1"," ₽"),id:"amount"},{label:"Платеж: ".concat(e.payment?"до ".concat((0,t4.uf)(e.payment)," ₽ в мес"):"любой"),id:"payment"},{label:"Срок: ".concat(e.term?"".concat(String(e.term)," мес."):"любой"),id:"term"},{label:"Банки: ".concat(e.banks?String(e.banks.length):"любые"),id:"banks"}],ac=e=>3===e.online_application.type,au=e=>1===e.online_application.commercial,ad=e=>!ac(e)&&!au(e),am=e=>{var t,n;let{ssr:a}=e,l=(0,nA.lJ)(),{query:r}=(0,eP.useRouter)(),[s,c]=(0,i.useState)(Number(r.page)||1),{filter:d,setFilter:m}=nf(),{show:p}=(0,nv.e)(),_=(0,ev.S0)(),[v,h]=(0,i.useState)(!1),f=(0,i.useRef)(null),g=(0,i.useRef)(()=>null),{offers:b,loading:x,reload:j,load:k,clear:N,count:C,total_count:A}=nC({...a,filter:d}),w=null!==(n=null===(t=a.currentTag)||void 0===t?void 0:t.url)&&void 0!==n?n:tu,{region:T,town:P}=(0,e0.T)(),M="".concat(T?"/".concat(td).concat(T.url):"").concat(P?"/".concat(P.url):""),S=(0,i.useRef)(!0);(0,i.useEffect)(()=>{S.current?S.current=!1:j(d,10,null==T?void 0:T.url,null==P?void 0:P.url,w)},[d,null==T?void 0:T.url,null==P?void 0:P.url,w,j]);let L=(0,i.useRef)(!0);(0,n_.b)(()=>{L.current?L.current=!1:(N(),k(d,10,s,null==T?void 0:T.url,null==P?void 0:P.url))},[d],500);let D=(0,i.useCallback)(()=>{c(e=>{let t=e+1;return k(d,10,t,null==T?void 0:T.url,null==P?void 0:P.url),(0,ep.D)({eventAction:ep.i.button,eventActionText:(0,e_.b)("показать еще предложения")}),t})},[k,d,null==T?void 0:T.url,null==P?void 0:P.url]),E=as(d),B=(0,i.useMemo)(()=>b.filter(ac),[b]),O=(0,i.useMemo)(()=>b.filter(au),[b]),I=(0,i.useMemo)(()=>b.filter(ad),[b]),R=a.currentTag?a.currentTag.name:"Ипотека",W=(null==P?void 0:P.name_p)||(null==T?void 0:T.name_p),z=W?" в ".concat(W):"",{mainBaseUrl:U}=(0,e$.ZR)(),Z=(0,nO.P)(b),V=(0,i.useMemo)(()=>{var e,t,n,l;if(!Z.data)return;let o=a.banks.find(e=>{var t;return(null===(t=Z.data)||void 0===t?void 0:t.bank_id)===+e.id});return{...Z.data,site:{title:null!==(e=null==o?void 0:o.site.title)&&void 0!==e?e:null,url:null!==(t=null==o?void 0:o.site.url)&&void 0!==t?t:null},bankName:null!==(n=null==o?void 0:o.name)&&void 0!==n?n:Z.data.bank_name,logo:null!==(l=null==o?void 0:o.logo_mob)&&void 0!==l?l:""}},[Z.data,a.banks]),q=(0,i.useCallback)(()=>{(0,ep.D)({eventAction:ep.i.button,eventActionText:(0,e_.b)("все параметры")}),p()},[p]),H=e=>1===e.online_application.commercial?e.online_application.url:"".concat(tc,"/").concat(e.url),K=(0,i.useCallback)(e=>{window.open(H(e))},[]),Y=(0,i.useCallback)(()=>{var e,t;(0,ep.D)({eventAction:ep.i.popdown,eventActionText:"information_".concat(null===(e=Z.data)||void 0===e?void 0:e.bank_name),eventLabel:null===(t=Z.data)||void 0===t?void 0:t.id}),Z.hide()},[Z]),G=(0,i.useCallback)(()=>{var e,t;(0,ep.D)({eventAction:ep.i.button,eventActionText:(0,e_.b)("Все условия по ипотеке"),eventLabel:null===(e=Z.data)||void 0===e?void 0:e.id}),(null==Z?void 0:null===(t=Z.data)||void 0===t?void 0:t.url)&&window.open("".concat(tc,"/").concat(Z.data.url),"_blank")},[Z]),J=Z.data?H(Z.data):void 0;(0,i.useEffect)(()=>(window.removeEventListener("scroll",g.current),g.current=()=>{if(!f.current)return;let{top:e}=f.current.getBoundingClientRect();h(e<=32)},window.addEventListener("scroll",g.current),()=>window.removeEventListener("scroll",g.current)),[]);let Q=(0,i.useCallback)(e=>{m({...d,sort:e})},[d,m]),X=(0,i.useCallback)(e=>{m({...d,sortDir:e})},[d,m]),$=10*s<C;return(0,o.jsxs)("div",{className:ai().wrap,children:[(0,o.jsx)(n1,{mainPageUrl:"#",onFlag:e=>{m({...d,flags:e})},isMobile:_}),(0,o.jsxs)("div",{id:y.Tm,className:ai().products_list_container,children:[b&&(0,o.jsxs)("h2",{className:ai().title,children:["Найдено ",C," ",(0,o.jsx)("span",{className:ai().titleHide,children:(0,nB.s)(C)})," ",C===A?"":"из ".concat(A)]}),(0,o.jsx)("div",{className:(0,F.Z)(ai().filter_wrapper,ai().newLayout),children:(0,o.jsx)(aa,{chips:E,sort:d.sort||tp.RATE,sortOrder:d.sortDir||"asc",onChangeSort:Q,onChangeSortOrder:X,sortOptions:t1,onClick:q,filterRef:f,inView:v,onClickChip:()=>{p()}})}),!x&&0===C&&(0,o.jsx)(u.W2,{children:(0,o.jsx)(nD.t,{onChangeParams:p})}),(0,o.jsxs)(u.W2,{as:"section",children:[(0,o.jsx)("div",{ref:l,children:b.length>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:ai().offers_lists,children:[B.length>0&&(0,o.jsx)(ae,{onOpen:K,onDetails:Z.show,title:"Онлайн-ипотеки от Финуслуг",offers:B,isMobile:_}),O.length>0&&(0,o.jsx)(ae,{onOpen:K,onDetails:Z.show,title:"Предложения на Финуслугах",offers:O,isMobile:_}),I.length>0&&(0,o.jsx)(ae,{onOpen:K,onDetails:Z.show,title:"Предложения рынка кредитов",offers:I,isMobile:_})]}),(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(()=>{var e,t,n;let l=1/0,o=0,r=[...B,...O,...I];r.forEach(e=>{let{amount:t}=e;t&&(l=Math.min(l,Number(t.from)),o=Math.max(o,Number(t.to)))});let i=null!==(t=(0,nE.z)(null===(e=r[0])||void 0===e?void 0:e.currency_id).code)&&void 0!==t?t:"RUB",s='"offers":{"@type":"AggregateOffer","url":"'.concat(U).concat(tc).concat(a.currentTag?"/".concat(tm).concat(a.currentTag.url):"").concat(M,'","priceCurrency":"').concat(i,'","lowPrice":"').concat((0,t4.uf)(l!=1/0?l:0),'","highPrice":"').concat((0,t4.uf)(o),'"}');return'{"@context":"https://schema.org","@type":"Product","name":"'.concat(R).concat(z,'","image":"').concat(U).concat(nL.oQ,'","description":"').concat(null!==(n=a.mortgagesData.description)&&void 0!==n?n:"",'",').concat(s,"}")})()}}),$&&(0,o.jsx)(ao.f,{page:s,onClick:D})]})}),x&&(0,o.jsx)("div",{className:ai().placeholder,children:[,,,,,].fill(0).map((e,t)=>(0,o.jsx)(nS.O,{},t))}),(0,o.jsx)(al.i,{tag:"p",className:ai().subtitle,children:a.mortgagesData.subtitle})]}),(0,o.jsx)(nU,{data:V,isOpen:Z.visible,url:J,onClose:Y,onAllConditionsClick:G})]})]})};var ap=n(91886);n(35388);var a_=n(38090),av=n(22518);function ah(e){var t,n,a,l;let{layout:r,regions:s,tags:c,tag:u,mortgagesData:d,posts:m,questionsData:p,banks:_,expertQuote:v}=e,{region:h,town:f}=(0,e0.T)(),[g,y]=(0,i.useState)(null!=v?v:void 0),{asPath:x}=(0,eP.useRouter)(),j=null!==(n=null===(t=x.split("/").find(e=>e.includes("teg_")))||void 0===t?void 0:t.slice(4))&&void 0!==n?n:"DEFAULT",k=null!==(a=c.find(e=>e.url===j))&&void 0!==a?a:void 0,N=(0,nh.iN)(x);return(0,ap.r)(()=>{(0,a_.r5)(N).then(y)},[N]),(0,o.jsxs)(tn.A,{data:r,withLocationConfirm:!0,children:[(0,o.jsx)(b.N,{title:d.title,description:d.description}),(0,o.jsx)(e8.o,{}),(0,o.jsx)(nM,{ssr:{mortgagesData:d,currentRegion:null!==(l=null==h?void 0:h.url)&&void 0!==l?l:"",currentTag:k}}),(0,o.jsx)(am,{ssr:{mortgagesData:d,currentTag:k,banks:_}}),void 0!==g&&(0,o.jsx)(av.c,{quote:g}),(0,o.jsx)(tE,{currentTag:u,region:h,town:f,posts:m,questionsData:p,regions:s,tags:c?c.filter(e=>e.url!==j):[]}),!1]})}n(44735),n(27714);var af=n(28254),ag=n(80330),ab=!0,ay=(0,i.memo)(function(e){var t,n;return(0,o.jsx)(r.sM,{children:e.isShowcase?(0,o.jsx)(af.p,{region:null!==(t=e.region)&&void 0!==t?t:void 0,town:null!==(n=e.town)&&void 0!==n?n:void 0,children:(0,o.jsx)(ah,{...e})}):(0,o.jsx)(ag.M,{children:(0,o.jsx)(ta,{...e})})})})},8760:function(e){e.exports={title:"DetailModal_title__HNdB3",container:"DetailModal_container__5i13N",content:"DetailModal_content__w8zaZ",logo:"DetailModal_logo__fmdnp",body:"DetailModal_body__dsbx7",text:"DetailModal_text__yxQEk"}},6604:function(e){e.exports={buttons:"LikeItBlock_buttons__9c8gY",likeItBlockWrapper:"LikeItBlock_likeItBlockWrapper__wl2iN",blockTitle:"LikeItBlock_blockTitle__7H0Mr",thumbsUp:"LikeItBlock_thumbsUp__XKiOR",button:"LikeItBlock_button__eW0nI",darkIcon:"LikeItBlock_darkIcon__zY5Hd",dislikeButton:"LikeItBlock_dislikeButton__CwEwu"}},10317:function(e){e.exports={logo:"MortgageListItem_logo__jaNvS",placeholderLogo:"MortgageListItem_placeholderLogo__QyaLT"}},45446:function(e){e.exports={title:"styles_title__b38Q2",mobilePopup:"styles_mobilePopup__G3e3Z",container:"styles_container__IGo0H",list:"styles_list__eSXKF",content:"styles_content__44gQX",buttons:"styles_buttons__co1FZ",contentRow:"styles_contentRow__VrBta",findConfigBlock:"styles_findConfigBlock__Mv4DU",footer:"styles_footer__hi3PE",field:"styles_field__u00Wg",titleWrapper:"styles_titleWrapper___05yj",icon:"styles_icon__38Wzs",fieldTitle:"styles_fieldTitle__03wac",fieldContent:"styles_fieldContent__OnBG0",comment:"styles_comment__gnX9Y",actualDate:"styles_actualDate__sl9Yc",skeletonContent:"styles_skeletonContent__8znd2"}},19762:function(e){e.exports={notFoundWrapper:"CreditsNotFound_notFoundWrapper__QdXvJ",searchIcon:"CreditsNotFound_searchIcon__m8B3S",notFoundText:"CreditsNotFound_notFoundText__vZE_n",changeParamsButton:"CreditsNotFound_changeParamsButton__0_UOj"}},79380:function(e){e.exports={page:"MortgageDetail_page__sKQYA",breadcrumbs:"MortgageDetail_breadcrumbs__teCQy",supportSection:"MortgageDetail_supportSection__05Wn6",about:"MortgageDetail_about___qTO0"}},57063:function(e){e.exports={container:"MortgageApplySteps_container__sxW1j"}},960:function(e){e.exports={container:"MortgageInfo_container__sbkaS",containerFull:"MortgageInfo_containerFull__7m2O1",containerWithoutCalculator:"MortgageInfo_containerWithoutCalculator__0CoQ_",promo:"MortgageInfo_promo__7syHy",left:"MortgageInfo_left__5QAPk",right:"MortgageInfo_right__nwez0",qrDesc:"MortgageInfo_qrDesc__5dVqL",qrMobile:"MortgageInfo_qrMobile__W15cn",typeDescription:"MortgageInfo_typeDescription__bvIrV",legend:"MortgageInfo_legend__mTeDq",firstPaymentAddonAfter:"MortgageInfo_firstPaymentAddonAfter__bG4Wd"}},65844:function(e){e.exports={title:"MortgagesList_title__l06z9",offersListContainer:"MortgagesList_offersListContainer__ZgMuQ",listTitle:"MortgagesList_listTitle__skUIP",container:"MortgagesList_container__cgMaG",listItem:"MortgagesList_listItem__IZLd8"}},90593:function(e){e.exports={container:"PaymentScheduleModal_container__WjKOq",withoutTabsContainer:"PaymentScheduleModal_withoutTabsContainer__sL5TF",value:"PaymentScheduleModal_value__hb6Gt",content:"PaymentScheduleModal_content__ccBR7",buttons:"PaymentScheduleModal_buttons__t_rw3",schedulePaymentsWrapper:"PaymentScheduleModal_schedulePaymentsWrapper__vuMsP",tabsContentWrapper:"PaymentScheduleModal_tabsContentWrapper__SBdzq",button:"PaymentScheduleModal_button__XgN14",active:"PaymentScheduleModal_active__ghKAR",tabelsWrapper:"PaymentScheduleModal_tabelsWrapper__Vrtbe",tableSchedule:"PaymentScheduleModal_tableSchedule__9C31o",columnTitles:"PaymentScheduleModal_columnTitles__2Nev8",columnTotalParams:"PaymentScheduleModal_columnTotalParams__noafF",titleYearSchedule:"PaymentScheduleModal_titleYearSchedule__GDqLl",contentSchedule:"PaymentScheduleModal_contentSchedule__D3Ifo",rowTabel:"PaymentScheduleModal_rowTabel__cgkZo",bodyField:"PaymentScheduleModal_bodyField__si6mT",field:"PaymentScheduleModal_field__EmCax",fieldLargeText:"PaymentScheduleModal_fieldLargeText__V8hm7",copyButton:"PaymentScheduleModal_copyButton__Afvcu",socialNetworkSection:"PaymentScheduleModal_socialNetworkSection__tXKRk",socialNetworkTitle:"PaymentScheduleModal_socialNetworkTitle__kutAv",socialButton:"PaymentScheduleModal_socialButton__VLXdF",footer:"PaymentScheduleModal_footer__P_fi8",fullWidth:"PaymentScheduleModal_fullWidth__d7e6Q",yearAccordion:"PaymentScheduleModal_yearAccordion__vT35D",mobileFooter:"PaymentScheduleModal_mobileFooter__A_gys",mobileActionButton:"PaymentScheduleModal_mobileActionButton__0eHGc",paymentSummaryButton:"PaymentScheduleModal_paymentSummaryButton__nUjmZ",expandableSocialMediaButton:"PaymentScheduleModal_expandableSocialMediaButton__d1PP8"}},12271:function(e){e.exports={content:"styles_content__pxEzH",breadcrumbs:"styles_breadcrumbs__jH8EC",text:"styles_text__0SGL8",title:"styles_title__WaTv0",location:"styles_location__z_oKT",subtitle:"styles_subtitle__oSzuM",moreButton:"styles_moreButton___h8zi",banner:"styles_banner__6_J8S",background:"styles_background__KxgOM",newLayout:"styles_newLayout__iR_wy"}},38421:function(e){e.exports={link:"styles_link__XzCzB",chip:"styles_chip__bgIDt",black:"styles_black__aacN4",transparentChip:"styles_transparentChip__4ZT35",hiddenChip:"styles_hiddenChip__COVhQ"}},65607:function(e){e.exports={row:"styles_row__dHTUh",open:"styles_open__GqvFI",firstRow:"styles_firstRow__is75c",toggle:"styles_toggle__2r_74"}},57167:function(e){e.exports={mobilePopup:"styles_mobilePopup__IgKC0",container:"styles_container__z9_3y",title:"styles_title__lAHXo",form:"styles_form__MeVkg",wrap:"styles_wrap__5SseV",half:"styles_half__YzJYA",field:"styles_field__SymN8",separator:"styles_separator__OP2pa",sort_title:"styles_sort_title__AIICK",sort_wrap:"styles_sort_wrap__t9xsY",sort_field:"styles_sort_field__eJEIr",checkboxField:"styles_checkboxField__BEvZa",heading:"styles_heading__stczP",footer:"styles_footer__9qQTK",submit:"styles_submit__n1m30"}},46588:function(e){e.exports={wrap:"styles_wrap__xmlYe",top_row:"styles_top_row__a2v4e",top_row_content:"styles_top_row_content__Y_c8l",top_row_buttons:"styles_top_row_buttons__X2LpS",action_button:"styles_action_button__4LW6f",show_button:"styles_show_button__Z61tW",chips_row:"styles_chips_row__WBMhp",addon:"styles_addon__kq2V5",params_button:"styles_params_button__Em2ZN"}},65989:function(e){e.exports={input:"styles_input__w_sHM"}},45939:function(e){e.exports={wrap:"styles_wrap__6TRS7",icon_button:"styles_icon_button__dK1LA",top_row:"styles_top_row__Uk7QJ",top_row_content:"styles_top_row_content__kk_4z",preposition:"styles_preposition__zJ_qc",top_row_buttons:"styles_top_row_buttons__KXpZP",show_button:"styles_show_button__VDLP9",chips_row:"styles_chips_row__k80AF",chip:"styles_chip__oznHA",mortgage_info:"styles_mortgage_info__jKRJE",bank_info:"styles_bank_info__UeeJT",icon:"styles_icon__Oug2a",groups:"styles_groups__LmVvB",group:"styles_group__5qWoM",title_group:"styles_title_group__lbYNP"}},83953:function(e){e.exports={title:"MortgagesCreditsCatalog_title__3ALPZ",card:"MortgagesCreditsCatalog_card__v_YKX",subTitle:"MortgagesCreditsCatalog_subTitle__JnyUy",container:"MortgagesCreditsCatalog_container__5BmyA",cardsList:"MortgagesCreditsCatalog_cardsList__gHJUT",icon:"MortgagesCreditsCatalog_icon__S5VCn",link:"MortgagesCreditsCatalog_link__Bbro2"}},92047:function(e){e.exports={mobilePopup:"styles_mobilePopup__qG2vn",container:"styles_container__o8xJL",title:"styles_title__u7Vww",content:"styles_content__5LJ6m",buttons:"styles_buttons__VE9L_",contentRow:"styles_contentRow__m3ok_",findConfigBlock:"styles_findConfigBlock__KOllm",footer:"styles_footer__kJQ4n",header:"styles_header__4RRDv",bankName:"styles_bankName__hzrqV",field:"styles_field__R6qky",titleWrapper:"styles_titleWrapper__Y4kn3",icon:"styles_icon__Cfzrb",fieldTitle:"styles_fieldTitle__koHjG",fieldContent:"styles_fieldContent__55SfP",comment:"styles_comment__DgBXq"}},77350:function(e){e.exports={controlLeft:"styles_controlLeft__zsGWP",controlRight:"styles_controlRight__S96BH",sliderWrapper:"styles_sliderWrapper__RjvdU",bannerCard:"styles_bannerCard__Psj5B",cardHead:"styles_cardHead__uO6Wh",image:"styles_image__t9YIp",cardBody:"styles_cardBody__JUrBo",categories:"styles_categories__rHZX3",category:"styles_category__1Qjld",text:"styles_text__x1urR",publ_date:"styles_publ_date__NUDd5"}},42316:function(e){e.exports={title:"styles_title__gEi2U",section:"styles_section__69r2O",tabsFilter:"styles_tabsFilter__gVzhr",sliderContainer:"styles_sliderContainer__Z9lbj"}},20676:function(e){e.exports={section:"styles_section__C_XdG",title:"styles_title__lnE9N",slider:"styles_slider__K0tB1",slide:"styles_slide__MhuRF",sliderList:"styles_sliderList___gtLu",card:"styles_card__hTNw7",imgWrapper:"styles_imgWrapper__Ue6gi",cardBody:"styles_cardBody__r7l0F",subTitle:"styles_subTitle__ayqhw",cardButton:"styles_cardButton__xJxcm",iconArrow:"styles_iconArrow__q2lrn"}},29535:function(e){e.exports={listTitle:"styles_listTitle__MeOax",list:"styles_list__bYSPt",card:"styles_card__HXa22",button_more_offers:"styles_button_more_offers__YXOO_"}},94370:function(e){e.exports={wrap:"styles_wrap__urJsb",content:"styles_content__gWWJg",text:"styles_text__bvQ2U",breadcrumbs:"styles_breadcrumbs__sV21c",title:"styles_title__pRY_s",location:"styles_location__Lr8si",subtitle:"styles_subtitle__rpqbj",moreButton:"styles_moreButton__YLOZP",banner:"styles_banner__H82c_"}},92941:function(e){e.exports={filter:"styles_filter__jrtk3"}},81923:function(e){e.exports={faq_container:"styles_faq_container__YZoO_"}},9469:function(e){e.exports={wrap:"styles_wrap__d_QXg",content:"styles_content__y9L_W",page_title:"styles_page_title__Y8O0t"}},6207:function(e){e.exports={wrap:"styles_wrap___CLvg",filter_wrapper:"styles_filter_wrapper__5o6ZP",newLayout:"styles_newLayout__xY8R1",products_list_container:"styles_products_list_container__Opwa2",title:"styles_title__sj9KH",titleHide:"styles_titleHide__0VpmN",offers_lists:"styles_offers_lists__sXzjq",placeholder:"styles_placeholder__yy33F",subtitle:"styles_subtitle__jCooy"}},41696:function(e){e.exports={widget:"yandex-realty_widget__xtPmC"}},45179:function(e){e.exports={commentText:"offer-terms_commentText__S3vmq"}},36921:function(e){e.exports={container:"fab-button_container__OxsQu",expandableContainer:"fab-button_expandableContainer__DaTzp",expanded:"fab-button_expanded__KfN3z"}},53250:function(e,t,n){"use strict";var a=n(67294),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=a.useState,r=a.useEffect,i=a.useLayoutEffect,s=a.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!l(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),a=o({inst:{value:n,getSnapshot:t}}),l=a[0].inst,u=a[1];return i(function(){l.value=n,l.getSnapshot=t,c(l)&&u({inst:l})},[e,n,t]),r(function(){return c(l)&&u({inst:l}),e(function(){c(l)&&u({inst:l})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},50139:function(e,t,n){"use strict";var a=n(67294),l=n(61688),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=l.useSyncExternalStore,i=a.useRef,s=a.useEffect,c=a.useMemo,u=a.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,a,l){var d=i(null);if(null===d.current){var m={hasValue:!1,value:null};d.current=m}else m=d.current;var p=r(e,(d=c(function(){function e(e){if(!s){if(s=!0,r=e,e=a(e),void 0!==l&&m.hasValue){var t=m.value;if(l(t,e))return i=t}return i=e}if(t=i,o(r,e))return t;var n=a(e);return void 0!==l&&l(t,n)?t:(r=e,i=n)}var r,i,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,a,l]))[0],d[1]);return s(function(){m.hasValue=!0,m.value=p},[p]),u(p),p}},61688:function(e,t,n){"use strict";e.exports=n(53250)},52798:function(e,t,n){"use strict";e.exports=n(50139)}},function(e){e.O(0,[5249,2935,6832,2730,3888,9705,1261,8367,3996,4457,883,5579,2724,2047,6047,9858,2888,9774,179],function(){return e(e.s=75609)}),_N_E=e.O()}]);