(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6583],{9221:(t,e,n)=>{"use strict";n.d(e,{GD:()=>u});var o=n(33126),r=n(66146),i=n(25334);let a={[i.p.First]:{min:470,max:498},[i.p.Second]:{min:470,max:485},[i.p.Third]:{min:460,max:475},[i.p.Forth]:{min:450,max:470},[i.p.Last]:{min:450,max:450},[i.p.Uncommercial]:{min:430,max:450}};function u(t,e){let n=(0,o.zj)().serverDate,i="".concat(n.getUTCDay()).concat(n.getUTCMonth()).concat(n.getUTCFullYear()).concat(t),u=(0,r.t)(i),c=a[e];return c.min+u%(c.max-c.min+1)}},10280:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var o=n(12771);async function r(){return i.getOrUpdate()}let i=new(n(73584)).B4(a);async function a(){return(await (0,o.aB)("data/page-data?scLayoutName=PageFooter&scPageUrl=homepage")).value}},12697:(t,e,n)=>{"use strict";n.d(e,{$:()=>a});var o=n(12771),r=n(30409),i=n(3187);async function a(){return(await (0,o.ZP)("old/mfos?archive=0")).companies.reduce((t,e)=>(0!==e.public&&e.microCredits_num>0&&t.push(function(t){let{id:e,cmsId:n,url:o,name:a,logo_mob:u,legal_entities:[{registration_number:c}],phones:s,reviews_num:l}=t,m={id:e,url:o,name:a};return void 0!==c&&(m.registration_number=c),null!==n&&(m.cmsId=n),void 0!==u&&(0,i.vh)(u)&&(m.logo=u),void 0!==s&&void 0!==s[0]&&(0,r.uI)(s[0])&&(m.phone=s[0]),void 0!==l&&(m.reviews_num=l),m}(e)),t),[])}},24785:(t,e,n)=>{"use strict";n.d(e,{G:()=>r});var o=n(48055);async function r(){return(await (0,o.mX)()).reduce((t,e)=>(void 0!==e.reviewsCount&&(t[e.url]=e.reviewsCount),t),{})}},25334:(t,e,n)=>{"use strict";n.d(e,{i:()=>i,p:()=>o});var o=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 r=[6,15,30,50];function i(t,e){if(e)return"uncommercial";for(let e of r)if(t<=e)return e;return"last"}},30409:(t,e,n)=>{"use strict";function o(t){return""!==t}n.d(e,{uI:()=>o})},31257:(t,e,n)=>{"use strict";n.d(e,{_:()=>a,y:()=>i});var o=n(91063),r=n(87087),i=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 a=t=>{let e,n,{eventCategory:i,eventAction:a,eventActionText:u="",eventLabel:c,eventValue:s,url:l,customerId:m}=t;e="boolean"==typeof s?s?"on":"off":s,n="filter_catalog"!==a?/[а-я]/i.test(u.toLowerCase()):"string"!=typeof c||/[а-я]/i.test(c.toLowerCase());let d="filter_catalog"!==a?{event:"data-event",eventCategory:null!=i?i:"",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"})[a]+(0,r.y)(u.toLowerCase().replaceAll(" ","_")),eventLabel:c,eventValue:e,url:l,customer_id:m}:{event:"data-event",eventAction:null!=i?i:"",eventCategory:a,eventLabel:function(t,e){return"string"==typeof t?e?t:(0,r.y)(t):t}(c,n),eventValue:e,url:l,customer_id:m};(0,o.o)(d)}},37105:(t,e,n)=>{"use strict";n.d(e,{h:()=>o});var o=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}({})},48055:(t,e,n)=>{"use strict";n.d(e,{II:()=>a,mX:()=>u});var o=n(12771),r=n(73584),i=n(12697);function a(){return(0,o.pY)("microloans/mfos")}async function u(){return c.getOrUpdate()}let c=new r.B4(s);async function s(){return(await (0,i.$)()).map(l).sort((t,e)=>t.name.localeCompare(e.name))}function l(t){let{id:e,cmsId:n,url:o,name:r,registration_number:i,reviews_num:a}=t,u={id:String(e),url:o,name:r};return void 0!==i&&(u.registrationNumber=i),void 0!==n&&(u.cmsId=n),void 0!==a&&(u.reviewsCount=a),u}},53049:t=>{t.exports={value:"microloan-approval-status-mobile_value__1jYdA"}},66146:(t,e,n)=>{"use strict";function o(t){let e=5381;for(let n=0;n<t.length;n++)e=(e<<5)+e+t.charCodeAt(n);return Math.abs(e)}n.d(e,{t:()=>o})},66547:(t,e,n)=>{"use strict";n.d(e,{Q:()=>r,y:()=>a});var o=n(25334),r=function(t){return t.Low="low",t.Medium="medium",t.High="high",t.VeryHigh="very-high",t}({});let i={[o.p.First]:[{minRating:490,status:"high"},{minRating:480,status:"very-high"},{minRating:0,status:"high"}],[o.p.Second]:[{minRating:482,status:"medium"},{minRating:472,status:"high"},{minRating:0,status:"medium"}],[o.p.Third]:[{minRating:465,status:"high"},{minRating:0,status:"medium"}],[o.p.Forth]:[{minRating:0,status:"medium"}],[o.p.Last]:[{minRating:0,status:"medium"}],[o.p.Uncommercial]:[{minRating:440,status:"medium"},{minRating:0,status:"low"}]};function a(t,e){for(let{minRating:n,status:o}of i[t])if(e>=n)return o;throw Error("Dead code branch")}},87087:(t,e,n)=>{"use strict";n.d(e,{y:()=>r});let o={а:"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"},r=t=>t.replace(/[а-яё]/gi,t=>{let e=t.toLowerCase();if(e in o){let n=o[e];return e===t?n:n.charAt(0).toUpperCase()+n.slice(1)}return t})},87883:(t,e,n)=>{"use strict";n.d(e,{q:()=>c});var o=n(37876),r=n(69241),i=n(66547),a=n(53049),u=n.n(a);function c(t){let{className:e,labelClassName:n,valueClassName:i,status:a}=t,c=s[a];return(0,o.jsxs)("div",{className:e,children:[(0,o.jsx)("label",{className:n,children:"Одобрение"}),(0,o.jsx)("p",{className:(0,r.A)(i,u().value),style:{"--text-color":c.textColor},children:c.text})]})}let s={[i.Q.Low]:{textColor:"#FF0508",text:"Низкое"},[i.Q.Medium]:{textColor:"#FA7C07",text:"Среднее"},[i.Q.High]:{textColor:"#49C55D",text:"Высокое"},[i.Q.VeryHigh]:{textColor:"#3A9E4A",text:"Очень высокое"}}},91063:(t,e,n)=>{"use strict";n.d(e,{o:()=>r});var o=n(70728);function r(t){t.eventAction&&(t.eventAction=t.eventAction.toLowerCase().replaceAll(" ","_")),t.eventLabel&&"string"==typeof t.eventLabel&&(t.eventLabel=t.eventLabel.toLowerCase().replaceAll(" ","_")),(0,o.Fj)(t)}},91572:(t,e,n)=>{"use strict";n.d(e,{$A:()=>s,BV:()=>a,Im:()=>c,b8:()=>l,gI:()=>m,q8:()=>u});var o=n(12771),r=n(30409),i=n(3187);function a(t){return(0,o.pY)("microloans/offer?url=".concat(t))}function u(t){let{logo_mob:e,logo_mob_png:n}=t;return void 0!==e&&(0,i.vh)(e)?e:void 0!==n&&(0,i.vh)(n)?n:void 0}function c(t){let{url:e,commercial:n,commercial_desc:o,best_offer_catalogue:r}=t,i={type:1,url:e,commercial:n};return void 0!==o&&(i.commercial_desc=o),void 0!==r&&(i.best_offer_catalogue=r),i}function s(t){let{comment:e,...n}=t,o=d(n);return void 0!==e&&(0,r.uI)(e)&&(o.comment=e),o}function l(t){let e=d(t);return void 0!==t.comment&&(0,r.uI)(t.comment)&&(e.comment=t.comment),e}function m(t){let e=d(t);return void 0!==t.comment&&(0,r.uI)(t.comment)&&(e.comment=t.comment),e}function d(t){return void 0===t.from?{to:Number(t.to)}:void 0!==t.to?{from:Number(t.from),to:Number(t.to)}:{from:Number(t.from)}}},98473:(t,e,n)=>{"use strict";var o=n(12771),r=n(73584),i=function(t){return t.Normal="0",t.Large="1",t.Small="2",t}(i||{});async function a(){let t=await (0,o.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,o={term_without_interest:e},r=function(t){if(""!==t){let{redirect:e,redirect_to:n}=t;if(0!==e&&""!==n)return n}}(n);return void 0!==r&&(o.redirect_to=r),o}(t.microCredit_controls[0])}new r.B4(a)}}]);