(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),r=n(77328),a=n.n(r),s=n(89099),o=n(33126),c=n(3187);function l(e){let{title:t,description:n,productId:r}=e,{basePath:l,mainBaseUrl:u}=(0,o.UK)(),{asPath:d}=(0,s.useRouter)(),h=(0,c.m)(d);return(0,i.jsxs)(a(),{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)}),r&&(0,i.jsx)("script",{children:"dataLayer = [{\n            'view_product_id': '".concat(r,"'\n          }];")})]})}l.displayName="HeadMeta"},11361:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var i=n(37876),r=n(19384),a=n(25904),s=n(15691),o=n.n(s);let c=[{icon:a.IconFdsCoatOfArmRussiaO,text:"Финуслуги — официальная финансовая платформа, внесенная в реестр ЦБ РФ",link:"https://www.cbr.ru/finm_infrastructure/financial_platform_operators"},{icon:a.IconFdsOctostarCheckO,text:"Все наши партнеры имеют лицензию\nБанка России"},{icon:a.IconFdsShieldCheckO,text:"Ваши данные защищены, зашифрованы и\xa0не\xa0передаются третьим лицам"}];function l(e){let{loginWidgetRef:t,title:n,subtitle:a,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:a}),(0,i.jsx)("div",{className:o().widgetContainer,ref:t,children:p&&(0,i.jsx)(r.S,{className:o().widget,overrideLoginAction:u,serverConfig:h,config:g,baseUrl:s,s3AssetsUrl:"".concat(l,"/mp-assets")})})]}),(0,i.jsx)("div",{className:o().infoBlock,children:c.map((e,t)=>{let{icon:n,text:r,link: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"})}),void 0!==a?(0,i.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:o().infoText,children:r}):(0,i.jsx)("span",{className:o().infoText,children:r})]},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 r{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,r){try{var a,s;null==(a=n.g.outgoingHTTPRequestHistogram)||a.labels(e,t,void 0!==i?String(i):"unknown").observe((s=r,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,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 r(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",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),r=n(49995),a=n(53934),s=n.n(a);let o=e=>{let{children:t,className:n}=e;return(0,i.jsx)("div",{className:(0,r.A)(s().mainContainer,n),children:t})}},25651:(e,t,n)=>{"use strict";n.d(t,{F:()=>y});var i=n(37876),r=n(14232),a=n(89099),s=n(19384),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),f=n(162),v=n(54926),_=n(27116);let x=(0,r.memo)(e=>{let{name:t}=e,n={"@context":"https://schema.org","@type":"Product",name:t,aggregateRating:(0,v.E)({ratingValue:4.8,reviewCount:1587,bestRating:5,worstRating:1})};return(0,i.jsx)(_.S,{schema:n})});x.displayName="SatteliteLandingSchema",n(51040);var w=n(2694),j=n.n(w);let C={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:v,content:_,onNavigate:w,support:y,loginWidgetConfig:b,noIndex:A}=e,{lkBaseUrl:k,assetsBaseUrl:S}=(0,u.UK)(),E=(0,r.useRef)(null),{asPath:T}=(0,a.useRouter)(),[N,U]=(0,r.useState)(!1),[I,O]=(0,r.useState)(null!=t?t:void 0),L=(0,d._I)(),P=(0,r.useMemo)(()=>({...C,config:{...C.config,primaryTextOverride:v.button},serverConfig:{...C.serverConfig,...b}}),[b,v]),R=N&&!L&&void 0!==P.serverConfig.availableAuthProviders&&P.serverConfig.availableAuthProviders.includes("ESIA"),D=(0,p.m)(T);(0,l.eg)(l.ch.Credit);let F=n.map(e=>({...e,plainText:e.text.replace(/<[^>]+>/g,"")}));return(0,g.w5)(()=>{(0,f.Zs)(D).then(O)},[D]),(0,r.useEffect)(()=>{let e=E.current;if(null===e)throw Error("Dead code branch");let t=new IntersectionObserver(e=>{let[t]=e;U(!t.isIntersecting)},{threshold:.1});return t.observe(e),()=>{t.unobserve(e)}},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.I,{title:v.meta.title,description:v.meta.description}),A?(0,i.jsx)(c.W,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.t,{}),(0,i.jsx)(x,{name:v.title}),(0,i.jsx)(h.c,{questions:F}),";"]}),(0,i.jsx)(_,{texts:v,loginWidgetRef:E,expertQuote:I,questions:n,onSatelliteNavigate:w,support:y,loginWidgetConfig:P,lkBaseUrl:k,assetsBaseUrl:S}),R&&(0,i.jsx)("div",{className:j().widgetContainer,children:(0,i.jsx)(s.S,{overrideLoginAction:w,serverConfig:P.serverConfig,config:P.config,baseUrl:k,s3AssetsUrl:"".concat(S,"/mp-assets")})})]})}},28131:(e,t,n)=>{"use strict";function i(e){return e instanceof Error?e.message:"Unknown error"}n.d(t,{m_:()=>r,u1:()=>i});class r 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:r}=e;return{"@type":"AggregateRating",ratingValue:t,reviewCount:n,bestRating:i,worstRating:r}}n.d(t,{E:()=>i})},73422:e=>{e.exports={withoutLogo:"footer_withoutLogo__SigHo"}},73584:(e,t,n)=>{"use strict";n.d(t,{AP:()=>r,B4:()=>i,n9:()=>a});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 r{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 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 i=n(37876),r=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,i.jsx)("div",{className:(0,a.A)(t,{[c().withoutLogo]:l}),children:(0,i.jsx)(r.F,{data:n,showcaseUrl:u.mainBaseUrl,variant:o})})}},91063:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var i=n(35656);function r(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:()=>s});var i=n(37876),r=n(77328),a=n.n(r);let s=()=>(0,i.jsx)(a(),{children:(0,i.jsx)("meta",{name:"robots",content:"noindex,nofollow"})})},99388:(e,t,n)=>{"use strict";n.d(t,{ch:()=>l,eg:()=>d});var i=n(14232),r=n(89099),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,i,r){let a=Object.fromEntries(t);a.product_type=n,a.aggregator_id=i,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:i,eventAction:"CPA_click",eventLabel:window.location.pathname,eventValue:r,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 i=n,r=t,a=e;let[,s]=r.split("?"),o=new URLSearchParams(s);(function(e,t,n){var i;let r=t.get("aggregator_id");if(!r)return!1;if("agents"!==r)throw Error('The query parameter "aggregator_id" should be equal to "agents"');let a=null!=(i=t.get("click_id"))?i:void 0;return u(e,t,n,r,a)})(i,o,a)||function(e,t,n){var i;let r=t.get("utm_source");if(!r)return;let a=null!=(i=t.get("utm_term"))?i:void 0;u(e,t,n,r,a)}(i,o,a)},[n,t,e])}}}]);