(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2436],{10027:(t,e,n)=>{"use strict";n.d(e,{I:()=>u});var r=n(37876),o=n(77328),a=n.n(o),i=n(89099),c=n(33126),s=n(3187);function u(t){let{title:e,description:n,productId:o}=t,{basePath:u,mainBaseUrl:l}=(0,c.UK)(),{asPath:d}=(0,i.useRouter)(),m=(0,s.m)(d);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(m)}),(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(m)}),o&&(0,r.jsx)("script",{children:"dataLayer = [{\n            'view_product_id': '".concat(o,"'\n          }];")})]})}u.displayName="HeadMeta"},10280:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(12771);async function o(){return a.getOrUpdate()}let a=new(n(73584)).B(i);async function i(){return(await (0,r.aB)("data/page-data?scLayoutName=PageFooter&scPageUrl=homepage")).value}},12771:(t,e,n)=>{"use strict";n.d(e,{x6:()=>m,zy:()=>s,pY:()=>d,aB:()=>l,QV:()=>u,Cw:()=>c});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,i;null==(a=n.g.outgoingHTTPRequestHistogram)||a.labels(t,e,void 0!==r?String(r):"unknown").observe((i=o,performance.now()-i))}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),i=n(63273);function c(){return"".concat((0,r.zj)().basePath,"/api")}function s(t,e){return m("".concat("".concat((0,r.zj)().mainApiUrl,"/money_data"),"/").concat(t),e)}function u(t,e){return m("".concat("".concat((0,r.zj)().savingsApiUrl,"/api/v1"),"/").concat(t),e)}function l(t,e){return m("".concat("".concat((0,r.zj)().mpScApiUrl,"/api/v1"),"/").concat(t),e)}function d(t,e){return m("".concat(c(),"/").concat(t),e)}async function m(t,e){let n=await h(t,e);try{return JSON.parse(n)}catch(t){throw Error("Failed to parse JSON: ".concat(n),{cause:t})}}async function h(t,e){var n;(0,i.oc)()||console.debug("Fetch data: ".concat(t));let c={},s=(0,r.zj)().apiUsername,u=(0,r.zj)().apiPassword;s&&u&&(c.Authorization="Basic ".concat((0,i.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:{...c,...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:()=>c});var r=n(37876),o=n(49995),a=n(53934),i=n.n(a);let c=t=>{let{children:e,className:n}=t;return(0,r.jsx)("div",{className:(0,o.A)(i().mainContainer,n),children:e})}},25334:(t,e,n)=>{"use strict";n.d(e,{i:()=>a,p:()=>r});var r=function(t){return t[t.First=6]="First",t[t.Second=15]="Second",t[t.Third=30]="Third",t[t.Forth=50]="Forth",t.Last="last",t.Uncommercial="uncommercial",t}({});let o=[6,15,30,50];function a(t,e){if(e)return"uncommercial";for(let e of o)if(t<=e)return e;return"last"}},27411:(t,e,n)=>{"use strict";n.d(e,{GD:()=>i});var r=n(33126),o=n(25334);let a={[o.p.First]:{min:470,max:498},[o.p.Second]:{min:470,max:485},[o.p.Third]:{min:460,max:475},[o.p.Forth]:{min:450,max:470},[o.p.Last]:{min:450,max:450},[o.p.Uncommercial]:{min:430,max:450}};function i(t,e){let n=(0,r.zj)().serverDate,o=function(t){let e=5381;for(let n=0;n<t.length;n++)e=(e<<5)+e+t.charCodeAt(n);return Math.abs(e)}("".concat(n.getUTCDay()).concat(n.getUTCMonth()).concat(n.getUTCFullYear()).concat(t)),i=a[e];return i.min+o%(i.max-i.min+1)}},31257:(t,e,n)=>{"use strict";n.d(e,{_:()=>i,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 i=t=>{let{eventCategory:e,eventAction:n,eventActionText:a="",eventLabel:i,eventValue:c,url:s}=t,u="boolean"==typeof c?c?"on":"off":c,l="filter_catalog"!==n?/[а-я]/i.test(a.toLowerCase()):"string"!=typeof i||/[а-я]/i.test(i.toLowerCase()),d="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:i,eventValue:u,url:s}:{event:"data-event",eventAction:null!=e?e:"",eventCategory:n,eventLabel:"string"==typeof i?l?i:(0,o.y)(i):i,eventValue:u,url:s};(0,r.o)(d)}},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}({})},53049:t=>{t.exports={value:"microloan-approval-status-mobile_value__1jYdA"}},53934:t=>{t.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},63921:(t,e,n)=>{"use strict";n.d(e,{o:()=>i});var r=n(14232),o=n(77336),a=n(83024);function i(t,e){let[n,i]=(0,r.useState)(""),c=(0,o.v)(),s=(0,a.f3)(),{offerId:u,order:l,placement:d="",category:m}=null!=e?e:{},h=void 0!==l?"".concat(d).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:a,utmTerm:i,utmContent:c,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!==a&&t.set("utm_campaign",a),void 0!==i&&t.set("utm_term",i),void 0!==c&&t.set("utm_content",c),void 0!==s&&t.set("ext_id",s),void 0!==u&&t.set("yclid",u)})(e.searchParams,c),function(t,e){let{browserId:n,sessionId:r,customerId:o,yandexUserId:a,userReturned:i}=e;void 0!==a&&t.set("t6",a),void 0!==r&&t.set("t7",r),void 0!==n&&t.set("t8",n),void 0!==o&&t.set("t9",o),void 0!==i&&t.set("cookie_ur",i)}(e.searchParams,s),void 0!==u&&e.searchParams.set("cms_offer_id",u),void 0!==h&&e.searchParams.set("order",h),void 0!==m&&e.searchParams.set("category",m),i(e.toString())},[t,c,s,u,h,m]),n}},66547:(t,e,n)=>{"use strict";n.d(e,{Q:()=>o,y:()=>i});var r=n(25334),o=function(t){return t.Low="low",t.Medium="medium",t.High="high",t.VeryHigh="very-high",t}({});let a={[r.p.First]:[{minRating:490,status:"high"},{minRating:480,status:"very-high"},{minRating:0,status:"high"}],[r.p.Second]:[{minRating:482,status:"medium"},{minRating:472,status:"high"},{minRating:0,status:"medium"}],[r.p.Third]:[{minRating:465,status:"high"},{minRating:0,status:"medium"}],[r.p.Forth]:[{minRating:0,status:"medium"}],[r.p.Last]:[{minRating:0,status:"medium"}],[r.p.Uncommercial]:[{minRating:440,status:"medium"},{minRating:0,status:"low"}]};function i(t,e){for(let{minRating:n,status:r}of a[t])if(e>=n)return r;throw Error("Dead code branch")}},66789:(t,e,n)=>{"use strict";n.d(e,{K:()=>s});var r=n(37876),o=n(49995),a=n(66547),i=n(83735),c=n.n(i);function s(t){let{className:e,status:n}=t,a=u[n];return(0,r.jsx)("div",{className:(0,o.A)(e,c().container),style:{"--background-color":a.backgroundColor,"--border-color":a.borderColor,"--text-color":a.textColor},children:a.text})}let u={[a.Q.Low]:{backgroundColor:"#FFDDDE",borderColor:"#FFCDCE",textColor:"#FF0508",text:"Низкое одобрение"},[a.Q.Medium]:{backgroundColor:"#FFF1B6",borderColor:"#FEE5CD",textColor:"#FA7C07",text:"Среднее одобрение"},[a.Q.High]:{backgroundColor:"#EBFFEF",borderColor:"#DBF3DF",textColor:"#49C55D",text:"Высокое одобрение"},[a.Q.VeryHigh]:{backgroundColor:"#DBF3DF",borderColor:"#B6E8BE",textColor:"#3A9E4A",text:"Очень высокое одобрение"}}},73584:(t,e,n)=>{"use strict";n.d(e,{A:()=>o,B:()=>r});class r{getOrUpdate(){var t;return null!=(t=this.get())?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,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){this.clear();let n=this.getValue(e);return this.values.set(t,n),this.expires.set(t,Date.now()+this.duration),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:()=>i,RB:()=>g,Vj:()=>p,ZV:()=>o,aB:()=>l,dk:()=>d,ej:()=>v,jC:()=>f,sP:()=>s,um:()=>y,up:()=>m,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 i(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 c(t){return"".concat(t,"%")}function s(t,e,n){return c(i(t,e,n))}function u(t,e,n){return t>e&&c(a(e,t,n)),c(a(t,e,n))}function l(t,e,n){return t<e?"".concat(i(e,t,n)," ").concat((0,r.g3)(e)):t>e?"".concat(i(e,t,n)," ").concat((0,r.g3)(t)):"".concat(o(t,n)," ").concat((0,r.g3)(t))}function d(t){return t%1!=0}function m(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Intl.NumberFormat("ru",{...!e.withoutCurrency&&{style:"currency",currency:"RUB"},maximumFractionDigits:2,minimumFractionDigits:2*!!e.withEmptyPennies}).format(t)}function h(t){return void 0===t||""===t?0:Number(t)}function f(t,e){return"".concat(i(h(t),h(e))," ₽")}function p(t,e){return"".concat(i(t,e)," ₽")}function v(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:()=>i});var r=n(37876),o=n(81983),a=n(33126);function i(t){let{className:e,data:n,variant:i}=t,c=(0,a.UK)();return(0,r.jsx)("div",{className:e,children:(0,r.jsx)(o.F,{data:n,showcaseUrl:c.mainBaseUrl,variant:i})})}},83735:t=>{t.exports={container:"microloan-approval-status-desktop_container__TQigp"}},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})},87883:(t,e,n)=>{"use strict";n.d(e,{q:()=>s});var r=n(37876),o=n(49995),a=n(66547),i=n(53049),c=n.n(i);function s(t){let{className:e,labelClassName:n,valueClassName:a,status:i}=t,s=u[i];return(0,r.jsxs)("div",{className:e,children:[(0,r.jsx)("label",{className:n,children:"Одобрение"}),(0,r.jsx)("p",{className:(0,o.A)(a,c().value),style:{"--text-color":s.textColor},children:s.text})]})}let u={[a.Q.Low]:{textColor:"#FF0508",text:"Низкое"},[a.Q.Medium]:{textColor:"#FA7C07",text:"Среднее"},[a.Q.High]:{textColor:"#49C55D",text:"Высокое"},[a.Q.VeryHigh]:{textColor:"#3A9E4A",text:"Очень высокое"}}},89064:(t,e,n)=>{"use strict";n.d(e,{U9:()=>a,UB:()=>d,ZJ:()=>l,d2:()=>u,g3:()=>s,td:()=>c,vo:()=>m});var r=n(79807);let o=new Intl.PluralRules("ru-RU");var a=function(t){return t.ONE="месяц",t.FEW="месяца",t.MANY="месяцев",t}({});function i(t,e,n,r){return({one:e,few:n,many:r})[o.select(t)]}function c(t,e,n,o){return(0,r.dk)(t)?n:i(t,e,n,o)}function s(t){return c(t,"день","дня","дней")}function u(t){return"до ".concat(t," ").concat(l(t))}function l(t){var e,n;return e="дня",n="дней",(0,r.dk)(t)?e:i(t,e,n,n)}function d(t){return c(t,"месяц","месяца","месяцев")}function m(t){return c(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)}},98473:(t,e,n)=>{"use strict";var r=n(12771),o=n(73584),a=function(t){return t.Normal="0",t.Large="1",t.Small="2",t}(a||{});async function i(){let t=await (0,r.zy)("MicroCreditsControl.json");if(t.microCredit_controls.length<1)throw Error("Microloans control not found");return t.microCredit_controls.length>1&&console.warn("Microloans control is invalid"),function(t){let{term_without_interest:e,redirect:n}=t,r={term_without_interest:e},o=function(t){if(""!==t){let{redirect:e,redirect_to:n}=t;if(0!==e&&""!==n)return n}}(n);return void 0!==o&&(r.redirect_to=o),r}(t.microCredit_controls[0])}new o.B(i)}}]);