(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6299],{10280:(t,o,e)=>{"use strict";e.d(o,{A:()=>n});var r=e(12771);async function n(){return i.getOrUpdate()}let i=new(e(73584)).B4(c);async function c(){return(await (0,r.aB)("data/page-data?scLayoutName=PageFooter&scPageUrl=homepage")).value}},25334:(t,o,e)=>{"use strict";e.d(o,{i:()=>i,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 n=[6,15,30,50];function i(t,o){if(o)return"uncommercial";for(let o of n)if(t<=o)return o;return"last"}},27411:(t,o,e)=>{"use strict";e.d(o,{GD:()=>c});var r=e(33126),n=e(25334);let i={[n.p.First]:{min:470,max:498},[n.p.Second]:{min:470,max:485},[n.p.Third]:{min:460,max:475},[n.p.Forth]:{min:450,max:470},[n.p.Last]:{min:450,max:450},[n.p.Uncommercial]:{min:430,max:450}};function c(t,o){let e=(0,r.zj)().serverDate,n=function(t){let o=5381;for(let e=0;e<t.length;e++)o=(o<<5)+o+t.charCodeAt(e);return Math.abs(o)}("".concat(e.getUTCDay()).concat(e.getUTCMonth()).concat(e.getUTCFullYear()).concat(t)),c=i[o];return c.min+n%(c.max-c.min+1)}},30409:(t,o,e)=>{"use strict";function r(t){return""!==t}e.d(o,{u:()=>r})},53049:t=>{t.exports={value:"microloan-approval-status-mobile_value__1jYdA"}},63921:(t,o,e)=>{"use strict";e.d(o,{o:()=>c});var r=e(14232),n=e(77336),i=e(83024);function c(t,o){let[e,c]=(0,r.useState)(""),u=(0,n.v)(),a=(0,i.f3)(),{offerId:m,order:l,placement:s="",category:d}=null!=o?o:{},f=void 0!==l?"".concat(s).concat(l+1):void 0;return(0,r.useEffect)(()=>{let o=new URL(t);(function(t,o){let{pathname:e,utmSource:r,utmMedium:n,utmCampaign:i,utmTerm:c,utmContent:u,clickId:a,yandexClickId:m}=o;void 0!==e&&t.set("page_path",e),void 0!==r&&t.set("utm_source",r),void 0!==n&&t.set("utm_medium",n),void 0!==i&&t.set("utm_campaign",i),void 0!==c&&t.set("utm_term",c),void 0!==u&&t.set("utm_content",u),void 0!==a&&t.set("ext_id",a),void 0!==m&&t.set("yclid",m)})(o.searchParams,u),function(t,o){let{browserId:e,sessionId:r,customerId:n,yandexUserId:i,userReturned:c}=o;void 0!==i&&t.set("t6",i),void 0!==r&&t.set("t7",r),void 0!==e&&t.set("t8",e),void 0!==n&&t.set("t9",n),void 0!==c&&t.set("cookie_ur",c)}(o.searchParams,a),void 0!==m&&o.searchParams.set("cms_offer_id",m),void 0!==f&&o.searchParams.set("order",f),void 0!==d&&o.searchParams.set("category",d),c(o.toString())},[t,u,a,m,f,d]),e}},66547:(t,o,e)=>{"use strict";e.d(o,{Q:()=>n,y:()=>c});var r=e(25334),n=function(t){return t.Low="low",t.Medium="medium",t.High="high",t.VeryHigh="very-high",t}({});let i={[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 c(t,o){for(let{minRating:e,status:r}of i[t])if(o>=e)return r;throw Error("Dead code branch")}},66789:(t,o,e)=>{"use strict";e.d(o,{K:()=>a});var r=e(37876),n=e(49995),i=e(66547),c=e(83735),u=e.n(c);function a(t){let{className:o,status:e}=t,i=m[e];return(0,r.jsx)("div",{className:(0,n.A)(o,u().container),style:{"--background-color":i.backgroundColor,"--border-color":i.borderColor,"--text-color":i.textColor},children:i.text})}let m={[i.Q.Low]:{backgroundColor:"#FFDDDE",borderColor:"#FFCDCE",textColor:"#FF0508",text:"Низкое одобрение"},[i.Q.Medium]:{backgroundColor:"#FFF1B6",borderColor:"#FEE5CD",textColor:"#FA7C07",text:"Среднее одобрение"},[i.Q.High]:{backgroundColor:"#EBFFEF",borderColor:"#DBF3DF",textColor:"#49C55D",text:"Высокое одобрение"},[i.Q.VeryHigh]:{backgroundColor:"#DBF3DF",borderColor:"#B6E8BE",textColor:"#3A9E4A",text:"Очень высокое одобрение"}}},68204:(t,o,e)=>{"use strict";e.d(o,{I1:()=>s,Nh:()=>m,O$:()=>u,VX:()=>c,X8:()=>l,eg:()=>a});var r=e(12771),n=e(30409),i=e(3187);function c(t){return(0,r.pY)("microloans-new/offer?url=".concat(t))}function u(t){let{logo_mob:o,logo_mob_png:e}=t;return void 0!==o&&(0,i.vh)(o)?o:void 0!==e&&(0,i.vh)(e)?e:void 0}function a(t){let{url:o,commercial:e,commercial_desc:r,best_offer_catalogue:n}=t,i={type:1,url:o,commercial:e};return void 0!==r&&(i.commercial_desc=r),void 0!==n&&(i.best_offer_catalogue=n),i}function m(t){let{comment:o,...e}=t,r=d(e);return void 0!==o&&(0,n.u)(o)&&(r.comment=o),r}function l(t){let o=d(t);return void 0!==t.comment&&(0,n.u)(t.comment)&&(o.comment=t.comment),o}function s(t){let o=d(t);return void 0!==t.comment&&(0,n.u)(t.comment)&&(o.comment=t.comment),o}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)}}},83735:t=>{t.exports={container:"microloan-approval-status-desktop_container__TQigp"}},87883:(t,o,e)=>{"use strict";e.d(o,{q:()=>a});var r=e(37876),n=e(49995),i=e(66547),c=e(53049),u=e.n(c);function a(t){let{className:o,labelClassName:e,valueClassName:i,status:c}=t,a=m[c];return(0,r.jsxs)("div",{className:o,children:[(0,r.jsx)("label",{className:e,children:"Одобрение"}),(0,r.jsx)("p",{className:(0,n.A)(i,u().value),style:{"--text-color":a.textColor},children:a.text})]})}let m={[i.Q.Low]:{textColor:"#FF0508",text:"Низкое"},[i.Q.Medium]:{textColor:"#FA7C07",text:"Среднее"},[i.Q.High]:{textColor:"#49C55D",text:"Высокое"},[i.Q.VeryHigh]:{textColor:"#3A9E4A",text:"Очень высокое"}}},91572:(t,o,e)=>{"use strict";e.d(o,{$A:()=>d,BV:()=>m,Im:()=>s,M$:()=>u,P:()=>g,TR:()=>a,b8:()=>f,gI:()=>v,q8:()=>l}),e(37397);var r=e(12771),n=e(30409),i=e(3187),c=e(68204);function u(t){return null!==t&&""!==t&&(void 0!==t.to&&null!==t.to&&""!==t.to||void 0!==t.from&&null!==t.from&&""!==t.from)}function a(t){return null!==t&&""!==t&&void 0!==t.to&&null!==t.to&&""!==t.to}function m(t,o){return o?(0,c.VX)(t):(0,r.pY)("microloans/offer?url=".concat(t))}function l(t){let{logo_mob:o,logo_mob_png:e}=t;return(0,i.vh)(o)?o:(0,i.vh)(e)?e:void 0}function s(t){let{url:o,type:e,commercial:r,commercial_desc:i,best_offer_catalogue:c}=t,u={type:e,url:o,commercial:r};return(0,n.u)(i)&&(u.commercial_desc=i),void 0!==c&&(u.best_offer_catalogue=c),u}function d(t){let{comment:o,...e}=t,r=h(e);return void 0!==o&&(0,n.u)(o)&&(r.comment=o),r}function f(t){let{comment:o,...e}=t,r=h(e);return(0,n.u)(o)&&(r.comment=o),r}function v(t){let{comment:o,...e}=t,r=h(e);return(0,n.u)(o)&&(r.comment=o),r}function g(t){let{from:o,to:e}=t;return{from:void 0!==o?Number(o):0,to:Number(e)}}function h(t){let{from:o,to:e}=t;return""===o||void 0===o?{to:Number(e)}:""!==e&&void 0!==e?{from:Number(o),to:Number(e)}:{from:Number(o)}}},98473:(t,o,e)=>{"use strict";var r=e(12771),n=e(73584),i=function(t){return t.Normal="0",t.Large="1",t.Small="2",t}(i||{});async function c(){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:o,redirect:e}=t,r={term_without_interest:o},n=function(t){if(""!==t){let{redirect:o,redirect_to:e}=t;if(0!==o&&""!==e)return e}}(e);return void 0!==n&&(r.redirect_to=n),r}(t.microCredit_controls[0])}new n.B4(c)}}]);