(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{10027:(t,e,n)=>{"use strict";n.d(e,{I:()=>u});var r=n(37876),o=n(77328),a=n.n(o),c=n(89099),i=n(33126),s=n(3187);function u(t){let{title:e,description:n,productId:o}=t,{basePath:u,mainBaseUrl:l}=(0,i.UK)(),{asPath:h}=(0,c.useRouter)(),p=(0,s.m)(h);return(0,r.jsxs)(a(),{children:[(0,r.jsx)("title",{children:e}),(0,r.jsx)("meta",{name:"description",content:n}),(0,r.jsx)("meta",{property:"og:title",content:e}),(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(u,"/icons/favicon-32x32.png")}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:url",content:"".concat(l).concat(p)}),(0,r.jsx)("link",{rel:"icon",href:"".concat(u,"/icons/favicon-32x32.png")}),(0,r.jsx)("link",{rel:"manifest",href:"".concat(u,"/manifest.json"),type:"application/manifest+json"}),(0,r.jsx)("link",{rel:"canonical",href:"".concat(l).concat(p)}),o&&(0,r.jsx)("script",{children:"dataLayer = [{\n            'view_product_id': '".concat(o,"'\n          }];")})]})}u.displayName="HeadMeta"},12771:(t,e,n)=>{"use strict";n.d(e,{x6:()=>d,zy:()=>u,ZP:()=>s,pY:()=>p,aB:()=>h,QV:()=>l,Cw:()=>i});var r=n(33126);class o{start(){this.startTime=performance.now()}setStatus(t){this.status=t}observe(){if(!this.startTime)throw Error("Prometheus metric of outgoing request is not observed: startTime is not defined");!function(t,e,r,o){try{var a,c;null==(a=n.g.outgoingHTTPRequestHistogram)||a.labels(t,e,void 0!==r?String(r):"unknown").observe((c=o,performance.now()-c))}catch(t){console.warn("Prometheus metric of outgoing request is not observed:",t)}}(this.method,this.url,this.status,this.startTime)}constructor(t,e){this.method=t,this.url=e}}var a=n(3187),c=n(63273);function i(){return"".concat((0,r.zj)().basePath,"/api")}function s(t,e){return d("".concat("".concat((0,r.zj)().creditShowcaseApiUrl,"/api/v1"),"/").concat(t),e)}function u(t,e){return d("".concat("".concat((0,r.zj)().mainApiUrl,"/money_data"),"/").concat(t),e)}function l(t,e){return d("".concat("".concat((0,r.zj)().savingsApiUrl,"/api/v1"),"/").concat(t),e)}function h(t,e){return d("".concat("".concat((0,r.zj)().mpScApiUrl,"/api/v1"),"/").concat(t),e)}function p(t,e){return d("".concat(i(),"/").concat(t),e)}async function d(t,e){let n=await f(t,e);try{return JSON.parse(n)}catch(t){throw Error("Failed to parse JSON: ".concat(n),{cause:t})}}async function f(t,e){var n;(0,c.oc)()||console.debug("Fetch data: ".concat(t));let i={},s=(0,r.zj)().apiUsername,u=(0,r.zj)().apiPassword;s&&u&&(i.Authorization="Basic ".concat((0,c.WG)("".concat(s,":").concat(u))));let l=new o(null!=(n=null==e?void 0:e.method)?n:"GET",(0,a.m)(t));try{l.start();let n=await fetch(t,{...e,headers:{...i,...null==e?void 0:e.headers}});if(l.setStatus(n.status),!n.ok)throw Error("Response wasn't OK. The response status code is ".concat(n.status));return await n.text()}catch(e){throw Error("Failed to fetch data: ".concat(t),{cause:e})}finally{l.observe()}}},16891:(t,e,n)=>{"use strict";n.d(e,{J:()=>i});var r=n(37876),o=n(49995),a=n(53934),c=n.n(a);let i=t=>{let{children:e,className:n}=t;return(0,r.jsx)("div",{className:(0,o.A)(c().mainContainer,n),children:e})}},31257:(t,e,n)=>{"use strict";n.d(e,{_:()=>c,y:()=>a});var r=n(91063),o=n(87087),a=function(t){return t.link="link",t.button="button",t.popup="popup",t.popdown="popdown",t.filterCatalog="filter_catalog",t.utm="utm",t.banner="banner",t.noOffers="no_offers",t}({});let c=t=>{let{eventCategory:e,eventAction:n,eventActionText:a="",eventLabel:c,eventValue:i,url:s}=t,u="boolean"==typeof i?i?"on":"off":i,l="filter_catalog"!==n?/[а-я]/i.test(a.toLowerCase()):"string"!=typeof c||/[а-я]/i.test(c.toLowerCase()),h="filter_catalog"!==n?{event:"data-event",eventCategory:null!=e?e:"",eventAction:({link:"click_link_",button:"click_button_",popup:"show_pop_up_",popdown:"close_pop_up_",utm:"save_utm",banner:"click_banner",no_offers:"no_offers_to_show"})[n]+(0,o.y)(a.toLowerCase().replaceAll(" ","_")),eventLabel:c,eventValue:u,url:s}:{event:"data-event",eventAction:null!=e?e:"",eventCategory:n,eventLabel:"string"==typeof c?l?c:(0,o.y)(c):c,eventValue:u,url:s};(0,r.o)(h)}},37105:(t,e,n)=>{"use strict";n.d(e,{h:()=>r});var r=function(t){return t.POTREBITELSKIE="potrebitelskie_kredity",t.KARTY="kreditnye_karty",t.MICROZAJMY="mikrozajmy",t.AUTOCREDIT="avtokredity",t.IPOTEKA="ipoteka",t.CALCULATOR="kreditniy_kalkulyator",t}({})},53934:t=>{t.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},73422:t=>{t.exports={withoutLogo:"footer_withoutLogo__SigHo"}},73584:(t,e,n)=>{"use strict";n.d(e,{A:()=>o,B:()=>r});class r{getOrUpdate(t){var e;return null!=(e=this.get())?e:this.update(t)}get(){if(this.expires>Date.now())return this.value}update(t){let e=this.getValue(t),n=this.value;return(this.expires=Date.now()+this.duration,void 0!==n)?(e.then(t=>{this.value=Promise.resolve(t)}).catch(()=>{this.expires=Date.now()+this.duration}),n):(e.catch(()=>{this.value=void 0,this.expires=0}),this.value=e,e)}constructor(t,e){this.expires=0,this.getValue=t,this.duration=null!=e?e:3e5}}class o{getOrUpdate(t,e){var n;return null!=(n=this.get(t))?n:this.update(t,e)}get(t){var e;if((null!=(e=this.expires.get(t))?e:0)>Date.now())return this.values.get(t)}update(t,e){let n=this.getValue(e),r=this.values.get(t);return(this.expires.set(t,Date.now()+this.duration),this.clear(),void 0!==r)?(n.then(e=>{this.values.set(t,Promise.resolve(e))}).catch(()=>{this.expires.set(t,Date.now()+this.duration)}),r):(n.catch(()=>{this.values.delete(t),this.expires.delete(t)}),this.values.set(t,n),n)}clear(){let t=Date.now();this.expires.forEach((e,n)=>{e<t&&(this.values.delete(n),this.expires.delete(n))})}constructor(t,e){this.values=new Map,this.expires=new Map,this.getValue=t,this.duration=null!=e?e:3e5}}},79807:(t,e,n)=>{"use strict";n.d(e,{Qd:()=>c,RB:()=>g,Vj:()=>v,ZV:()=>o,aB:()=>l,dk:()=>h,ej:()=>m,jC:()=>f,sP:()=>s,um:()=>y,up:()=>p,wf:()=>u});var r=n(89064);function o(t,e){return t.toLocaleString("ru-RU",e)}function a(t,e,n){return"".concat(o(t,n)," ‒ ").concat(o(e,n))}function c(t,e,n){if(t<e)return t>0?a(t,e,n):"до ".concat(o(e,n));if(t>e)return e>0?(console.warn("Invalid range format: from > to [".concat(t,", ").concat(e,"]")),a(e,t,n)):"от ".concat(o(t,n));if(t===e)return o(t,n);throw Error("Invalid range format: endpoints are not compared [".concat(t,", ").concat(e,"]"))}function i(t){return"".concat(t,"%")}function s(t,e,n){return i(c(t,e,n))}function u(t,e,n){return t>e&&i(a(e,t,n)),i(a(t,e,n))}function l(t,e,n){return t<e?"".concat(c(e,t,n)," ").concat((0,r.g3)(e)):t>e?"".concat(c(e,t,n)," ").concat((0,r.g3)(t)):"".concat(o(t,n)," ").concat((0,r.g3)(t))}function h(t){return t%1!=0}function p(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{withoutCurrency:n,withEmptyPennies:r,withCompact:o}=e,a=o&&Math.abs(t)>=1e6;return new Intl.NumberFormat("ru",{...n?{style:"decimal"}:{style:"currency",currency:"RUB"},...a&&{notation:"compact"},maximumFractionDigits:2,minimumFractionDigits:2*!!r}).format(t)}function d(t){return void 0===t||""===t?0:Number(t)}function f(t,e){return"".concat(c(d(t),d(e))," ₽")}function v(t,e){return"".concat(c(t,e)," ₽")}function m(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{currency:""};return t.to>0?function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{currency:""},n=y(t);return"до ".concat(n," ").concat(e.currency).trim()}(t.to,e):function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{currency:""},n=y(t);return"от ".concat(n," ").concat(e.currency).trim()}(t.from,e)}function g(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{currency:""};return"".concat(o(t)," ").concat(e.currency).trim()}function y(t){let e=String(t);if(e.length>6&&!e.includes(".")){let n=t/1e6;return e.length-String(n).length<2?o(t):"".concat(o(n)," млн")}return o(t)}},81078:(t,e,n)=>{"use strict";n.d(e,{w:()=>u});var r=n(37876),o=n(47429),a=n(49995),c=n(33126),i=n(73422),s=n.n(i);function u(t){let{className:e,data:n,variant:i,withoutLogo:u}=t,l=(0,c.UK)();return(0,r.jsx)("div",{className:(0,a.A)(e,{[s().withoutLogo]:u}),children:(0,r.jsx)(o.F,{data:n,showcaseUrl:l.mainBaseUrl,variant:i})})}},87087:(t,e,n)=>{"use strict";n.d(e,{y:()=>o});let r={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},o=t=>t.replace(/[а-яё]/gi,t=>{let e=t.toLowerCase();if(e in r){let n=r[e];return e===t?n:n.charAt(0).toUpperCase()+n.slice(1)}return t})},89064:(t,e,n)=>{"use strict";n.d(e,{U9:()=>a,UB:()=>h,ZJ:()=>l,d2:()=>u,g3:()=>s,td:()=>i,vo:()=>p});var r=n(79807);let o=new Intl.PluralRules("ru-RU");var a=function(t){return t.ONE="месяц",t.FEW="месяца",t.MANY="месяцев",t}({});function c(t,e,n,r){return({one:e,few:n,many:r})[o.select(t)]}function i(t,e,n,o){return(0,r.dk)(t)?n:c(t,e,n,o)}function s(t){return i(t,"день","дня","дней")}function u(t){return"до ".concat(t," ").concat(l(t))}function l(t){var e,n;return e="дня",n="дней",(0,r.dk)(t)?e:c(t,e,n,n)}function h(t){return i(t,"месяц","месяца","месяцев")}function p(t){return i(t,"год","года","лет")}},91063:(t,e,n)=>{"use strict";n.d(e,{o:()=>o});var r=n(35656);function o(t){t.eventAction&&(t.eventAction=t.eventAction.toLowerCase().replaceAll(" ","_")),t.eventLabel&&"string"==typeof t.eventLabel&&(t.eventLabel=t.eventLabel.toLowerCase().replaceAll(" ","_")),(0,r.Fj)(t)}}}]);