(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[998],{2300:e=>{e.exports={block:"leading-mfos_block__s93he",logo:"leading-mfos_logo__UYH4B",title:"leading-mfos_title___R14n",list:"leading-mfos_list__kKvun",item:"leading-mfos_item__MNeDk",info:"leading-mfos_info__bhD_L",name:"leading-mfos_name__SjEsW",registationNumber:"leading-mfos_registationNumber__W1N2M",phone:"leading-mfos_phone__XwoOL"}},9640:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var l=n(37876),o=n(20988);function a(e){var t;let{value:n,...a}=e,r=(t=n,a.options.find(e=>e.value===t));return(0,l.jsx)(o.l6,{...a,value:r,onChange:e=>{let t=null==e?void 0:e.value;a.onChange(t)}})}},11404:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var l=n(14232);function o(){let[e,t]=(0,l.useState)(!1);return{visible:e,show:(0,l.useCallback)(()=>t(!0),[]),hide:(0,l.useCallback)(()=>t(!1),[])}}},12837:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var l=n(37876),o=n(26685),a=n.n(o);function r(e){let{comment:t,text:n}=e;return void 0!==t&&void 0!==n?(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}),(0,l.jsx)("div",{className:a().commentText,dangerouslySetInnerHTML:{__html:t}})]}):void 0!==n?(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}):void 0!==t?(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t}}):void 0}},14552:e=>{e.exports={container:"MicroloanInfo_container__Nl1Nj",containerFull:"MicroloanInfo_containerFull__FHWGY",promo:"MicroloanInfo_promo__wEsEc",left:"MicroloanInfo_left__Aq9Zm",right:"MicroloanInfo_right__D5tOG",qrDesc:"MicroloanInfo_qrDesc__pKTqc",qrMobile:"MicroloanInfo_qrMobile__bN5Z8",typeDescription:"MicroloanInfo_typeDescription__xRMv_"}},15458:e=>{e.exports={top_row:"styles_top_row__lrJMw",title_group:"styles_title_group___MJIW",title_group_content:"styles_title_group_content__VThk9",card_info:"styles_card_info__K4zuM",group:"styles_group__DPSzc",group_sub:"styles_group_sub__4sEq6",title_group_sub:"styles_title_group_sub__yylra",title_sub:"styles_title_sub__BRYyW",rating:"styles_rating__KyMOq",icon_star:"styles_icon_star__Kclin",group_content:"styles_group_content__lK3Pu",status_text:"styles_status_text__fOgCE",prefix:"styles_prefix__0ftsL",rating_text:"styles_rating_text__HQzRa",ratingMobile:"styles_ratingMobile__XxUit",ratingDesktop:"styles_ratingDesktop__378V7"}},15462:(e,t,n)=>{"use strict";n.d(t,{L$:()=>l,ZV:()=>o});let l=(e,t)=>(null==e?void 0:e.includes(t))?e.filter(e=>e!==t):(e||[]).concat([t]),o=e=>a(e.toString().split("").reverse(),3).reverse().map(e=>e.reverse().join("")).join(" "),a=(e,t)=>{let n=[];for(let l=0;l<e.length;++l){let o=Math.floor(l/t);n[o]||(n[o]=[]),n[o].push(e[l])}return n}},18108:e=>{e.exports={listTitle:"MicroloanListModal_listTitle__dtSVF",container:"MicroloanListModal_container__4uycu",content:"MicroloanListModal_content__W7GUx",list:"MicroloanListModal_list__RMBRt",valueText:"MicroloanListModal_valueText__mY9qV",row:"MicroloanListModal_row__NJuSi",rowLabel:"MicroloanListModal_rowLabel__gczz9",rowValue:"MicroloanListModal_rowValue__H4A77",buttons:"MicroloanListModal_buttons__Blx2m",button:"MicroloanListModal_button__GHi6e",buttonSecondary:"MicroloanListModal_buttonSecondary___9W4_"}},18315:(e,t,n)=>{"use strict";n.d(t,{a:()=>m});var l=n(37876),o=n(20988),a=n(14232),r=n(3010),i=n(74356),s=n(16416),c=n(32266),u=n(94289),d=n.n(u);let m=(0,a.memo)(e=>{let{isOpen:t,cancelButton:n,submitButton:u,onClose:m,bankName:_,dataPoints:p,offerUpdateData:v,pageUrl:f}=e,g=(0,l.jsxs)("div",{className:d().content,children:[p.map(e=>(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)("h2",{className:d().title,children:e.sectionTitle}),(0,l.jsx)("div",{className:d().list,children:e.body.length?e.body.map((e,t)=>(0,l.jsxs)("div",{className:d().field,children:[(0,l.jsxs)("div",{className:d().titleWrapper,children:[(0,l.jsx)("h3",{className:d().fieldTitle,children:null==e?void 0:e.label}),(null==e?void 0:e.description)&&(0,l.jsx)(c.A,{triggerClassName:d().icon,content:e.description})]}),(0,l.jsx)("div",{className:d().fieldContent,children:null==e?void 0:e.value})]},t)):Array.from({length:6},(e,t)=>(0,l.jsx)(i.E,{className:d().skeletonContent},t))})]},e.sectionTitle)),(0,l.jsx)(s.n,{className:d().actualDate,pageUrl:f,offerDate:v})]}),h=(0,l.jsxs)("div",{className:d().footer,children:[(0,l.jsx)(o.$n,{variant:"secondary",onClick:n.onClick,children:n.title}),(0,l.jsx)(o.$n,{rel:"nofollow",as:"a",href:u.url,onClick:u.onClick,children:u.title})]});return(0,l.jsx)(r.Z,{children:(0,l.jsx)(o.aF,{open:t,onClose:m,footer:{children:h},header:{title:null!=_?_:""},className:d().mobilePopup,size:"l",children:(0,l.jsx)("div",{className:d().container,children:g})})})});m.displayName="OfferInfoModal"},21436:e=>{e.exports={wrap:"styles_wrap__sO4jz",top_row:"styles_top_row__tbwJg",top_row_content:"styles_top_row_content__7Ptlp",top_row_buttons:"styles_top_row_buttons__t9wkS",action_button:"styles_action_button__gJuET",show_button:"styles_show_button__lgqXM",chips_row:"styles_chips_row__8KFdv",addon:"styles_addon__6LMjZ"}},24479:e=>{e.exports={offers:"microloan-showcase-page_offers__3Q9Sg",experts:"microloan-showcase-page_experts__W2lqj"}},26685:e=>{e.exports={commentText:"offer-terms_commentText__S3vmq"}},30409:(e,t,n)=>{"use strict";function l(e){return""!==e}n.d(t,{u:()=>l})},31070:e=>{e.exports={container:"styles_container__SqFUD",utpTags:"styles_utpTags__899sO",content:"styles_content__pxEzH",breadcrumbs:"styles_breadcrumbs__jH8EC",text:"styles_text__0SGL8",title:"styles_title__WaTv0",location:"styles_location__z_oKT",subtitle:"styles_subtitle__oSzuM",moreButton:"styles_moreButton___h8zi",banner:"styles_banner__6_J8S",background:"styles_background__KxgOM",newLayout:"styles_newLayout__iR_wy"}},34381:e=>{e.exports={content:"microloans-filter-content_content__K7JqT",form:"microloans-filter-content_form__ogqnK",wrap:"microloans-filter-content_wrap__Hhudh",sort_title:"microloans-filter-content_sort_title__gHJr3",sort_wrap:"microloans-filter-content_sort_wrap___bT0z",sort_field:"microloans-filter-content_sort_field__aQh0W",checkboxField:"microloans-filter-content_checkboxField__Oiv5X",footer:"microloans-filter-content_footer__qzk25",submit:"microloans-filter-content_submit__Z771C"}},34787:e=>{e.exports={page:"MicroloanDetail_page__fwC3C",breadcrumbs:"MicroloanDetail_breadcrumbs__kJk5w",navigationWrapper:"MicroloanDetail_navigationWrapper__La1jf",about:"MicroloanDetail_about__l4urE",pickerSection:"MicroloanDetail_pickerSection__iS8fN"}},36739:e=>{e.exports={microlans_header_title:"styles_microlans_header_title__QEPWq",wrap:"styles_wrap__c9dSd",title:"styles_title__M2KZv",link:"styles_link__lrBU4",breadcrumbs:"styles_breadcrumbs__zvuya",newBannerBreadcrumbs:"styles_newBannerBreadcrumbs__Jg8qQ",microlans_header_wrapper:"styles_microlans_header_wrapper__IaWyw",background:"styles_background__JuXp2",activeTag:"styles_activeTag__YYgIw",filterContainer:"styles_filterContainer__Ww77K"}},39912:(e,t,n)=>{"use strict";n.d(t,{U:()=>eN});var l=n(37876);n(37397),n(28131),n(3067),n(47334);var o=n(20988),a=n(48230),r=n.n(a),i=n(89099),s=n(14232),c=n(97563),u=n(10027),d=n(16891),m=n(31655),_=n(62576),p=n(83188),v=n(87162),f=n(5153),g=n(37105);let h=g.h.MICROZAJMY,b=[{id:1,label:"Условия",name:f.s1.conditions},{id:2,label:"Требования",name:f.s1.requirements},{id:3,label:"Погашения",name:f.s1.repayment}];var x=n(62728);let y=(0,s.memo)(e=>{var t;let{data:n,company:o,pageUrl:a}=e,{tabsContent:r,tabsList:i}=(e=>{let{data:t}=e,n=(0,s.useMemo)(()=>(0,f.Ux)(t),[t]),l=(0,s.useMemo)(()=>b.filter(e=>n[e.name].some(e=>(0,x.a)(e.value))),[n]);return{tabsContent:n,tabsList:l}})({data:n});return(0,l.jsx)(p.H,{scrollBlockId:v.uB,pageUrl:a,seoText:(null==n?void 0:n.short_description)&&(null==n?void 0:n.short_description.length)>5?null==n?void 0:n.short_description:void 0,title:"О займе",offerUpdateData:null==n?void 0:n.m_updated_at,bank:{logoMobile:null==o?void 0:o.logo_mob,description:null==o?void 0:o.short_description,url:"/mfo/".concat(null==o?void 0:o.url),name:null==o?void 0:o.name,registrationNumber:null==o||null==(t=o.legal_entities[0])?void 0:t.registration_number},tabsList:i,tabsContent:r,aboutCompanyLabel:"Об организации",site:o.site})});y.displayName="MicroloanAbout";var j=n(66295),w=n(78131);let N={src:"/kredity/assets/_next/static/media/banner-7.5a596896.svg",height:206,width:300,blurWidth:0,blurHeight:0};var C=n(14873),M=function(e){return e.LEAD="lead",e.MASS="mass",e}({});let k=(0,s.memo)(e=>{let{isMobile:t,offerType:n,url:o}=e,a=(0,s.useMemo)(()=>[{id:1,image:w.A,text:"Чтобы оформить этот заем, перейдите&#160;на сайт организации",buttonText:"Перейти на сайт",link:o,types:[M.LEAD]},{id:2,image:j.A,text:"Чтобы оформить этот заем, обратитесь в организацию",types:[M.MASS]},{id:3,image:N,text:"Посмотрите другие предложения о займах на Финуслугах",buttonText:n===M.LEAD?"Посмотреть другие предложения":"Посмотреть",link:"/".concat(g.h.MICROZAJMY),types:[M.LEAD,M.MASS]}].filter(e=>e.types.find(e=>e===n)),[o,n]);return(0,l.jsx)(C.N,{title:"Где оформить заем",pageUrl:g.h.MICROZAJMY,id:v.ov,isMobile:t,slides:a})});k.displayName="MicroloanApplySteps";var A=n(49995),S=n(30557);let L={src:"/kredity/assets/_next/static/media/app-qr-microloan-detail.c3b8ee45.svg",height:256,width:256,blurWidth:0,blurHeight:0};var T=n(5219),I=n(52841),R=n(63292),O=n(31257),P=n(79807),U=n(63921),F=n(53172),E=n(14552),z=n.n(E);let D="Где оформить заем",B="Не подходит предложение?",J=(0,s.memo)(e=>{let{data:t,className:n,isMobile:a,offerType:r,company:i,bannerUrl:c}=e,u=(0,U.o)(t.online_application.url,{offerId:String(t.id)}),m=(0,s.useMemo)(()=>{var e;let n=[];return n.push({label:"ПСК",value:(0,S.o)(t.full_price),description:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n    Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."},{label:"Процентная ставка",value:(0,P.sP)(Number(t.interest_rate.from),Number(t.interest_rate.to))}),(null==(e=t.repayment_procedure)?void 0:e.text)!==void 0&&n.push({label:"Погашение",value:t.repayment_procedure.text}),n.push({label:"Срок",value:"от ".concat(t.period.from," до ").concat(t.period.to," дней")}),n},[t.full_price,t.repayment_procedure,t.period.from,t.period.to,t.interest_rate]),_=(e,t)=>{(0,O._)({eventCategory:g.h.MICROZAJMY,eventAction:O.y.button,eventActionText:e}),(0,F.e)(t,{offset:a?0:-100,position:"top"})};return(0,l.jsxs)(d.J,{className:(0,A.A)(z().container,z().containerFull,n),children:[(0,l.jsxs)("div",{className:z().left,children:[(()=>{var e,n;return(0,l.jsx)(I.E,{url:t.url,bank:{logoMob:null==i?void 0:i.logo_mob,url:"/mfo/".concat(null==i?void 0:i.url),name:null!=(e=null==i?void 0:i.name)?e:t.mfo_name},pageUrl:g.h.MICROZAJMY,title:"Заем \xab".concat(t.title,"\xbb от ").concat(null!=(n=null==i?void 0:i.name)?n:t.mfo_name),isMobile:a,moreAboutLinkText:"Подробнее о займе",scrollBlockId:v.uB,isSmall:!0,className:z().promo})})(),(0,l.jsx)(R.P,{qr_image:L,bannerUrl:c,isSmall:!0,className:z().qrDesc})]}),(0,l.jsx)("div",{className:z().right,children:(0,l.jsx)(T.r,{captionTitle:"Получите сегодня",pageUrl:g.h.MICROZAJMY,amount:Number(t.amount.to),disclaimer:"Предварительные условия. Не оферта",tag:t.online_application.commercial_desc,tagTheme:"yellow",footerActions:(0,l.jsxs)(l.Fragment,{children:[r===M.LEAD&&(0,l.jsx)(o.$n,{rel:"nofollow",as:"a",variant:"primary",target:"_blank",className:z().button,href:u,onClick:()=>{(0,O._)({eventCategory:g.h.MICROZAJMY,eventAction:O.y.link,eventActionText:"Получить деньги"})},children:"Получить деньги"}),(r===M.LEAD||r===M.MASS)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.$n,{as:"a",variant:"secondary",className:z().button,onClick:()=>_(D,v.ov),children:D}),(0,l.jsx)("button",{onClick:()=>_(B,v.yB),className:(0,A.A)(z().button,z().buttonLink),children:B})]})]}),valuesList:m,className:z().computedBlock})})]})});J.displayName="MicroloanInfo";var q=n(40419),Y=n(3010),Z=n(16196),V=n(18108),W=n.n(V);let H=e=>{let{data:t}=e;if(!t)return null;let n=(0,f.At)(t);return(0,l.jsxs)("div",{className:W().content,children:[(0,l.jsx)("h3",{className:W().listTitle,children:"Параметры займа"}),(0,l.jsx)("ul",{className:W().list,children:null==n?void 0:n.params.map(e=>(0,l.jsx)(s.Fragment,{children:(0,l.jsx)(Z.o,{...e})},e.label))}),n&&n.terms.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{className:W().listTitle,children:"Условия"}),(0,l.jsx)("ul",{className:W().list,children:n.terms.map(e=>(0,l.jsx)(s.Fragment,{children:(0,l.jsx)(Z.o,{...e})},e.label))})]}),n&&n.company.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{className:W().listTitle,children:"Об организации"}),(0,l.jsx)("ul",{className:W().list,children:n.company.map(e=>(0,l.jsx)(s.Fragment,{children:(0,l.jsx)(Z.o,{...e})},e.label))})]})]})},K=e=>{var t,n,a,r,i,c;let u="Все условия по займу",d="Получить деньги",m=t=>{var n;(0,O._)({eventAction:O.y.link,eventActionText:t,eventCategory:e.mainPageUrl,eventLabel:null==(n=e.data)?void 0:n.id})};(0,s.useEffect)(()=>{var t,n,l,o;(null==(t=e.data)?void 0:t.mfo_name)&&(null==(n=e.data)?void 0:n.id)&&e.isOpen&&(0,O._)({eventAction:O.y.popup,eventActionText:null==(l=e.data)?void 0:l.mfo_name,eventCategory:e.mainPageUrl,eventLabel:null==(o=e.data)?void 0:o.id})},[e.isOpen,e.mainPageUrl,null==(t=e.data)?void 0:t.id,null==(n=e.data)?void 0:n.mfo_name]);let _=(0,l.jsxs)("div",{className:W().buttons,children:[(0,l.jsx)(o.$n,{as:"a",target:"_blank",variant:"secondary",href:"/".concat(g.h.MICROZAJMY,"/").concat(null==(a=e.data)?void 0:a.url),className:(0,A.A)(W().button,W().buttonSecondary),onClick:()=>m(u),children:u}),(0,l.jsx)(o.$n,{as:"a",target:"_blank",className:W().button,href:null==(r=e.data)?void 0:r.url,onClick:()=>m(d),children:d})]});return(0,l.jsx)(Y.Z,{children:(0,l.jsx)(o.aF,{open:e.isOpen,onClose:e.onClose,footer:{children:_},header:{title:null!=(c=null==(i=e.data)?void 0:i.mfo_name)?c:""},children:(0,l.jsx)("div",{className:W().container,children:(0,l.jsx)(H,{...e})})})})};var $=n(54587),G=n.n($),X=n(91063),Q=n(87087),ee=n(44694),et=n(83933),en=n.n(et);let el=(0,s.memo)(e=>{let{data:t,className:n,onDetailInfoClick:o,onClick:a,eventCategory:r}=e,i=[],c=(0,s.useRef)(null),u=(0,s.useRef)(!1),d=(0,s.useRef)(null),m={caption:"Сумма",text:(0,P.ej)({from:t.amountFrom,to:t.amountTo},{currency:t.currency})},_={caption:"Процентная ставка",text:(0,P.sP)(Number(t.rate),Number(t.rateTo))},p={caption:"Срок",text:"до ".concat(t.period," дней")};i.push({label:"Заем",variant:"orange"}),i.push({label:"Подача заявки на сайте организации",variant:"primary"}),t.isInstantlyMicroloan&&i.push({label:"Деньги мгновенно",variant:"primary"}),t.isFreeFirstMicroloan&&i.push({label:"0% на первый заем",variant:"primary"});let v=(0,s.useCallback)(()=>{(0,O._)({eventCategory:r,eventAction:O.y.button,eventActionText:"open_modal"}),o(t)},[t,r,o]),f=(0,s.useCallback)(e=>{let[n]=e;1===n.intersectionRatio&&!u.current&&((0,X.o)({event:"data-event",eventAction:"show_in_catalog",eventCategory:r,eventLabel:t.id}),u.current=!0,c.current&&d.current&&c.current.unobserve(d.current))},[t.id,r]);return(0,s.useEffect)(()=>{c.current&&d.current&&c.current.unobserve(d.current),!u.current&&d.current&&(c.current=new IntersectionObserver(f,{root:null,threshold:[1]}),c.current.observe(d.current))},[f]),(0,l.jsx)("div",{ref:d,className:n,onClick:()=>{var e;return e="click_button_".concat((0,Q.y)("Подать заявку")),void((0,X.o)({event:"data-event",eventAction:e,eventCategory:r,eventLabel:t.id,eventValue:t.eventValue}),null==a||a(t))},children:(0,l.jsx)(ee.M,{icon:t.logo?(0,l.jsx)("div",{className:en().logo,children:(0,l.jsx)(G(),{width:56,height:56,src:t.logo,alt:"logo"})}):(0,l.jsx)("div",{className:en().placeholderLogo}),companyName:t.bankName,productName:t.title,productUrl:t.url,buttonUrl:t.url,tags:i,advantageAmountFrom:m,advantageBonus:_,advantageAmountTo:p,onDetailInfoClick:v,className:en().plate})})});el.displayName="MicroloanListItem";var eo=n(96759);let ea=(e,t)=>{var n;let{microloan:l,isPlatform:o}=t,a="/".concat(e,"/").concat(l.url),r="",i="";return 1===l.online_application.commercial?i="commercial":(a=l.online_application.url,i="non_commercial"),r="Подача заявки на сайте организации",{id:l.id,bankName:l.mfo_name,isInstantlyMicroloan:"Быстрый способ получить деньги"===l.online_application.commercial_desc,isFreeFirstMicroloan:"Первый заем бесплатно"===l.online_application.commercial_desc,logo:null!=(n=l.logo_mob)?n:"",title:l.title,url:a,legalName:(e=>{if(e)try{let t=JSON.parse(e);if(Array.isArray(t))return t[0].name;return t.name}catch(t){return e}return""})(l.mfo_name),isPlatform:o,period:void 0!==l.period.to?Number(l.period.to):Number(l.period.from),rate:void 0===l.interest_rate.from?void 0:Number(l.interest_rate.from),rateTo:void 0===l.interest_rate.to?void 0:Number(l.interest_rate.from),currency:"₽",detailUrl:"/".concat(g.h.MICROZAJMY,"/").concat(l.url),typeText:r,eventValue:i,amountFrom:Number(l.amount.from),amountTo:Number(l.amount.to),site:l.site}};var er=n(33126),ei=n(91572),es=n(64028),ec=n.n(es);let eu=(0,s.memo)(e=>{let{mfoName:t,mfoUrl:n,currentMicroloanId:o,microloans:a,microloansFinuslugi:r,className:c,isNewApi:u}=e,[m,p]=(0,s.useState)(),f=(0,s.useCallback)(()=>{p(void 0)},[]),b=(0,s.useCallback)(e=>{(0,O._)({eventCategory:g.h.MICROZAJMY,eventAction:O.y.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},[]),x=(0,s.useMemo)(()=>{let e=a?a.filter(e=>e.id!==o):[];return(0,eo.q)({productList:e,anotherList:e,count:_.gx})},[a,o]),y=(0,s.useMemo)(()=>{let e=r||[];return(0,eo.q)({productList:e,anotherList:e,count:_.a0-x.length})},[x.length,r]),{asPath:j}=(0,i.useRouter)(),w=j.split("?")[0].split("/")[1],N=(0,s.useMemo)(()=>({bankList:x.map(e=>ea(w,{microloan:e,isPlatform:!0})).filter(e=>void 0!==e.rate||void 0!==e.rateTo),finuslugiList:y.map(e=>ea(w,{microloan:e,isPlatform:!0})).filter(e=>void 0!==e.rate||void 0!==e.rateTo)}),[x,y,w]),C=(0,s.useCallback)(async e=>{if(e)return(0,ei.BV)(e.url,u)},[u]),M=(0,s.useCallback)(async e=>{p(await C(e)),e&&(0,O._)({eventCategory:g.h.MICROZAJMY,eventAction:O.y.popup,eventActionText:e.title,eventLabel:e.id})},[C]),k="".concat((0,er.UK)().mainBaseUrl,"/mfo/").concat(n,"/mikrozajmy");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("section",{id:v.cA,className:(0,A.A)(ec().container,c),children:[(0,l.jsx)("h3",{className:ec().title,children:"Другие предложения"}),(0,l.jsxs)(d.J,{children:[!!N.bankList.length&&(0,l.jsxs)("section",{className:ec().offersListContainer,children:[(0,l.jsxs)("p",{className:ec().listTitle,children:["Займы онлайн от ",t]}),N.bankList.map(e=>(0,l.jsx)(s.Fragment,{children:(0,l.jsx)(el,{onDetailInfoClick:M,className:ec().listItem,data:e,onClick:b,eventCategory:h,text:"Подать заявку"},e.url)},e.id)),(0,l.jsx)(q.e,{offPadding:!0,text:"Bсе предложения от организации",href:k,target:"_blank",iconColor:"light",mainPageUrl:g.h.MICROZAJMY})]}),!!N.finuslugiList.length&&(0,l.jsxs)("section",{className:ec().offersListContainer,children:[(0,l.jsx)("p",{className:ec().listTitle,children:"Предложения на Финуслугах"}),N.finuslugiList.map(e=>(0,l.jsx)(s.Fragment,{children:(0,l.jsx)(el,{onDetailInfoClick:M,className:ec().listItem,data:e,onClick:b,eventCategory:h,text:"Подать заявку"},e.url)},e.id)),(0,l.jsx)(q.e,{offPadding:!0,text:"Bсе предложения на Финуслугах",href:"/".concat(w),target:"_blank",iconColor:"light",mainPageUrl:g.h.MICROZAJMY})]})]})]}),(0,l.jsx)(K,{data:m,isOpen:!!m,onClose:f,mainPageUrl:h})]})});eu.displayName="MicroloansList";var ed=n(75027),em=n(30228),e_=n(5552),ep=n(9837),ev=n(66460),ef=n(6980),eg=n(80490),eh=n(92666),eb=n(99275),ex=n(34787),ey=n.n(ex);function ej(e){var t,n,a;let{offer:p,journal:v,questions:f,company:b,refererTag:x,offers:j,offersFinuslugi:w,support:N,isNewApi:C}=e,{asPath:A}=(0,i.useRouter)(),{trackerBaseUrl:S}=(0,er.UK)(),L=(0,s.useMemo)(()=>({offerId:String(p.id)}),[p.id]),T=(0,U.o)(p.online_application.url,L),I=(0,U.o)("".concat(S,"/click.php?key=904186f18bc17d4be56b"),L),R=1===p.online_application.commercial?M.LEAD:M.MASS,O=(0,e_.sw)(),P=f.map(e=>({title:e.title,text:e.text.map(e=>e.data.html).join(""),plainText:e.text.map(e=>(0,c.NC)(e.data.html)).join("").trim()})),F=(0,em.I)(_.Js),E=(0,ed.I)({bannersTitle:[_.BZ.MICROLOAN_DETAIL],queryParams:F}),{region:z,town:D}=(0,eh.z)(),B="Займы в МФО ".concat(null!=(t=null==b?void 0:b.name)?t:p.mfo_name," - взять микрозайм онлайн. Условия и требования"),q="Займ в ".concat(null!=(n=null==b?void 0:b.name)?n:p.mfo_name," со ставкой от ").concat(p.interest_rate.from||0,"% онлайн наличными или на карту. Полные условия и информация о МФО ").concat(null!=(a=null==b?void 0:b.name)?a:p.mfo_name," - требования и реквизиты онлайн на Финуслугах"),{mainBaseUrl:Y}=(0,er.UK)();return(0,l.jsxs)("main",{className:ey().page,children:[(0,l.jsx)(u.I,{title:B,description:q,productId:String(p.id)}),(0,l.jsx)(ev.t,{}),(0,l.jsx)(ep.c,{questions:P}),(0,l.jsx)("div",{className:ey().navigationWrapper,children:(0,l.jsx)(d.J,{children:(0,l.jsx)(o.BI,{className:ey().breadcrumbs,items:(()=>{var e;let t=(null==D?void 0:D.name_p)||(null==z?void 0:z.name_p)?" в ".concat((null==D?void 0:D.name_p)||(null==z?void 0:z.name_p)):"",n="".concat((null==z?void 0:z.url)?"/reg_".concat(null==z?void 0:z.url):"").concat((null==D?void 0:D.url)?"/".concat(null==D?void 0:D.url):""),l=A.split("?")[0].split("/")[1],o=[{label:"Главная",href:"/"},{label:"Займы".concat(t),href:"/".concat(l).concat(n)}];return x&&o.push({label:"".concat(x.name).concat(t),href:"/".concat(l,"/teg_").concat(x.url).concat(n)}),o.push({label:"".concat(null!=(e=null==b?void 0:b.name)?e:p.mfo_name," Заем ").concat(p.title)}),o})()})})}),(0,l.jsx)(J,{bannerUrl:E.microload_detail,offerType:R,isMobile:O,className:ey().info,data:p,company:b}),(0,l.jsx)(d.J,{className:ey().about,children:(0,l.jsx)(y,{data:p,company:b,pageUrl:g.h.MICROZAJMY})}),(0,l.jsx)(k,{url:T,offerType:R,isMobile:O}),(0,l.jsx)(eu,{mfoName:p.mfo_name,mfoUrl:p.mfo_url,currentMicroloanId:p.id,microloans:j,microloansFinuslugi:w,isNewApi:C}),(0,l.jsx)(m.T,{url:I,mainPageUrl:h,text:"Посмотрите ТОП выгодных предложений по срочным займам с онлайн-заявкой и ставками от 0%"}),(null==v?void 0:v.posts.length)>0&&(0,l.jsx)(ef.C,{posts:null==v?void 0:v.posts,eventCategory:g.h.MICROZAJMY}),(0,l.jsx)(eg.E,{value:N}),(0,l.jsx)(eb.m,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,l.jsx)(r(),{...e}),dataLayerPush:X.o,questions:P,eventCategory:"credits_support_block",href:"".concat(Y,"/help/credits"),checkAllText:"Читать все вопросы про займы"})]})}n(12771),n(57706),n(81787);var ew=n(23857);function eN(e){let{offer:t,journal:n,questions:o,company:a,offers:r,offersFinuslugi:i,layout:s,refererTag:c,support:u,isNewApi:d}=e;return(0,l.jsx)(ew.P,{data:s,children:(0,l.jsx)(ej,{offer:t,company:a,offers:r,offersFinuslugi:i,journal:n,questions:o,refererTag:c,support:u,isNewApi:d})})}n(7455)},40090:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var l=n(37876),o=n(20988);function a(e){let{label:t,options:n,values:a,className:r,onChange:i}=e,s=null==a?void 0:a.reduce((e,t)=>{let l=n.find(e=>String(e.value)===String(t));return l&&e.push(l),e},[]);return(0,l.jsx)(o.l6,{className:r,label:t,options:n,value:null!=s?s:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,onChange:e=>{i(e?e.map(e=>e.value):void 0)},multiple:!0})}},40818:(e,t,n)=>{"use strict";n.d(t,{Be:()=>o,PA:()=>u,So:()=>l,ZA:()=>i,eb:()=>_,fy:()=>m,l5:()=>c,mr:()=>r,ni:()=>d,s:()=>s,v_:()=>a});let l="Ежемесячный платеж до",o="Сумма кредита",a=20,r=[{value:0,label:"Не имеет значения"},{value:1,label:"1 месяц"},{value:2,label:"2 месяца"},{value:3,label:"3 месяца"},{value:4,label:"4 месяца"},{value:5,label:"5 месяцев"},{value:6,label:"6 месяцев"},{value:9,label:"9 месяцев"},{value:12,label:"1 год"},{value:18,label:"1,5 года"},{value:24,label:"2 года"},{value:36,label:"3 года"},{value:48,label:"4 года"},{value:60,label:"5 лет"}],i={pp:"edzc",ps:"foam",p2:"hojk"},s=[{label:"По популярности",field:"order"},{label:"По ставке",field:"rate"},{label:"По платежу",field:"payment"}],c=[{value:"null",label:"Не имеет значения"},{value:"refinancing",label:"Рефинансирование"},{value:"education",label:"На образование"},{value:"treatment",label:"На лечение"},{value:"travels",label:"На путешествия"},{value:"repairs",label:"На ремонт"},{value:"other",label:"Просто деньги"}],u=[{value:"employee_for_hire",label:"Работник по найму"},{value:"soldier",label:"Военнослужащий"},{value:"pensioner",label:"Пенсионер"},{value:"individual_entrepreneur",label:"Индивидуальный предприниматель"},{value:"civil_servant",label:"Госслужащий"},{value:"student",label:"Студент"},{value:"budgetary",label:"Бюджетник"},{value:"personal_farm_owner",label:"Владелец личного подсобного хозяйства"},{value:"nothing",label:"Иное"}],d=[{value:"not_required",label:"Не требуется"},{value:"pledge",label:"Залог"},{value:"guarantee",label:"Поручительство"},{value:"full",label:"Залог и поручительство"}],m=[{value:"to_account",label:"На счет в вашем банке"},{value:"to_custom_account",label:"На счет в стороннем банке"},{value:"to_card",label:"На карту"},{value:"cash",label:"Наличными"}],_=[{value:"not_required",label:"Не требуется"},{value:"ndfl",label:"Справка 2-НДФЛ"},{value:"bank_form",label:"Справка по форме банка"},{value:"custom_form",label:"Альтернативные формы"}]},47334:(e,t,n)=>{"use strict";n.d(t,{kV:()=>N,u_:()=>w,kN:()=>C});var l=n(12771),o=n(73584),a=n(28131),r=n(30409),i=n(68204),s=n(3187);async function c(e){let t=d(e),n=await (0,l.ZP)("old/microloans?".concat(t));return{...n,microCredits:n.microCredits.filter(e=>void 0!==e.mfo_url)}}var u=function(e){return e.Archive="archive",e.Commercial="commercial",e.Tag="tag",e.Region="region",e.Town="town",e.Amount="amount",e.Form="form",e.Period="period",e.Borrower="borrower",e.Registration="registration",e.Collateral="loan",e.Banks="bank",e.Online="online",e.Sort="sort",e.Order="order",e.Page="page",e.Limit="limit",e}(u||{});function d(e){let{tagUrl:t,regionUrl:n,townUrl:l,amount:o,form:a,period:r,borrower:i,registration:c,collateral:u,banks:d,online:m,sort:_,order:p,page:v,pageSize:f,commercial:g}=e,h=new URLSearchParams({archive:"0"});return void 0!==g&&h.set("commercial",String(g)),void 0!==t&&h.set("tag",t),void 0!==n&&h.set("region",n),void 0!==l&&h.set("town",l),void 0!==o&&h.set("amount",String(o)),void 0!==a&&h.set("form",a),void 0!==r&&h.set("period",String(r)),void 0!==i&&h.set("borrower",i),void 0!==c&&h.set("registration",c),void 0!==t&&void 0!==u&&h.set("loan",u),void 0!==d&&h.set("bank",(0,s.t9)(d)),void 0!==m&&h.set("online",m),void 0!==_&&h.set("sort",_),void 0!==p&&h.set("order",p),void 0!==v&&h.set("page",String(v)),h.set("limit",void 0!==f?String(f):"9999"),h}var m=n(55511),_=n(66547),p=n(25334),v=n(27411);async function f(e){var t;return Date.now()>=(null!=(t=g.expires.get(e))?t:0)?(g.expires.set(e,function(){let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1,0,0,0,0).getTime()}()),g.update(e,e)):g.getOrUpdate(e,e)}let g=new o.A(h);async function h(e){let t=e?c:m.bd,n=await t({}),l={master_podbora_zajmov:{rating:"4.87",approvalStatus:_.Q.High}};return n.microCredits.forEach((e,t)=>{let n=e.mfo_url,o=e.online_application;void 0===l[n]?l[n]=function(e,t,n){let l=(0,p.i)(e,1!==n.commercial),o=(0,v.GD)(t,l),a=b(n)?_.Q.VeryHigh:(0,_.y)(l,o);return{rating:Number(o/100).toFixed(2),approvalStatus:a}}(t+1,n,o):b(o)&&(l[n].approvalStatus=_.Q.VeryHigh)}),l}function b(e){return 1===e.commercial&&1===e.best_offer}async function x(e){let[t,n]=await Promise.all([c(e),f(!0)]);if(void 0!==e.page&&1!==e.page&&0===t.microCredits.length)throw new a.m_("Invalid microloans page: ".concat(e.page));return function(e,t){var n,l;let{subtitle:o,title:a,description:s,microCredits_count:c,microCredits:u}=e;return{subtitle:o,title:a,description:s,count:c,offers:(n=u,l=t,n.sort((e,t)=>{var n,l;let{online_application:o}=e,{online_application:a}=t;return(null!=(n=a.best_offer_catalogue)?n:0)-(null!=(l=o.best_offer_catalogue)?l:0)||(o.order||1/0)-(a.order||1/0)}).map(e=>(function(e,t){let{id:n,url:l,title:o,term_without_percents:a,mfo_url:s,mfo_name:c,logo_mob:u,logo_mob_png:d,site:m,online_application:_,interest_rate:p,amount:v,period:f,legal_name:g,full_price:h,bank_id:b}=e,{approvalStatus:x,rating:y}=t[s],j={id:n,url:l,title:o,mfo_url:s,mfo_name:c,approvalStatus:x,rating:y,online_application:(0,i.eg)(_),interest_rate:(0,i.Nh)(p),amount:(0,i.X8)(v),period:(0,i.I1)(f),bank_id:b,full_price:{from:Number(h.from),to:Number(h.to)}};void 0!==m.title&&(j.site=m.title),void 0!==g&&(j.legal_name=g),void 0!==a&&(j.term_without_percents=a);let w=(0,i.O$)({logo_mob:u,logo_mob_png:d});return void 0!==w&&(0,r.u)(w)&&(j.logo_mob=w),j})(e,l)))}}(t,n)}var y=n(91572);function j(e){return(0,y.TR)(e.full_price)&&(0,y.M$)(e.interest_rate)&&(0,r.u)(e.online_application.url)}function w(e,t){if(t){let t=d(e);return(0,l.pY)("microloans-new/offers?".concat(t))}let n=d(e);return(0,l.pY)("microloans/offers?".concat(n))}let N=48;function C(e,t){let{tagUrl:n,regionUrl:l,townUrl:o,page:a,pageSize:r,...i}=e;return 1===a&&r===N&&0===Object.values(i).length?M.getOrUpdate("".concat(n).concat(l).concat(o).concat(t),{...e,isNewApi:t}):k({...e,isNewApi:t})}let M=new o.A(k,3e4);async function k(e){let{isNewApi:t,...n}=e;if(t)return x(n);let[l,o]=await Promise.all([(0,m.bd)(n),f(!1)]);if(void 0!==n.page&&1!==n.page&&0===l.microCredits.length)throw new a.m_("Invalid microloans page: ".concat(n.page));return function(e,t){var n,l;let{subtitle:o,title:a,description:i,microCredits_count:s,microCredits:c}=e;return{subtitle:o,title:a,description:i,count:s,offers:(n=c,l=t,n.filter(j).sort((e,t)=>{var n,l;let{online_application:o}=e,{online_application:a}=t;return(null!=(n=a.best_offer_catalogue)?n:0)-(null!=(l=o.best_offer_catalogue)?l:0)||(o.order||1/0)-(a.order||1/0)}).map(e=>(function(e,t){let{approvalStatus:n,rating:l}=t[e.mfo_url],o=(0,y.Im)(e.online_application),a=(0,y.$A)(e.interest_rate),i=(0,y.b8)(e.amount),s=(0,y.gI)(e.period),c={id:String(e.id),url:e.url,title:e.title,mfo_url:e.mfo_url,mfo_name:e.mfo_name,approvalStatus:n,rating:l,online_application:o,interest_rate:a,amount:i,period:s,legal_name:e.legal_name,bank_id:String(e.bank_id),full_price:(0,y.P)(e.full_price)};(0,r.u)(e.site.title)&&(c.site=e.site.title),null!==e.term_without_percents&&(c.term_without_percents=e.term_without_percents);let u=(0,y.q8)({logo_mob:e.logo_mob,logo_mob_png:e.logo_mob_png});return void 0!==u&&(c.logo_mob=u),c})(e,l)))}}(l,o)}},55511:(e,t,n)=>{"use strict";n.d(t,{bd:()=>a,dO:()=>i});var l=n(12771),o=n(3187);function a(e){let t=function(e){let{tagUrl:t,regionUrl:n,townUrl:l,amount:a,form:r,period:i,borrower:s,registration:c,collateral:u,banks:d,online:m,sort:_,order:p,page:v,pageSize:f,commercial:g}=e,h=new URLSearchParams({archive:"0"});return void 0!==t&&h.set("tag",t),void 0!==n&&h.set("region",n),void 0!==l&&h.set("town",l),void 0!==a&&h.set("amount",String(a)),void 0!==r&&h.set("form",r),void 0!==i&&h.set("period",String(i)),void 0!==s&&h.set("borrower",s),void 0!==c&&h.set("registration",c),void 0!==t&&h.set("loan",null!=u?u:function(e){switch(e){case"pod_zalog_pts":case"pod_zalog_nedvizhimosti":return"pledge";default:return"not_required"}}(t)),void 0!==d&&h.set("bank",(0,o.t9)(d)),void 0!==m&&h.set("online",m),void 0!==_&&h.set("sort",_),void 0!==p&&h.set("order",p),void 0!==v&&h.set("page",String(v)),void 0!==f&&h.set("limit",String(f)),void 0!==g&&h.set("commercial",String(g)),h}(e);return(0,l.zy)("MicroCredits.json?".concat(t))}var r=function(e){return e.Archive="archive",e.Tag="tag",e.Region="region",e.Town="town",e.Amount="amount",e.Form="form",e.Period="period",e.Borrower="borrower",e.Registration="registration",e.Collateral="loan",e.Banks="bank",e.Online="online",e.Sort="sort",e.Order="order",e.Page="page",e.Limit="limit",e.Commercial="commercial",e}(r||{}),i=function(e){return e.NotRequired="not_required",e.Pledge="pledge",e.Guarantee="guarantee",e.Full="full",e}({})},57706:(e,t,n)=>{"use strict";var l=n(12771),o=n(73584),a=n(44837),r=n(84883),i=n(2510);async function s(){var e,t;let[n,o,s]=await Promise.all([(0,l.ZP)("microloan-tags"),(0,a.B)(),(0,r.I)()]),c={...s,...o};return e=n.data,t=c,e.reduce((e,n)=>(n.url!==i.Z2&&e.set(n.url,function(e,t){let{tagName:n,url:l}=e,o={name:n,url:l};return void 0!==t[l]&&(o.url_redirect=t[l]),o}(n,t)),e),new Map)}var c=n(23517);async function u(e){return e?s():(await (0,l.zy)("MicroCredits.json?tags&short=1")).microCredit_tags.reduce((e,t)=>(t.name!==i.Z2&&e.set(t.url,function(e){let{tag_name:t,url:n,url_redirect:l}=e,o={name:t,url:n},a=(0,c.Y)(l);return void 0!==a&&(o.url_redirect=a),o}(t)),e),new Map)}new o.A(u)},59099:e=>{e.exports={wrap:"styles_wrap__zGoxX",promotion_wrap:"styles_promotion_wrap___UiH4",bottom_row:"styles_bottom_row__MIbl4",promotion_caption:"styles_promotion_caption__OzMss",getMoneyDesktop:"styles_getMoneyDesktop__32OYR",getMoneyMobile:"styles_getMoneyMobile__KWFzD"}},62728:(e,t,n)=>{"use strict";function l(e){return"object"==typeof e&&null!==e?!!(e.comment||e.text):!!e}function o(e){return"number"==typeof e||(Array.isArray(e)?e.some(e=>l(e)):l(e))}n.d(t,{a:()=>o})},64028:e=>{e.exports={title:"MicroloansList_title__wkvYc",offersListContainer:"MicroloansList_offersListContainer__Bm7PI",listTitle:"MicroloansList_listTitle__k43ax",container:"MicroloansList_container__EdR8r",listItem:"MicroloansList_listItem__p1IVR"}},64345:e=>{e.exports={title:"styles_title__cObN3",list_wrap:"styles_list_wrap__z3_y1",content:"styles_content__tWscR",sort_content:"styles_sort_content__tPWO7",right_block:"styles_right_block__XypvM",viewed_offers_toggle:"styles_viewed_offers_toggle__C0ym7",subtitle:"styles_subtitle__RcERK",sort_label:"styles_sort_label__faPeq",dropdown_wrapper:"styles_dropdown_wrapper__Aj2XD"}},68204:(e,t,n)=>{"use strict";n.d(t,{I1:()=>d,Nh:()=>c,O$:()=>i,VX:()=>r,X8:()=>u,eg:()=>s});var l=n(12771),o=n(30409),a=n(3187);function r(e){return(0,l.pY)("microloans-new/offer?url=".concat(e))}function i(e){let{logo_mob:t,logo_mob_png:n}=e;return void 0!==t&&(0,a.vh)(t)?t:void 0!==n&&(0,a.vh)(n)?n:void 0}function s(e){let{url:t,commercial:n,commercial_desc:l,best_offer_catalogue:o}=e,a={type:1,url:t,commercial:n};return void 0!==l&&(a.commercial_desc=l),void 0!==o&&(a.best_offer_catalogue=o),a}function c(e){let{comment:t,...n}=e,l=m(n);return void 0!==t&&(0,o.u)(t)&&(l.comment=t),l}function u(e){let t=m(e);return void 0!==e.comment&&(0,o.u)(e.comment)&&(t.comment=e.comment),t}function d(e){let t=m(e);return void 0!==e.comment&&(0,o.u)(e.comment)&&(t.comment=e.comment),t}function m(e){return void 0===e.from?{to:Number(e.to)}:void 0!==e.to?{from:Number(e.from),to:Number(e.to)}:{from:Number(e.from)}}},69816:e=>{e.exports={card:"styles_card__wXsH1",skeletonCard:"styles_skeletonCard___H_IA",cards_list:"styles_cards_list__73nSr"}},72541:e=>{e.exports={text_title:"styles_text_title__wo_7e",black_wrap:"styles_black_wrap__GvJW8",content:"styles_content__p5eXM",two_card_content:"styles_two_card_content__EpaJK",text:"styles_text__1Rgtf",one_card_content:"styles_one_card_content__bV3fB",text_subtitle:"styles_text_subtitle__Y8Wsu",card:"styles_card__bG7PC"}},75414:(e,t,n)=>{"use strict";n.d(t,{F:()=>nn});var l=n(37876),o=n(89099),a=n(14232),r=n(10027),i=n(16891),s=n(37105),c=n(49995),u=n(24523),d=n(72080),m=n(20988),_=n(75972),p=n(21436),v=n.n(p);let f=(0,a.memo)(e=>{let{children:t,filterRef:n,count:o,isLoading:a,chips:r,onParamsClick:i,onShowClick:s}=e;return(0,l.jsx)("div",{className:v().wrap,ref:n,children:(0,l.jsxs)("div",{className:v().top_row,children:[(0,l.jsx)("div",{className:v().top_row_content,children:t}),(0,l.jsx)("div",{className:v().top_row_buttons,children:(0,l.jsx)(m.$n,{size:"m",onClick:s,className:v().show_button,pending:a,disabled:a,label:"Показать".concat(o?" ".concat(o):"")})}),(0,l.jsx)("div",{className:v().chips_row,children:(0,l.jsx)(_.P,{chips:r,onParamsClick:i,useLinkChips:!0})})]})})});f.displayName="MainFilter";var g=n(3207),h=n(87622),b=n.n(h),x=n(62835),y=n(40818),j=n(31257),w=n(47052),N=n(38200),C=n(33126),M=n(5552),k=n(67347),A=n(92666),S=n(25904),L=n(84980),T=n.n(L);let I=[{iconLeft:(0,l.jsx)(S.IconFdsCoatOfArmsRussiaF,{}),label:"Наша финансовая платформа в реестре Банка России",rounded:!0},{iconLeft:(0,l.jsx)(S.IconFdsShieldCheckO,{}),label:"Данные защищены и передаются зашифровано",rounded:!0},{iconLeft:(0,l.jsx)(S.IconFdsOctostarCheckO,{}),label:"Все наши партнеры имеют лицензию ЦБ РФ",rounded:!0}];function R(e){let{className:t}=e;return(0,l.jsxs)("div",{className:(0,c.A)(T().container,t),children:[I.map(e=>(0,l.jsx)(m.vw,{...e},e.label))," "]})}var O=n(31070),P=n.n(O);let U=(0,a.memo)(e=>{let{heading:t,subtitle:n,tag:r,className:s}=e,{handleToggleModal:u}=(0,g.u)(),d=(0,w.Y)(),_=(0,M.sw)(),{asPath:p}=(0,o.useRouter)(),v=(0,N.G)(),{region:f,town:h}=(0,A.z)(),S="/".concat(p.split("?")[0].split("/")[1]),L=(null==h?void 0:h.name_p)||(null==f?void 0:f.name_p),T=L?" в ".concat(L):"",I="".concat(f?"/reg_".concat(f.url):"").concat(h?"/".concat(h.url):""),{mainBaseUrl:O}=(0,C.UK)(),U=((e,t,n,l,o,a)=>{let r='{"@type":"ListItem","position":1,"name":"Финуслуги","item":"'.concat(e,'"}'),i='{"@type":"ListItem","position":2,"name":"Микрозаймы'.concat(l,'","item":"').concat(e,"/\n      ").concat(o).concat(a,'\n      "}'),s=t?',{"@type":"ListItem","position":3,"name":"&#128181 '.concat(n).concat(l,'","item":"').concat(e,"/").concat(o).concat(t?"/teg_".concat(t.url):"").concat(a,'"}'):"";return"{".concat('"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":['.concat(r),",").concat(i).concat(s,"]}")})(O,r,t,T,S,I),F=(0,a.useCallback)(()=>{(0,j._)({eventAction:j.y.link,eventActionText:"glavnaya",url:O})},[O]),E=(0,a.useCallback)(()=>{u(!0),(0,j._)({eventAction:j.y.popup,eventActionText:"region_".concat(L)})},[L,u]);return(0,l.jsxs)("div",{className:(0,c.A)(s),children:[(0,l.jsx)("div",{className:(0,c.A)(P().background,P().newLayout,"bg-".concat(v))}),(0,l.jsxs)(i.J,{children:[(0,l.jsxs)("div",{className:(0,c.A)(P().breadcrumbs),children:[(0,l.jsx)(m.BI,{className:P().breadcrumbs,items:(()=>{let e=[{label:"Главная",href:"/"}];return r&&e.push({label:"Микрозаймы".concat(T),href:"".concat(S).concat(I)}),e.push({label:"".concat(t).concat(r?"":T)}),e})(),isMobile:_,onClick:F}),(0,l.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:U}})]}),(0,l.jsxs)("div",{className:P().container,children:[(0,l.jsxs)("div",{className:P().content,children:[(0,l.jsxs)("div",{className:P().text,children:[(0,l.jsxs)("h1",{className:P().title,children:[t," ",L&&(0,l.jsxs)(l.Fragment,{children:["в"," ",(0,l.jsx)("span",{onClick:E,className:P().location,children:L})]})]}),(0,l.jsx)(k.j,{tag:"p",className:b().subtitle,children:n})]}),(0,l.jsx)("div",{className:P().banner,children:(0,l.jsx)(x.L,{config:d,params:y.ZA})})]}),(0,l.jsx)(R,{className:P().utpTags})]})]})]})});U.displayName="PageHeading";var F=n(69932),E=n(41771),z=n(87057),D=n(11404),B=n(4149),J=n(48673),q=n(87768),Y=n(87087),Z=n(55511);let V=[{value:"cash",label:"Наличными"},{value:"to_account",label:"На счет"},{value:"to_card",label:"На карту"}],W=[{value:0,label:"Не имеет значения"},{value:1,label:"1 месяц"},{value:2,label:"2 месяца"},{value:3,label:"3 месяца"},{value:4,label:"4 месяца"},{value:5,label:"5 месяцев"},{value:6,label:"6 месяцев"},{value:9,label:"9 месяцев"},{value:12,label:"1 год"},{value:18,label:"1,5 года"},{value:24,label:"2 года"},{value:36,label:"3 года"},{value:48,label:"4 года"},{value:60,label:"5 лет"}],H=[{value:"not_required",label:"Не требуется"},{value:"permanent",label:"Постоянная"},{value:"temp",label:"Временная"}],K=[{value:Z.dO.NotRequired,label:"Не требуется"},{value:Z.dO.Pledge,label:"Залог"},{value:Z.dO.Guarantee,label:"Поручительство"},{value:Z.dO.Full,label:"Залог и поручительство"}],$=[{value:"pensioner",label:"Пенсионер"},{value:"employee_for_hire",label:"Работник по найму"},{value:"individual_entrepreneur",label:"Индивидуальный предприниматель"},{value:"civil_servant",label:"Госслужащий"},{value:"soldier",label:"Военнослужащий"},{value:"student",label:"Студент"}],G=[{label:"Подача заявки онлайн",value:"1"}],X=[{label:"Сначала популярные",value:"order"},{label:"По ставке",value:"rate"},{label:"По сумме",value:"amount"}];var Q=n(15462),ee=n(40090),et=n(9640),en=n(34381),el=n.n(en);let eo=(0,u.O)(),ea=(0,a.memo)(e=>{let{mfos:t,filter:n,onChange:o}=e,a=(e,t,n)=>{!function(e,t){eo(()=>(0,j._)({eventAction:j.y.filterCatalog,eventCategory:j.y.filterCatalog,eventLabel:(0,Y.y)(e),eventValue:"string"==typeof t?t:JSON.stringify(t)}))}(n,t),o({[e]:t})};return(0,l.jsxs)("div",{className:el().content,children:[(0,l.jsxs)("div",{className:el().form,children:[(0,l.jsx)("div",{className:el().wrap,children:(0,l.jsx)(et.l,{label:"Форма выдачи",options:V,value:n.form,onChange:e=>a("form",e,"Форма выдачи")})}),(0,l.jsx)("div",{className:el().wrap,children:(0,l.jsx)(z.F,{label:"Сумма",value:n.amount,onChange:e=>{a("amount",void 0!==e&&0!==e?Math.abs(e):void 0,"Сумма")}})}),(0,l.jsx)("div",{className:el().wrap,children:(0,l.jsx)(et.l,{label:"Срок",options:W,value:n.period,onChange:e=>a("period",e,"Срок")})}),(0,l.jsx)("div",{className:el().wrap,children:(0,l.jsx)(et.l,{label:"Категория заемщика",options:$,value:n.borrower,onChange:e=>a("borrower",e,"Категория заемщика")})}),(0,l.jsx)("div",{className:el().wrap,children:(0,l.jsx)(et.l,{label:"Регистрация",options:H,value:n.registration,onChange:e=>a("registration",e,"Регистрация")})}),(0,l.jsx)("div",{className:el().wrap,children:(0,l.jsx)(et.l,{label:"Обеспечение",options:K,value:n.collateral,onChange:e=>a("collateral",e,"Обеспечение")})}),(0,l.jsx)("div",{className:el().wrap,children:(0,l.jsx)(ee.L,{label:"МФО",options:t,values:n.banks,onChange:e=>a("banks",e,"МФО")})})]}),(0,l.jsx)("div",{className:el().wrap,children:(0,l.jsxs)("div",{className:el().sort,children:[(0,l.jsx)("h3",{className:el().sort_title,children:"Дополнительно"}),G.map((e,t)=>{var o;return(0,l.jsx)("div",{className:el().fieldWrapper,children:(0,l.jsx)(m.Sc,{className:el().checkboxField,value:null==(o=n.online)?void 0:o.includes(e.value),label:e.label,onChange:()=>{var t,l;return a("online",(0,Q.L$)(null!=(l=null==(t=n.online)?void 0:t.split(","))?l:[],e.value).join(","),"Дополнительно")}})},t)})]})}),(0,l.jsx)("div",{className:el().wrap,children:(0,l.jsxs)("div",{className:el().sort,children:[(0,l.jsx)("h3",{className:el().sort_title,children:"Сортировка"}),X.map((e,t)=>(0,l.jsx)("div",{className:el().sort_wrap,children:(0,l.jsx)(m.sx,{name:"radio",value:n.sort,label:e.label,checked:n.sort===e.value,className:el().checkboxField,onChange:()=>a("sort",e.value,"Сортировка")})},t))]})})]})});ea.displayName="MicroloansFilterContent";let er=(0,a.memo)(e=>{let{mfos:t,visible:n,offersCount:o,filter:a,onHide:r,onChange:i,onDrop:c,onShow:u}=e;return(0,l.jsx)(q.K,{count:o,isOpen:n,isMobile:!1,pageUrl:s.h.MICROZAJMY,title:"Все параметры",onCLickShow:()=>u(),onClose:r,onClickReset:()=>c(),children:(0,l.jsx)(ea,{filter:a,mfos:t,onChange:i})})});er.displayName="MicroloansFilterModal";var ei=n(38813),es=n(36739),ec=n.n(es);let eu=["onlajn_na_kartu","bez_otkaza","srochnye_onlajn","bez_procentov","s_plohoj_kreditnoj_istoriej","do_zarplaty","po_telefonu","bez_pasporta","na_kartu_mgnovenno","pod_zalog_pts","kruglosutochno"],ed=(0,u.O)(),em=(0,a.memo)(e=>{let{heading:t,subtitle:n,tag:r,filter:u,mfos:m,tags:_,offersCount:p,showcaseUrl:v=s.h.MICROZAJMY,onFilterChange:g,onFilterApply:h,onFilterShow:b}=e,{push:x}=(0,o.useRouter)(),{visible:y,show:j,hide:w}=(0,D.g)(),{ref:N,isSticky:C}=(0,E.x)(),{region:M,town:k}=(0,A.z)(),S=(0,ei._)(),L=(0,a.useMemo)(()=>m.map(e=>({value:e.id,label:e.name})),[m]);(0,a.useEffect)(()=>{y&&b()},[b,y]);let T=(0,a.useMemo)(()=>(function(e,t,n){let l={form:{label:"Форма выдачи",options:V},amount:{label:"Сумма"},period:{label:"Срок",options:W},borrower:{label:"Категория заемщика",options:$},registration:{label:"Регистрация",options:H},collateral:{label:"Обеспечение",options:K},banks:{label:"МФО",options:t},online:{label:"Дополнительно",options:[{label:"Подача заявки онлайн",value:"1"}]},sort:{label:"Сортировка",options:X}};return Object.entries(e).reduce((e,t)=>{let[o,a]=t;if(a&&"order"!==o){let t=l[o];if(Array.isArray(a))a.forEach(l=>{var o;null==(o=t.options)||o.forEach(t=>{l===t.value&&e.push({value:String(l),label:"".concat(t.label),color:"default",onChipClick:n})})});else{var r,i;let l="amount"===o?"".concat(a," ₽"):null==(i=t.options)||null==(r=i.find(e=>e.value===a))?void 0:r.label;e.push({value:null!=l?l:String(a),label:"".concat(t.label,": ").concat(l),color:"default",onChipClick:n})}}return e},[])})(u,L,j),[L,u,j]),I=(0,a.useCallback)(e=>{x(S(e),void 0,{shallow:!0})},[x,S]),R=(0,a.useMemo)(()=>{let e=(0,B.$)(_,"url");return eu.reduce((t,n)=>{let l=e[n];return void 0!==l&&t.push(l),t},[])},[_]),O=(0,a.useMemo)(()=>R.map(e=>{let t=e.url_redirect||e.url,n=(null==r?void 0:r.url)===t;return{value:(0,d.b)(v,n?void 0:e,M,k),label:e.name,color:n?"black":"default",onChipClick:I}}),[R,null==r?void 0:r.url,v,M,k,I]),[P,q]=(0,a.useState)(u);(0,J.w5)(()=>{q(u)},[u]),(0,J.w5)(()=>{q(e=>{let t={...e,sort:u.sort,order:u.order};return ed(()=>{g(t)}),t})},[u.sort,u.order,g]);let Y=(0,a.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;q(e=>{let n={...e,amount:t};return ed(()=>{g(n)}),n})},[g]),Z=(0,a.useCallback)(()=>{q({}),h({}),g({})},[h,g]),G=(0,a.useCallback)(()=>{h(P)},[P,h]),Q=(0,a.useCallback)(()=>{w(),G()},[w,G]),ee=(0,a.useCallback)(e=>{q(t=>{let n={...t,...e};return ed(()=>{g(n)}),n})},[g]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(U,{heading:t,subtitle:n,tag:r}),(0,l.jsxs)(i.J,{className:(0,c.A)(ec().wrap,ec().filterContainer,{[ec().wrapSticky]:C}),children:[(0,l.jsx)(f,{filterRef:N,count:p,chips:O,onParamsClick:j,onShowClick:G,children:(0,l.jsx)(z.F,{label:"Сумма",value:P.amount,onChange:Y})}),(0,l.jsx)(er,{visible:y,offersCount:p,filter:P,mfos:L,onChange:ee,onHide:w,onDrop:Z,onShow:Q})]}),C&&(0,l.jsx)(F.W,{chips:T,onParamsClick:j})]})});em.displayName="MfoFilter";var e_=n(87783),ep=n(60650),ev=n(91063),ef=n(18315),eg=n(63921);function eh(e,t,n){let l=1!==e.online_application.commercial&&void 0!==t.redirect_to?t.redirect_to:e.online_application.url;return(0,eg.o)(l,n)}var eb=n(91572),ex=n(30557),ey=n(79807),ej=n(12837);function ew(e){return{sectionTitle:"Параметры займа",body:e}}function eN(e){return{sectionTitle:"Условия",body:e}}function eC(e){return{label:"Срок займа",value:(0,ey.aB)(Number(e.from),Number(e.to)),description:"Минимальный и максимальный срок займа"}}function eM(e){return{label:"Сумма займа",value:(0,ey.jC)(e.from,e.to)}}function ek(e){return{label:"ПСК",value:e,description:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n    Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."}}function eA(e){return{label:"Процентная ставка",value:(0,ej.t)({text:(0,ey.sP)(Number(e.from),Number(e.to)),comment:e.comment})}}let eS=(0,a.memo)(e=>{let{data:t,isOpen:n,control:o,isNewApi:r,onAllConditionsClick:i,onClose:c}=e,u=eh(t,o),[d,m]=(0,a.useState)(),_=(0,a.useCallback)(()=>{t&&(0,ev.o)({event:"data-event",eventLabel:t.id,eventCategory:t.url,eventAction:"learn_more_catalog"})},[t]);(0,a.useEffect)(()=>{m(void 0),(0,eb.BV)(t.url,r).then(m)},[t.url,r]);let p=(0,a.useMemo)(()=>void 0!==d?(e=>{var t,n,l,o,a,r,i,s,c,u,d,m,_;let p=[eC(e.period),eM(e.amount)];p.push(ek((0,ex.o)(e.full_price))),p.push(eA(e.interest_rate));let v=[function(e){return{label:"Обеспечение",value:(null==e?void 0:e.not_required)||!(null==e?void 0:e.text)?"Не требуется":(0,ej.t)(e)}}(e.loan)];((null==(t=e.purpose)?void 0:t.comment)||(null==(n=e.purpose)?void 0:n.text))&&v.push({label:"Цель выдачи",value:(0,ej.t)(e.purpose)}),((null==(l=e.application_term)?void 0:l.comment)||(null==(o=e.application_term)?void 0:o.text))&&v.push({label:"Срок выдачи",value:(0,ej.t)(e.application_term)}),((null==(a=e.form)?void 0:a.comment)||(null==(r=e.form)?void 0:r.text))&&v.push({label:"Форма выдачи",value:(0,ej.t)(e.form)}),((null==(i=e.fine)?void 0:i.comment)||(null==(s=e.fine)?void 0:s.text))&&v.push({label:"Штраф за неоплату платежа",value:(0,ej.t)(e.fine)}),(e.age.comment||e.age.text)&&v.push({label:"Возраст заемщика",value:(0,ej.t)(e.age)}),((null==(c=e.borrower)?void 0:c.comment)||(null==(u=e.borrower)?void 0:u.text))&&v.push({label:"Категория заемщика",value:(0,ej.t)(e.borrower)}),v.push({label:"Стаж работы",value:(null==(d=e.experience)?void 0:d.text)?(0,ej.t)(e.experience):"Не требуется"}),v.push({label:"Подтверждение дохода",value:(null==(m=e.income_proof)?void 0:m.text)?(0,ej.t)(e.income_proof):"Не требуется"}),(null==(_=e.docs)?void 0:_.text)&&v.push({label:"Требуемые документы",value:(0,ej.t)(e.docs)});let f=[];return void 0!==e.site&&f.push({label:"Сайт",value:e.site}),[ew(p),eN(v),{sectionTitle:"Об организации",body:f}]})({...d,site:t.site}):(e=>[ew([eC(e.period),eM(e.amount),ek("Загружается…"),eA(e.interest_rate)]),eN([])])(t),[t,d]);return(0,l.jsx)(ef.a,{isOpen:n,cancelButton:{title:"Все условия по займу",onClick:i},submitButton:{title:"Получить деньги",onClick:_,url:u},onClose:c,bankName:t.mfo_name,dataPoints:p,pageUrl:s.h.MICROZAJMY,offerUpdateData:null==d?void 0:d.m_updated_at})});eS.displayName="MfoInfoModal";var eL=n(74356),eT=n(48230),eI=n.n(eT),eR=n(1102),eO=n(66789),eP=n(87883),eU=n(15458),eF=n.n(eU);let eE={AMOUNT:"amount",TERM:"term",TERM_WITHOUT_PERCENTS:"term_without_percents"},ez=(0,a.memo)(e=>{let{rating:t}=e;return(0,l.jsxs)("div",{className:eF().rating,children:[(0,l.jsx)(S.IconFdsStarF,{className:eF().icon_star})," ",(0,l.jsx)("p",{className:eF().rating_text,children:t})]})});ez.displayName="Rating";let eD=(0,a.memo)(e=>{let{offer:t,control:n,handleClickAllConditions:o,onDetails:r,rating:i,status:s}=e,u=(0,M._I)(),d=(0,a.useMemo)(()=>{let e=[];if(e.push({name:eE.AMOUNT,label:"Сумма",value:(0,ey.ej)({to:Number(t.amount.to),from:Number(t.amount.from)},{currency:"₽"})},{name:eE.TERM,label:"Срок займа",value:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:"от"})," ",t.period.from," ",(0,l.jsx)("span",{children:"дн."})]})}),1===n.term_without_interest){var o;let n=null!=(o=t.term_without_percents)?o:"0";e.push({name:eE.TERM_WITHOUT_PERCENTS,label:"Срок без %",value:(0,l.jsxs)(l.Fragment,{children:["0"!==n&&(0,l.jsx)("span",{children:"до"}),"\xa0",n,"\xa0",(0,l.jsx)("span",{children:"дн."})]})})}return e},[n.term_without_interest,t.amount,t.period.from,t.term_without_percents]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:eF().top_row,children:[(0,l.jsx)(eR.v,{url:t.logo_mob,size:35,mobileSize:20,alt:t.mfo_name,rounded:!0}),(0,l.jsxs)("div",{className:eF().title_group,children:[(0,l.jsxs)("div",{className:(0,c.A)(eF().group_sub,eF().title_group_sub),onClick:o,children:[(0,l.jsx)(eI(),{href:"/mikrozajmy/".concat(t.url),className:eF().title_sub,onClick:e=>{e.preventDefault(),r(t.id)},children:t.title}),(0,l.jsx)("span",{className:eF().ratingDesktop,children:(0,l.jsx)(ez,{rating:i})})]}),(0,l.jsx)("div",{className:eF().title_group_content,children:t.mfo_name})]})]}),u&&(0,l.jsx)(eO.K,{status:s}),(0,l.jsxs)("div",{className:eF().card_info,children:[d.map(e=>(0,l.jsxs)("div",{className:eF().group,children:[(0,l.jsx)("p",{className:eF().group_sub,children:e.label}),(0,l.jsx)("p",{className:eF().group_content,children:e.value})]},e.name)),(0,l.jsxs)("div",{className:(0,c.A)(eF().ratingMobile),children:[(0,l.jsx)("p",{className:eF().group_sub,children:"Рейтинг"}),(0,l.jsx)(ez,{rating:i})]}),!u&&(0,l.jsx)(eP.q,{className:eF().group,labelClassName:eF().group_sub,valueClassName:eF().status_text,status:s})]})]})});eD.displayName="MfoInfo";var eB=n(7482);let eJ="viewed_microloans",eq=(0,a.createContext)(void 0);function eY(e){let{children:t}=e,[n,o]=(0,a.useState)();(0,a.useEffect)(()=>{var e;let t=null!=(e=(0,eB.Ee)().readJson(eJ))?e:(0,eB.W9)().readJson(eJ);void 0!==t&&o(new Set(t.map(e=>String(e))))},[]);let r=(0,a.useCallback)(e=>{if(void 0===n){let t=[e];o(new Set(t)),(0,eB.Ee)().writeJson(eJ,t)}else n.has(e)||(n.add(e),o(new Set(n)),(0,eB.Ee)().writeJson(eJ,Array.from(n)))},[n]);return(0,l.jsx)(eq.Provider,{value:{viewedOffersIds:n,writeViewedOfferId:r},children:t})}function eZ(){let e=(0,a.useContext)(eq);if(!e)throw Error("The context of the viewed microloans is used outside of the provider");return e}var eV=n(59099),eW=n.n(eV);let eH=(0,a.memo)(e=>{let{className:t,offer:n,isPromotional:o,order:r,placement:i,control:s,onDetails:u}=e,d=(0,M.sw)(),{writeViewedOfferId:_}=eZ(),p=eh(n,s,{offerId:String(n.id),order:r,placement:i}),v=(0,a.useCallback)(()=>{(e=>{let{id:t,item:n}=e,l=n.online_application&&n.online_application.commercial?"commercial":"non_commercial";(0,ev.o)({event:"data-event",eventLabel:t,eventCategory:"mikrozajmy",eventAction:"open_in_bank_product",eventValue:l})})({id:n.id,item:n}),_(n.id),window.open(p,"_blank")},[n,p,_]);return(0,l.jsxs)("div",{className:(0,c.A)(t,eW().wrap,{[eW().promotion_wrap]:o}),onClick:v,children:[(0,l.jsx)(eD,{offer:n,control:s,handleClickAllConditions:e=>{e.stopPropagation()},onDetails:u,rating:n.rating,status:n.approvalStatus}),(0,l.jsxs)("div",{className:eW().bottom_row,children:[(0,l.jsx)(m.$n,{size:"xs",label:d?"Получить":"Получить деньги",variant:o?"purple":"primary"}),o&&(0,l.jsxs)("p",{className:eW().promotion_caption,children:["Реклама ",n.legal_name]})]})]})});eH.displayName="MfoCard";var eK=n(69816),e$=n.n(eK);let eG=(0,a.memo)(e=>{let{offers:t,loading:n,control:o,onDetails:r}=e,i=t.length;return(0,l.jsxs)("div",{className:e$().cards_list,children:[t.map((e,t)=>(0,l.jsx)(a.Fragment,{children:t<i&&(0,l.jsx)(eH,{className:e$().card,offer:e,order:t,control:o,onDetails:r})},e.id)),n&&Array.from({length:24},(e,t)=>(0,l.jsx)(eL.E,{className:(0,c.A)(e$().card,e$().skeletonCard)},t))]})});eG.displayName="OffersList";var eX=n(72541),eQ=n.n(eX);let e0=(0,a.memo)(e=>{let{offers:t,onDetails:n,control:o}=e,a=t.length<4,r=1===t.length,i=a&&2===t.length;return(0,l.jsx)("div",{className:eQ().black_wrap,children:(0,l.jsxs)("div",{className:(0,c.A)(eQ().content,r&&eQ().one_card_content,i&&eQ().two_card_content),children:[a&&(0,l.jsxs)("div",{className:eQ().text,children:[(0,l.jsx)("p",{className:eQ().text_title,children:"Надежные займы на Финуслугах"}),(0,l.jsx)("p",{className:eQ().text_subtitle,children:"Мы работаем только с проверенными партнерами"})]}),t.map((e,t)=>(0,l.jsx)(eH,{className:eQ().card,offer:e,order:t,placement:"banner",isPromotional:!0,onDetails:n,control:o},e.id))]})})});e0.displayName="PromotionalOffersList";var e1=n(35987),e3=n(47334),e8=n(3187),e2=function(e){return e.DESC="desc",e.ASC="asc",e}({}),e7=n(5435),e4=n(95018),e5=n(32266),e9=n(64345),e6=n.n(e9);let te=(0,a.memo)(e=>{var t;let{subtitle:n,offersLoading:r,offersCount:i,offers:s,control:u,page:d,filter:_,isNewApi:p,onPageChange:v,onFilterChange:f}=e,g=(0,e1.yX)(),{query:h,asPath:b,push:x,pathname:y}=(0,o.useRouter)(),{offerId:j,...w}=h,{promoOffers:N,otherOffers:C}=(0,a.useMemo)(()=>(function(e){let t=e.reduce((e,t)=>(1!==t.online_application.best_offer_catalogue?e.otherOffers.push(t):e.promoOffers.push(t),e),{otherOffers:[],promoOffers:[]});return t.promoOffers.length>4&&(t.otherOffers=t.promoOffers.slice(4).concat(t.otherOffers),t.promoOffers.length=4),t})(s),[s]),{viewedOffersIds:M}=eZ(),[k,S]=(0,a.useState)(!0),L=(0,a.useMemo)(()=>k||void 0===M?C:C.filter(e=>!M.has(e.id)),[k,C,M]),T=(0,a.useCallback)(e=>{e?(0,ev.o)({event:"data-event",eventCategory:"mikrozaimy",eventAction:"toggle_show_clicked"}):(0,ev.o)({event:"data-event",eventCategory:"mikrozaimy",eventAction:"toggle_hide_clicked"}),S(e)},[]),I=function(e){let[t,n]=(0,a.useState)(),l=(0,a.useMemo)(()=>{var n;return null!=(n=e.find(e=>e.id===t))?n:null},[t,e]),o=(0,a.useCallback)(()=>n(void 0),[]);return{data:l,visible:null!==t,show:n,hide:o}}([...N,...L]),{region:R,town:O}=(0,A.z)(),P=null!=(t=null==O?void 0:O.name_p)?t:null==R?void 0:R.name_p,U=(0,a.useCallback)(()=>{v(d+1)},[d,v]),F=(0,a.useCallback)(()=>{I.data&&open("/".concat(b.split("?")[0].split("/")[1],"/").concat(I.data.url))},[I.data,b]),E=(0,a.useCallback)(e=>{f({..._,sort:e})},[_,f]),z=(0,a.useCallback)(e=>{f({..._,order:e})},[_,f]),D=(0,a.useMemo)(()=>{var e;return(null!=(e=X.find(e=>e.value===_.sort))?e:X[0]).label},[_]),B=d*e3.kV<i,J=(0,a.useCallback)(async e=>{await x({pathname:y,query:{...h,offerId:e}},void 0,{shallow:!0})},[y,x,h]),q=(0,a.useCallback)(async()=>{await x({pathname:y,query:w},void 0,{shallow:!0}),I.hide()},[I,w,y,x]);return(0,a.useEffect)(()=>{j&&I.show(String(j))},[j,I]),(0,l.jsxs)("section",{className:e6().list_wrap,ref:g,children:[(0,l.jsxs)("div",{className:(0,c.A)(e6().sort_content,e6().content),children:[(0,l.jsxs)("p",{className:e6().title,children:[i," ",(0,l.jsx)("span",{className:e6().titleHide,children:(0,ep.v)(i)}),P?" в ".concat(P):null]}),(0,l.jsxs)("div",{className:e6().right_block,children:[(0,l.jsx)(m.lM,{className:e6().viewed_offers_toggle,label:"Показывать просмотренные",value:k,onChange:T}),(0,l.jsxs)(e5.A,{content:(0,l.jsx)(l.Fragment,{children:X.map(e=>(0,l.jsx)(m.n5,{label:e.label,onClick:()=>{(e=>{e===_.sort?z(_.order===e2.ASC?e2.DESC:e2.ASC):E(e)})(e.value)}},e.value))}),children:[(0,l.jsx)(e_.A,{}),(0,l.jsx)("span",{className:e6().sort_label,children:D})]})]})]}),!!N.length&&(0,l.jsx)(e0,{offers:N,onDetails:J,control:u}),(0,l.jsxs)("div",{className:e6().content,children:[(0,l.jsx)(eG,{offers:L,loading:r,control:u,onDetails:J}),B&&(0,l.jsx)(e4.e,{page:d,onClick:U}),(0,l.jsx)(e7.h,{tag:"p",className:e6().subtitle,children:n})]}),I.data&&(0,l.jsx)(eS,{data:I.data,isOpen:I.visible,control:u,isNewApi:p,onAllConditionsClick:F,onClose:q})]})});te.displayName="MfoList";var tt=n(97563),tn=n(21921),tl=n(50261),to=n(36012),ta=n(17137),tr=n(89064),ti=n(70590),ts=n(68082);let tc=[{title:"МФО",value:"mfo_name"},{title:"Сумма займа",value:"amount"},{title:"Срок займа",value:"period"},{title:"Кол-во дней без процентов",value:"term_without_percents"},{title:"ПСК",value:"full_price"},{title:"Ставка",value:"interest_rate"}];function tu(e,t){var n,l,o;switch(t){case"mfo_name":return e.mfo_name.toLowerCase();case"amount":return Number(null==(n=e.amount)?void 0:n.from);case"period":return Number(null==(l=e.period)?void 0:l.from);case"term_without_percents":return Number(e.term_without_percents)||0;case"full_price":return e.full_price.from;case"interest_rate":return void 0!==e.interest_rate.to?Number(null==(o=e.interest_rate)?void 0:o.to):0;default:throw Error("Dead code branch")}}function td(e){let{offers:t}=e,[n,o]=(0,a.useState)("term_without_percents"),[r,i]=(0,a.useState)("asc"),s=(0,a.useMemo)(()=>(0,ts.Q)(t,n,r,tu),[t,n,r]),c=(0,a.useMemo)(()=>s.map(e=>{let{id:t,logo_mob:n,mfo_name:l,full_price:o,amount:a,period:r,term_without_percents:i,interest_rate:s}=e,c="".concat(a.from&&"от ".concat(a.from," ₽")," до ").concat(a.to," ₽"),u="от ".concat(r.from," ").concat(r.to&&"до ".concat(r.to)," дней"),d=void 0!==i?"".concat(i," ").concat((0,tr.g3)(Number(i))):"0 ".concat((0,tr.g3)(0));return{id:t,logo:n,name:l,cells:[c,u,d,(0,ex.o)(o),void 0!==s.to&&void 0!==s.from?(0,ey.sP)(Number(s.from),Number(s.to)):""]}}),[s]);return(0,l.jsx)(ti.A,{caption:"Рейтинг составлен на основе отзывов пользователей и мнения экспертов Финуслуги.",columns:tc,rows:c,sort:n,sortOrder:r,onSortChange:(e,t)=>{o(e),i(t)}})}var tm=n(27116);function t_(e){let{question:t,answers:n}=e;return(0,l.jsx)(tm.S,{schema:{"@context":"https://schema.org","@type":"QAPage",mainEntity:{"@type":"Question",name:t,answerCount:n.length,acceptedAnswer:n.map(e=>({"@type":"Answer",text:e}))}}})}let tp={question:"Почему оформлять займ лучше через Финуслуги?",answers:["✅ Высокая вероятность одобрения - 96%","\uD83D\uDE80 Быстрое одобрение от финансовых организаций","\uD83D\uDCBC Работаем только с проверенными официальными партнерами"]},tv=(0,a.memo)(()=>tf()?null:(0,l.jsx)(t_,{...tp}));function tf(){let{region:e}=(0,A.z)();return void 0!==e}tv.displayName="MicroloanQuestionSchema";var tg=n(18258),th=n(28036);let tb={[s.h.POTREBITELSKIE]:"Потребительские кредиты",[s.h.KARTY]:"Кредитные карты",[s.h.IPOTEKA]:"Ипотеку",[s.h.AUTOCREDIT]:"Автокредит",[s.h.MICROZAJMY]:"Микрозаймы",[s.h.CALCULATOR]:"Калькулятор"},tx={[s.h.POTREBITELSKIE]:"Подобрать",[s.h.KARTY]:"Выбрать",[s.h.IPOTEKA]:"Взять",[s.h.AUTOCREDIT]:"Оформить",[s.h.MICROZAJMY]:"Взять",[s.h.CALCULATOR]:"Подобрать"};var ty=n(2300),tj=n.n(ty);let tw=(0,a.memo)(e=>{let{mfos:t}=e;return(0,l.jsxs)(i.J,{className:tj().block,children:[(0,l.jsx)("h2",{className:tj().title,children:"Микрофинансовые организации"}),(0,l.jsx)("ul",{className:tj().list,children:t.map(e=>(0,l.jsxs)("li",{className:tj().item,children:[(0,l.jsx)(eR.v,{className:tj().logo,url:e.logo,size:40,alt:""}),(0,l.jsxs)("div",{className:tj().info,children:[(0,l.jsx)("strong",{className:tj().name,children:e.name}),(0,l.jsxs)("p",{className:tj().registationNumber,children:[(0,l.jsx)("span",{children:"Рег. номер"}),(0,l.jsx)("span",{children:e.registration_number})]}),(0,l.jsx)("span",{className:tj().phone,children:e.phone})]})]},e.url))})]})});tw.displayName="LeadingMfos";var tN=n(6980),tC=n(80490),tM=n(9837);let tk=(0,a.memo)(e=>{let{questions:t}=e,{region:n}=(0,A.z)();return void 0!==n?null:(0,l.jsx)(tM.c,{questions:t})});tk.displayName="ShowcaseFaqSchema";var tA=n(99275);let tS=e=>{let{regions:t,tags:n,offers:r,town:i,townDublicates:c,region:u,tag:m,posts:_,mfos:p,leadingMfos:v,support:f}=e,{asPath:g}=(0,o.useRouter)(),h=(0,a.useMemo)(()=>"/".concat(g.split("?")[0].split("/")[1]),[g]),b=(0,a.useMemo)(()=>(function(e,t,n,l){var o;if(void 0===t||void 0===n)return"Частые вопросы";let a=null!=(o=null==l?void 0:l.name_p)?o:n.name_p;return"".concat(function(e,t){let n=t&&"DEFAULT"!==t.url?t.name:tb[e];return"".concat(tx[e]," ").concat(n.toLowerCase())}(e,t)," ").concat((0,th.c)(a)," ").concat(a)})(s.h.MICROZAJMY,m,u,i),[m,u,i]),x=tf(),{questions:y,textQuestions:j}=(0,a.useMemo)(()=>{let e=function(e){let{tag:t,region:n,town:o,townDublicates:a}=e,r=[];!n&&t.text&&r.push(...t.text.map(e=>{let{content:t,textContent:n}=(0,tt.lA)((0,tl.j)(e).content);return{title:(0,tl.w)(e.title),text:(0,l.jsx)(tt.t$,{children:t}),plainText:n}}));let i=function(e,t,n,o){if(e&&o.region_page&&(t||o.region_page.region_content&&o.region_page.region_content.length)&&(!t||o.region_page.town_content&&o.region_page.town_content.length))return(t?o.region_page.town_content:o.region_page.region_content).map(o=>{let a=(0,tl.j)(o,e,t,n),{content:r,textContent:i}=(0,tt.lA)(a.content);return{title:(0,tl.w)(a.title,e,t,n),text:(0,l.jsx)(tt.t$,{children:r}),plainText:i}})}(n,o,a,t);return void 0!==i&&r.push(...i),r}({tag:m,region:u,town:i,townDublicates:c});return{questions:function(e){let{textQuestions:t,tag:n,region:o,town:a,tags:r,regions:i,offers:c,mfos:u,questionHidden:m}=e,_=[],p=(e=>{let t=(0,ta.$)({offers:e,getBankKey:e=>e.bank_id,getAmount:e=>Number(e.amount.to),getRate:e=>Number(e.interest_rate.to)}).slice(0,10);if(t.length>2)return{title:"Рейтинг МФО, в которых можно получить займы",text:(0,l.jsx)(td,{offers:t})}})(c);return void 0!==p&&_.push(p),_.push(...t),m||_.push(function(){let{question:e,answers:t}=tp,n=t.map(e=>"<p>".concat(e,"</p>")).join(""),o="<p>Ответов: ".concat(t.length,"</p>").concat(n),a=[{type:tn.$G.Html,data:{html:o}}];return{title:e,text:(0,l.jsx)(tt.eW,{data:a})}}()),_.push(...(0,tg.N)(s.h.MICROZAJMY,i,n,o,a,{nominativeCase:"Займы",genitiveCase:"микрозаймов"})),_.push(function(e,t,n){let o=e.reduce((e,l)=>{if(void 0===l.url_redirect){let o=(0,d.b)(s.h.MICROZAJMY,l,t,n),a=(0,to.AP)(o,l.name);e.push(a)}return e},[]);return{title:"Виды микрозаймов",text:(0,l.jsx)(to.oL,{children:o})}}(r,o,a)),u.length>0&&_.push(function(e,t,n){let{mainBaseUrl:o}=(0,C.zj)(),a=(0,d.b)(s.h.MICROZAJMY,void 0,t,n),r=e.map(e=>{let t="".concat(o,"/mfo/").concat(e.url).concat(a);return(0,to.mZ)(t,e.name)});return{title:"Микрозаймы от МФО",text:(0,l.jsx)(to.oL,{children:r})}}(u,o,a)),_}({textQuestions:e,tag:m,region:u,town:i,tags:n,regions:t,offers:r,mfos:p,questionHidden:x}),textQuestions:e}},[p,r,x,u,t,m,n,i,c]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(tk,{questions:j}),(0,l.jsx)(tA.m,{isAllExpanded:!0,sectionTitle:b,faqBlockTitle:"",Link:e=>(0,l.jsx)(eI(),{...e}),dataLayerPush:ev.o,questions:y,eventCategory:"mfo_support_block",href:"".concat((0,C.UK)().mainBaseUrl,"/help"),checkAllText:"Читать все про займы"}),(0,l.jsx)(tw,{mfos:v}),_.length>0&&(0,l.jsx)(tN.C,{eventCategory:h,posts:_}),(0,l.jsx)(tC.E,{value:f})]})};var tL=n(14731),tT=n(28131),tI=n(12771),tR=n(73584),tO=n(30409);async function tP(){return(await (0,tI.ZP)("old/mfos?archive=0")).companies.reduce((e,t)=>(0!==t.public&&e.push(function(e){let{id:t,url:n,name:l,logo_mob:o,legal_entities:[{registration_number:a}],phones:[r]}=e,i={id:t,url:n,name:l,registration_number:a};return void 0!==o&&(0,e8.vh)(o)&&(i.logo=o),(0,tO.u)(r)&&(i.phone=r),i}(t)),e),[])}function tU(e){return tF.getOrUpdate(e)}let tF=new tR.B(tE);async function tE(e){return e?tP():(await (0,tI.zy)("Mfo.json?archive=0")).companies.reduce((e,t)=>(0!==t.public&&e.push(function(e){let{id:t,url:n,name:l,logo_mob:o,legal_entities:[{registration_number:a}],phones:[r]}=e,i={id:String(t),url:n,name:l,registration_number:a};return null!==o&&(0,tO.u)(o)&&(0,e8.vh)(o)&&(i.logo=o),(0,tO.u)(r)&&(i.phone=r),i}(t)),e),[])}async function tz(e,t){let n=tJ(e);return n.set("isNewApi",String(t)),(0,tI.pY)("microloans/faq-mfos?".concat(n))}async function tD(e){var t,n;let{isNewApi:l,...o}=e,[a,r]=await Promise.all([tU(l),(0,e3.kN)(o,l)]);return t=a,n=function(e,t){let n=function(e){let t=e.reduce((e,t)=>(e.add(t.mfo_url),e),new Set);return e=>t.has(e.url)}(t);if("pod_zalog_pts"!==e){let e=function(){let e=new Set(["zajmer","turbozajm","bystrodengi","mani_men","vebzajm","vebbankir","lajm_zajm","boostra","migkredit","ekapusta"]);return t=>e.has(t.url)}();return t=>n(t)&&e(t)}return n}(o.tagUrl,r.offers),t.reduce((e,t)=>(n(t)&&e.push({url:t.url,name:t.name}),e),[]).sort((e,t)=>e.name.localeCompare(t.name))}new tR.A(tD);var tB=function(e){return e.Tag="tag",e.Region="region",e.Town="town",e}(tB||{});function tJ(e){let{tagUrl:t,regionUrl:n,townUrl:l}=e,o=new URLSearchParams;return void 0!==t&&o.set("tag",t),void 0!==n&&o.set("region",n),void 0!==l&&o.set("town",l),o}async function tq(e){return(await tU(!!e)).map(tY).sort((e,t)=>e.name.localeCompare(t.name))}function tY(e){let{id:t,url:n,name:l}=e;return{id:String(t),url:n,name:l}}new tR.A(tq),n(98473);var tZ=function(e){return e.Tag="tag_url",e.Region="region",e.Town="town",e}(tZ||{});function tV(e){let{tagUrl:t,regionUrl:n,townUrl:l}=e,o=new URLSearchParams;return void 0!==t&&o.set("tag_url",t),void 0!==n&&o.set("region",n),void 0!==l&&o.set("town",l),o}var tW=n(3067);async function tH(e){let t=tV(e);return(0,tI.pY)("microloans/posts?".concat(t))}async function tK(e){let t=await function(e){let t=tV(e);return(0,tI.zy)("MicroCreditRegion.json?".concat(t))}(e);return(0,tW.nO)(t.posts)}async function t$(e){let{tagUrl:t,...n}=e,l=function(e){let t=new URLSearchParams;return void 0!==e.tagUrl&&t.append("tagUrl",e.tagUrl),void 0!==e.regionUrl&&t.append("regionUrl",e.regionUrl),void 0!==e.townUrl&&t.append("cityUrl",e.townUrl),t}(n);return function(e,t){let{url:n,internalName:l,tagName:o,texts:a}=e,{textList:r,regionContent:i}=a,s={url:n,name:l,tag_name:o,text:r.map(e=>({title:e.title,text:[],content:[{type:tn.$G.Html,data:{html:e.content}}]}))};return i.length>0&&(t?s.region_page={region_content:[],town_content:i.map(e=>({title:e.title,text:[],content:[{type:tn.$G.Html,data:{html:e.content}}]}))}:s.region_page={region_content:i.map(e=>({title:e.title,text:[],content:[{type:tn.$G.Html,data:{html:e.content}}]})),town_content:[]}),s}(await (0,tI.ZP)("microloan-tags/".concat(t,"?").concat(l)),void 0!==n.townUrl)}async function tG(e){let{isNewApi:t,...n}=e;if(t)return t$(n);let{tagUrl:l}=n,o=await (0,tI.zy)("MicroCredits.json?".concat("url","=").concat(encodeURIComponent(l)));if(1!==o.length)throw new tT.m_("Microloans tag not found: ".concat(l));return function(e){let{url:t,name:n,tag_name:l,text:o,region_page:a}=e,r={url:t,name:n,tag_name:l,text:o};if(null!==a){let{region_content:e,town_content:t}=a;r.region_page={region_content:e,town_content:t}}return r}(o[0])}async function tX(e,t){let n=tJ(e);return n.set("isNewApi",String(t)),(0,tI.pY)("microloans/leading-mfos?".concat(n))}async function tQ(e){let{isNewApi:t,...n}=e,[l,o]=await Promise.all([tU(t),(0,e3.kN)({...n,page:1,pageSize:e3.kV},t)]);return function(e,t){let n=e.reduce((e,t)=>(e.set(t.url,t),e),new Map),l=new Map;for(let e=0;e<t.length;e++){let o=t[e],a=o.mfo_url,r=n.get(a);if(void 0===r||"master_podbora_zajmov"===r.url)continue;let i=void 0!==o.logo_mob?{...r,logo:o.logo_mob}:r;if(l.set(a,i),8===l.size)break}return Array.from(l.values())}(l,o.offers)}new tR.A(tK,3e4),new tR.A(tG),n(57706),new tR.A(e=>tQ(e));let t0=(0,a.memo)(e=>{let{name:t,description:n,offersCount:o,offers:a}=e,r=function(e,t,n,l){let{basePath:o,mainBaseUrl:a}=(0,C.UK)();if(0===l.length)return;let{lowPrice:r,highPrice:i,offers:c}=(()=>{let e=l.reduce((e,t)=>{let n=(e=>{let t=e.from,n=e.to;return{minValue:void 0!==t?Number(t):1e4,maxValue:void 0!==n?Number(n):void 0}})(t.amount),l=((e,t)=>{var n;let l=e.title,o=e.mfo_name,r={"@type":"QuantitativeValue",name:"Срок займа",minValue:Number((n=e.period).from),maxValue:Number(n.to)},i=(e=>{let t=e.from,n=e.to;if(void 0===t&&void 0===n)return;let l={"@type":"QuantitativeValue",name:"Процентная ставка в день"};return void 0!==t&&(l.minValue=Number(t)),void 0!==n&&(l.maxValue=Number(n)),l})(e.interest_rate),c=(e=>{let t={"@type":"MonetaryAmount",name:"Сумма займа",minValue:e.minValue,currency:"RUB"};return void 0!==e.maxValue&&(t.maxValue=e.maxValue),t})(t);return{"@type":"Offer",itemOffered:{"@type":"LoanOrCredit",name:l,url:"".concat(a,"/").concat(s.h.MICROZAJMY,"/").concat(e.url),brand:o,loanTerm:r,annualPercentageRate:i,amount:c},priceSpecification:{"@type":"PriceSpecification",price:0,priceCurrency:"RUB",valueAddedTaxIncluded:!0},potentialAction:{"@type":"Action",name:"Получить деньги",url:e.online_application.url},broker:{"@type":"BankOrCreditUnion",name:e.mfo_name,url:"".concat(a,"/mfo/").concat(e.mfo_url),image:e.logo_mob,address:{"@type":"PostalAddress",addressCountry:"RU"}}}})(t,n);return e.lowPrice=Math.min(e.lowPrice,n.minValue),void 0!==n.maxValue&&(e.highPrice=Math.max(e.highPrice,n.maxValue)),e.offers.push(l),e},{lowPrice:1/0,highPrice:-1/0,offers:[]});return{offers:e.offers,...Number.isFinite(e.lowPrice)&&{lowPrice:e.lowPrice},...Number.isFinite(e.highPrice)&&{highPrice:e.highPrice}}})();return{"@context":"https://schema.org","@type":"Product",name:e,description:t,image:"".concat(a).concat(o,"/images/logo-1200x630.jpg"),aggregateRating:{"@type":"AggregateRating",ratingValue:4.8,reviewCount:2438,bestRating:5,worstRating:1},offers:{"@type":"AggregateOffer",url:"".concat(a,"/").concat(s.h.MICROZAJMY),highPrice:i,lowPrice:r,priceCurrency:"RUB",offerCount:n,offers:c}}}(t,n,o,a);return void 0===r?null:(0,l.jsx)(tm.S,{schema:r})});t0.displayName="MicroloanOffersSchema",n(77506);var t1=n(66460),t3=n(24323);n(81787);var t8=n(23857),t2=n(58699);n(7455),n(46215);var t7=n(162),t4=n(64998);n(99514);var t5=n(79790),t9=n(2510);n(44860);var t6=n(24479),ne=n.n(t6);let nt=[(0,l.jsx)(a.Fragment,{children:"Используйте фильтры для указания желаемых параметров: суммы, срока и формы выдачи"},0),(0,l.jsx)(a.Fragment,{children:"Изучите и выберите подходящее предложение"},1),(0,l.jsx)(a.Fragment,{children:'Нажмите кнопку "Получить деньги"'},2),(0,l.jsx)(a.Fragment,{children:"Заполните анкету, дождитесь одобрения и получите деньги любым удобным для вас способом"},3)];function nn(e){var t,n;let{layout:s,root:c,offers:u,faqMfos:d,control:m,tags:_,tag:p,posts:v,expertQuote:f,experts:g,leadingMfos:h,support:b,showcaseUrl:x,isNewApi:y}=e,{region:j,town:w}=(0,A.z)(),{scrollSmooth:N}=(0,e1.Ll)(),C=null!=g?g:void 0,[M,k]=(0,a.useState)(!1),[S,L]=(0,a.useState)(u),[T,I]=(0,a.useState)(v),[R,O]=(0,a.useState)(p),[P,U]=(0,a.useState)(d),[F,E]=(0,a.useState)([]),[z,D]=(0,a.useState)(),[B,q]=(0,a.useState)(null!=f?f:void 0),[Y,Z]=(0,a.useState)(h),{asPath:V,query:W}=(0,o.useRouter)(),{segments:H,page:K}=W,$=null==j?void 0:j.url,G=null==w?void 0:w.url,X=null!=(n=null==(t=(0,tL.$)(H).find(t9.AP))?void 0:t.slice(t9.cf.length))?n:t9.Z2,{filter:Q,setFilter:ee}=function(){let{query:e,push:t}=(0,o.useRouter)(),{amount:n,form:l,period:r,borrower:i,registration:s,collateral:c,banks:u,online:d,sort:m,order:_,...p}=e,v=(0,a.useMemo)(()=>(function(e){let{amount:t,form:n,period:l,borrower:o,registration:a,collateral:r,banks:i,online:s,sort:c,order:u}=e,d={};return"string"==typeof t&&(d.amount=Number(t)),"string"==typeof n&&(d.form=n),"string"==typeof l&&(d.period=Number(l)),"string"==typeof o&&(d.borrower=o),"string"==typeof a&&(d.registration=a),"string"==typeof r&&(d.collateral=r),"string"==typeof i&&(d.banks=(0,e8.pi)(i)),"string"==typeof s&&(d.online=s),"string"==typeof c&&(d.sort=c),"string"==typeof u&&(d.order=u),d})({amount:n,form:l,period:r,borrower:i,registration:s,collateral:c,banks:u,online:d,sort:m,order:_}),[n,l,r,i,s,c,u,d,m,_]),f=(0,a.useRef)(p),g=(0,a.useRef)(v),h=(0,a.useRef)(t);return f.current=p,g.current=v,h.current=t,{filter:v,setFilter:(0,a.useCallback)(e=>{var t,n,l,o,a,r;if(t=g.current,n=e,t.amount===n.amount&&t.form===n.form&&t.period===n.period&&t.borrower===n.borrower&&t.registration===n.registration&&t.collateral===n.collateral&&(null==(l=t.banks)?void 0:l.length)===(null==(o=n.banks)?void 0:o.length)&&(null==(a=t.banks)?void 0:a.slice().sort().toString())===(null==(r=n.banks)?void 0:r.slice().sort().toString())&&t.online===n.online&&t.sort===n.sort&&t.order===n.order)return!1;let i={...function(e){let{amount:t,form:n,period:l,borrower:o,registration:a,collateral:r,banks:i,online:s,sort:c,order:u}=e,d={};return void 0!==t&&(d.amount=String(t)),void 0!==n&&(d.form=n),void 0!==l&&0!==l&&(d.period=String(l)),void 0!==o&&(d.borrower=o),void 0!==a&&(d.registration=a),void 0!==r&&(d.collateral=r),void 0!==i&&(d.banks=(0,e8.t9)(i)),void 0!==s&&(d.online=s),void 0!==c&&(d.sort=c),void 0!==u&&(d.order=u),d}(e),...f.current};return h.current({query:i},void 0,{shallow:!0}),!0},[])}}(),[et,en]=(0,a.useState)(()=>"string"!=typeof K?1:Number(K)),el=(0,a.useRef)(0),eo=(0,a.useRef)(!1),ea=(0,a.useCallback)(e=>{ee(e)||0!=el.current?eo.current=!0:N()},[N,ee]),er=(0,a.useCallback)(e=>{el.current++,k(!0),en(e),(0,e3.u_)({...Q,page:e,pageSize:e3.kV,regionUrl:$,townUrl:G,tagUrl:X},y).then(t=>{e>1?L(e=>{let{offers:n}=e;return{...t,offers:[...n,...t.offers]}}):(L(t),D(void 0))}).finally(()=>{el.current--,!(el.current>0)&&(k(!1),eo.current&&(N(),eo.current=!1))})},[y,Q,$,G,X,N]),ei=(0,a.useCallback)(async e=>{let{sort:t,order:n,...l}=e;D((await (0,e3.u_)({...l,regionUrl:$,townUrl:G,tagUrl:X,pageSize:1},y)).count)},[y,$,G,X]);(0,J.w5)(()=>{er(1)},[er]),(0,J.w5)(()=>{tH({regionUrl:$,townUrl:G,tagUrl:X}).then(I)},[X,$,G]),(0,J.w5)(()=>{(function(e,t){let{tagUrl:n,regionUrl:l,townUrl:o}=e;if(t){let e=function(e){let t=new URLSearchParams;return void 0!==e.tagUrl&&t.append("tagUrl",e.tagUrl),void 0!==e.regionUrl&&t.append("regionUrl",e.regionUrl),void 0!==e.townUrl&&t.append("townUrl",e.townUrl),t}({tagUrl:n,regionUrl:l,townUrl:o});return(0,tI.pY)("microloans-new/tag?".concat(e))}return(0,tI.pY)("microloans/tag?".concat("url","=").concat(n))})({tagUrl:X,regionUrl:$,townUrl:G},y).then(O)},[y,$,X,G]),(0,J.w5)(()=>{tz({tagUrl:X,regionUrl:$,townUrl:G},y).then(U)},[X,$,G,y]),(0,J.w5)(()=>{tX({tagUrl:X,regionUrl:$,townUrl:G},y).then(Z)},[X,$,G,y]);let es=(0,a.useRef)(!1),ec=(0,a.useCallback)(()=>{es.current||(es.current=!0,(function(e){let t=new URLSearchParams({isNewApi:String(e)});return(0,tI.pY)("microloans/mfos?".concat(t))})(y).then(E))},[y]),eu=(0,e8.m)(V);(0,J.w5)(()=>{(0,t7.Zs)(eu).then(q)},[eu]);let{title:ed,description:e_,subtitle:ep,count:ev,offers:ef}=S,eg=R.url!==t9.Z2?R.name:"Микрозаймы",eh=(0,l.jsxs)("div",{className:ne().offers,children:[(0,l.jsx)(r.I,{title:ed,description:e_}),(0,l.jsx)(t1.t,{}),(0,l.jsx)(tv,{}),(0,l.jsx)(t0,{name:eg,description:e_,offersCount:ev,offers:ef}),(0,l.jsx)(em,{heading:eg,subtitle:ep,mfos:F,tag:R.url!==t9.Z2?R:null,filter:Q,offersCount:null!=z?z:ev,showcaseUrl:x,onFilterChange:ei,onFilterApply:ea,onFilterShow:ec,tags:_}),(0,l.jsx)(eY,{children:(0,l.jsx)(te,{subtitle:ep,offersLoading:M,offersCount:ev,offers:ef,control:m,page:et,filter:Q,isNewApi:y,onPageChange:er,onFilterChange:ee})}),(0,l.jsx)(t3.I,{steps:nt,variant:"secondary"}),void 0!==B&&(0,l.jsx)(t4.V,{quote:B}),void 0!==C&&(0,l.jsx)("section",{className:ne().experts,children:(0,l.jsx)(i.J,{children:(0,l.jsx)(t5.o,{heading:"Микрозаймы",experts:C})})}),(0,l.jsx)(t2.f,{type:"mfo"}),(0,l.jsx)(tS,{regions:c.regions,tags:_,tag:R,region:j,town:w,townDublicates:c.town_dublicates,offers:ef,posts:T,mfos:P,leadingMfos:Y,support:b})]});return null!==s?(0,l.jsx)(t8.P,{data:s,children:eh}):eh}},78131:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});let l={src:"/kredity/assets/_next/static/media/banner-6.5d66df25.svg",height:230,width:256,blurWidth:0,blurHeight:0}},83933:e=>{e.exports={logo:"MicroloanListItem_logo__N9nzj",placeholderLogo:"MicroloanListItem_placeholderLogo__kEtP1"}},84980:e=>{e.exports={container:"utp-tags_container__gbSRO"}},91572:(e,t,n)=>{"use strict";n.d(t,{$A:()=>m,BV:()=>c,Im:()=>d,M$:()=>i,P:()=>v,TR:()=>s,b8:()=>_,gI:()=>p,q8:()=>u}),n(37397);var l=n(12771),o=n(30409),a=n(3187),r=n(68204);function i(e){return null!==e&&""!==e&&(void 0!==e.to&&null!==e.to&&""!==e.to||void 0!==e.from&&null!==e.from&&""!==e.from)}function s(e){return null!==e&&""!==e&&void 0!==e.to&&null!==e.to&&""!==e.to}function c(e,t){return t?(0,r.VX)(e):(0,l.pY)("microloans/offer?url=".concat(e))}function u(e){let{logo_mob:t,logo_mob_png:n}=e;return(0,a.vh)(t)?t:(0,a.vh)(n)?n:void 0}function d(e){let{url:t,type:n,commercial:l,commercial_desc:a,best_offer_catalogue:r}=e,i={type:n,url:t,commercial:l};return(0,o.u)(a)&&(i.commercial_desc=a),void 0!==r&&(i.best_offer_catalogue=r),i}function m(e){let{comment:t,...n}=e,l=f(n);return void 0!==t&&(0,o.u)(t)&&(l.comment=t),l}function _(e){let{comment:t,...n}=e,l=f(n);return(0,o.u)(t)&&(l.comment=t),l}function p(e){let{comment:t,...n}=e,l=f(n);return(0,o.u)(t)&&(l.comment=t),l}function v(e){let{from:t,to:n}=e;return{from:void 0!==t?Number(t):0,to:Number(n)}}function f(e){let{from:t,to:n}=e;return""===t||void 0===t?{to:Number(n)}:""!==n&&void 0!==n?{from:Number(t),to:Number(n)}:{from:Number(t)}}},94289:e=>{e.exports={title:"styles_title__b38Q2",mobilePopup:"styles_mobilePopup__G3e3Z",container:"styles_container__IGo0H",list:"styles_list__eSXKF",content:"styles_content__44gQX",buttons:"styles_buttons__co1FZ",contentRow:"styles_contentRow__VrBta",findConfigBlock:"styles_findConfigBlock__Mv4DU",footer:"styles_footer__hi3PE",field:"styles_field__u00Wg",titleWrapper:"styles_titleWrapper___05yj",icon:"styles_icon__38Wzs",fieldTitle:"styles_fieldTitle__03wac",fieldContent:"styles_fieldContent__OnBG0",comment:"styles_comment__gnX9Y",actualDate:"styles_actualDate__sl9Yc",skeletonContent:"styles_skeletonContent__8znd2"}}}]);