(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4457],{18418:function(e,n,t){"use strict";var r,o,i=t(67294);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}n.Z=function(e){return i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",viewBox:"0 0 25 24"},e),r||(r=i.createElement("rect",{width:24,height:24,x:.5,fill:"#F3F4F6",rx:12})),o||(o=i.createElement("path",{fill:"#525BBB",d:"m15.024 10.152-4.888-1.31a.667.667 0 0 1 .345-1.287l6.44 1.725a.667.667 0 0 1 .471.816l-1.725 6.44a.667.667 0 0 1-1.288-.345l1.31-4.887-6.771 3.914a.666.666 0 0 1-.914-.245.666.666 0 0 1 .245-.914z"})))}},54618:function(e,n,t){"use strict";t.d(n,{Q:function(){return i}});var r=t(98670),o=t(53850);async function i(e){let{data:n,error:t}=await (0,r.D)("/money_data/Root.json?short=1&region_url=".concat(encodeURIComponent(e)));if(t)throw Error(t);if((null==n?void 0:n.regions.length)!==1)throw new o.dR("Region not found: ".concat(e));return n.regions[0]}},98670:function(e,n,t){"use strict";t.d(n,{D:function(){return l}});var r=t(84053),o=t(65709),i=t(60600),c=t(53850);async function l(e,n){var t,c;return a("".concat((t=(0,r.iE)().mainApiUrl,c="/main",(0,i.C5)()&&window.origin!==t?"".concat((0,o.kc)(),"/proxy").concat(c):t)).concat(e),n)}async function a(e,n){try{return{data:await (0,o.rd)(e,n),error:null}}catch(e){return{data:null,error:(0,c.e$)(e)}}}},56790:function(e,n,t){"use strict";t.d(n,{h:function(){return c}});var r=t(85893),o=t(67294),i=t(73935);let c=e=>{let{children:n,id:t="portal-root"}=e,[c,l]=(0,o.useState)(null);return(0,o.useEffect)(()=>{var e,n,r;let o=null===(e=document)||void 0===e?void 0:e.getElementById(t);if(o)l(o);else{let e=null===(n=document)||void 0===n?void 0:n.createElement("div");return null===(r=document)||void 0===r||r.body.appendChild(e),l(e),()=>{var n;null===(n=document)||void 0===n||n.body.removeChild(e)}}},[t]),(0,r.jsx)(r.Fragment,{children:c&&(0,i.createPortal)(n,c)})}},94219:function(e,n,t){"use strict";t.d(n,{b:function(){return c}});var r=t(85893),o=t(20680),i=t.n(o);function c(e){let{isSticky:n}=e;return(0,r.jsx)("div",{className:i().disclaimer,style:n?{position:"sticky"}:{position:"fixed",width:"100%"},children:"Оценивайте свои финансовые возможности и риски. Изучите все условия кредита (займа)"})}},53850:function(e,n,t){"use strict";function r(e){return e instanceof Error?e.message:"Unknown error"}t.d(n,{dR:function(){return o},e$:function(){return r}});class o extends Error{}},37171:function(e,n,t){"use strict";t.d(n,{A:function(){return p}});var r=t(85893),o=t(35862),i=t(86010),c=t(56790),l=t(94219),a=t(16817),s=t(84053);function u(e){let{className:n,data:t}=e,o=(0,s.ZR)();return(0,r.jsxs)("div",{className:n,children:[(0,r.jsx)(a.$,{data:t,showcaseUrl:o.mainBaseUrl})," "]})}var d=t(53980),_=t(94347);function f(e){var n;let{className:t,data:o,withLocationConfirm:i}=e,c=(0,s.ZR)(),{region:l,town:a}=(0,_.T)(),u=null!==(n=null==a?void 0:a.name)&&void 0!==n?n:null==l?void 0:l.name;return(0,r.jsx)("div",{className:t,children:(0,r.jsx)(d.h4,{data:o,showcaseUrl:c.mainBaseUrl,lkUrl:c.lkBaseUrl,initialTown:u,showStartPopup:i})})}var v=t(23312),h=t.n(v);function p(e){let{children:n,data:t,withLocationConfirm:a,withoutDisclaimer:s=!1}=e;return(0,r.jsxs)("div",{className:(0,i.Z)(h().layout,{[h().layoutPaddingTop]:void 0===t.header,[h().noPadding]:void 0!==t.header}),children:[void 0!==t.header&&(0,r.jsx)(f,{data:t.header,withLocationConfirm:a}),n,void 0!==t.footer&&(0,r.jsx)(u,{className:h().footer,data:t.footer}),!s&&(0,r.jsx)(l.b,{}),(0,r.jsx)(c.h,{children:(0,r.jsx)(o.z,{})})]})}},44735:function(e,n,t){"use strict";t.d(n,{AL:function(){return c},ON:function(){return i},V4:function(){return r},dZ:function(){return o}}),t(53850);let r="DEFAULT",o="teg_",i="reg_";function c(e){return e.startsWith(o)}},27714:function(e,n,t){"use strict";t.d(n,{cI:function(){return l}}),t(54618),t(53850);var r=t(73897),o=t(65709);async function i(){let{redirects:{urlRedirects:e,regionRedirects:n}}=await (0,o.$u)("Redirects.json"),t=new Map,i=new Set([r.u.POTREBITELSKIE,r.u.KARTY,r.u.MICROZAJMY,r.u.AUTOCREDIT,r.u.IPOTEKA]);return e.forEach(e=>{let n=e.url.slice(0,e.url.indexOf("/"));i.has(n)&&t.set(e.url,e.redirect)}),n.forEach(e=>{t.set(e.url,e.redirect)}),t}new(t(32368)).$(i),t(44735);let c=new Set(["moskva","sankt-peterburg","sevastopol"]);function l(e,n){return e===n&&c.has(n)}},94347:function(e,n,t){"use strict";t.d(n,{T:function(){return a},v:function(){return l}});var r=t(85893),o=t(67294),i=t(27714);let c=(0,o.createContext)(void 0);function l(e){let{children:n,location:t}=e,{region:l,town:a}=null!=t?t:{},s=(0,o.useMemo)(()=>void 0!==l?{region:l,town:(null==a?void 0:a.url)===void 0||(0,i.cI)(l.url,a.url)?void 0:a}:{},[null==l?void 0:l.url,null==a?void 0:a.url]);return(0,r.jsx)(c.Provider,{value:s,children:n})}function a(){let e=(0,o.useContext)(c);if(!e)throw Error("The context of the location is used outside of the provider");return e}},80330:function(e,n,t){"use strict";t.d(n,{M:function(){return l},D:function(){return a}});var r=t(85893),o=t(53980),i=t(67294),c=t(94347);function l(e){let{children:n}=e,t=a();return(0,r.jsx)(c.v,{location:t,children:n})}function a(){let{region:e,town:n}=(0,o.ar)();return function(e,n){let t=(0,i.useRef)(!1);return(0,i.useMemo)(()=>{if(t.current)return e();t.current=!0},n)}(()=>null!==e?{region:e,town:null!=n?n:void 0}:{},[null==e?void 0:e.url,null==n?void 0:n.url])}},7889:function(e,n,t){"use strict";t.d(n,{l:function(){return i}});var r=t(85893),o=t(86010);let i=e=>{let{children:n,className:t,style:i,...c}=e;return(0,r.jsx)("span",{className:(0,o.Z)(t,"private-icon"),style:i,...c,children:n})};i.displayName="PrivateIcon"},44215:function(e,n,t){"use strict";t.d(n,{B:function(){return N}});var r,o=t(85893),i=t(66535),c=t(86010),l=t(67294),a=t(19438);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}var u=function(e){return l.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),r||(r=l.createElement("path",{fill:"#1F242E",d:"M7.466 19.551A1.48 1.48 0 0 1 7 18.481c0-.401.167-.786.466-1.07l5.667-5.449L7.466 6.59A1.48 1.48 0 0 1 7 5.52c0-.401.167-.786.466-1.07.148-.142.325-.255.52-.332a1.68 1.68 0 0 1 1.232 0c.195.077.372.19.52.332l6.788 6.435c.15.141.27.31.35.494a1.45 1.45 0 0 1 0 1.168c-.08.185-.2.353-.35.494L9.74 19.55a1.6 1.6 0 0 1-.521.332 1.68 1.68 0 0 1-1.232 0 1.6 1.6 0 0 1-.52-.332"})))},d=t(7889),_=t(42010),f=t.n(_);let v=e=>{let{className:n,opened:t=!1,onChange:r=()=>null,title:i="",children:a,caption:s="",icon:_,state:v,message:h=""}=e,p=(0,l.useRef)(null),m=t&&p.current?{height:"".concat(p.current.scrollHeight,"px")}:{};return(0,o.jsxs)("div",{className:(0,c.Z)(f().accordion,n),children:[(0,o.jsxs)("div",{className:(0,c.Z)(f().body,{[f().opened]:t}),children:[(0,o.jsxs)("div",{role:"button",tabIndex:0,className:f().heading,onClick:r,children:[_&&(0,o.jsx)("span",{className:f().icon,children:(0,o.jsx)(d.l,{children:_})}),(0,o.jsxs)("span",{className:f().text,children:[(0,o.jsx)("h3",{className:f().title,children:i}),(0,o.jsx)("span",{className:f().caption,children:s})]}),(0,o.jsx)(d.l,{className:f().arrow,children:(0,o.jsx)(u,{className:f().icon})})]}),(0,o.jsx)("div",{ref:p,role:"region",className:(0,c.Z)(f().wrapper,{[f().hidden]:!t}),style:m,children:(0,o.jsx)("div",{className:f().content,children:a})})]}),h&&(0,o.jsx)("div",{className:f().uiCaption,children:(0,o.jsx)("div",{className:(0,c.Z)({[f().error]:"error"===v}),children:h})})]})};v.displayName="UiAccordion";let h=e=>{let{className:n,children:t,values:r,onChange:i}=e;return(0,o.jsx)("div",{className:(0,c.Z)(n),children:l.Children.map(t,e=>{let n=e.props.value,t=r.includes(n);return(0,l.cloneElement)(e,{opened:t,onChange:()=>{i({values:t?r.filter(e=>e!==n):[...r,n],value:n,opened:t})}})})})};var p=t(18418),m=t(71357),x=t.n(m);let k=e=>{let{children:n,className:t,event:r,Link:i,href:l,dataLayerPush:a}=e;return(0,o.jsx)("div",{className:(0,c.Z)(x().checkAllWrapper,t),onClick:()=>{r&&a(r)},children:(0,o.jsxs)(i,{className:x().link,href:l,children:[n,(0,o.jsx)(d.l,{className:x().icon,children:(0,o.jsx)(p.Z,{})})]})})};k.displayName="CheckAllLink";var g=t(50585),j=t.n(g);let A=e=>{let{questions:n=[],eventCategory:t="common",checkAllText:r,dataLayerPush:i,Link:a,href:s,sectionTitle:u,isExpanded:d=!1,isAllExpanded:_=!1,variant:f="default"}=e,p=(0,l.useCallback)(()=>{if(_)return n.map(e=>e.title);if(d){var e;return[null===(e=n[0])||void 0===e?void 0:e.title]}return[]},[n,d,_]),[m,x]=(0,l.useState)(p);return((0,l.useEffect)(()=>{x(p())},[p]),n.length)?(0,o.jsxs)("div",{className:j().faqBlock,children:[u&&(0,o.jsx)("h2",{className:j().title,children:u}),(0,o.jsx)(h,{values:m,onChange:e=>{let{values:n,value:r,opened:o}=e;i({event:"data-event",eventCategory:t,eventAction:"click_on_faq_question_".concat(o?"collapse":"expand"),eventLabel:"faq_block",eventValue:r}),x(n)},children:n.map(e=>{let{title:n,text:t}=e;return(0,o.jsx)(v,{className:(0,c.Z)(j().accordion,j()["accordion--".concat(f)]),title:n,value:n,children:"string"==typeof t?(0,o.jsx)("div",{className:j().content,dangerouslySetInnerHTML:{__html:t}}):(0,o.jsx)("div",{className:j().content,children:t})},n)})}),a&&s&&r&&(0,o.jsx)(k,{className:j().link,href:s,event:{event:"data-event",eventCategory:t,eventAction:"click_on_read_all_questions_button",eventLabel:"faq_block"},dataLayerPush:i,Link:a,children:r||"Читать все вопросы"})]}):null};var w=t(5192),y=t.n(w);let N=(0,l.memo)(e=>{let{newContainer:n=!1,sectionTitle:t="Частые вопросы",faqBlockTitle:r="Частые вопросы",idFAQBlock:l,questions:s=[],dataLayerPush:u,eventCategory:d,checkAllText:_,Link:f,href:v,isExpanded:h,isAllExpanded:p,variant:m="default",className:x}=e,k=n?i.W2:a.t;return(0,o.jsx)("section",{className:(0,c.Z)(y().supportSection,y()["supportSection--".concat(m)],x),id:l,children:(0,o.jsxs)(k,{className:n?void 0:y().noPadding,children:[t&&(0,o.jsx)("h2",{className:y().title,children:t}),(0,o.jsx)(A,{sectionTitle:r,questions:s,eventCategory:d,checkAllText:_,dataLayerPush:u,Link:f,href:v,isExpanded:h,isAllExpanded:p,variant:m})]})})});N.displayName="UiFAQBlock"},20680:function(e){e.exports={disclaimer:"advertisement-disclaimer_disclaimer__CoBa3"}},23312:function(e){e.exports={layout:"layout_layout__iXzDO",layoutPaddingTop:"layout_layoutPaddingTop__JFFLK",noPadding:"layout_noPadding__tZ4w4",mobileNavigation:"layout_mobileNavigation__CR6bw",footer:"layout_footer__3IlnK"}},42010:function(e){e.exports={accordion:"Accordion_accordion__jiZSo",body:"Accordion_body__UCEKf",opened:"Accordion_opened___mIgV",arrow:"Accordion_arrow__MxD3n",wrapper:"Accordion_wrapper__wl1jd",heading:"Accordion_heading__c1Nty",text:"Accordion_text__ytimm",title:"Accordion_title__TW0s9",icon:"Accordion_icon__4ER_k",hidden:"Accordion_hidden__waLzM",content:"Accordion_content__cvCsV",caption:"Accordion_caption__AHtDb",uiCaption:"Accordion_uiCaption__yK3dA",error:"Accordion_error__lDkkc"}},5192:function(e){e.exports={supportSection:"FAQBlock_supportSection__nBh6q",noPadding:"FAQBlock_noPadding__G1pWN","supportSection--default":"FAQBlock_supportSection--default__OsjCA",title:"FAQBlock_title__GDPgx","supportSection--secondary":"FAQBlock_supportSection--secondary__pvSti"}},71357:function(e){e.exports={checkAllWrapper:"CheckAllLink_checkAllWrapper__5qaKf",link:"CheckAllLink_link___9cvw",icon:"CheckAllLink_icon__rFVbv"}},50585:function(e){e.exports={faqBlock:"FAQBlock_faqBlock__cWLG2",title:"FAQBlock_title__ZHM6E",accordion:"FAQBlock_accordion__Q0LXh","accordion--default":"FAQBlock_accordion--default__wR261","accordion--secondary":"FAQBlock_accordion--secondary__vpWgf",content:"FAQBlock_content__bfX78",link:"FAQBlock_link___SWxz"}}}]);