(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2384],{84444:function(t,n,e){"use strict";e.d(n,{N:function(){return s}});var r=e(85893),o=e(9008),i=e.n(o),c=e(11163),a=e(84053),u=e(12261);function s(t){let{title:n,description:e,productId:o}=t,{basePath:s,mainBaseUrl:l}=(0,a.ZR)(),{asPath:f}=(0,c.useRouter)(),d=(0,u.iN)(f);return(0,r.jsxs)(i(),{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(d)}),(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(d)}),o&&(0,r.jsx)("script",{children:"dataLayer = [{\n            'view_product_id': '".concat(o,"'\n          }];")})]})}s.displayName="HeadMeta"},19438:function(t,n,e){"use strict";e.d(n,{t:function(){return a}});var r=e(85893),o=e(86010),i=e(20551),c=e.n(i);let a=t=>{let{children:n,className:e}=t;return(0,r.jsx)("div",{className:(0,o.Z)(c().mainContainer,e),children:n})}},73897:function(t,n,e){"use strict";var r,o;e.d(n,{u:function(){return r}}),(o=r||(r={})).POTREBITELSKIE="potrebitelskie_kredity",o.KARTY="kreditnye_karty",o.MICROZAJMY="mikrozajmy",o.AUTOCREDIT="avtokredity",o.IPOTEKA="ipoteka",o.CALCULATOR="kreditniy_kalkulyator"},39918:function(t,n,e){"use strict";e.d(n,{D:function(){return a},i:function(){return o}});var r,o,i=e(65737),c=e(40741);(r=o||(o={})).link="link",r.button="button",r.popup="popup",r.popdown="popdown",r.filterCatalog="filter_catalog",r.utm="utm",r.banner="banner";let a=t=>{let{eventCategory:n,eventAction:e,eventActionText:r="",eventLabel:o,eventValue:a,url:u}=t,s="boolean"==typeof a?a?"on":"off":a,l="filter_catalog"!==e?/[а-я]/i.test(r.toLowerCase()):"string"!=typeof o||/[а-я]/i.test(o.toLowerCase()),f="filter_catalog"!==e?{event:"data-event",eventCategory:null!=n?n:"",eventAction:({link:"click_link_",button:"click_button_",popup:"show_pop_up_",popdown:"close_pop_up_",utm:"save_utm",banner:"click_banner"})[e]+(0,c.b)(r.toLowerCase().replaceAll(" ","_")),eventLabel:o,eventValue:s,url:u}:{event:"data-event",eventAction:null!=n?n:"",eventCategory:e,eventLabel:"string"==typeof o?l?o:(0,c.b)(o):o,eventValue:s,url:u};(0,i.l)(f)}},6584:function(t,n,e){"use strict";e.d(n,{Lk:function(){return f},MB:function(){return a},SO:function(){return u},SV:function(){return s},_6:function(){return c},uG:function(){return l}});var r=e(94466);let o=new Intl.PluralRules("ru-RU");function i(t,n,e,r){return({one:n,few:e,many:r})[o.select(t)]}function c(t,n,e,o){return(0,r.Q7)(t)?e:i(t,n,e,o)}function a(t){return c(t,"день","дня","дней")}function u(t){return"до ".concat(t," ").concat(s(t))}function s(t){var n,e;return n="дня",e="дней",(0,r.Q7)(t)?n:i(t,n,e,e)}function l(t){return c(t,"месяц","месяца","месяцев")}function f(t){return c(t,"год","года","лет")}},65737:function(t,n,e){"use strict";e.d(n,{l:function(){return o}});var r=e(77607);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.AB)(t)}},40741:function(t,n,e){"use strict";e.d(n,{b:function(){return 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 n=t.toLowerCase();if(n in r){let e=r[n];return n===t?e:e.charAt(0).toUpperCase()+e.slice(1)}return t})},65709:function(t,n,e){"use strict";e.d(n,{rd:function(){return d},$u:function(){return u},m6:function(){return f},C8:function(){return l},vD:function(){return s},kc:function(){return a}});var r=e(84053);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,n,r,o){try{var i;null===(i=e.g.outgoingHTTPRequestHistogram)||void 0===i||i.labels(t,n,void 0!==r?String(r):"unknown").observe(performance.now()-o)}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 i=e(12261),c=e(60600);function a(){return"".concat((0,r.iE)().basePath,"/api")}function u(t,n){return d("".concat("".concat((0,r.iE)().mainApiUrl,"/money_data"),"/").concat(t),n)}function s(t,n){return d("".concat("".concat((0,r.iE)().savingsApiUrl,"/api/v1"),"/").concat(t),n)}function l(t,n){return d("".concat("".concat((0,r.iE)().mpScApiUrl,"/api/v1"),"/").concat(t),n)}function f(t,n){return d("".concat(a(),"/").concat(t),n)}async function d(t,n){let e=await m(t,n);try{return JSON.parse(e)}catch(t){throw Error("Failed to parse JSON: ".concat(e),{cause:t})}}async function m(t,n){var e;(0,c.C5)()||console.debug("Fetch data: ".concat(t));let a={},u=(0,r.iE)().apiUsername,s=(0,r.iE)().apiPassword;u&&s&&(a.Authorization="Basic ".concat((0,c.oF)("".concat(u,":").concat(s))));let l=new o(null!==(e=null==n?void 0:n.method)&&void 0!==e?e:"GET",(0,i.iN)(t));try{l.start();let e=await fetch(t,{...n,headers:{...a,...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 o}});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 o{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 v},Q7:function(){return f},dN:function(){return h},gt:function(){return l},lM:function(){return p},lb:function(){return d},po:function(){return s},qO:function(){return m},sz:function(){return u},uf:function(){return o},z1:function(){return c}});var r=e(6584);function o(t,n){return t.toLocaleString("ru-RU",n)}function i(t,n,e){return"".concat(o(t,e)," ‒ ").concat(o(n,e))}function c(t,n,e){if(t<n)return t>0?i(t,n,e):"до ".concat(o(n,e));if(t>n)return n>0?(console.warn("Invalid range format: from > to [".concat(t,", ").concat(n,"]")),i(n,t,e)):"от ".concat(o(t,e));if(t===n)return o(t,e);throw Error("Invalid range format: endpoints are not compared [".concat(t,", ").concat(n,"]"))}function a(t){return"".concat(t,"%")}function u(t,n,e){return a(c(t,n,e))}function s(t,n,e){return t>n&&a(i(n,t,e)),a(i(t,n,e))}function l(t,n,e){return t<n?"".concat(c(n,t,e)," ").concat((0,r.MB)(n)):t>n?"".concat(c(n,t,e)," ").concat((0,r.MB)(t)):"".concat(o(t,e)," ").concat((0,r.MB)(t))}function f(t){return t%1!=0}function d(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 m(t,n){return"".concat(c(t,n)," ₽")}function h(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=v(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=v(t);return"от ".concat(e," ").concat(n.currency).trim()}(t.from,n)}function p(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{currency:""};return"".concat(o(t)," ").concat(n.currency).trim()}function v(t){let n=String(t);if(n.length>6&&!n.includes(".")){let e=t/1e6;return n.length-String(e).length<2?o(t):"".concat(o(e)," млн")}return o(t)}},34634:function(t,n,e){"use strict";var r,o,i=e(65709),c=e(32368);async function a(){let t=await (0,i.$u)("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:n,redirect:e}=t,r={term_without_interest:n},o=function(t){if(""!==t){let{redirect:n,redirect_to:e}=t;if(0!==n&&""!==e)return e}}(e);return void 0!==o&&(r.redirect_to=o),r}(t.microCredit_controls[0])}(r=o||(o={})).Normal="0",r.Large="1",r.Small="2",new c.$(a)},36600:function(t,n,e){"use strict";e.d(n,{N:function(){return u}});var r=e(85893),o=e(86010),i=e(24427),c=e(79850),a=e.n(c);function u(t){let{className:n,status:e}=t,i=s[e];return(0,r.jsx)("div",{className:(0,o.Z)(n,a().container),style:{"--background-color":i.backgroundColor,"--border-color":i.borderColor,"--text-color":i.textColor},children:i.text})}let s={[i.l.Low]:{backgroundColor:"#FFDDDE",borderColor:"#FFCDCE",textColor:"#FF0508",text:"Низкое одобрение"},[i.l.Medium]:{backgroundColor:"#FFF1B6",borderColor:"#FEE5CD",textColor:"#FA7C07",text:"Среднее одобрение"},[i.l.High]:{backgroundColor:"#EBFFEF",borderColor:"#DBF3DF",textColor:"#49C55D",text:"Высокое одобрение"},[i.l.VeryHigh]:{backgroundColor:"#DBF3DF",borderColor:"#B6E8BE",textColor:"#3A9E4A",text:"Очень высокое одобрение"}}},24427:function(t,n,e){"use strict";e.d(n,{V:function(){return a},l:function(){return o}});var r,o,i=e(76047);(r=o||(o={})).Low="low",r.Medium="medium",r.High="high",r.VeryHigh="very-high";let c={[i.S.First]:[{minRating:490,status:"high"},{minRating:480,status:"very-high"},{minRating:0,status:"high"}],[i.S.Second]:[{minRating:482,status:"medium"},{minRating:472,status:"high"},{minRating:0,status:"medium"}],[i.S.Third]:[{minRating:465,status:"high"},{minRating:0,status:"medium"}],[i.S.Forth]:[{minRating:0,status:"medium"}],[i.S.Last]:[{minRating:0,status:"medium"}],[i.S.Uncommercial]:[{minRating:440,status:"medium"},{minRating:0,status:"low"}]};function a(t,n){for(let{minRating:e,status:r}of c[t])if(n>=e)return r;throw Error("Dead code branch")}},10173:function(t,n,e){"use strict";e.d(n,{n:function(){return u}});var r=e(85893),o=e(86010),i=e(24427),c=e(45233),a=e.n(c);function u(t){let{className:n,labelClassName:e,valueClassName:i,status:c}=t,u=s[c];return(0,r.jsxs)("div",{className:n,children:[(0,r.jsx)("label",{className:e,children:"Одобрение"}),(0,r.jsx)("p",{className:(0,o.Z)(i,a().value),style:{"--text-color":u.textColor},children:u.text})]})}let s={[i.l.Low]:{textColor:"#FF0508",text:"Низкое"},[i.l.Medium]:{textColor:"#FA7C07",text:"Среднее"},[i.l.High]:{textColor:"#49C55D",text:"Высокое"},[i.l.VeryHigh]:{textColor:"#3A9E4A",text:"Очень высокое"}}},76047:function(t,n,e){"use strict";var r,o;e.d(n,{S:function(){return r},m:function(){return c}}),(o=r||(r={}))[o.First=6]="First",o[o.Second=15]="Second",o[o.Third=30]="Third",o[o.Forth=50]="Forth",o.Last="last",o.Uncommercial="uncommercial";let i=[6,15,30,50];function c(t,n){if(n)return"uncommercial";for(let n of i)if(t<=n)return n;return"last"}},30892:function(t,n,e){"use strict";e.d(n,{Gp:function(){return c}});var r=e(84053),o=e(76047);let i={[o.S.First]:{min:470,max:498},[o.S.Second]:{min:470,max:485},[o.S.Third]:{min:460,max:475},[o.S.Forth]:{min:450,max:470},[o.S.Last]:{min:450,max:450},[o.S.Uncommercial]:{min:430,max:450}};function c(t,n){let e=(0,r.iE)().serverDate,o=function(t){let n=5381;for(let e=0;e<t.length;e++)n=(n<<5)+n+t.charCodeAt(e);return Math.abs(n)}("".concat(e.getUTCDay()).concat(e.getUTCMonth()).concat(e.getUTCFullYear()).concat(t)),c=i[n];return c.min+o%(c.max-c.min+1)}},79375:function(t,n,e){"use strict";e.d(n,{h:function(){return c}});var r=e(67294),o=e(81819),i=e(45551);function c(t,n){let[e,c]=(0,r.useState)(""),a=(0,o.u)(),u=(0,i.zM)(),{offerId:s,order:l,placement:f="",category:d}=null!=n?n:{},m=void 0!==l?"".concat(f).concat(l+1):void 0;return(0,r.useEffect)(()=>{let n=new URL(t);(function(t,n){let{pathname:e,utmSource:r,utmMedium:o,utmCampaign:i,utmTerm:c,utmContent:a,clickId:u}=n;void 0!==e&&t.set("page_path",e),void 0!==r&&t.set("utm_source",r),void 0!==o&&t.set("utm_medium",o),void 0!==i&&t.set("utm_campaign",i),void 0!==c&&t.set("utm_term",c),void 0!==a&&t.set("utm_content",a),void 0!==u&&t.set("ext_id",u)})(n.searchParams,a),function(t,n){let{browserId:e,sessionId:r,customerId:o,yandexId:i}=n;void 0!==i&&t.set("t6",i),void 0!==r&&t.set("t7",r),void 0!==e&&t.set("t8",e),void 0!==o&&t.set("t9",o)}(n.searchParams,u),void 0!==s&&n.searchParams.set("cms_offer_id",s),void 0!==m&&n.searchParams.set("order",m),void 0!==d&&n.searchParams.set("category",d),c(n.toString())},[t,a,u,s,m,d]),e}},20551:function(t){t.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},79850:function(t){t.exports={container:"microloan-approval-status-desktop_container__TQigp"}},45233:function(t){t.exports={value:"microloan-approval-status-mobile_value__1jYdA"}}}]);