(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[557,4432],{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:()=>l});class l{find(e){for(let{banksByKey:t,getOfferKey:n}of this.keyIndexes){let l=t.get(n(e));if(void 0!==l)return l}}constructor(e,t){this.keyIndexes=t.map(t=>{let{getBankKey:n,getOfferKey:l}=t;return{banksByKey:new Map(e.map(e=>[n(e),e])),getOfferKey:l}})}}},8868:(e,t,n)=>{"use strict";n.d(t,{JY:()=>r,MH:()=>s,QZ:()=>a,au:()=>o});var l=n(33126);function a(){return"".concat((0,l.zj)().lkBaseUrl,"/credits/new?skipName=true&productType=credit")}function r(){return"".concat((0,l.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 l=n(37876),a=n(16132);function r(e){var t;let{value:n,...r}=e,s=(t=n,r.options.find(e=>e.value===t));return(0,l.jsx)(a.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 l=n(53951),a=n(12771),r=n(73584),s=n(37071);function o(){return(0,a.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)(),l.E.offers.list({})]),n=new Set,a=new Set,r=new Set;for(let{bank_id:e,bank_bic:l,bank_url:s}of t.page)n.add(e),a.add(l),r.add(s);return e.filter(e=>{let{id:t,bic:l,url:s}=e;return n.has(Number(t))||a.has(l)||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:()=>a});var l=n(14232);function a(){let[e,t]=(0,l.useState)(!1);return{visible:e,show:(0,l.useCallback)(()=>t(!0),[]),hide:(0,l.useCallback)(()=>t(!1),[])}}},12837:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var l=n(37876),a=n(26685),r=n.n(a);function s(e){let{comment:t,text:n}=e;return void 0!==t&&void 0!==n?(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}),(0,l.jsx)("div",{className:r().commentText,dangerouslySetInnerHTML:{__html:t}})]}):void 0!==n?(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}):void 0!==t?(0,l.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$:()=>l,ZV:()=>a});let l=(e,t)=>(null==e?void 0:e.includes(t))?e.filter(e=>e!==t):(e||[]).concat([t]),a=e=>r(e.toString().split("").reverse(),3).reverse().map(e=>e.reverse().join("")).join(" "),r=(e,t)=>{let n=[];for(let l=0;l<e.length;++l){let a=Math.floor(l/t);n[a]||(n[a]=[]),n[a].push(e[l])}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 l=n(37876),a=n(14232),r=n(13636),s=n(42195),o=n(66658),i=n(74356),c=n(90257),u=n(32266),d=n(94289),_=n.n(d);let p=(0,a.memo)(e=>{let{isOpen:t,cancelButton:n,submitButton:d,onClose:p,bankName:m,dataPoints:v,offerUpdateData:g,pageUrl:h}=e,f=(0,l.jsxs)("div",{className:_().content,children:[v.map(e=>(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)("h2",{className:_().title,children:e.sectionTitle}),(0,l.jsx)("div",{className:_().list,children:e.body.length?e.body.map((e,t)=>(0,l.jsxs)("div",{className:_().field,children:[(0,l.jsxs)("div",{className:_().titleWrapper,children:[(0,l.jsx)("h3",{className:_().fieldTitle,children:null==e?void 0:e.label}),(null==e?void 0:e.description)&&(0,l.jsx)(u.A,{triggerClassName:_().icon,content:e.description})]}),(0,l.jsx)("div",{className:_().fieldContent,children:null==e?void 0:e.value})]},t)):Array.from({length:6},(e,t)=>(0,l.jsx)(i.E,{className:_().skeletonContent},t))})]},e.sectionTitle)),(0,l.jsx)(c.n,{className:_().actualDate,pageUrl:h,actualizedAt:g})]}),b=(0,l.jsxs)("div",{className:_().footer,children:[void 0!==n&&(0,l.jsx)(r.$,{variant:"secondary",onClick:n.onClick,children:n.title}),(0,l.jsx)(r.$,{rel:"nofollow",as:"a",href:d.url,onClick:d.onClick,children:d.title})]});return(0,l.jsx)(o.Z,{children:(0,l.jsx)(s.Modal,{open:t,onClose:p,footer:{children:b},header:{title:null!=m?m:""},className:_().mobilePopup,size:"l",children:(0,l.jsx)("div",{className:_().container,children:f})})})});p.displayName="OfferInfoModal"},23517:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a});var l=n(2510);function a(e){if(!1!==e){let t=new RegExp("/".concat(l.cf,"([^/?#]+)")),n=e.match(t);if(n){let[,e]=n;return 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 l(e){let{name:t,description:n,image:l,aggregateRating:a,offers:r}=e;return{"@context":"https://schema.org","@type":"Product",name:t,description:n,image:l,aggregateRating:a,offers:r}}n.d(t,{Z:()=>l})},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:()=>a,o:()=>r});var l=n(79807);function a(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,l.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"}},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 l=n(37876),a=n(25904),r=n(11251),s=n(69241),o=n(66658),i=n(14022),c=n.n(i);function u(e){let{className:t}=e;return(0,l.jsx)(a.KYF,{className:(0,s.A)(c().triggerContent,t)})}function d(e){let{children:t,triggerClassName:n,contentClassName:a,content:i,placement:d="bottom-start"}=e;return(0,l.jsxs)(r.ms,{placement:d,children:[(0,l.jsx)(r.uu,{className:(0,s.A)(c().trigger,n),children:null!=t?t:(0,l.jsx)(u,{className:a})}),(0,l.jsx)(o.Z,{children:(0,l.jsx)("div",{className:c().contentWrapper,children:(0,l.jsx)(r.pm,{className:c().content,children:"string"==typeof i?(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:i}}):i})})})]})}d.displayName="Popover"},34850:(e,t,n)=>{"use strict";n.d(t,{NC:()=>a,cT:()=>l});let l={pp:"h",ps:"foam",p2:"hojk"},a="К сожалению, мы не нашли кредитов с такими параметрами"},35668:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});var l=n(2272);let a=[{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 l.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,a)}}},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 l=n(12771),a=n(73584),r=n(3187);let s=["1","2","3","4","5","6"];async function o(){return i.getOrUpdate()}let i=new a.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:l,bankId:a,contentAttributes:s}=t;return(null==(n=s)?void 0:n.id)!==void 0&&void 0!==n.name&&void 0!==n.url&&e.push({...function(e,t){var n;let{id:l,name:a,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:g,license_date:h,site_url:f,official_website:b,phones:y}=t,x={id:String(l),name:a,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!=b?b:null,url:null!=f?f:null},license:null!=g?g:"",license_date:null!=h?h:null};void 0!==i&&(0,r.vh)(i)&&(x.logo_mob=i);let j=null==y||null==(n=y[0])?void 0:n.phone;j&&(x.phone=j);let w=_[0];return void 0!==w&&(x.legalName=w.name,x.legalAddress=w.legal_address),x}(l,s),providerId:String(a)}),e},[]).sort((e,t)=>e.name.localeCompare(t.name))}function u(e){return(0,l.aB)("banks?page=".concat(e,"&size=").concat(1e3))}},37397:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var l=n(33126),a=n(12771),r=n(63273),s=n(28131);async function o(e,t){var n;return i("".concat((n=(0,l.zj)().mainApiUrl,(0,r.oc)()&&window.origin!==n?"".concat((0,a.Cw)(),"/proxy").concat("/main"):n)).concat(e),t)}async function i(e,t){try{return{data:await (0,a.x6)(e,t),error:null}}catch(e){return{data:null,error:(0,s.u1)(e)}}}},40090:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var l=n(37876),a=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 l=n.find(e=>String(e.value)===String(t));return l&&e.push(l),e},[]);return(0,l.jsx)(a.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})}},40818:(e,t,n)=>{"use strict";n.d(t,{Be:()=>a,PA:()=>u,So:()=>l,ZA:()=>o,eb:()=>p,fy:()=>_,l5:()=>c,mr:()=>s,ni:()=>d,s:()=>i,v_:()=>r});let l="Ежемесячный платеж до",a="Сумма кредита",r=20,s=[{value:0,label:"Не имеет значения"},{value:1,label:"1 месяц"},{value:2,label:"2 месяца"},{value:3,label:"3 месяца"},{value:4,label:"4 месяца"},{value:5,label:"5 месяцев"},{value:6,label:"6 месяцев"},{value:9,label:"9 месяцев"},{value:12,label:"1 год"},{value:18,label:"1,5 года"},{value:24,label:"2 года"},{value:36,label:"3 года"},{value:48,label:"4 года"},{value:60,label:"5 лет"}],o={pp:"edzc",ps:"foam",p2:"hojk"},i=[{label:"По популярности",field:"order"},{label:"По ставке",field:"rate"},{label:"По платежу",field:"payment"}],c=[{value:"null",label:"Не имеет значения"},{value:"refinancing",label:"Рефинансирование"},{value:"education",label:"На образование"},{value:"treatment",label:"На лечение"},{value:"travels",label:"На путешествия"},{value:"repairs",label:"На ремонт"},{value:"other",label:"Просто деньги"}],u=[{value:"employee_for_hire",label:"Работник по найму"},{value:"soldier",label:"Военнослужащий"},{value:"pensioner",label:"Пенсионер"},{value:"individual_entrepreneur",label:"Индивидуальный предприниматель"},{value:"civil_servant",label:"Госслужащий"},{value:"student",label:"Студент"},{value:"budgetary",label:"Бюджетник"},{value:"personal_farm_owner",label:"Владелец личного подсобного хозяйства"},{value:"nothing",label:"Иное"}],d=[{value:"not_required",label:"Не требуется"},{value:"pledge",label:"Залог"},{value:"guarantee",label:"Поручительство"},{value:"full",label:"Залог и поручительство"}],_=[{value:"to_account",label:"На счет в вашем банке"},{value:"to_custom_account",label:"На счет в стороннем банке"},{value:"to_card",label:"На карту"},{value:"cash",label:"Наличными"}],p=[{value:"not_required",label:"Не требуется"},{value:"ndfl",label:"Справка 2-НДФЛ"},{value:"bank_form",label:"Справка по форме банка"},{value:"custom_form",label:"Альтернативные формы"}]},41329:(e,t,n)=>{"use strict";function l(e){let{url:t,priceCurrency:n,offers:l,getLowPrice:a,getHighPrice:r,offerCount:s}=e,{lowPrice:o,highPrice:i}=function(e,t,n){let l=e.reduce((e,l)=>{e.lowPrice=Math.min(e.lowPrice,t(l));let a=n(l);return void 0!==a&&(e.highPrice=Math.max(e.highPrice,a)),e},{lowPrice:1/0,highPrice:-1/0});return{...Number.isFinite(l.lowPrice)&&{lowPrice:l.lowPrice},...Number.isFinite(l.highPrice)&&{highPrice:l.highPrice}}}(l,a,r);return{"@type":"AggregateOffer",url:t,priceCurrency:n,lowPrice:o,highPrice:i,offerCount:s}}n.d(t,{l:()=>l})},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:()=>a});var l=n(14232);let a=()=>{let[e,t]=(0,l.useState)(!1),[n,a]=(0,l.useState)(!1),r=(0,l.useRef)({x:0,y:0}),s=(0,l.useCallback)(e=>{a(!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,l.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,l.useCallback)(()=>{t(!1),a(!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"}},53172:(e,t,n)=>{"use strict";function l(e){let{offset:t=0,position:n="bottom",delay:l=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};setTimeout(()=>{let l="string"==typeof e?document.getElementById(e):e;if(!l)return;let a=0;a="top"===n?l.getBoundingClientRect().top+window.scrollY+t:l.getBoundingClientRect().bottom+window.scrollY+t-document.documentElement.clientHeight,window.scrollTo({top:a,behavior:"smooth"})},l)}n.d(t,{e:()=>l})},53951:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var l=n(37397),a=n(30557),r=n(28131),s=n(81741);let o=e=>(0,l.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:l,tagUrl:s,regionUrl:i,townUrl:c}=e,u=Object.entries({...(e=>{var t,n,l,a;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!=(l=({not_required:"not_required",deposit:"pledge",guarantee:"guarantee",not_required_and_guarantee:"pledge,guarantee"})[e.provision])?l:""),e.banks&&e.banks.length>0&&(r.bank=e.banks.join(",")),void 0!==e.flags&&e.flags.includes("maternal_capital")&&(r.maternal_capital=1),r.sort=null!=(a=void 0!==e.sort?({rate:"rate",payment:"amount",downpayment:"firstPayment"})[e.sort]:void 0)?a:"rate",r.order=e.sortDir,r})(t),archive:0,...void 0!==n&&{limit:n},...void 0!==l&&{page:l},...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!==l&&1!==l&&0===c.length&&0===u.length)throw new r.m_("Invalid mortgages page: ".concat(l));return{title:t,subtitle:s,description:n,page:u.concat(c).map(e=>({...e,full_price:(0,a.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:()=>l});let l=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 l(e){let{ratingValue:t,reviewCount:n,bestRating:l,worstRating:a}=e;return{"@type":"AggregateRating",ratingValue:t,reviewCount:n,bestRating:l,worstRating:a}}n.d(t,{E:()=>l})},56685:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});let l={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"}},59445:e=>{e.exports={input:"styles_input__w_sHM"}},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"}},64432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MortgagesOffersPage:()=>ng,getMortgagesOffersPageProps:()=>nv});var l,a,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),g=n(50261),h=n(91063),f=n(54587),b=n.n(f),y=n(40317),x=n(87087),j=n(33126),w=n(83024),A=n(66451),k=n.n(A);let C=[{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}],N=(0,s.memo)(e=>{let{pageUrl:t}=e,{mainBaseUrl:n}=(0,j.UK)(),l=(0,w.fH)(),a=(0,s.useCallback)((e,a)=>{var r;e.stopPropagation();let s=(0,x.y)(null!=(r=a.title)?r:"");(0,h.o)({event:"data-event",eventAction:a.isLink?"click_link_".concat(s):"click_button_".concat(s),eventCategory:t,customer_id:l}),a.isLink?window.open("".concat(n,"/").concat(a.value),"_blank"):window.scrollTo({top:0,behavior:"smooth"})},[n,t,l]);return(0,r.jsxs)(y.m,{className:k().container,children:[(0,r.jsx)("h2",{className:k().title,children:"Каталог кредитов"}),(0,r.jsx)("div",{className:k().cardsList,children:C.map(e=>(0,r.jsxs)("div",{className:k().card,onClick:t=>a(t,e),children:[(0,r.jsx)(b(),{className:k().icon,width:158,height:60,alt:"banner-".concat(e.value),src:e.logo}),(0,r.jsx)("p",{className:k().subTitle,dangerouslySetInnerHTML:{__html:e.title}})]},e.id))})]})}),T="/ipoteka",S="DEFAULT",M="teg_",R={RATE:"rate",AMOUNT:"amount",DOWNPAYMENT:"downpayment"};R.RATE,R.AMOUNT,R.DOWNPAYMENT;var L=n(96470),B=n(36012),P=n(91403),E=n(78011),F=n(18258),O=n(99275),D=n(86700),U=n.n(D);let H=e=>{let{posts:t,regions:n,tags:l,questionsData:a,currentTag:s,region:i,town:c,support:u}=e,{query:_}=(0,o.useRouter)(),p=function(e,t,n,l,a,s){let o=e.map(e=>({title:(0,g.w)(e.title),text:(0,r.jsx)(L.eW,{data:(0,g.j)(e).content})}));o.push(...(0,F.N)(d.h.IPOTEKA,n,l,a,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}(a,l.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 l=(Array.isArray(t)?t:[t]).filter(e=>!e.includes(M));return"".concat([n,...l].join("/"))})(t,_.segments)}),e),[]),n,s,i,c);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:U().faq_container,children:(0,r.jsx)(O.m,{isAllExpanded:!0,newContainer:!0,Link:e=>(0,r.jsx)(v(),{...e}),dataLayerPush:h.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)(E.E,{value:u}),(0,r.jsx)(N,{pageUrl:T})]})};var W=n(87162),I=n(24523),Y=n(31257),q=n(25904),z=n(13636),Z=n(20912),K=n(99542),V=n.n(K);function J(e){let{chips:t,onChipClick:n,lastInFirstRowChipIndex:l,isMobile:a,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)(V().chip,V()[u],{[V().transparentChip]:s&&t>l},{[V().hiddenChip]:!s&&a&&t<=l}),onClick:()=>n(o),children:c},o)};return(0,r.jsx)(r.Fragment,{children:t.map(c?(e,t)=>{let n=e.value,l=new URL(_);return l.searchParams.delete("page"),l.searchParams.delete("property_type"),l.searchParams.append("property_type",e.value),(0,r.jsx)(v(),{className:V().link,href:l.toString(),onClick:e=>e.preventDefault(),children:p(e,t)},n)}:p)})}var Q=n(27607),G=n.n(Q);function X(){return(X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}let $=function(e){return s.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",width:12,height:6,fill:"none",viewBox:"0 0 12 6"},e),l||(l=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"})))},ee=e=>{let{onChipClick:t,chips:n,className:l}=e,a=(0,w.fH)(),[o,c]=(0,s.useState)(!1),u=!(0,Z.Ke)("sm"),d=o?"Скрыть":"Ещё",[_,p,m,v]=((e,t)=>{let[n,l]=(0,s.useState)(e),[a,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,a=0,s=0,o=Array.from(n.target.children);for(let n=0;n<o.length;n++)if((a+=o[n].offsetWidth+12)<=e&&r(n),a<=(t?2*e:e))s=n;else{l(s);break}}});return n.observe(e),()=>{n.unobserve(e)}},[t,n,a]),[a,n,o,i]})(n.length,u);return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{ref:m,className:(0,i.A)(G().row,l,{[G().open]:o}),children:[(0,r.jsx)(J,{chips:n,onChipClick:t,lastInFirstRowChipIndex:_,isMobile:!1,useLinkChips:!0}),p<n.length-1&&(0,r.jsxs)("div",{ref:v,className:(0,i.A)(G().toggle,{[G().open]:o}),onClick:()=>{(0,Y._)({customerId:a,eventAction:Y.y.button,eventActionText:(0,x.y)(d)}),c(e=>!e)},children:[(0,r.jsx)($,{})," ",d]})]})})};var et=n(58082),en=n.n(et);let el=e=>{let{count:t,children:n,addon:l,chips:a,header:s,isLoading:o,onChipClick:i,onParamsClick:c,onShowClick:u,useLinkChips:d}=e,_=(0,r.jsx)(ee,{chips:a,onChipClick:i,useLinkChips:d});return(0,r.jsxs)("div",{className:en().wrap,children:[s,(0,r.jsxs)("div",{className:en().top_row,children:[(0,r.jsx)("div",{className:en().top_row_content,children:n}),(0,r.jsxs)("div",{className:en().top_row_buttons,children:[(0,r.jsx)(z.$,{variant:"secondary",label:"Все параметры",pending:o,disabled:o,onClick:c,iconLeft:(0,r.jsx)(q.Syy,{}),className:en().params_button}),(0,r.jsx)(z.$,{onClick:u,className:en().show_button,pending:o,disabled:o,label:"Показать".concat(t?" ".concat(t):"")})]}),(0,r.jsx)("div",{className:en().chips_row,children:_}),l&&(0,r.jsx)("div",{className:en().addon,children:l})]})]})};el.displayName="MainFilter";var ea=n(87057),er=n(4053),es=n(62835),eo=n(40818),ei=n(47052),ec=n(38200),eu=n(67129),ed=n.n(eu);function e_(){return(0,r.jsx)("iframe",{className:ed().widget,src:"https://realty.ya.ru/widgets/back-call-request"})}var ep=n(67347),em=n(92666),ev=n(87150),eg=n(17450),eh=n(26734),ef=n(99448),eb=n.n(ef),ey=n(31070),ex=n.n(ey);let ej=e=>{var t;let{currentTag:n,subtitle:l,className:a}=e,o=(0,w.fH)(),{handleToggleModal:c}=(0,er.om)(),u=(0,ei.Y)(),d=(0,ec.G)(),_=n?n.name:"Ипотека",{region:p,town:m}=(0,em.z)(),v=null!=(t=null==m?void 0:m.name_p)?t:null==p?void 0:p.name_p,g=(0,eg.L)({pageTitle:"Ипотека",tag:n}),{mainBaseUrl:h,isYandexRealty:f}=(0,j.UK)(),b=(0,s.useCallback)(()=>{(0,Y._)({customerId:o,eventAction:Y.y.link,eventActionText:(0,x.y)("Главная"),url:h})},[h,o]),A=(0,s.useCallback)(()=>{c(!0),(0,Y._)({customerId:o,eventAction:Y.y.popup,eventActionText:"".concat((0,x.y)("регион"),"_").concat(v)})},[v,c,o]);return(0,r.jsxs)("div",{className:(0,i.A)(a,eb().wrap,"bg-".concat(d)),children:[(0,r.jsx)(y.m,{children:(0,r.jsx)("div",{className:(0,i.A)(eb().breadcrumbs),children:(0,r.jsx)(ev.B,{breadcrumbs:g,onClick:b})})}),f&&(0,r.jsx)(y.m,{children:(0,r.jsx)(e_,{})}),(0,r.jsx)(y.m,{children:(0,r.jsxs)("div",{className:eb().content,children:[(0,r.jsxs)("div",{className:eb().text,children:[(0,r.jsxs)("h1",{className:eb().title,children:[_," ",v&&(0,r.jsxs)(r.Fragment,{children:["в"," ",(0,r.jsx)("span",{onClick:A,className:eb().location,children:v})]})]}),(0,r.jsx)(ep.j,{tag:"p",className:ex().subtitle,children:(0,r.jsx)(eh.M,{text:l})})]}),(0,r.jsx)("div",{className:eb().banner,children:(0,r.jsx)(es.L,{config:u,params:eo.ZA})})]})})]})},ew=[{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:"Залог и поручительство"}],ek=[{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:"Другое"}],eN=[{value:"first",label:"Первичный"},{value:"second",label:"Вторичный"}],eT=[{label:"По ставке",value:"rate",shortLabel:"Ставка"},{label:"По взносу",value:"downpayment",shortLabel:"Взнос"},{label:"По платежу",value:"payment",shortLabel:"Платеж"}],eS=[{label:"Семейная ипотека",value:"family"},{label:"Дальневосточная ипотека",value:"far_east"},{label:"Материнский капитал",value:"maternal_capital"}];var eM=n(67221),eR=n(11404),eL=n(3187);function eB(){let{query:e,push:t}=(0,o.useRouter)(),{amount:n,payment:l,downpayment:a,term:r,property_type:i,market:c,form:u,proof:d,banks:_,provision:p,flags:m,sort:v,sortDir:g,...h}=e,f=(0,s.useMemo)(()=>eP({amount:n,payment:l,downpayment:a,term:r,property_type:i,market:c,form:u,proof:d,banks:_,provision:p,flags:m,sort:v,sortDir:g}),[n,l,a,r,i,c,u,d,_,p,m,v,g]),b=(0,s.useRef)(h),y=(0,s.useRef)(f),x=(0,s.useRef)(t);return b.current=h,y.current=f,x.current=t,{filter:f,setFilter:(0,s.useCallback)(e=>{var t,n,l,a,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==(l=t.banks)?void 0:l.length)===(null==(a=n.banks)?void 0:a.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,..._}=b.current,p={...function(e){let{amount:t,payment:n,downpayment:l,term:a,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!==l&&(m.downpayment=String(l)),void 0!==a&&(m.term=String(a)),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,eL.t9)(c)),void 0!==u&&(m.provision=u),void 0!==d&&(m.flags=(0,eL.t9)(d)),void 0!==_&&(m.sort=_),void 0!==p&&(m.sortDir=p),m}(e),..._};return x.current({query:p},void 0,{shallow:!0}),!0},[])}}function eP(e){let{amount:t,payment:n,downpayment:l,term:a,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 l&&(m.downpayment=Number(l)),"string"==typeof a&&(m.term=Number(a)),"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,eL.pi)(c)),"string"==typeof u&&(m.provision=u),"string"==typeof d&&(m.flags=(0,eL.pi)(d)),"string"==typeof _?m.sort=_:m.sort="rate","string"==typeof p?m.sortDir=p:m.sortDir="asc",m}var eE=n(55691),eF=n(94390);let eO=null,eD=e=>(eO=null!=eO?eO:(0,eF.y)(t=>{var n,l,a,r,s,o,i,c;return{subtitle:null!=(s=null==(n=e.mortgagesData)?void 0:n.subtitle)?s:"",offers:null!=(o=null==(l=e.mortgagesData)?void 0:l.page)?o:[],loading:!1,count:null!=(i=null==(a=e.mortgagesData)?void 0:a.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,l,a,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:l,townUrl:a}),u=null==eO?void 0:eO.getState().delayTimer;u&&clearTimeout(u),null==eO||eO.getState().delayUpdate(()=>{t({subtitle:s}),t({offers:o}),t({count:i}),t({total_count:c}),t({loading:!1})})},delayUpdate:function(e){let n=null==eO?void 0:eO.getState().delayTimer;n&&clearTimeout(n),t({delayTimer:setTimeout(e,1e3)})},load:async function(n,l,a,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:l,page:a,tagUrl:null!=(i=null==(o=e.currentTag)?void 0:o.url)?i:S,regionUrl:r,townUrl:s});null==eO||eO.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})}}}),(0,eE.Pj)(eO));var eU=n(35987),eH=n(9791),eW=n(87768),eI=n(8714),eY=n(51071),eq=n(98019),ez=n(86933),eZ=n(89064),eK=n(15462),eV=n(40090),eJ=n(9640),eQ=n(10741),eG=n.n(eQ);let eX=e=>{let{filter:t,banksOptions:n,onChange:l}=e;return(0,r.jsxs)("div",{className:eG().content,children:[(0,r.jsxs)("div",{className:eG().form,children:[(0,r.jsx)("div",{className:(0,i.A)(eG().wrap),children:(0,r.jsx)(ea.F,{label:"Сумма кредита",value:t.amount,onChange:e=>{l("amount",void 0!==e&&0!==e?Math.abs(e):void 0,"Сумма")}})}),(0,r.jsx)("div",{className:(0,i.A)(eG().wrap),children:(0,r.jsx)(ea.F,{label:"Ежемесячный платеж до",value:t.payment,onChange:e=>{l("payment",void 0!==e&&0!==e?Math.abs(e):void 0,"Ежемесячный платеж до")}})}),(0,r.jsx)("div",{className:(0,i.A)(eG().wrap),children:(0,r.jsx)(ea.F,{label:"Первый взнос",value:t.downpayment,onChange:e=>{l("downpayment",void 0!==e&&0!==e?Math.abs(e):void 0,"Первый взнос")}})}),(0,r.jsx)("div",{className:(0,i.A)(eG().wrap),children:(0,r.jsx)(eq.Y,{label:"Срок",value:t.term,max:600,decimals:"never",unit:void 0!==t.term?(0,eZ.UB)(t.term):void 0,onChange:e=>{l("term",void 0!==e&&0!==e?Math.abs(e):void 0,"Срок")},withoutControls:!0})}),(0,r.jsx)("div",{className:(0,i.A)(eG().wrap),children:(0,r.jsx)(eJ.l,{className:eG().select_fix,label:"Вид недвижимости",options:eC,value:t.property_type,onChange:e=>l("property_type",e,"Вид недвижимости")})}),(0,r.jsx)("div",{className:(0,i.A)(eG().wrap),children:(0,r.jsx)(eJ.l,{className:eG().select_fix,label:"Рынок недвижимости",options:eN,value:t.market,onChange:e=>l("market",e,"Рынок недвижимости")})}),(0,r.jsx)("div",{className:(0,i.A)(eG().wrap),children:(0,r.jsx)(eJ.l,{className:eG().select_fix,label:"Форма выдачи",options:ek,value:t.form,onChange:e=>l("form",e,"Форма выдачи")})}),(0,r.jsx)("div",{className:(0,i.A)(eG().wrap),children:(0,r.jsx)(eJ.l,{className:eG().select_fix,label:"Подтверждение дохода",options:ew,value:t.proof,onChange:e=>l("proof",e,"Подтверждение дохода")})}),(0,r.jsx)("div",{className:(0,i.A)(eG().wrap),children:(0,r.jsx)(eV.L,{className:eG().select_fix,label:"Банки",options:n,values:t.banks,onChange:e=>l("banks",e,"Банки")})}),(0,r.jsx)("div",{className:(0,i.A)(eG().wrap),children:(0,r.jsx)(eJ.l,{className:eG().select_fix,label:"Обеспечение",options:eA,value:t.provision,onChange:e=>l("provision",e,"Обеспечение")})})]}),(0,r.jsx)("div",{className:(0,i.A)(eG().wrap),children:(0,r.jsxs)("div",{className:eG().sort,children:[(0,r.jsx)("h3",{className:eG().sort_title,children:"Дополнительно"}),eS.map((e,n)=>{var a;return(0,r.jsx)("div",{className:eG().fieldWrapper,children:(0,r.jsx)(eI.S,{className:eG().checkboxField,value:null==(a=t.flags)?void 0:a.includes(e.value),label:e.label,onChange:()=>{var n;return l("flags",(0,eK.L$)(null!=(n=t.flags)?n:[],e.value),"Дополнительно")}})},n)})]})}),(0,r.jsx)("div",{className:(0,i.A)(eG().wrap),children:(0,r.jsx)(eY.c,{className:eG().separator})}),(0,r.jsx)("div",{className:(0,i.A)(eG().wrap),children:(0,r.jsxs)("div",{className:eG().sort,children:[(0,r.jsx)("h3",{className:eG().sort_title,children:"Сортировка"}),eT.map((e,n)=>(0,r.jsx)("div",{className:eG().sort_wrap,children:(0,r.jsx)(ez.s,{name:"radio",value:t.sort,label:e.label,checked:t.sort===e.value,className:eG().checkboxField,onChange:()=>l("sort",e.value,"Сортировка")})},n))]})})]})},e$=e=>{let{visible:t,filter:n,offersCount:l,banksOptions:a,onHide:s,onChange:o,onDrop:i,onShow:c}=e;return(0,r.jsx)(eW.K,{count:l,isOpen:t,isMobile:!1,pageUrl:d.h.IPOTEKA,title:"Все параметры",onCLickShow:()=>c(),onClose:s,onClickReset:()=>i(),children:(0,r.jsx)(eX,{filter:n,onChange:o,banksOptions:a})})};var e0=n(16904),e1=n.n(e0);let e2=(0,I.O)(),e3=e=>{let{ssr:t}=e,n=(0,w.fH)(),{scrollSmooth:l}=(0,eU.Ll)(),{filter:a,setFilter:o}=eB(),{visible:i,show:c,hide:u}=(0,eR.g)(),{subtitle:d,count:_}=eD({filter:a,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:a.property_type===t?"black":"default"}}),[a.property_type]),m=(0,s.useCallback)(e=>{var t,l;(0,Y._)({customerId:n,eventAction:Y.y.filterCatalog,eventCategory:Y.y.filterCatalog,eventLabel:"property_type",eventValue:(0,x.y)(null!=(l=null==(t=eC.find(t=>t.value===e))?void 0:t.label)?l:"")}),o({...a,property_type:e===a.property_type?"":e})},[a,o,n]),v=(0,s.useCallback)(()=>o({}),[o]),[g]=(0,eM.e)(()=>(0,eH.v)().then(e=>null!=e?e:[]),[]),h=(0,s.useMemo)(()=>(null!=g?g:[]).map(e=>({value:e.id,label:e.name})),[g]),f=()=>{(0,Y._)({customerId:n,eventAction:Y.y.button,eventActionText:(0,x.y)("показать")}),l({offset:-90})},b=(0,s.useCallback)(()=>{(0,Y._)({customerId:n,eventAction:Y.y.button,eventActionText:(0,x.y)("все параметры")}),c()},[c,n]),j=(e,t,l)=>{!function(e,t,n){e2(()=>(0,Y._)({customerId:n,eventAction:Y.y.filterCatalog,eventCategory:Y.y.filterCatalog,eventLabel:(0,x.y)(e),eventValue:"string"==typeof t?t:JSON.stringify(t)}))}(l,t,n),o({...a,[e]:t})};return(0,r.jsxs)("div",{className:e1().wrap,children:[(0,r.jsx)(ej,{subtitle:d,currentTag:t.currentTag}),(0,r.jsxs)(y.m,{id:W.sn,children:[(0,r.jsxs)(el,{count:_,onChipClick:m,chips:p,onParamsClick:b,onShowClick:f,children:[(0,r.jsx)(ea.F,{label:"Сумма кредита",value:a.amount,onChange:e=>{j("amount",void 0!==e&&0!==e?Math.abs(e):void 0,"Сумма")}}),(0,r.jsx)(ea.F,{label:"Ежемесячный платеж до",value:a.payment,onChange:e=>{j("payment",void 0!==e&&0!==e?Math.abs(e):void 0,"Ежемесячный платеж до")}})]}),(0,r.jsx)(e$,{offersCount:_,visible:i,filter:a,banksOptions:h,onChange:j,onHide:u,onDrop:v,onShow:()=>{u(),f()}})]})]})};var e4=n(74356),e8=n(72809),e7=n(60650),e5=n(18315),e6=n(30557),e9=n(79807),te=n(12837),tt=n(47245),tn=n.n(tt);let tl=e=>{let{isOpen:t,url:n,data:l,onAllConditionsClick:a,onClose:o}=e,i=(0,s.useMemo)(()=>l?(e=>{let t={sectionTitle:"Условия ипотеки",body:[{label:"Сумма кредита",value:(0,e9.Vj)((0,e9.Ru)(e.amount.from,e.amount.to))}]},n=e.full_price;if(n){let l=e.interest_rate;t.body.push({label:"ПСК",value:(0,e6.o)(n),description:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n          Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."},{label:"Процентная ставка",value:(0,r.jsxs)("div",{children:[(0,e9.sP)((0,e9.lV)(Number(l.from),Number(l.to))),l.comment&&(0,r.jsx)("div",{className:tn().comment,dangerouslySetInnerHTML:{__html:l.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,te.t)(e.loan)}),(e.period.from||e.period.to)&&t.body.push({label:"Срок погашения кредита",value:"".concat((0,e9.Qd)((0,e9.lV)(Number(e.period.from),Number(e.period.to)))," мес.")}),(e.property_type.comment||e.property_type.text)&&t.body.push({label:"Вид недвижимости",value:(0,te.t)(e.property_type)}),(e.real_estate_market.comment||e.real_estate_market.text)&&t.body.push({label:"Рынок недвижимости",value:(0,te.t)(e.real_estate_market)}),(e.insurance.comment||e.insurance.text)&&t.body.push({label:"Страхование",value:(0,te.t)(e.insurance)}),[t,{sectionTitle:"О банке",body:[{label:"Сайт",value:e.site.title}]}]})(l):[],[l]);return void 0===l||void 0===n?null:(0,r.jsx)(e5.a,{isOpen:t,cancelButton:{title:"Все условия по ипотеке",onClick:a},submitButton:{title:"Оформить онлайн",url:n},onClose:o,bankName:l.bankName,dataPoints:i,pageUrl:d.h.IPOTEKA,offerUpdateData:l.m_updated_at})};var ta=n(89287),tr=n(42195),ts=n(66658),to=n(5552),ti=n(53172),tc=n(43734),tu=n.n(tc);let td="DetailModalText",t_=e=>{var t,n;let{data:l,isMobile:a=!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,g=(0,eL.vh)(p),f=()=>{if(o(),d&&(0,h.o)({event:"data-event",eventAction:"click_button_".concat((0,x.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,ti.e)(e,{position:"top"})}p||(0,ti.e)(W.cA,{offset:a?0:-100,position:"top"})};return(0,s.useEffect)(()=>{l&&_(l)},[l]),(0,s.useEffect)(()=>{let e=document.querySelectorAll("#".concat(td," > a")),t=e=>{e.target instanceof HTMLAnchorElement&&(0,Y._)({customerId:u,eventAction:Y.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:tu().content,children:[(0,r.jsx)("div",{className:tu().logo,children:(null==d?void 0:d.logo)&&(0,r.jsx)(b(),{width:a?344:494,height:a?128:180,src:null==d?void 0:d.logo,alt:"logo"})}),(0,r.jsxs)("div",{className:tu().body,children:[(0,r.jsx)("h3",{className:tu().title,children:null==d?void 0:d.title}),(0,r.jsx)("p",{id:td,className:tu().text,dangerouslySetInnerHTML:{__html:d?d.modalText:""}})]}),g||m?(0,r.jsx)(z.$,{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)(z.$,{size:"big",onClick:f,children:null==d?void 0:d.modalButtonText})})]})},tp=e=>{let{data:t,isOpen:n,onClose:l,mainPageUrl:a,onFlag:s}=e,o=(0,to.sw)();return(0,r.jsx)(ts.Z,{children:(0,r.jsx)(tr.Modal,{open:n,onClose:l,header:{title:""},size:"l",children:(0,r.jsx)("div",{className:tu().container,children:(0,r.jsx)(t_,{data:t,isMobile:o,onClose:l,mainPageUrl:a,onFlag:s})})})})};var tm=n(46119),tv=n(31758),tg=n.n(tv);function th(){return(th=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}let tf=function(e){return s.createElement("svg",th({xmlns:"http://www.w3.org/2000/svg",width:17,height:17,fill:"none",viewBox:"0 0 17 17"},e),a||(a=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},ty={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},tx={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},tj=(0,s.memo)(e=>{let{mainPageUrl:t,onFlag:n,isMobile:l}=e,a=(0,w.fH)(),[o,i]=(0,s.useState)(!1),[c,u]=(0,s.useState)(null),{onMouseDown:d,onMouseMove:_,resetState:p}=(0,tm.I)(),m=(0,s.useMemo)(()=>l?288:348,[l]),v=e=>e.preventDefault,g=(0,s.useCallback)(e=>{u(e),i(!0),(0,Y._)({customerId:a,eventAction:Y.y.popup,eventActionText:e.title})},[a]),h=(0,s.useCallback)(()=>{var e;(0,Y._)({customerId:a,eventAction:Y.y.popdown,eventActionText:null!=(e=null==c?void 0:c.title)?e:""}),u(null),i(!1)},[null==c?void 0:c.title,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("section",{className:tg().section,id:W.ov,children:(0,r.jsxs)(y.m,{children:[(0,r.jsx)("h2",{className:tg().title,children:"Как вам помочь?"}),(0,r.jsx)("div",{className:tg().sliderContainer,children:(0,r.jsx)(ta.A,{options:{slidesPerView:l?1:3,spaceBetween:l?16:32,centeredSlides:l,autoplay:{delay:5e3}},wrapperClass:tg().sliderWrapper,pagination:l,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:ty,logoMobile:ty,title:"Рефинансирование кредита",modalText:"Хотите снизить ставку или уменьшить ежемесячный платеж по ипотеке? Покажем банки, в которые вы сможете перевести свой ипотечный кредит и получить более комфортные условия",modalButtonText:"Выбрать ипотеку",link:"/ipoteka/teg_refinansirovanie"},{id:3,logo:tx,logoMobile:tx,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)(ta.D,{className:tg().card,onMouseDown:d,onMouseMove:_,onMouseLeave:p,onMouseUp:p,onClick:()=>g(e),onTouchStart:v,onTouchMove:v,onTouchEnd:v,children:[(0,r.jsx)("div",{className:tg().imgWrapper,children:(0,r.jsx)(b(),{width:m,height:128,alt:"banner"+e.id,src:l?e.logoMobile:e.logo})}),(0,r.jsxs)("div",{className:tg().cardBody,children:[(0,r.jsx)("p",{className:tg().subTitle,children:e.title}),(0,r.jsx)(z.$,{shape:"circle-icon",className:tg().cardButton,iconLeft:(0,r.jsx)(tf,{className:tg().iconArrow})})]})]},e.id))})})]})}),(0,r.jsx)(tp,{mainPageUrl:t,data:c,isOpen:o,onClose:h,onFlag:n})]})});var tw=n(26027),tA=n(54767),tk=n(72278),tC=n(91423),tN=n.n(tC);let tT=e=>{let{icon:t,offer:n,onDetails:l,isMobile:a}=e,o=(0,s.useMemo)(()=>{let e=[],t=n.full_price;return t&&e.push({caption:"ПСК",tooltipText:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n        Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре.",text:(0,e6.o)(t)}),e.push({caption:"Сумма",text:(0,e9.ej)({from:Number(n.amount.from),to:Number(n.amount.to)},{currency:(0,tA.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:tN().mortgage_info,children:[(0,r.jsxs)("div",{className:tN().bank_info,children:[(0,r.jsx)("div",{className:tN().icon,children:t}),(0,r.jsx)(tk.U,{caption:n.title,text:n.bank_name,className:(0,i.A)(tN().group,tN().title_group)}),a&&(0,r.jsx)("div",{className:tN().icon_button,onClick:l,children:(0,r.jsx)(q.S2Q,{})})]}),(0,r.jsx)("div",{className:tN().groups,children:o.map((e,t)=>e.text&&(0,r.jsx)(tk.U,{caption:e.caption,text:e.text,tooltipText:e.tooltipText,className:tN().group},t))})]})},tS=e=>{let{className:t,icon:n,offer:l,onDetails:a,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})(l),[l]),d=(0,s.useCallback)(e=>{e.stopPropagation(),null==a||a()},[a]),_=(0,r.jsx)("div",{className:tN().chips_row,children:u.map(e=>(0,r.jsx)("div",{children:(0,r.jsx)(tw.v,{label:e.label,variant:e.variant,className:tN().chip,rounded:!0})},e.label))});return(0,r.jsxs)("div",{className:(0,i.A)(t,tN().wrap),onClick:o,children:[(0,r.jsxs)("div",{className:tN().top_row,children:[(0,r.jsx)("div",{className:tN().top_row_content,children:(0,r.jsx)(tT,{icon:n,offer:l,onDetails:d,isMobile:c})}),(0,r.jsxs)("div",{className:tN().top_row_buttons,children:[!c&&(0,r.jsx)("div",{className:tN().icon_button,onClick:d,children:(0,r.jsx)(q.S2Q,{})}),c&&_,(0,r.jsx)(z.$,{className:tN().show_button,size:"xs",label:"Оформить"})]})]}),!c&&_]})};var tM=n(14834),tR=n.n(tM);let tL=e=>{let{className:t,title:n,offers:l,onDetails:a,onOpen:o,isMobile:i}=e,c=(0,w.fH)(),u=(0,s.useCallback)(e=>{(0,Y._)({customerId:c,eventAction:Y.y.button,eventActionText:"information_".concat(e.bank_url),eventLabel:e.id}),(0,Y._)({customerId:c,eventAction:Y.y.popup,eventActionText:"information_".concat(e.bank_url),eventLabel:e.id}),a(e.id)},[a,c]),d=(0,s.useCallback)(e=>{(0,Y._)({customerId:c,eventAction:Y.y.link,eventActionText:(0,x.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:tR().listTitle,children:n}),(0,r.jsx)("div",{className:tR().list,children:l.map(e=>(0,r.jsx)(s.Fragment,{children:(0,r.jsx)(tS,{onDetails:()=>u(e),onOpen:()=>d(e),className:tR().card,icon:(0,r.jsx)(b(),{width:40,height:40,src:e.bank_logo_mob,alt:"logo"}),offer:e,isMobile:i})},e.id))})]})};var tB=n(88508),tP=n(28732),tE=n.n(tP);let tF=(0,s.memo)(e=>{let{chips:t,sort:n,sortOrder:l,onChangeSort:a,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:tE().filter,children:(0,r.jsx)(tB.x,{className:d,isNewSortRadios:!0,chips:t,isIncreaseSort:"asc"===l,onChangeIncreaseSort:e=>{let t=e?"asc":"desc";s(t),(0,Y._)({customerId:p,eventAction:Y.y.button,eventActionText:"sort_direction_".concat(t)})},sortTypeItems:o,sortTypeValue:null!=n?n:R.RATE,onChangeSortType:e=>{var t;a(e),(0,Y._)({customerId:p,eventAction:Y.y.button,eventActionText:"sort_type_".concat(null==(t=eT.find(t=>t.value===e))?void 0:t.label)})},onClickParams:i,isMobile:!m,isFixed:c,onClickChip:_})})});tF.displayName="SmallFilter";var tO=n(8868),tD=n(41329),tU=n(54926),tH=n(27964),tW=n(27116);let tI=(0,s.memo)(e=>{let t=function(e){let{name:t,description:n,offers:l,offersCount:a,url:r}=e,{mainBaseUrl:s}=(0,j.UK)();if(0===l.length)return;let o=(0,tD.l)({url:"".concat(s).concat(T).concat(r),priceCurrency:"RUB",offers:l,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:a});return(0,tH.Z)({name:t,description:n,image:"".concat(s).concat(tO.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)(tW.S,{schema:t})});tI.displayName="MortgageOffersSchema";var tY=n(5435),tq=n(95018),tz=n(28502),tZ=n.n(tz);let tK=e=>3===e.online_application.type,tV=e=>1===e.online_application.commercial,tJ=e=>!tK(e)&&!tV(e),tQ=e=>{var t,n,l,a,c;let{ssr:u,banksStorage:d}=e,_=(0,w.fH)(),p=(0,eU.yX)(),{query:m}=(0,o.useRouter)(),[v,g]=(0,s.useState)(Number(m.page)||1),{filter:h,setFilter:f}=eB(),{show:b}=(0,eR.g)(),j=(0,to.sw)(),[A,k]=(0,s.useState)(!1),C=(0,s.useRef)(null),N=(0,s.useRef)(()=>null),{offers:L,loading:B,reload:P,load:E,clear:F,count:O,total_count:D}=eD({...u,filter:h}),U=null!=(l=null==(t=u.currentTag)?void 0:t.url)?l:S,{region:H,town:I}=(0,em.z)(),q=(0,s.useRef)(!0);(0,s.useEffect)(()=>{q.current?q.current=!1:P(h,10,null==H?void 0:H.url,null==I?void 0:I.url,U)},[h,null==H?void 0:H.url,null==I?void 0:I.url,U,P]);let z=(0,s.useRef)(!0);(0,eM.s)(()=>{z.current?z.current=!1:(F(),E(h,10,v,null==H?void 0:H.url,null==I?void 0:I.url))},[h],500);let Z=(0,s.useCallback)(()=>{g(e=>{let t=e+1;return E(h,10,t,null==H?void 0:H.url,null==I?void 0:I.url),(0,Y._)({customerId:_,eventAction:Y.y.button,eventActionText:(0,x.y)("показать еще предложения")}),t})},[E,h,null==H?void 0:H.url,null==I?void 0:I.url,_]),K=(e=>[{label:"Сумма кредита: ".concat(e.amount?(0,eK.ZV)(e.amount):"от 1"," ₽"),id:"amount"},{label:"Платеж: ".concat(e.payment?"до ".concat((0,eK.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),V=(0,s.useMemo)(()=>L.filter(tK),[L]),J=(0,s.useMemo)(()=>L.filter(tV),[L]),Q=(0,s.useMemo)(()=>L.filter(tJ),[L]),G=u.currentTag?u.currentTag.name:"Ипотека",X=null!=(a=null==I?void 0:I.name_p)?a:null==H?void 0:H.name_p,$=[...V,...J,...Q],ee="".concat((null==(n=u.currentTag)?void 0:n.url)?"/".concat(M).concat(u.currentTag.url):"").concat(H?"/".concat("reg_").concat(H.url):"").concat(I?"/".concat(I.url):""),et=function(e){let[t,n]=(0,s.useState)(),l=(0,s.useMemo)(()=>{var n;return null!=(n=e.find(e=>e.id===t))?n:null},[t,e]),a=(0,s.useCallback)(()=>n(void 0),[]);return{data:l,visible:null!==t,show:n,hide:a}}(L),en=(0,s.useMemo)(()=>{if(!et.data)return;let e=d.get(et.data);return{...et.data,site:{title:e.site.title,url:e.site.url},bankName:e.name,logo:e.logo_mob}},[d,et.data]),el=(0,s.useCallback)(()=>{(0,Y._)({customerId:_,eventAction:Y.y.button,eventActionText:(0,x.y)("все параметры")}),b()},[b,_]),ea=e=>1===e.online_application.commercial?e.online_application.url:"".concat(T,"/").concat(e.url),er=(0,s.useCallback)(e=>{window.open(ea(e))},[]),es=(0,s.useCallback)(()=>{var e,t;(0,Y._)({customerId:_,eventAction:Y.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,_]),eo=(0,s.useCallback)(()=>{var e,t;(0,Y._)({customerId:_,eventAction:Y.y.button,eventActionText:(0,x.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,_]),ei=et.data?ea(et.data):void 0;(0,s.useEffect)(()=>(window.removeEventListener("scroll",N.current),N.current=()=>{if(!C.current)return;let{top:e}=C.current.getBoundingClientRect();k(e<=32)},window.addEventListener("scroll",N.current),()=>window.removeEventListener("scroll",N.current)),[]);let ec=(0,s.useCallback)(e=>{f({...h,sort:e})},[h,f]),eu=(0,s.useCallback)(e=>{f({...h,sortDir:e})},[h,f]),ed=10*v<O;return(0,r.jsxs)("div",{className:tZ().wrap,children:[(0,r.jsx)(tj,{mainPageUrl:"#",onFlag:e=>{f({...h,flags:e})},isMobile:j}),(0,r.jsxs)("div",{id:W.cA,className:tZ().products_list_container,children:[L&&(0,r.jsxs)("h2",{className:tZ().title,children:["Найдено ",O," ",(0,r.jsx)("span",{className:tZ().titleHide,children:(0,e7.v)(O)})," ",O===D?"":"из ".concat(D)]}),(0,r.jsx)("div",{className:(0,i.A)(tZ().filter_wrapper,tZ().newLayout),children:(0,r.jsx)(tF,{chips:K,sort:h.sort||R.RATE,sortOrder:h.sortDir||"asc",onChangeSort:ec,onChangeSortOrder:eu,sortOptions:eT,onClick:el,filterRef:C,inView:A,onClickChip:()=>{b()}})}),!B&&0===O&&(0,r.jsx)(y.m,{children:(0,r.jsx)(e8.O,{onChangeParams:b})}),(0,r.jsxs)(y.m,{as:"section",children:[(0,r.jsx)("div",{ref:p,children:L.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:tZ().offers_lists,children:[V.length>0&&(0,r.jsx)(tL,{onOpen:er,onDetails:et.show,title:"Онлайн-ипотеки от Финуслуг",offers:V,isMobile:j}),J.length>0&&(0,r.jsx)(tL,{onOpen:er,onDetails:et.show,title:"Предложения на Финуслугах",offers:J,isMobile:j}),Q.length>0&&(0,r.jsx)(tL,{onOpen:er,onDetails:et.show,title:"Предложения рынка кредитов",offers:Q,isMobile:j})]}),(0,r.jsx)(tI,{name:"".concat(G).concat(X?" в ".concat(X):""),description:null!=(c=u.mortgagesData.description)?c:"",offers:$,offersCount:O,url:ee}),ed&&(0,r.jsx)(tq.e,{page:v,onClick:Z})]})}),B&&(0,r.jsx)("div",{className:tZ().placeholder,children:[,,,,,].fill(0).map((e,t)=>(0,r.jsx)(e4.E,{},t))}),(0,r.jsx)(tY.h,{tag:"p",className:tZ().subtitle,children:(0,r.jsx)(eh.M,{text:u.mortgagesData.subtitle})})]}),(0,r.jsx)(tl,{data:en,isOpen:et.visible,url:ei,onClose:es,onAllConditionsClick:eo})]})]})};var tG=n(3633),tX=n(48673),t$=n(35668),t0=n(12771),t1=n(73584),t2=n(28131);function t3(e){return t4.getOrUpdate(e,e)}let t4=new t1.AP(t8);async function t8(e){let t=await (0,t0.zy)("Mortgages.json?".concat("url","=").concat(encodeURIComponent(e)));if(1!==t.length)throw new t2.m_("Mortgages tag not found: ".concat(e));return function(e){let{url:t,name:n}=e;return{name:n,url:t}}(t[0])}var t7=n(23517),t5=n(2510);async function t6(){return Array.from((await t9.getOrUpdate()).values())}let t9=new t1.B4(ne);async function ne(){return(await (0,t0.zy)("Mortgages.json?tags&short=1")).mortgage_tags.reduce((e,t)=>(t.name!==t5.Z2&&e.set(t.url,function(e){let{name:t,url:n,url_redirect:l}=e,a={name:t,url:n},r=(0,t7.Y)(l);return void 0!==r&&(a.url_redirect=r),a}(t)),e),new Map)}var nt=n(66460),nn=n(24323),nl=n(81787),na=n(23857),nr=n(7455),ns=n(46215),no=n(162),ni=n(50598),nc=n(99514),nu=n(79790),nd=n(44860),n_=n(35807),np=n.n(n_);let nm=[(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)],nv=async e=>{var t;let{query:n,resolvedUrl:l,params:a}=e,{page:r}=n,s=null!=(t=null==a?void 0:a.segments)?t:[],{tagUrl:o,regionUrl:i,townUrl:c}=(0,t5.bH)(s),{tag:u,region:_,town:m}=await (0,nd.bY)(l,d.h.IPOTEKA,o,t3,i,c),v=function(e){let{amount:t,payment:n,downpayment:l,term:a,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:l,term:a,property_type:r,market:s,form:o,proof:i,banks:c,provision:u,flags:d,sort:_,sortDir:p})}(n),[g,h,f,b,y,x,j,w,A,k]=await Promise.all([t6(),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,nl.T)(),(0,ns.X)().then(e=>e.regions),(0,eH.h)(),(0,no.B8)((0,eL.m)(e.resolvedUrl)),(0,nc.y)(d.h.IPOTEKA),(0,nr.K)()]);return{props:{tag:u,region:null!=_?_:null,town:null!=m?m:null,layout:y,regions:x,tags:g,mortgagesData:f,posts:h,questionsData:b,banks:j,expertQuote:null!=w?w:null,experts:null!=A?A:null,support:k.value}}};function ng(e){var t,n,l,a;let{layout:d,regions:p,tags:m,tag:v,mortgagesData:g,posts:h,questionsData:f,banks:b,expertQuote:y,experts:x,support:j}=e;(0,_.eg)(_.ch.Credit);let{region:w,town:A}=(0,em.z)(),[k,C]=(0,s.useState)(null!=y?y:void 0),N=null!=x?x: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!=(l=m.find(e=>e.url===S))?l:void 0,R=(0,eL.m)(T),L=(0,s.useMemo)(()=>new t$.I(b),[b]);return(0,tX.w5)(()=>{(0,no.Zs)(R).then(C)},[R]),(0,r.jsxs)(na.P,{data:d,children:[(0,r.jsx)(c.I,{title:g.title,description:g.description}),(0,r.jsx)(nt.t,{}),(0,r.jsx)(e3,{ssr:{mortgagesData:g,currentRegion:null!=(a=null==w?void 0:w.url)?a:"",currentTag:M}}),(0,r.jsx)(tQ,{ssr:{mortgagesData:g,currentTag:M,banks:b},banksStorage:L}),(0,r.jsx)("div",{className:(0,i.A)(np().disclaimerWrapper,np().gray),children:(0,r.jsx)(u.J,{children:(0,r.jsx)(tG.f,{type:"bank"})})}),(0,r.jsx)("div",{className:np().gray,children:(0,r.jsx)(u.J,{className:np().aboutContainer,children:(0,r.jsx)(nn.I,{steps:nm})})}),void 0!==k&&(0,r.jsx)(ni.V,{quote:k}),void 0!==N&&(0,r.jsx)("section",{className:np().experts,children:(0,r.jsx)(u.J,{children:(0,r.jsx)(nu.o,{heading:"Ипотека",experts:N})})}),(0,r.jsx)(H,{currentTag:v,region:w,town:A,posts:h,questionsData:f,regions:p,tags:m?m.filter(e=>e.url!==S):[],support:j})]})}},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:()=>a});var l=n(14232);let a=(e,t,n)=>{(0,l.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,[a,r]=(0,l.useState)(n),[s,o]=(0,l.useState)(!1),[i,c]=(0,l.useState)(null);return(0,l.useEffect)(()=>{o(!0),e().then(r).catch(c).then(()=>{o(!1)})},t),[a,s,i]}},71182:e=>{e.exports={buttonActions:"FilterModal_buttonActions__x7_d8",button:"FilterModal_button__wUY6f",content:"FilterModal_content__0T5By",mobilePopup:"FilterModal_mobilePopup__qAuSl"}},72278:(e,t,n)=>{"use strict";n.d(t,{U:()=>c});var l=n(37876),a=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=a.KYF}=e;return(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column"},className:(0,s.A)(i().wrapper,c),children:[(0,l.jsxs)("div",{className:i().titleWrapper,children:[(0,l.jsx)("span",{className:i().title,children:t}),void 0!==o&&(0,l.jsx)(r.m,{text:o,withoutTail:!0,position:"right",zIndex:200,children:(0,l.jsx)(u,{size:20,onClick:e=>null==e?void 0:e.stopPropagation()})})]}),(0,l.jsx)("span",{className:i().text,children:n})]})}},72809:(e,t,n)=>{"use strict";n.d(t,{O:()=>d});var l=n(37876),a=n(54587),r=n.n(a),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,l.jsxs)("div",{className:u().notFoundWrapper,children:[(0,l.jsx)(r(),{className:u().infoIcon,src:o.A,alt:"?"}),(0,l.jsx)("p",{className:u().notFoundText,children:i.NC}),void 0!==t&&(0,l.jsx)(s.$,{variant:"secondary",className:u().changeParamsButton,onClick:t,children:"Изменить параметры"})]})}},82734:e=>{e.exports={wrap:"Dropdown_wrap__22_5K",newSortRadioWrap:"Dropdown_newSortRadioWrap__N83gl",content:"Dropdown_content__zkeB8"}},86700:e=>{e.exports={faq_container:"styles_faq_container__YZoO_"}},87057:(e,t,n)=>{"use strict";n.d(t,{F:()=>c});var l=n(37876),a=n(14232),r=n(98019),s=n(69241),o=n(59445),i=n.n(o);let c=(0,a.forwardRef)((e,t)=>{let{size:n="m",...a}=e;return(0,l.jsx)(r.Y,{unit:"₽",decimals:"never",size:n,withoutControls:!0,ref:t,...a,className:(0,s.A)(a.className,i().input)})});c.displayName="MoneyInput"},87162:(e,t,n)=>{"use strict";n.d(t,{Dg:()=>o,Z5:()=>c,cA:()=>r,nS:()=>s,ov:()=>a,sn:()=>l,uB:()=>i,yB:()=>u});let l="main",a="place",r="productsList",s="stepsCreditSelection",o="creditSelection",i="aboutProduct",c="creditApplySteps",u="creditLogin"},87768:(e,t,n)=>{"use strict";n.d(t,{K:()=>p});var l=n(37876),a=n(14232),r=n(13636),s=n(42195),o=n(66658),i=n(91063),c=n(87087),u=n(83024),d=n(71182),_=n.n(d);let p=e=>{let{isOpen:t,pageUrl:n,title:d,onCLickShow:p,onClickReset:m,onClose:v,children:g,count:h,isLoading:f,footerContent:b}=e,y=(0,u.fH)();(0,a.useEffect)(()=>{t&&(0,i.o)({event:"data-event",eventAction:"show_pop_up_".concat((0,c.y)(d)),eventCategory:n,customer_id:y})},[t,n,d,y]);let x=e=>{var t;let l=null!=(t=e.currentTarget.textContent)?t:"";(0,i.o)({event:"data-event",eventAction:"click_button_".concat((0,c.y)(l)),eventCategory:n,customer_id:y})},j=(0,l.jsxs)(l.Fragment,{children:[b,(0,l.jsxs)("div",{className:_().buttonActions,children:[(0,l.jsxs)(r.$,{className:_().button,pending:f,disabled:f,onClick:e=>{x(e),p()},children:["Показать ",h]}),(0,l.jsx)(r.$,{variant:"secondary",className:_().button,disabled:f,onClick:e=>{x(e),m()},children:"Сбросить параметры"})]})]});return(0,l.jsx)(o.Z,{children:(0,l.jsx)(s.Modal,{className:_().mobilePopup,open:t,onClose:v,footer:{children:j},header:{title:"Все параметры"},children:(0,l.jsx)("div",{className:_().content,children:g})})})}},88508:(e,t,n)=>{"use strict";n.d(t,{x:()=>C});var l,a,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:l,isNewSortRadios:a}=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,a&&u().newSortRadioWrap),onClick:d,ref:(e=>{let t=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let n=n=>{var l;let{target:a}=n;a instanceof HTMLElement&&!(null==(l=t.current)?void 0:l.contains(a))&&e()};return window.addEventListener("click",n),()=>{window.removeEventListener("click",n)}},[e]),t})(_),children:[n,o&&!l&&(0,r.jsx)("div",{className:u().content,children:t})]})};var _=n(86933),p=n(28346),m=n(43736),v=n.n(m);function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}let h=function(e){return s.createElement("svg",g({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:"#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 l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}let b=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),a||(a=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:l,isIncreaseSort:a}=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:l,children:(0,r.jsx)(b,{className:(0,i.A)(!a&&v().iconInverted)})}),"Сортировать"]}),t&&(0,r.jsx)("div",{className:v().divider})]})},x=(0,s.memo)(e=>{let{isMobile:t,onChangeSort:n,isIncreaseSort:l,onChangeSortType:a,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:l,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:l,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:()=>a(e.value)}):(0,r.jsx)(_.s,{name:e.value,label:e.label,checked:e.value===o,className:v().sortTypeRadio,value:e.value,onChange:()=>a(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)(h,{})})]},e.value))]})]})});x.displayName="SortRadios";var j=n(16891),w=n(63396),A=n.n(w),k=n(19497);let C=(0,s.memo)(e=>{let{chips:t,onClickParams:n,isIncreaseSort:l,onChangeIncreaseSort:a,sortTypeItems:c,sortTypeValue:u,onChangeSortType:_,isMobile:p,isFixed:m,portalId:v,onClickChip:g,className:h,onClickSortType:f,isNewSortRadios:y}=e,w=(0,s.useCallback)(()=>null==a?void 0:a(!l),[l,a]),C=(0,r.jsx)("div",{style:{padding:"8px",borderRadius:y?"20px":"8px",background:"white"},className:(0,i.A)(!p&&y&&A().sortTypeDesktop),children:(0,r.jsx)(x,{isMobile:p,isIncreaseSort:l,onChangeSort:w,onChangeSortType:_,sortTypeItems:c,sortTypeValue:u,isNewSortRadios:y,portalId:v})}),N=c.find(e=>e.value===u);return(0,r.jsx)("div",{className:(0,i.A)(A().filter,y&&A().newSortRadiosFilter,m&&A().stuck,h),children:(0,r.jsx)(j.J,{className:A().mainContainer,children:(0,r.jsxs)("div",{className:A().container,children:[(0,r.jsx)(o.C,{className:A().chipsContainer,chips:t,value:t.map(e=>e.id),multiple:!0,activeVariant:"secondary",onChipClick:g}),(0,r.jsxs)("div",{className:A().actionsWrapper,children:[(0,r.jsxs)("button",{className:(0,i.A)(A().action,A().actionButton),onClick:n,children:[(0,r.jsx)(k.A,{className:A().icon}),(0,r.jsx)("span",{className:A().actionText,children:"Все параметры"})]}),(0,r.jsxs)("div",{className:A().action,children:[(0,r.jsx)("button",{className:(0,i.A)(A().icon,A().iconButton,!l&&A().iconInverted),onClick:w,children:(0,r.jsx)(b,{})}),(0,r.jsx)(d,{content:C,disabled:p,isNewSortRadios:y,children:(0,r.jsx)("button",{onClick:f,className:(0,i.A)(A().actionText,A().actionButton),"data-qa":"".concat(u,"_order"),children:(null==N?void 0:N.shortLabel)||(null==N?void 0:N.label)||"Сортировка"})})]})]})]})})})});C.displayName="ListFilter"},90257:(e,t,n)=>{"use strict";n.d(t,{n:()=>d});var l=n(37876),a=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,a.memo)(e=>{let{pageUrl:t,actualizedAt:n,className:a}=e;return void 0===n?null:(0,l.jsx)("span",{className:(0,r.A)(u().actualDateOffer,a),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"}},98547:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});let l=e=>{let t=new Date(e).getDate(),n=new Date(e).getMonth()+1,l=new Date(e).getFullYear();return"".concat(t<10?"0"+t:t,".").concat(n<10?"0"+n:n,".").concat(l)}},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"}}}]);