(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3222],{10027:(t,e,n)=>{"use strict";n.d(e,{I:()=>u});var r=n(37876),c=n(77328),o=n.n(c),a=n(89099),i=n(33126),s=n(3187);function u(t){let{title:e,description:n,productId:c}=t,{basePath:u,mainBaseUrl:l}=(0,i.UK)(),{asPath:h}=(0,a.useRouter)(),d=(0,s.m)(h);return(0,r.jsxs)(o(),{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)}),c&&(0,r.jsx)("script",{children:"dataLayer = [{\n            'view_product_id': '".concat(c,"'\n          }];")})]})}u.displayName="HeadMeta"},12771:(t,e,n)=>{"use strict";n.d(e,{x6:()=>m,zy:()=>u,ZP:()=>s,pY:()=>p,aB:()=>h,nl:()=>d,xy:()=>v,ag:()=>f,QV:()=>l,Cw:()=>i});var r=n(33126);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,e,r,c){try{var o,a;null==(o=n.g.outgoingHTTPRequestHistogram)||o.labels(t,e,void 0!==r?String(r):"unknown").observe((a=c,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 o=n(3187),a=n(63273);function i(){return"".concat((0,r.zj)().basePath,"/api")}function s(t,e){return m("".concat("".concat((0,r.zj)().creditShowcaseApiUrl,"/api/v1"),"/").concat(t),e)}function u(t,e){return m("".concat("".concat((0,r.zj)().mainApiUrl,"/money_data"),"/").concat(t),e)}function l(t,e){return m("".concat("".concat((0,r.zj)().savingsApiUrl,"/api/v1"),"/").concat(t),e)}function h(t,e){return m("".concat("".concat((0,r.zj)().mpScApiUrl,"/api/v1"),"/").concat(t),e)}function d(t,e){return m("".concat("".concat((0,r.zj)().mpScRedirectsApiUrl,"/api/v1"),"/").concat(t),e)}function v(t,e){return m("".concat("".concat((0,r.zj)().mpScSeoApiUrl,"/api/v2"),"/").concat(t),e)}function f(t,e){return m("".concat("".concat((0,r.zj)().mpScSeoRegionsApiUrl,"/api/v1/sitemap-settings"),"/").concat(t),e)}function p(t,e){return m("".concat(i(),"/").concat(t),e)}async function m(t,e){let n=await g(t,e);try{return JSON.parse(n)}catch(t){throw Error("Failed to parse JSON: ".concat(n),{cause:t})}}async function g(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 c(null!=(n=null==e?void 0:e.method)?n:"GET",(0,o.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()}}},63921:(t,e,n)=>{"use strict";n.d(e,{o:()=>a});var r=n(14232),c=n(77336),o=n(83024);function a(t,e){let[n,a]=(0,r.useState)(""),i=(0,c.v)(),s=(0,o.f3)(),{offerId:u,order:l,placement:h="",category:d}=null!=e?e:{},v=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:c,utmCampaign:o,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!==c&&t.set("utm_medium",c),void 0!==o&&t.set("utm_campaign",o),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:c,yandexUserId:o,userReturned:a}=e;void 0!==o&&t.set("t6",o),void 0!==r&&t.set("t7",r),void 0!==n&&t.set("t8",n),void 0!==c&&t.set("t9",c),void 0!==a&&t.set("cookie_ur",decodeURI(a))}(e.searchParams,s),void 0!==u&&e.searchParams.set("cms_offer_id",u),void 0!==v&&e.searchParams.set("order",v),void 0!==d&&e.searchParams.set("category",d),a(e.toString())},[t,i,s,u,v,d]),n}},73422:t=>{t.exports={withoutLogo:"footer_withoutLogo__SigHo"}},73584:(t,e,n)=>{"use strict";n.d(e,{AP:()=>c,B4:()=>r,n9:()=>o});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 c{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 o(){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:()=>s,RB:()=>y,Ru:()=>g,Vj:()=>w,ZV:()=>c,aB:()=>v,dk:()=>f,ej:()=>x,l9:()=>l,lV:()=>a,sP:()=>h,um:()=>j,up:()=>p,wf:()=>d});var r=n(89064);function c(t,e){return t.toLocaleString("ru-RU",e)}function o(t,e,n,r){return(null==r?void 0:r.withPrefixes)?"от".concat("\xa0").concat(n(t,r)," до").concat("\xa0").concat(n(e,r)):"".concat(n(t,r),"‒").concat(n(e,r))}function a(t,e){return 0===t?{to:e}:0!==e?{from:t,to:e}:{from:t}}function i(t,e,n){let{from:r,to:c}=t;return void 0===r?"до".concat("\xa0").concat(e(c,n)):void 0!==c?r<c?o(r,c,e,n):r>c?(console.warn("Invalid range format: from > to [".concat(r,", ").concat(c,"]")),o(c,r,e,n)):e(r,n):"от".concat("\xa0").concat(e(r,n))}function s(t,e){return i(t,c,e)}function u(t){return"".concat(t,"%")}function l(t,e){return u(c(t,e))}function h(t,e){return(null==e?void 0:e.withPrefixes)?i(t,l,e):u(s(t,e))}function d(t,e,n){return t>e?u(o(e,t,c,n)):u(o(t,e,c,n))}function v(t,e){let{from:n,to:c}=t;return void 0===n?"".concat(s(t,e)," ").concat((0,r.g3)(c)):void 0!==c?n<c?"".concat(s(t,e)," ").concat((0,r.g3)(c)):n>c?"".concat(s(t,e)," ").concat((0,r.g3)(n)):"".concat(s(t,e)," ").concat((0,r.g3)(c)):"".concat(s(t,e)," ").concat((0,r.g3)(n))}function f(t){return t%1!=0}function p(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{withoutCurrency:n,withEmptyPennies:r,withCompact:c}=e,o=c&&Math.abs(t)>=1e6;return new Intl.NumberFormat("ru",{...n?{style:"decimal"}:{style:"currency",currency:"RUB"},...o&&{notation:"compact"},maximumFractionDigits:2,minimumFractionDigits:2*!!r}).format(t)}function m(t){return void 0===t||""===t?0:Number(t)}function g(t,e){return a(m(t),m(e))}function w(t){return"".concat(s(t)," ₽")}function x(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=j(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=j(t);return"от ".concat(n," ").concat(e.currency).trim()}(t.from,e)}function y(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{currency:""};return"".concat(c(t)," ").concat(e.currency).trim()}function j(t){let e=String(t);if(e.length>6&&!e.includes(".")){let n=t/1e6;return e.length-String(n).length<2?c(t):"".concat(c(n)," млн")}return c(t)}},81078:(t,e,n)=>{"use strict";n.d(e,{w:()=>u});var r=n(37876),c=n(6e4),o=n(69241),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,o.A)(e,{[s().withoutLogo]:u}),children:(0,r.jsx)(c.w,{data:n,showcaseUrl:l.mainBaseUrl,variant:i})})}},89064:(t,e,n)=>{"use strict";n.d(e,{U9:()=>o,UB:()=>h,ZJ:()=>l,d2:()=>u,g3:()=>s,td:()=>i,vo:()=>d});var r=n(79807);let c=new Intl.PluralRules("ru-RU");var o=function(t){return t.ONE="месяц",t.FEW="месяца",t.MANY="месяцев",t}({});function a(t,e,n,r){return({one:e,few:n,many:r})[c.select(t)]}function i(t,e,n,c){return(0,r.dk)(t)?n:a(t,e,n,c)}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,"год","года","лет")}}}]);