(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1326],{10027:(t,e,n)=>{"use strict";n.d(e,{I:()=>u});var r=n(37876),o=n(77328),c=n.n(o),a=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,a.useRouter)(),d=(0,s.m)(h);return(0,r.jsxs)(c(),{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(d)}),(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(d)}),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:()=>f,zy:()=>u,ZP:()=>s,pY:()=>d,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 c,a;null==(c=n.g.outgoingHTTPRequestHistogram)||c.labels(t,e,void 0!==r?String(r):"unknown").observe((a=o,performance.now()-a))}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 c=n(3187),a=n(63273);function i(){return"".concat((0,r.zj)().basePath,"/api")}function s(t,e){return f("".concat("".concat((0,r.zj)().creditShowcaseApiUrl,"/api/v1"),"/").concat(t),e)}function u(t,e){return f("".concat("".concat((0,r.zj)().mainApiUrl,"/money_data"),"/").concat(t),e)}function l(t,e){return f("".concat("".concat((0,r.zj)().savingsApiUrl,"/api/v1"),"/").concat(t),e)}function h(t,e){return f("".concat("".concat((0,r.zj)().mpScApiUrl,"/api/v1"),"/").concat(t),e)}function d(t,e){return f("".concat(i(),"/").concat(t),e)}async function f(t,e){let n=await m(t,e);try{return JSON.parse(n)}catch(t){throw Error("Failed to parse JSON: ".concat(n),{cause:t})}}async function m(t,e){var n;(0,a.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,a.WG)("".concat(s,":").concat(u))));let l=new o(null!=(n=null==e?void 0:e.method)?n:"GET",(0,c.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),c=n(53934),a=n.n(c);let i=t=>{let{children:e,className:n}=t;return(0,r.jsx)("div",{className:(0,o.A)(a().mainContainer,n),children:e})}},28131:(t,e,n)=>{"use strict";function r(t){return t instanceof Error?t.message:"Unknown error"}n.d(e,{m_:()=>o,u1:()=>r});class o extends Error{}},53934:t=>{t.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},63921:(t,e,n)=>{"use strict";n.d(e,{o:()=>a});var r=n(14232),o=n(77336),c=n(83024);function a(t,e){let[n,a]=(0,r.useState)(""),i=(0,o.v)(),s=(0,c.f3)(),{offerId:u,order:l,placement:h="",category:d}=null!=e?e:{},f=void 0!==l?"".concat(h).concat(l+1):void 0;return(0,r.useEffect)(()=>{let e=new URL(t);(function(t,e){let{pathname:n,utmSource:r,utmMedium:o,utmCampaign:c,utmTerm:a,utmContent:i,clickId:s,yandexClickId:u}=e;void 0!==n&&t.set("page_path",n),void 0!==r&&t.set("utm_source",r),void 0!==o&&t.set("utm_medium",o),void 0!==c&&t.set("utm_campaign",c),void 0!==a&&t.set("utm_term",a),void 0!==i&&t.set("utm_content",i),void 0!==s&&t.set("ext_id",s),void 0!==u&&t.set("yclid",u)})(e.searchParams,i),function(t,e){let{browserId:n,sessionId:r,customerId:o,yandexUserId:c,userReturned:a}=e;void 0!==c&&t.set("t6",c),void 0!==r&&t.set("t7",r),void 0!==n&&t.set("t8",n),void 0!==o&&t.set("t9",o),void 0!==a&&t.set("cookie_ur",a)}(e.searchParams,s),void 0!==u&&e.searchParams.set("cms_offer_id",u),void 0!==f&&e.searchParams.set("order",f),void 0!==d&&e.searchParams.set("category",d),a(e.toString())},[t,i,s,u,f,d]),n}},73422:t=>{t.exports={withoutLogo:"footer_withoutLogo__SigHo"}},73584:(t,e,n)=>{"use strict";n.d(e,{AP:()=>o,B4:()=>r,n9:()=>c});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}}function c(){let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+1,0,0,0,0).getTime()}},79807:(t,e,n)=>{"use strict";n.d(e,{Qd:()=>a,RB:()=>g,Vj:()=>v,ZV:()=>o,aB:()=>l,dk:()=>h,ej:()=>p,jC:()=>m,sP:()=>s,um:()=>w,up:()=>d,wf:()=>u});var r=n(89064);function o(t,e){return t.toLocaleString("ru-RU",e)}function c(t,e,n){return"".concat(o(t,n),"‒").concat(o(e,n))}function a(t,e,n){if(t<e)return t>0?c(t,e,n):"до ".concat(o(e,n));if(t>e)return e>0?(console.warn("Invalid range format: from > to [".concat(t,", ").concat(e,"]")),c(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(a(t,e,n))}function u(t,e,n){return t>e&&i(c(e,t,n)),i(c(t,e,n))}function l(t,e,n){return t<e?"".concat(a(e,t,n)," ").concat((0,r.g3)(e)):t>e?"".concat(a(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 d(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{withoutCurrency:n,withEmptyPennies:r,withCompact:o}=e,c=o&&Math.abs(t)>=1e6;return new Intl.NumberFormat("ru",{...n?{style:"decimal"}:{style:"currency",currency:"RUB"},...c&&{notation:"compact"},maximumFractionDigits:2,minimumFractionDigits:2*!!r}).format(t)}function f(t){return void 0===t||""===t?0:Number(t)}function m(t,e){return"".concat(a(f(t),f(e))," ₽")}function v(t,e){return"".concat(a(t,e)," ₽")}function p(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=w(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=w(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 w(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),c=n(49995),a=n(33126),i=n(73422),s=n.n(i);function u(t){let{className:e,data:n,variant:i,withoutLogo:u}=t,l=(0,a.UK)();return(0,r.jsx)("div",{className:(0,c.A)(e,{[s().withoutLogo]:u}),children:(0,r.jsx)(o.F,{data:n,showcaseUrl:l.mainBaseUrl,variant:i})})}},89064:(t,e,n)=>{"use strict";n.d(e,{U9:()=>c,UB:()=>h,ZJ:()=>l,d2:()=>u,g3:()=>s,td:()=>i,vo:()=>d});var r=n(79807);let o=new Intl.PluralRules("ru-RU");var c=function(t){return t.ONE="месяц",t.FEW="месяца",t.MANY="месяцев",t}({});function a(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:a(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:a(t,e,n,n)}function h(t){return i(t,"месяц","месяца","месяцев")}function d(t){return i(t,"год","года","лет")}}}]);