(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1993],{2694:e=>{e.exports={widgetContainer:"satellite-landing_widgetContainer__HA80C"}},10027:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var i=n(37876),a=n(77328),s=n.n(a),r=n(89099),o=n(33126),c=n(3187);function l(e){let{title:t,description:n,productId:a}=e,{basePath:l,mainBaseUrl:u}=(0,o.UK)(),{asPath:d}=(0,r.useRouter)(),h=(0,c.m)(d);return(0,i.jsxs)(s(),{children:[(0,i.jsx)("title",{children:t}),(0,i.jsx)("meta",{name:"description",content:n}),(0,i.jsx)("meta",{property:"og:title",content:t}),(0,i.jsx)("meta",{property:"og:description",content:n}),(0,i.jsx)("meta",{property:"og:site_name",content:"Финуслуги"}),(0,i.jsx)("meta",{property:"og:image",content:"".concat(l,"/icons/favicon-32x32.png")}),(0,i.jsx)("meta",{property:"og:type",content:"website"}),(0,i.jsx)("meta",{property:"og:url",content:"".concat(u).concat(h)}),(0,i.jsx)("link",{rel:"icon",href:"".concat(l,"/icons/favicon-32x32.png")}),(0,i.jsx)("link",{rel:"manifest",href:"".concat(l,"/manifest.json"),type:"application/manifest+json"}),(0,i.jsx)("link",{rel:"canonical",href:"".concat(u).concat(h)}),a&&(0,i.jsx)("script",{children:"dataLayer = [{\n            'view_product_id': '".concat(a,"'\n          }];")})]})}l.displayName="HeadMeta"},11361:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var i=n(37876),a=n(41377),s=n(25904),r=n(15691),o=n.n(r);let c=[{icon:s.IconFdsCoatOfArmRussiaO,text:"Финуслуги — официальная финансовая платформа, внесенная в реестр ЦБ РФ",link:"https://www.cbr.ru/finm_infrastructure/financial_platform_operators"},{icon:s.IconFdsOctostarCheckO,text:"Все наши партнеры имеют лицензию\nБанка России"},{icon:s.IconFdsShieldCheckO,text:"Ваши данные защищены, зашифрованы и\xa0не\xa0передаются третьим лицам"}];function l(e){let{loginWidgetRef:t,title:n,subtitle:s,onButtonClick:r,loginWidgetConfig:l}=e;return(0,i.jsxs)("div",{className:o().container,children:[(0,i.jsxs)("div",{className:o().heading,children:[(0,i.jsx)("h1",{className:o().title,children:n}),(0,i.jsx)("p",{className:o().subtitle,children:s}),(0,i.jsx)("div",{className:o().widgetContainer,ref:t,children:(0,i.jsx)(a.S,{className:o().widget,...l,onAnalyticsEvent:r})})]}),(0,i.jsx)("div",{className:o().infoBlock,children:c.map((e,t)=>{let{icon:n,text:a,link:s}=e;return(0,i.jsxs)("div",{className:o().infoItem,children:[(0,i.jsx)("div",{className:o().iconWrapper,children:(0,i.jsx)(n,{className:o().icon,size:"24"})}),void 0!==s?(0,i.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:o().infoText,children:a}):(0,i.jsx)("span",{className:o().infoText,children:a})]},t)})})]})}},12771:(e,t,n)=>{"use strict";n.d(t,{x6:()=>p,zy:()=>l,ZP:()=>c,pY:()=>g,aB:()=>d,xy:()=>h,QV:()=>u,Cw:()=>o});var i=n(33126);class a{start(){this.startTime=performance.now()}setStatus(e){this.status=e}observe(){if(!this.startTime)throw Error("Prometheus metric of outgoing request is not observed: startTime is not defined");!function(e,t,i,a){try{var s,r;null==(s=n.g.outgoingHTTPRequestHistogram)||s.labels(e,t,void 0!==i?String(i):"unknown").observe((r=a,performance.now()-r))}catch(e){console.warn("Prometheus metric of outgoing request is not observed:",e)}}(this.method,this.url,this.status,this.startTime)}constructor(e,t){this.method=e,this.url=t}}var s=n(3187),r=n(63273);function o(){return"".concat((0,i.zj)().basePath,"/api")}function c(e,t){return p("".concat("".concat((0,i.zj)().creditShowcaseApiUrl,"/api/v1"),"/").concat(e),t)}function l(e,t){return p("".concat("".concat((0,i.zj)().mainApiUrl,"/money_data"),"/").concat(e),t)}function u(e,t){return p("".concat("".concat((0,i.zj)().savingsApiUrl,"/api/v1"),"/").concat(e),t)}function d(e,t){return p("".concat("".concat((0,i.zj)().mpScApiUrl,"/api/v1"),"/").concat(e),t)}function h(e,t){return p("".concat("".concat((0,i.zj)().mpScSeoApiUrl,"/api/v2"),"/").concat(e),t)}function g(e,t){return p("".concat(o(),"/").concat(e),t)}async function p(e,t){let n=await m(e,t);try{return JSON.parse(n)}catch(e){throw Error("Failed to parse JSON: ".concat(n),{cause:e})}}async function m(e,t){var n;(0,r.oc)()||console.debug("Fetch data: ".concat(e));let o={},c=(0,i.zj)().apiUsername,l=(0,i.zj)().apiPassword;c&&l&&(o.Authorization="Basic ".concat((0,r.WG)("".concat(c,":").concat(l))));let u=new a(null!=(n=null==t?void 0:t.method)?n:"GET",(0,s.m)(e));try{u.start();let n=await fetch(e,{...t,headers:{...o,...null==t?void 0:t.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(t){throw Error("Failed to fetch data: ".concat(e),{cause:t})}finally{u.observe()}}},15691:e=>{e.exports={container:"satellite-landing-heading_container__LIaMB",heading:"satellite-landing-heading_heading__FTHM3",widgetContainer:"satellite-landing-heading_widgetContainer__RqWjy",widget:"satellite-landing-heading_widget__m4Gyz",title:"satellite-landing-heading_title__USjg6",subtitle:"satellite-landing-heading_subtitle__bj30j",infoBlock:"satellite-landing-heading_infoBlock__GO7rn",infoItem:"satellite-landing-heading_infoItem__CNPXo",infoText:"satellite-landing-heading_infoText__4Lv_6",iconWrapper:"satellite-landing-heading_iconWrapper__Blfql",icon:"satellite-landing-heading_icon__yshCA"}},16891:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var i=n(37876),a=n(49995),s=n(53934),r=n.n(s);let o=e=>{let{children:t,className:n}=e;return(0,i.jsx)("div",{className:(0,a.A)(r().mainContainer,n),children:t})}},25651:(e,t,n)=>{"use strict";n.d(t,{F:()=>y});var i=n(37876),a=n(14232),s=n(89099),r=n(41377),o=n(10027),c=n(92020),l=n(99388),u=n(33126),d=n(5552),h=n(9837),g=n(48673),p=n(3187),m=n(66460),v=n(162),x=n(54926),f=n(27116);let _=(0,a.memo)(e=>{let{name:t}=e,n={"@context":"https://schema.org","@type":"Product",name:t,aggregateRating:(0,x.E)({ratingValue:4.8,reviewCount:1587,bestRating:5,worstRating:1})};return(0,i.jsx)(f.S,{schema:n})});_.displayName="SatteliteLandingSchema",n(51040);var j=n(2694),w=n.n(j);function y(e){let{expertQuote:t,questions:n,texts:x,content:f,onNavigate:j,support:y,loginWidgetServerConfig:b,noIndex:C,loginWidgetButtonText:k,loginWidgetEntryPoint:A}=e,{lkBaseUrl:T,assetsBaseUrl:N}=(0,u.UK)(),S=(0,a.useRef)(null),{asPath:E}=(0,s.useRouter)(),[U,I]=(0,a.useState)(!1),[O,R]=(0,a.useState)(null!=t?t:void 0),L=(0,d._I)(),P=(0,a.useMemo)(()=>({baseUrl:T,s3AssetsUrl:"".concat(N,"/mp-assets"),serverConfig:b,config:{primaryTextOverride:k,linkTarget:"_self"},isSilent:!0,entryPointId:A,scenarioParams:{targetUri:"".concat(T,"/credits/history")}}),[N,T,b,k,A]),z=(0,p.m)(E);(0,l.eg)(l.ch.Credit);let F=n.map(e=>({...e,plainText:e.text.replace(/<[^>]+>/g,"")}));return(0,g.w5)(()=>{(0,v.Zs)(z).then(R)},[z]),(0,a.useEffect)(()=>{let e=S.current;if(null===e)throw Error("Dead code branch");let t=new IntersectionObserver(e=>{let[t]=e;I(!t.isIntersecting)},{threshold:.1});return t.observe(e),()=>{t.unobserve(e)}},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.I,{title:x.meta.title,description:x.meta.description}),C?(0,i.jsx)(c.W,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.t,{}),(0,i.jsx)(_,{name:x.title}),(0,i.jsx)(h.c,{questions:F})]}),(0,i.jsx)(f,{texts:x,loginWidgetRef:S,expertQuote:O,questions:n,onSatelliteNavigate:j,support:y,loginWidgetConfig:P}),!L&&U&&(0,i.jsx)("div",{className:w().widgetContainer,children:(0,i.jsx)(r.S,{...P})})]})}},28131:(e,t,n)=>{"use strict";function i(e){return e instanceof Error?e.message:"Unknown error"}n.d(t,{m_:()=>a,u1:()=>i});class a extends Error{}},37105:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var i=function(e){return e.POTREBITELSKIE="potrebitelskie_kredity",e.KARTY="kreditnye_karty",e.MICROZAJMY="mikrozajmy",e.AUTOCREDIT="avtokredity",e.IPOTEKA="ipoteka",e.CALCULATOR="kreditniy_kalkulyator",e}({})},51040:()=>{},53934:e=>{e.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},54926:(e,t,n)=>{"use strict";function i(e){let{ratingValue:t,reviewCount:n,bestRating:i,worstRating:a}=e;return{"@type":"AggregateRating",ratingValue:t,reviewCount:n,bestRating:i,worstRating:a}}n.d(t,{E:()=>i})},73422:e=>{e.exports={withoutLogo:"footer_withoutLogo__SigHo"}},73584:(e,t,n)=>{"use strict";n.d(t,{AP:()=>a,B4:()=>i,n9:()=>s});class i{getOrUpdate(e){var t;return null!=(t=this.get())?t:this.update(e)}get(){if(this.expires>Date.now())return this.value}update(e){let t=this.getValue(e),n=this.value;return(this.expires=Date.now()+this.duration,void 0!==n)?(t.then(e=>{this.value=Promise.resolve(e)}).catch(()=>{this.expires=Date.now()+this.duration}),n):(t.catch(()=>{this.value=void 0,this.expires=0}),this.value=t,t)}constructor(e,t){this.expires=0,this.getValue=e,this.duration=null!=t?t:3e5}}class a{getOrUpdate(e,t){var n;return null!=(n=this.get(e))?n:this.update(e,t)}get(e){var t;if((null!=(t=this.expires.get(e))?t:0)>Date.now())return this.values.get(e)}update(e,t){let n=this.getValue(t),i=this.values.get(e);return(this.expires.set(e,Date.now()+this.duration),this.clear(),void 0!==i)?(n.then(t=>{this.values.set(e,Promise.resolve(t))}).catch(()=>{this.expires.set(e,Date.now()+this.duration)}),i):(n.catch(()=>{this.values.delete(e),this.expires.delete(e)}),this.values.set(e,n),n)}clear(){let e=Date.now();this.expires.forEach((t,n)=>{t<e&&(this.values.delete(n),this.expires.delete(n))})}constructor(e,t){this.values=new Map,this.expires=new Map,this.getValue=e,this.duration=null!=t?t:3e5}}function s(){let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1,0,0,0,0).getTime()}},81078:(e,t,n)=>{"use strict";n.d(t,{w:()=>l});var i=n(37876),a=n(47429),s=n(49995),r=n(33126),o=n(73422),c=n.n(o);function l(e){let{className:t,data:n,variant:o,withoutLogo:l}=e,u=(0,r.UK)();return(0,i.jsx)("div",{className:(0,s.A)(t,{[c().withoutLogo]:l}),children:(0,i.jsx)(a.F,{data:n,showcaseUrl:u.mainBaseUrl,variant:o})})}},91063:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var i=n(35656);function a(e){e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),e.eventLabel&&"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),(0,i.Fj)(e)}},92020:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var i=n(37876),a=n(77328),s=n.n(a);let r=()=>(0,i.jsx)(s(),{children:(0,i.jsx)("meta",{name:"robots",content:"noindex,nofollow"})})}}]);