(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(44813)}])},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}},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:_,offerUpdateData:v,pageUrl:h}=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,pageUrl:h,offerDate:v})]}),f=(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:f},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}}}},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}}},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),[])}}},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(34588);function o(e){let{label:t,options:n,values:o,className:r,onChange:i}=e,s=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.Ph,{className:r,label:t,options:n,value:null!=s?s:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,onChange:e=>{i(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)}})}},44813:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return af},default:function(){return ab}});var a,l,o,r,i=n(85893),s=n(44076),c=n(67294);n(93188);var u=n(98670),d=n(77019),m=(n(22504),n(66535)),p=n(34588),_=n(41664),v=n.n(_),h=n(73172),g=n(84444),f=n(72335),b=n(54663),y=n(57696),x=n(73897);let j=[{id:1,label:"Условия",name:y.i9.conditions},{id:2,label:"Требования",name:y.i9.requirements},{id:3,label:"Требуемые документы",name:y.i9.requirementsDocs},{id:4,label:"Выдача и погашение",name:y.i9.redemption}],k=x.u.IPOTEKA,N=e=>"https://vk.com/share.php?url=".concat(encodeURIComponent(e)),C=e=>"https://t.me/share/url?url=".concat(encodeURIComponent(e)),A=e=>"https://connect.ok.ru/offer?url=".concat(encodeURIComponent(e));var w=n(44727);let M=e=>{let{data:t}=e,n=(0,c.useMemo)(()=>(0,y.sg)(t),[t]),a=(0,c.useMemo)(()=>j.filter(e=>n[e.name].some(e=>(0,w.B)(e.value))),[n]);return{tabsContent:n,tabsList:a}},T=(0,c.memo)(e=>{var t,n;let{data:a,bank:l,pageUrl:o}=e,{tabsContent:r,tabsList:s}=M({data:a});return(0,i.jsx)(f.z,{scrollBlockId:b.q6,pageUrl:o,seoText:(null==a?void 0:a.short_description)&&(null==a?void 0:a.short_description.length)>5?null==a?void 0:a.short_description:void 0,title:"Об ипотеке",offerUpdateData:null==a?void 0:a.m_updated_at,bank:{logoMobile:null==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:s,tabsContent:r,aboutCompanyLabel:"О банке",site:null!==(n=null==l?void 0:l.site.title)&&void 0!==n?n:void 0})});T.displayName="MortgageAbout";var P=n(17722),S=n(77910),L=n(64062);(a=l||(l={})).LEAD="lead",a.MASS="mass";var D=n(57063),I=n.n(D);let O=e=>{let{url:t,isMobile:n,className:a}=e,o=(0,c.useMemo)(()=>[{id:3,image:S.Z,text:"Перейдите на сайт банка,<br /> чтобы оформить заявку",buttonText:"Оформить на сайте банка",link:t},{id:4,image:P.Z,text:l.LEAD?"Эту ипотеку нельзя открыть через Финуслуги":"Эту ипотеку сейчас нельзя открыть онлайн на Финуслугах",buttonText:"Выбрать другую ипотеку",link:"/".concat(x.u.IPOTEKA)}],[t]);return(0,i.jsx)("div",{className:I().container,children:(0,i.jsx)(L.B,{className:a,title:"Где оформить ипотеку",pageUrl:x.u.IPOTEKA,id:b.VT,isMobile:n,slides:o})})};var R=n(86010),E=n(24443),B=n(82264),F=n(28644),W=n(48766),z=n(26024),U=n(90999),Z=n(72798);let q=(e,t)=>{let n=.13*e;return e<=2e6?n:(n=n>26e4?26e4:n)+(.13*t>39e4?39e4:.13*t)};var H=n(27929),K=n(25675),Y=n.n(K),V={src:"/kredity/assets/_next/static/media/chain.2d44409a.svg",height:24,width:24,blurWidth:0,blurHeight:0},J=n(16021),G=n(60207),Q=n(74552),X=n(89221),$=n(56790);let ee=(e,t)=>(0,c.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 et=n(17950);let en=(e,t)=>new Date(e,t+1,0).getDate();var ea=n(37220);let el=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=en(o,l);return{date:"".concat(a>r?r:a,".").concat(l<12?"0":"").concat(l,".").concat(o),year:o}},eo=e=>{let{rate:t,periodWithMoth:n,defaultBalanceDebt:a,balanceDebtPrevMonth:l,month:o}=e,r=t/12/100,i=(0,ea.z)((1+r)**n,5),s=(0,ea.z)(a*r*i/(i-1),1),c=(0,ea.z)(l*r,1),u=(0,ea.z)(s-c,1),d=(0,ea.z)(l-u,1);return{...el(o),paymentPerMoth:s,interestRepayment:c,loanRepayment:u,balanceDebt:d}},er=e=>{let{rate:t,periodWithMoth:n,balanceDebtPrevMonth:a,month:l}=e,o=(0,ea.z)(t/12/100*a,1),r=(0,ea.z)(a/n,1),i=(0,ea.z)(o+r,1),s=(0,ea.z)(a-r,1);return{...el(l),paymentPerMoth:i,interestRepayment:o,loanRepayment:r,balanceDebt:s}},ei=(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},es=e=>ei(e,eo),ec=e=>ei(e,er),eu=(e,t,n)=>{let a=n*t;return{totalOverpayment:a-e,totalCost:a}},ed=(e,t)=>{let n=[];return e&&n.push({label:"Аннуитетный",value:et.T.annuity}),t&&n.push({label:"Дифференцированный",value:et.T.differentiated}),n};var em=n(39918),ep=n(40741),e_=n(54228),ev=n(36921),eh=n.n(ev);let eg=e=>{let{elementList:t,isExpanded:n,...a}=e;return(0,i.jsxs)("div",{className:eh().container,children:[(0,i.jsx)("div",{className:(0,R.Z)(eh().expandableContainer,n&&eh().expanded),children:t.map(e=>e)}),(0,i.jsx)(p.zx,{...a})]})},ef=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},[]),eb=[{label:"Дата",key:"date"},{label:"Платеж",key:"paymentPerMoth"},{label:"Проценты",key:"interestRepayment"},{label:"Оплата долга",key:"loanRepayment"},{label:"Остаток долга",key:"balanceDebt"}],ey=["vk","tg","ok"];var ex=n(90593),ej=n.n(ex);let ek=e=>{let{children:t,className:n}=e;return(0,i.jsx)("div",{className:(0,R.Z)(ej().field,n),children:t})},eN=(0,c.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}),o=()=>(0,i.jsxs)("div",{className:(0,R.Z)(ej().columnTotalParams,ej().rowTabel),children:[(0,i.jsx)(ek,{className:ej().fieldLargeText,children:a?"Итоговая выплата":"Итого"}),eb.map(e=>"date"!==e.key&&(0,i.jsxs)(ek,{children:[a&&(0,i.jsx)("span",{children:e.label}),(0,i.jsxs)("span",{children:[" ",(0,ea.z)(l[e.key],1).toLocaleString("ru-RU",{useGrouping:!0}).replace(".",","),a&&" ₽"]})]},e.key))]}),r=e=>{let{it:t,index:n}=e;return(0,i.jsxs)(i.Fragment,{children:[!a&&(0!=n?(0,i.jsx)("h4",{className:ej().titleYearSchedule,children:t.year}):(0,i.jsx)("div",{})),t.schedule.map(e=>(0,i.jsx)("div",{className:(0,R.Z)(ej().rowTabel,ej().bodyField),children:eb.map((t,n)=>(0,i.jsxs)(ek,{children:[!!a&&"date"!==t.key&&(0,i.jsx)("span",{children:t.label+(a?"":", ₽")}),(0,i.jsx)("span",{className:ej().value,children:0===n?e[t.key]:e[t.key].toLocaleString("ru-RU",{useGrouping:!0}).replace(".",",")})]},t.key))},e.date))]})};return(0,i.jsxs)("div",{className:ej().tableSchedule,children:[!a&&(0,i.jsx)("div",{className:(0,R.Z)(ej().columnTitles,ej().rowTabel),children:eb.map(e=>(0,i.jsx)(ek,{children:e.label+("date"===e.key||a?"":", ₽")},e.key))}),(0,i.jsxs)("div",{ref:t,className:ej().contentSchedule,children:[n.map((e,t)=>(0,i.jsx)("div",{className:ej().yearSchedule,children:a?(0,i.jsx)(p.Qd,{id:"years",title:e.year.toString(),className:ej().yearAccordion,children:(0,i.jsx)(r,{it:e,index:t})}):(0,i.jsx)(r,{it:e,index:t})},e.year)),a&&(0,i.jsx)(o,{})]}),!a&&(0,i.jsx)(o,{})]})});eN.displayName="ScheduleTable";let eC=(0,c.forwardRef)((e,t)=>{let{isMobile:n,paymentScheduleParametrs:a,payments:l}=e,o=(0,c.useMemo)(()=>n?l:l.length>1?[...l,{label:"Оба платежа",value:"all"}]:l,[l,n]),[r,s]=(0,c.useState)(o[0].value),u=ef(es(a)),d=ef(ec(a)),m=(0,c.useRef)(null),_=(0,c.useRef)(null);return(ee(m,_),(0,c.useImperativeHandle)(t,()=>({onScrollToBottomHandle(){let e;null==(e=et.T.annuity&&m.current?m.current:_.current)||e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}}),[]),u&&d)?(0,i.jsxs)("div",{className:ej().schedulePaymentsWrapper,children:[l.length>1&&(0,i.jsx)("div",{className:ej().tabsContentWrapper,children:o.map(e=>(0,i.jsx)(p.zx,{variant:"secondary",size:n?"xs":"s",label:e.label,className:(0,R.Z)(ej().button,{[ej().active]:r===e.value}),onClick:()=>s(e.value)},e.label))}),(0,i.jsxs)("div",{className:ej().tabelsWrapper,children:[[et.T.annuity,"all"].includes(r)&&(0,i.jsx)(eN,{ref:m,data:u,isMobile:n}),[et.T.differentiated,"all"].includes(r)&&(0,i.jsx)(eN,{ref:_,data:d,isMobile:n})]})]}):null});eC.displayName="PaymentScheduleModalContent";let eA=e=>{let{isMobile:t,url:n}=e,[a,l]=(0,c.useState)(!1),o=e=>{(0,em.D)({eventAction:em.i.button,eventActionText:e,eventCategory:k})},r=async e=>{try{o(e),await navigator.clipboard.writeText(n),l(!0),setTimeout(()=>l(!1),2e3)}catch(e){console.error("Failed to copy uri: ",e)}};return(0,i.jsxs)(p.zx,{variant:"secondary",size:t?"s":"m",className:(0,R.Z)(ej().copyButton,t&&ej().mobileActionButton),onClick:()=>r((0,ep.b)("Скопировать ссылку")),children:[(0,i.jsx)(Y(),{src:V,alt:"Чат",height:"24"}),!t&&(a?"Ссылка скопирована":"Скопировать ссылку")]})},ew=e=>{var t;let n=(0,e_.S0)();(0,c.useEffect)(()=>{var t,n;e.bankName&&(null===(t=e.data)||void 0===t?void 0:t.id)&&e.isOpen&&(0,em.D)({eventAction:em.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=N(e.url);break;case"tg":l=C(e.url);break;case"ok":l=A(e.url)}null===(a=window.open(l,"_blank"))||void 0===a||a.focus(),(0,em.D)({eventCategory:x.u.IPOTEKA,eventAction:em.i.button,eventActionText:"share",url:l})},l=e=>{let{socialNetwork:t}=e;switch(t){case"vk":return(0,i.jsx)(X.Z,{});case"tg":return(0,i.jsx)(Q.Z,{});case"ok":return(0,i.jsx)(J.Z,{});default:return null}},o=e=>{let{socialNetwork:t,className:n}=e;return(0,i.jsx)("button",{onClick:()=>a(t),className:n,children:(0,i.jsx)(l,{socialNetwork:t})})},r=(e,t)=>{e(),setTimeout(t,2e3)},s=(0,i.jsxs)("div",{className:ej().footer,children:[(0,i.jsxs)("div",{className:ej().socialNetworkSection,children:[(0,i.jsx)("p",{className:ej().socialNetworkTitle,children:"Поделиться"}),(0,i.jsx)("div",{className:ej().socialNetworkButtonsWrapper,children:ey.map(e=>(0,i.jsx)(o,{socialNetwork:e,className:(0,R.Z)(ej().action,ej().socialButton)},e))})]}),(0,i.jsx)(eA,{isMobile:n,url:e.url})]}),u=(0,c.useRef)(null),[d,m]=(0,c.useState)(!1),_=(0,i.jsxs)("div",{className:ej().mobileFooter,children:[(0,i.jsx)(p.zx,{className:ej().paymentSummaryButton,size:"normal",onClick:()=>{var e;return null===(e=u.current)||void 0===e?void 0:e.onScrollToBottomHandle()},children:"Итоговая выплата"}),(0,i.jsxs)("div",{children:[(0,i.jsx)(p.u,{text:"Ссылка скопирована",children:(0,i.jsx)(i.Fragment,{children:t=>{let{show:a,hide:l}=t;return(0,i.jsx)("button",{onClick:()=>r(a,l),children:(0,i.jsx)(eA,{isMobile:n,url:e.url})})}})}),(0,i.jsx)(eg,{className:ej().mobileActionButton,variant:"secondary",isExpanded:d,onClick:()=>{m(e=>!e)},elementList:ey.map(e=>(0,i.jsx)(o,{socialNetwork:e,className:ej().expandableSocialMediaButton},e)),children:(0,i.jsx)(Y(),{src:G.Z,alt:"Чат",height:"24"})})]})]});return(0,i.jsx)($.h,{children:(0,i.jsx)(p.u_,{open:e.isOpen,onClose:e.onClose,footer:{children:n?_:s},header:{title:"График платежей"},children:(0,i.jsx)("div",{className:(0,R.Z)(ej().container,e.payments.length<=1&&ej().withoutTabsContainer),children:(0,i.jsx)(eC,{ref:u,paymentScheduleParametrs:e.paymentScheduleParametrs,payments:e.payments,isMobile:n})})})})};var eM=n(11163),eT=n(82080);let eP=e=>{var t,n,a;let l=Number(null!==(t=e.period.from)&&void 0!==t?t:1),o=Number(e.period.to),r=Number(null!==(n=e.amount.from)&&void 0!==n?n:0),i=Number(null!==(a=e.amount.to)&&void 0!==a?a:1e8),s=ed(!!e.repayment_procedure.annuity,!!e.repayment_procedure.differentiated),[u,d]=(0,c.useState)(o),[m,p]=(0,c.useState)({}),[_,v]=(0,c.useState)([s[0]]),{loanRateFrom:h,loanRateTo:g}=(0,c.useMemo)(()=>{let t=(m?Object.values(m):[]).reduce((e,t)=>e+t,0);return{loanRateFrom:Number(e.interest_rate.from)-t,loanRateTo:Number(e.interest_rate.to)-t}},[m,e.interest_rate.from,e.interest_rate.to]),{asPath:f}=(0,eM.useRouter)(),b=(0,c.useRef)(),y=r+(0,ea.z)(r*+e.first_payment.from/(100-+e.first_payment.from-1),1),x=Math.min(1e8,i+(0,ea.z)(i*+e.first_payment.from/(100-+e.first_payment.from),1)),j=Math.max(y,x),[k,N]=(0,c.useState)(j),C=(0,c.useMemo)(()=>(0,ea.z)(y/100*(+e.first_payment.from-1),1),[e.first_payment.from,y]),A=(0,c.useMemo)(()=>(0,ea.z)(x/100*+e.first_payment.from,1),[e.first_payment.from,x]),[w,M]=(0,c.useState)(A),T=(0,c.useCallback)(()=>k>i?(0,ea.z)(k-i,1):x===k?A:y===k?C:(0,ea.z)(k/100*+e.first_payment.from,1),[k,i,x,y,e.first_payment.from,A,C]),[P,S]=(0,c.useState)(T()),L=(0,c.useCallback)(()=>{let t=0;return t=y===k?y/100*+e.first_payment.from:k-r,(0,ea.z)(t,1)},[r,e.first_payment.from,y,k]),[D,I]=(0,c.useState)(L()),[O,R]=(0,c.useState)(0),[E,B]=(0,c.useState)(()=>w),F=(0,c.useMemo)(()=>(0,ea.z)(w/k*100,1),[w,k]),W=(0,c.useMemo)(()=>(0,ea.z)(y===k?k-D:k-w,1),[y,w,D,k]),z=(0,c.useMemo)(()=>"".concat(window.location.href.split("?")[0],"?propertyPrice=").concat((0,ea.z)(k,1),"&firstPayment=").concat((0,ea.z)(w,1)).concat(O>0?"&matCapital=".concat((0,ea.z)(O,1)):"").concat(+E>0?"&personalFunds=".concat((0,ea.z)(E,1)):"","&period=").concat(u).concat(s.length>1?"&paymentType=".concat(_[0].value):"").concat(Object.keys(m).filter(e=>!!m[e]).length?"&additionalParams=".concat(encodeURIComponent(Object.entries(m).filter(e=>!!e.at(-1)).map(e=>e[0]).join(","))):""),[k,w,O,E,u,s.length,_,m]),U=(0,c.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=w/(k/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(m).reduce((e,t)=>e+=t,0)-a},[e.rate_corrections_first_payment,e.interest_rate.from,m,k,w]),{paymentPerMoth:Z}=(0,c.useMemo)(()=>{var e;return((null===(e=_[0])||void 0===e?void 0:e.value)===et.T.annuity?eo:er)({rate:U,periodWithMoth:u,defaultBalanceDebt:W,balanceDebtPrevMonth:W,month:1})},[U,W,_,u]),{totalOverpayment:q,totalCost:H}=(0,c.useMemo)(()=>eu(W,u,Z),[Z,W,u]),K=(0,c.useCallback)(e=>{let{key:t,value:n}=e;p(e=>({...e,[t]:n}))},[]),Y=(0,c.useCallback)(e=>{d(e),M(Z)},[Z]),V=(0,c.useCallback)(t=>{N(t);let n=0;M(n=t>i?t-i:t>y?t/100*+e.first_payment.from:C),0===O&&B(Number(n)-O),I(L()),S(T())},[i,O,L,T,y,e.first_payment.from,C]),J=(0,c.useCallback)(e=>{M(e),B(e-O)},[O]),G=(0,c.useCallback)(t=>{let n=E+(t=null!=t?t:0);if(!(n>1e8-r)){if(R(t),n>D){let t=n+Number(e.amount.from);N(t>1e8?1e8:t)}w<P&&N((0,ea.z)(E/+e.first_payment.from*100,1)),M(n)}},[E,r,D,w,P,e.amount.from,e.first_payment.from]),Q=(0,c.useCallback)(t=>{t=null!=t?t:0,b.current&&clearInterval(b.current);let n=O+t;if(!(n>1e8-r)){if(B(t),t<C){b.current=setTimeout(()=>B(w),1e3);return}if(n>D){let t=n+Number(e.amount.from);N(t>1e8?1e8:t)}t<P&&N((0,ea.z)(((null!=t?t:0)<C?C:(null!=t?t:0)/+e.first_payment.from)*100,1)),M(n)}},[O,r,C,D,P,w,e.amount.from,e.first_payment.from]);return(0,c.useEffect)(()=>{var t,n,a,r;let i=(0,eT.p)(f,"?"),c=Array.isArray(i.property_price)?i.property_price[0]:i.property_price,u=Array.isArray(i.first_payment)?i.first_payment[0]:i.first_payment,m=Number(Array.isArray(i.period)?i.period[0]:i.period),_=Number(i.matCapital);if(0!==_&&R(_),i.additionalParams&&decodeURI(i.additionalParams.toString()).split("%2C").forEach(t=>{var n;let a=null===(n=e.rate_corrections)||void 0===n?void 0:n.find(e=>(0,ep.b)(e.title)===t);a&&null!==a.rate&&p(e=>({...e,[t]:a.rate}))}),void 0!==c&&N(Number(c)),void 0!==u&&M(Number(u)),void 0!==i.firstPayment&&(""!==i.firstPayment||(null===(t=i.firstPayment)||void 0===t?void 0:t.length)!==0)&&M(Math.min(P,Math.min(Number(i.firstPayment.toString()),D))),void 0!==i.personalFunds&&(""!==i.personalFunds||(null===(n=i.personalFunds)||void 0===n?void 0:n.length)!==0)&&B(Number(i.personalFunds.toString())),void 0!==i.propertyPrice&&(""!==i.propertyPrice||(null===(a=i.propertyPrice)||void 0===a?void 0:a.length)!==0)){let t=Math.min(Number(i.propertyPrice.toString()),1e8);t-w>Number(e.amount.to)&&M(t-Number(e.amount.to)),N(t)}if(void 0!==i.paymentType&&(""!==i.paymentType||(null===(r=i.paymentType)||void 0===r?void 0:r.length)!==0)){let e=s.find(e=>e.value===i.paymentType);void 0!==e&&v([e])}return!Number.isNaN(m)&&m>=l&&m<=o&&d(m),()=>clearTimeout(b.current)},[]),(0,c.useMemo)(()=>({totalOverpayment:q,totalCost:H,currectMonthlyPayment:Z,firstPaymentPercent:F,calculatorQueryParamsInLink:z,mortgageCredit:W,personalFunds:E,matCapital:O,currectInterestRate:U,firstPaymentMin:P,firstPaymentMax:D,propertyPriceMin:y,propertyPriceMax:1e8,propertyPrice:k,firstPayment:w,period:u,setPeriod:d,periodMin:l,periodMax:o,paymentTypeOptions:s,paymentType:_,setPaymentType:v,additionalParams:m,handleChangePropertyPrice:V,handleChangePeriod:Y,handleChangeAdditionalParams:K,handleChangePersonalFunds:Q,handleChangeMatCapital:G,handleChangeFirstPayment:J,loanRateFrom:h,loanRateTo:g}),[q,H,Z,F,z,W,E,O,U,P,D,y,1e8,k,w,u,l,o,s,_,m,V,Y,K,Q,G,J,h,g])};var eS=n(41262),eL=n(66566),eD=n(6584),eI=n(94466),eO=n(93478),eR=n(960),eE=n.n(eR);let eB="Оформить на сайте банка",eF="Где оформить ипотеку",eW=e=>{var t,n,a,l;let{bank:o,data:r,isMobile:s}=e,[u,_]=(0,c.useState)(!1),v=(0,c.useRef)(null),h=eP(r),g=(0,c.useCallback)(()=>{_(e=>!e)},[]),f=(0,c.useMemo)(()=>({value:h.period,max:h.periodMax,min:h.periodMin===h.periodMax?h.periodMin-1:h.periodMin,onChange:e=>{e=null!=e?e:h.periodMin,h.periodMin!==h.periodMax&&h.setPeriod(e)},step:1,ticks:[{label:(0,eS.H3)(h.periodMin),value:h.periodMin},{label:(0,eS.H3)(h.periodMax),value:h.periodMax}],unit:[eD.mp.ONE,eD.mp.FEW,eD.mp.MANY]}),[h]),y=(0,c.useMemo)(()=>({value:h.propertyPrice,max:h.propertyPriceMax,min:h.propertyPriceMin,onChange:e=>{e=null!=e?e:h.propertyPriceMin,h.propertyPriceMin!==h.propertyPriceMax&&h.handleChangePropertyPrice(e)},step:1e5,ticks:[{label:"".concat((0,eI.D$)(h.propertyPriceMin)," ₽"),value:h.propertyPriceMin},{label:"".concat((0,eI.D$)(h.propertyPriceMax)," ₽"),value:h.propertyPriceMax}],unit:"₽"}),[h]),j=(0,c.useMemo)(()=>({value:h.firstPayment,max:h.firstPaymentMax,min:h.firstPaymentMin,onChange:e=>{e=null!=e?e:h.firstPaymentMin,h.firstPaymentMin!==h.firstPaymentMax&&h.handleChangeFirstPayment(e)},step:1e3,ticks:[{label:"".concat((0,eI.D$)(h.firstPaymentMin)," ₽"),value:h.firstPaymentMin},{label:"".concat((0,eI.D$)(h.firstPaymentMax)," ₽"),value:h.firstPaymentMax}],unit:"₽"}),[h]),k=(0,c.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,c.useMemo)(()=>{var e;let t=(null===(e=r.application_term.custom_text)||void 0===e?void 0:e.from)!==void 0?(0,W.B)(r.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,eL.$)("".concat(l,"-").concat(a,"-").concat(o)))},[null===(t=r.application_term.custom_text)||void 0===t?void 0:t.from]),C=(0,c.useCallback)(()=>{v.current&&v.current.focus()},[]),A=(0,c.useCallback)(e=>{e&&((0,em.D)({eventCategory:x.u.IPOTEKA,eventAction:em.i.filterCatalog,eventLabel:"Платеж",eventValue:null==e?void 0:e.label}),h.setPaymentType([e]))},[h]),w=(0,c.useMemo)(()=>[{id:1,label:(0,eS.S_)(h.period)},{id:2,label:"".concat((0,eI.uf)(h.propertyPrice)," ₽")}],[h.propertyPrice,h.period]),M=(0,c.useMemo)(()=>{let e=[],t=r.full_price;t&&e.push({label:"ПСК",value:(0,d.W)(t),description:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n          Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."},{label:"Процентная ставка",value:(0,eI.sz)(h.loanRateFrom,h.loanRateTo)}),e.push({label:"Первый взнос",value:"".concat((0,eI.D$)((0,ea.z)(h.firstPayment,1)),"&#160;₽")},{label:"Платеж в месяц",value:"".concat((0,eI.D$)(h.currectMonthlyPayment),"&#160;₽")},{label:"Налоговый вычет",value:"".concat((0,eI.D$)((0,ea.z)(q(h.propertyPrice,h.totalOverpayment),1))," ₽")});let n=h.paymentType;if(n){var a;e.push({label:"Тип погашения",value:(null===(a=n[0])||void 0===a?void 0:a.value)===et.T.annuity?"Аннуитетный":"Дифференцированный"})}return e.push({label:"Переплата",value:"".concat((0,eI.D$)(h.totalOverpayment),"&#160;₽"),description:"Это сумма процентов, которые заемщик платит за пользование кредитом. Она может уменьшиться, если гасить кредит досрочно"},{label:"Итоговая выплата",value:"".concat((0,eI.D$)(h.totalCost),"&#160;₽")}),e},[h.currectMonthlyPayment,h.firstPayment,h.loanRateFrom,h.loanRateTo,h.paymentType,h.propertyPrice,h.totalCost,h.totalOverpayment,r.full_price]),T=(0,c.useMemo)(()=>{var e;return(null==r?void 0:null===(e=r.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,ep.b)(e.title)],onChange:(t,n)=>h.handleChangeAdditionalParams({key:(0,ep.b)(e.title),value:n.target.checked&&e.rate||0})})))||[]},[h,null==r?void 0:r.rate_corrections]),[P,S]=(0,c.useState)(!1),L=(0,c.useCallback)(()=>{S(e=>!e)},[]),[D,I]=(0,c.useState)(!1);(0,c.useEffect)(()=>{I(!!h.matCapital)},[h.matCapital]);let O=(0,c.useCallback)(()=>{I(!0)},[]),K=(0,c.useMemo)(()=>[P,L],[P,L]),Y=void 0!==r.amount.from&&void 0!==r.amount.to&&+r.amount.to>+r.amount.from;return(0,i.jsxs)(H.U.Provider,{value:K,children:[(0,i.jsxs)(m.W2,{className:(0,R.Z)(eE().container,eE().containerFull,{[eE().containerWithoutCalculator]:!Y}),children:[(0,i.jsx)(U.F,{url:r.url,bank:{logoMob:null==o?void 0:o.logo_mob,url:"/banki/".concat(null==o?void 0:o.url),name:null!==(l=null==o?void 0:o.name)&&void 0!==l?l:r.bank_name},pageUrl:x.u.IPOTEKA,title:r.title,isSmall:a,isMobile:s,tagTheme:"green",className:eE().promo}),Y&&(0,i.jsxs)("div",{className:eE().left,children:[(0,i.jsx)(E.y,{isMobile:s,title:"Настройки ипотеки",pageUrl:x.u.IPOTEKA,infoLink:{isShow:!s,text:"Подробнее об ипотеке",idScrollBlock:b.q6,offPadding:!0,widthMaxContent:!0},items:[{elements:[{type:"inputRange",desription:"Впишите сюда стоимость жилья. Если деньги нужны вам не только на покупку недвижимости, но и на другие цели, выберите другой тип кредита",props:{label:"Стоимость недвижимости",...y}}]},{elements:[{type:"inputRange",props:{label:"Срок погашения",...f}}]},{elements:[{type:"inputRange",props:{label:"Первый взнос",...j}}]},r.maternal_capital.has>0?{isCollapsedElements:D,titleElements:"Использовать материнский капитал",onToggle:e=>{I(e)},elements:[{type:"moneyInput",props:{label:"Сумма сертификата",value:h.matCapital,onFocus:O,onChange:h.handleChangeMatCapital}},{type:"moneyInput",props:{label:"Личные средства",value:h.personalFunds,onChange:h.handleChangePersonalFunds}}]}:null,{elements:[{type:"divider",isHidden:!D||!h.paymentType||h.paymentTypeOptions.length<=1}]},{elements:[{type:"select",isHidden:!h.paymentType||h.paymentTypeOptions.length<=1,desription:(0,i.jsx)(z.a,{className:eE().typeDescription,type:null===(n=h.paymentType[0])||void 0===n?void 0:n.value}),props:{label:"Тип погашения",options:h.paymentTypeOptions,onChange:A,value:k}}]}],chips:w,additionalItemsTitle:"Уменьшить ставку",additionalItems:T,isShowChips:s&&!!(null==w?void 0:w.length)&&!u,isExpandSettings:u,onToggleSettings:g}),(0,i.jsx)(Z.S,{text:"Все для ипотеки: страхуем недвижимость, жизнь, здоровье или все сразу",hideButtons:!0,hideQr:!0,isSmall:!0,className:eE().qrDesc})]}),(0,i.jsxs)("div",{className:(0,R.Z)({[eE().right]:Y}),children:[(0,i.jsx)(F.y,{captionTitle:N,pageUrl:x.u.IPOTEKA,onEdit:C,amount:h.mortgageCredit,repayment:h.totalOverpayment,disclaimer:"Предварительные условия. Не оферта",tag:r.online_application.commercial_desc,footerActions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.zx,{as:"a",target:"_blank",className:eE().button,href:r.online_application.url,onClick:()=>{(0,em.D)({eventCategory:x.u.IPOTEKA,eventAction:em.i.link,eventActionText:eB})},children:eB}),(0,i.jsx)(p.zx,{as:"a",onClick:()=>{(0,em.D)({eventCategory:x.u.IPOTEKA,eventAction:em.i.button,eventActionText:eF}),(0,eO.l)(b.VT,{offset:s?0:-100,position:"top"})},className:eE().button,variant:"secondary",children:eF}),(0,i.jsx)(B.j,{offPadding:!1,widthMaxContent:!1,text:"График платежей",iconColor:"light",mainPageUrl:x.u.IPOTEKA,className:eE().link,onClick:L})]}),valuesList:M,showChart:!0}),(0,i.jsx)(Z.S,{text:"Все для ипотеки: страхуем недвижимость, жизнь, здоровье или все сразу",hideButtons:!0,hideQr:!0,isSmall:!0,className:eE().qrMobile})]})]}),(0,i.jsx)(ew,{data:r,bankName:null==o?void 0:o.name,isOpen:P,paymentScheduleParametrs:{rate:Number(h.currectInterestRate),periodWithMoth:Number(h.period),defaultBalanceDebt:h.mortgageCredit},onClose:L,payments:h.paymentTypeOptions,logo:null==o?void 0:o.logo_mob,url:h.calculatorQueryParamsInLink,mainPageUrl:x.u.IPOTEKA})]})};var ez=n(13442),eU=n(84135),eZ=n(19438),eq=n(65737),eH=n(30976),eK=n(10317),eY=n.n(eK);let eV=(0,c.memo)(e=>{let{data:t,className:n,onDetailInfoClick:a,onClick:l}=e,o=[],r=(0,c.useRef)(null),s=(0,c.useRef)(!1),u=(0,c.useRef)(null),d={text:(0,eI.dN)({from:t.amountFrom,to:t.amountTo},{currency:t.currency}),caption:"Сумма кредита"},m={text:"от ".concat((0,eI.uf)(t.payment),"%"),caption:"Первый взнос"};o.push({label:"Ипотека",variant:"green"}),o.push({label:t.typeText,variant:"primary"});let p=e=>{(0,eq.l)({event:"data-event",eventAction:e,eventCategory:x.u.IPOTEKA,eventLabel:t.id,eventValue:t.eventValue}),null==l||l(t)},_=(0,c.useCallback)(e=>{let[n]=e;1===n.intersectionRatio&&!s.current&&((0,eq.l)({event:"data-event",eventAction:"show_in_catalog",eventCategory:x.u.IPOTEKA,eventLabel:t.id}),s.current=!0,r.current&&u.current&&r.current.unobserve(u.current))},[t.id]);return(0,c.useEffect)(()=>{r.current&&u.current&&r.current.unobserve(u.current),!s.current&&u.current&&(r.current=new IntersectionObserver(_,{root:null,threshold:[1]}),r.current.observe(u.current))},[_]),(0,i.jsx)("div",{ref:u,className:n,onClick:()=>p("click_button_".concat((0,ep.b)("Подать заявку"))),children:(0,i.jsx)(eH.J,{icon:t.logo?(0,i.jsx)("div",{className:eY().logo,children:(0,i.jsx)(Y(),{width:56,height:56,src:t.logo,alt:"logo"})}):(0,i.jsx)("div",{className:eY().placeholderLogo}),companyName:t.bankName,productName:t.title,productUrl:t.url,buttonUrl:t.url,tags:o,advantageAmountFrom:d,advantageAmountTo:m,onDetailInfoClick:()=>{a(t),(0,em.D)({eventCategory:x.u.IPOTEKA,eventAction:em.i.button,eventActionText:"open_modal"})},className:eY().plate})})});eV.displayName="MortgageListItem";var eJ=n(89504),eG=n(32244);let eQ=e=>{var t,n,a,l;let{banks:o,mortgage:r,period:i}=e,s="/".concat(x.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(x.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 eX=n(84053),e$=n(94347),e0=n(65844),e1=n.n(e0);let e2=(0,c.memo)(e=>{let{bank:t,banks:n,currentCardId:a,mortgagesList:l,mortgagesFinuslugiList:o,className:r,newContainer:s=!1}=e,{town:u}=(0,e$.T)(),[d,p]=(0,c.useState)(),_=(0,c.useCallback)(()=>{p(void 0)},[]),v=(0,c.useCallback)(e=>{(0,em.D)({eventCategory:x.u.IPOTEKA,eventAction:em.i.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},[]),h=(0,c.useMemo)(()=>{let e=l.length?l.filter(e=>e.id!==a):[];return(0,eG.$)({productList:e,anotherList:e,count:eJ.NU})},[l,a]),g=(0,c.useMemo)(()=>{let e=o||[];return(0,eG.$)({productList:e,anotherList:e,count:eJ.wo-h.length})},[h.length,o]),f=(0,c.useMemo)(()=>({bankList:h.map(e=>eQ({banks:[t],mortgage:e})),finuslugiList:g.map(e=>eQ({banks:n,mortgage:e}))}),[t,n,h,g]),b=(0,c.useCallback)(e=>{if(!e)return;let n=[h,g].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,g]),y=(0,c.useCallback)(e=>{p(b(e)),e&&(0,em.D)({eventCategory:x.u.IPOTEKA,eventAction:em.i.popup,eventActionText:e.title,eventLabel:e.id})},[b]),j="".concat((0,eX.ZR)().mainBaseUrl,"/banki/").concat(t.url,"/ipoteka").concat((null==u?void 0:u.url.length)?"/reg_"+u.url:""),k=(0,i.jsx)(i.Fragment,{children:!!f.bankList.length&&(0,i.jsxs)("section",{className:e1().offersListContainer,children:[(0,i.jsxs)("p",{className:e1().listTitle,children:["Ипотека от ",t.name]}),f.bankList.map(e=>(0,i.jsx)(eV,{text:"Подать заявку",className:e1().listItem,data:e,onDetailInfoClick:y,onClick:v},e.url)),(0,i.jsx)(ez.j,{offPadding:!0,text:"Bсе предложения от банка",href:j,target:"_blank",iconColor:"light",mainPageUrl:x.u.IPOTEKA})]})});return f.finuslugiList.length&&(e1().offersListContainer,e1().listTitle,f.finuslugiList.map(e=>(0,i.jsx)(eV,{text:"Подать заявку",className:e1().listItem,data:e,onClick:v,onDetailInfoClick:y},e.url)),ez.j,x.u.IPOTEKA,x.u.IPOTEKA),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("section",{className:(0,R.Z)(e1().container,r),children:[(0,i.jsx)("h3",{className:e1().title,children:"Другие предложения"}),s?(0,i.jsx)(m.W2,{children:k}):(0,i.jsx)(eZ.t,{children:k})]}),(0,i.jsx)(eU.h,{data:d,isOpen:!!d,onClose:_,mainPageUrl:x.u.IPOTEKA})]})});e2.displayName="MortgagesList";var e4=n(51469),e3=n(71276),e8=n(53487),e5=n(37502),e6=n(44215),e9=n(79380),e7=n.n(e9);function te(e){var t;let{offer:n,journal:a,questions:l,description:o,banks:r,refererTag:s,offers:u,offersFinuslugi:d,support:_}=e,f=(0,e_.S0)(),{region:b,town:y}=(0,e$.T)(),j=r.find(e=>+e.id===n.bank_id),k=(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,h.MK)(e.data.html)).join("").trim()})))||[],N="Ипотека \xab".concat(n.title,"\xbb от ").concat(null!==(t=null==j?void 0:j.name_r)&&void 0!==t?t:""),C=(0,c.useMemo)(()=>{var e;let t=(null==y?void 0:y.name_p)||(null==b?void 0:b.name_p)?" в ".concat((null==y?void 0:y.name_p)||(null==b?void 0:b.name_p)):"",a="".concat((null==b?void 0:b.url)?"/reg_".concat(null==b?void 0:b.url):"").concat((null==y?void 0:y.url)?"/".concat(null==y?void 0:y.url):""),l=[{label:"Главная",href:"/"},{label:"Ипотеки".concat(t),href:"/".concat(x.u.IPOTEKA).concat(a)}];return s&&l.push({label:"".concat(s.name).concat(t),href:"/".concat(x.u.IPOTEKA,"/teg_").concat(s.url).concat(a)}),l.push({label:"".concat(null!==(e=null==j?void 0:j.name)&&void 0!==e?e:n.bank_name," Ипотека ").concat(n.title)}),l},[null==j?void 0:j.name,n.bank_name,n.title,s,null==b?void 0:b.name_p,null==b?void 0:b.url,null==y?void 0:y.name_p,null==y?void 0:y.url]);return(0,i.jsxs)("main",{className:e7().page,children:[(0,i.jsx)(g.N,{productId:String(n.id),title:N,description:o}),(0,i.jsx)(e3.o,{}),(0,i.jsx)(e4.g,{questions:k}),(0,i.jsx)("div",{className:e7().navigationWrapper,children:(0,i.jsx)(m.W2,{children:(0,i.jsx)(p.Oo,{className:e7().breadcrumbs,items:C})})}),(0,i.jsx)(eW,{bank:j,data:n,isMobile:f}),(0,i.jsx)(m.W2,{className:e7().about,children:(0,i.jsx)(T,{data:n,bank:j,pageUrl:x.u.IPOTEKA})}),(0,i.jsx)(O,{isMobile:f,url:n.online_application.url}),void 0!==j&&(0,i.jsx)(e2,{newContainer:!0,bank:j,banks:r,currentCardId:n.id,mortgagesList:u,mortgagesFinuslugiList:d}),(null==a?void 0:a.posts.length)>0&&(0,i.jsx)(m.W2,{children:(0,i.jsx)(e8.t,{posts:null==a?void 0:a.posts,eventCategory:x.u.IPOTEKA})}),(0,i.jsx)("div",{className:e7().supportSection,children:(0,i.jsx)(e5.B,{value:_})}),(0,i.jsx)("div",{className:e7().faqSection,children:(0,i.jsx)(e6.B,{isAllExpanded:!0,newContainer:!0,faqBlockTitle:"",Link:e=>(0,i.jsx)(v(),{...e}),dataLayerPush:eq.l,questions:k,eventCategory:"ipoteki_support_block",href:"".concat((0,eX.ZR)().mainBaseUrl,"/help"),checkAllText:"Читать все вопросы про ипотеку"})})]})}var tt=n(51138);n(21952);var tn=n(45752);function ta(e){let{layout:t,mortgage:n,journal:a,questions:l,description:o,banks:r,offers:s,offersFinuslugi:c,support:u}=e;return(0,i.jsx)(tn.A,{data:t,children:(0,i.jsx)(te,{offer:n,journal:a,questions:l,description:o,banks:r,refererTag:null,offers:s,offersFinuslugi:c,support:u})})}n(48206);var tl=n(53850);let to=e=>(0,u.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;let o={};return void 0!==e.amount&&(o.amount=e.amount),void 0!==e.downpayment&&(o.first_payment=e.downpayment),void 0!==e.term&&(o.period=e.term),void 0!==e.property_type&&(o.property_type=e.property_type),void 0!==e.market&&(o.real_estate_market=null!==(t=({first:"primary",second:"secondary"})[e.market])&&void 0!==t?t:"primary"),void 0!==e.form&&(o.form=null!==(n=({cash:"cash",account:"to_account",third_party_bank_account:"to_custom_account"})[e.form])&&void 0!==n?n:"to_account"),void 0!==e.proof&&(o.income_proof=e.proof),void 0!==e.provision&&(o.loan=null!==(a=({not_required:"not_required",deposit:"pledge",guarantee:"guarantee",not_required_and_guarantee:"pledge,guarantee"})[e.provision])&&void 0!==a?a:""),e.banks&&e.banks.length>0&&(o.bank=e.banks.join(",")),void 0!==e.flags&&e.flags.includes("maternal_capital")&&(o.maternal_capital=1),o.sort=null!==(l=void 0!==e.sort?({rate:"rate",payment:"amount",downpayment:"firstPayment"})[e.sort]:void 0)&&void 0!==l?l:"rate",o.order=e.sortDir,o},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,d.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 tg=[{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 tf=(0,c.memo)(e=>{let{pageUrl:t}=e,{mainBaseUrl:n}=(0,eX.ZR)(),a=(0,c.useCallback)((e,a)=>{var l;e.stopPropagation();let o=(0,ep.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,i.jsxs)(m.W2,{className:th().container,children:[(0,i.jsx)("h2",{className:th().title,children:"Каталог кредитов"}),(0,i.jsx)("div",{className:th().cardsList,children:tg.map(e=>(0,i.jsxs)("div",{className:th().card,onClick:t=>a(t,e),children:[(0,i.jsx)(Y(),{className:th().icon,width:158,height:60,alt:"banner-".concat(e.value),src:e.logo}),(0,i.jsx)("p",{className:th().subTitle,dangerouslySetInnerHTML:{__html:e.title}})]},e.id))})]})}),tb=n(93890),ty=n(91500),tx=n(81923),tj=n.n(tx);let tk=(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("/"))},tN=e=>{let{posts:t,regions:n,tags:a,questionsData:l,currentTag:o,region:r,town:s,support:c}=e,{query:u}=(0,eM.useRouter)(),d=function(e,t,n,a,l,o){let r=e.map(e=>({title:(0,t_.Q)(e.title),text:(0,i.jsx)(h.Ln,{data:(0,t_.W)(e).content})}));r.push(...(0,ty.a)(x.u.IPOTEKA,n,a,l,o,{nominativeCase:"Ипотека",genitiveCase:"ипотек"}));let s=t.reduce((e,t)=>{if(void 0===t.url_redirect){let n=(0,tb.q9)(t.url,t.name);e.push(n)}return e},[]);return r.push({title:"Виды ипотек",text:(0,i.jsx)(tb.oP,{children:s})}),r}(l,a.reduce((e,t)=>(t.url_redirect||e.push({...t,url:tk(t,u.segments)}),e),[]),n,o,r,s);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:tj().faq_container,children:(0,i.jsx)(e6.B,{isAllExpanded:!0,newContainer:!0,Link:e=>(0,i.jsx)(v(),{...e}),dataLayerPush:eq.l,questions:d,eventCategory:"mortgages_support_block",href:"".concat((0,eX.ZR)().mainBaseUrl,"/help"),checkAllText:"Читать все вопросы про ипотеку"})}),t.length>0&&(0,i.jsx)(e8.t,{eventCategory:tc,posts:t}),(0,i.jsx)(e5.B,{value:c}),(0,i.jsx)(tf,{pageUrl:tc})]})};var tC=n(65618),tA=n(59194),tw=n(94020),tM=n(38421),tT=n.n(tM);function tP(e){let{chips:t,onChipClick:n,lastInFirstRowChipIndex:a,isMobile:l,isFirstRow:o,useLinkChips:r}=e,{asPath:s}=(0,eM.useRouter)(),{mainBaseUrl:c}=(0,eX.ZR)(),u="".concat(c).concat(s),d=(e,t)=>{let{value:r,label:s,color:c}=e;return(0,i.jsx)("div",{className:(0,R.Z)(tT().chip,tT()[c],{[tT().transparentChip]:o&&t>a},{[tT().hiddenChip]:!o&&l&&t<=a}),onClick:()=>n(r),children:s},r)};return(0,i.jsx)(i.Fragment,{children:t.map(r?(e,t)=>{let n=e.value,a=new URL(u);return a.searchParams.delete("property_type"),a.searchParams.append("property_type",e.value),(0,i.jsx)(v(),{className:tT().link,href:a.toString(),onClick:e=>e.preventDefault(),children:d(e,t)},n)}:d)})}let tS=(e,t)=>{let[n,a]=(0,c.useState)(e),[l,o]=(0,c.useState)(e),r=(0,c.useRef)(null),i=(0,c.useRef)(null);return(0,c.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,i]};var tL=n(65607),tD=n.n(tL);function tI(){return(tI=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 tO=function(e){return c.createElement("svg",tI({xmlns:"http://www.w3.org/2000/svg",width:12,height:6,fill:"none",viewBox:"0 0 12 6"},e),o||(o=c.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 tR=e=>{let{onChipClick:t,chips:n,className:a}=e,[l,o]=(0,c.useState)(!1),r=!(0,tw.V)("sm"),s=l?"Скрыть":"Ещё",[u,d,m,p]=tS(n.length,r);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{ref:m,className:(0,R.Z)(tD().row,a,{[tD().open]:l}),children:[(0,i.jsx)(tP,{chips:n,onChipClick:t,lastInFirstRowChipIndex:u,isMobile:!1,useLinkChips:!0}),d<n.length-1&&(0,i.jsxs)("div",{ref:p,className:(0,R.Z)(tD().toggle,{[tD().open]:l}),onClick:()=>{(0,em.D)({eventAction:em.i.button,eventActionText:(0,ep.b)(s)}),o(e=>!e)},children:[(0,i.jsx)(tO,{})," ",s]})]})})};var tE=n(46588),tB=n.n(tE);let tF=e=>{let{count:t,children:n,addon:a,chips:l,header:o,isLoading:r,onChipClick:s,onParamsClick:c,onShowClick:u,useLinkChips:d}=e,m=(0,i.jsx)(tR,{chips:l,onChipClick:s,useLinkChips:d});return(0,i.jsxs)("div",{className:tB().wrap,children:[o,(0,i.jsxs)("div",{className:tB().top_row,children:[(0,i.jsx)("div",{className:tB().top_row_content,children:n}),(0,i.jsxs)("div",{className:tB().top_row_buttons,children:[(0,i.jsx)(p.zx,{variant:"secondary",label:"Все параметры",pending:r,disabled:r,onClick:c,iconLeft:(0,i.jsx)(tA.IconFdsParametersHorizontalO,{}),className:tB().params_button}),(0,i.jsx)(p.zx,{onClick:u,className:tB().show_button,pending:r,disabled:r,label:"Показать".concat(t?" ".concat(t):"")})]}),(0,i.jsx)("div",{className:tB().chips_row,children:m}),a&&(0,i.jsx)("div",{className:tB().addon,children:a})]})]})};tF.displayName="MainFilter";var tW=n(86992),tz=n(91646),tU=n(45117),tZ=n(23259),tq=n(30942),tH=n(12271),tK=n.n(tH),tY=n(41696),tV=n.n(tY);function tJ(){return(0,i.jsx)("iframe",{className:tV().widget,src:"https://realty.ya.ru/widgets/back-call-request"})}var tG=n(21308),tQ=n(94370),tX=n.n(tQ);let t$=(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,"]}")},t0=e=>{let{currentTag:t,subtitle:n,className:a}=e,{handleToggleModal:l}=(0,s.ar)(),o=(0,tZ.I)(),r=(0,e_.S0)(),u=(0,tq.U)(),d=t?t.name:"Ипотека",{region:_,town:v}=(0,e$.T)(),h=(null==v?void 0:v.name_p)||(null==_?void 0:_.name_p),g=h?" в ".concat(h):"",f="".concat(_?"/".concat(td).concat(_.url):"").concat(v?"/".concat(v.url):""),{mainBaseUrl:b,isYandexRealty:y}=(0,eX.ZR)(),x=t$(b,t,d,g,f),j=(0,c.useCallback)(()=>{(0,em.D)({eventAction:em.i.link,eventActionText:(0,ep.b)("Главная"),url:b})},[b]),k=(0,c.useCallback)(()=>{l(!0),(0,em.D)({eventAction:em.i.popup,eventActionText:"".concat((0,ep.b)("регион"),"_").concat(h)})},[h,l]);return(0,i.jsxs)("div",{className:(0,R.Z)(a,tX().wrap,"bg-".concat(u)),children:[(0,i.jsx)(m.W2,{children:(0,i.jsxs)("div",{className:(0,R.Z)(tX().breadcrumbs),children:[(0,i.jsx)(p.Oo,{items:(()=>{let e=[{label:"Главная",href:"/"}];return t&&e.push({label:"Ипотека".concat(g),href:"".concat(tc).concat(f)}),e.push({label:"".concat(d).concat(t?"":g)}),e})(),isMobile:r,onClick:j}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:x}})]})}),y&&(0,i.jsx)(m.W2,{children:(0,i.jsx)(tJ,{})}),(0,i.jsx)(m.W2,{children:(0,i.jsxs)("div",{className:tX().content,children:[(0,i.jsxs)("div",{className:tX().text,children:[(0,i.jsxs)("h1",{className:tX().title,children:[d," ",h&&(0,i.jsxs)(i.Fragment,{children:["в"," ",(0,i.jsx)("span",{onClick:k,className:tX().location,children:h})]})]}),(0,i.jsx)(tG.N,{tag:"p",className:tK().subtitle,children:n})]}),(0,i.jsx)("div",{className:tX().banner,children:(0,i.jsx)(tz.Z,{config:o,params:tU.P3})})]})})]})},t1=[{value:"not_required",label:"Не требуется"},{value:"ndfl",label:"Справка 2-НДФЛ"},{value:"bank_form",label:"Справка по форме банка"},{value:"custom_form",label:"Альтернативные формы"}],t2=[{value:"not_required",label:"Не требуется"},{value:"deposit",label:"Залог"},{value:"guarantee",label:"Поручительство"},{value:"not_required_and_guarantee",label:"Залог и поручительство"}],t4=[{value:"cash",label:"Наличными"},{value:"account",label:"На счет"},{value:"third_party_bank_account",label:"На счет в стороннем банке"}],t3=[{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:"Другое"}],t8=[{value:"first",label:"Первичный"},{value:"second",label:"Вторичный"}],t5=[{label:"По ставке",value:"rate",shortLabel:"Ставка"},{label:"По взносу",value:"downpayment",shortLabel:"Взнос"},{label:"По платежу",value:"payment",shortLabel:"Платеж"}],t6=[{label:"Семейная ипотека",value:"family"},{label:"Дальневосточная ипотека",value:"far_east"},{label:"Материнский капитал",value:"maternal_capital"}];var t9=n(30292),t7=n(97318),ne=n(12261);function nt(){let{query:e,push:t}=(0,eM.useRouter)(),{amount:n,payment:a,downpayment:l,term:o,property_type:r,market:i,form:s,proof:u,banks:d,provision:m,flags:p,sort:_,sortDir:v,...h}=e,g=(0,c.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,ne.SP)(c)),"string"==typeof u&&(_.provision=u),"string"==typeof d&&(_.flags=(0,ne.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:i,form:s,proof:u,banks:d,provision:m,flags:p,sort:_,sortDir:v}),[n,a,l,o,r,i,s,u,d,m,p,_,v]),f=(0,c.useRef)(h),b=(0,c.useRef)(g),y=(0,c.useRef)(t);return f.current=h,b.current=g,y.current=t,{filter:g,setFilter:(0,c.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,ne.ln)(c)),void 0!==u&&(_.provision=u),void 0!==d&&(_.flags=(0,ne.ln)(d)),void 0!==m&&(_.sort=m),void 0!==p&&(_.sortDir=p),_}(e),...f.current};return y.current({query:u},void 0,{shallow:!0}),!0},[])}}var nn=n(73445),na=n(43973);let nl=null,no=e=>(nl=null!=nl?nl:(0,na.M)(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==nl?void 0:nl.getState().delayTimer;u&&clearTimeout(u),null==nl||nl.getState().delayUpdate(()=>{t({subtitle:r}),t({offers:i}),t({count:s}),t({total_count:c}),t({loading:!1})})},delayUpdate:function(e){let n=null==nl?void 0:nl.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==nl||nl.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})}}}),(0,nn.oR)(nl));var nr=n(75340),ni=n(7766),ns=n(86986),nc=n(49215),nu=n(31531),nd=n(50907),nm=n.n(nd);let np=e=>{let{filter:t,banksOptions:n,onChange:a}=e;return(0,i.jsxs)("div",{className:nm().content,children:[(0,i.jsxs)("div",{className:nm().form,children:[(0,i.jsx)("div",{className:(0,R.Z)(nm().wrap),children:(0,i.jsx)(tW.P,{label:"Сумма кредита",value:t.amount,onChange:e=>{a("amount",void 0!==e&&0!==e?Math.abs(e):void 0,"Сумма")}})}),(0,i.jsx)("div",{className:(0,R.Z)(nm().wrap),children:(0,i.jsx)(tW.P,{label:"Ежемесячный платеж до",value:t.payment,onChange:e=>{a("payment",void 0!==e&&0!==e?Math.abs(e):void 0,"Ежемесячный платеж до")}})}),(0,i.jsx)("div",{className:(0,R.Z)(nm().wrap),children:(0,i.jsx)(tW.P,{label:"Первый взнос",value:t.downpayment,onChange:e=>{a("downpayment",void 0!==e&&0!==e?Math.abs(e):void 0,"Первый взнос")}})}),(0,i.jsx)("div",{className:(0,R.Z)(nm().wrap),children:(0,i.jsx)(p.Rn,{label:"Срок",value:t.term,max:600,decimals:"never",unit:void 0!==t.term?(0,eD.uG)(t.term):void 0,onChange:e=>{a("term",void 0!==e&&0!==e?Math.abs(e):void 0,"Срок")},withoutControls:!0})}),(0,i.jsx)("div",{className:(0,R.Z)(nm().wrap),children:(0,i.jsx)(nu.P,{className:nm().select_fix,label:"Вид недвижимости",options:t3,value:t.property_type,onChange:e=>a("property_type",e,"Вид недвижимости")})}),(0,i.jsx)("div",{className:(0,R.Z)(nm().wrap),children:(0,i.jsx)(nu.P,{className:nm().select_fix,label:"Рынок недвижимости",options:t8,value:t.market,onChange:e=>a("market",e,"Рынок недвижимости")})}),(0,i.jsx)("div",{className:(0,R.Z)(nm().wrap),children:(0,i.jsx)(nu.P,{className:nm().select_fix,label:"Форма выдачи",options:t4,value:t.form,onChange:e=>a("form",e,"Форма выдачи")})}),(0,i.jsx)("div",{className:(0,R.Z)(nm().wrap),children:(0,i.jsx)(nu.P,{className:nm().select_fix,label:"Подтверждение дохода",options:t1,value:t.proof,onChange:e=>a("proof",e,"Подтверждение дохода")})}),(0,i.jsx)("div",{className:(0,R.Z)(nm().wrap),children:(0,i.jsx)(nc.i,{className:nm().select_fix,label:"Банки",options:n,values:t.banks,onChange:e=>a("banks",e,"Банки")})}),(0,i.jsx)("div",{className:(0,R.Z)(nm().wrap),children:(0,i.jsx)(nu.P,{className:nm().select_fix,label:"Обеспечение",options:t2,value:t.provision,onChange:e=>a("provision",e,"Обеспечение")})})]}),(0,i.jsx)("div",{className:(0,R.Z)(nm().wrap),children:(0,i.jsxs)("div",{className:nm().sort,children:[(0,i.jsx)("h3",{className:nm().sort_title,children:"Дополнительно"}),t6.map((e,n)=>{var l;return(0,i.jsx)("div",{className:nm().fieldWrapper,children:(0,i.jsx)(p.XZ,{className:nm().checkboxField,value:null===(l=t.flags)||void 0===l?void 0:l.includes(e.value),label:e.label,onChange:()=>{var n;return a("flags",(0,ns.ZN)(null!==(n=t.flags)&&void 0!==n?n:[],e.value),"Дополнительно")}})},n)})]})}),(0,i.jsx)("div",{className:(0,R.Z)(nm().wrap),children:(0,i.jsx)(m.iz,{className:nm().separator})}),(0,i.jsx)("div",{className:(0,R.Z)(nm().wrap),children:(0,i.jsxs)("div",{className:nm().sort,children:[(0,i.jsx)("h3",{className:nm().sort_title,children:"Сортировка"}),t5.map((e,n)=>(0,i.jsx)("div",{className:nm().sort_wrap,children:(0,i.jsx)(p.Y8,{name:"radio",value:t.sort,label:e.label,checked:t.sort===e.value,className:nm().checkboxField,onChange:()=>a("sort",e.value,"Сортировка")})},n))]})})]})},n_=e=>{let{visible:t,filter:n,offersCount:a,banksOptions:l,onHide:o,onChange:r,onDrop:s,onShow:c}=e;return(0,i.jsx)(ni.D,{count:a,isOpen:t,isMobile:!1,pageUrl:x.u.IPOTEKA,title:"Все параметры",onCLickShow:()=>c(),onClose:o,onClickReset:()=>s(),children:(0,i.jsx)(np,{filter:n,onChange:r,banksOptions:l})})};var nv=n(9469),nh=n.n(nv);let ng=(0,tC.b)(),nf=e=>{let{ssr:t}=e,{scrollSmooth:n}=(0,nr.vO)(),{filter:a,setFilter:l}=nt(),{visible:o,show:r,hide:s}=(0,t7.e)(),{subtitle:u,count:d}=no({filter:a,mortgagesData:t.mortgagesData,currentTag:t.currentTag}),p=(0,c.useMemo)(()=>t3.map(e=>{let{value:t,label:n}=e;return{value:t,label:n,color:a.property_type===t?"black":"default"}}),[a.property_type]),_=(0,c.useCallback)(e=>{var t,n;(0,em.D)({eventAction:em.i.filterCatalog,eventCategory:em.i.filterCatalog,eventLabel:"property_type",eventValue:(0,ep.b)(null!==(n=null===(t=t3.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,c.useCallback)(()=>l({}),[l]),[h]=(0,t9.G)(()=>(0,tt.SM)().then(e=>null!=e?e:[]),[]),g=(0,c.useMemo)(()=>(null!=h?h:[]).map(e=>({value:e.id,label:e.name})),[h]),f=()=>{(0,em.D)({eventAction:em.i.button,eventActionText:(0,ep.b)("показать")}),n({offset:-90})},y=(0,c.useCallback)(()=>{(0,em.D)({eventAction:em.i.button,eventActionText:(0,ep.b)("все параметры")}),r()},[r]),x=(e,t,n)=>{ng(()=>(0,em.D)({eventAction:em.i.filterCatalog,eventCategory:em.i.filterCatalog,eventLabel:(0,ep.b)(n),eventValue:"string"==typeof t?t:JSON.stringify(t)})),l({...a,[e]:t})};return(0,i.jsxs)("div",{className:nh().wrap,children:[(0,i.jsx)(t0,{subtitle:u,currentTag:t.currentTag}),(0,i.jsxs)(m.W2,{id:b.of,children:[(0,i.jsxs)(tF,{count:d,onChipClick:_,chips:p,onParamsClick:y,onShowClick:f,children:[(0,i.jsx)(tW.P,{label:"Сумма кредита",value:a.amount,onChange:e=>{x("amount",void 0!==e&&0!==e?Math.abs(e):void 0,"Сумма")}}),(0,i.jsx)(tW.P,{label:"Ежемесячный платеж до",value:a.payment,onChange:e=>{x("payment",void 0!==e&&0!==e?Math.abs(e):void 0,"Ежемесячный платеж до")}})]}),(0,i.jsx)(n_,{offersCount:d,visible:o,filter:a,banksOptions:g,onChange:x,onHide:s,onDrop:v,onShow:()=>{s(),f()}})]})]})};var nb=n(65848),ny=n(423),nx=n(64101),nj=n(15729),nk=n(71147),nN=n(23937),nC=n(48743),nA=n(28052),nw=n(92047),nM=n.n(nw);let nT=e=>{let t={sectionTitle:"Условия ипотеки",body:[{label:"Сумма кредита",value:(0,eI.bc)(e.amount.from,e.amount.to)}]},n=e.full_price;if(n){let a=e.interest_rate;t.body.push({label:"ПСК",value:(0,d.W)(n),description:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n          Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."},{label:"Процентная ставка",value:(0,i.jsxs)("div",{children:[(0,eI.sz)(Number(a.from),Number(a.to)),a.comment&&(0,i.jsx)("div",{className:nM().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,nA.m)(e.loan)}),(e.period.from||e.period.to)&&t.body.push({label:"Срок погашения кредита",value:"".concat((0,eI.z1)(Number(e.period.from),Number(e.period.to))," мес.")}),(e.property_type.comment||e.property_type.text)&&t.body.push({label:"Вид недвижимости",value:(0,nA.m)(e.property_type)}),(e.real_estate_market.comment||e.real_estate_market.text)&&t.body.push({label:"Рынок недвижимости",value:(0,nA.m)(e.real_estate_market)}),(e.insurance.comment||e.insurance.text)&&t.body.push({label:"Страхование",value:(0,nA.m)(e.insurance)}),[t,{sectionTitle:"О банке",body:[{label:"Сайт",value:e.site.title}]}]},nP=e=>{let{isOpen:t,url:n,data:a,onAllConditionsClick:l,onClose:o}=e,r=(0,c.useMemo)(()=>a?nT(a):[],[a]);return void 0===a||void 0===n?null:(0,i.jsx)(nC.$,{isOpen:t,cancelButton:{title:"Все условия по ипотеке",onClick:l},submitButton:{title:"Оформить онлайн",url:n},onClose:o,bankName:a.bankName,dataPoints:r,pageUrl:x.u.IPOTEKA,offerUpdateData:a.m_updated_at})};function nS(){return(nS=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 nL=function(e){return c.createElement("svg",nS({xmlns:"http://www.w3.org/2000/svg",width:17,height:17,fill:"none",viewBox:"0 0 17 17"},e),r||(r=c.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"})))},nD=n(25415),nI=n.n(nD);let nO="DetailModalText",nR=e=>{var t,n;let{data:a,isMobile:l=!1,onClose:o,mainPageUrl:r,onFlag:s}=e,[u,d]=(0,c.useState)(null),m=null!==(t=null==u?void 0:u.link)&&void 0!==t?t:"",_=null!==(n=null==m?void 0:m.includes("#"))&&void 0!==n&&n,h=(0,ne.sD)(m),g=()=>{if(o(),u&&(0,eq.l)({event:"data-event",eventAction:"click_button_".concat((0,ep.b)(u.modalButtonText)),eventCategory:r}),(null==u?void 0:u.filterFlags)&&s&&s(u.filterFlags),_){let e=m.split("#")[1];(0,eO.l)(e,{position:"top"})}m||(0,eO.l)(b.Tm,{offset:l?0:-100,position:"top"})};return(0,c.useEffect)(()=>{a&&d(a)},[a]),(0,c.useEffect)(()=>{let e=document.querySelectorAll("#".concat(nO," > a")),t=e=>{e.target instanceof HTMLAnchorElement&&(0,em.D)({eventAction:em.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,i.jsxs)("div",{className:nI().content,children:[(0,i.jsx)("div",{className:nI().logo,children:(null==u?void 0:u.logo)&&(0,i.jsx)(Y(),{width:l?344:494,height:l?128:180,src:null==u?void 0:u.logo,alt:"logo"})}),(0,i.jsxs)("div",{className:nI().body,children:[(0,i.jsx)("h3",{className:nI().title,children:null==u?void 0:u.title}),(0,i.jsx)("p",{id:nO,className:nI().text,dangerouslySetInnerHTML:{__html:u?u.modalText:""}})]}),h||_?(0,i.jsx)(p.zx,{as:"a",target:"_blank",href:_?void 0:m,size:"big",onClick:g,children:null==u?void 0:u.modalButtonText}):(0,i.jsx)(v(),{href:m,children:(0,i.jsx)(p.zx,{size:"big",onClick:g,children:null==u?void 0:u.modalButtonText})})]})},nE=e=>{let{data:t,isOpen:n,onClose:a,mainPageUrl:l,onFlag:o}=e,r=(0,e_.S0)();return(0,i.jsx)($.h,{children:(0,i.jsx)(p.u_,{open:n,onClose:a,header:{title:""},size:"l",children:(0,i.jsx)("div",{className:nI().container,children:(0,i.jsx)(nR,{data:t,isMobile:r,onClose:a,mainPageUrl:l,onFlag:o})})})})},nB=()=>{let[e,t]=(0,c.useState)(!1),[n,a]=(0,c.useState)(!1),l=(0,c.useRef)({x:0,y:0});return{isDragged:e,isTouched:n,onMouseDown:(0,c.useCallback)(e=>{a(!0),l.current={x:e.screenX,y:e.screenY},l.current&&l.current.x===e.screenX&&l.current.y===e.screenY&&t(!1)},[]),onMouseMove:(0,c.useCallback)(e=>{l.current&&l.current.x===e.screenX&&l.current.y===e.screenY||(t(!0),l.current={x:e.screenX,y:e.screenY})},[]),resetState:(0,c.useCallback)(()=>{t(!1),a(!1)},[])}};var nF={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},nW={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},nz={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},nU=n(20676),nZ=n.n(nU),nq=(0,c.memo)(e=>{let{mainPageUrl:t,onFlag:n,isMobile:a}=e,[l,o]=(0,c.useState)(!1),[r,s]=(0,c.useState)(null),{onMouseDown:u,onMouseMove:d,resetState:_}=nB(),v=(0,c.useMemo)(()=>a?288:348,[a]),h=e=>e.preventDefault,g=(0,c.useCallback)(e=>{s(e),o(!0),(0,em.D)({eventAction:em.i.popup,eventActionText:e.title})},[]),f=(0,c.useCallback)(()=>{var e;(0,em.D)({eventAction:em.i.popdown,eventActionText:null!==(e=null==r?void 0:r.title)&&void 0!==e?e:""}),s(null),o(!1)},[null==r?void 0:r.title]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("section",{className:nZ().section,id:b.VT,children:(0,i.jsxs)(m.W2,{children:[(0,i.jsx)("h2",{className:nZ().title,children:"Как вам помочь?"}),(0,i.jsx)("div",{className:nZ().sliderContainer,children:(0,i.jsx)(p.iR,{options:{slidesPerView:a?1:3,spaceBetween:a?16:32,centeredSlides:a,autoplay:{delay:5e3}},wrapperClass:nZ().sliderWrapper,pagination:a,children:(function(){let{mainBaseUrl:e}=(0,eX.iE)();return[{id:1,logo:nF,logoMobile:nF,title:"Льготная ипотека",modalText:"Найдем для вас предложения с пониженной ставкой — например, семейную ипотеку или ипотеку для ИТ-специалистов. Выберите льготную программу и подайте заявку на ипотечный кредит на Финуслугах",modalButtonText:"Выбрать ипотеку",link:"#".concat(b.Tm),filterFlags:["3"]},{id:2,logo:nW,logoMobile:nW,title:"Рефинансирование кредита",modalText:"Хотите снизить ставку или уменьшить ежемесячный платеж по ипотеке? Покажем банки, в которые вы сможете перевести свой ипотечный кредит и получить более комфортные условия",modalButtonText:"Выбрать ипотеку",link:"/ipoteka/teg_refinansirovanie"},{id:3,logo:nz,logoMobile:nz,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(b.Tm)}]})().map(e=>(0,i.jsxs)(p.wI,{className:nZ().card,onMouseDown:u,onMouseMove:d,onMouseLeave:_,onMouseUp:_,onClick:()=>g(e),onTouchStart:h,onTouchMove:h,onTouchEnd:h,children:[(0,i.jsx)("div",{className:nZ().imgWrapper,children:(0,i.jsx)(Y(),{width:v,height:128,alt:"banner"+e.id,src:a?e.logoMobile:e.logo})}),(0,i.jsxs)("div",{className:nZ().cardBody,children:[(0,i.jsx)("p",{className:nZ().subTitle,children:e.title}),(0,i.jsx)(p.zx,{shape:"circle-icon",className:nZ().cardButton,iconLeft:(0,i.jsx)(nL,{className:nZ().iconArrow})})]})]},e.id))})})]})}),(0,i.jsx)(nE,{mainPageUrl:t,data:r,isOpen:l,onClose:f,onFlag:n})]})}),nH=n(94908),nK=n(45939),nY=n.n(nK);let nV=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},nJ=e=>{let{icon:t,offer:n,onDetails:a,isMobile:l}=e,o=(0,c.useMemo)(()=>{let e=[],t=n.full_price;return t&&e.push({caption:"ПСК",tooltipText:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n        Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре.",text:(0,d.W)(t)}),e.push({caption:"Сумма",text:(0,eI.dN)({from:Number(n.amount.from),to:Number(n.amount.to)},{currency:(0,nj.z)(n.currency_id).unit})},{caption:"Первый взнос",text:n.first_payment?"от ".concat(n.first_payment.from,"%"):""}),e},[n.full_price,n.amount.from,n.amount.to,n.currency_id,n.first_payment]);return(0,i.jsxs)("div",{className:nY().mortgage_info,children:[(0,i.jsxs)("div",{className:nY().bank_info,children:[(0,i.jsx)("div",{className:nY().icon,children:t}),(0,i.jsx)(nH.S,{caption:n.title,text:n.bank_name,className:(0,R.Z)(nY().group,nY().title_group)}),l&&(0,i.jsx)("div",{className:nY().icon_button,onClick:a,children:(0,i.jsx)(tA.IconFdsInfoCircleO,{})})]}),(0,i.jsx)("div",{className:nY().groups,children:o.map((e,t)=>e.text&&(0,i.jsx)(nH.S,{caption:e.caption,text:e.text,tooltipText:e.tooltipText,className:nY().group},t))})]})};var nG=e=>{let{className:t,icon:n,offer:a,onDetails:l,onOpen:o,isMobile:r}=e,s=(0,c.useMemo)(()=>nV(a),[a]),u=(0,c.useCallback)(e=>{e.stopPropagation(),null==l||l()},[l]),d=(0,i.jsx)("div",{className:nY().chips_row,children:s.map(e=>(0,i.jsx)("div",{children:(0,i.jsx)(p.Vp,{label:e.label,variant:e.variant,className:nY().chip,rounded:!0})},e.label))});return(0,i.jsxs)("div",{className:(0,R.Z)(t,nY().wrap),onClick:o,children:[(0,i.jsxs)("div",{className:nY().top_row,children:[(0,i.jsx)("div",{className:nY().top_row_content,children:(0,i.jsx)(nJ,{icon:n,offer:a,onDetails:u,isMobile:r})}),(0,i.jsxs)("div",{className:nY().top_row_buttons,children:[!r&&(0,i.jsx)("div",{className:nY().icon_button,onClick:u,children:(0,i.jsx)(tA.IconFdsInfoCircleO,{})}),r&&d,(0,i.jsx)(p.zx,{className:nY().show_button,size:"xs",label:"Оформить"})]})]}),!r&&d]})},nQ=n(29535),nX=n.n(nQ);let n$=e=>{let{className:t,title:n,offers:a,onDetails:l,onOpen:o,isMobile:r}=e,s=(0,c.useCallback)(e=>{(0,em.D)({eventAction:em.i.button,eventActionText:"information_".concat(e.bank_url),eventLabel:e.id}),(0,em.D)({eventAction:em.i.popup,eventActionText:"information_".concat(e.bank_url),eventLabel:e.id}),l(e.id)},[l]),u=(0,c.useCallback)(e=>{(0,em.D)({eventAction:em.i.link,eventActionText:(0,ep.b)(e.title),url:"".concat(tc,"/").concat(e.bank_url)}),o(e)},[o]);return(0,i.jsxs)("div",{className:t,children:[(0,i.jsx)("p",{className:nX().listTitle,children:n}),(0,i.jsx)("div",{className:nX().list,children:a.map(e=>(0,i.jsx)(c.Fragment,{children:(0,i.jsx)(nG,{onDetails:()=>s(e),onOpen:()=>u(e),className:nX().card,icon:(0,i.jsx)(Y(),{width:40,height:40,src:e.bank_logo_mob,alt:"logo"}),offer:e,isMobile:r})},e.id))})]})};var n0=n(51858),n1=n(92941),n2=n.n(n1);let n4=(0,c.memo)(e=>{let{chips:t,sort:n,sortOrder:a,onChangeSort:l,onChangeSortOrder:o,sortOptions:r,onClick:s,inView:c,filterRef:u,className:d,onClickChip:m}=e,p=(0,tw.V)("xs");return(0,i.jsx)("div",{ref:u,className:n2().filter,children:(0,i.jsx)(n0.p,{className:d,isNewSortRadios:!0,chips:t,isIncreaseSort:"asc"===a,onChangeIncreaseSort:e=>{let t=e?"asc":"desc";o(t),(0,em.D)({eventAction:em.i.button,eventActionText:"sort_direction_".concat(t)})},sortTypeItems:r,sortTypeValue:null!=n?n:tp.RATE,onChangeSortType:e=>{var t;l(e),(0,em.D)({eventAction:em.i.button,eventActionText:"sort_type_".concat(null===(t=t5.find(t=>t.value===e))||void 0===t?void 0:t.label)})},onClickParams:s,isMobile:!p,isFixed:c,onClickChip:m})})});n4.displayName="SmallFilter";var n3=n(29023),n8=n(88060),n5=n(6207),n6=n.n(n5);let n9=e=>[{label:"Сумма кредита: ".concat(e.amount?(0,ns.uf)(e.amount):"от 1"," ₽"),id:"amount"},{label:"Платеж: ".concat(e.payment?"до ".concat((0,ns.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"}],n7=e=>3===e.online_application.type,ae=e=>1===e.online_application.commercial,at=e=>!n7(e)&&!ae(e),an=e=>{var t,n;let{ssr:a}=e,l=(0,nr.lJ)(),{query:o}=(0,eM.useRouter)(),[r,s]=(0,c.useState)(Number(o.page)||1),{filter:u,setFilter:d}=nt(),{show:p}=(0,t7.e)(),_=(0,e_.S0)(),[v,h]=(0,c.useState)(!1),g=(0,c.useRef)(null),f=(0,c.useRef)(()=>null),{offers:y,loading:x,reload:j,load:k,clear:N,count:C,total_count:A}=no({...a,filter:u}),w=null!==(n=null===(t=a.currentTag)||void 0===t?void 0:t.url)&&void 0!==n?n:tu,{region:M,town:T}=(0,e$.T)(),P="".concat(M?"/".concat(td).concat(M.url):"").concat(T?"/".concat(T.url):""),S=(0,c.useRef)(!0);(0,c.useEffect)(()=>{S.current?S.current=!1:j(u,10,null==M?void 0:M.url,null==T?void 0:T.url,w)},[u,null==M?void 0:M.url,null==T?void 0:T.url,w,j]);let L=(0,c.useRef)(!0);(0,t9.b)(()=>{L.current?L.current=!1:(N(),k(u,10,r,null==M?void 0:M.url,null==T?void 0:T.url))},[u],500);let D=(0,c.useCallback)(()=>{s(e=>{let t=e+1;return k(u,10,t,null==M?void 0:M.url,null==T?void 0:T.url),(0,em.D)({eventAction:em.i.button,eventActionText:(0,ep.b)("показать еще предложения")}),t})},[k,u,null==M?void 0:M.url,null==T?void 0:T.url]),I=n9(u),O=(0,c.useMemo)(()=>y.filter(n7),[y]),E=(0,c.useMemo)(()=>y.filter(ae),[y]),B=(0,c.useMemo)(()=>y.filter(at),[y]),F=a.currentTag?a.currentTag.name:"Ипотека",W=(null==T?void 0:T.name_p)||(null==M?void 0:M.name_p),z=W?" в ".concat(W):"",{mainBaseUrl:U}=(0,eX.ZR)(),Z=(0,nN.P)(y),q=(0,c.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]),H=(0,c.useCallback)(()=>{(0,em.D)({eventAction:em.i.button,eventActionText:(0,ep.b)("все параметры")}),p()},[p]),K=e=>1===e.online_application.commercial?e.online_application.url:"".concat(tc,"/").concat(e.url),Y=(0,c.useCallback)(e=>{window.open(K(e))},[]),V=(0,c.useCallback)(()=>{var e,t;(0,em.D)({eventAction:em.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]),J=(0,c.useCallback)(()=>{var e,t;(0,em.D)({eventAction:em.i.button,eventActionText:(0,ep.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]),G=Z.data?K(Z.data):void 0;(0,c.useEffect)(()=>(window.removeEventListener("scroll",f.current),f.current=()=>{if(!g.current)return;let{top:e}=g.current.getBoundingClientRect();h(e<=32)},window.addEventListener("scroll",f.current),()=>window.removeEventListener("scroll",f.current)),[]);let Q=(0,c.useCallback)(e=>{d({...u,sort:e})},[u,d]),X=(0,c.useCallback)(e=>{d({...u,sortDir:e})},[u,d]),$=10*r<C;return(0,i.jsxs)("div",{className:n6().wrap,children:[(0,i.jsx)(nq,{mainPageUrl:"#",onFlag:e=>{d({...u,flags:e})},isMobile:_}),(0,i.jsxs)("div",{id:b.Tm,className:n6().products_list_container,children:[y&&(0,i.jsxs)("h2",{className:n6().title,children:["Найдено ",C," ",(0,i.jsx)("span",{className:n6().titleHide,children:(0,nk.s)(C)})," ",C===A?"":"из ".concat(A)]}),(0,i.jsx)("div",{className:(0,R.Z)(n6().filter_wrapper,n6().newLayout),children:(0,i.jsx)(n4,{chips:I,sort:u.sort||tp.RATE,sortOrder:u.sortDir||"asc",onChangeSort:Q,onChangeSortOrder:X,sortOptions:t5,onClick:H,filterRef:g,inView:v,onClickChip:()=>{p()}})}),!x&&0===C&&(0,i.jsx)(m.W2,{children:(0,i.jsx)(nx.t,{onChangeParams:p})}),(0,i.jsxs)(m.W2,{as:"section",children:[(0,i.jsx)("div",{ref:l,children:y.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:n6().offers_lists,children:[O.length>0&&(0,i.jsx)(n$,{onOpen:Y,onDetails:Z.show,title:"Онлайн-ипотеки от Финуслуг",offers:O,isMobile:_}),E.length>0&&(0,i.jsx)(n$,{onOpen:Y,onDetails:Z.show,title:"Предложения на Финуслугах",offers:E,isMobile:_}),B.length>0&&(0,i.jsx)(n$,{onOpen:Y,onDetails:Z.show,title:"Предложения рынка кредитов",offers:B,isMobile:_})]}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(()=>{var e,t,n;let l=[...O,...E,...B],{lowPrice:o,highPrice:r}=l.reduce((e,t)=>{let{amount:n}=t,a=void 0!==n.from&&""!==n.from?Number(n.from):1e4,l=void 0!==n.to&&""!==n.to?Number(n.to):void 0;return e.lowPrice=Math.min(e.lowPrice,a),void 0!==l&&(e.highPrice=Math.max(e.highPrice,l)),e},{lowPrice:1/0,highPrice:0}),i=null!==(t=(0,nj.z)(null===(e=l[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(P,'","priceCurrency":"').concat(i,'","lowPrice":"').concat((0,ns.uf)(o),'","highPrice":"').concat((0,ns.uf)(r),'"}');return'{"@context":"https://schema.org","@type":"Product","name":"'.concat(F).concat(z,'","image":"').concat(U).concat(ny.oQ,'","description":"').concat(null!==(n=a.mortgagesData.description)&&void 0!==n?n:"",'",').concat(s,"}")})()}}),$&&(0,i.jsx)(n8.f,{page:r,onClick:D})]})}),x&&(0,i.jsx)("div",{className:n6().placeholder,children:[,,,,,].fill(0).map((e,t)=>(0,i.jsx)(nb.O,{},t))}),(0,i.jsx)(n3.i,{tag:"p",className:n6().subtitle,children:a.mortgagesData.subtitle})]}),(0,i.jsx)(nP,{data:q,isOpen:Z.visible,url:G,onClose:V,onAllConditionsClick:J})]})]})};var aa=n(91886),al=n(65709),ao=n(32368);async function ar(e){let t=await (0,al.$u)("Mortgages.json?".concat("url","=").concat(encodeURIComponent(e)));if(1!==t.length)throw new tl.dR("Mortgages tag not found: ".concat(e));return function(e){let{url:t,name:n}=e;return{name:n,url:t}}(t[0])}new ao.n(ar);var ai=n(60007),as=n(44735);async function ac(){return(await (0,al.$u)("Mortgages.json?tags&short=1")).mortgage_tags.reduce((e,t)=>(t.name!==as.V4&&e.set(t.url,function(e){let{name:t,url:n,url_redirect:a}=e,l={name:t,url:n},o=(0,ai.d)(a);return void 0!==o&&(l.url_redirect=o),l}(t)),e),new Map)}new ao.$(ac);var au=n(27480),ad=n(30975);n(35388);var am=n(38090),ap=n(78575);n(45522);let a_=[(0,i.jsx)(c.Fragment,{children:"Используйте фильтры для указания желаемых параметров: суммы, срока и формы выдачи"},0),(0,i.jsx)(c.Fragment,{children:"Изучите и выберите подходящее предложение"},1),(0,i.jsx)(c.Fragment,{children:"Перейдите к оформлению"},2),(0,i.jsx)(c.Fragment,{children:"Заполните анкету, дождитесь одобрения и получите деньги любым удобным для вас способом"},3)];function av(e){var t,n,a,l;let{layout:o,regions:r,tags:s,tag:u,mortgagesData:d,posts:m,questionsData:p,banks:_,expertQuote:v,support:h}=e,{region:f,town:b}=(0,e$.T)(),[y,x]=(0,c.useState)(null!=v?v:void 0),{asPath:j}=(0,eM.useRouter)(),k=null!==(n=null===(t=j.split("/").find(e=>e.includes("teg_")))||void 0===t?void 0:t.slice(4))&&void 0!==n?n:"DEFAULT",N=null!==(a=s.find(e=>e.url===k))&&void 0!==a?a:void 0,C=(0,ne.iN)(j);return(0,aa.rf)(()=>{(0,am.r5)(C).then(x)},[C]),(0,i.jsxs)(tn.A,{data:o,withLocationConfirm:!0,children:[(0,i.jsx)(g.N,{title:d.title,description:d.description}),(0,i.jsx)(e3.o,{}),(0,i.jsx)(nf,{ssr:{mortgagesData:d,currentRegion:null!==(l=null==f?void 0:f.url)&&void 0!==l?l:"",currentTag:N}}),(0,i.jsx)(an,{ssr:{mortgagesData:d,currentTag:N,banks:_}}),(0,i.jsx)(au.C,{steps:a_,variant:"secondary"}),void 0!==y&&(0,i.jsx)(ap.c,{quote:y}),(0,i.jsx)(ad.n,{type:"bank"}),(0,i.jsx)(tN,{currentTag:u,region:f,town:b,posts:m,questionsData:p,regions:r,tags:s?s.filter(e=>e.url!==k):[],support:h}),!1]})}var ah=n(28254),ag=n(80330),af=!0,ab=(0,c.memo)(function(e){var t,n;return(0,i.jsx)(s.sM,{children:e.isShowcase?(0,i.jsx)(ah.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,i.jsx)(av,{...e})}):(0,i.jsx)(ag.M,{children:(0,i.jsx)(ta,{...e})})})})},25415:function(e){e.exports={title:"DetailModal_title__byAo_",container:"DetailModal_container__0QySE",content:"DetailModal_content__wNrBy",logo:"DetailModal_logo__Y3Gfm",body:"DetailModal_body__OhBkH",text:"DetailModal_text__bzuql"}},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",faqSection:"MortgageDetail_faqSection__UW6NG",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={container:"styles_container__SqFUD",utpTags:"styles_utpTags__899sO",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"}},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"}},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"}},20676:function(e){e.exports={section:"styles_section__C_XdG",title:"styles_title__lnE9N",card:"styles_card__hTNw7",imgWrapper:"styles_imgWrapper__Ue6gi",cardBody:"styles_cardBody__r7l0F",subTitle:"styles_subTitle__ayqhw",cardButton:"styles_cardButton__xJxcm",iconArrow:"styles_iconArrow__q2lrn",sliderContainer:"styles_sliderContainer__ox24U"}},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"}},50907:function(e){e.exports={content:"mortgages-filter-content_content__SnZqu",form:"mortgages-filter-content_form__Y3Me4",wrap:"mortgages-filter-content_wrap__ZundD",separator:"mortgages-filter-content_separator__4pj05",sort_title:"mortgages-filter-content_sort_title__4H6Ji",sort_wrap:"mortgages-filter-content_sort_wrap__xUbD8",sort_field:"mortgages-filter-content_sort_field__LwKrM",checkboxField:"mortgages-filter-content_checkboxField__8YkvP",footer:"mortgages-filter-content_footer__2q7g7",submit:"mortgages-filter-content_submit__NEcSP"}},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"}}},function(e){e.O(0,[6832,5249,2935,4581,5675,1127,3996,5902,3803,1911,4152,5344,9461,7876,6429,2888,9774,179],function(){return e(e.s=75609)}),_N_E=e.O()}]);