(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7207],{2694:e=>{e.exports={widgetContainer:"satellite-landing_widgetContainer__HA80C"}},10027:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var r=n(37876),i=n(77328),a=n.n(i),s=n(89099),o=n(33126),c=n(3187);function l(e){let{title:t,description:n,productId:i}=e,{basePath:l,mainBaseUrl:u}=(0,o.UK)(),{asPath:d}=(0,s.useRouter)(),h=(0,c.m)(d);return(0,r.jsxs)(a(),{children:[(0,r.jsx)("title",{children:t}),(0,r.jsx)("meta",{name:"description",content:n}),(0,r.jsx)("meta",{property:"og:title",content:t}),(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)}),i&&(0,r.jsx)("script",{children:"dataLayer = [{\n            'view_product_id': '".concat(i,"'\n          }];")})]})}l.displayName="HeadMeta"},11361:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var r=n(37876),i=n(19384),a=n(25904),s=n(15691),o=n.n(s);let c=[{icon:a.IconFdsCoatOfArmRussiaO,text:"Финуслуги — финансовый маркетплейс от Московской биржи"},{icon:a.IconFdsOctostarCheckO,text:"Все наши партнеры имеют лицензию\nБанка России"},{icon:a.IconFdsShieldCheckO,text:"Ваши данные защищены.\nФинуслуги не передают их третьим лицам"}];function l(e){let{loginWidgetRef:t,title:n,subtitle:a,lkBaseUrl:s,assetsBaseUrl:l,onButtonClick:u,loginWidgetConfig:d}=e,{serverConfig:h,config:g}=d;return(0,r.jsxs)("div",{className:o().container,children:[(0,r.jsxs)("div",{className:o().heading,children:[(0,r.jsx)("h1",{className:o().title,children:n}),(0,r.jsx)("p",{className:o().subtitle,children:a}),(0,r.jsx)("div",{className:o().widgetContainer,ref:t,children:void 0!==h.availableAuthProviders&&h.availableAuthProviders.includes("ESIA")&&(0,r.jsx)(i.S,{className:o().widget,overrideLoginAction:u,serverConfig:h,config:g,baseUrl:s,s3AssetsUrl:"".concat(l,"/mp-assets")})})]}),(0,r.jsxs)("div",{className:o().infoBlock,children:[(0,r.jsx)("a",{href:"https://www.cbr.ru/finm_infrastructure/financial_platform_operators/",className:o().confidence}),c.map((e,t)=>{let{icon:n,text:i}=e;return(0,r.jsxs)("div",{className:o().infoItem,children:[(0,r.jsx)("div",{className:o().iconWrapper,children:(0,r.jsx)(n,{className:o().icon,size:"24"})}),(0,r.jsx)("span",{className:o().infoText,children:i})]},t)})]})]})}},12771:(e,t,n)=>{"use strict";n.d(t,{x6:()=>g,zy:()=>l,ZP:()=>c,pY:()=>h,aB:()=>d,QV:()=>u,Cw:()=>o});var r=n(33126);class i{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,r,i){try{var a,s;null==(a=n.g.outgoingHTTPRequestHistogram)||a.labels(e,t,void 0!==r?String(r):"unknown").observe((s=i,performance.now()-s))}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 a=n(3187),s=n(63273);function o(){return"".concat((0,r.zj)().basePath,"/api")}function c(e,t){return g("".concat("".concat((0,r.zj)().creditShowcaseApiUrl,"/api/v1"),"/").concat(e),t)}function l(e,t){return g("".concat("".concat((0,r.zj)().mainApiUrl,"/money_data"),"/").concat(e),t)}function u(e,t){return g("".concat("".concat((0,r.zj)().savingsApiUrl,"/api/v1"),"/").concat(e),t)}function d(e,t){return g("".concat("".concat((0,r.zj)().mpScApiUrl,"/api/v1"),"/").concat(e),t)}function h(e,t){return g("".concat(o(),"/").concat(e),t)}async function g(e,t){let n=await p(e,t);try{return JSON.parse(n)}catch(e){throw Error("Failed to parse JSON: ".concat(n),{cause:e})}}async function p(e,t){var n;(0,s.oc)()||console.debug("Fetch data: ".concat(e));let o={},c=(0,r.zj)().apiUsername,l=(0,r.zj)().apiPassword;c&&l&&(o.Authorization="Basic ".concat((0,s.WG)("".concat(c,":").concat(l))));let u=new i(null!=(n=null==t?void 0:t.method)?n:"GET",(0,a.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",confidence:"satellite-landing-heading_confidence__YvWPE",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 r=n(37876),i=n(49995),a=n(53934),s=n.n(a);let o=e=>{let{children:t,className:n}=e;return(0,r.jsx)("div",{className:(0,i.A)(s().mainContainer,n),children:t})}},25651:(e,t,n)=>{"use strict";n.d(t,{F:()=>y});var r=n(37876);n(51040);var i=n(19384),a=n(89099),s=n(14232),o=n(10027),c=n(99388),l=n(33126),u=n(5552),d=n(9837),h=n(48673),g=n(3187),p=n(66460),m=n(162),f=n(2694),v=n.n(f),_=n(54926),x=n(27116);let w=(0,s.memo)(e=>{let{name:t}=e,n={"@context":"https://schema.org","@type":"Product",name:t,aggregateRating:(0,_.E)({ratingValue:4.8,reviewCount:1587,bestRating:5,worstRating:1})};return(0,r.jsx)(x.S,{schema:n})});w.displayName="SatteliteLandingSchema";let j={serverConfig:{legalInfo:{plain:{text:"Нажимая \xabУзнать бесплатно\xbb, вы подписываете своей электронной подписью $1 к $2 и $3, a также соглашаетесь с $4",links:[{href:"https://assets.finuslugi.ru/mp-assets/platform-rules.pdf",text:"Заявление о присоединении"},{href:"https://assets.finuslugi.ru/mp-assets/application-platform-rules.pdf",text:"Правилам платформы"},{href:"https://assets.finuslugi.ru/mp-assets/agreement-personal-data.pdf",text:"Согласие на обработку персональных данных"},{href:"https://assets.finuslugi.ru/mp-assets/user-agreement.pdf",text:"Пользовательским соглашением"}]}}},config:{primaryAuthProviders:["ESIA"],variant:"secondary"}};function y(e){let{expertQuote:t,questions:n,texts:f,content:_,onNavigate:x,support:y,loginWidgetConfig:C}=e,{lkBaseUrl:A,assetsBaseUrl:b}=(0,l.UK)(),k=(0,s.useRef)(null),{asPath:S}=(0,a.useRouter)(),[E,N]=(0,s.useState)(!1),[T,U]=(0,s.useState)(null!=t?t:void 0),I=(0,u._I)(),O=(0,s.useMemo)(()=>({...j,config:{...j.config,primaryTextOverride:f.button},serverConfig:{...j.serverConfig,...C}}),[C,f]),P=E&&!I&&void 0!==O.serverConfig.availableAuthProviders&&O.serverConfig.availableAuthProviders.includes("ESIA"),L=(0,g.m)(S);(0,c.eg)(c.ch.Credit);let R=n.map(e=>({...e,plainText:e.text.replace(/<[^>]+>/g,"")}));return(0,h.w5)(()=>{(0,m.Zs)(L).then(U)},[L]),(0,s.useEffect)(()=>{let e=k.current;if(null===e)throw Error("Dead code branch");let t=new IntersectionObserver(e=>{let[t]=e;N(!t.isIntersecting)},{threshold:.1});return t.observe(e),()=>{t.unobserve(e)}},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.I,{title:f.meta.title,description:f.meta.description}),(0,r.jsx)(p.t,{}),(0,r.jsx)(w,{name:f.title}),(0,r.jsx)(d.c,{questions:R}),(0,r.jsx)(_,{texts:f,loginWidgetRef:k,expertQuote:T,questions:n,onSatelliteNavigate:x,support:y,loginWidgetConfig:O,lkBaseUrl:A,assetsBaseUrl:b}),P&&(0,r.jsx)("div",{className:v().widgetContainer,children:(0,r.jsx)(i.S,{overrideLoginAction:x,serverConfig:O.serverConfig,config:O.config,baseUrl:A,s3AssetsUrl:"".concat(b,"/mp-assets")})})]})}},28131:(e,t,n)=>{"use strict";function r(e){return e instanceof Error?e.message:"Unknown error"}n.d(t,{m_:()=>i,u1:()=>r});class i extends Error{}},37105:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var r=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}({})},37397:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(33126),i=n(12771),a=n(63273),s=n(28131);async function o(e,t){var n;return c("".concat((n=(0,r.zj)().mainApiUrl,(0,a.oc)()&&window.origin!==n?"".concat((0,i.Cw)(),"/proxy").concat("/main"):n)).concat(e),t)}async function c(e,t){try{return{data:await (0,i.x6)(e,t),error:null}}catch(e){return{data:null,error:(0,s.u1)(e)}}}},51040:()=>{},53934:e=>{e.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},54926:(e,t,n)=>{"use strict";function r(e){let{ratingValue:t,reviewCount:n,bestRating:r,worstRating:i}=e;return{"@type":"AggregateRating",ratingValue:t,reviewCount:n,bestRating:r,worstRating:i}}n.d(t,{E:()=>r})},73422:e=>{e.exports={withoutLogo:"footer_withoutLogo__SigHo"}},73584:(e,t,n)=>{"use strict";n.d(t,{AP:()=>i,B4:()=>r,n9:()=>a});class r{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 i{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),r=this.values.get(e);return(this.expires.set(e,Date.now()+this.duration),this.clear(),void 0!==r)?(n.then(t=>{this.values.set(e,Promise.resolve(t))}).catch(()=>{this.expires.set(e,Date.now()+this.duration)}),r):(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 a(){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 r=n(37876),i=n(47429),a=n(49995),s=n(33126),o=n(73422),c=n.n(o);function l(e){let{className:t,data:n,variant:o,withoutLogo:l}=e,u=(0,s.UK)();return(0,r.jsx)("div",{className:(0,a.A)(t,{[c().withoutLogo]:l}),children:(0,r.jsx)(i.F,{data:n,showcaseUrl:u.mainBaseUrl,variant:o})})}},91063:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(35656);function i(e){e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),e.eventLabel&&"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),(0,r.Fj)(e)}},99388:(e,t,n)=>{"use strict";n.d(t,{ch:()=>l,eg:()=>d});var r=n(89099),i=n(14232),a=n(82065),s=n(17092),o=n(91063),c=function(e){return e.Source="utm_source",e.Campaign="utm_campaign",e.Medium="utm_medium",e.Term="utm_term",e}(c||{}),l=function(e){return e.Credit="credit",e.CreditCard="credit_card",e.Microloan="micro_loan",e}({});function u(e,t,n,r,i){let a=Object.fromEntries(t);a.product_type=n,a.aggregator_id=r,a.create_date=new Date().toISOString();let c=function(e){try{let t=e.cpa_click;if(t)return JSON.parse(t)}catch(e){}return{payload:[]}}(e);c.payload.push(a),(0,s.u)("cpa_click",c,30);let l={event:"data-event",eventCategory:r,eventAction:"CPA_click",eventLabel:window.location.pathname,eventValue:i,utm_source:t.get("utm_source"),utm_campaign:t.get("utm_campaign"),utm_medium:t.get("utm_medium")};return(0,o.o)(l),!0}function d(e){let{asPath:t}=(0,r.useRouter)(),n=(0,a.l)();(0,i.useEffect)(()=>{var r=n,i=t,a=e;let[s,o]=i.split("?"),c=new URLSearchParams(o);(function(e,t,n){var r;let i=t.get("aggregator_id");if(!i)return!1;if("agents"!==i)throw Error('The query parameter "aggregator_id" should be equal to "agents"');let a=null!=(r=t.get("click_id"))?r:void 0;return u(e,t,n,i,a)})(r,c,a)||function(e,t,n){var r;let i=t.get("utm_source");if(!i)return;let a=null!=(r=t.get("utm_term"))?r:void 0;u(e,t,n,i,a)}(r,c,a)},[n,t,e])}}}]);