(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3297],{84444:function(e,t,n){"use strict";n.d(t,{N:function(){return l}});var i=n(85893),r=n(9008),a=n.n(r),s=n(11163),o=n(84053),c=n(12261);function l(e){let{title:t,description:n,productId:r}=e,{basePath:l,mainBaseUrl:u}=(0,o.ZR)(),{asPath:d}=(0,s.useRouter)(),f=(0,c.iN)(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(f)}),(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(f)}),r&&(0,i.jsx)("script",{children:"dataLayer = [{\n            'view_product_id': '".concat(r,"'\n          }];")})]})}l.displayName="HeadMeta"},19438:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var i=n(85893),r=n(86010),a=n(20551),s=n.n(a);let o=e=>{let{children:t,className:n}=e;return(0,i.jsx)("div",{className:(0,r.Z)(s().mainContainer,n),children:t})}},73897:function(e,t,n){"use strict";var i,r;n.d(t,{u:function(){return i}}),(r=i||(i={})).POTREBITELSKIE="potrebitelskie_kredity",r.KARTY="kreditnye_karty",r.MICROZAJMY="mikrozajmy",r.AUTOCREDIT="avtokredity",r.IPOTEKA="ipoteka",r.CALCULATOR="kreditniy_kalkulyator"},88572:function(e,t,n){"use strict";n.d(t,{_B:function(){return g},kv:function(){return s}});var i,r,a,s,o=n(11163),c=n(67294),l=n(44417),u=n(76717),d=n(65737);function f(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 s=function(e){try{let t=e.cpa_click;if(t)return JSON.parse(t)}catch(e){}return{payload:[]}}(e);s.payload.push(a),(0,u.L)("cpa_click",s,30);let o={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,d.l)(o),!0}function g(e){let{asPath:t}=(0,o.useRouter)(),n=(0,l.f)();(0,c.useEffect)(()=>{!function(e,t,n){let[i,r]=t.split("?"),a=new URLSearchParams(r);(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"))&&void 0!==i?i:void 0;return f(e,t,n,r,a)})(e,a,n)||function(e,t,n){var i;let r=t.get("utm_source");if(!r)return;let a=null!==(i=t.get("utm_term"))&&void 0!==i?i:void 0;f(e,t,n,r,a)}(e,a,n)}(n,t,e)},[n,t,e])}(i=a||(a={})).Source="utm_source",i.Campaign="utm_campaign",i.Medium="utm_medium",i.Term="utm_term",(r=s||(s={})).Credit="credit",r.CreditCard="credit_card",r.Microloan="micro_loan"},65737:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var i=n(77607);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.AB)(e)}},65709:function(e,t,n){"use strict";n.d(t,{rd:function(){return f},$u:function(){return c},m6:function(){return d},C8:function(){return u},vD:function(){return l},kc:function(){return o}});var i=n(84053);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;null===(a=n.g.outgoingHTTPRequestHistogram)||void 0===a||a.labels(e,t,void 0!==i?String(i):"unknown").observe(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 a=n(12261),s=n(60600);function o(){return"".concat((0,i.iE)().basePath,"/api")}function c(e,t){return f("".concat("".concat((0,i.iE)().mainApiUrl,"/money_data"),"/").concat(e),t)}function l(e,t){return f("".concat("".concat((0,i.iE)().savingsApiUrl,"/api/v1"),"/").concat(e),t)}function u(e,t){return f("".concat("".concat((0,i.iE)().mpScApiUrl,"/api/v1"),"/").concat(e),t)}function d(e,t){return f("".concat(o(),"/").concat(e),t)}async function f(e,t){let n=await g(e,t);try{return JSON.parse(n)}catch(e){throw Error("Failed to parse JSON: ".concat(n),{cause:e})}}async function g(e,t){var n;(0,s.C5)()||console.debug("Fetch data: ".concat(e));let o={},c=(0,i.iE)().apiUsername,l=(0,i.iE)().apiPassword;c&&l&&(o.Authorization="Basic ".concat((0,s.oF)("".concat(c,":").concat(l))));let u=new r(null!==(n=null==t?void 0:t.method)&&void 0!==n?n:"GET",(0,a.iN)(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()}}},32368:function(e,t,n){"use strict";n.d(t,{$:function(){return i},n:function(){return r}});class i{getOrUpdate(){var e;return null!==(e=this.get())&&void 0!==e?e:this.update()}get(){if(this.expires>Date.now())return this.value}update(){let e=this.getValue();return this.value=e,this.expires=Date.now()+this.duration,e}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))&&void 0!==n?n:this.update(e,t)}get(e){var t;if((null!==(t=this.expires.get(e))&&void 0!==t?t:0)>Date.now())return this.values.get(e)}update(e,t){this.clear();let n=this.getValue(t);return this.values.set(e,n),this.expires.set(e,Date.now()+this.duration),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}}},81322:function(e,t,n){"use strict";n.d(t,{k:function(){return g}});var i,r,a=n(85893),s=n(91247),o=n(59194),c=n(67294);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var u=n(33279),d=n.n(u);let f=[{icon:function(e){return c.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:23.999,height:24,fill:"none"},e),i||(i=c.createElement("defs",null,c.createElement("clipPath",{id:"a"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h23.999v24H0z"})))),r||(r=c.createElement("g",{fill:"#5E83D0",clipPath:"url(#a)"},c.createElement("path",{d:"M12 2.25c-5.36 0-9.75 4.33-9.75 9.75 0 5.35 4.33 9.75 9.75 9.75 5.35 0 9.75-4.34 9.75-9.75 0-5.36-4.4-9.75-9.75-9.75M12 21c-4.97 0-9.01-4.04-9.01-9 0-4.97 4.04-9.01 9.01-9.01 4.96 0 9 4.04 9 9.01-.05 4.96-4.04 9-9 9"}),c.createElement("path",{d:"M12 19.29c.34 0 .51-.23.57-.51.05.11.17.23.28.28.11 0 .29 0 .4-.05.11-.06.23-.17.28-.29.06-.11.06-.28 0-.4.18.23.4.29.69.17.34-.17.45-.39.28-.74-.4-.97-.79-1.88-1.19-2.85-.06-.11-.06-.17-.12-.28-.05-.06-.05-.12-.11-.17 0-.06-.06-.06-.12-.12.63.06.92.29 1.09.4.05.06.05.06.23 0h.22c.06.06.17.12.23.12l.69.51c.11.11.22.23.22.4 0 .11-.34.4-.39.51-.23.23.11.57.57.57-.12-.11-.18-.23-.12-.34.06 0 .12 0 .23-.06.11-.05.06-.34.11-.4.17-.17.69-.17.97-.17.12 0 .29-.06.23-.23.17 0 .23.17.23.29.17-.12.28-.51-.29-.63.12-.11.29-.11.4 0 .12-.17-.17-.51-.63-.28 0 0-.22-.29-.79.4-.06-.06-.17-.12-.23-.18-.23-.22-.86-.79-.86-.79 0-.35-.05-.97-.45-1.31-.17-.18-.34-.23-.74-.35 0 0 .17-.28.22-.4.35.35 1.03.46 1.03-.11.57.57 1.08.23 1.08-.11 0 .17.06.34.12.51s.34.91.97.91c0 .23 0 1.08.8 1.26.05 0 .05 0 .11.05.34.4 1.65.8 1.77.69-.12-.06-.29-.17-.29-.63 0-.29-.05-1.88-.05-4.11 0-.79-.06-3.36-2.63-3.7-.4-.06-.74 0-1.08.23-.46.34-.68.91-.4 1.54v.05c.11.17.06.29-.06.4-.22.23-.45.34-.74.4-.17 0-.34-.06-.45-.17-.29-.29-.46-.63-.57-1.03-.12-.74.05-1.14.05-1.19.23-.4.63-.74 1.14-.74.23-.46.92-.29.92-.29.17.06.22.06.28.17 0 0 .29-.46 0-.63-.28-.17-.91-.22-.91-.22 0-.29-.46-.52-1.37-.35-1.03.17-1.25-.22-1.25-.22-.06.51.34.74.45.85-.4.46-.97 1.31-1.08 2.51-.12-1.2-.69-2.05-1.09-2.51.12-.06.52-.34.46-.85 0 0-.23.39-1.25.22-.86-.17-1.37.06-1.37.35 0 0-.63.05-.91.22-.29.17 0 .63 0 .63.05-.06.11-.11.28-.17 0 0 .69-.17.91.29.52.05.97.34 1.14.74 0 0 .23.4.06 1.19-.06.4-.28.74-.57 1.03-.11.11-.28.23-.46.17-.28-.06-.51-.17-.74-.4-.11-.11-.17-.23-.05-.4v-.05c.28-.63.05-1.2-.4-1.54-.35-.23-.69-.29-1.09-.23-2.51.34-2.62 2.91-2.62 3.7 0 2.23-.06 3.82-.06 4.11 0 .46-.17.57-.28.63.17.11 1.48-.29 1.77-.69 0 0 .05-.05.11-.05.8-.18.8-1.03.8-1.26.62 0 .91-.74.97-.91.05-.17.11-.34.11-.51 0 .34.51.62 1.09.11 0 .57.68.46 1.02.11.06.12.23.4.23.4-.4.06-.57.17-.74.35-.46.39-.46 1.02-.46 1.31 0 0-.57.57-.85.79-.06.06-.17.12-.23.18-.63-.69-.8-.4-.8-.4-.46-.17-.68.11-.63.28.12-.11.29-.06.4 0-.62.12-.45.57-.28.63 0-.12.05-.29.23-.29 0 .17.11.23.22.23.29 0 .8 0 .97.17.12.06.06.35.12.4.05.06.17.06.22.06 0 .11 0 .17-.11.34.46.06.74-.34.57-.57-.11-.11-.4-.4-.4-.51 0-.12.12-.29.23-.4.23-.17.46-.34.68-.51.06-.06.12-.12.23-.12a.17.17 0 0 1 .23 0c.17.06.17.06.23 0 .17-.11.45-.34 1.08-.4-.06 0-.06.06-.11.12-.06.05-.06.11-.12.17-.05.11-.05.17-.11.28-.4.97-.8 1.88-1.2 2.85-.11.35 0 .57.29.74.23.12.51.06.68-.17-.06.17-.06.29 0 .4.06.12.17.23.29.29.11.05.28.05.4.05.17-.05.22-.11.28-.28.11.28.34.51.69.51"}))))},text:"Финуслуги включены ЦБ РФ в реестр операторов финансовых платформ"},{icon:o.IconFdsOctostarCheckO,text:"Все наши партнёры имеют лицензию ЦБ РФ"},{icon:o.IconFdsShieldO,text:"Все данные защищены и передаются зашифрованно"}];function g(e){let{loginWidgetRef:t,title:n,subtitle:i,lkBaseUrl:r,assetsBaseUrl:o,onButtonClick:c,loginWidgetConfig:l}=e,{serverConfig:u,config:g}=l;return(0,a.jsxs)("div",{className:d().container,children:[(0,a.jsxs)("div",{className:d().heading,children:[(0,a.jsx)("h1",{className:d().title,children:n}),(0,a.jsx)("p",{className:d().subtitle,children:i}),(0,a.jsx)("div",{className:d().widgetContainer,ref:t,children:void 0!==u.availableAuthProviders&&u.availableAuthProviders.includes("ESIA")&&(0,a.jsx)(s.U,{className:d().widget,overrideLoginAction:c,serverConfig:u,config:g,baseUrl:r,s3AssetsUrl:"".concat(o,"/mp-assets")})})]}),(0,a.jsx)("div",{className:d().infoBlock,children:f.map((e,t)=>{let{icon:n,text:i}=e;return(0,a.jsxs)("div",{className:d().infoItem,children:[(0,a.jsx)("div",{className:d().iconWrapper,children:(0,a.jsx)(n,{className:d().icon,size:"24"})}),(0,a.jsx)("span",{className:d().infoText,children:i})]},t)})})]})}},88891:function(e,t,n){"use strict";n.d(t,{g:function(){return x}});var i=n(85893);n(78109);var r=n(91247),a=n(11163),s=n(67294),o=n(84444),c=n(88572),l=n(84053),u=n(54228),d=n(51469),f=n(91886),g=n(12261),h=n(71276),p=n(38090),m=n(50602),v=n.n(m);let _={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:{primaryTextOverride:"Узнать бесплатно",primaryAuthProviders:["ESIA"],variant:"secondary"}};function x(e){let{expertQuote:t,questions:n,texts:m,content:x,onNavigate:w,support:j,loginWidgetConfig:C}=e,{lkBaseUrl:y,assetsBaseUrl:b}=(0,l.ZR)(),E=(0,s.useRef)(null),{asPath:k}=(0,a.useRouter)(),[A,N]=(0,s.useState)(!1),[O,T]=(0,s.useState)(null!=t?t:void 0),S=(0,u.cb)(),I=(0,s.useMemo)(()=>({..._,serverConfig:{..._.serverConfig,...C}}),[C]),P=A&&!S&&void 0!==I.serverConfig.availableAuthProviders&&I.serverConfig.availableAuthProviders.includes("ESIA"),U=(0,g.iN)(k);(0,c._B)(c.kv.Credit);let L=n.map(e=>({...e,plainText:e.text.replace(/<[^>]+>/g,"")}));return(0,f.rf)(()=>{(0,p.r5)(U).then(T)},[U]),(0,s.useEffect)(()=>{let e=E.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.N,{title:m.meta.title,description:m.meta.description}),(0,i.jsx)(h.o,{}),(0,i.jsx)(d.g,{questions:L}),(0,i.jsx)(x,{texts:m,loginWidgetRef:E,expertQuote:O,questions:n,onSatelliteNavigate:w,support:j,loginWidgetConfig:I,lkBaseUrl:y,assetsBaseUrl:b}),P&&(0,i.jsx)("div",{className:v().widgetContainer,children:(0,i.jsx)(r.U,{overrideLoginAction:w,serverConfig:I.serverConfig,config:I.config,baseUrl:y,s3AssetsUrl:"".concat(b,"/mp-assets")})})]})}},20551:function(e){e.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},33279:function(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"}},50602:function(e){e.exports={widgetContainer:"satellite-landing_widgetContainer__HA80C"}}}]);