(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6249],{18418:function(t,e,n){"use strict";var r,o,i=n(67294);function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}e.Z=function(t){return i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",viewBox:"0 0 25 24"},t),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(t,e,n){"use strict";n.d(e,{Q:function(){return i}});var r=n(98670),o=n(53850);async function i(t){let{data:e,error:n}=await (0,r.D)("/money_data/Root.json?short=1&region_url=".concat(encodeURIComponent(t)));if(n)throw Error(n);if((null==e?void 0:e.regions.length)!==1)throw new o.dR("Region not found: ".concat(t));return e.regions[0]}},98670:function(t,e,n){"use strict";n.d(e,{D:function(){return a}});var r=n(84053),o=n(65709),i=n(60600),c=n(53850);async function a(t,e){var n,c;return s("".concat((n=(0,r.iE)().mainApiUrl,c="/main",(0,i.C5)()&&window.origin!==n?"".concat((0,o.kc)(),"/proxy").concat(c):n)).concat(t),e)}async function s(t,e){try{return{data:await (0,o.rd)(t,e),error:null}}catch(t){return{data:null,error:(0,c.e$)(t)}}}},84444:function(t,e,n){"use strict";n.d(e,{N:function(){return l}});var r=n(85893),o=n(9008),i=n.n(o),c=n(11163),a=n(84053),s=n(12261);function l(t){let{title:e,description:n,productId:o}=t,{basePath:l,mainBaseUrl:u}=(0,a.ZR)(),{asPath:d}=(0,c.useRouter)(),h=(0,s.iN)(d);return(0,r.jsxs)(i(),{children:[(0,r.jsx)("title",{children:e}),(0,r.jsx)("meta",{name:"description",content:n}),(0,r.jsx)("meta",{property:"og:title",content:e}),(0,r.jsx)("meta",{property:"og:description",content:n}),(0,r.jsx)("meta",{property:"og:site_name",content:"Финуслуги"}),(0,r.jsx)("meta",{property:"og:image",content:"".concat(l,"/icons/favicon-32x32.png")}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:url",content:"".concat(u).concat(h)}),(0,r.jsx)("link",{rel:"icon",href:"".concat(l,"/icons/favicon-32x32.png")}),(0,r.jsx)("link",{rel:"manifest",href:"".concat(l,"/manifest.json"),type:"application/manifest+json"}),(0,r.jsx)("link",{rel:"canonical",href:"".concat(u).concat(h)}),o&&(0,r.jsx)("script",{children:"dataLayer = [{\n            'view_product_id': '".concat(o,"'\n          }];")})]})}l.displayName="HeadMeta"},19438:function(t,e,n){"use strict";n.d(e,{t:function(){return a}});var r=n(85893),o=n(86010),i=n(20551),c=n.n(i);let a=t=>{let{children:e,className:n}=t;return(0,r.jsx)("div",{className:(0,o.Z)(c().mainContainer,n),children:e})}},56790:function(t,e,n){"use strict";n.d(e,{h:function(){return i}});var r=n(67294),o=n(73935);let i=t=>{let{children:e}=t,[n,i]=(0,r.useState)(null);return(0,r.useEffect)(()=>{var t;let e=null===(t=document)||void 0===t?void 0:t.getElementById("portal-root");e&&i(e)},[]),n&&(0,o.createPortal)(e,n)}},73897:function(t,e,n){"use strict";var r,o;n.d(e,{u:function(){return r}}),(o=r||(r={})).POTREBITELSKIE="potrebitelskie_kredity",o.KARTY="kreditnye_karty",o.MICROZAJMY="mikrozajmy",o.AUTOCREDIT="avtokredity",o.IPOTEKA="ipoteka",o.CALCULATOR="kreditniy_kalkulyator"},65737:function(t,e,n){"use strict";n.d(e,{l:function(){return o}});var r=n(77607);function o(t){t.eventAction&&(t.eventAction=t.eventAction.toLowerCase().replaceAll(" ","_")),t.eventLabel&&"string"==typeof t.eventLabel&&(t.eventLabel=t.eventLabel.toLowerCase().replaceAll(" ","_")),(0,r.AB)(t)}},94219:function(t,e,n){"use strict";n.d(e,{b:function(){return c}});var r=n(85893),o=n(20680),i=n.n(o);function c(t){let{isSticky:e}=t;return(0,r.jsx)("div",{className:i().disclaimer,style:e?{position:"sticky"}:{position:"fixed",width:"100%"},children:"Оценивайте свои финансовые возможности и риски. Изучите все условия кредита (займа)"})}},65709:function(t,e,n){"use strict";n.d(e,{rd:function(){return h},$u:function(){return s},m6:function(){return d},C8:function(){return u},vD:function(){return l},kc:function(){return a}});var r=n(84053);class o{start(){this.startTime=performance.now()}setStatus(t){this.status=t}observe(){if(!this.startTime)throw Error("Prometheus metric of outgoing request is not observed: startTime is not defined");!function(t,e,r,o){try{var i;null===(i=n.g.outgoingHTTPRequestHistogram)||void 0===i||i.labels(t,e,void 0!==r?String(r):"unknown").observe(performance.now()-o)}catch(t){console.warn("Prometheus metric of outgoing request is not observed:",t)}}(this.method,this.url,this.status,this.startTime)}constructor(t,e){this.method=t,this.url=e}}var i=n(12261),c=n(60600);function a(){return"".concat((0,r.iE)().basePath,"/api")}function s(t,e){return h("".concat("".concat((0,r.iE)().mainApiUrl,"/money_data"),"/").concat(t),e)}function l(t,e){return h("".concat("".concat((0,r.iE)().savingsApiUrl,"/api/v1"),"/").concat(t),e)}function u(t,e){return h("".concat("".concat((0,r.iE)().mpScApiUrl,"/api/v1"),"/").concat(t),e)}function d(t,e){return h("".concat(a(),"/").concat(t),e)}async function h(t,e){let n=await f(t,e);try{return JSON.parse(n)}catch(t){throw Error("Failed to parse JSON: ".concat(n),{cause:t})}}async function f(t,e){var n;(0,c.C5)()||console.debug("Fetch data: ".concat(t));let a={},s=(0,r.iE)().apiUsername,l=(0,r.iE)().apiPassword;s&&l&&(a.Authorization="Basic ".concat((0,c.oF)("".concat(s,":").concat(l))));let u=new o(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:"GET",(0,i.iN)(t));try{u.start();let n=await fetch(t,{...e,headers:{...a,...null==e?void 0:e.headers}});if(u.setStatus(n.status),!n.ok)throw Error("Response wasn't OK. The response status code is ".concat(n.status));return await n.text()}catch(e){throw Error("Failed to fetch data: ".concat(t),{cause:e})}finally{u.observe()}}},32368:function(t,e,n){"use strict";n.d(e,{$:function(){return r},n:function(){return o}});class r{getOrUpdate(){var t;return null!==(t=this.get())&&void 0!==t?t:this.update()}get(){if(this.expires>Date.now())return this.value}update(){let t=this.getValue();return this.value=t,this.expires=Date.now()+this.duration,t}constructor(t,e){this.expires=0,this.getValue=t,this.duration=null!=e?e:3e5}}class o{getOrUpdate(t,e){var n;return null!==(n=this.get(t))&&void 0!==n?n:this.update(t,e)}get(t){var e;if((null!==(e=this.expires.get(t))&&void 0!==e?e:0)>Date.now())return this.values.get(t)}update(t,e){this.clear();let n=this.getValue(e);return this.values.set(t,n),this.expires.set(t,Date.now()+this.duration),n}clear(){let t=Date.now();this.expires.forEach((e,n)=>{e<t&&(this.values.delete(n),this.expires.delete(n))})}constructor(t,e){this.values=new Map,this.expires=new Map,this.getValue=t,this.duration=null!=e?e:3e5}}},53850:function(t,e,n){"use strict";function r(t){return t instanceof Error?t.message:"Unknown error"}n.d(e,{dR:function(){return o},e$:function(){return r}});class o extends Error{}},37171:function(t,e,n){"use strict";n.d(e,{A:function(){return _}});var r=n(85893),o=n(35862),i=n(86010),c=n(56790),a=n(94219),s=n(16817),l=n(84053);function u(t){let{className:e,data:n}=t,o=(0,l.ZR)();return(0,r.jsxs)("div",{className:e,children:[(0,r.jsx)(s.$,{data:n,showcaseUrl:o.mainBaseUrl})," "]})}var d=n(80138),h=n(94347);function f(t){var e;let{className:n,data:o,withLocationConfirm:i}=t,c=(0,l.ZR)(),{region:a,town:s}=(0,h.T)(),u=null!==(e=null==s?void 0:s.name)&&void 0!==e?e:null==a?void 0:a.name;return(0,r.jsx)("div",{className:n,children:(0,r.jsx)(d.h4,{data:o,showcaseUrl:c.mainBaseUrl,lkUrl:c.lkBaseUrl,initialTown:u,showStartPopup:i})})}var p=n(23312),v=n.n(p);function _(t){let{children:e,data:n,withLocationConfirm:s,withoutDisclaimer:l=!1}=t;return(0,r.jsxs)("div",{className:(0,i.Z)(v().layout,{[v().layoutPaddingTop]:void 0===n.header,[v().noPadding]:void 0!==n.header}),children:[void 0!==n.header&&(0,r.jsx)(f,{data:n.header,withLocationConfirm:s}),e,void 0!==n.footer&&(0,r.jsx)(u,{className:v().footer,data:n.footer}),!l&&(0,r.jsx)(a.b,{}),(0,r.jsx)(c.h,{children:(0,r.jsx)(o.z,{})})]})}},44735:function(t,e,n){"use strict";n.d(e,{AL:function(){return c},ON:function(){return i},V4:function(){return r},dZ:function(){return o}}),n(53850);let r="DEFAULT",o="teg_",i="reg_";function c(t){return t.startsWith(o)}},27714:function(t,e,n){"use strict";n.d(e,{cI:function(){return a}}),n(54618),n(53850);var r=n(73897),o=n(65709);async function i(){let{redirects:{urlRedirects:t,regionRedirects:e}}=await (0,o.$u)("Redirects.json"),n=new Map,i=new Set([r.u.POTREBITELSKIE,r.u.KARTY,r.u.MICROZAJMY,r.u.AUTOCREDIT,r.u.IPOTEKA]);return t.forEach(t=>{let e=t.url.slice(0,t.url.indexOf("/"));i.has(e)&&n.set(t.url,t.redirect)}),e.forEach(t=>{n.set(t.url,t.redirect)}),n}new(n(32368)).$(i),n(44735);let c=new Set(["moskva","sankt-peterburg","sevastopol"]);function a(t,e){return t===e&&c.has(e)}},94347:function(t,e,n){"use strict";n.d(e,{T:function(){return s},v:function(){return a}});var r=n(85893),o=n(67294),i=n(27714);let c=(0,o.createContext)(void 0);function a(t){let{children:e,location:n}=t,{region:a,town:s}=null!=n?n:{},l=(0,o.useMemo)(()=>void 0!==a?{region:a,town:(null==s?void 0:s.url)===void 0||(0,i.cI)(a.url,s.url)?void 0:s}:{},[null==a?void 0:a.url,null==s?void 0:s.url]);return(0,r.jsx)(c.Provider,{value:l,children:e})}function s(){let t=(0,o.useContext)(c);if(!t)throw Error("The context of the location is used outside of the provider");return t}},80330:function(t,e,n){"use strict";n.d(e,{M:function(){return a},D:function(){return s}});var r=n(85893),o=n(80138),i=n(67294),c=n(94347);function a(t){let{children:e}=t,n=s();return(0,r.jsx)(c.v,{location:n,children:e})}function s(){let{region:t,town:e}=(0,o.ar)();return function(t,e){let n=(0,i.useRef)(!1);return(0,i.useMemo)(()=>{if(n.current)return t();n.current=!0},e)}(()=>null!==t?{region:t,town:null!=e?e:void 0}:{},[null==t?void 0:t.url,null==e?void 0:e.url])}},7889:function(t,e,n){"use strict";n.d(e,{l:function(){return i}});var r=n(85893),o=n(86010);let i=t=>{let{children:e,className:n,style:i,...c}=t;return(0,r.jsx)("span",{className:(0,o.Z)(n,"private-icon"),style:i,...c,children:e})};i.displayName="PrivateIcon"},44215:function(t,e,n){"use strict";n.d(e,{B:function(){return N}});var r,o=n(85893),i=n(79644),c=n(86010),a=n(67294),s=n(19438);function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}var u=function(t){return a.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),r||(r=a.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=n(7889),h=n(42010),f=n.n(h);let p=t=>{let{className:e,opened:n=!1,onChange:r=()=>null,title:i="",children:s,caption:l="",icon:h,state:p,message:v=""}=t,_=(0,a.useRef)(null),m=n&&_.current?{height:"".concat(_.current.scrollHeight,"px")}:{};return(0,o.jsxs)("div",{className:(0,c.Z)(f().accordion,e),children:[(0,o.jsxs)("div",{className:(0,c.Z)(f().body,{[f().opened]:n}),children:[(0,o.jsxs)("div",{role:"button",tabIndex:0,className:f().heading,onClick:r,children:[h&&(0,o.jsx)("span",{className:f().icon,children:(0,o.jsx)(d.l,{children:h})}),(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:l})]}),(0,o.jsx)(d.l,{className:f().arrow,children:(0,o.jsx)(u,{className:f().icon})})]}),(0,o.jsx)("div",{ref:_,role:"region",className:(0,c.Z)(f().wrapper,{[f().hidden]:!n}),style:m,children:(0,o.jsx)("div",{className:f().content,children:s})})]}),v&&(0,o.jsx)("div",{className:f().uiCaption,children:(0,o.jsx)("div",{className:(0,c.Z)({[f().error]:"error"===p}),children:v})})]})};p.displayName="UiAccordion";let v=t=>{let{className:e,children:n,values:r,onChange:i}=t;return(0,o.jsx)("div",{className:(0,c.Z)(e),children:a.Children.map(n,t=>{let e=t.props.value,n=r.includes(e);return(0,a.cloneElement)(t,{opened:n,onChange:()=>{i({values:n?r.filter(t=>t!==e):[...r,e],value:e,opened:n})}})})})};var _=n(18418),m=n(71357),x=n.n(m);let g=t=>{let{children:e,className:n,event:r,Link:a=i.CV,href:s,dataLayerPush:l}=t;return(0,o.jsx)("div",{className:(0,c.Z)(x().checkAllWrapper,n),onClick:()=>{r&&l(r)},children:(0,o.jsxs)(a,{className:x().link,href:s,children:[e,(0,o.jsx)(d.l,{className:x().icon,children:(0,o.jsx)(_.Z,{})})]})})};g.displayName="CheckAllLink";var w=n(50585),k=n.n(w);let y=t=>{let{questions:e=[],eventCategory:n="common",checkAllText:r,dataLayerPush:i,Link:s,href:l,sectionTitle:u,isExpanded:d=!1,isAllExpanded:h=!1,variant:f="default"}=t,_=(0,a.useCallback)(()=>{if(h)return e.map(t=>t.title);if(d){var t;return[null===(t=e[0])||void 0===t?void 0:t.title]}return[]},[e,d,h]),[m,x]=(0,a.useState)(_);return((0,a.useEffect)(()=>{x(_())},[_]),e.length)?(0,o.jsxs)("div",{className:k().faqBlock,children:[u&&(0,o.jsx)("h2",{className:k().title,children:u}),(0,o.jsx)(v,{values:m,onChange:t=>{let{values:e,value:r,opened:o}=t;i({event:"data-event",eventCategory:n,eventAction:"click_on_faq_question_".concat(o?"collapse":"expand"),eventLabel:"faq_block",eventValue:r}),x(e)},children:e.map(t=>{let{title:e,text:n}=t;return(0,o.jsx)(p,{className:(0,c.Z)(k().accordion,k()["accordion--".concat(f)]),title:e,value:e,children:"string"==typeof n?(0,o.jsx)("div",{className:k().content,dangerouslySetInnerHTML:{__html:n}}):(0,o.jsx)("div",{className:k().content,children:n})},e)})}),s&&l&&r&&(0,o.jsx)(g,{className:k().link,href:l,event:{event:"data-event",eventCategory:n,eventAction:"click_on_read_all_questions_button",eventLabel:"faq_block"},dataLayerPush:i,Link:s,children:r||"Читать все вопросы"})]}):null};var j=n(5192),A=n.n(j);let N=(0,a.memo)(t=>{let{newContainer:e=!1,sectionTitle:n="Частые вопросы",faqBlockTitle:r="Частые вопросы",idFAQBlock:a,questions:l=[],dataLayerPush:u,eventCategory:d,checkAllText:h,Link:f,href:p,isExpanded:v,isAllExpanded:_,variant:m="default",className:x}=t,g=e?i.W2:s.t;return(0,o.jsx)("section",{className:(0,c.Z)(A().supportSection,A()["supportSection--".concat(m)],x),id:a,children:(0,o.jsxs)(g,{className:e?void 0:A().noPadding,children:[n&&(0,o.jsx)("h2",{className:A().title,children:n}),(0,o.jsx)(y,{sectionTitle:r,questions:l,eventCategory:d,checkAllText:h,dataLayerPush:u,Link:f,href:p,isExpanded:v,isAllExpanded:_,variant:m})]})})});N.displayName="UiFAQBlock"},20551:function(t){t.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},20680:function(t){t.exports={disclaimer:"advertisement-disclaimer_disclaimer__CoBa3"}},23312:function(t){t.exports={layout:"layout_layout__iXzDO",layoutPaddingTop:"layout_layoutPaddingTop__JFFLK",noPadding:"layout_noPadding__tZ4w4",mobileNavigation:"layout_mobileNavigation__CR6bw",footer:"layout_footer__3IlnK"}},42010:function(t){t.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(t){t.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(t){t.exports={checkAllWrapper:"CheckAllLink_checkAllWrapper__5qaKf",link:"CheckAllLink_link___9cvw",icon:"CheckAllLink_icon__rFVbv"}},50585:function(t){t.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"}}}]);