(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3659],{1404:e=>{e.exports={wrapper:"offer-info-block_wrapper__6BCk7",titleWrapper:"offer-info-block_titleWrapper__JZSTw",title:"offer-info-block_title__axudX",text:"offer-info-block_text__HHa_5"}},2272:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});class a{find(e){for(let{banksByKey:t,getOfferKey:n}of this.keyIndexes){let a=t.get(n(e));if(void 0!==a)return a}}constructor(e,t){this.keyIndexes=t.map(t=>{let{getBankKey:n,getOfferKey:a}=t;return{banksByKey:new Map(e.map(e=>[n(e),e])),getOfferKey:a}})}}},8868:(e,t,n)=>{"use strict";n.d(t,{JY:()=>r,MH:()=>s,QZ:()=>l,au:()=>o});var a=n(33126);function l(){return"".concat((0,a.zj)().lkBaseUrl,"/credits/new?skipName=true&productType=credit")}function r(){return"".concat((0,a.zj)().lkBaseUrl,"/credits/new?skipName=true&productType=credit_card")}let s=["sberbank","vtb24","sovcombank","rosselhozbank","gazprombank","alfabank","promsvyazbank","tinkoff","vostochnyj_express"],o="/icons/header_logo.svg"},9640:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var a=n(37876),l=n(16132);function r(e){var t;let{value:n,...r}=e,s=(t=n,r.options.find(e=>e.value===t));return(0,a.jsx)(l.l,{...r,value:s,onChange:e=>{let t=null==e?void 0:e.value;r.onChange(t)}})}},9791:(e,t,n)=>{"use strict";n.d(t,{h:()=>i,v:()=>o});var a=n(53951),l=n(12771),r=n(73584),s=n(37071);function o(){return(0,l.pY)("mortgages/banks")}function i(){return c.getOrUpdate()}let c=new r.B4(u);async function u(){let[e,t]=await Promise.all([(0,s.sm)(),a.E.offers.list({})]),n=new Set,l=new Set,r=new Set;for(let{bank_id:e,bank_bic:a,bank_url:s}of t.page)n.add(e),l.add(a),r.add(s);return e.filter(e=>{let{id:t,bic:a,url:s}=e;return n.has(Number(t))||l.has(a)||r.has(s)})}},10741: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"}},11404:(e,t,n)=>{"use strict";n.d(t,{g:()=>l});var a=n(14232);function l(){let[e,t]=(0,a.useState)(!1);return{visible:e,show:(0,a.useCallback)(()=>t(!0),[]),hide:(0,a.useCallback)(()=>t(!1),[])}}},12837:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var a=n(37876),l=n(26685),r=n.n(l);function s(e){let{comment:t,text:n}=e;return void 0!==t&&void 0!==n?(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}),(0,a.jsx)("div",{className:r().commentText,dangerouslySetInnerHTML:{__html:t}})]}):void 0!==n?(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}):void 0!==t?(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t}}):void 0}},14022:e=>{e.exports={trigger:"Popover_trigger__8ZXEq",triggerContent:"Popover_triggerContent__yEQbS",contentWrapper:"Popover_contentWrapper__Cse_e",content:"Popover_content__QQDR1"}},14834:e=>{e.exports={listTitle:"styles_listTitle__MeOax",list:"styles_list__bYSPt",card:"styles_card__HXa22",button_more_offers:"styles_button_more_offers__YXOO_"}},15462:(e,t,n)=>{"use strict";n.d(t,{L$:()=>a,ZV:()=>l});let a=(e,t)=>(null==e?void 0:e.includes(t))?e.filter(e=>e!==t):(e||[]).concat([t]),l=e=>r(e.toString().split("").reverse(),3).reverse().map(e=>e.reverse().join("")).join(" "),r=(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}},16904:e=>{e.exports={wrap:"styles_wrap__d_QXg",content:"styles_content__y9L_W",page_title:"styles_page_title__Y8O0t"}},18315:(e,t,n)=>{"use strict";n.d(t,{a:()=>p});var a=n(37876),l=n(14232),r=n(13636),s=n(42195),o=n(3010),i=n(74356),c=n(90257),u=n(32266),d=n(94289),_=n.n(d);let p=(0,l.memo)(e=>{let{isOpen:t,cancelButton:n,submitButton:d,onClose:p,bankName:m,dataPoints:v,offerUpdateData:h,pageUrl:g}=e,f=(0,a.jsxs)("div",{className:_().content,children:[v.map(e=>(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)("h2",{className:_().title,children:e.sectionTitle}),(0,a.jsx)("div",{className:_().list,children:e.body.length?e.body.map((e,t)=>(0,a.jsxs)("div",{className:_().field,children:[(0,a.jsxs)("div",{className:_().titleWrapper,children:[(0,a.jsx)("h3",{className:_().fieldTitle,children:null==e?void 0:e.label}),(null==e?void 0:e.description)&&(0,a.jsx)(u.A,{triggerClassName:_().icon,content:e.description})]}),(0,a.jsx)("div",{className:_().fieldContent,children:null==e?void 0:e.value})]},t)):Array.from({length:6},(e,t)=>(0,a.jsx)(i.E,{className:_().skeletonContent},t))})]},e.sectionTitle)),(0,a.jsx)(c.n,{className:_().actualDate,pageUrl:g,actualizedAt:h})]}),x=(0,a.jsxs)("div",{className:_().footer,children:[void 0!==n&&(0,a.jsx)(r.$,{variant:"secondary",onClick:n.onClick,children:n.title}),(0,a.jsx)(r.$,{rel:"nofollow",as:"a",href:d.url,onClick:d.onClick,children:d.title})]});return(0,a.jsx)(o.Z,{children:(0,a.jsx)(s.a,{open:t,onClose:p,footer:{children:x},header:{title:null!=m?m:""},className:_().mobilePopup,size:"l",children:(0,a.jsx)("div",{className:_().container,children:f})})})});p.displayName="OfferInfoModal"},21093:()=>{},23517:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l});var a=n(2510);function l(e){if(!1!==e){let t=new RegExp("/".concat(a.cf,"([^/?#]+)")),n=e.match(t);if(n){let[,e]=n;return e}}}},24284:(e,t,n)=>{"use strict";n.d(t,{w:()=>l});let a=["finuslugi.ru","moex.com"],l=e=>e?e=e.replace(/href="(.*?)"/gi,(e,t)=>"".concat(e).concat((e=>e.includes("//")&&!a.find(t=>e&&e.indexOf(t)>=0))(t)?' rel="nofollow"':"")):""},24523:(e,t,n)=>{"use strict";n.d(t,{O:()=>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)}}},26685:e=>{e.exports={commentText:"offer-terms_commentText__S3vmq"}},27607:e=>{e.exports={row:"styles_row__dHTUh",open:"styles_open__GqvFI",firstRow:"styles_firstRow__is75c",toggle:"styles_toggle__2r_74"}},27964:(e,t,n)=>{"use strict";function a(e){let{name:t,description:n,image:a,aggregateRating:l,offers:r}=e;return{"@context":"https://schema.org","@type":"Product",name:t,description:n,image:a,aggregateRating:l,offers:r}}n.d(t,{Z:()=>a})},28346:(e,t,n)=>{"use strict";n.d(t,{m:()=>m});var a=n(37876),l=n(14232),r=n(42036),s=n(50698),o=n(94882),i=n(69241),c=n(43509),u=n(68086);let d=(0,n(9789).g)("tooltip"),_=Object.freeze({tooltip:d,text:"".concat(d,"__text"),wrapper:"".concat(d,"__wrapper"),inverted:"".concat(d,"--inverted")});n(21093);let p=e=>{let{children:t,moveToBody:n}=e;return n?(0,a.jsx)(r.XF,{id:c.T,children:t}):(0,a.jsx)(a.Fragment,{children:t})},m=(0,l.forwardRef)((e,t)=>{let{position:n="top",text:c,zIndex:d=1,inverted:m,withoutTail:v,children:h,boundingOffset:g=12,boundaryPadding:f,moveToBody:x=!1,hideWhenOutOfBounds:y=!1,style:b,className:j,dataQa:w,dataId:k,...A}=e,[N,C]=(0,l.useState)(!1),T=(0,l.useRef)(null),{refs:S,floatingStyles:M,context:L,middlewareData:R}=(0,r.we)({open:N,onOpenChange:C,placement:n,whileElementsMounted:s.ll,middleware:[(0,o.cY)({mainAxis:g}),(0,o.UU)({fallbackAxisSideDirection:"start",crossAxis:!1,...void 0!==f&&{padding:f}}),(0,o.BN)({...void 0!==f&&{padding:f}}),(0,o.UE)({element:T,padding:8}),...y?[(0,o.jD)({strategy:"escaped",padding:-24})]:[]]}),E=(0,r.Mk)(L,{delay:300}),{getReferenceProps:B,getFloatingProps:P}=(0,r.bv)([E]),F=(0,r.DL)(L,{duration:300});return(0,l.useImperativeHandle)(t,()=>({getActivatorElement:S.reference,getTooltipElement:S.floating})),(0,l.useEffect)(()=>{var e;(null==(e=R.hide)?void 0:e.escaped)&&C(!1)},[R.hide]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{"data-qa":(0,u.g)("".concat(w,"-activator"),!!w),ref:S.setReference,...B,className:_.wrapper,children:h}),F.isMounted&&(0,a.jsx)(p,{moveToBody:x,children:(0,a.jsxs)("div",{role:"tooltip",ref:S.setFloating,style:{...M,...F.styles,...b,zIndex:d},className:(0,i.A)(_.tooltip,j,{[_.inverted]:m}),...P,...A,"data-qa":w,"data-id":k,children:[(0,a.jsx)("span",{className:(0,i.A)(_.text,{[_.inverted]:m}),children:c}),!v&&(0,a.jsx)(r.ie,{ref:T,context:L,width:16,d:"M8 10C6 12.58 3.43 16 0 16L16 16C12.58 16 10 12.58 8 10Z",fill:m?"var(--color-white)":"var(--color-black-500)"})]})})]})});m.displayName="Tooltip"},28502: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"}},28732:e=>{e.exports={filter:"styles_filter__jrtk3"}},30557:(e,t,n)=>{"use strict";n.d(t,{j:()=>l,o:()=>r});var a=n(79807);function l(e){if(null!==e&&""!==e&&e){let{from:t,to:n}=e;if("string"==typeof n)return{from:"string"==typeof t?Number(t):0,to:Number(n)};if("number"==typeof n)return{from:"number"==typeof t?t:0,to:n};console.warn("Unexpected full price data: ".concat(e))}return null}function r(e){return(0,a.wf)(e.from,e.to,{minimumFractionDigits:3})}},31070: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"}},31256:(e,t,n)=>{"use strict";e.exports=n(47785)},31443:e=>{e.exports={notFoundWrapper:"CreditsNotFound_notFoundWrapper__QdXvJ",searchIcon:"CreditsNotFound_searchIcon__m8B3S",notFoundText:"CreditsNotFound_notFoundText__vZE_n",changeParamsButton:"CreditsNotFound_changeParamsButton__0_UOj"}},31758: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"}},32266:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,X:()=>u});var a=n(37876),l=n(25904),r=n(11251),s=n(69241),o=n(3010),i=n(14022),c=n.n(i);function u(e){let{className:t}=e;return(0,a.jsx)(l.KYF,{className:(0,s.A)(c().triggerContent,t)})}function d(e){let{children:t,triggerClassName:n,contentClassName:l,content:i,placement:d="bottom-start"}=e;return(0,a.jsxs)(r.ms,{placement:d,children:[(0,a.jsx)(r.uu,{className:(0,s.A)(c().trigger,n),children:null!=t?t:(0,a.jsx)(u,{className:l})}),(0,a.jsx)(o.Z,{children:(0,a.jsx)("div",{className:c().contentWrapper,children:(0,a.jsx)(r.pm,{className:c().content,children:"string"==typeof i?(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:i}}):i})})})]})}d.displayName="Popover"},34850:(e,t,n)=>{"use strict";n.d(t,{NC:()=>l,cT:()=>a});let a={pp:"h",ps:"foam",p2:"hojk"},l="К сожалению, мы не нашли кредитов с такими параметрами"},35668:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});var a=n(2272);let l=[{getBankKey:e=>Number(e.id),getOfferKey:e=>e.bank_id},{getBankKey:e=>e.bic,getOfferKey:e=>e.bank_bic},{getBankKey:e=>e.url,getOfferKey:e=>e.bank_url}];class r extends a.d{get(e){let t=this.find(e);if(void 0===t)throw Error("Bank not found",{cause:{bankId:e.bank_id,mortgageId:e.id}});return t}constructor(e){super(e,l)}}},35807:e=>{e.exports={experts:"mortgages-offers-page_experts__A4Sbb",aboutContainer:"mortgages-offers-page_aboutContainer__DNtUE",gray:"mortgages-offers-page_gray__NWpHr",disclaimerWrapper:"mortgages-offers-page_disclaimerWrapper__ogDvr"}},37071:(e,t,n)=>{"use strict";n.d(t,{MI:()=>s,sm:()=>o});var a=n(12771),l=n(73584),r=n(3187);let s=["1","2","3","4","5","6"];async function o(){return i.getOrUpdate()}let i=new l.B4(c);async function c(){let e=await u(0),t=Math.ceil(e.total/1e3);return[e,...await Promise.all(Array.from({length:Math.max(t-1,0)},(e,t)=>u(t+1)))].flatMap(e=>{let{content:t}=e;return t}).reduce((e,t)=>{var n;let{bic:a,contentAttributes:l}=t;return(null==(n=l)?void 0:n.id)!==void 0&&void 0!==n.name&&void 0!==n.url&&e.push(function(e,t){var n;let{id:a,name:l,name_r:s,name_p:o,logo_mob:i,short_description:c,url:u,region_ids:d,legal_entities:_,credit_rating:p,net_profit_rating:m,ratings:v,license:h,license_date:g,site_url:f,official_website:x,phones:y}=t,b={id:String(a),name:l,name_r:s,name_p:o,short_description:c,url:u,region_ids:d,bic:e,credit_rating:p,net_profit_rating:m,ratings:v,site:{title:null!=x?x:null,url:null!=f?f:null},license:null!=h?h:"",license_date:null!=g?g:null};void 0!==i&&(0,r.vh)(i)&&(b.logo_mob=i);let j=null==y||null==(n=y[0])?void 0:n.phone;j&&(b.phone=j);let w=_[0];return void 0!==w&&(b.legalName=w.name,b.legalAddress=w.legal_address),b}(a,l)),e},[]).sort((e,t)=>e.name.localeCompare(t.name))}function u(e){return(0,a.aB)("banks?page=".concat(e,"&size=").concat(1e3))}},37397:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var a=n(33126),l=n(12771),r=n(63273),s=n(28131);async function o(e,t){var n;return i("".concat((n=(0,a.zj)().mainApiUrl,(0,r.oc)()&&window.origin!==n?"".concat((0,l.Cw)(),"/proxy").concat("/main"):n)).concat(e),t)}async function i(e,t){try{return{data:await (0,l.x6)(e,t),error:null}}catch(e){return{data:null,error:(0,s.u1)(e)}}}},39024:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MortgagesOffersPage:()=>nf,getMortgagesOffersPageProps:()=>ng});var a,l,r=n(37876),s=n(14232),o=n(89099),i=n(69241),c=n(10027),u=n(16891),d=n(37105),_=n(99388),p=n(53951),m=n(48230),v=n.n(m),h=n(50261),g=n(91063),f=n(54587),x=n.n(f),y=n(40317),b=n(87087),j=n(33126),w=n(83024),k=n(66451),A=n.n(k);let N=[{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}],C=(0,s.memo)(e=>{let{pageUrl:t}=e,{mainBaseUrl:n}=(0,j.UK)(),a=(0,w.fH)(),l=(0,s.useCallback)((e,l)=>{var r;e.stopPropagation();let s=(0,b.y)(null!=(r=l.title)?r:"");(0,g.o)({event:"data-event",eventAction:l.isLink?"click_link_".concat(s):"click_button_".concat(s),eventCategory:t,customer_id:a}),l.isLink?window.open("".concat(n,"/").concat(l.value),"_blank"):window.scrollTo({top:0,behavior:"smooth"})},[n,t,a]);return(0,r.jsxs)(y.m,{className:A().container,children:[(0,r.jsx)("h2",{className:A().title,children:"Каталог кредитов"}),(0,r.jsx)("div",{className:A().cardsList,children:N.map(e=>(0,r.jsxs)("div",{className:A().card,onClick:t=>l(t,e),children:[(0,r.jsx)(x(),{className:A().icon,width:158,height:60,alt:"banner-".concat(e.value),src:e.logo}),(0,r.jsx)("p",{className:A().subTitle,dangerouslySetInnerHTML:{__html:e.title}})]},e.id))})]})}),T="/ipoteka",S="DEFAULT",M="reg_",L="teg_",R={RATE:"rate",AMOUNT:"amount",DOWNPAYMENT:"downpayment"};R.RATE,R.AMOUNT,R.DOWNPAYMENT;var E=n(96470),B=n(36012),P=n(91403),F=n(78011),O=n(18258),D=n(99275),H=n(86700),I=n.n(H);let U=e=>{let{posts:t,regions:n,tags:a,questionsData:l,currentTag:s,region:i,town:c,support:u}=e,{query:_}=(0,o.useRouter)(),p=function(e,t,n,a,l,s){let o=e.map(e=>({title:(0,h.w)(e.title),text:(0,r.jsx)(E.eW,{data:(0,h.j)(e).content})}));o.push(...(0,O.N)(d.h.IPOTEKA,n,a,l,s,{nominativeCase:"Ипотека",genitiveCase:"ипотек"}));let i=t.reduce((e,t)=>{if(void 0===t.url_redirect){let n=(0,B.AP)(t.url,t.name);e.push(n)}return e},[]);return o.push({title:"Виды ипотек",text:(0,r.jsx)(B.oL,{children:i})}),o}(l,a.reduce((e,t)=>(t.url_redirect||e.push({...t,url:((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(L));return"".concat([n,...a].join("/"))})(t,_.segments)}),e),[]),n,s,i,c);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:I().faq_container,children:(0,r.jsx)(D.m,{isAllExpanded:!0,newContainer:!0,Link:e=>(0,r.jsx)(v(),{...e}),dataLayerPush:g.o,questions:p,eventCategory:"mortgages_support_block",href:"".concat((0,j.UK)().mainBaseUrl,"/help"),checkAllText:"Читать все вопросы про ипотеку"})}),t.length>0&&(0,r.jsx)(P.C,{eventCategory:T,posts:t}),(0,r.jsx)(F.E,{value:u}),(0,r.jsx)(C,{pageUrl:T})]})};var W=n(87162),Y=n(24523),q=n(31257),z=n(25904),V=n(13636),Z=n(20912),K=n(99542),J=n.n(K);function G(e){let{chips:t,onChipClick:n,lastInFirstRowChipIndex:a,isMobile:l,isFirstRow:s,useLinkChips:c}=e,{asPath:u}=(0,o.useRouter)(),{mainBaseUrl:d}=(0,j.UK)(),_="".concat(d).concat(u),p=(e,t)=>{let{value:o,label:c,color:u}=e;return(0,r.jsx)("div",{className:(0,i.A)(J().chip,J()[u],{[J().transparentChip]:s&&t>a},{[J().hiddenChip]:!s&&l&&t<=a}),onClick:()=>n(o),children:c},o)};return(0,r.jsx)(r.Fragment,{children:t.map(c?(e,t)=>{let n=e.value,a=new URL(_);return a.searchParams.delete("page"),a.searchParams.delete("property_type"),a.searchParams.append("property_type",e.value),(0,r.jsx)(v(),{className:J().link,href:a.toString(),onClick:e=>e.preventDefault(),children:p(e,t)},n)}:p)})}var Q=n(27607),X=n.n(Q);function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let ee=function(e){return s.createElement("svg",$({xmlns:"http://www.w3.org/2000/svg",width:12,height:6,fill:"none",viewBox:"0 0 12 6"},e),a||(a=s.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"})))},et=e=>{let{onChipClick:t,chips:n,className:a}=e,l=(0,w.fH)(),[o,c]=(0,s.useState)(!1),u=!(0,Z.Ke)("sm"),d=o?"Скрыть":"Ещё",[_,p,m,v]=((e,t)=>{let[n,a]=(0,s.useState)(e),[l,r]=(0,s.useState)(e),o=(0,s.useRef)(null),i=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let e=o.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,s=0,o=Array.from(n.target.children);for(let n=0;n<o.length;n++)if((l+=o[n].offsetWidth+12)<=e&&r(n),l<=(t?2*e:e))s=n;else{a(s);break}}});return n.observe(e),()=>{n.unobserve(e)}},[t,n,l]),[l,n,o,i]})(n.length,u);return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{ref:m,className:(0,i.A)(X().row,a,{[X().open]:o}),children:[(0,r.jsx)(G,{chips:n,onChipClick:t,lastInFirstRowChipIndex:_,isMobile:!1,useLinkChips:!0}),p<n.length-1&&(0,r.jsxs)("div",{ref:v,className:(0,i.A)(X().toggle,{[X().open]:o}),onClick:()=>{(0,q._)({customerId:l,eventAction:q.y.button,eventActionText:(0,b.y)(d)}),c(e=>!e)},children:[(0,r.jsx)(ee,{})," ",d]})]})})};var en=n(58082),ea=n.n(en);let el=e=>{let{count:t,children:n,addon:a,chips:l,header:s,isLoading:o,onChipClick:i,onParamsClick:c,onShowClick:u,useLinkChips:d}=e,_=(0,r.jsx)(et,{chips:l,onChipClick:i,useLinkChips:d});return(0,r.jsxs)("div",{className:ea().wrap,children:[s,(0,r.jsxs)("div",{className:ea().top_row,children:[(0,r.jsx)("div",{className:ea().top_row_content,children:n}),(0,r.jsxs)("div",{className:ea().top_row_buttons,children:[(0,r.jsx)(V.$,{variant:"secondary",label:"Все параметры",pending:o,disabled:o,onClick:c,iconLeft:(0,r.jsx)(z.Syy,{}),className:ea().params_button}),(0,r.jsx)(V.$,{onClick:u,className:ea().show_button,pending:o,disabled:o,label:"Показать".concat(t?" ".concat(t):"")})]}),(0,r.jsx)("div",{className:ea().chips_row,children:_}),a&&(0,r.jsx)("div",{className:ea().addon,children:a})]})]})};el.displayName="MainFilter";var er=n(87057),es=n(84025),eo=n(4053),ei=n(62835),ec=n(40818),eu=n(47052),ed=n(38200),e_=n(5552),ep=n(67129),em=n.n(ep);function ev(){return(0,r.jsx)("iframe",{className:em().widget,src:"https://realty.ya.ru/widgets/back-call-request"})}var eh=n(67347),eg=n(92666),ef=n(26734),ex=n(99448),ey=n.n(ex),eb=n(31070),ej=n.n(eb);let ew=e=>{let{currentTag:t,subtitle:n,className:a}=e,l=(0,w.fH)(),{handleToggleModal:o}=(0,eo.om)(),c=(0,eu.Y)(),u=(0,e_.sw)(),d=(0,ed.G)(),_=t?t.name:"Ипотека",{region:p,town:m}=(0,eg.z)(),v=(null==m?void 0:m.name_p)||(null==p?void 0:p.name_p),h=v?" в ".concat(v):"",g="".concat(p?"/".concat(M).concat(p.url):"").concat(m?"/".concat(m.url):""),{mainBaseUrl:f,isYandexRealty:x}=(0,j.UK)(),k=((e,t,n,a,l)=>{let r='{"@type":"ListItem","position":1,"name":"Финуслуги","item":"'.concat(e,'"}'),s='{"@type":"ListItem","position":2,"name":"Ипотека'.concat(a,'","item":"').concat(e,"/\n      ").concat(T).concat(l,'\n      "}'),o=',{"@type":"ListItem","position":3,"name":"&#128181 '.concat(n).concat(a,'","item":"').concat(e,"/").concat(T).concat(t?"/".concat(L).concat(t.url):"").concat(l,'"}'),i=t?o:"";return"{".concat('"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":['.concat(r),",").concat(s).concat(i,"]}")})(f,t,_,h,g),A=(0,s.useCallback)(()=>{(0,q._)({customerId:l,eventAction:q.y.link,eventActionText:(0,b.y)("Главная"),url:f})},[f,l]),N=(0,s.useCallback)(()=>{o(!0),(0,q._)({customerId:l,eventAction:q.y.popup,eventActionText:"".concat((0,b.y)("регион"),"_").concat(v)})},[v,o,l]);return(0,r.jsxs)("div",{className:(0,i.A)(a,ey().wrap,"bg-".concat(d)),children:[(0,r.jsx)(y.m,{children:(0,r.jsxs)("div",{className:(0,i.A)(ey().breadcrumbs),children:[(0,r.jsx)(es.B,{items:(()=>{let e=[{label:"Главная",href:"/"}];return t&&e.push({label:"Ипотека".concat(h),href:"".concat(T).concat(g)}),e.push({label:"".concat(_).concat(t?"":h)}),e})(),isMobile:u,onClick:A}),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:k}})]})}),x&&(0,r.jsx)(y.m,{children:(0,r.jsx)(ev,{})}),(0,r.jsx)(y.m,{children:(0,r.jsxs)("div",{className:ey().content,children:[(0,r.jsxs)("div",{className:ey().text,children:[(0,r.jsxs)("h1",{className:ey().title,children:[_," ",v&&(0,r.jsxs)(r.Fragment,{children:["в"," ",(0,r.jsx)("span",{onClick:N,className:ey().location,children:v})]})]}),(0,r.jsx)(eh.j,{tag:"p",className:ej().subtitle,children:(0,r.jsx)(ef.M,{text:n})})]}),(0,r.jsx)("div",{className:ey().banner,children:(0,r.jsx)(ei.L,{config:c,params:ec.ZA})})]})})]})},ek=[{value:"not_required",label:"Не требуется"},{value:"ndfl",label:"Справка 2-НДФЛ"},{value:"bank_form",label:"Справка по форме банка"},{value:"custom_form",label:"Альтернативные формы"}],eA=[{value:"not_required",label:"Не требуется"},{value:"deposit",label:"Залог"},{value:"guarantee",label:"Поручительство"},{value:"not_required_and_guarantee",label:"Залог и поручительство"}],eN=[{value:"cash",label:"Наличными"},{value:"account",label:"На счет"},{value:"third_party_bank_account",label:"На счет в стороннем банке"}],eC=[{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:"Другое"}],eT=[{value:"first",label:"Первичный"},{value:"second",label:"Вторичный"}],eS=[{label:"По ставке",value:"rate",shortLabel:"Ставка"},{label:"По взносу",value:"downpayment",shortLabel:"Взнос"},{label:"По платежу",value:"payment",shortLabel:"Платеж"}],eM=[{label:"Семейная ипотека",value:"family"},{label:"Дальневосточная ипотека",value:"far_east"},{label:"Материнский капитал",value:"maternal_capital"}];var eL=n(67221),eR=n(11404),eE=n(3187);function eB(){let{query:e,push:t}=(0,o.useRouter)(),{amount:n,payment:a,downpayment:l,term:r,property_type:i,market:c,form:u,proof:d,banks:_,provision:p,flags:m,sort:v,sortDir:h,...g}=e,f=(0,s.useMemo)(()=>eP({amount:n,payment:a,downpayment:l,term:r,property_type:i,market:c,form:u,proof:d,banks:_,provision:p,flags:m,sort:v,sortDir:h}),[n,a,l,r,i,c,u,d,_,p,m,v,h]),x=(0,s.useRef)(g),y=(0,s.useRef)(f),b=(0,s.useRef)(t);return x.current=g,y.current=f,b.current=t,{filter:f,setFilter:(0,s.useCallback)(e=>{var t,n,a,l,r,s,o,i,c,u;if(t=y.current,n=e,t.amount===n.amount&&t.payment===n.payment&&t.downpayment===n.downpayment&&t.term===n.term&&t.property_type===n.property_type&&t.market===n.market&&t.form===n.form&&t.proof===n.proof&&(null==(a=t.banks)?void 0:a.length)===(null==(l=n.banks)?void 0:l.length)&&(null==(r=t.banks)?void 0:r.slice().sort().toString())===(null==(s=n.banks)?void 0:s.slice().sort().toString())&&t.provision===n.provision&&(null==(o=t.flags)?void 0:o.length)===(null==(i=n.flags)?void 0:i.length)&&(null==(c=t.flags)?void 0:c.slice().sort().toString())===(null==(u=n.flags)?void 0:u.slice().sort().toString())&&t.sort===n.sort&&t.sortDir===n.sortDir)return!1;let{page:d,..._}=x.current,p={...function(e){let{amount:t,payment:n,downpayment:a,term:l,property_type:r,market:s,form:o,proof:i,banks:c,provision:u,flags:d,sort:_,sortDir:p}=e,m={};return void 0!==t&&(m.amount=String(t)),void 0!==n&&(m.payment=String(n)),void 0!==a&&(m.downpayment=String(a)),void 0!==l&&(m.term=String(l)),void 0!==r&&(m.property_type=r),void 0!==s&&(m.market=s),void 0!==o&&(m.form=o),void 0!==i&&(m.proof=i),void 0!==c&&(m.banks=(0,eE.t9)(c)),void 0!==u&&(m.provision=u),void 0!==d&&(m.flags=(0,eE.t9)(d)),void 0!==_&&(m.sort=_),void 0!==p&&(m.sortDir=p),m}(e),..._};return b.current({query:p},void 0,{shallow:!0}),!0},[])}}function eP(e){let{amount:t,payment:n,downpayment:a,term:l,property_type:r,market:s,form:o,proof:i,banks:c,provision:u,flags:d,sort:_,sortDir:p}=e,m={};return"string"==typeof t&&(m.amount=Number(t)),"string"==typeof n&&(m.payment=Number(n)),"string"==typeof a&&(m.downpayment=Number(a)),"string"==typeof l&&(m.term=Number(l)),"string"==typeof r&&(m.property_type=r),"string"==typeof s&&(m.market=s),"string"==typeof o&&(m.form=o),"string"==typeof i&&(m.proof=i),"string"==typeof c&&(m.banks=(0,eE.pi)(c)),"string"==typeof u&&(m.provision=u),"string"==typeof d&&(m.flags=(0,eE.pi)(d)),"string"==typeof _?m.sort=_:m.sort="rate","string"==typeof p?m.sortDir=p:m.sortDir="asc",m}var eF=n(31256);let{useDebugValue:eO}=s,{useSyncExternalStoreWithSelector:eD}=eF,eH=e=>{let t,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,r={setState:a,getState:l,getInitialState:()=>s,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()}},s=t=e(a,l,r);return r},eI=null,eU=e=>(function(e,t=e=>e,n){let a=eD(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,void 0);return eO(a),a})(eI=null!=eI?eI:(e=>e?eH(e):eH)(t=>{var n,a,l,r,s,o,i,c;return{subtitle:null!=(s=null==(n=e.mortgagesData)?void 0:n.subtitle)?s:"",offers:null!=(o=null==(a=e.mortgagesData)?void 0:a.page)?o:[],loading:!1,count:null!=(i=null==(l=e.mortgagesData)?void 0:l.count)?i:0,total_count:null!=(c=null==(r=e.mortgagesData)?void 0:r.total_count)?c:0,delayTimer:null,reload:async function(e,n,a,l,r){t({loading:!0});let{subtitle:s,page:o,count:i,total_count:c}=await p.E.offers.list({filter:e,limit:n,page:1,tagUrl:r,regionUrl:a,townUrl:l}),u=null==eI?void 0:eI.getState().delayTimer;u&&clearTimeout(u),null==eI||eI.getState().delayUpdate(()=>{t({subtitle:s}),t({offers:o}),t({count:i}),t({total_count:c}),t({loading:!1})})},delayUpdate:function(e){let n=null==eI?void 0:eI.getState().delayTimer;n&&clearTimeout(n),t({delayTimer:setTimeout(e,1e3)})},load:async function(n,a,l,r,s){var o,i;t({loading:!0});let{subtitle:c,page:u,count:d,total_count:_}=await p.E.offers.list({filter:n,limit:a,page:l,tagUrl:null!=(i=null==(o=e.currentTag)?void 0:o.url)?i:S,regionUrl:r,townUrl:s});null==eI||eI.getState().delayUpdate(()=>{t({subtitle:c}),t(e=>{let{offers:t}=e;return{offers:t.concat(u)}}),t({count:d}),t({total_count:_}),t({loading:!1})})},clear:()=>{t({subtitle:"",offers:[],count:0,total_count:0,loading:!1})}}}));var eW=n(35987),eY=n(9791),eq=n(87768),ez=n(8714),eV=n(51071),eZ=n(98019),eK=n(86933),eJ=n(89064),eG=n(15462),eQ=n(40090),eX=n(9640),e$=n(10741),e0=n.n(e$);let e1=e=>{let{filter:t,banksOptions:n,onChange:a}=e;return(0,r.jsxs)("div",{className:e0().content,children:[(0,r.jsxs)("div",{className:e0().form,children:[(0,r.jsx)("div",{className:(0,i.A)(e0().wrap),children:(0,r.jsx)(er.F,{label:"Сумма кредита",value:t.amount,onChange:e=>{a("amount",void 0!==e&&0!==e?Math.abs(e):void 0,"Сумма")}})}),(0,r.jsx)("div",{className:(0,i.A)(e0().wrap),children:(0,r.jsx)(er.F,{label:"Ежемесячный платеж до",value:t.payment,onChange:e=>{a("payment",void 0!==e&&0!==e?Math.abs(e):void 0,"Ежемесячный платеж до")}})}),(0,r.jsx)("div",{className:(0,i.A)(e0().wrap),children:(0,r.jsx)(er.F,{label:"Первый взнос",value:t.downpayment,onChange:e=>{a("downpayment",void 0!==e&&0!==e?Math.abs(e):void 0,"Первый взнос")}})}),(0,r.jsx)("div",{className:(0,i.A)(e0().wrap),children:(0,r.jsx)(eZ.Y,{label:"Срок",value:t.term,max:600,decimals:"never",unit:void 0!==t.term?(0,eJ.UB)(t.term):void 0,onChange:e=>{a("term",void 0!==e&&0!==e?Math.abs(e):void 0,"Срок")},withoutControls:!0})}),(0,r.jsx)("div",{className:(0,i.A)(e0().wrap),children:(0,r.jsx)(eX.l,{className:e0().select_fix,label:"Вид недвижимости",options:eC,value:t.property_type,onChange:e=>a("property_type",e,"Вид недвижимости")})}),(0,r.jsx)("div",{className:(0,i.A)(e0().wrap),children:(0,r.jsx)(eX.l,{className:e0().select_fix,label:"Рынок недвижимости",options:eT,value:t.market,onChange:e=>a("market",e,"Рынок недвижимости")})}),(0,r.jsx)("div",{className:(0,i.A)(e0().wrap),children:(0,r.jsx)(eX.l,{className:e0().select_fix,label:"Форма выдачи",options:eN,value:t.form,onChange:e=>a("form",e,"Форма выдачи")})}),(0,r.jsx)("div",{className:(0,i.A)(e0().wrap),children:(0,r.jsx)(eX.l,{className:e0().select_fix,label:"Подтверждение дохода",options:ek,value:t.proof,onChange:e=>a("proof",e,"Подтверждение дохода")})}),(0,r.jsx)("div",{className:(0,i.A)(e0().wrap),children:(0,r.jsx)(eQ.L,{className:e0().select_fix,label:"Банки",options:n,values:t.banks,onChange:e=>a("banks",e,"Банки")})}),(0,r.jsx)("div",{className:(0,i.A)(e0().wrap),children:(0,r.jsx)(eX.l,{className:e0().select_fix,label:"Обеспечение",options:eA,value:t.provision,onChange:e=>a("provision",e,"Обеспечение")})})]}),(0,r.jsx)("div",{className:(0,i.A)(e0().wrap),children:(0,r.jsxs)("div",{className:e0().sort,children:[(0,r.jsx)("h3",{className:e0().sort_title,children:"Дополнительно"}),eM.map((e,n)=>{var l;return(0,r.jsx)("div",{className:e0().fieldWrapper,children:(0,r.jsx)(ez.S,{className:e0().checkboxField,value:null==(l=t.flags)?void 0:l.includes(e.value),label:e.label,onChange:()=>{var n;return a("flags",(0,eG.L$)(null!=(n=t.flags)?n:[],e.value),"Дополнительно")}})},n)})]})}),(0,r.jsx)("div",{className:(0,i.A)(e0().wrap),children:(0,r.jsx)(eV.c,{className:e0().separator})}),(0,r.jsx)("div",{className:(0,i.A)(e0().wrap),children:(0,r.jsxs)("div",{className:e0().sort,children:[(0,r.jsx)("h3",{className:e0().sort_title,children:"Сортировка"}),eS.map((e,n)=>(0,r.jsx)("div",{className:e0().sort_wrap,children:(0,r.jsx)(eK.s,{name:"radio",value:t.sort,label:e.label,checked:t.sort===e.value,className:e0().checkboxField,onChange:()=>a("sort",e.value,"Сортировка")})},n))]})})]})},e2=e=>{let{visible:t,filter:n,offersCount:a,banksOptions:l,onHide:s,onChange:o,onDrop:i,onShow:c}=e;return(0,r.jsx)(eq.K,{count:a,isOpen:t,isMobile:!1,pageUrl:d.h.IPOTEKA,title:"Все параметры",onCLickShow:()=>c(),onClose:s,onClickReset:()=>i(),children:(0,r.jsx)(e1,{filter:n,onChange:o,banksOptions:l})})};var e3=n(16904),e4=n.n(e3);let e8=(0,Y.O)(),e7=e=>{let{ssr:t}=e,n=(0,w.fH)(),{scrollSmooth:a}=(0,eW.Ll)(),{filter:l,setFilter:o}=eB(),{visible:i,show:c,hide:u}=(0,eR.g)(),{subtitle:d,count:_}=eU({filter:l,mortgagesData:t.mortgagesData,currentTag:t.currentTag}),p=(0,s.useMemo)(()=>eC.map(e=>{let{value:t,label:n}=e;return{value:t,label:n,color:l.property_type===t?"black":"default"}}),[l.property_type]),m=(0,s.useCallback)(e=>{var t,a;(0,q._)({customerId:n,eventAction:q.y.filterCatalog,eventCategory:q.y.filterCatalog,eventLabel:"property_type",eventValue:(0,b.y)(null!=(a=null==(t=eC.find(t=>t.value===e))?void 0:t.label)?a:"")}),o({...l,property_type:e===l.property_type?"":e})},[l,o,n]),v=(0,s.useCallback)(()=>o({}),[o]),[h]=(0,eL.e)(()=>(0,eY.v)().then(e=>null!=e?e:[]),[]),g=(0,s.useMemo)(()=>(null!=h?h:[]).map(e=>({value:e.id,label:e.name})),[h]),f=()=>{(0,q._)({customerId:n,eventAction:q.y.button,eventActionText:(0,b.y)("показать")}),a({offset:-90})},x=(0,s.useCallback)(()=>{(0,q._)({customerId:n,eventAction:q.y.button,eventActionText:(0,b.y)("все параметры")}),c()},[c,n]),j=(e,t,a)=>{!function(e,t,n){e8(()=>(0,q._)({customerId:n,eventAction:q.y.filterCatalog,eventCategory:q.y.filterCatalog,eventLabel:(0,b.y)(e),eventValue:"string"==typeof t?t:JSON.stringify(t)}))}(a,t,n),o({...l,[e]:t})};return(0,r.jsxs)("div",{className:e4().wrap,children:[(0,r.jsx)(ew,{subtitle:d,currentTag:t.currentTag}),(0,r.jsxs)(y.m,{id:W.sn,children:[(0,r.jsxs)(el,{count:_,onChipClick:m,chips:p,onParamsClick:x,onShowClick:f,children:[(0,r.jsx)(er.F,{label:"Сумма кредита",value:l.amount,onChange:e=>{j("amount",void 0!==e&&0!==e?Math.abs(e):void 0,"Сумма")}}),(0,r.jsx)(er.F,{label:"Ежемесячный платеж до",value:l.payment,onChange:e=>{j("payment",void 0!==e&&0!==e?Math.abs(e):void 0,"Ежемесячный платеж до")}})]}),(0,r.jsx)(e2,{offersCount:_,visible:i,filter:l,banksOptions:g,onChange:j,onHide:u,onDrop:v,onShow:()=>{u(),f()}})]})]})};var e6=n(74356),e5=n(72809),e9=n(60650),te=n(18315),tt=n(30557),tn=n(79807),ta=n(12837),tl=n(47245),tr=n.n(tl);let ts=e=>{let{isOpen:t,url:n,data:a,onAllConditionsClick:l,onClose:o}=e,i=(0,s.useMemo)(()=>a?(e=>{let t={sectionTitle:"Условия ипотеки",body:[{label:"Сумма кредита",value:(0,tn.Vj)((0,tn.Ru)(e.amount.from,e.amount.to))}]},n=e.full_price;if(n){let a=e.interest_rate;t.body.push({label:"ПСК",value:(0,tt.o)(n),description:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n          Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."},{label:"Процентная ставка",value:(0,r.jsxs)("div",{children:[(0,tn.sP)((0,tn.lV)(Number(a.from),Number(a.to))),a.comment&&(0,r.jsx)("div",{className:tr().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,ta.t)(e.loan)}),(e.period.from||e.period.to)&&t.body.push({label:"Срок погашения кредита",value:"".concat((0,tn.Qd)((0,tn.lV)(Number(e.period.from),Number(e.period.to)))," мес.")}),(e.property_type.comment||e.property_type.text)&&t.body.push({label:"Вид недвижимости",value:(0,ta.t)(e.property_type)}),(e.real_estate_market.comment||e.real_estate_market.text)&&t.body.push({label:"Рынок недвижимости",value:(0,ta.t)(e.real_estate_market)}),(e.insurance.comment||e.insurance.text)&&t.body.push({label:"Страхование",value:(0,ta.t)(e.insurance)}),[t,{sectionTitle:"О банке",body:[{label:"Сайт",value:e.site.title}]}]})(a):[],[a]);return void 0===a||void 0===n?null:(0,r.jsx)(te.a,{isOpen:t,cancelButton:{title:"Все условия по ипотеке",onClick:l},submitButton:{title:"Оформить онлайн",url:n},onClose:o,bankName:a.bankName,dataPoints:i,pageUrl:d.h.IPOTEKA,offerUpdateData:a.m_updated_at})};var to=n(89287),ti=n(42195),tc=n(3010),tu=n(53172),td=n(43734),t_=n.n(td);let tp="DetailModalText",tm=e=>{var t,n;let{data:a,isMobile:l=!1,onClose:o,mainPageUrl:i,onFlag:c}=e,u=(0,w.fH)(),[d,_]=(0,s.useState)(null),p=null!=(t=null==d?void 0:d.link)?t:"",m=null!=(n=null==p?void 0:p.includes("#"))&&n,h=(0,eE.vh)(p),f=()=>{if(o(),d&&(0,g.o)({event:"data-event",eventAction:"click_button_".concat((0,b.y)(d.modalButtonText)),eventCategory:i,customer_id:u}),(null==d?void 0:d.filterFlags)&&c&&c(d.filterFlags),m){let e=p.split("#")[1];(0,tu.e)(e,{position:"top"})}p||(0,tu.e)(W.cA,{offset:l?0:-100,position:"top"})};return(0,s.useEffect)(()=>{a&&_(a)},[a]),(0,s.useEffect)(()=>{let e=document.querySelectorAll("#".concat(tp," > a")),t=e=>{e.target instanceof HTMLAnchorElement&&(0,q._)({customerId:u,eventAction:q.y.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,r.jsxs)("div",{className:t_().content,children:[(0,r.jsx)("div",{className:t_().logo,children:(null==d?void 0:d.logo)&&(0,r.jsx)(x(),{width:l?344:494,height:l?128:180,src:null==d?void 0:d.logo,alt:"logo"})}),(0,r.jsxs)("div",{className:t_().body,children:[(0,r.jsx)("h3",{className:t_().title,children:null==d?void 0:d.title}),(0,r.jsx)("p",{id:tp,className:t_().text,dangerouslySetInnerHTML:{__html:d?d.modalText:""}})]}),h||m?(0,r.jsx)(V.$,{as:"a",target:"_blank",href:m?void 0:p,size:"big",onClick:f,children:null==d?void 0:d.modalButtonText}):(0,r.jsx)(v(),{href:p,children:(0,r.jsx)(V.$,{size:"big",onClick:f,children:null==d?void 0:d.modalButtonText})})]})},tv=e=>{let{data:t,isOpen:n,onClose:a,mainPageUrl:l,onFlag:s}=e,o=(0,e_.sw)();return(0,r.jsx)(tc.Z,{children:(0,r.jsx)(ti.a,{open:n,onClose:a,header:{title:""},size:"l",children:(0,r.jsx)("div",{className:t_().container,children:(0,r.jsx)(tm,{data:t,isMobile:o,onClose:a,mainPageUrl:l,onFlag:s})})})})};var th=n(46119),tg=n(31758),tf=n.n(tg);function tx(){return(tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let ty=function(e){return s.createElement("svg",tx({xmlns:"http://www.w3.org/2000/svg",width:17,height:17,fill:"none",viewBox:"0 0 17 17"},e),l||(l=s.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"})))},tb={src:"/kredity/assets/_next/static/media/life-situations-1.a2fc9534.png",height:180,width:494,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAANlBMVEXOsISxuJvSvIjSSUbn3LXYr3/QjW316q/p1Ji+opLZvZaoPEDx7cuxc2fGTU66S1HLaF7r3p+cEv2jAAAACnRSTlP+/////////Pz4xwPQRQAAAAlwSFlzAAALEwAACxMBAJqcGAAAACNJREFUeJxj4GBnYmDlEGRn4OLh5WNmY2RhYGAR4OdmZeAEAAlXALLihgonAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:3},tj={src:"/kredity/assets/_next/static/media/life-situations-2.17787fd4.png",height:180,width:494,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAM1BMVEWvelPeum9/SjWVQTHNp2fjzIvw14fy45vVwIGvVDy1mnDowHPGfVuCQCivhWGoaUK9jlh/j3KTAAAACnRSTlP9////+P///Pr+jghZTQAAAAlwSFlzAAALEwAACxMBAJqcGAAAACNJREFUeJxj4GBjZWVnZWNn4GLk5+Nh4GZlYBDgZWLmZGQBAAkHAKZDFTImAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:3},tw={src:"/kredity/assets/_next/static/media/life-situations-3.1396f824.png",height:180,width:494,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAOVBMVEXWxXPMsInKh3PMPiqul1zRwZLd26bt5Jvf7LC5tWna4LDVvnDe1Z/Zx5OhPDm3LS7TsWhwOTXv2qEeoPlIAAAACnRSTlP9/////v///fz45qrS1AAAAAlwSFlzAAALEwAACxMBAJqcGAAAACNJREFUeJxjYGfnYWXl4eBgEOJl5ONn4mJjYOAWYBZkYeAEAAskAMzGoQhaAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:3},tk=(0,s.memo)(e=>{let{mainPageUrl:t,onFlag:n,isMobile:a}=e,l=(0,w.fH)(),[o,i]=(0,s.useState)(!1),[c,u]=(0,s.useState)(null),{onMouseDown:d,onMouseMove:_,resetState:p}=(0,th.I)(),m=(0,s.useMemo)(()=>a?288:348,[a]),v=e=>e.preventDefault,h=(0,s.useCallback)(e=>{u(e),i(!0),(0,q._)({customerId:l,eventAction:q.y.popup,eventActionText:e.title})},[l]),g=(0,s.useCallback)(()=>{var e;(0,q._)({customerId:l,eventAction:q.y.popdown,eventActionText:null!=(e=null==c?void 0:c.title)?e:""}),u(null),i(!1)},[null==c?void 0:c.title,l]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("section",{className:tf().section,id:W.ov,children:(0,r.jsxs)(y.m,{children:[(0,r.jsx)("h2",{className:tf().title,children:"Как вам помочь?"}),(0,r.jsx)("div",{className:tf().sliderContainer,children:(0,r.jsx)(to.A,{options:{slidesPerView:a?1:3,spaceBetween:a?16:32,centeredSlides:a,autoplay:{delay:5e3}},wrapperClass:tf().sliderWrapper,pagination:a,children:(function(){let{mainBaseUrl:e}=(0,j.zj)();return[{id:1,logo:tb,logoMobile:tb,title:"Льготная ипотека",modalText:"Найдем для вас предложения с пониженной ставкой — например, семейную ипотеку или ипотеку для ИТ-специалистов. Выберите льготную программу и подайте заявку на ипотечный кредит на Финуслугах",modalButtonText:"Выбрать ипотеку",link:"#".concat(W.cA),filterFlags:["3"]},{id:2,logo:tj,logoMobile:tj,title:"Рефинансирование кредита",modalText:"Хотите снизить ставку или уменьшить ежемесячный платеж по ипотеке? Покажем банки, в которые вы сможете перевести свой ипотечный кредит и получить более комфортные условия",modalButtonText:"Выбрать ипотеку",link:"/ipoteka/teg_refinansirovanie"},{id:3,logo:tw,logoMobile:tw,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(W.cA)}]})().map(e=>(0,r.jsxs)(to.D,{className:tf().card,onMouseDown:d,onMouseMove:_,onMouseLeave:p,onMouseUp:p,onClick:()=>h(e),onTouchStart:v,onTouchMove:v,onTouchEnd:v,children:[(0,r.jsx)("div",{className:tf().imgWrapper,children:(0,r.jsx)(x(),{width:m,height:128,alt:"banner"+e.id,src:a?e.logoMobile:e.logo})}),(0,r.jsxs)("div",{className:tf().cardBody,children:[(0,r.jsx)("p",{className:tf().subTitle,children:e.title}),(0,r.jsx)(V.$,{shape:"circle-icon",className:tf().cardButton,iconLeft:(0,r.jsx)(ty,{className:tf().iconArrow})})]})]},e.id))})})]})}),(0,r.jsx)(tv,{mainPageUrl:t,data:c,isOpen:o,onClose:g,onFlag:n})]})});var tA=n(26027),tN=n(54767),tC=n(72278),tT=n(91423),tS=n.n(tT);let tM=e=>{let{icon:t,offer:n,onDetails:a,isMobile:l}=e,o=(0,s.useMemo)(()=>{let e=[],t=n.full_price;return t&&e.push({caption:"ПСК",tooltipText:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n        Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре.",text:(0,tt.o)(t)}),e.push({caption:"Сумма",text:(0,tn.ej)({from:Number(n.amount.from),to:Number(n.amount.to)},{currency:(0,tN.O)(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,r.jsxs)("div",{className:tS().mortgage_info,children:[(0,r.jsxs)("div",{className:tS().bank_info,children:[(0,r.jsx)("div",{className:tS().icon,children:t}),(0,r.jsx)(tC.U,{caption:n.title,text:n.bank_name,className:(0,i.A)(tS().group,tS().title_group)}),l&&(0,r.jsx)("div",{className:tS().icon_button,onClick:a,children:(0,r.jsx)(z.S2Q,{})})]}),(0,r.jsx)("div",{className:tS().groups,children:o.map((e,t)=>e.text&&(0,r.jsx)(tC.U,{caption:e.caption,text:e.text,tooltipText:e.tooltipText,className:tS().group},t))})]})},tL=e=>{let{className:t,icon:n,offer:a,onDetails:l,onOpen:o,isMobile:c}=e,u=(0,s.useMemo)(()=>(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})(a),[a]),d=(0,s.useCallback)(e=>{e.stopPropagation(),null==l||l()},[l]),_=(0,r.jsx)("div",{className:tS().chips_row,children:u.map(e=>(0,r.jsx)("div",{children:(0,r.jsx)(tA.v,{label:e.label,variant:e.variant,className:tS().chip,rounded:!0})},e.label))});return(0,r.jsxs)("div",{className:(0,i.A)(t,tS().wrap),onClick:o,children:[(0,r.jsxs)("div",{className:tS().top_row,children:[(0,r.jsx)("div",{className:tS().top_row_content,children:(0,r.jsx)(tM,{icon:n,offer:a,onDetails:d,isMobile:c})}),(0,r.jsxs)("div",{className:tS().top_row_buttons,children:[!c&&(0,r.jsx)("div",{className:tS().icon_button,onClick:d,children:(0,r.jsx)(z.S2Q,{})}),c&&_,(0,r.jsx)(V.$,{className:tS().show_button,size:"xs",label:"Оформить"})]})]}),!c&&_]})};var tR=n(14834),tE=n.n(tR);let tB=e=>{let{className:t,title:n,offers:a,onDetails:l,onOpen:o,isMobile:i}=e,c=(0,w.fH)(),u=(0,s.useCallback)(e=>{(0,q._)({customerId:c,eventAction:q.y.button,eventActionText:"information_".concat(e.bank_url),eventLabel:e.id}),(0,q._)({customerId:c,eventAction:q.y.popup,eventActionText:"information_".concat(e.bank_url),eventLabel:e.id}),l(e.id)},[l,c]),d=(0,s.useCallback)(e=>{(0,q._)({customerId:c,eventAction:q.y.link,eventActionText:(0,b.y)(e.title),url:"".concat(T,"/").concat(e.bank_url)}),o(e)},[o,c]);return(0,r.jsxs)("div",{className:t,children:[(0,r.jsx)("p",{className:tE().listTitle,children:n}),(0,r.jsx)("div",{className:tE().list,children:a.map(e=>(0,r.jsx)(s.Fragment,{children:(0,r.jsx)(tL,{onDetails:()=>u(e),onOpen:()=>d(e),className:tE().card,icon:(0,r.jsx)(x(),{width:40,height:40,src:e.bank_logo_mob,alt:"logo"}),offer:e,isMobile:i})},e.id))})]})};var tP=n(88508),tF=n(28732),tO=n.n(tF);let tD=(0,s.memo)(e=>{let{chips:t,sort:n,sortOrder:a,onChangeSort:l,onChangeSortOrder:s,sortOptions:o,onClick:i,inView:c,filterRef:u,className:d,onClickChip:_}=e,p=(0,w.fH)(),m=(0,Z.Ke)("xs");return(0,r.jsx)("div",{ref:u,className:tO().filter,children:(0,r.jsx)(tP.x,{className:d,isNewSortRadios:!0,chips:t,isIncreaseSort:"asc"===a,onChangeIncreaseSort:e=>{let t=e?"asc":"desc";s(t),(0,q._)({customerId:p,eventAction:q.y.button,eventActionText:"sort_direction_".concat(t)})},sortTypeItems:o,sortTypeValue:null!=n?n:R.RATE,onChangeSortType:e=>{var t;l(e),(0,q._)({customerId:p,eventAction:q.y.button,eventActionText:"sort_type_".concat(null==(t=eS.find(t=>t.value===e))?void 0:t.label)})},onClickParams:i,isMobile:!m,isFixed:c,onClickChip:_})})});tD.displayName="SmallFilter";var tH=n(8868),tI=n(41329),tU=n(54926),tW=n(27964),tY=n(27116);let tq=(0,s.memo)(e=>{let t=function(e){let{name:t,description:n,offers:a,offersCount:l,url:r}=e,{mainBaseUrl:s}=(0,j.UK)();if(0===a.length)return;let o=(0,tI.l)({url:"".concat(s).concat(T).concat(r),priceCurrency:"RUB",offers:a,getLowPrice:e=>{let{amount:t}=e;return void 0!==t.from&&""!==t.from?Number(t.from):1e4},getHighPrice:e=>{let{amount:t}=e;return void 0!==t.to&&""!==t.to?Number(t.to):void 0},offerCount:l});return(0,tW.Z)({name:t,description:n,image:"".concat(s).concat(tH.au),offers:o,aggregateRating:(0,tU.E)({ratingValue:4.7,reviewCount:1645,bestRating:5,worstRating:1})})}(e);return void 0===t?null:(0,r.jsx)(tY.S,{schema:t})});tq.displayName="MortgageOffersSchema";var tz=n(5435),tV=n(95018),tZ=n(28502),tK=n.n(tZ);let tJ=e=>3===e.online_application.type,tG=e=>1===e.online_application.commercial,tQ=e=>!tJ(e)&&!tG(e),tX=e=>{var t,n,a,l;let{ssr:c,banksStorage:u}=e,d=(0,w.fH)(),_=(0,eW.yX)(),{query:p}=(0,o.useRouter)(),[m,v]=(0,s.useState)(Number(p.page)||1),{filter:h,setFilter:g}=eB(),{show:f}=(0,eR.g)(),x=(0,e_.sw)(),[j,k]=(0,s.useState)(!1),A=(0,s.useRef)(null),N=(0,s.useRef)(()=>null),{offers:C,loading:E,reload:B,load:P,clear:F,count:O,total_count:D}=eU({...c,filter:h}),H=null!=(a=null==(t=c.currentTag)?void 0:t.url)?a:S,{region:I,town:U}=(0,eg.z)(),Y=(0,s.useRef)(!0);(0,s.useEffect)(()=>{Y.current?Y.current=!1:B(h,10,null==I?void 0:I.url,null==U?void 0:U.url,H)},[h,null==I?void 0:I.url,null==U?void 0:U.url,H,B]);let z=(0,s.useRef)(!0);(0,eL.s)(()=>{z.current?z.current=!1:(F(),P(h,10,m,null==I?void 0:I.url,null==U?void 0:U.url))},[h],500);let V=(0,s.useCallback)(()=>{v(e=>{let t=e+1;return P(h,10,t,null==I?void 0:I.url,null==U?void 0:U.url),(0,q._)({customerId:d,eventAction:q.y.button,eventActionText:(0,b.y)("показать еще предложения")}),t})},[P,h,null==I?void 0:I.url,null==U?void 0:U.url,d]),Z=(e=>[{label:"Сумма кредита: ".concat(e.amount?(0,eG.ZV)(e.amount):"от 1"," ₽"),id:"amount"},{label:"Платеж: ".concat(e.payment?"до ".concat((0,eG.ZV)(e.payment)," ₽ в мес"):"любой"),id:"payment"},{label:"Срок: ".concat(e.term?"".concat(String(e.term)," мес."):"любой"),id:"term"},{label:"Банки: ".concat(e.banks?String(e.banks.length):"любые"),id:"banks"}])(h),K=(0,s.useMemo)(()=>C.filter(tJ),[C]),J=(0,s.useMemo)(()=>C.filter(tG),[C]),G=(0,s.useMemo)(()=>C.filter(tQ),[C]),Q=c.currentTag?c.currentTag.name:"Ипотека",X=(null==U?void 0:U.name_p)||(null==I?void 0:I.name_p),$=[...K,...J,...G],ee="".concat((null==(n=c.currentTag)?void 0:n.url)?"/".concat(L).concat(c.currentTag.url):"").concat(I?"/".concat(M).concat(I.url):"").concat(U?"/".concat(U.url):""),et=function(e){let[t,n]=(0,s.useState)(),a=(0,s.useMemo)(()=>{var n;return null!=(n=e.find(e=>e.id===t))?n:null},[t,e]),l=(0,s.useCallback)(()=>n(void 0),[]);return{data:a,visible:null!==t,show:n,hide:l}}(C),en=(0,s.useMemo)(()=>{if(!et.data)return;let e=u.get(et.data);return{...et.data,site:{title:e.site.title,url:e.site.url},bankName:e.name,logo:e.logo_mob}},[u,et.data]),ea=(0,s.useCallback)(()=>{(0,q._)({customerId:d,eventAction:q.y.button,eventActionText:(0,b.y)("все параметры")}),f()},[f,d]),el=e=>1===e.online_application.commercial?e.online_application.url:"".concat(T,"/").concat(e.url),er=(0,s.useCallback)(e=>{window.open(el(e))},[]),es=(0,s.useCallback)(()=>{var e,t;(0,q._)({customerId:d,eventAction:q.y.popdown,eventActionText:"information_".concat(null==(e=et.data)?void 0:e.bank_name),eventLabel:null==(t=et.data)?void 0:t.id}),et.hide()},[et,d]),eo=(0,s.useCallback)(()=>{var e,t;(0,q._)({customerId:d,eventAction:q.y.button,eventActionText:(0,b.y)("Все условия по ипотеке"),eventLabel:null==(e=et.data)?void 0:e.id}),(null==et||null==(t=et.data)?void 0:t.url)&&window.open("".concat(T,"/").concat(et.data.url),"_blank")},[et,d]),ei=et.data?el(et.data):void 0;(0,s.useEffect)(()=>(window.removeEventListener("scroll",N.current),N.current=()=>{if(!A.current)return;let{top:e}=A.current.getBoundingClientRect();k(e<=32)},window.addEventListener("scroll",N.current),()=>window.removeEventListener("scroll",N.current)),[]);let ec=(0,s.useCallback)(e=>{g({...h,sort:e})},[h,g]),eu=(0,s.useCallback)(e=>{g({...h,sortDir:e})},[h,g]),ed=10*m<O;return(0,r.jsxs)("div",{className:tK().wrap,children:[(0,r.jsx)(tk,{mainPageUrl:"#",onFlag:e=>{g({...h,flags:e})},isMobile:x}),(0,r.jsxs)("div",{id:W.cA,className:tK().products_list_container,children:[C&&(0,r.jsxs)("h2",{className:tK().title,children:["Найдено ",O," ",(0,r.jsx)("span",{className:tK().titleHide,children:(0,e9.v)(O)})," ",O===D?"":"из ".concat(D)]}),(0,r.jsx)("div",{className:(0,i.A)(tK().filter_wrapper,tK().newLayout),children:(0,r.jsx)(tD,{chips:Z,sort:h.sort||R.RATE,sortOrder:h.sortDir||"asc",onChangeSort:ec,onChangeSortOrder:eu,sortOptions:eS,onClick:ea,filterRef:A,inView:j,onClickChip:()=>{f()}})}),!E&&0===O&&(0,r.jsx)(y.m,{children:(0,r.jsx)(e5.O,{onChangeParams:f})}),(0,r.jsxs)(y.m,{as:"section",children:[(0,r.jsx)("div",{ref:_,children:C.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:tK().offers_lists,children:[K.length>0&&(0,r.jsx)(tB,{onOpen:er,onDetails:et.show,title:"Онлайн-ипотеки от Финуслуг",offers:K,isMobile:x}),J.length>0&&(0,r.jsx)(tB,{onOpen:er,onDetails:et.show,title:"Предложения на Финуслугах",offers:J,isMobile:x}),G.length>0&&(0,r.jsx)(tB,{onOpen:er,onDetails:et.show,title:"Предложения рынка кредитов",offers:G,isMobile:x})]}),(0,r.jsx)(tq,{name:"".concat(Q).concat(X?" в ".concat(X):""),description:null!=(l=c.mortgagesData.description)?l:"",offers:$,offersCount:O,url:ee}),ed&&(0,r.jsx)(tV.e,{page:m,onClick:V})]})}),E&&(0,r.jsx)("div",{className:tK().placeholder,children:[,,,,,].fill(0).map((e,t)=>(0,r.jsx)(e6.E,{},t))}),(0,r.jsx)(tz.h,{tag:"p",className:tK().subtitle,children:(0,r.jsx)(ef.M,{text:c.mortgagesData.subtitle})})]}),(0,r.jsx)(ts,{data:en,isOpen:et.visible,url:ei,onClose:es,onAllConditionsClick:eo})]})]})};var t$=n(3633),t0=n(48673),t1=n(35668),t2=n(12771),t3=n(73584),t4=n(28131);function t8(e){return t7.getOrUpdate(e,e)}let t7=new t3.AP(t6);async function t6(e){let t=await (0,t2.zy)("Mortgages.json?".concat("url","=").concat(encodeURIComponent(e)));if(1!==t.length)throw new t4.m_("Mortgages tag not found: ".concat(e));return function(e){let{url:t,name:n}=e;return{name:n,url:t}}(t[0])}var t5=n(23517),t9=n(2510);async function ne(){return Array.from((await nt.getOrUpdate()).values())}let nt=new t3.B4(nn);async function nn(){return(await (0,t2.zy)("Mortgages.json?tags&short=1")).mortgage_tags.reduce((e,t)=>(t.name!==t9.Z2&&e.set(t.url,function(e){let{name:t,url:n,url_redirect:a}=e,l={name:t,url:n},r=(0,t5.Y)(a);return void 0!==r&&(l.url_redirect=r),l}(t)),e),new Map)}var na=n(66460),nl=n(24323),nr=n(81787),ns=n(23857),no=n(7455),ni=n(46215),nc=n(162),nu=n(50598),nd=n(99514),n_=n(79790),np=n(44860),nm=n(35807),nv=n.n(nm);let nh=[(0,r.jsx)(s.Fragment,{children:"Используйте фильтры для указания желаемых параметров: суммы, срока и формы выдачи"},0),(0,r.jsx)(s.Fragment,{children:"Изучите и выберите подходящее предложение"},1),(0,r.jsx)(s.Fragment,{children:"Перейдите к оформлению"},2),(0,r.jsx)(s.Fragment,{children:"Заполните анкету, дождитесь одобрения и получите деньги любым удобным для вас способом"},3)],ng=async e=>{var t;let{query:n,resolvedUrl:a,params:l}=e,{page:r}=n,s=null!=(t=null==l?void 0:l.segments)?t:[],{tagUrl:o,regionUrl:i,townUrl:c}=(0,t9.bH)(s),{tag:u,region:_,town:m}=await (0,np.bY)(a,d.h.IPOTEKA,o,t8,i,c),v=function(e){let{amount:t,payment:n,downpayment:a,term:l,property_type:r,market:s,form:o,proof:i,banks:c,provision:u,flags:d,sort:_,sortDir:p}=e;return eP({amount:t,payment:n,downpayment:a,term:l,property_type:r,market:s,form:o,proof:i,banks:c,provision:u,flags:d,sort:_,sortDir:p})}(n),[h,g,f,x,y,b,j,w,k,A]=await Promise.all([ne(),p.E.posts(),p.E.offers.list({filter:v,limit:10,page:Number(r)||1,tagUrl:u.url,regionUrl:i,townUrl:c}),p.E.questions(u.url),(0,nr.T)(),(0,ni.X)().then(e=>e.regions),(0,eY.h)(),(0,nc.B8)((0,eE.m)(e.resolvedUrl)),(0,nd.y)(d.h.IPOTEKA),(0,no.K)()]);return{props:{tag:u,region:null!=_?_:null,town:null!=m?m:null,layout:y,regions:b,tags:h,mortgagesData:f,posts:g,questionsData:x,banks:j,expertQuote:null!=w?w:null,experts:null!=k?k:null,support:A.value}}};function nf(e){var t,n,a,l;let{layout:d,regions:p,tags:m,tag:v,mortgagesData:h,posts:g,questionsData:f,banks:x,expertQuote:y,experts:b,support:j}=e;(0,_.eg)(_.ch.Credit);let{region:w,town:k}=(0,eg.z)(),[A,N]=(0,s.useState)(null!=y?y:void 0),C=null!=b?b:void 0,{asPath:T}=(0,o.useRouter)(),S=null!=(n=null==(t=T.split("/").find(e=>e.includes("teg_")))?void 0:t.slice(4))?n:"DEFAULT",M=null!=(a=m.find(e=>e.url===S))?a:void 0,L=(0,eE.m)(T),R=(0,s.useMemo)(()=>new t1.I(x),[x]);return(0,t0.w5)(()=>{(0,nc.Zs)(L).then(N)},[L]),(0,r.jsxs)(ns.P,{data:d,children:[(0,r.jsx)(c.I,{title:h.title,description:h.description}),(0,r.jsx)(na.t,{}),(0,r.jsx)(e7,{ssr:{mortgagesData:h,currentRegion:null!=(l=null==w?void 0:w.url)?l:"",currentTag:M}}),(0,r.jsx)(tX,{ssr:{mortgagesData:h,currentTag:M,banks:x},banksStorage:R}),(0,r.jsx)("div",{className:(0,i.A)(nv().disclaimerWrapper,nv().gray),children:(0,r.jsx)(u.J,{children:(0,r.jsx)(t$.f,{type:"bank"})})}),(0,r.jsx)("div",{className:nv().gray,children:(0,r.jsx)(u.J,{className:nv().aboutContainer,children:(0,r.jsx)(nl.I,{steps:nh})})}),void 0!==A&&(0,r.jsx)(nu.V,{quote:A}),void 0!==C&&(0,r.jsx)("section",{className:nv().experts,children:(0,r.jsx)(u.J,{children:(0,r.jsx)(n_.o,{heading:"Ипотека",experts:C})})}),(0,r.jsx)(U,{currentTag:v,region:w,town:k,posts:g,questionsData:f,regions:p,tags:m?m.filter(e=>e.url!==S):[],support:j})]})}},40090:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var a=n(37876),l=n(16132);function r(e){let{label:t,options:n,values:r,className:s,onChange:o}=e,i=null==r?void 0:r.reduce((e,t)=>{let a=n.find(e=>String(e.value)===String(t));return a&&e.push(a),e},[]);return(0,a.jsx)(l.l,{className:s,label:t,options:n,value:null!=i?i:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,onChange:e=>{o(e?e.map(e=>e.value):void 0)},multiple:!0})}},41329:(e,t,n)=>{"use strict";function a(e){let{url:t,priceCurrency:n,offers:a,getLowPrice:l,getHighPrice:r,offerCount:s}=e,{lowPrice:o,highPrice:i}=function(e,t,n){let a=e.reduce((e,a)=>{e.lowPrice=Math.min(e.lowPrice,t(a));let l=n(a);return void 0!==l&&(e.highPrice=Math.max(e.highPrice,l)),e},{lowPrice:1/0,highPrice:-1/0});return{...Number.isFinite(a.lowPrice)&&{lowPrice:a.lowPrice},...Number.isFinite(a.highPrice)&&{highPrice:a.highPrice}}}(a,l,r);return{"@type":"AggregateOffer",url:t,priceCurrency:n,lowPrice:o,highPrice:i,offerCount:s}}n.d(t,{l:()=>a})},43237:(e,t,n)=>{"use strict";e.exports=n(60762)},43734:e=>{e.exports={container:"DetailModal_container__0QySE",content:"DetailModal_content__wNrBy",logo:"DetailModal_logo__Y3Gfm",body:"DetailModal_body__OhBkH",title:"DetailModal_title__byAo_",text:"DetailModal_text__bzuql"}},43736:e=>{e.exports={sortTypeContainer:"SortRadios_sortTypeContainer__8lU5M",newSortRadioSortTypeContainer:"SortRadios_newSortRadioSortTypeContainer__xY7lM",divider:"SortRadios_divider__P8JRR",sortType:"SortRadios_sortType__Ad5sp",sortTypeRadio:"SortRadios_sortTypeRadio__jVmAH",sortTypeTooltip:"SortRadios_sortTypeTooltip__JJNbc",sortTypeTrigger:"SortRadios_sortTypeTrigger__BgRzq",sortTypeHead:"SortRadios_sortTypeHead__VdaJc",newSortRadioSortTypeHead:"SortRadios_newSortRadioSortTypeHead__xKHHj",sortTypeButton:"SortRadios_sortTypeButton__UY3Mp",newSortRadioSortTypeButton:"SortRadios_newSortRadioSortTypeButton__wpRlC"}},46119:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var a=n(14232);let l=()=>{let[e,t]=(0,a.useState)(!1),[n,l]=(0,a.useState)(!1),r=(0,a.useRef)({x:0,y:0}),s=(0,a.useCallback)(e=>{l(!0),r.current={x:e.screenX,y:e.screenY},r.current&&r.current.x===e.screenX&&r.current.y===e.screenY&&t(!1)},[]);return{isDragged:e,isTouched:n,onMouseDown:s,onMouseMove:(0,a.useCallback)(e=>{r.current&&r.current.x===e.screenX&&r.current.y===e.screenY||(t(!0),r.current={x:e.screenX,y:e.screenY})},[]),resetState:(0,a.useCallback)(()=>{t(!1),l(!1)},[])}}},47245: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"}},47785:(e,t,n)=>{"use strict";var a=n(14232),l=n(43237),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=l.useSyncExternalStore,o=a.useRef,i=a.useEffect,c=a.useMemo,u=a.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,a,l){var d=o(null);if(null===d.current){var _={hasValue:!1,value:null};d.current=_}else _=d.current;var p=s(e,(d=c(function(){function e(e){if(!i){if(i=!0,s=e,e=a(e),void 0!==l&&_.hasValue){var t=_.value;if(l(t,e))return o=t}return o=e}if(t=o,r(s,e))return t;var n=a(e);return void 0!==l&&l(t,n)?t:(s=e,o=n)}var s,o,i=!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 i(function(){_.hasValue=!0,_.value=p},[p]),u(p),p}},51071:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var a=n(37876),l=n(69241),r=n(9789);n(75091);let s=(0,r.g)("divider"),o=Object.freeze({divider:s,content:"".concat(s,"__content")}),i=e=>{let{content:t,className:n,style:r,dataQa:s,dataId:i,...c}=e;return(0,a.jsx)("div",{className:(0,l.A)(o.divider,n),style:r,...c,"data-id":i,"data-qa":s,children:t&&(0,a.jsx)("div",{className:o.content,children:t})})};i.displayName="Divider"},53172:(e,t,n)=>{"use strict";function a(e){let{offset:t=0,position:n="bottom",delay:a=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};setTimeout(()=>{let a="string"==typeof e?document.getElementById(e):e;if(!a)return;let l=0;l="top"===n?a.getBoundingClientRect().top+window.scrollY+t:a.getBoundingClientRect().bottom+window.scrollY+t-document.documentElement.clientHeight,window.scrollTo({top:l,behavior:"smooth"})},a)}n.d(t,{e:()=>a})},53718:e=>{e.exports={gray:"container_gray__210_P",dark:"container_dark__OhxN6",ligth:"container_ligth__XYDh1"}},53951:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var a=n(37397),l=n(30557),r=n(28131),s=n(81741);let o=e=>(0,a.Q)(e).then(e=>{let{data:t,error:n}=e;return n?Promise.reject(n):t}),i={offers:{list:e=>{let{filter:t={},limit:n,page:a,tagUrl:s,regionUrl:i,townUrl:c}=e,u=Object.entries({...(e=>{var t,n,a,l;let r={};return void 0!==e.amount&&(r.amount=e.amount),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!=(t=({first:"primary",second:"secondary"})[e.market])?t:"primary"),void 0!==e.form&&(r.form=null!=(n=({cash:"cash",account:"to_account",third_party_bank_account:"to_custom_account"})[e.form])?n:"to_account"),void 0!==e.proof&&(r.income_proof=e.proof),void 0!==e.provision&&(r.loan=null!=(a=({not_required:"not_required",deposit:"pledge",guarantee:"guarantee",not_required_and_guarantee:"pledge,guarantee"})[e.provision])?a:""),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!=(l=void 0!==e.sort?({rate:"rate",payment:"amount",downpayment:"firstPayment"})[e.sort]:void 0)?l:"rate",r.order=e.sortDir,r})(t),archive:0,...void 0!==n&&{limit:n},...void 0!==a&&{page:a},...void 0!==s&&{tag:s},...void 0!==i&&{region:i},...void 0!==i&&void 0!==c&&{town:c}}).map(e=>{let[t,n]=e;return"".concat(t,"=").concat(encodeURIComponent(n))}).join("&");return o("/money_data/Mortgages.json?".concat(u)).then(e=>{if(!e)return{title:"",subtitle:"",description:"",page:[],count:0,total_count:0};let{title:t,description:n,subtitle:s,mortgages_count:o,mortgages_total_count:i,mortgages:c,mortgages_online:u}=e;if(void 0!==a&&1!==a&&0===c.length&&0===u.length)throw new r.m_("Invalid mortgages page: ".concat(a));return{title:t,subtitle:s,description:n,page:u.concat(c).map(e=>({...e,full_price:(0,l.j)(e.full_price)})),count:o,total_count:i}})}},posts:()=>(0,s.F)(s.s.Mortgages),questions:e=>o("/money_data/Mortgages.json?url=".concat(e)).then(e=>e[0].text)}},54767:(e,t,n)=>{"use strict";n.d(t,{O:()=>a});let a=e=>{switch(e){case 2:case"2":case"USD":return{shortName:"долл.",unit:"$",name:"долларах",code:"USD",locale:"en",num:2};case 3:case"3":case"EUR":return{shortName:"евро",unit:"€",name:"евро",code:"EUR",locale:"en",num:3};case 4:case"4":case"CNY":return{shortName:"юань",unit:"\xa5",name:"юанях",code:"CNY",locale:"zh-CN",num:4};case 5:case"5":case"CHF":return{shortName:"франк",unit:"₣",name:"франках",code:"CHF",locale:"en",num:5};case 6:case"6":case"GBP":return{shortName:"фунт",unit:"\xa3",name:"фунтах",code:"GBP",locale:"en",num:6};case 7:case"7":case"JPY":return{shortName:"иена",unit:"\xa5",name:"иенах",code:"JPY",locale:"ja-JP",num:7};default:return{shortName:"руб.",unit:"₽",name:"рублях",code:"RUB",locale:"ru",num:1}}}},54926:(e,t,n)=>{"use strict";function a(e){let{ratingValue:t,reviewCount:n,bestRating:a,worstRating:l}=e;return{"@type":"AggregateRating",ratingValue:t,reviewCount:n,bestRating:a,worstRating:l}}n.d(t,{E:()=>a})},55330:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var a=n(37876),l=n(40317),r=n(69241),s=n(53718),o=n.n(s);function i(e){if("theme"in e){let{className:t,children:n,theme:s,...i}=e;return(0,a.jsx)("div",{className:(0,r.A)(t,{[o().gray]:"gray"===s,[o().dark]:"dark"===s,[o().ligth]:"ligth"===s}),children:(0,a.jsx)(l.m,{...i,children:n})})}return(0,a.jsx)(l.m,{...e,children:e.children})}},56685:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a={src:"/kredity/assets/_next/static/media/search.b3dc20e8.svg",height:192,width:212,blurWidth:0,blurHeight:0}},58082: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"}},60762:(e,t,n)=>{"use strict";var a=n(14232),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=a.useState,s=a.useEffect,o=a.useLayoutEffect,i=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=r({inst:{value:n,getSnapshot:t}}),l=a[0].inst,u=a[1];return o(function(){l.value=n,l.getSnapshot=t,c(l)&&u({inst:l})},[e,n,t]),s(function(){return c(l)&&u({inst:l}),e(function(){c(l)&&u({inst:l})})},[e]),i(n),n};t.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},63396:e=>{e.exports={filter:"ListFilter_filter__VuF60",newSortRadiosFilter:"ListFilter_newSortRadiosFilter__kKfmj",sortTypeDesktop:"ListFilter_sortTypeDesktop__5LQyN",container:"ListFilter_container__nvtCN",modal:"ListFilter_modal__3ZmvQ",newSortRadioModal:"ListFilter_newSortRadioModal__vNMpD",modalButton:"ListFilter_modalButton__d5V_n",chipsContainer:"ListFilter_chipsContainer__tfgri",actionsWrapper:"ListFilter_actionsWrapper__m04h1",action:"ListFilter_action__WggMr",actionText:"ListFilter_actionText__11VOZ",iconButton:"ListFilter_iconButton__9o3Q7",actionButton:"ListFilter_actionButton__I4ohH",icon:"ListFilter_icon__RsoyT",iconInverted:"ListFilter_iconInverted__1MkEe",stuck:"ListFilter_stuck___Ya2T",mainContainer:"ListFilter_mainContainer__Lb5um",chipsContainerClosed:"ListFilter_chipsContainerClosed__TNa0t"}},66451:e=>{e.exports={container:"MortgagesCreditsCatalog_container__5BmyA",title:"MortgagesCreditsCatalog_title__3ALPZ",cardsList:"MortgagesCreditsCatalog_cardsList__gHJUT",card:"MortgagesCreditsCatalog_card__v_YKX",icon:"MortgagesCreditsCatalog_icon__S5VCn",link:"MortgagesCreditsCatalog_link__Bbro2",subTitle:"MortgagesCreditsCatalog_subTitle__JnyUy"}},66677:e=>{e.exports={actualDateOffer:"actual-date-offer_actualDateOffer__CNnEb"}},67129:e=>{e.exports={widget:"yandex-realty_widget__xtPmC"}},67221:(e,t,n)=>{"use strict";n.d(t,{e:()=>r,s:()=>l});var a=n(14232);let l=(e,t,n)=>{(0,a.useEffect)(()=>{let t=setTimeout(()=>{e()},n);return()=>{clearTimeout(t)}},t)},r=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,[l,r]=(0,a.useState)(n),[s,o]=(0,a.useState)(!1),[i,c]=(0,a.useState)(null);return(0,a.useEffect)(()=>{o(!0),e().then(r).catch(c).then(()=>{o(!1)})},t),[l,s,i]}},70894:e=>{e.exports={skeleton:"Skeleton_skeleton__QIS3q",move:"Skeleton_move__TZqyh"}},72278:(e,t,n)=>{"use strict";n.d(t,{U:()=>c});var a=n(37876),l=n(25904),r=n(28346),s=n(69241),o=n(1404),i=n.n(o);function c(e){let{caption:t,text:n,tooltipText:o,className:c,Icon:u=l.KYF}=e;return(0,a.jsxs)("div",{style:{display:"flex",flexDirection:"column"},className:(0,s.A)(i().wrapper,c),children:[(0,a.jsxs)("div",{className:i().titleWrapper,children:[(0,a.jsx)("span",{className:i().title,children:t}),void 0!==o&&(0,a.jsx)(r.m,{text:o,withoutTail:!0,position:"right",zIndex:200,children:(0,a.jsx)(u,{size:20,onClick:e=>null==e?void 0:e.stopPropagation()})})]}),(0,a.jsx)("span",{className:i().text,children:n})]})}},72809:(e,t,n)=>{"use strict";n.d(t,{O:()=>d});var a=n(37876),l=n(54587),r=n.n(l),s=n(13636),o=n(56685),i=n(34850),c=n(31443),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:o.A,alt:"?"}),(0,a.jsx)("p",{className:u().notFoundText,children:i.NC}),void 0!==t&&(0,a.jsx)(s.$,{variant:"secondary",className:u().changeParamsButton,onClick:t,children:"Изменить параметры"})]})}},74356:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var a=n(37876),l=n(14232),r=n(69241),s=n(70894),o=n.n(s);let i=(0,l.memo)(e=>{let{className:t}=e;return(0,a.jsx)("div",{className:(0,r.A)(o().skeleton,t)})});i.displayName="Skeleton"},75091:()=>{},82734:e=>{e.exports={wrap:"Dropdown_wrap__22_5K",newSortRadioWrap:"Dropdown_newSortRadioWrap__N83gl",content:"Dropdown_content__zkeB8"}},83198:e=>{e.exports={contentBlocks:"styles_contentBlocks__8fC8O",annotation:"styles_annotation__pT6EZ",contentTableWrapper:"styles_contentTableWrapper__YVBts",keynoteWrapper:"styles_keynoteWrapper__gc4W6",keynote:"styles_keynote___tmb5",blockLink:"styles_blockLink__h1Biq"}},86700:e=>{e.exports={faq_container:"styles_faq_container__YZoO_"}},87162:(e,t,n)=>{"use strict";n.d(t,{Dg:()=>o,Z5:()=>c,cA:()=>r,nS:()=>s,ov:()=>l,sn:()=>a,uB:()=>i,yB:()=>u});let a="main",l="place",r="productsList",s="stepsCreditSelection",o="creditSelection",i="aboutProduct",c="creditApplySteps",u="creditLogin"},88508:(e,t,n)=>{"use strict";n.d(t,{x:()=>N});var a,l,r=n(37876),s=n(14232),o=n(29589),i=n(69241),c=n(82734),u=n.n(c);let d=e=>{let{content:t,children:n,disabled:a,isNewSortRadios:l}=e,[o,c]=(0,s.useState)(!1),d=(0,s.useCallback)(()=>c(!0),[c]),_=(0,s.useCallback)(()=>c(!1),[c]);return(0,r.jsxs)("div",{className:(0,i.A)(u().wrap,l&&u().newSortRadioWrap),onClick:d,ref:(e=>{let t=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let n=n=>{var a;let{target:l}=n;l instanceof HTMLElement&&!(null==(a=t.current)?void 0:a.contains(l))&&e()};return window.addEventListener("click",n),()=>{window.removeEventListener("click",n)}},[e]),t})(_),children:[n,o&&!a&&(0,r.jsx)("div",{className:u().content,children:t})]})};var _=n(86933),p=n(28346),m=n(43736),v=n.n(m);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let g=function(e){return s.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),a||(a=s.createElement("path",{fill:"#000",d:"M12 11a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1m.38-3.92a1 1 0 0 0-.76 0 1 1 0 0 0-.33.21 1.2 1.2 0 0 0-.21.33 1 1 0 0 0 .21 1.09q.147.133.33.21A1 1 0 0 0 13 8a1.05 1.05 0 0 0-.29-.71 1 1 0 0 0-.33-.21M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m0 18a8 8 0 1 1 0-16.001A8 8 0 0 1 12 20"})))};function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let x=function(e){return s.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),l||(l=s.createElement("path",{fill:"#1F242E",fillRule:"evenodd",d:"M2 5a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1M2 12c0-.552.482-1 1.077-1h11.846c.595 0 1.077.448 1.077 1s-.482 1-1.077 1H3.077C2.482 13 2 12.552 2 12M2 19c0-.552.5-1 1-1h6c.5 0 1 .448 1 1s-.352 1-1 1H3c-.5 0-1-.448-1-1",clipRule:"evenodd"})))},y=e=>{let{isNewSortRadios:t,isMobile:n,onChangeSort:a,isIncreaseSort:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{className:(0,i.A)(v().sortTypeHead,t&&v().newSortRadioSortTypeHead),children:[(0,r.jsx)("button",{style:{marginLeft:"0px",marginRight:n?"0px":"8px"},className:(0,i.A)(v().sortTypeButton,t&&v().newSortRadioSortTypeButton),onClick:a,children:(0,r.jsx)(x,{className:(0,i.A)(!l&&v().iconInverted)})}),"Сортировать"]}),t&&(0,r.jsx)("div",{className:v().divider})]})},b=(0,s.memo)(e=>{let{isMobile:t,onChangeSort:n,isIncreaseSort:a,onChangeSortType:l,sortTypeItems:s,sortTypeValue:o,isNewSortRadios:c}=e;return(0,r.jsxs)(r.Fragment,{children:[!c&&t&&(0,r.jsx)(y,{onChangeSort:n,isMobile:t,isIncreaseSort:a,isNewSortRadios:c}),(0,r.jsxs)("div",{className:(0,i.A)(v().sortTypeContainer,c&&v().newSortRadioSortTypeContainer),onClick:e=>e.stopPropagation(),children:[c&&(0,r.jsx)(y,{onChangeSort:n,isMobile:t,isIncreaseSort:a,isNewSortRadios:c}),s.map(e=>(0,r.jsxs)("div",{"data-qa":"".concat(e.value,"_radio"),className:v().sortType,children:[c?(0,r.jsx)(_.s,{name:e.value,value:o,checked:e.value===o,label:e.label,onChange:()=>l(e.value)}):(0,r.jsx)(_.s,{name:e.value,label:e.label,checked:e.value===o,className:v().sortTypeRadio,value:e.value,onChange:()=>l(e.value)}),e.description&&(0,r.jsx)(p.m,{text:e.description,className:(0,i.A)(v().sortTypeButton,c&&v().newSortRadioSortTypeButton),children:(0,r.jsx)(g,{})})]},e.value))]})]})});b.displayName="SortRadios";var j=n(16891),w=n(63396),k=n.n(w),A=n(19497);let N=(0,s.memo)(e=>{let{chips:t,onClickParams:n,isIncreaseSort:a,onChangeIncreaseSort:l,sortTypeItems:c,sortTypeValue:u,onChangeSortType:_,isMobile:p,isFixed:m,portalId:v,onClickChip:h,className:g,onClickSortType:f,isNewSortRadios:y}=e,w=(0,s.useCallback)(()=>null==l?void 0:l(!a),[a,l]),N=(0,r.jsx)("div",{style:{padding:"8px",borderRadius:y?"20px":"8px",background:"white"},className:(0,i.A)(!p&&y&&k().sortTypeDesktop),children:(0,r.jsx)(b,{isMobile:p,isIncreaseSort:a,onChangeSort:w,onChangeSortType:_,sortTypeItems:c,sortTypeValue:u,isNewSortRadios:y,portalId:v})}),C=c.find(e=>e.value===u);return(0,r.jsx)("div",{className:(0,i.A)(k().filter,y&&k().newSortRadiosFilter,m&&k().stuck,g),children:(0,r.jsx)(j.J,{className:k().mainContainer,children:(0,r.jsxs)("div",{className:k().container,children:[(0,r.jsx)(o.C,{className:k().chipsContainer,chips:t,value:t.map(e=>e.id),multiple:!0,activeVariant:"secondary",onChipClick:h}),(0,r.jsxs)("div",{className:k().actionsWrapper,children:[(0,r.jsxs)("button",{className:(0,i.A)(k().action,k().actionButton),onClick:n,children:[(0,r.jsx)(A.A,{className:k().icon}),(0,r.jsx)("span",{className:k().actionText,children:"Все параметры"})]}),(0,r.jsxs)("div",{className:k().action,children:[(0,r.jsx)("button",{className:(0,i.A)(k().icon,k().iconButton,!a&&k().iconInverted),onClick:w,children:(0,r.jsx)(x,{})}),(0,r.jsx)(d,{content:N,disabled:p,isNewSortRadios:y,children:(0,r.jsx)("button",{onClick:f,className:(0,i.A)(k().actionText,k().actionButton),"data-qa":"".concat(u,"_order"),children:(null==C?void 0:C.shortLabel)||(null==C?void 0:C.label)||"Сортировка"})})]})]})]})})})});N.displayName="ListFilter"},90257:(e,t,n)=>{"use strict";n.d(t,{n:()=>d});var a=n(37876),l=n(14232),r=n(69241),s=n(37105),o=n(98547);let i={[s.h.POTREBITELSKIE]:"о кредите",[s.h.AUTOCREDIT]:"об автокредите",[s.h.MICROZAJMY]:"о займе",[s.h.IPOTEKA]:"об ипотеке",[s.h.KARTY]:"о кредитной карте",[s.h.CALCULATOR]:"о кредите"};var c=n(66677),u=n.n(c);let d=(0,l.memo)(e=>{let{pageUrl:t,actualizedAt:n,className:l}=e;return void 0===n?null:(0,a.jsx)("span",{className:(0,r.A)(u().actualDateOffer,l),children:"Информация ".concat(i[t]," актуальна на ").concat((0,o.i)(n))})});d.displayName="ActualDateOffer"},91423: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"}},94289:e=>{e.exports={mobilePopup:"styles_mobilePopup__G3e3Z",container:"styles_container__IGo0H",list:"styles_list__eSXKF",title:"styles_title__b38Q2",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"}},96470:(e,t,n)=>{"use strict";n.d(t,{NC:()=>_,eW:()=>v,lA:()=>p,t$:()=>m});var a=n(37876),l=n(14232),r=n(54587),s=n.n(r),o=n(69241),i=n(21921),c=n(24284),u=n(83198),d=n.n(u);function _(e){return e.replaceAll("&nbsp;"," ").replace(/<br\s*\/?>/gi,"\n").replace(/<\/p>/gi,"\n").replace(/<li>\s?/gi,"• ").replace(/<[^>]+>/g,"").replace(/[^\n]•/g,"\n•").replace(/([^\s])$/g,"$1 ")}function p(e){let t=[],n=1;return e.forEach((e,l)=>{var r,o,u,_,p,m,v,h;switch(e.type){case i.$G.Header:t.push((0,a.jsx)("h2",{id:"content_header_".concat(n),children:e.data.text},l)),n++;break;case i.$G.SubHeader:t.push((0,a.jsx)("h3",{children:e.data.text},l));break;case i.$G.Paragraph:t.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:null!=(r=e.data.text)?r:""}},l));break;case i.$G.Link:t.push((0,a.jsx)("div",{className:d().blockLink,children:(0,a.jsx)("a",{target:"_blank",href:e.data.url,rel:"noreferrer",children:e.data.text})},l));break;case i.$G.Dossier:t.push((0,a.jsxs)("div",{className:d().dossierDateItem,children:[(0,a.jsx)("span",{className:d().date,children:e.data.year}),(0,a.jsx)("div",{className:d().text,dangerouslySetInnerHTML:{__html:null!=(o=e.data.text)?o:""}})]},l));break;case i.$G.Html:t.push((0,a.jsx)("div",{className:d().htmlBlock,dangerouslySetInnerHTML:{__html:(0,c.w)(null!=(u=e.data.html)?u:"")}},l));break;case i.$G.Annotation:t.push((0,a.jsx)("div",{className:d().annotation,dangerouslySetInnerHTML:{__html:(0,c.w)(null!=(_=e.data.text)?_:"")}},l));break;case i.$G.CompanyAnnotation:t.push((0,a.jsx)("div",{className:d().companyAnnotation,dangerouslySetInnerHTML:{__html:null!=(p=e.data.text)?p:""}},l));break;case i.$G.Keynote:t.push((0,a.jsx)("div",{className:d().keynoteWrapper,children:(0,a.jsx)("p",{className:d().keynote,dangerouslySetInnerHTML:{__html:null!=(m=e.data.text)?m:""}})},l));break;case i.$G.Image:t.push((0,a.jsx)(s(),{src:null!=(v=e.data.url)?v:"",alt:"image"},l));break;case i.$G.Table:t.push((0,a.jsxs)("div",{className:d().contentTableWrapper,children:[e.data.title?(0,a.jsx)("h4",{children:e.data.title}):"",(0,a.jsx)("div",{className:d().contentTableContent,dangerouslySetInnerHTML:{__html:(0,c.w)(null!=(h=e.data.html)?h:"")}})]},l))}}),t}function m(e){let{className:t,children:n}=e;return(0,a.jsx)("div",{className:(0,o.A)(d().contentBlocks,t),children:n})}let v=e=>{let{className:t,data:n}=e,r=(0,l.useMemo)(()=>p(n),[n]);return(0,a.jsx)("div",{className:(0,o.A)(d().contentBlocks,t),children:r})}},98547:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});let a=e=>{let t=new Date(e).getDate(),n=new Date(e).getMonth()+1,a=new Date(e).getFullYear();return"".concat(t<10?"0"+t:t,".").concat(n<10?"0"+n:n,".").concat(a)}},99448: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_"}},99542:e=>{e.exports={link:"styles_link__XzCzB",chip:"styles_chip__bgIDt",black:"styles_black__aacN4",transparentChip:"styles_transparentChip__4ZT35",hiddenChip:"styles_hiddenChip__COVhQ"}}}]);