(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6479],{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),r=n.n(a),s=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,s.useRouter)(),h=(0,c.m)(d);return(0,i.jsxs)(r(),{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(19384),r=n(25904),s=n(15691),o=n.n(s);let c=[{icon:r.IconFdsCoatOfArmRussiaO,text:"Финуслуги — официальная финансовая платформа, внесенная в реестр ЦБ РФ"},{icon:r.IconFdsOctostarCheckO,text:"Все наши партнеры имеют лицензию\nБанка России"},{icon:r.IconFdsShieldCheckO,text:"Ваши данные защищены, зашифрованы и\xa0не\xa0передаются третьим лицам"}];function l(e){let{loginWidgetRef:t,title:n,subtitle:r,lkBaseUrl:s,assetsBaseUrl:l,onButtonClick:u,loginWidgetConfig:d}=e,{serverConfig:h,config:g}=d,p=void 0!==h.availableAuthProviders&&h.availableAuthProviders.includes("ESIA");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:r}),(0,i.jsx)("div",{className:o().widgetContainer,ref:t,children:p&&(0,i.jsx)(a.S,{className:o().widget,overrideLoginAction:u,serverConfig:h,config:g,baseUrl:s,s3AssetsUrl:"".concat(l,"/mp-assets")})})]}),(0,i.jsxs)("div",{className:o().infoBlock,children:[(0,i.jsx)("a",{href:"https://www.cbr.ru/finm_infrastructure/financial_platform_operators/",className:o().confidence}),c.map((e,t)=>{let{icon:n,text:a}=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"})}),(0,i.jsx)("span",{className:o().infoText,children:a})]},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 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 r,s;null==(r=n.g.outgoingHTTPRequestHistogram)||r.labels(e,t,void 0!==i?String(i):"unknown").observe((s=a,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 r=n(3187),s=n(63273);function o(){return"".concat((0,i.zj)().basePath,"/api")}function c(e,t){return g("".concat("".concat((0,i.zj)().creditShowcaseApiUrl,"/api/v1"),"/").concat(e),t)}function l(e,t){return g("".concat("".concat((0,i.zj)().mainApiUrl,"/money_data"),"/").concat(e),t)}function u(e,t){return g("".concat("".concat((0,i.zj)().savingsApiUrl,"/api/v1"),"/").concat(e),t)}function d(e,t){return g("".concat("".concat((0,i.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,i.zj)().apiUsername,l=(0,i.zj)().apiPassword;c&&l&&(o.Authorization="Basic ".concat((0,s.WG)("".concat(c,":").concat(l))));let u=new a(null!=(n=null==t?void 0:t.method)?n:"GET",(0,r.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 i=n(37876),a=n(49995),r=n(53934),s=n.n(r);let o=e=>{let{children:t,className:n}=e;return(0,i.jsx)("div",{className:(0,a.A)(s().mainContainer,n),children:t})}},25651:(e,t,n)=>{"use strict";n.d(t,{F:()=>C});var i=n(37876),a=n(14232),r=n(89099),s=n(19384),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(54926),v=n(27116);let _=(0,a.memo)(e=>{let{name:t}=e,n={"@context":"https://schema.org","@type":"Product",name:t,aggregateRating:(0,f.E)({ratingValue:4.8,reviewCount:1587,bestRating:5,worstRating:1})};return(0,i.jsx)(v.S,{schema:n})});_.displayName="SatteliteLandingSchema",n(51040);var x=n(2694),w=n.n(x);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 C(e){let{expertQuote:t,questions:n,texts:f,content:v,onNavigate:x,support:C,loginWidgetConfig:y}=e,{lkBaseUrl:A,assetsBaseUrl:b}=(0,l.UK)(),k=(0,a.useRef)(null),{asPath:S}=(0,r.useRouter)(),[E,N]=(0,a.useState)(!1),[T,U]=(0,a.useState)(null!=t?t:void 0),I=(0,u._I)(),O=(0,a.useMemo)(()=>({...j,config:{...j.config,primaryTextOverride:f.button},serverConfig:{...j.serverConfig,...y}}),[y,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,a.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,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.I,{title:f.meta.title,description:f.meta.description}),(0,i.jsx)(p.t,{}),(0,i.jsx)(_,{name:f.title}),(0,i.jsx)(d.c,{questions:R}),(0,i.jsx)(v,{texts:f,loginWidgetRef:k,expertQuote:T,questions:n,onSatelliteNavigate:x,support:C,loginWidgetConfig:O,lkBaseUrl:A,assetsBaseUrl:b}),P&&(0,i.jsx)("div",{className:w().widgetContainer,children:(0,i.jsx)(s.S,{overrideLoginAction:x,serverConfig:O.serverConfig,config:O.config,baseUrl:A,s3AssetsUrl:"".concat(b,"/mp-assets")})})]})}},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:()=>r});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 r(){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),r=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,i.jsx)("div",{className:(0,r.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)}},99388:(e,t,n)=>{"use strict";n.d(t,{ch:()=>l,eg:()=>d});var i=n(14232),a=n(89099),r=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,i,a){let r=Object.fromEntries(t);r.product_type=n,r.aggregator_id=i,r.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(r),(0,s.u)("cpa_click",c,30);let l={event:"data-event",eventCategory:i,eventAction:"CPA_click",eventLabel:window.location.pathname,eventValue:a,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,a.useRouter)(),n=(0,r.l)();(0,i.useEffect)(()=>{var i=n,a=t,r=e;let[,s]=a.split("?"),o=new URLSearchParams(s);(function(e,t,n){var i;let a=t.get("aggregator_id");if(!a)return!1;if("agents"!==a)throw Error('The query parameter "aggregator_id" should be equal to "agents"');let r=null!=(i=t.get("click_id"))?i:void 0;return u(e,t,n,a,r)})(i,o,r)||function(e,t,n){var i;let a=t.get("utm_source");if(!a)return;let r=null!=(i=t.get("utm_term"))?i:void 0;u(e,t,n,a,r)}(i,o,r)},[n,t,e])}}}]);