(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1911],{84444:function(t,n,e){"use strict";e.d(n,{N:function(){return s}});var r=e(85893),c=e(9008),o=e.n(c),i=e(11163),u=e(84053),a=e(12261);function s(t){let{title:n,description:e,productId:c}=t,{basePath:s,mainBaseUrl:l}=(0,u.ZR)(),{asPath:f}=(0,i.useRouter)(),h=(0,a.iN)(f);return(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:n}),(0,r.jsx)("meta",{name:"description",content:e}),(0,r.jsx)("meta",{property:"og:title",content:n}),(0,r.jsx)("meta",{property:"og:description",content:e}),(0,r.jsx)("meta",{property:"og:site_name",content:"Финуслуги"}),(0,r.jsx)("meta",{property:"og:image",content:"".concat(s,"/icons/favicon-32x32.png")}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:url",content:"".concat(l).concat(h)}),(0,r.jsx)("link",{rel:"icon",href:"".concat(s,"/icons/favicon-32x32.png")}),(0,r.jsx)("link",{rel:"manifest",href:"".concat(s,"/manifest.json"),type:"application/manifest+json"}),(0,r.jsx)("link",{rel:"canonical",href:"".concat(l).concat(h)}),c&&(0,r.jsx)("script",{children:"dataLayer = [{\n            'view_product_id': '".concat(c,"'\n          }];")})]})}s.displayName="HeadMeta"},19438:function(t,n,e){"use strict";e.d(n,{t:function(){return u}});var r=e(85893),c=e(86010),o=e(20551),i=e.n(o);let u=t=>{let{children:n,className:e}=t;return(0,r.jsx)("div",{className:(0,c.Z)(i().mainContainer,e),children:n})}},41262:function(t,n,e){"use strict";e.d(n,{H3:function(){return o},S_:function(){return c},ZI:function(){return u},yr:function(){return i}});var r=e(6584);function c(t){return i(t,()=>"мес")}function o(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"".concat(t," ").concat(n?"мес":(0,r.uG)(t))}function i(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.uG,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Lk,c=Math.floor(t/12);if(0===c)return"".concat(t," ").concat(n(t));let o=t%12;return 0===o?"".concat(c," ").concat(e(c)):"".concat(c," ").concat(e(c)," ").concat(o," ").concat(n(o))}function u(t,n){return 0===t?i(n):0===n?i(t):"".concat(i(t)," – ").concat(i(n))}},6584:function(t,n,e){"use strict";e.d(n,{Lk:function(){return d},MB:function(){return s},SO:function(){return l},SV:function(){return f},_6:function(){return a},mp:function(){return c},uG:function(){return h}});var r,c,o=e(94466);let i=new Intl.PluralRules("ru-RU");function u(t,n,e,r){return({one:n,few:e,many:r})[i.select(t)]}function a(t,n,e,r){return(0,o.Q7)(t)?e:u(t,n,e,r)}function s(t){return a(t,"день","дня","дней")}function l(t){return"до ".concat(t," ").concat(f(t))}function f(t){var n,e;return n="дня",e="дней",(0,o.Q7)(t)?n:u(t,n,e,e)}function h(t){return a(t,"месяц","месяца","месяцев")}function d(t){return a(t,"год","года","лет")}(r=c||(c={})).ONE="месяц",r.FEW="месяца",r.MANY="месяцев"},65709:function(t,n,e){"use strict";e.d(n,{rd:function(){return h},$u:function(){return a},m6:function(){return f},C8:function(){return l},vD:function(){return s},kc:function(){return u}});var r=e(84053);class c{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,n,r,c){try{var o;null===(o=e.g.outgoingHTTPRequestHistogram)||void 0===o||o.labels(t,n,void 0!==r?String(r):"unknown").observe(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,n){this.method=t,this.url=n}}var o=e(12261),i=e(60600);function u(){return"".concat((0,r.iE)().basePath,"/api")}function a(t,n){return h("".concat("".concat((0,r.iE)().mainApiUrl,"/money_data"),"/").concat(t),n)}function s(t,n){return h("".concat("".concat((0,r.iE)().savingsApiUrl,"/api/v1"),"/").concat(t),n)}function l(t,n){return h("".concat("".concat((0,r.iE)().mpScApiUrl,"/api/v1"),"/").concat(t),n)}function f(t,n){return h("".concat(u(),"/").concat(t),n)}async function h(t,n){let e=await d(t,n);try{return JSON.parse(e)}catch(t){throw Error("Failed to parse JSON: ".concat(e),{cause:t})}}async function d(t,n){var e;(0,i.C5)()||console.debug("Fetch data: ".concat(t));let u={},a=(0,r.iE)().apiUsername,s=(0,r.iE)().apiPassword;a&&s&&(u.Authorization="Basic ".concat((0,i.oF)("".concat(a,":").concat(s))));let l=new c(null!==(e=null==n?void 0:n.method)&&void 0!==e?e:"GET",(0,o.iN)(t));try{l.start();let e=await fetch(t,{...n,headers:{...u,...null==n?void 0:n.headers}});if(l.setStatus(e.status),!e.ok)throw Error("Response wasn't OK. The response status code is ".concat(e.status));return await e.text()}catch(n){throw Error("Failed to fetch data: ".concat(t),{cause:n})}finally{l.observe()}}},32368:function(t,n,e){"use strict";e.d(n,{$:function(){return r},n:function(){return c}});class r{getOrUpdate(){var t;return null!==(t=this.get())&&void 0!==t?t:this.update()}get(){if(this.expires>Date.now())return this.value}update(){let t=this.getValue();return this.value=t,this.expires=Date.now()+this.duration,t}constructor(t,n){this.expires=0,this.getValue=t,this.duration=null!=n?n:3e5}}class c{getOrUpdate(t,n){var e;return null!==(e=this.get(t))&&void 0!==e?e:this.update(t,n)}get(t){var n;if((null!==(n=this.expires.get(t))&&void 0!==n?n:0)>Date.now())return this.values.get(t)}update(t,n){this.clear();let e=this.getValue(n);return this.values.set(t,e),this.expires.set(t,Date.now()+this.duration),e}clear(){let t=Date.now();this.expires.forEach((n,e)=>{n<t&&(this.values.delete(e),this.expires.delete(e))})}constructor(t,n){this.values=new Map,this.expires=new Map,this.getValue=t,this.duration=null!=n?n:3e5}}},94466:function(t,n,e){"use strict";e.d(n,{D$:function(){return x},Q7:function(){return f},bc:function(){return p},dN:function(){return g},gt:function(){return l},lM:function(){return v},lb:function(){return h},po:function(){return s},qO:function(){return m},sz:function(){return a},uf:function(){return c},z1:function(){return i}});var r=e(6584);function c(t,n){return t.toLocaleString("ru-RU",n)}function o(t,n,e){return"".concat(c(t,e)," ‒ ").concat(c(n,e))}function i(t,n,e){if(t<n)return t>0?o(t,n,e):"до ".concat(c(n,e));if(t>n)return n>0?(console.warn("Invalid range format: from > to [".concat(t,", ").concat(n,"]")),o(n,t,e)):"от ".concat(c(t,e));if(t===n)return c(t,e);throw Error("Invalid range format: endpoints are not compared [".concat(t,", ").concat(n,"]"))}function u(t){return"".concat(t,"%")}function a(t,n,e){return u(i(t,n,e))}function s(t,n,e){return t>n&&u(o(n,t,e)),u(o(t,n,e))}function l(t,n,e){return t<n?"".concat(i(n,t,e)," ").concat((0,r.MB)(n)):t>n?"".concat(i(n,t,e)," ").concat((0,r.MB)(t)):"".concat(c(t,e)," ").concat((0,r.MB)(t))}function f(t){return t%1!=0}function h(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Intl.NumberFormat("ru",{...!n.withoutCurrency&&{style:"currency",currency:"RUB"},maximumFractionDigits:2,minimumFractionDigits:n.withEmptyPennies?2:0}).format(t)}function d(t){return void 0===t||""===t?0:Number(t)}function p(t,n){return"".concat(i(d(t),d(n))," ₽")}function m(t,n){return"".concat(i(t,n)," ₽")}function g(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{currency:""};return t.to>0?function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{currency:""},e=x(t);return"до ".concat(e," ").concat(n.currency).trim()}(t.to,n):function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{currency:""},e=x(t);return"от ".concat(e," ").concat(n.currency).trim()}(t.from,n)}function v(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{currency:""};return"".concat(c(t)," ").concat(n.currency).trim()}function x(t){let n=String(t);if(n.length>6&&!n.includes(".")){let e=t/1e6;return n.length-String(e).length<2?c(t):"".concat(c(e)," млн")}return c(t)}},51138:function(t,n,e){"use strict";e.d(n,{SM:function(){return c}});var r=e(65709);function c(){return(0,r.m6)("banks")}async function o(){return(await (0,r.$u)("Fk.json")).banks.reduce((t,n)=>("1"!==n.archive&&"0"!==n.public&&t.push(function(t){let{id:n,name:e,name_r:r,name_p:c,logo_mob:o,short_description:i,url:u,region_ids:a,legal_entities:s,bic:l,credit_rating:f,net_profit_rating:h,ratings:d,site_title:p,site_url:m,phone:g}=t,v={id:n,name:e,name_r:r,name_p:c,logo_mob:o,short_description:i,url:u,region_ids:a,legal_entities:s,bic:l,credit_rating:f,net_profit_rating:h,ratings:d,site:{title:p,url:m}};return null!==g&&g.length>0&&(v.phone=g),v}(n)),t),[]).sort((t,n)=>t.name.localeCompare(n.name))}new(e(32368)).$(o)},51191:function(t,n,e){"use strict";e.d(n,{f:function(){return c}});var r=e(65709);async function c(){return o.getOrUpdate()}let o=new(e(32368)).$(i);async function i(){return(await (0,r.C8)("data/page-data?scLayoutName=PageFooter&scPageUrl=homepage")).value}},94718:function(t,n,e){"use strict";e.d(n,{$:function(){return i}});var r=e(85893),c=e(16817),o=e(84053);function i(t){let{className:n,data:e,variant:i}=t,u=(0,o.ZR)();return(0,r.jsx)("div",{className:n,children:(0,r.jsx)(c.$,{data:e,showcaseUrl:u.mainBaseUrl,variant:i})})}},98028:function(t,n,e){"use strict";e.d(n,{J:function(){return f},L:function(){return l}});var r=e(85893),c=e(59194),o=e(34588),i=e(86010),u=e(56790),a=e(43938),s=e.n(a);function l(t){let{className:n}=t;return(0,r.jsx)(c.IconFdsQuestionCircleO,{className:(0,i.Z)(s().triggerContent,n)})}function f(t){let{children:n,triggerClassName:e,content:c,placement:a="bottom-start"}=t;return(0,r.jsxs)(o.Lt,{placement:a,children:[(0,r.jsx)(o.WA,{className:(0,i.Z)(s().trigger,e),children:null!=n?n:(0,r.jsx)(l,{})}),(0,r.jsx)(u.h,{children:(0,r.jsx)("div",{className:s().contentWrapper,children:(0,r.jsx)(o.Nv,{className:s().content,children:"string"==typeof c?(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:c}}):c})})})]})}f.displayName="Popover"},20551:function(t){t.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},43938:function(t){t.exports={trigger:"Popover_trigger__8ZXEq",triggerContent:"Popover_triggerContent__yEQbS",contentWrapper:"Popover_contentWrapper__Cse_e",content:"Popover_content__QQDR1"}}}]);