(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4633],{22868:function(){},26349:function(){},99830:function(){},70209:function(){},22029:function(e,t,n){Promise.resolve().then(n.bind(n,82778)),Promise.resolve().then(n.bind(n,57608)),Promise.resolve().then(n.bind(n,6483)),Promise.resolve().then(n.bind(n,90476))},10611:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var a=n(59306);let i=async e=>{if(!e)return null;let t=String(e).trim(),n=t.startsWith("0")?t:"0".concat(t),i="/deposits/api/proxy/new/api/v1/deposits/by-banks/".concat(encodeURIComponent(n));return(await (0,a.t)({url:i,options:{isProxyOtherService:!0}})).data}},89304:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var a=n(59306);let i=async e=>{var t;return(null===(t=(await (0,a.t)({url:"/money_data/Description.json?url=".concat(e)})).data)||void 0===t?void 0:t.description)||null}},99094:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var a=n(2265);let i=e=>{(0,a.useEffect)(()=>{if(!e)return;let{title:t,description:n,alternates:{canonical:a}}=e;document.title=t;let i=document.querySelector('meta[name="description"]');if(i)i.setAttribute("content",n||"");else{let e=document.createElement("meta");e.name="description",e.content=n||"",document.head.appendChild(e)}let l=document.querySelector('link[rel="canonical"]');l?l.setAttribute("href",a||""):((l=document.createElement("link")).rel="canonical",l.href=a||"",document.head.appendChild(l))},[e])}},57608:function(e,t,n){"use strict";n.d(t,{default:function(){return n1}});var a,i,l,o,r,s,c,d,u,m,v,p,_,g,f=n(57437),h=n(2265),y=n(99376),b=n(80684),x=n(35563),w=n(75461),C=n(20777),j=n(74157),N=n(59226),T=n(46295),R=n(17730),k=n(61994),A=n(44197),S=n(27648),P=n(69286),I=n.n(P);let L=e=>{let{data:t}=e,n=e=>t=>{e.disableLink&&(t.preventDefault(),t.stopPropagation()),e.onClick&&e.onClick()};return(0,f.jsx)("ul",{className:I().choice,children:t.map(e=>(0,f.jsx)("li",{className:I().choiceOption,children:(0,f.jsx)(S.default,{href:e.url,onClick:n(e),prefetch:!1,children:e.name})},e.id))})};var B=n(60816),O=n(97358),E=n(41858),M=n(99094),D=n(31893),F=n(33562),U=n(58514),W=n(24269);let z=(e,t)=>e===W.$.bank&&"finance"in t,H=(e,t)=>e===W.$.insurance&&"legal_entities"in t&&Object.keys(t.legal_entities[0]||{}).some(e=>e.startsWith("insType")),V=e=>"microCredits_num"in e;var q=n(53120),Y=n(49689),X=n(1649),$=n.n(X);let Q=e=>e.map(e=>"string"==typeof e?(0,f.jsx)("div",{dangerouslySetInnerHTML:{__html:e}},e):(0,f.jsxs)("div",{className:$().row,children:[(0,f.jsx)("p",{className:$().year,children:e.data.year}),(0,f.jsx)("div",{className:$().text,dangerouslySetInnerHTML:{__html:e.data.text}})]},e.data.year)),G=e=>{let{title:t,description:n,historyRowsRef:a,visibleItems:i=3,onShowAll:l,onShowMore:o,isPopup:r=!1}=e,s=(0,w.aF)("m");return n?(0,f.jsxs)("div",{className:$().history,children:[!r&&(0,f.jsx)("h2",{className:$().historyTitle,children:t}),(0,f.jsx)("div",{className:(0,k.Z)($().historyRows,{[$().historyModal]:r}),ref:a,children:"string"==typeof n?(0,f.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}):Q(n.slice(0,s?i:n.length))}),"string"!=typeof n&&!r&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:$().gradient}),(0,f.jsx)(A.j,{text:"Показать все",mainPageUrl:U.qL,iconColor:"light",className:$().showAllButton,onClick:l,widthMaxContent:!0})]}),"string"!=typeof n&&n.length>i&&r&&(0,f.jsx)(A.j,{text:"Показать еще",mainPageUrl:U.qL,icon:b.IconFdsChevronDownSmallO,iconColor:"light",className:$().showMoreButton,onClick:o,widthMaxContent:!0})]}):null},Z=["finuslugi.ru","inguru.dev","moex.com"],J=e=>e.includes("//")&&!Z.find(t=>e&&e.indexOf(t)>=0),K=e=>e?e=e.replace(/href="(.*?)"/gi,(e,t)=>"".concat(e).concat(J(t)?' rel="nofollow"':"")):"",ee=e=>{let{items:t}=e,[n,a]=(0,h.useState)(!1),i=()=>a(e=>!e);return t.length?t.map(e=>(0,f.jsxs)("div",{className:$().requisit,children:[(0,f.jsx)("p",{className:$().infoItemTitle,children:e.title}),Array.isArray(e.value)?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:$().infoItemValue,children:e.value.slice(0,n?e.value.length:1).map(e=>(0,f.jsx)("div",{className:$().infoItemValueItem,children:e},e))}),(0,f.jsx)(A.j,{text:n?"Свернуть":"Все свидетельства",mainPageUrl:U.qL,icon:n?b.IconFdsChevronUpSmallO:b.IconFdsChevronDownSmallO,iconColor:"light",className:$().showMoreLicensesButton,onClick:i,widthMaxContent:!0})]}):(0,f.jsx)("div",{className:$().infoItemValue,dangerouslySetInnerHTML:{__html:K(e.value)}})]},e.title)):null},et=e=>{let{title:t,items:n}=e,[a,i]=(0,h.useState)(!1);return n.length&&n[0].length?(0,f.jsxs)("div",{children:[t&&(0,f.jsx)("h2",{className:$().title,children:t}),n.map((e,t)=>(0,f.jsx)("div",{className:(0,k.Z)($().requisitesColumn,{collapsed:t>0&&!a}),children:(0,f.jsx)(ee,{items:e})},t)),n.length>1&&(0,f.jsx)(A.j,{text:a?"Свернуть":"Показать все юрлица",mainPageUrl:U.qL,icon:a?b.IconFdsChevronUpSmallO:b.IconFdsChevronDownSmallO,iconColor:"light",className:$().showMoreLegalEntitiesButton,onClick:()=>i(e=>!e),widthMaxContent:!0})]}):null},en=e=>{let{insuranceTypes:t,loadingInsuranceTypes:n}=e,a=(0,w.aF)("m"),[i,l]=(0,h.useState)(!1),o=(0,h.useRef)(null),[r,s]=(0,h.useState)(!1);return((0,h.useEffect)(()=>{o.current&&s(o.current.scrollHeight>(a?164:76))},[t,a]),n)?(0,f.jsx)(x.Od,{className:$().insuranceTypes,width:468,height:152}):(0,f.jsxs)("div",{className:$().insuranceTypes,children:[(0,f.jsx)("p",{className:$().infoItemTitle,children:"Виды страхования"}),(0,f.jsx)("div",{ref:o,className:(0,k.Z)($().typesList,{[$().expanded]:i}),children:null==t?void 0:t.map(e=>(0,f.jsx)(w.Vp,{label:e.name,variant:"secondary",className:(0,k.Z)($().insuranceTypeTag,{[$().insuranceTypeTagFull]:i})},e.id))}),r&&(0,f.jsx)(A.j,{text:i?"Свернуть":"Показать еще",mainPageUrl:U.qL,icon:i?b.IconFdsChevronUpSmallO:b.IconFdsChevronDownSmallO,iconColor:"light",className:$().showMoreLicensesButton,onClick:()=>{l(e=>(e&&o.current&&o.current.scrollIntoView({behavior:"smooth",block:"center"}),!e))},widthMaxContent:!0})]})},ea=e=>{let t=(0,h.useRef)();(0,h.useEffect)(()=>{if("undefined"==typeof document)return;let n=window.innerWidth-document.documentElement.clientWidth;e&&n&&!document.body.style.top&&(t.current=window.scrollY||window.pageYOffset),e&&void 0!==t.current&&n&&(document.body.classList.add("hide-scrollbar"),document.documentElement.style.setProperty("overflow-y","scroll"),document.body.style.setProperty("width","calc(100vw - ".concat(n,"px)")),document.body.style.setProperty("top","-".concat(t.current,"px"))),e&&!n&&(document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("height","100vw"));let a=document.querySelectorAll("[data-portal]").length>1;e||a||(document.body.classList.remove("hide-scrollbar"),document.documentElement.style.removeProperty("overflow-y"),document.body.style.removeProperty("top")),e||a||void 0===t.current||(window.scrollTo(0,t.current),t.current=void 0)},[e])},ei=(e,t)=>{(0,h.useEffect)(()=>{let n;let a=()=>{let n=e.current;if(!n)return;let a=n.getBoundingClientRect().top,i=n.getBoundingClientRect().bottom,l=0;for(let e of Array.from(n.children)){let t=e.getBoundingClientRect();if(t.bottom>a&&t.top<i)l++;else break}t(l)},i=new ResizeObserver(()=>{n=requestAnimationFrame(a)});return e.current&&i.observe(e.current),n=requestAnimationFrame(a),()=>{i.disconnect(),cancelAnimationFrame(n)}},[e,t])};var el=n(71938);let eo=e=>/^https?:\/\//i.test(e)?e:"https://".concat(e),er=(e,t)=>{var n,a,i;let l=[],o=z(e,t),r=H(e,t),s=V(t);if(o){let{legal_entities:e,email:n,ogrn:o,cpp:r,bic:s,inn:c,okpo:d}=t;if(Array.isArray(e)&&(null===(i=e[0])||void 0===i?void 0:null===(a=i.licenses)||void 0===a?void 0:a.length)){let{number:t,date:n}=e[0].licenses[0];l.push({title:"Лицензия",value:"№ ".concat(t," от ").concat((0,el.p6)(n).toString()," г.").concat(o?', <a href="https://www.cbr.ru/finorg/foinfo/?ogrn='.concat(o,'" target="_blank">информация на сайте ЦБ РФ</a>'):"")})}if(Array.isArray(e)&&e.length){let{name:t,legal_address:n}=e[0]||{};t&&l.push({title:"Сокращенное наименование",value:t}),n&&l.push({title:"Юридический адрес",value:n})}n&&l.push({title:"Email",value:'<a href="mailto:'.concat(n,'">').concat(n,"</a>")}),o&&l.push({title:"ОГРН",value:o}),r&&l.push({title:"КПП",value:r}),s&&l.push({title:"БИК",value:s.padStart(9,"0")}),c&&l.push({title:"ИНН",value:c}),d&&l.push({title:"ОКПО",value:d})}if(r){let{legal_entities:[{legal_address:e,name:n,licenses:a}],legal_name:i}=t,o=i||n;e&&l.push({title:"Юридический адрес",value:e}),o&&l.push({title:"Полное наименование",value:o}),(null==a?void 0:a.length)&&l.push({title:"Свидетельство",value:a.map(e=>"№ ".concat(e.number," от ").concat((0,el.p6)(e.date).toString()))})}return s&&(null===(n=t.legal_entities)||void 0===n?void 0:n[0])?t.legal_entities.map(e=>{let{address:t,name:n,registration_number:a}=e,i=[];return n&&i.push({title:"Юридическое лицо",value:n}),t&&i.push({title:"Юридический адрес",value:t}),a&&i.push({title:"Регистрационный номер",value:a}),i}):[l]},es=e=>{let{site:t,site_url:n}=e,a=[];n&&a.push({title:"Официальный сайт",value:'<a href="'.concat(eo(n),'" target="_blank">').concat(t||n,"</a>")});let i=e.phone||e.maintel;return i&&a.push({title:"Телефоны",value:"string"==typeof i?'<a href="tel:'.concat(i,'">').concat(i,"</a>"):'<a href="tel:'.concat(i.phone,'">').concat(i.phone,"</a> <span>").concat(i.description,"</span>")}),a},ec="Реквизиты",ed="Контакты",eu=e=>{let{orgType:t,company:n,insuranceTypes:a,loadingInsuranceTypes:i}=e,l=(0,w.aF)("m"),o=H(t,n),r=t===W.$.bank,s="История ".concat(r?"банка":"компании"),c=(0,h.useRef)(null),[d,u]=(0,h.useState)(s),[m,v]=(0,h.useState)(!1),[p,_]=(0,h.useState)(!1),[g,y]=(0,h.useState)(3),[C,j]=(0,h.useState)(3);ei(c,l?y:j),ea(m);let N=t===W.$.insurance,{description:T}=n,R=er(t,n),S=es(n),P=o?null==a?void 0:a.filter(e=>{var t,a,i;return null==n?void 0:null===(i=n.legal_entities)||void 0===i?void 0:null===(a=i[0])||void 0===a?void 0:null===(t=a.ins_types)||void 0===t?void 0:t.includes(Number(e.id))}):[],I=[s];R.length>0&&I.push(ec),S.length>0&&I.push(ed);let L=d===s,B=e=>{u(e),_(!0)},M=T&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(G,{title:s,description:T,historyRowsRef:c,onShowAll:()=>v(!0),onShowMore:()=>{Array.isArray(T)&&y(T.length)},visibleItems:l?g:C,isPopup:l}),!l&&(0,f.jsx)(E.X,{organizationType:t,bannerUrl:o?O.Te[n.url]:void 0,compact:!0})]}),D=R.length>0&&(0,f.jsx)(et,{title:l?void 0:ec,items:R}),F=S.length>0&&(0,f.jsx)("div",{className:$().contacts,children:(0,f.jsx)(et,{title:l?void 0:ed,items:[S]})}),z=(!!(null==P?void 0:P.length)||i)&&(0,f.jsx)(en,{insuranceTypes:P||[],loadingInsuranceTypes:i});return(0,f.jsx)(x.W2,{children:(0,f.jsx)("div",{className:$().wrapper,children:l?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:$().bankInfoTabs,children:I.map(e=>(0,f.jsx)(A.j,{text:e,mainPageUrl:U.qL,icon:b.IconFdsChevronRightO,iconColor:"white",className:$().bankInfoTabButton,onClick:()=>B(e),widthMaxContent:!0},e))}),(0,f.jsx)(Y.j,{title:d,isOpen:p,onClose:()=>{_(!1),y(3)},full:L,className:$().historyPopup,children:L?M:d===ec?(0,f.jsxs)(f.Fragment,{children:[D,z]}):d===ed?F:null})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("div",{className:$().topRow,children:[M,(0,f.jsx)(q.d,{className:$().drawer,contentClassName:$().container,isOpen:m,onClose:()=>v(!1),title:(0,f.jsx)("p",{className:$().historyTitle,children:s}),titleAlign:"left",width:"695px",rowTitle:!0,children:(0,f.jsx)("div",{className:(0,k.Z)($().historyRows,$().historyModal),children:T&&Q(T)})})]}),(0,f.jsxs)("div",{className:(0,k.Z)($().bottomRow,N&&$().withoutWrap),children:[D,F]}),o&&z]})})})};var em=n(66285),ev=n(75599),ep=n(51479),e_=n(54550),eg=n(82869),ef=n.n(eg);let eh=e=>"".concat(e," ").concat((0,x._6)(e,"отзыв","отзыва","отзывов")," на Финуслугах"),ey=e=>(0,f.jsxs)("div",{className:(0,k.Z)(ef().starWrapper,{[ef().mid]:e.mid,[ef().big]:e.big,[ef().partial]:!e.total}),children:[(0,f.jsx)(b.IconFdsStarF,{size:e.big?20:16,className:ef().starIcon}),(0,ev.Z)(e.ratingValue),e.total?"/".concat(e.total):"",e.text?"/":"",(0,f.jsx)("span",{className:ef().starText,children:e.text})]}),eb=e=>{let t=eh(e.reviewsCount);return(0,f.jsxs)("div",{className:ef().lowReviewsRatingInfo,children:[(0,f.jsxs)("div",{className:ef().lowReviewsRatingTop,children:[(0,f.jsxs)("div",{className:ef().lowReviewsRatingTitle,children:[(0,f.jsx)(b.IconFdsStarF,{size:24,className:ef().lowReviewsRatingIcon}),(0,f.jsx)("span",{children:"Рейтинг отсутствует"})]}),(0,f.jsx)(A.j,{className:ef().lowReviewsRatingLink,text:t,mainPageUrl:U.qL,href:e.reviewsHref,target:"_self",offPadding:!0})]}),(0,f.jsxs)("div",{className:ef().lowReviewsRatingDescription,children:["Для расчета рейтинга нужно не менее ",5," отзывов"]})]})},ex=e=>{var t,n;let a=(0,w.aF)("m"),i=U.yi[e.orgType],l=e.companyPeopleRatings,o=(null==l?void 0:l.total_count)||0,r=[String(e.company.id)],s=(0,em.G)({type:e.orgType,com:r}),c=Object.entries((null==l?void 0:l.service_count)||{}).map(e=>{let[t,n]=e;return{serviceId:t,count:n.count,rating:n.rating}}),d=Object.fromEntries((null===(n=e.serviceTypes)||void 0===n?void 0:null===(t=n[e.orgType])||void 0===t?void 0:t.map(e=>{let{id:t,...n}=e;return[t,n]}))||[]);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("p",{className:ef().description,children:["Составляется на основе отзывов клиентов ",i.name_rs]}),(0,f.jsxs)("div",{className:ef().peopleRatingWrapper,children:[!e.loading&&(0,f.jsx)("div",{className:ef().peopleRatingTopInfo,children:o<5?(0,f.jsx)(eb,{reviewsCount:o,reviewsHref:s}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(ey,{ratingValue:(null==l?void 0:l.total_rating_new)||0,text:"5",big:!0}),(0,f.jsx)(A.j,{className:ef().peopleRatingTopFullInfoLink,text:eh(o),mainPageUrl:U.qL,href:s,target:"_self"})]})}),e.loading&&(0,f.jsx)(x.Od,{className:ef().peopleRatingTopInfo,width:346,height:44}),!e.loading&&c.map(t=>{var n;let{serviceId:i,count:l,rating:o}=t,s=null==d?void 0:null===(n=d[i])||void 0===n?void 0:n.name;if(!s)return null;let c=l?"".concat(l," ").concat((0,x._6)(l,"отзыв","отзыва","отзывов")):"",u=(0,em.G)({type:e.orgType,com:r,service:i});return(0,f.jsx)("a",{href:u,className:ef().rowItem,onClick:()=>{(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.block,eventActionText:(0,e_.b)(s),eventLabel:u})},children:(0,f.jsxs)("div",{className:ef().rowTitleWrapper,children:[!a&&(0,f.jsx)(ey,{ratingValue:o,total:5,mid:!0}),(0,f.jsx)("div",{className:ef().rowTitle,children:s}),(0,f.jsxs)("div",{className:ef().rowLink,children:[a&&(0,f.jsx)(ey,{ratingValue:o,mid:!0}),c&&(a?"/".concat(c):"(".concat(c,")"))]}),(0,f.jsx)(b.IconFdsArrowUpRightSmallO,{size:26,className:ef().rowItemIcon})]})},i)}),e.loading&&[1,2,3,4,5].map(e=>(0,f.jsx)(x.Od,{className:ef().rowItem,height:a?92:64},e))]}),!a&&(0,f.jsxs)("p",{className:ef().disclaimer,children:["Рейтинги ",e.company.name_r||e.company.name," составлены на основании наиболее актуальных данных за"," ",new Date().getFullYear()," год"]})]})};var ew=n(8081),eC=n(31538);let ej=e=>{let{company:t,companyPeopleRatings:n,orgType:a,serviceTypes:i,loading:l}=e;return(0,f.jsx)("div",{className:ef().wrapper,children:(0,f.jsxs)("div",{className:ef().container,children:[(0,f.jsx)("div",{className:ef().body,children:(0,f.jsxs)("div",{className:ef().info,children:[(0,f.jsx)("h2",{className:ef().title,children:"Пользовательский рейтинг"}),(0,f.jsx)(ex,{company:t,companyPeopleRatings:n,orgType:a,serviceTypes:i,loading:l})]})}),(0,f.jsxs)("div",{className:ef().bannerWrapper,children:[(0,f.jsx)(eC.l,{company:t.url,orgType:a,eventCategory:"companyDetail"}),(0,f.jsx)(ew.u,{})]})]})})};var eN=n(91672),eT=n(57234),eR=n.n(eT);let ek=e=>(0,f.jsxs)("div",{className:eR().featureInfo,children:[(0,f.jsx)("div",{className:eR().iconWrapper,style:{background:e.color},children:e.icon}),(0,f.jsxs)("div",{className:eR().content,children:[(0,f.jsx)("div",{className:eR().infoTitle,children:e.title}),(0,f.jsx)(S.default,{href:e.href||"",onClick:t=>{(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.link,eventActionText:(0,e_.b)(e.link),eventLabel:(0,e_.b)(e.title)}),e.onClick&&(t.preventDefault(),e.onClick())},children:e.link})]})]});var eA=n(68927),eS=n.n(eA);let eP=e=>{let{uslugiTabUrl:t,generalRating:n,name_rs:a,catalogUrl:i,company:l,organizationType:o,productsNum:r,onBankFeatureClick:s,getTabPath:c}=e,d=(0,T.S)().NEXT_PUBLIC_BASE_URL,u=(0,w.aF)("xs"),{reviews_num:m}=l,v=o===W.$.bank,p=o===W.$.insurance,_=m>0?"".concat(m," ").concat((0,x._6)(m,"отзыв","отзыва","отзывов")):"";return(0,f.jsxs)("div",{className:eS().content,children:[(0,f.jsx)(E.X,{organizationType:o,bannerUrl:p?O.Te[l.url]:void 0}),(0,f.jsxs)("div",{className:eS().wrapper,children:[(0,f.jsx)("div",{className:eS().logo,children:(0,f.jsx)(eN.D,{url:v&&l.bic||l.url||"",type:o,width:78,height:78,companyName:l.name})}),(0,f.jsxs)("div",{className:eS().info,children:[(0,f.jsxs)("div",{className:eS().company,children:[(0,f.jsx)("div",{className:eS().name,children:l.name}),!!n&&(0,f.jsxs)("div",{className:eS().rating,children:[(0,f.jsx)(b.IconFdsStarF,{size:u?20:24,className:eS().iconStar}),(0,ev.Z)(n)]})]}),(0,f.jsx)("p",{className:eS().description,children:l.short_description}),(0,f.jsx)(A.j,{className:eS().fullInfoLink,text:"Каталог всех ".concat(a),mainPageUrl:d,href:"".concat(d,"/").concat(i),target:"_self"})]}),(0,f.jsxs)("div",{className:eS().rightInfo,children:[r>0&&(0,f.jsx)(ek,{title:"Продукты",link:"".concat(r," ").concat((0,x._6)(r,"продукт","продукта","продуктов")," на сайте"),color:"#E7F9F6",icon:(0,f.jsx)(b.IconFdsOctostarCheckO,{size:24}),onClick:()=>s("uslugi"),href:c({tab:{id:"uslugi",path:"/".concat(t)}})}),(0,f.jsx)(ek,{title:"Пользовательский рейтинг",link:"Составляется на основе отзывов",color:"#FEF1FE",icon:(0,f.jsx)(b.IconFdsChartTrendSquareO,{size:24}),onClick:()=>s("ratings"),href:c({tab:{id:"ratings",path:"/rejtingi"}})}),(0,f.jsx)(ek,{title:l.reviews_num?"Клиенты рекомендуют":"Отзывов нет",link:_,color:"#FFF4E0",icon:(0,f.jsx)(b.IconFdsChatDotsSquareO,{size:24}),onClick:()=>s("reviews"),href:c({tab:{id:"reviews",path:"/otzyvy"}})}),(0,f.jsx)(A.j,{className:eS().fullInfoLink,text:"Каталог всех ".concat(a),mainPageUrl:U.qL,href:"".concat(d,"/").concat(i),target:"_self"})]})]})]})};var eI=n(41356);let eL=[{value:"newest",label:"Сначала новые"},{value:"oldest",label:"Сначала старые"},{value:"high-rating",label:"С высокой оценкой"},{value:"low-rating",label:"С низкой оценкой"}];var eB=n(31408),eO=n(36773);let eE=(e,t,n,a)=>e.map(e=>{let i;let l="SK"===e.target?W.$.insurance:"MFO"===e.target?W.$.mfo:W.$.bank;i=l===W.$.insurance?null==n?void 0:n.insurance_companies.find(t=>t.id===e.company_id):l===W.$.mfo?null==n?void 0:n.mfos.find(t=>t.id===e.company_id):null==n?void 0:n.companies.find(t=>t.id===e.company_id),a&&(i=a);let o=null==t?void 0:t[l],r=null==o?void 0:o.find(t=>t.id===e.service_id);return{...e,fkType:l,fkLogo:null==i?void 0:i.logo_mob,fkName:null==i?void 0:i.name,fkUrl:null==i?void 0:i.url,bic:(0,eO.A)(i)||void 0,serviceName:(null==r?void 0:r.name_sing)||(null==r?void 0:r.name)}});var eM=n(22870),eD=n(58439),eF=n.n(eD);let eU=e=>{var t;let{company:n,orgType:a,companyReviews:i,maxPage:l,serviceTypes:o,initialPage:r}=e,[s,c]=(0,h.useState)(i),[d,u]=(0,h.useState)(o),[m,v]=(0,h.useState)("newest"),[p,_]=(0,h.useState)(!1),[g,y]=(0,h.useState)(l>1),C=(0,h.useRef)(r),[j,N]=(0,h.useState)(!i.length),[T,R]=(0,h.useState)(!1),k=(0,h.useRef)(!0),A=eE(s,d,null,n),S=(null===(t=eL.find(e=>e.value===m))||void 0===t?void 0:t.label)||eL[0].label,P="oldest"===m||"low-rating"===m,I=(0,eI.K1)({type:a,companyIds:[n.id],sort:"high-rating"===m||"low-rating"===m?"rating":void 0,orderDesc:!P}),L=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;C.current=e,1===e?N(!0):R(!0),(0,eI.Jh)(I.reviews,e).then(t=>{var n,a;c([...e>1?s:[],...(null==t?void 0:null===(n=t.result)||void 0===n?void 0:n.reviews)||[]]),y(e+1<=((null==t?void 0:null===(a=t.result)||void 0===a?void 0:a.pages)||0)),d||u((0,eM.c)(t))}).finally(()=>{N(!1),R(!1)})};(0,h.useEffect)(()=>{if(k.current&&i.length>0){k.current=!1;return}L()},[a,n.id,m]);let B=(0,h.useCallback)(e=>{(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.select,eventActionText:(0,e_.b)(e.label)}),v(e.value),_(!1)},[v,_]);return(0,f.jsxs)("section",{className:eF().section,children:[(0,f.jsx)(x.W2,{children:(0,f.jsx)("div",{className:eF().sortWrapper,children:(0,f.jsxs)(w.Lt,{opened:p,placement:"bottom-end",onToggle:_,children:[(0,f.jsxs)(w.WA,{onClick:()=>_(!0),className:eF().activeSortOption,children:[P?(0,f.jsx)(b.IconFdsSortAscendingO,{className:eF().sortIcon}):(0,f.jsx)(b.IconFdsSortDescendingO,{className:eF().sortIcon}),S]}),(0,f.jsx)(w.Nv,{children:eL.map(e=>(0,f.jsx)(w.Qr,{label:e.label,onClick:()=>B(e)},e.value))})]})})}),(0,f.jsx)(eB.j,{reviews:A,onShowMore:g?()=>{L(C.current+1)}:void 0,loading:j,loadingMore:T,eventCategory:"companyDetail",initialMaxPage:l,initialPage:r,company:n})]})};var eW=n(87334),ez=n(95777),eH=n(37953),eV=n.n(eH);let eq=e=>{let{label:t,preposition:n,value:a,isTitle:i}=e,l=n?"".concat(n," ").concat(a):a,o=i&&"string"==typeof a?l:"";return(0,f.jsxs)("div",{className:(0,k.Z)(eV().group,i&&eV().titleGroup),children:[(0,f.jsx)("p",{className:eV().groupSub,title:i&&"string"==typeof t?t:"",children:t}),(0,f.jsxs)("p",{className:(0,k.Z)(eV().groupContent,n&&eV().nowrap),title:o,children:[n&&(0,f.jsx)("span",{className:eV().preposition,children:n})," ",a]})]})},eY=e=>"credit_group_id"in e,eX=e=>"card_group_id"in e,e$=e=>"deposit_group_id"in e,eQ=e=>"mortgage_group_id"in e,eG=e=>"autoCredit_group_id"in e,eZ=e=>"debitCard_group_id"in e,eJ=e=>"microCredit_group_id"in e;var eK=n(90138);let e0=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"₽";if("number"!=typeof e||0===e)return"-";let a=Math.abs(e),i=1,l="";a>=1e12?(i=1e12,l="трлн "):a>=1e9?(i=1e9,l="млрд "):a>=1e6&&(i=1e6,l="млн ");let o=a;if(t&&(o=Math.floor(10*a/i)/10),Math.floor(o)>=1e4&&(o=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")),o=(0,eK.m)(o),t&&(o+=" ".concat(l)),n){let e="string"==typeof n?n:"₽",t="₽"===e?"style='font-family: var(--font-family-primary)'":"";o+=" <span ".concat(t,">").concat(e,"</span>")}return e<0?"-".concat(o):o},e1=e=>{switch(e){case 2:case"2":case"840":case 840:case"USD":return{shortName:"долл.",unit:"$",name:"долларах",code:"USD",locale:"en",num:2};case 3:case"3":case"978":case 978:case"EUR":return{shortName:"евро",unit:"€",name:"евро",code:"EUR",locale:"en",num:3};case 4:case"4":case"156":case 156:case"CNY":return{shortName:"юань",unit:"\xa5",name:"юанях",code:"CNY",locale:"zh-CN",num:4};case 5:case"5":case"CHF":return{shortName:"франк",unit:"₣",name:"франках",code:"CHF",locale:"en",num:5};case 6:case"6":case"GBP":return{shortName:"фунт",unit:"\xa3",name:"фунтах",code:"GBP",locale:"en",num:6};case 7:case"7":case"JPY":return{shortName:"иена",unit:"\xa5",name:"иенах",code:"JPY",locale:"ja-JP",num:7};default:return{shortName:"руб.",unit:"₽",name:"рублях",code:"RUB",locale:"ru",num:1}}},e2={RATE:"rate",FULL_PRICE:"full price",AMOUNT:"amount",FIRST_PAYMENT:"first payment",MONTHLY_PAYMENT:"monthly payment",LIMIT:"limit",GRACE_PERIOD:"grace period",YEAR_COST:"year cost",TERM:"term",TERM_WITHOUT_PERCENTS:"term without percents",SERVICE_COST:"service cost",BALANCE_INTEREST:"balance interest",BONUS:"bonus"},e3={background:"var(--color-blue-200)"},e4={background:"var(--color-purple-200)"},e6={background:"var(--color-pink-100)"},e5=e=>(0,f.jsx)("span",{dangerouslySetInnerHTML:{__html:e}}),e8=e=>{var t;return(null===(t=e.online_application)||void 0===t?void 0:t.type)===3},e9=e=>{var t;return(null===(t=e.online_application)||void 0===t?void 0:t.commercial)===1},e7=e=>{var t,n,a;let i=[],l=[],o=null===(t=e.full_price)||void 0===t?void 0:t.from,r=null===(n=e.full_price)||void 0===n?void 0:n.to;void 0!==o&&void 0!==r&&i.push({name:e2.FULL_PRICE,label:"Полная стоимость кредита",value:(0,eK.m)("".concat(o,"-").concat(r,"%"))});let s=e.payment;s&&i.push({name:e2.MONTHLY_PAYMENT,label:"Ежемесячный платеж",preposition:"от",value:e5(e0(s))});let c=null===(a=e.amount)||void 0===a?void 0:a.to;return c&&i.push({name:e2.AMOUNT,label:"Сумма",preposition:"до",value:e5(e0(Number(c)))}),l.push({text:"Кредит",style:e3}),e8(e)?l.push({text:"Подача заявки на Финуслугах",color:"purple"}):l.push({text:"Открытие в банке",color:"primary"}),e.loan.not_required&&l.push({text:"Без залога",color:"primary"}),l.push({text:e.income_proof.not_required?"Без справок":"Требуется подтверждение дохода",color:"primary"}),{fields:i,chips:l}},te=e=>{let t=[],n=[],a=e.first_year_cost;if(a){let e="Бесплатно"===a?a:e0(+a.replace(/[^\d]/g,""));t.push({name:e2.YEAR_COST,label:"Обслуживание в год",value:e5(e)})}let i=e.credit_limit_to;i&&t.push({name:e2.LIMIT,label:"Кредитный лимит",preposition:"до",value:e5(e0(Number(i)))});let l=e.grace_period;return l&&t.push({name:e2.GRACE_PERIOD,label:"Льготный период",preposition:"до",value:"".concat(l," ").concat((0,x._6)(l,"дня","дней","дней"))}),n.push({text:"Кредитные карты",color:"orange"}),1===e.online_application.unplatform_banks?n.push({text:"Подача заявки на Финуслугах",style:e4}):e9(e)&&3!==e.online_application.type?n.push({text:"Подача заявки на сайте банка",style:e4}):3!==e.online_application.type&&n.push({text:"Открытие в банке",style:e4}),e.online_application.commercial_desc&&n.push({text:e.online_application.commercial_desc,color:"primary"}),n.push({text:e.proof_income_need_not?"Без справок":"Требуется подтверждение дохода",color:"primary"}),{fields:t,chips:n}},tt=e=>{var t,n,a,i,l,o,r,s;let c=[],d=[],u=null===(n=e.interest_rate)||void 0===n?void 0:null===(t=n.rates[0])||void 0===t?void 0:t.rate;u&&c.push({name:e2.RATE,label:"Ставка",value:"".concat(u,"%")});let m=null===(i=e.interest_rate)||void 0===i?void 0:null===(a=i.rates[0])||void 0===a?void 0:a.term_from;if(m){let t=m<e.interest_rate.rates[0].term_to?"от":"",n="";n=m<30?"".concat(m," дн."):m>365?"".concat(Math.round(m/365)," ").concat((0,x._6)(m,"год","года","лет")):"".concat(Math.round(m/30)," мес."),c.push({name:e2.TERM,label:"Срок",preposition:t,value:n})}let v=null===(o=e.interest_rate)||void 0===o?void 0:null===(l=o.rates[0])||void 0===l?void 0:l.amount_from;if(v){let t=e1(e.currency_id).unit;c.push({name:e2.AMOUNT,label:"Сумма вклада",preposition:"от",value:e5("".concat(e0(v,!0,t)))})}let p=!!e.type.saving_account;return d.push(p?{text:"Накопительный счет",style:e3}:{text:"Вклад",color:"orange"}),e8(e)?d.push({text:"Открытие онлайн на Финуслугах",color:"purple"}):e9(e)?d.push({text:"Заявка через сайт банка",color:"primary"}):d.push({text:"Открытие в банке",color:"primary"}),!p&&(null===(r=e.interest_capitalization)||void 0===r?void 0:r.has)&&d.push({text:"С капитализацией",color:"primary"}),!p&&(null===(s=e.refill)||void 0===s?void 0:s.has)&&d.push({text:"Пополнение",color:"primary"}),{fields:c,chips:d}},tn=e=>{var t,n,a,i;let l=[],o=[],r=null===(t=e.full_price)||void 0===t?void 0:t.from,s=null===(n=e.full_price)||void 0===n?void 0:n.to;r&&s&&l.push({name:e2.FULL_PRICE,label:"Полная стоимость кредита",value:(0,eK.m)("".concat(r,"-").concat(s,"%"))});let c=null===(a=e.amount)||void 0===a?void 0:a.to;c&&l.push({name:e2.AMOUNT,label:"Сумма кредита",preposition:"до",value:e5(e0(Number(c)))});let d=null===(i=e.first_payment)||void 0===i?void 0:i.from;return d&&l.push({name:e2.FIRST_PAYMENT,label:"Первый взнос",preposition:"от",value:"".concat(d,"%")}),o.push({text:"Ипотека",color:"green"}),e8(e)?o.push({text:"Открытие онлайн на Финуслугах",color:"purple"}):e9(e)?o.push({text:"Подача заявки на сайте банка",color:"primary"}):o.push({text:"Открытие в банке",color:"primary"}),o.push({text:e.income_proof.not_required?"Без справок":"Требуется подтверждение дохода",color:"primary"}),{fields:l,chips:o}},ta=e=>{var t,n,a,i;let l=[],o=[],r=null===(t=e.full_price)||void 0===t?void 0:t.from,s=null===(n=e.full_price)||void 0===n?void 0:n.to;r&&s&&l.push({name:e2.FULL_PRICE,label:"Полная стоимость кредита",value:(0,eK.m)("".concat(r,"-").concat(s,"%"))});let c=null===(a=e.amount)||void 0===a?void 0:a.from;c&&l.push({name:e2.AMOUNT,label:"Сумма",preposition:"от",value:e5(e0(Number(c)))});let d=null===(i=e.first_payment)||void 0===i?void 0:i.from;return d&&l.push({name:e2.FIRST_PAYMENT,label:"Первый взнос",preposition:"от",value:"".concat(d,"%")}),o.push({text:"Автокредит",style:e6}),e9(e)&&o.push({text:"Заявка через сайт банка",color:"primary"}),e.registration_address.permanent&&o.push({text:"Постоянная регистрация",color:"primary"}),e.insurance_need.need&&o.push({text:"Потребуется Каско",color:"primary"}),{fields:l,chips:o}},ti=e=>{var t,n,a,i,l;let o=[],r=[],s=(null===(n=e.service_cost)||void 0===n?void 0:null===(t=n.custom_text)||void 0===t?void 0:t.content)||(null===(a=e.service_cost)||void 0===a?void 0:a.first_year_cost);if(s){let t=e1(e.currency_id).unit,n="Бесплатно"===s?s:e0(+s.replace(/[^\d]/g,""),!0,t);n&&o.push({name:e2.SERVICE_COST,label:"Обслуживание в год",value:e5(n)})}let c=e.balance_interest_number?"".concat(e.balance_interest_number,"%"):"Нет";o.push({name:e2.BALANCE_INTEREST,label:"Проценты на остаток",value:c});let d=null;"Нет"!==e.discounts.text&&(d=e.discounts.text),e.cash_back.has&&(d="Кэшбэк");let u=String(null==e?void 0:null===(l=e.discounts)||void 0===l?void 0:null===(i=l.text)||void 0===i?void 0:i.toLowerCase());return u.includes("путешествия")&&(d="Мили"),u.includes("торговые сети")&&(d="Баллы"),d&&o.push({name:e2.BONUS,label:"Бонусы",value:d}),r.push({text:"Дебетовая карта",color:"orange"}),e9(e)&&3!==e.online_application.type?r.push({text:"Подача заявки на сайте банка",style:e4}):3!==e.online_application.type&&r.push({text:"Открытие в банке",style:e4}),e.online_application.commercial_desc&&r.push({text:e.online_application.commercial_desc,color:"primary"}),{fields:o,chips:r}},tl=e=>{let t=[],n=+e.term_without_percents;n&&t.push({name:e2.TERM_WITHOUT_PERCENTS,label:"Срок без %",value:"".concat(n," ").concat((0,x._6)(Number(n),"день","дня","дней"))}),e.amount.to&&t.push({name:e2.AMOUNT,label:"Сумма",value:e5(e0(Number(e.amount.to),!0,!1)),preposition:"до"});let a=e.period.to;return a&&t.push({name:e2.TERM,label:"Срок",value:"".concat(a," ").concat((0,x._6)(Number(a),"дня","дней","дней")),preposition:"до"}),{fields:t,chips:[]}},to=e=>{let t=[],n=[];if(eY(e)){let{fields:a,chips:i}=e7(e);t=a,n=i}if(eX(e)){let{fields:a,chips:i}=te(e);t=a,n=i}if(e$(e)){let{fields:a,chips:i}=tt(e);t=a,n=i}if(eQ(e)){let{fields:a,chips:i}=tn(e);t=a,n=i}if(eG(e)){let{fields:a,chips:i}=ta(e);t=a,n=i}if(eZ(e)){let{fields:a,chips:i}=ti(e);t=a,n=i}if(eJ(e)){let{fields:a,chips:i}=tl(e);t=a,n=i}return{fields:t,chips:n}};var tr=n(75950),ts=n.n(tr);let tc=e=>{let{offer:t,company:n,isLastOfferOnPage:a,order:i,isWhiteCard:l=!1}=e,o=(0,T.S)(),r=(0,y.usePathname)(),s=V(n),c=(0,h.useMemo)(()=>({offerId:String(t.id),order:i,category:"mfo"}),[t.id,i]),d=function(e,t){let[n,a]=(0,h.useState)(""),i=(0,eW.u)(),l=(0,ez.z)(),{offerId:o,order:r,placement:s="",category:c}=null!=t?t:{},d=void 0!==r?"".concat(s).concat(r+1):void 0;return(0,h.useEffect)(()=>{if(!e)return;let t=null;try{t=new URL(e)}catch(e){return}(function(e,t){let{pathname:n,utmSource:a,utmMedium:i,utmCampaign:l,utmTerm:o,utmContent:r,clickId:s}=t;void 0!==n&&e.set("page_path",n),void 0!==a&&e.set("utm_source",a),void 0!==i&&e.set("utm_medium",i),void 0!==l&&e.set("utm_campaign",l),void 0!==o&&e.set("utm_term",o),void 0!==r&&e.set("utm_content",r),void 0!==s&&e.set("ext_id",s)})(t.searchParams,i),function(e,t){let{browserId:n,sessionId:a,customerId:i,yandexId:l}=t;void 0!==l&&e.set("t6",l),void 0!==a&&e.set("t7",a),void 0!==n&&e.set("t8",n),void 0!==i&&e.set("t9",i)}(t.searchParams,l),void 0!==o&&t.searchParams.set("cms_offer_id",o),void 0!==d&&t.searchParams.set("order",d),void 0!==c&&t.searchParams.set("category",c),a(t.toString())},[e,i,l,o,d,c]),n}(t.online_application.url,c),u=o.NEXT_PUBLIC_BASE_URL,{fields:m,chips:v}=to(t),p=(0,h.useMemo)(()=>1===t.online_application.commercial,[t.online_application]),_=(0,h.useMemo)(()=>{let e=window.location.pathname.split("/").filter(Boolean)[2];return"".concat(u,"/").concat(s?"mikrozajmy":e,"/").concat(t.url)},[u,r,s,t.url]),g=e=>()=>{(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.offer,eventActionText:(0,e_.b)(t.title),eventLabel:e})};return(0,f.jsxs)("div",{className:(0,k.Z)(ts().card,{[ts().paddingForButton]:a,[ts().whiteCard]:l}),children:[(0,f.jsx)("div",{className:ts().top,children:(0,f.jsxs)("div",{className:ts().topContent,children:[(0,f.jsxs)("div",{className:ts().bankInfo,children:[(0,f.jsx)("div",{className:ts().icon,children:(0,f.jsx)(eN.D,{url:(0,eO.A)(n)||n.url,type:(0,eO.A)(n)?"bank":"mfo",width:40,height:40,companyName:n.name})}),(0,f.jsx)(eq,{label:t.title,value:n.name,isTitle:!0})]}),(0,f.jsx)("div",{className:ts().groups,children:m.map(e=>e.value&&(0,f.jsx)(eq,{label:e.label,preposition:e.preposition,value:e.value},e.name))})]})}),(0,f.jsxs)("div",{className:ts().bottom,children:[v.length>0&&(0,f.jsx)("div",{className:ts().chips,children:v.map(e=>(0,f.jsx)("div",{className:ts().chipWrapper,children:(0,f.jsx)(w.Vp,{label:e.text,variant:e.color,className:ts().chip,style:e.style,rounded:!0})},e.text))}),(0,f.jsxs)("div",{className:ts().buttons,children:[(0,f.jsx)(w.zx,{className:ts().offerButton,variant:"secondary",size:"xs",label:"Подробнее",as:"a",target:"_blank",href:_,onClick:g(_)}),p&&(0,f.jsx)(w.zx,{rel:"nofollow",size:"xs",label:"Оформить",as:"a",target:"_blank",href:d,onClick:g(t.online_application.url)})]})]}),a&&(0,f.jsx)("div",{className:ts().lastOfferCornerGradient})]},t.id)};var td=n(34914),tu=n.n(td);let tm=["предложение","предложения","предложений"],tv=e=>{var t;let{offers:n,bank:a,loading:i}=e,l=V(a),[o,r]=(0,h.useState)(null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0),[s,c]=(0,h.useState)(l?o:6),d=i&&!n,u=o-s,m="Ещё ".concat(u," ").concat((0,x._6)(u,...tm));return(0,h.useEffect)(()=>{r((null==n?void 0:n.length)||0),c((null==n?void 0:n.length)||0)},[n]),(0,f.jsx)("div",{className:l?void 0:tu().wrapper,children:(0,f.jsxs)(x.W2,{className:(0,k.Z)(tu().productsListContainer,{[tu().containerTopPadding]:!l}),children:[!l&&!d&&(0,f.jsx)("h2",{className:tu().title,children:"Найдено ".concat(o," ").concat((0,x._6)(null!=o?o:0,...tm))}),!l&&d&&(0,f.jsx)(x.Od,{className:tu().title}),(0,f.jsxs)("div",{id:"offers-list",className:(0,k.Z)(tu().offersList),children:[null==n?void 0:n.slice(0,s).map((e,t)=>{let n=s===t+1&&u>0;return(0,f.jsx)(tc,{company:a,offer:e,order:t,isLastOfferOnPage:l?void 0:n,isWhiteCard:l},e.id)}),d&&[1,2,3].map(e=>(0,f.jsx)(x.Od,{className:(0,k.Z)(tu().skeleton,{[tu().mfoSkeleton]:l})},e))]}),!l&&u>0&&(0,f.jsx)("div",{className:tu().showMore,children:(0,f.jsx)(w.zx,{variant:"purple",appearance:"ghost",label:m,onClick:()=>c(s+6),className:tu().showMoreButton,disabled:s>=o,iconRight:(0,f.jsx)(b.IconFdsChevronDownSmallO,{className:tu().showMoreIcon})})})]})})};var tp=n(90498),t_=n.n(tp);let tg=(e,t,n)=>{var a,i;let l=e=>{if(null==e)return null;let t="string"==typeof e?Number(e):e;return Number.isNaN(t)?null:t},o=e.reduce((e,n)=>{let a=l(t(n)),i=l(e?t(e):null);return(null!=a?a:1/0)<(null!=i?i:1/0)?n:e},null),r=e.reduce((e,t)=>{let a=l(n(t)),i=l(e?n(e):null);return(null!=a?a:-1/0)>(null!=i?i:-1/0)?t:e},null),s=null!==(a=l(o?t(o):null))&&void 0!==a?a:0,c=null!==(i=l(r?n(r):null))&&void 0!==i?i:s;return{low:s,high:c}},tf=e=>{var t;return e.site_title?e.site_title:"string"==typeof e.site?e.site:(null===(t=e.site)||void 0===t?void 0:t.title)||""},th=(e,t)=>{var n;return(null===(n=e.short_description)||void 0===n?void 0:n.trim())||"Открыть вклад ".concat(e.title," от ").concat(t," — актуальные процентные ставки по депозитам, условия и онлайн расчет дохода")},ty=e=>{var t,n,a,i,l,o,r,s,c;return String(null!==(c=null!==(s=null!==(r=null!==(o=null===(a=e.interest_rate)||void 0===a?void 0:null===(n=a.rates)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.rate)&&void 0!==o?o:e.interest_rate_from)&&void 0!==r?r:null===(i=e.interest_rate)||void 0===i?void 0:i.from)&&void 0!==s?s:null===(l=e.interest_rate)||void 0===l?void 0:l.to)&&void 0!==c?c:0)},tb=e=>(e||[]).slice(0,2).map(e=>({"@type":"Review",author:{"@type":"Person",name:e.name},datePublished:e.date?(0,el.p6)(e.date,{format:"yyyy-MM-dd"}):"",name:e.title||e.situation||"Отзыв",reviewBody:e.review,reviewRating:{"@type":"Rating",ratingValue:e.rating,bestRating:5,worstRating:1}})),tx=e=>{var t,n;let{baseUrl:a,assetsUrl:i,items:l,h1:o,description:r,company:s,service:c,serviceLink:d,generalRating:u,quote:m,reviews:v}=e,p=l.filter(e=>0===e.archive).slice(0,10),_=String(s.bic).padStart(9,"0"),g="".concat(a,"/banki/").concat(s.url,"/").concat(d),f="".concat(i,"/mp-assets/images/bank/logo-brandmark-bank-").concat(_,".svg"),h={"@context":"https://schema.org","@type":"Product",name:o,description:r,url:g},{low:y,high:b}=tg(p,e=>{var t;return null===(t=e.amount)||void 0===t?void 0:t.from},e=>{var t;return null===(t=e.amount)||void 0===t?void 0:t.to}),{low:x,high:w}=tg(p,e=>{var t;return null===(t=e.interest_rate)||void 0===t?void 0:t.from},e=>{var t;return null===(t=e.interest_rate)||void 0===t?void 0:t.to}),{low:C,high:j}=tg(p,e=>e.credit_limit_from,e=>e.credit_limit_to),N={"@type":"BankOrCreditUnion",name:s.name,url:tf(s),image:f,...Array.isArray(s.legal_entities)&&(null===(t=s.legal_entities[0])||void 0===t?void 0:t.legal_address)&&{address:{"@type":"PostalAddress",addressLocality:s.legal_entities[0].legal_address}}},T=u&&s.reviews_num?{"@type":"AggregateRating",ratingValue:u,reviewCount:s.reviews_num,ratingCount:s.reviews_num,bestRating:5,worstRating:1}:void 0;if("debitCards"===c){let e="".concat(a,"/banki/").concat(s.url);return{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":e,name:s.name,url:e,logo:f},{"@type":"Product","@id":g,name:o,brand:{"@id":e},description:r,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:x,highPrice:w,offerCount:l.length,url:g,availability:"https://schema.org/InStock"},isRelatedTo:{"@type":"ItemList",name:"Предложения дебетовых карт",itemListElement:p.map((t,n)=>{var i,l,o,r;return{"@type":"ListItem",position:n+1,item:{"@type":"PaymentCard",name:t.title,brand:{"@id":e},...t.cash_back&&t.cash_back.action&&{cashBack:t.cash_back.action},contactlessPayment:!0,offers:{"@type":"Offer",price:null!==(r=null==t?void 0:null===(o=t.interest_rate)||void 0===o?void 0:null===(l=o.rates)||void 0===l?void 0:null===(i=l[0])||void 0===i?void 0:i.amount_from)&&void 0!==r?r:0,priceCurrency:e1(t.currency_id).code,url:"".concat(a,"/debetovye_karty/").concat(t.url),availability:"https://schema.org/InStock"}}}})}}]}}if("cards"===c)return{...h,image:f,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:C,highPrice:j,offerCount:l.length,url:g,offers:p.map(e=>({"@type":"CreditCard",url:"".concat(a,"/kreditnye_karty/").concat(e.url),name:e.title,...e.credit_limit_to&&{floorLimit:e.credit_limit_to},...e.interest_rate_from&&{annualPercentageRate:{"@type":"QuantitativeValue",name:"Процентные ставки",minValue:"".concat(e.interest_rate_from,"%")}},provider:N}))},...u&&{aggregateRating:T}};if("credits"===c)return{...h,image:f,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:y,highPrice:b,offerCount:l.length,url:g,offers:p.map(e=>{let{amount:t,period:n,interest_rate:i}=e,l="".concat(a,"/potrebitelskie_kredity/").concat(e.url);return{"@type":"LoanOrCredit",url:l,name:e.title,...e.credit_limit_to&&{floorLimit:e.credit_limit_to},category:"Потребительские кредиты",...t&&t.from&&t.to&&{amount:{"@type":"MonetaryAmount",name:e.title,value:"".concat(t.from," – ").concat(t.to," ₽"),currency:"RUB"}},...n&&n.to&&{loanTerm:{"@type":"QuantitativeValue",value:n.to,unitCode:"DAY"}},...i&&i.to&&i.from&&{annualPercentageRate:{"@type":"QuantitativeValue",name:"".concat(i.from,"–").concat(i.to,"%"),minValue:i.from,maxValue:i.to}},broker:N,potentialAction:{"@type":"Action",name:"Подробнее",url:l}}})},...u&&{aggregateRating:T}};if("mortgages"===c)return{...h,image:f,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:y,highPrice:b,offerCount:l.length,url:g,offers:p.map(e=>{let{amount:t,period:n,interest_rate:i}=e,l="".concat(a,"/ipoteka/").concat(e.url);return{"@type":"LoanOrCredit",url:l,name:e.title,category:"Ипотека",...t&&t.from&&t.to&&{amount:{"@type":"MonetaryAmount",name:e.title,value:"".concat(t.from," – ").concat(t.to," ₽"),currency:"RUB"}},...n&&n.to&&{loanTerm:{"@type":"QuantitativeValue",value:n.to,unitCode:"DAY"}},...i&&i.to&&i.from&&{annualPercentageRate:{"@type":"QuantitativeValue",name:i.from===i.to?"".concat(i.to,"%"):"".concat(i.from,"–").concat(i.to,"%"),minValue:i.from,maxValue:i.to}},broker:N,potentialAction:{"@type":"Action",name:"Подробнее",url:l}}})},...u&&{aggregateRating:T}};let R=s.name_r||s.name,k=p.map(e=>({"@type":"InvestmentOrDeposit",name:e.title,url:"".concat(a,"/vklady/").concat(e.url),amount:{"@type":"MonetaryAmount",currency:"RUB",value:e.amount&&e.amount.from?e.amount.from:"1"},description:th(e,R),annualPercentageRate:ty(e)})),A="deposits"===c?tb(v):[],S={...h,brand:{"@type":"Brand",name:s.name},...T&&{aggregateRating:T},...A.length&&{review:A},isRelatedTo:k};if("deposits"===c){let e={"@type":"AggregateOffer",lowPrice:y,highPrice:b,priceCurrency:"RUB",offerCount:l.length};S.offers=e,(null==m?void 0:m.published)&&k.push({"@type":"Quotation",text:(n=m.content,t_()(n,{allowedTags:[],allowedAttributes:{}})),author:{"@type":"Person",name:m.expert.name,jobTitle:m.expert.position,sameAs:"".concat(a,"/navigator/").concat(m.expert.url)}})}return S};var tw=n(3994),tC=n.n(tw);let tj=e=>{let{service:t,href:n,active:a,onClick:i,hideCount:l}=e;return(0,f.jsxs)("a",{href:n,className:(0,k.Z)(tC().tile,{[tC().active]:a}),onClick:i,children:[(0,f.jsxs)("span",{className:tC().tileContent,children:[t.icon,(0,f.jsx)("span",{className:tC().tileTitle,children:t.title})]}),!l&&(0,f.jsx)("span",{className:tC().count,children:t.count})]})};var tN=n(4806),tT=n.n(tN);let tR=e=>{let{data:t,loading:n,activeService:a,hideCount:i}=e;return(0,f.jsx)("div",{className:tT().wrapper,children:(0,f.jsxs)("div",{className:tT().tiles,children:[t.map(t=>(0,f.jsx)(tj,{service:t,href:e.getHref(t.link),active:t.title===(null==a?void 0:a.title),onClick:e.onClick(t),hideCount:i},t.title)),n&&!t.length&&[1,2,3,4,5].map(e=>(0,f.jsx)(x.Od,{className:tT().skeleton},e))]})})};var tk=n(56227);let tA=(e,t)=>{let n=[];return t?tk.MX.has(t.url)?n.push("reg_".concat(t.url)):e&&n.push("reg_".concat(e.url),t.url):e&&n.push("reg_".concat(e.url)),n.length>0?"/".concat(n.join("/")):""};var tS=n(65993),tP=n.n(tS);let tI=e=>{var t;let{servicesBlocks:n,offersBlocks:a,bank:i,activeService:l,setActiveService:o,h1:r,description:s,loading:c,region:d,town:u,generalRating:m,quote:v,reviews:p}=e,_=(0,T.S)(),g=(0,y.usePathname)(),b=(0,h.useRef)(null),w=l?null==a?void 0:null===(t=a[l.serviceName])||void 0===t?void 0:t.data:null,C=(0,h.useCallback)((e,t)=>{o(e),!t&&b.current&&setTimeout(()=>{var e;null===(e=b.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})},100)},[o]);return(0,h.useEffect)(()=>{!l&&(null==n?void 0:n[0])&&C(n[0],!0)},[g]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(x.W2,{className:tP().section,children:[(0,f.jsx)(tR,{data:n,getHref:e=>"/banki/".concat(i.url,"/").concat(e).concat(tA(d,u)),onClick:e=>t=>{t.preventDefault(),(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.tab,eventActionText:(0,e_.b)(e.title)}),C(e)},loading:c,activeService:l}),(0,f.jsx)("div",{ref:b})]}),(0,f.jsx)(tv,{offers:w||null,tags:[],bank:i,loading:c}),Array.isArray(w)&&(null==w?void 0:w.length)>0&&(0,f.jsx)(B.d,{data:tx({baseUrl:_.NEXT_PUBLIC_BASE_URL,assetsUrl:_.NEXT_PUBLIC_S3_ASSETS,items:w,h1:r,description:s,company:i,service:(null==l?void 0:l.serviceName)||"",serviceLink:(null==l?void 0:l.link)||"",generalRating:m,quote:v,reviews:p})})]})},tL=e=>{let{services:t,loading:n}=e,a=(0,T.S)().NEXT_PUBLIC_BASE_URL;return(0,f.jsx)(x.W2,{className:tP().section,children:(0,f.jsx)(tR,{data:t||[],getHref:e=>"".concat(a,"/").concat(e),onClick:e=>()=>{(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.tab,eventActionText:(0,e_.b)(e.title),eventLabel:e.link})},loading:n&&!t,activeService:null,hideCount:!0})})},tB=e=>{let{organizationType:t,servicesBlocks:n,servicesLoading:a,bankServices:i,company:l,pageTitle:o,description:r,activeService:s,handleServiceChange:c,region:d,town:u,loading:m,mfoOffers:v,generalRating:p,quote:_,reviews:g}=e,h=t===W.$.bank,y=t===W.$.insurance,b=t===W.$.mfo;return h&&((null==n?void 0:n.length)>0||a)?(0,f.jsx)(tI,{servicesBlocks:n,offersBlocks:i,bank:l,h1:o,description:r||"",activeService:s,setActiveService:c,loading:a,region:d,town:u,generalRating:p,quote:_,reviews:g}):y?(0,f.jsx)(tL,{services:n,loading:m}):b?(0,f.jsx)(tv,{tags:[],offers:v||null,bank:l,loading:!v&&a}):null},tO=(e,t)=>{let n=(0,h.useRef)(!0),a=(0,h.useRef)(null),i=(0,y.usePathname)();(0,h.useEffect)(()=>{if(n.current){n.current=!1,a.current=i;return}i!==a.current&&(e(),a.current=i)},[...t,e,i])};var tE=n(59306);let tM=async()=>(await (0,tE.t)({url:"/money_data/BankTowns.json"})).data,tD={osago:"osago",kasko:"kasko",mortgage:"mortgage",property:"property",travel_insurance:"travel_insurance",dms:"dms",tick_insurance:"tick_insurance",sport_insurance:"sport_insurance"},tF={credit:"credits",card:"cards",deposit:"deposits",autoCredit:"autoCredits",debitCard:"debitCards",microCredit:"microCredit",mortgage:"mortgages"},tU={credit:"/money_data/Credits.json",microCredit:"/money_data/MicroCredits.json",card:"/money_data/Cards.json",debitCard:"/money_data/DebitCards.json",mortgage:"/money_data/Mortgages.json",autoCredit:"/money_data/AutoCredits.json"},tW=e=>{let{companyName:t,service:n,region:a,town:i,isMfo:l,onlyTexts:o}=e,r=new URLSearchParams({archive:"0",url:t});return n&&r.set("service",n),a&&r.set("region",a),i&&r.set("town",i),l&&(r.set("mfo","1"),r.set("service","microCredit")),o&&r.set("text","1"),r},tz=async e=>{let t=tW(e),n="/money_data/ServiceDetail.json?".concat(t.toString());return{data:(await (0,tE.t)({url:n})).data||null,service:e.service}},tH=async e=>{let t=tW(e),n="/money_data/ServiceDetail.json?".concat(t.toString());return{data:(await (0,tE.t)({url:n})).data||null,service:e.service}},tV=async e=>{let{id:t,service:n,region:a,town:i,tag:l}=e;if(!n)return;let o=new URLSearchParams({archive:"0",bank:String(t)});if(a&&o.set("region",a),i&&o.set("town",i),l){let e=l.slice(4);o.set("tag",e)}let r="".concat(tU[n],"?").concat(o.toString());return{data:(await (0,tE.t)({url:r})).data||null,service:n}},tq=async()=>{var e;return{data:(null===(e=(await (0,tE.t)({url:"/money_data/ServiceTags.json"})).data)||void 0===e?void 0:e.tags)||null}},tY=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.$.bank;return(await (0,tE.t)({url:"/money_data/Company.json?url=".concat(e,"&type=").concat(t)})).data||null},tX=async e=>(await (0,tE.t)({url:"/api/v1/banks?size=1&bic=".concat(e),options:{isHeadlessCMS:!0}})).data||null,t$=()=>(0,tE.t)({url:"/money_data/InsuranceTypes.json"}),tQ=async(e,t,n,a)=>{var i;let l=new URLSearchParams({type:(e===W.$.insurance?"sk":e).toUpperCase(),url:t});n&&l.set("region",n),a&&l.set("town",a);let o="/money_data/ServicesInfo.json?".concat(l.toString());return(null===(i=(await (0,tE.t)({url:o})).data)||void 0===i?void 0:i.services)||[]},tG=async(e,t,n,a)=>{let i=await tQ(e,t,n,a),l=e===W.$.insurance,o=l?tD:tF;return Object.keys(o).reduce((e,t)=>{var n;let a=o[t],r=i.find(e=>e.service===t);if(!r)return e;let s=null!==(n=null==r?void 0:r.count)&&void 0!==n?n:l?1:0;return e[a]={data:null,tags:[],length:s,serviceText:[]},e},{})},tZ=async e=>{var t,n,a,i;let l;let{type:o,company:r,regionUrl:s,townUrl:c,activeServiceName:d,currentBankServices:u,tag:m}=e;l=u?{...u}:await tG(o,r.url,s,c);let[v]=Object.entries(tF).find(e=>{let[t,n]=e;return n===d})||[];if(!v)return l;let p={companyName:r.url,id:r.id,service:v,region:s,town:c,tag:m},_="deposit"===v?await tz(p):await tV(p),g=await tH({...p,onlyTexts:!0}),f=null==_?void 0:null===(t=_.data)||void 0===t?void 0:t[d||""];"credits"===d&&(f=[...f,...null==_?void 0:null===(i=_.data)||void 0===i?void 0:i.credits_online]);let h=null==g?void 0:null===(n=g.data)||void 0===n?void 0:n["".concat(v,"Text")],y=c?h.town_content:h.all_russia_content,b=null==_?void 0:null===(a=_.data)||void 0===a?void 0:a["".concat(v,"Tags")];return l[d]={data:f||null,tags:b||[],length:v in tD?1:(null==f?void 0:f.length)||0,serviceText:y||[]},l},tJ=(e,t,n)=>tz({companyName:e,region:t,town:n,isMfo:!0});var tK=n(10611);let t0=async(e,t)=>e&&t?(await (0,tE.t)({url:"/api/v1/stats/banks/".concat(e,"/tags?tagId=").concat(t),options:{isHeadlessCMS:!0}})).data:null,t1=()=>(0,tE.t)({url:"/api/v2/product-tags",options:{isHeadlessCMS:!0}});var t2=n(89304),t3=n(58560);let t4=(e,t,n)=>{var a,i,l;return 1!==e.archive&&("mfo_url"in e||!("active_to"in e&&e.active_to&&new Date(e.active_to)<new Date)&&!!(!t||1===e.all_russia||((null===(a=e.custom_towns)||void 0===a?void 0:a.length)||0)>0&&e.custom_towns.includes(t.id)||!e.limited_regions&&(null==n?void 0:null===(i=n.bank_towns)||void 0===i?void 0:i[e.bank_id])&&(null==n?void 0:null===(l=n.bank_towns)||void 0===l?void 0:l[e.bank_id].includes(t.id))))},t6=(e,t,n,a)=>Object.entries(e).reduce((e,i)=>{var l;let[o,r]=i,s=(null==r?void 0:null===(l=r.data)||void 0===l?void 0:l.filter(e=>t4(e,t,n)))||null,c=Array.isArray(s)?s.length:r.length;return e[o]={data:"deposits"===o?[]:s,tags:(null==r?void 0:r.tags)||[],length:"deposits"===o&&a?a.platformProducts.length+a.nonPlatformProducts.length:c,serviceText:r.serviceText},e},{}),t5=async e=>{var t,n,a;let i=(null==e?void 0:null===(t=e.company)||void 0===t?void 0:t.name_r)||(null==e?void 0:null===(n=e.company)||void 0===n?void 0:n.name)||"",l=null==e?void 0:e.locationText,o=null==e?void 0:e.activeTag,r=await tz({companyName:e.company.url,service:"deposit"}),s=((null==r?void 0:null===(a=r.data)||void 0===a?void 0:a.deposits)||[]).map(e=>{var t,n;return(null==e?void 0:null===(n=e.interest_rate)||void 0===n?void 0:null===(t=n.rates)||void 0===t?void 0:t[0].rate)||0});return"".concat(o?o.name:"Вклады"," ").concat(i).concat(l," для физических лиц на сегодня со ставкой до ").concat(Math.max(...s),"%")},t8=(e,t)=>U.pj.find(e=>t.includes(e))?"uslugi"===e.id:U.Cp.find(e=>t.includes(e))?"ratings"===e.id:!!e.path&&t.includes(e.path),t9=e=>{if(U.pj.find(t=>e.includes(t)))return"uslugi";if(U.Cp.find(t=>e.includes(t)))return"ratings";let[t]=Object.entries(U.RV).find(t=>{let[n,a]=t;return!!a&&e.includes(a)})||[];return t||"about"},t7=async(e,t,n,a,i,l,o,r)=>{let s=z(i,e),c=V(e),d=H(i,e),u=(0,U.xB)(t,""),m=n&&Object.values(U.RV).some(e=>e==="/".concat(n)),v=s&&!u.some(e=>e.link===n),p=d&&!U.hu[n];if(n&&!n.includes("reg_")&&(v||c&&"mikrozajmy"!==n||p)&&!m)return(0,y.notFound)();let _=u.find(e=>a.includes(e.link)),g=(0,U.i7)(e,i,s,!1),f=g.find(e=>t8(e,a))||g[0],h=(null==e?void 0:e.name_r)||(null==e?void 0:e.name)||"",b=_?"".concat(_.title," ").concat(h," — Финуслуги"):f.metaTitle||f.title,x=(null==o?void 0:o.name_p)||(null==l?void 0:l.name_p),w=x?" в ".concat(x):"";return i===W.$.insurance&&"ratings"===f.id?"Рейтинг страховой компании ".concat(e.name):(null==_?void 0:_.serviceName)==="deposits"?await t5({company:e,locationText:w,activeTag:r}):(null==_?void 0:_.serviceName)==="debitCards"?"".concat(r?r.name:"Дебетовые карты"," ").concat(h).concat(w," - оформить онлайн заявку на карту на Финуслугах"):(null==_?void 0:_.serviceName)==="kasko"?"".concat(_.title," в ").concat(h).concat(w,": выбрать страховку через Финуслуги"):(null==_?void 0:_.serviceName)==="osago"?"".concat(_.title," в ").concat(h).concat(w,": выбрать страховку на авто через Финуслуги"):c&&"mikrozajmy"===n&&r?"".concat(r.name," от ").concat(h).concat(w,": оформить микрозайм ").concat(w?"":"от ".concat(h)," на Финуслугах"):c&&"mikrozajmy"===n?"Услуги ".concat(h).concat(w,": посмотреть все предложения от МФО ").concat(e.name):c?"Информация о ".concat(e.name_p,": финансовый рейтинг, отзывы клиентов, адреса офисов МФО ").concat(e.name):(null==_?void 0:_.serviceName)==="credits"?"".concat(r?"".concat(r.name," от"):"Кредиты"," ").concat(h).concat(w," — оформить ").concat(r?"":"кредит"," через Финуслуги"):(null==_?void 0:_.serviceName)==="cards"&&r?"".concat(r.name," ").concat(h).concat(w,": оформить кредитку через Финуслуги"):(null==_?void 0:_.serviceName)==="cards"?"Кредитные карты ".concat(h).concat(w,": оформить на официальном сайте Финуслуги"):(null==_?void 0:_.serviceName)==="mortgages"?"".concat(r?"".concat(r.name," от"):"Ипотека"," ").concat(h).concat(w,": подать заявку через Финуслуги"):(null==_?void 0:_.serviceName)==="autoCredits"&&r?"".concat(r.name," от ").concat(h).concat(w,": оформить на официальном сайте Финуслуги"):(null==_?void 0:_.serviceName)==="autoCredits"?"Автокредиты ".concat(h).concat(w,": выбрать и оформить через Финуслуги"):"".concat(b)};var ne=n(48156);async function nt(e){var t,n,a,i,l,o,r,s,c,d,u,m,v,p;let _=(0,T.S)().NEXT_PUBLIC_BASE_URL,[g,f,h]=e||[],b=(null==e?void 0:e.join("/"))||"",x=e.findIndex(e=>e.startsWith("reg_")),w=x>-1?e[x].replace("reg_",""):void 0,C=w?e[x+1]:void 0,j=t9(b),N=null==e?void 0:e.find(e=>e.startsWith("teg_")),R=U._V.includes(g)?W.$.insurance:U.N3.includes(g)?W.$.mfo:W.$.bank,k=R===W.$.bank,A=R===W.$.insurance,S=await tY(f,R);if(!S||!k&&"uslugi"===h||h&&!U.pj.includes("/".concat(h))&&w||h&&!h.includes("reg_")&&!U.jl.includes("/".concat(h)))return(0,y.notFound)();let[P]=Object.entries(U.ys).find(e=>{let[t,n]=e;return n===h})||[],I=null,L=null,B=null,O=await (0,t3.s)(),E=null==O?void 0:null===(n=O.companies)||void 0===n?void 0:null===(t=n.find(e=>{let{url:t}=e;return t===f}))||void 0===t?void 0:t.bic;if(E){let e=await tX(E);(null==e?void 0:null===(o=e.content)||void 0===o?void 0:null===(l=o[0])||void 0===l?void 0:l.bankId)&&(I=null==e?void 0:null===(s=e.content)||void 0===s?void 0:null===(r=s[0])||void 0===r?void 0:r.bankId)}let M=null==N?void 0:N.slice(4);k&&(B=null!==(d=null===(c=(await t1()).data)||void 0===c?void 0:c.content)&&void 0!==d?d:null);let D=null==B?void 0:null===(a=B.find(e=>e.url===(null!=M?M:"all_offers")))||void 0===a?void 0:a.id,[F,z,H,V,q,Y,X]=await Promise.allSettled([(0,t3.s)({regions:!0}),(0,t2._)(b),tZ({type:R,company:S,regionUrl:w,townUrl:C,activeServiceName:P,tag:N}),tM(),k&&"uslugi"===j?(0,tK.q)(E):null,"uslugi"!==j||A?null:tq(),k&&I&&D?t0(I,D):null]),$=null,Q=null;"fulfilled"===F.status&&F.value&&(Q=(null==($=F.value.regions.find(e=>{let{url:t}=e;return t===w})||null)?void 0:$.towns.find(e=>{let{url:t}=e;return t===C}))||null,$&&!Q&&(Q=$.towns.find(e=>{let{main:t}=e;return t})||null));let G=(0,ne._)(V,null),Z=(0,ne._)(q,null);L=(0,ne._)(X,null);let J=null;if("fulfilled"===H.status&&H.value&&(J=t6(H.value,Q,G,{platformProducts:null!==(u=null==L?void 0:L.platformProducts)&&void 0!==u?u:[],nonPlatformProducts:null!==(m=null==L?void 0:L.nonPlatformProducts)&&void 0!==m?m:[]}),(null==Z?void 0:Z.length)&&(null==J?void 0:J.deposits))){let e=(null==J?void 0:J.deposits.length)+(null==Z?void 0:Z.length);J.deposits.length=e}let K="",ee="fulfilled"===z.status?z.value:"",et=(0,ne._)(Y,null),en=null!==(v=(0,U.xB)(J,"").find(e=>b.includes(e.link)))&&void 0!==v?v:null,ea=(null==en?void 0:en.serviceTagName)&&null!==(p=null==et?void 0:null===(i=et.data)||void 0===i?void 0:i[null==en?void 0:en.serviceTagName])&&void 0!==p?p:[],ei=null==ea?void 0:ea.find(e=>"teg_".concat(e.url)===N);S&&(K=await t7(S,J,h,b,R,$,Q,ei));let el=e?"/".concat(b):"";return{title:K,description:ee,alternates:{canonical:"".concat(_).concat(el)}}}let nn=()=>{let[e,t]=(0,h.useState)(null),n=(0,y.usePathname)();return tO(()=>{(async()=>{let e=n.split(/[?#]/)[0].split("/").filter(Boolean);t(await nt(e))})()},[n]),e},na=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(await (0,tE.t)({url:"/api/v1/quotes?quoteUrl=".concat(e,"&published=").concat(t),options:{isHeadlessCMS:!0}})).data||null};var ni=n(65377);let nl={getLayoutData:async e=>(await (0,tE.t)({url:"/api/v1/layout/".concat(e),options:{isHeadlessCMS:!0}})).data||null,async getPageData(e,t){let n=new URLSearchParams({scLayoutName:e,scPageUrl:t}).toString();return(await (0,tE.t)({url:"/api/v1/data/page-data?".concat(n),options:{isHeadlessCMS:!0}})).data||null},getPage:async e=>(await (0,tE.t)({url:"/api/v1/sc-page/".concat(e),options:{isHeadlessCMS:!0}})).data||null},no={async getPageContent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"v2";return(await (0,tE.t)({url:"/api/".concat(t,"/pages/").concat(e),options:{isPageContent:!0}})).data},async getWidgetContent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"v2";return(await (0,tE.t)({url:"/api/".concat(t,"/widgets/").concat(e),options:{isPageContent:!0}})).data}};var nr=n(30318),ns=n(84620),nc=n(79920),nd=n(21013);async function nu(e){var t,n,a,i,l,o,r,s,c,d,u,m,v,p,_,g,f,h,b;let x,{slug:w,isSection:C,radioType:j,initialPage:N=1,fallbackToAnyNonEmptyRadio:T=!1}=e,{regionUrl:R,townUrl:k,companyUrl:A,pointUrl:S}=(0,nc.jO)(w||[]),P=(0,nc.lw)(w);if(P&&!S)return(0,y.notFound)();let I=null,L="true"===C,B=j||ns.Q.Atm,O=null,E=null,[M,D,F,U,z]=await Promise.allSettled([L||P?null:no.getWidgetContent("bestOffers","v1"),L||P?null:nl.getPageData("FAQ","adresa"),L||P?null:(0,eI.Jh)((0,eI.K1)({includeCompany:!0}).reviews,1,10),P?(0,ni.O9)(S||""):null,P?nl.getPageData("SupportWidget","general"):null]);async function H(e){let t=[nr.H9[e]],n=(0,ni.bv)({regionUrl:R,townUrl:k,orgUrl:A,marker:t}),a=await (0,ni.ZK)(n,N);return{dataUrl:n,addressesData:a}}P||(x=await H(B));let V=[ns.Q.Atm,ns.Q.branch,ns.Q.Legal].filter(e=>e!==B);if(T&&L){if(!(null==x?void 0:null===(r=x.addressesData)||void 0===r?void 0:null===(o=r.data)||void 0===o?void 0:o.totalItems)&&V.length){let e=V.shift();e&&(B=e,x=await H(B))}if(!(null==x?void 0:null===(c=x.addressesData)||void 0===c?void 0:null===(s=c.data)||void 0===s?void 0:s.totalItems)&&V.length){let e=V.shift();e&&(B=e,x=await H(B))}}let{dataUrl:q,addressesData:Y}=x||{},X=null,$=(0,ne._)(F,null)||null;if($){let e=(0,eM.c)($);X={scLayoutName:"ReviewsAboutFinuslugi",title:"Отзывы о финансовых организациях",subTitle:"Публикуем честные отзывы, чтобы помочь вам сделать выбор",isActive:!0,custom:{background:""},value:{type:"all",reviews:null==$?void 0:$.result.reviews.map(t=>(0,nd.W)([t],e,W.$.bank,t.company)[0]),registerButton:{link:"/otzyvy",text:"Смотреть все отзывы"}}}}let Q=[],G=0;(null==Y?void 0:Y.data)&&(Q=(null===(d=Y.data)||void 0===d?void 0:d.addresses)||[],G=(null===(u=Y.data)||void 0===u?void 0:u.maxPage)||0);let Z=null;if(A&&(null===(n=Q[0])||void 0===n?void 0:null===(t=n.company)||void 0===t?void 0:t.name)){let e="com";(null===(m=Q[0])||void 0===m?void 0:m.mfo_id)&&(e="mfo"),(null===(v=Q[0])||void 0===v?void 0:v.sk_id)&&(e="sk"),Z={label:null===(_=Q[0])||void 0===_?void 0:null===(p=_.company)||void 0===p?void 0:p.name,value:"".concat(e,"_").concat(A)}}(R||k)&&(null===(i=Q[0])||void 0===i?void 0:null===(a=i.town)||void 0===a?void 0:a.name)&&(O={id:Q[0].region_id,url:null===(f=Q[0])||void 0===f?void 0:null===(g=f.town)||void 0===g?void 0:g.region_url},E={id:Q[0].town_id,...null===(h=Q[0])||void 0===h?void 0:h.town});let J=null;if("fulfilled"===U.status&&U.value&&(J=(I=U.value||null).company),P&&I&&(R||k)){O={url:R},E={url:k||""};let e={url:k||"",region_url:R||"",name:"",name_p:""};I.town=e,I.distance_self=null===(b=I.distance_self)||void 0===b?void 0:b.map(t=>({...t,town:e}))}return!P||J&&I||(0,y.notFound)(),{addresses:Q,region:O,town:E,selectedFk:Z?[Z]:[],maxPage:G,reviews:X,company:J,address:I,dataUrl:q,faqBlockData:(0,ne._)(D,null),supportBlockData:(null===(l=(0,ne._)(z,null))||void 0===l?void 0:l.value)||null,pageIsSection:L,isDetailPage:P,initRadioType:B,bestOffersData:(0,ne._)(M,null)}}let nm=(e,t,n)=>({slug:(0,nc.ly)({[t?"fk":"sk"]:[e]}).replace("/adresa/","").split("/"),isSection:"true",radioType:n,fallbackToAnyNonEmptyRadio:t}),nv={[U.ys.credits]:"consumer_credits",[U.ys.cards]:"credit_cards",[U.ys.deposits]:"deposit",[U.ys.mortgages]:"mortgage",[U.ys.autoCredits]:"car-credit",[U.ys.debitCards]:"debit",[U.ys.microCredits]:"microcredits",[U.ys.osago]:"osago",[U.ys.kasko]:"kasko",[U.ys.mortgage]:"ipotechnoe_strahovanie",[U.ys.property]:"strahovanie_kvartir_i_domov"};function np(e){return{id:e.id,name:e.tagName,tag_name:e.tagName,url:e.url,bank_region_page:1,region_page:1,url_redirect:!1,displayInLinksBlock:e.displayInLinksBlock}}let n_=e=>{let{ssr:t,orgType:n,company:a,isInsurance:i,isBank:l,activeTabId:o,activeServiceLink:r,setDepositTagsBanksStatsData:s,bankTowns:c,setBankTowns:d,setIsUslugiTab:u,quote:m,setQuote:v,pathname:p}=e,[_,g]=(0,h.useState)(!1),[f,y]=(0,h.useState)(t.insuranceTypes),[b,x]=(0,h.useState)(t.adresaProps),[w,C]=(0,h.useState)(t.reviews),[j,N]=(0,h.useState)(t.reviewsMaxPage),[T,R]=(0,h.useState)(t.serviceTypes),[k,A]=(0,h.useState)(t.companyPeopleRatings),[S,P]=(0,h.useState)(t.tags),I=(0,eI.K1)({type:n,companyIds:[a.id],orderDesc:!0}),L=async()=>{var e,r,u,_,h,C,S,L,B,O,E,M,D,F,U,z,H,V;g(!0);let q=i&&"about"===o&&!f?t$():null,Y=!b&&"about"===o,X=n===W.$.bank?ns.Q.Atm:ns.Q.branch,$=Y?nu(nm(a.url,l,X)):null,Q=("ratings"!==o||T)&&("uslugi"!==o||w)?null:(0,eI.Jh)(I.reviews,1,4),G="ratings"!==o||k?null:(0,eI.e9)(I.ratings),Z=l&&"uslugi"===o&&!c?tM():null,J="uslugi"===o?na(p):null,K="uslugi"===o&&l?tq():null,ee=l&&t.bankProviderId&&t.depositTagId?t0(t.bankProviderId,t.depositTagId):null,[et,en,ea,ei,el,eo,er,es]=await Promise.allSettled([q,$,Q,G,Z,J,K,ee]);f||y((null===(B=(0,ne._)(et,null))||void 0===B?void 0:null===(L=B.data)||void 0===L?void 0:L.ins_types)||null),b||x((0,ne._)(en,null));let ec=(0,ne._)(ea,null);j||N((null==ec?void 0:ec.result.pages)||0),!T&&ec&&R((0,eM.c)(ec)),k||A((0,ne._)(ei,null)),c||d((0,ne._)(el,null)),m||v((null===(E=(0,ne._)(eo,null))||void 0===E?void 0:null===(O=E.content)||void 0===O?void 0:O[0])||null);let ed=(0,ne._)(es,null),eu=(0,ne._)(er,null)||null;P({data:{autoCredit:null!==(M=null==eu?void 0:null===(e=eu.data)||void 0===e?void 0:e.autoCredit)&&void 0!==M?M:[],card:null!==(D=null==eu?void 0:null===(r=eu.data)||void 0===r?void 0:r.card)&&void 0!==D?D:[],credit:null!==(F=null==eu?void 0:null===(u=eu.data)||void 0===u?void 0:u.credit)&&void 0!==F?F:[],debitCard:null!==(U=null==eu?void 0:null===(_=eu.data)||void 0===_?void 0:_.debitCard)&&void 0!==U?U:[],microCredit:null!==(z=null==eu?void 0:null===(h=eu.data)||void 0===h?void 0:h.microCredit)&&void 0!==z?z:[],mortgage:null!==(H=null==eu?void 0:null===(C=eu.data)||void 0===C?void 0:C.mortgage)&&void 0!==H?H:[],deposit:null!==(V=null==ed?void 0:null===(S=ed.tagList)||void 0===S?void 0:S.map(np))&&void 0!==V?V:[]}}),s(ed),g(!1)},B=async()=>{var e;let t=r?nv[r]:void 0,i=null==T?void 0:null===(e=T[n])||void 0===e?void 0:e.find(e=>{let{url:n}=e;return n===t}),l=(0,eI.K1)({type:n,companyIds:[a.id],orderDesc:!0,serviceId:String(null==i?void 0:i.id)}),o=await (0,eI.Jh)(l.reviews,1,4);C((null==o?void 0:o.result.reviews)||null),o&&R(e=>null!=e?e:(0,eM.c)(o))};return(0,h.useEffect)(()=>{u("uslugi"===o),L()},[o]),(0,h.useEffect)(()=>{l&&"uslugi"===o&&B()},[r,o,l,T,n,a]),{loading:_,insuranceTypes:f,adresaProps:b,reviews:w,reviewsMaxPage:j,serviceTypes:T,companyPeopleRatings:k,tags:S}},ng=async e=>{let t=new URLSearchParams({url:e}).toString();return(await (0,tE.t)({url:"/api/v2/seo-texts/by-url?".concat(t),options:{isHeadlessCMS:!0}})).data||[]};(a=d||(d={})).Fixed="FIXED",a.MaxBalance="MAX_BALANCE",a.Min="MIN",a.MinSum="MIN_SUM",a.NoRestrictions="NO_RESTRICTIONS",a.Started="STARTED",(i=u||(u={})).CustomerChoice="CUSTOMER_CHOICE",i.Fixed="FIXED",i.No="NO",(l=m||(m={})).OnDemand="ON_DEMAND",l.PreferentialRateForWholeTerm="PREFERENTIAL_RATE_FOR_WHOLE_TERM",l.WithoutRecalculationOfInterest="WITHOUT_RECALCULATION_OF_INTEREST",(o=v||(v={})).Capitalisation="CAPITALISATION",o.ToCurrentBankCustomerAccount="TO_CURRENT_BANK_CUSTOMER_ACCOUNT",o.ToNominalAccount="TO_NOMINAL_ACCOUNT",(r=p||(p={})).Daily="DAILY",r.InTheEnd="IN_THE_END",r.Monthly="MONTHLY",r.NoRestrictions="NO_RESTRICTIONS",r.OnDemand="ON_DEMAND",(s=_||(_={})).PreferentialRateForWholeTerm="PREFERENTIAL_RATE_FOR_WHOLE_TERM",s.WithoutRecalculationOfInterest="WITHOUT_RECALCULATION_OF_INTEREST",(c=g||(g={})).SALARY_OR_PENSION="SALARY_OR_PENSION",c.SPENDING="SPENDING";let nf={status_custom:null,currency_id:1,popular:0,popular_factor:0,online_application:{type:3,url:"",phones:[],commercial:0,commercial_desc:""},initial_applications_num:0,interest_rate:{comp:"",comment:"",rates:[]},amount:{comp:"",comment:""},static_tags:[],ord_inn:"",ord_company:"",ord_token:"",short_description:"",no_online_registration:0,online_application_url:null,online_application_phones:null,image_pair_id:0,is_adv:0,is_adv_content:null,deposit_group_id:0,term:{comp:"",comment:"",ladder_rates:0},partial_withdrawal:{comp:"",comment:""},interest_payment:{comp:"",comment:"",daily:0,quarterly:0,half_year:0,annually:0},refill:{comp:"",comment:""},replenishment:null,interest_capitalization:{comp:"",comment:""},preferential_termination:{comp:"",comment:""},type:{comp:"",comment:"",text:"",investment:0,pension:0,mortgage:0,multicurrency:0,charitable:0,seasonal:0,child:0,insurance:0,salary:0,saving_account:0},inc_interest_rate:{comp:"",comment:"",text:"Невозможно",has:0},special_conditions:{comment:""},additional_info:{comment:""},additional_fields:null,pluses:null,minuses:null,additional_qa_top:0,additional_qa:[],all_russia:1,limited_regions:0,custom_regions:[],custom_towns:[],unstable:0,multicurrency:0,similar_ids:[],image_pair_key:"",similar_items:[],mp:null},nh=e=>{if(!e||!e.value)return 0;let t=e.value;switch(e.type){case"MONTH":t=30.416*e.value;break;case"YEAR":t=365.25*e.value}return Math.round(t)},ny=(e,t,n)=>{var a;let i;let l=n||nf,o=t.find(t=>Number((0,eO.A)(t))===+e.bic),r=[],s=e.options[0];try{i=o&&o.legal_entities?"string"==typeof o.legal_entities?JSON.parse(o.legal_entities):o.legal_entities:void 0}catch(e){console.error(e)}let c=1e6,d=0,u=1e6,m=0;return e.options.forEach(e=>{e.currencies.forEach(t=>{t.rates.forEach(t=>{r.push({from:null,to:null,term:null,amount:null,term_from:nh(t.minimumPeriod),term_to:nh(t.maximumPeriod),rate:t.maximumRate,amount_from:t.minimumAmount||null,amount_to:t.maximumAmount||null,diff:t.topRateDelta||0,tag:{title:t&&t.tags&&t.tags.title?t.tags.title:"",description:t&&t.tags&&t.tags.description?t.tags.description:"",deeplink:t&&t.tags&&t.tags.deepLink?t.tags.deepLink:"",url:t&&t.tags&&t.tags.url?t.tags.url:""},optionId:e.id}),c=Math.min(c,t.minimumAmount),d=Math.max(d,t.maximumAmount||0),u=Math.min(u,nh(t.minimumPeriod)),m=Math.max(m,nh(t.maximumPeriod))})})}),{...l,...e,id:parseInt(e.id,10),url:e.internalUrl,title:e.name,fin_exclusive:+e.exclusive,active_to:e.activeTo,bank_id:(null==o?void 0:o.id)?Number(o.id):0,bank_name:o?o.name:"",bank_url:o?o.url:"",logo:(null==o?void 0:o.logo)?o.logo:"",logo_mob:(null==o?void 0:o.logo_mob)?o.logo_mob:"",legal_name:Array.isArray(i)&&i[0]?null===(a=i[0])||void 0===a?void 0:a.name:"",interest_rate:{...n?n.interest_rate:{},rates:r.length?r:l.interest_rate.rates},amount:{...l.amount,from:c,to:d},archive:e.archive?1:0,m_updated_at:e.updatedAt?e.updatedAt.slice(0,10):null,online_application:{...l.online_application,url:"https://lk.finuslugi.ru/add-product?aggregatorId=moex-mp-new-sc&productId=".concat(e.id,"&optionId=").concat(s.id)},term:{...l.term,from:u,to:m},partial_withdrawal:{...l.partial_withdrawal,text:s.partialWithdrawal?"Возможно":"Невозможно",has:s.partialWithdrawal?1:0},interest_payment:{...l.interest_payment,text:"IN_THE_END"===s.interestPayments[0].periods[0].type?"В конце срока":"Ежемесячно",monthly:"MONTHLY"===s.interestPayments[0].periods[0].type?1:0,end:"IN_THE_END"===s.interestPayments[0].periods[0].type?1:0},refill:{comment:"",...l.refill,text:s.replenishment?"Возможно":"Нет",has:s.replenishment?1:0},interest_capitalization:{comment:"",...l.interest_capitalization,has:"CAPITALISATION"===s.interestPayments[0].method?1:0,text:"CAPITALISATION"===s.interestPayments[0].method?"Да":"Нет"},preferential_termination:{...l.preferential_termination,text:"PREFERENTIAL_RATE_FOR_WHOLE_TERM"===s.earlyTermination?"Да":"Нет",has:"PREFERENTIAL_RATE_FOR_WHOLE_TERM"===s.earlyTermination?1:0},prolongation:{text:s.prolongations?"Предусмотрена":"Не предусмотрена"}}},nb=(e,t,n)=>{var a,i,l,o;let r=String(null!==(l=null==e?void 0:null===(a=e.contentAttributes)||void 0===a?void 0:a.bic)&&void 0!==l?l:"").padStart(9,"0"),s="".concat(t,"/mp-assets/images/bank/logo-brandmark-bank-").concat(r,".svg");return null!==(o=null==n?void 0:n.logo_mob)&&void 0!==o?o:(null==e?void 0:null===(i=e.contentAttributes)||void 0===i?void 0:i.bic)?s:void 0},nx=e=>{var t,n,a,i,l,o,r,s;let c=(null===(n=e.contentAttributes)||void 0===n?void 0:null===(t=n.integration)||void 0===t?void 0:t.integrationType)==="REFERAL"||(null===(i=e.contentAttributes)||void 0===i?void 0:null===(a=i.integration)||void 0===a?void 0:a.integrationType)==="INTERNAL_REFERAL";return{type:c?1:0,url:null!==(s=null===(o=e.contentAttributes)||void 0===o?void 0:null===(l=o.integration)||void 0===l?void 0:l.url)&&void 0!==s?s:"",commercial:c?1:0,order:null===(r=e.contentAttributes)||void 0===r?void 0:r.order}},nw=(e,t,n)=>{var a,i,l,o;return{...null==e?void 0:e.interest_rate,rates:t.length?t:null!==(l=null===(a=e.interest_rate)||void 0===a?void 0:a.rates)&&void 0!==l?l:[],comment:null!==(o=null===(i=n.contentAttributes)||void 0===i?void 0:i.ratesComment)&&void 0!==o?o:""}},nC=(e,t)=>{var n,a,i,l;let o=null==t?void 0:null===(l=t.interestPayments)||void 0===l?void 0:null===(i=l[0])||void 0===i?void 0:null===(a=i.periods)||void 0===a?void 0:null===(n=a[0])||void 0===n?void 0:n.type;return{...e.interest_payment,text:"",daily:"DAILY"===o?1:0,monthly:"MONTHLY"===o?1:0,quarterly:"QUARTERLY"===o?1:0,end:"INTEREST_AHEAD"===o?1:0}},nj=(e,t)=>({charitable:"charitable"===e.productType?1:0,child:"child"===e.productType?1:0,insurance:"insurance"===e.productType?1:0,investment:"investment"===e.productType?1:0,martgage:"mortgage"===e.productType?1:0,multicurrency:(null==t?void 0:t.currencies.length)>1?1:0,pension:"pension"===e.productType?1:0,salary:"salary"===e.productType?1:0,saving_account:"saving_account"===e.productType?1:0,seasonal:"seasonal"===e.productType?1:0}),nN=e=>{try{var t,n;if(!e)return"";let a=e.legal_entities;if("string"==typeof a){let e=JSON.parse(a);return Array.isArray(e)&&(null===(n=e[0])||void 0===n?void 0:n.name)?e[0].name:""}if(Array.isArray(a))return(null===(t=a[0])||void 0===t?void 0:t.name)||"";return""}catch(e){return""}},nT=(e,t)=>Math.min(e,t.minimumPeriod?nh(t.minimumPeriod):0),nR=(e,t)=>Math.max(e,t.maximumPeriod?nh(t.maximumPeriod):0),nk=(e,t,n)=>{var a,i,l,o,r,s;t.push({from:null,to:null,term:null,amount:null,term_from:n.minimumPeriod?nh(n.minimumPeriod):0,term_to:n.maximumPeriod?nh(n.maximumPeriod):0,rate:n.maximumRate,amount_from:null!==(r=n.minimumAmount)&&void 0!==r?r:null,amount_to:null!==(s=n.maximumAmount)&&void 0!==s?s:null,diff:n.topRateDelta||0,tag:{title:(null==n?void 0:null===(a=n.tags)||void 0===a?void 0:a.title)||"",description:(null==n?void 0:null===(i=n.tags)||void 0===i?void 0:i.description)||"",deeplink:(null==n?void 0:null===(l=n.tags)||void 0===l?void 0:l.deepLink)||"",url:(null==n?void 0:null===(o=n.tags)||void 0===o?void 0:o.url)||""},optionId:e.id})},nA=e=>{let t=[],n=1/0,a=0,i=1/0,l=0;return e.filter(e=>null==e?void 0:e.active).forEach(e=>{var o;(null!==(o=e.currencies)&&void 0!==o?o:[]).forEach(o=>{var r;(null!==(r=o.rates)&&void 0!==r?r:[]).forEach(o=>{nk(e,t,o),n=Math.min(n,o.minimumAmount),a=Math.max(a,o.maximumAmount),i=nT(i,o),l=nR(l,o)})})}),{rates:t,amountFrom:n,amountTo:a,termFrom:i,termTo:l}},nS=e=>{var t,n;return(null==e?void 0:null===(n=e.interestPayments)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.method)==="CAPITALISATION"?1:0},nP=e=>nS(e)?"Да":"Нет",nI=e=>(null==e?void 0:e.earlyTermination)===_.PreferentialRateForWholeTerm||(null==e?void 0:e.earlyTermination)===_.WithoutRecalculationOfInterest?1:0,nL=e=>nI(e)?"Да":"Нет",nB=e=>{var t,n;return(null==e?void 0:null===(n=e.replenishment)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.type)==="NO_RESTRICTIONS"?1:0},nO=e=>nB(e)?"Возможно":"Невозможно",nE=e=>{var t,n;return(null==e?void 0:null===(n=e.partialWithdrawal)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.type)==="NO_RESTRICTIONS"?1:0},nM=e=>nE(e)?"Возможно":"Невозможно",nD=(e,t,n,a)=>{var i,l,o,r,s,c,d,u,m,v,p,_,g,f,h,y,b,x,w,C,j,N;let T=null!=a?a:nf,R=null===(l=e.attributes)||void 0===l?void 0:null===(i=l.options)||void 0===i?void 0:i[0],k=nN(t),{rates:A,amountFrom:S,amountTo:P,termFrom:I,termTo:L}=nA(null!==(y=null===(o=e.attributes)||void 0===o?void 0:o.options)&&void 0!==y?y:[]),B=nb(e,n,t);return{...T,...e,id:e.id,url:null!==(b=null==e?void 0:null===(r=e.contentAttributes)||void 0===r?void 0:r.url)&&void 0!==b?b:"",title:e.name,active_to:e.visibleTo,active_from:e.visibleFrom,archive:(null===(s=e.contentAttributes)||void 0===s?void 0:s.archive)?1:0,m_updated_at:null!==(x=null===(d=e.contentAttributes)||void 0===d?void 0:null===(c=d.updatedAt)||void 0===c?void 0:c.slice(0,10))&&void 0!==x?x:"",bank_id:Number(null==t?void 0:t.id),bank_name:null!==(w=null==t?void 0:t.name)&&void 0!==w?w:"",bank_url:null!==(C=null==t?void 0:t.url)&&void 0!==C?C:"",logo:B,logo_mob:B,legal_name:k,currency_id:Number(null===(p=e.attributes.options)||void 0===p?void 0:null===(v=p[0])||void 0===v?void 0:null===(m=v.currencies)||void 0===m?void 0:null===(u=m[0])||void 0===u?void 0:u.currency),online_application:nx(e),interest_rate:nw(T,A,e),amount:{...T.amount,from:S,to:P},term:{...T.term,from:I,to:L},partial_withdrawal:{...T.partial_withdrawal,has:nE(R),text:nM(R)},interest_payment:nC(T,R),refill:{comment:"",...T.refill,has:nB(R),text:nO(R)},interest_capitalization:{comment:"",...T.interest_capitalization,has:nS(R),text:nP(R)},preferential_termination:{...T.preferential_termination,has:nI(R),text:nL(R)},type:nj(e,R),prolongation:{text:(null==R?void 0:R.prolongations)?"Предусмотрена":"Не предусмотрена"},all_russia:(null===(_=e.contentAttributes)||void 0===_?void 0:_.availableAllRussia)?1:0,custom_regions:null!==(j=null===(g=e.attributes)||void 0===g?void 0:g.regions)&&void 0!==j?j:[],multicurrency:(null==R?void 0:R.currencies.length)>1?1:0,finuslugiBonusPromotion:{},fin_exclusive:e.attributes.exclusive?1:0,asSavingAccount:null!==(N=e.attributes.asSavingAccount)&&void 0!==N&&N,promo:!1,floatingRateInformations:e.floatingRateInformations,external:{integrationType:null===(h=e.contentAttributes)||void 0===h?void 0:null===(f=h.integration)||void 0===f?void 0:f.integrationType}}},nF=e=>e.flatMap(e=>e.content||[]).sort((e,t)=>e.position-t.position).map(e=>({uniqueField:e.id,question:e.title,answer:e.content})),nU=e=>{var t,n,a,i,l,o,r,s;let c=(0,T.S)(),[d,u]=(0,h.useState)(e.initialServices),[m,v]=(0,h.useState)(e.initialMfoOffers),[p,_]=(0,h.useState)(e.initialSeoTexts),[g,f]=(0,h.useState)(e.initialQuote&&e.activeService?{[null===(t=e.activeService)||void 0===t?void 0:t.serviceName]:e.initialQuote}:{}),[y,b]=(0,h.useState)(!1),x="".concat((null===(n=e.region)||void 0===n?void 0:n.url)||"").concat((null===(a=e.town)||void 0===a?void 0:a.url)||""),w=(0,h.useRef)(x);(0,h.useEffect)(()=>{if(e.orgType!==W.$.mfo||!e.isUslugiTab||m&&x===w.current)return;w.current=x;let t=async()=>{var t,n,a,i,l,o,r;let[s,c]=await Promise.allSettled([tZ({type:e.orgType,company:e.company,regionUrl:null===(t=e.region)||void 0===t?void 0:t.url,townUrl:null===(n=e.town)||void 0===n?void 0:n.url,tag:e.tag}),tJ(e.company.url,null===(a=e.region)||void 0===a?void 0:a.url,null===(i=e.town)||void 0===i?void 0:i.url)]),d=(0,ne._)(c,null);d&&v(null===(o=d.data)||void 0===o?void 0:null===(l=o.microCredits)||void 0===l?void 0:l.filter(t=>t4(t,e.town)));let m=(0,ne._)(s,null);if(null==m?void 0:m.microCredit){let t=null==d?void 0:null===(r=d.data)||void 0===r?void 0:r.microCreditText,n=e.town?null==t?void 0:t.town_content:null==t?void 0:t.all_russia_content;m.microCredit.serviceText=n||[]}u(m)};b(!0),t().finally(()=>b(!1))},[e.company,null===(i=e.region)||void 0===i?void 0:i.url,null===(l=e.town)||void 0===l?void 0:l.url,e.isUslugiTab]),(0,h.useEffect)(()=>{var t,n;if(e.orgType!==W.$.bank||!e.isUslugiTab)return;let a=null===(t=e.activeService)||void 0===t?void 0:t.serviceName,i=!!(null==d?void 0:null===(n=d[a])||void 0===n?void 0:n.data),l=!!a&&g[a],o=x!==w.current;if(i&&l&&!o){e.setQuote(l);return}w.current=x,b(!0);let r=e.company.bic;(async()=>{var t,n,i,l,s,c,m,v,p,_;let g=null===(t=e.tag)||void 0===t?void 0:t.slice(4),h=null!==(_=null===(n=(await t1()).data)||void 0===n?void 0:n.content)&&void 0!==_?_:null,y=null==h?void 0:null===(i=h.find(e=>e.url===(null!=g?g:"all_offers")))||void 0===i?void 0:i.id,b=await tX(r),x=null==b?void 0:null===(s=b.content)||void 0===s?void 0:null===(l=s[0])||void 0===l?void 0:l.bankId,[w,C,j]=await Promise.allSettled([tZ({type:e.orgType,company:e.company,regionUrl:null===(c=e.region)||void 0===c?void 0:c.url,townUrl:null===(m=e.town)||void 0===m?void 0:m.url,activeServiceName:a,currentBankServices:o?null:d,tag:e.tag}),x&&y?t0(x,y):null,na(e.pathname)]);u((0,ne._)(w,null)),e.setDepositTagsBanksStatsData((0,ne._)(C,null));let N=(null===(p=(0,ne._)(j,null))||void 0===p?void 0:null===(v=p.content)||void 0===v?void 0:v[0])||null;a&&N&&f(e=>({...e,[a]:N})),e.setQuote(N)})().finally(()=>b(!1))},[e.company,null===(o=e.region)||void 0===o?void 0:o.url,null===(r=e.town)||void 0===r?void 0:r.url,null===(s=e.activeService)||void 0===s?void 0:s.serviceName]),(0,h.useEffect)(()=>{e.isUslugiTab&&e.isSeoTextsEnabled&&(b(!0),(async()=>{let t=await ng(e.pathname);t&&Array.isArray(t)&&_(nF(t))})().finally(()=>b(!1)))},[e.isSeoTextsEnabled,e.pathname,e.isUslugiTab]);let C=(0,h.useMemo)(()=>d?t6(d,e.town,e.bankTowns):d,[d,e.town,e.bankTowns]);return{organizationServices:(0,h.useMemo)(()=>{var t,n,a,i,l,o;if(!(null==C?void 0:null===(t=C.deposits)||void 0===t?void 0:t.data))return C;let r=[...(null!==(l=null===(n=e.depositTagsBanksStatsData)||void 0===n?void 0:n.platformProducts)&&void 0!==l?l:[]).map(t=>ny(t,[e.company])),...(null!==(o=null===(a=e.depositTagsBanksStatsData)||void 0===a?void 0:a.nonPlatformProducts)&&void 0!==o?o:[]).map(t=>nD(t,e.company,c.NEXT_PUBLIC_S3_ASSETS))];return{...C,deposits:{data:r,tags:null==C?void 0:null===(i=C.deposits)||void 0===i?void 0:i.tags,length:r.length,serviceText:C.deposits.serviceText}}},[C,e.company,e.depositTagsBanksStatsData,c.NEXT_PUBLIC_S3_ASSETS]),mfoOffers:m,servicesLoading:y,seoTexts:p}},nW=e=>{let t,{baseUrl:n,company:a,orgType:i,generalRating:l}=e,o="banki";i===W.$.mfo&&(o="mfo"),i===W.$.insurance&&(o="kompanija");let r=a.logo||a.logo_mob,s=r&&r.indexOf("http")>=0?{"@type":"ImageObject",url:r}:void 0,c=a.phone||a.maintel,{legal_entities:d}=a;if(Array.isArray(d)&&d.length>0){let e=d[0];"legal_address"in e&&e.legal_address?t=e.legal_address:"address"in e&&(t=e.address)}return{"@context":"https://schema.org","@type":i===W.$.insurance?"InsuranceAgency":"BankOrCreditUnion",name:a.name,description:a.short_description,url:"".concat(n,"/").concat(o,"/").concat(a.url),image:s,...c&&{telephone:c},...a.site&&{sameAs:[a.site]},...l&&{aggregateRating:{"@type":"AggregateRating",ratingValue:l,reviewCount:a.reviews_num,ratingCount:a.reviews_num}},...c&&{contactPoint:{"@type":"ContactPoint",telephone:c}},...i!==W.$.insurance&&t&&{address:{"@type":"PostalAddress",addressLocality:t}}}},nz=e=>{let t=((null==e?void 0:e[W.$.bank])||[]).find(e=>{let{name:t}=e;return t.toLowerCase().includes("вклады")});return(null==t?void 0:t.id)&&Number(t.id)||null},nH=e=>{var t;return null===(t=Object.values(e||{}))||void 0===t?void 0:t.reduce((e,t)=>e+t.length,0)};var nV=n(90852);let nq=e=>{let t=new Date,n=t.getDate(),a=t.getMonth(),i=t.getFullYear(),l=["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][a],o="".concat(n," ").concat(l," ").concat(i,"г.");return e.replace(/{date}/gim,o)},nY=e=>{let t=new Date().getFullYear();return e.replace(/{year}/gim,t.toString())},nX=e=>{if(!e||!e.length)return"";let t=e[0].toLowerCase();return"в"!==t&&"ф"!==t||(0,nV.r)(e[1])?"в":"во"},n$=(e,t,n,a,i,l,o,r)=>{let s=e;if(i&&(s=(s=(s=(s=s.replace(/{(bank|mfo)}/gim,i.name)).replace(/{(bank|mfo)_r}/gim,i.name_r||i.name)).replace(/{(bank|mfo)_p}/gim,i.name_p)).replace(/{(bank|mfo)_link}/gim,i.url)),l&&(s=s.replace(/{tag_name}/gim,l.tag_name.toLowerCase())),!t)return l&&(s=(s=s.replace(/в {place_p}/gim,"во всей России")).replace(/{place}/gim,"России")),nY(s=nq(s));let c=new Date().getFullYear(),d=n?n.name:t.name,u=n?n.name_r:t.name_r,m=n?n.name_p:t.name_p,v=n?n.name:t.name,p=n?n.name_r:t.name_r,_=n?n.name_p:t.name_p,g=t.name,f=t.name_r,h=t.name_p,y=!1,b=n?"reg_".concat(t.url).concat(t.towns&&t.towns.length>1?"/".concat(n.url):""):"reg_".concat(t.url);n&&(y=a.includes(n.id));let x=n&&y?"".concat(n.name," (").concat(t.name,")"):(null==n?void 0:n.name)||(null==t?void 0:t.name),w=n&&y?"".concat(n.name_r," (").concat(t.name,")"):(null==n?void 0:n.name_r)||(null==t?void 0:t.name_r),C=n&&y?"".concat(n.name_p," (").concat(t.name,")"):(null==n?void 0:n.name_p)||(null==t?void 0:t.name_p);return o&&n&&(d=x,u=w,m=C,v=x,p=w,_=C),/{place_p} {region_r}/.test(s)&&(77===t.id||76===t.id||85===t.id)&&(s=s.replace(/{region_r}/gim,"")),[[/в {place}/gim,"".concat(nX(d)," ").concat(d)],[/в {place_r}/gim,"".concat(nX(u)," ").concat(u)],[/в {place_p}/gim,"".concat(nX(m)," ").concat(m)],[/в {town}/gim,"".concat(nX(v)," ").concat(v)],[/в {town_r}/gim,"".concat(nX(p)," ").concat(p)],[/в {town_p}/gim,"".concat(nX(_)," ").concat(_)],[/в {region}/gim,"".concat(nX(g)," ").concat(g)],[/в {region_r}/gim,"".concat(nX(f)," ").concat(f)],[/в {region_p}/gim,"".concat(nX(h)," ").concat(h)],[/в {town_dub}/gim,"".concat(nX(x)," ").concat(x)],[/в {town_dub_r}/gim,"".concat(nX(w)," ").concat(w)],[/в {town_dub_p}/gim,"".concat(nX(C)," ").concat(C)],[/{place}/gim,d],[/{place_r}/gim,u],[/{place_p}/gim,m],[/{town}/gim,v],[/{town_r}/gim,p],[/{town_p}/gim,_],[/{region}/gim,g],[/{region_r}/gim,f],[/{region_p}/gim,h],[/{town_dub}/gim,x],[/{town_dub_r}/gim,w],[/{town_dub_p}/gim,C],[/{year}/gim,c.toString()],[/{place_link}/gim,b],[/{max_deposits_rate}/gim,(null==r?void 0:r.toString())||""]].forEach(e=>{let[t,n]=e;s=s.replace(t,n)}),s=nq(s)},nQ=(e,t,n,a,i)=>((null==e?void 0:e.title)&&(e.title=n$(e.title,t,n,a,i)),(null==e?void 0:e.content)&&e.content.forEach(e=>{e.data&&(e.data.html&&(e.data.html=n$(e.data.html,t,n,a,i)),e.data.text&&(e.data.text=n$(e.data.text,t,n,a,i)))}),e);var nG=n(33346),nZ=n(89487),nJ=n(47270),nK=n(26819),n0=n.n(nK),n1=e=>{var t,n,a,i,l;let o=(0,T.S)(),r=o.NEXT_PUBLIC_BASE_URL,s=o.NEXT_PUBLIC_S3_ASSETS,c="true"===o.FEATURE_TOGGLE_SEO_TEXTS,d=nn();(0,M.j)(d);let{orgType:u,generalRating:m,company:v,description:p,ssr:_,bestOffersData:g,supportBlockData:S}=e,P=(0,y.usePathname)(),{region:I,town:W,handleOpenCityModal:q}=(0,D.S)({initialRegion:_.region,initialTown:_.town}),Y=P.split("/").find(e=>e.startsWith("teg_")),X=U.yi[u],[$,Q]=(0,h.useState)(_.productsNum),[G,Z]=(0,h.useState)(_.quote),[J,K]=(0,h.useState)(_.activeTag),ee=(0,h.useRef)(!0),et=(0,h.useRef)(null),[en,ea]=(0,h.useState)(_.depositTagsBanksStats),[ei,el]=(0,h.useState)(_.bankTowns),[eo,er]=(0,h.useState)($>0&&"uslugi"===t9(P)),es=z(u,v),ec=H(u,v),ed=V(v),[em,ev]=(0,h.useState)(_.activeService),{organizationServices:eg,mfoOffers:ef,servicesLoading:eh,seoTexts:ey}=nU({isMounted:!ee.current,initialServices:_.organizationServices,initialMfoOffers:_.mfoOffers,initialSeoTexts:_.seoTexts,region:I,town:W,orgType:u,company:v,bankTowns:ei,isUslugiTab:eo,activeService:em,depositTagsBanksStatsData:en,setDepositTagsBanksStatsData:ea,initialQuote:_.quote,setQuote:Z,pathname:P,tag:Y,isSeoTextsEnabled:c}),eb=(0,h.useMemo)(()=>(0,U.xB)(eg,s),[eg]),ex=ed?"mikrozajmy":null===(t=eb[0])||void 0===t?void 0:t.link,ew=(0,U.i7)(v,u,es,$>0,ex),eC=(0,h.useMemo)(()=>ew.find(e=>t8(e,P)),[P,v]),[eN,eT]=(0,h.useState)(eC||ew[0]),eR=(()=>{let e=[{href:"/",label:"Главная"},{label:es?"Банки":"Каталог ".concat(X.name_rs_full),href:"/".concat(X.catalogUrl)},{label:v.name,href:es?"/".concat(X.catalogUrl,"/").concat(v.url):""}];if(!es)return e[e.length-1].href=void 0,e;em&&e.push({label:em.title,href:"/".concat(X.catalogUrl,"/").concat(v.url,"/").concat(em.link)}),J&&em&&e.push({label:J.tag_name,href:"/".concat(X.catalogUrl,"/").concat(v.url,"/").concat(em.link,"/teg_").concat(J.url)});let t=(null==W?void 0:W.name_p)||(null==I?void 0:I.name_p),n="kompanija"!==X.url&&(em||"uslugi"===eN.id);return t&&n&&e.push({label:"В ".concat(t)}),e[e.length-1].href=void 0,e})(),{loading:ek,insuranceTypes:eA,adresaProps:eS,reviews:eI,reviewsMaxPage:eL,serviceTypes:eB,companyPeopleRatings:eO,tags:eE}=n_({ssr:_,orgType:u,company:v,isInsurance:ec,activeTabId:eN.id,activeServiceLink:null==em?void 0:em.link,isBank:es,setDepositTagsBanksStatsData:ea,bankTowns:ei,setBankTowns:el,setIsUslugiTab:er,quote:G,setQuote:Z,pathname:P}),eM=e=>{let{tab:t,service:n}=e,a=(null==n?void 0:n.link)?"/".concat(n.link):t.path,i="kompanija"!==X.url&&(n||"uslugi"===t.id)?tA(I,W):"";return"/".concat(X.url,"/").concat(v.url).concat(a).concat(i)},eD=e=>{let t=ew.find(t=>t.id===e);if(!t)return;let{search:n,hash:a}=window.location,i=eM({tab:t}),l="".concat(i).concat(n).concat(a);window.history.replaceState(null,"",l),"uslugi"!==t.id&&ev(null),eT(t)},{pageTitle:eF,location:eW}=(0,h.useMemo)(()=>{let e=(null==W?void 0:W.name_p)||(null==I?void 0:I.name_p);return{pageTitle:J&&((null==em?void 0:em.serviceName)==="cards"||(null==em?void 0:em.serviceName)==="debitCards")?"".concat(J.name," ").concat(v.name_r||v.name):J?"".concat(J.name," от ").concat(v.name_r||v.name):(null==em?void 0:em.serviceName)==="kasko"||(null==em?void 0:em.serviceName)==="osago"?"".concat(em.title," в ").concat(v.name_r||v.name):(null==em?void 0:em.serviceName)==="microCredit"?"Предложения ".concat(v.name_r||v.name):em?"".concat(em.title," ").concat(v.name_r||v.name):eN.title,location:e}},[null==I?void 0:I.id,null==W?void 0:W.id,em,v.name_r,v.name,eN.id,J]);(0,h.useEffect)(()=>{let e=nH(eg);Q(e),e||"uslugi"!==eN.id||eD(ew[0].id)},[eg]),(0,h.useEffect)(()=>{if(ee.current){ee.current=!1;return}if(ec||"uslugi"!==eN.id)return;let e="";"uslugi"===eN.id&&ed?e="/mikrozajmy":(null==em?void 0:em.link)&&(e="/".concat(em.link));let t=Y?"/".concat(Y):"",n="uslugi"===eN.id?"":eN.path,a=tA(I,W),i="/".concat(X.url,"/").concat(v.url).concat(n).concat(e).concat(t).concat(a).concat(window.location.hash);window.history.replaceState(null,"",i)},[em,null==I?void 0:I.id,null==W?void 0:W.id]),(0,h.useEffect)(()=>{var e,t;let n=null==em?void 0:em.serviceTagName,a=n&&null!==(t=null==eE?void 0:null===(e=eE.data)||void 0===e?void 0:e[n])&&void 0!==t?t:[];K(null==a?void 0:a.find(e=>"teg_".concat(e.url)===Y))},[em,eE,Y]);let ez=(0,f.jsx)(A.j,{className:n0().partnersLink,text:"Вы представитель ".concat(U.yi[u].name_r,"?"),mainPageUrl:U.qL,href:"/partners",target:"_self",iconColor:"white"}),eH={title:"Отзывы о ".concat(v.name_p||v.name),subTitle:"",value:{reviews:(0,nd.W)(eI,eB,u,v),registerButton:{text:"Показать все отзывы",link:"/".concat(X.url,"/").concat(v.url,"/otzyvy"),customClass:n0().allReviewsButton,iconRight:(0,f.jsx)(b.IconFdsArrowRightO,{className:n0().allReviewsButtonIcon})}}},eV=(0,h.useMemo)(()=>{var e;if((null==em?void 0:em.serviceName)!=="deposits")return eI;if(null===(e=_.depositReviews)||void 0===e?void 0:e.length)return _.depositReviews;let t=nz(eB);return t?(eI||[]).filter(e=>e.service_id===t):[]},[null==em?void 0:em.serviceName,eB,eI,_.depositReviews]),eq=e=>{(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.tab,eventActionText:(0,e_.b)(e.label)}),eD(e.id)},eY=(()=>{var e,t,n;let a=null==em?void 0:em.serviceName,i=null==em?void 0:em.serviceTagName;if(!a&&!ed)return[];let l=ed?"microCredit":a,o=(null==eg?void 0:null===(e=eg[l])||void 0===e?void 0:e.serviceText)||[],r=(null==eE?void 0:null===(t=eE.data)||void 0===t?void 0:t[i||""])||[],s=tA(I,W),d=r.filter(e=>!!e.bank_region_page&&("deposits"!==a||e.displayInLinksBlock)&&(!!e.region_page||!I&&!W)).map(e=>{var t;return{id:e.id,name:"DEFAULT"===e.tag_name||"vse_vklady"===e.tag_name?"Все ".concat(null==em?void 0:null===(t=em.title_plural)||void 0===t?void 0:t.toLowerCase()):e.tag_name,url:"/".concat(X.url,"/").concat(v.url,"/").concat(null==em?void 0:em.link,"/teg_").concat(e.url).concat(s)}}).sort((e,t)=>{let n=e.name.startsWith("Все "),a=t.name.startsWith("Все ");return n&&!a?-1:!n&&a?1:0}),u="Виды ".concat(null==em?void 0:null===(n=em.title_r)||void 0===n?void 0:n.toLowerCase()),m=(0,f.jsx)(L,{data:d});return[...c?null!=ey?ey:[]:[...o.map(e=>{let t=nQ(e,I,W,[],v);return{question:t.title,answer:t.content.map(e=>e.data.html).join("")}})],...d.length>0?[{question:u,answer:m}]:[]]})();return(0,f.jsxs)("div",{className:n0().page,children:[(0,f.jsxs)(x.W2,{children:[(0,f.jsx)(w.Oo,{style:{padding:"16px 0"},items:eR,className:n0().breadcrumbs}),(0,f.jsx)(B.d,{data:(0,nG.M)(eR,o.NEXT_PUBLIC_BASE_URL,P,es)}),(0,f.jsx)(B.d,{data:nW({baseUrl:r,company:v,orgType:u,generalRating:m})}),(0,f.jsx)(eP,{uslugiTabUrl:ex,generalRating:m,name_rs:X.name_rs,catalogUrl:X.catalogUrl,company:v,organizationType:u,productsNum:$,onBankFeatureClick:e=>{var t;null===(t=et.current)||void 0===t||t.scrollIntoView({behavior:"smooth",block:"center"}),eD(e)},getTabPath:eM}),(0,f.jsxs)("div",{ref:et,className:n0().infoBlock,children:[(0,f.jsxs)("h1",{className:n0().title,children:[eF,eW&&eo&&(0,f.jsxs)(f.Fragment,{children:[" в ",(0,f.jsx)("span",{onClick:q,className:n0().location,children:eW})]})]}),(0,f.jsx)(w.iR,{className:n0().tabsWrapper,options:{spaceBetween:0,slidesPerView:"auto"},children:ew.map(e=>(0,f.jsx)(w.wI,{className:(0,k.Z)(n0().tab,{[n0().activeTab]:eN.id===e.id}),onClick:()=>eq(e),children:(0,f.jsx)("a",{href:eM({tab:e}),onClick:e=>e.preventDefault(),children:e.label})},e.id))})]})]}),"about"===eN.id&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(eu,{orgType:u,company:v,insuranceTypes:eA,loadingInsuranceTypes:!eA&&ek}),ez,(0,f.jsx)("div",{className:n0().mobileBanner,children:(0,f.jsx)(x.W2,{children:(0,f.jsx)(E.X,{organizationType:u,bannerUrl:ec?O.Te[v.url]:void 0,compact:ed})})}),!!(null==eS?void 0:null===(n=eS.selectedFk)||void 0===n?void 0:n.length)&&(0,f.jsx)(F.default,{...eS,region:I,town:W,needsGeoLocationSync:(null==I?void 0:I.url)!==(null===(a=_.region)||void 0===a?void 0:a.url)||(null==W?void 0:W.url)!==(null===(i=_.town)||void 0===i?void 0:i.url)}),ek&&!(null==eS?void 0:null===(l=eS.selectedFk)||void 0===l?void 0:l.length)&&(0,f.jsx)(x.W2,{children:(0,f.jsx)(x.Od,{className:n0().adresaSkeleton})})]}),"reviews"===eN.id&&(0,f.jsx)(eU,{company:v,orgType:u,companyReviews:eI||[],maxPage:eL,serviceTypes:eB,initialPage:e.initialPage}),"ratings"===eN.id&&(0,f.jsxs)(x.W2,{className:n0().ratingsContainer,children:[(0,f.jsx)(ej,{company:v,companyPeopleRatings:eO,orgType:u,serviceTypes:eB,loading:!eO&&ek}),ez]}),"uslugi"===eN.id&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(tB,{organizationType:u,servicesBlocks:eb,servicesLoading:eh,bankServices:eg,company:v,pageTitle:eF,description:p||"",activeService:em,handleServiceChange:e=>{if(!e)return;let{search:t,hash:n}=window.location,a=eM({tab:eN,service:e}),i="".concat(a).concat(t).concat(n);window.history.replaceState(null,"",i),ev(e)},region:I,town:W,mfoOffers:ef,generalRating:m,quote:G,reviews:eV}),G&&(0,f.jsx)(j.c,{className:n0().quote,quote:G})]}),(0,f.jsx)("div",{className:(0,k.Z)({[n0().hiddenSection]:!(es||"news"===eN.id)}),children:g&&(0,f.jsx)(C.MJ,{tabs:g,baseUrl:o.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(o.NEXT_PUBLIC_S3_ASSETS,"/mp-assets"),dataLayerPush:nZ.l})}),"uslugi"===eN.id&&(0,f.jsx)(nJ.X,{...eH,showAllStars:!0,variant:es?"secondary":"primary",loading:!eI&&ek}),!ec&&"uslugi"===eN.id&&!!eY.length&&!Y&&(0,f.jsx)(N.C,{questions:eY,dataLayerPush:nZ.l,eventCategory:U.qL,tagTitle:"h3"}),S&&(0,f.jsx)(R.B,{...S,s3Assets:o.NEXT_PUBLIC_S3_ASSETS})]})}},87334:function(e,t,n){"use strict";n.d(t,{BinomParamsProvider:function(){return r},u:function(){return s}});var a=n(57437),i=n(2265),l=n(99376);let o=(0,i.createContext)(void 0);function r(e){var t,n,r,s,c,d;let{children:u}=e,m=(0,l.useSearchParams)(),v=(0,l.usePathname)(),p=null===(t=m.get("utm_source"))||void 0===t?void 0:t.toString(),_=null===(n=m.get("utm_campaign"))||void 0===n?void 0:n.toString(),g=null===(r=m.get("utm_content"))||void 0===r?void 0:r.toString(),f=null===(s=m.get("utm_medium"))||void 0===s?void 0:s.toString(),h=null===(c=m.get("utm_term"))||void 0===c?void 0:c.toString(),y=null===(d=m.get("click_id"))||void 0===d?void 0:d.toString(),b=(0,i.useMemo)(()=>({pathname:v,utmSource:p,utmMedium:f,utmCampaign:_,utmTerm:h,utmContent:g,clickId:y}),[v,p,f,_,h,g,y]);return(0,a.jsx)(o.Provider,{value:b,children:u})}function s(){let e=(0,i.useContext)(o);if(void 0===e)throw Error("The context of the binom params is used outside of the provider");return e}},95777:function(e,t,n){"use strict";n.d(t,{UserParamsProvider:function(){return d},z:function(){return u}});var a=n(57437),i=n(2265),l=n(38856);function o(e){var t;return null!==(t=sessionStorage.getItem(e))&&void 0!==t?t:void 0}let r=(0,i.createContext)(void 0),s="browserId",c="browserSessionId";function d(e){let{children:t}=e,[n,d]=(0,i.useState)({});return(0,i.useEffect)(()=>{var e,t;let{[s]:n,[c]:a,"auth.gtm_customer_id":i,_ym_uid:r}=Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")));d({browserId:null!=n?n:null!==(t=l.A.getItem(s))&&void 0!==t?t:void 0,sessionId:null!==(e=null!=a?a:o(c))&&void 0!==e?e:o(s),customerId:i,yandexId:r})},[]),(0,a.jsx)(r.Provider,{value:n,children:t})}function u(){let e=(0,i.useContext)(r);if(void 0===e)throw Error("The context of the user params is used outside of the provider");return e}},6483:function(e,t,n){"use strict";n.d(t,{default:function(){return ex}});var a=n(57437),i=n(2265),l=n(33145),o=n(99376),r=n(35563),s=n(75461),c=n(20777),d=n(46295),u=n(17730),m=n(58560),v=n(60816),p=n(99094),_=n(31893),g=n(80684),f=n(24620),h=n(29248),y=n(8285),b=n(51479),x=n(54550),w=n(439),C=n.n(w);let j=e=>{let{filter:t,formData:n,onChange:l,onShowMore:o,onSubmit:r}=e,c=(0,s.aF)("l"),d=(0,i.useCallback)(e=>{(0,b.D)({eventCategory:y.Rd,eventActionType:b.i.select,eventActionText:(0,x.b)("Тип организации"),eventLabel:(0,x.b)(e.label||"")}),l("orgType",e)},[l]),u=(0,i.useCallback)(e=>{(0,b.D)({eventCategory:y.Rd,eventActionType:b.i.select,eventActionText:(0,x.b)("Название организации"),eventLabel:(0,x.b)((null==e?void 0:e.map(e=>{let{label:t}=e;return t}).join(","))||"")}),l("orgName",e)},[l]),m=(0,i.useCallback)(()=>{(0,b.D)({eventCategory:y.Rd,eventActionType:b.i.button,eventActionText:(0,x.b)("Все параметры")}),o()},[o]);return(0,a.jsxs)("div",{className:C().filter,children:[(0,a.jsxs)("div",{className:C().selectors,children:[(0,a.jsx)(s.Ph,{className:C().input,size:"m",label:"Тип организации",options:n.orgType,value:t.orgType,onChange:d}),(0,a.jsx)(f.H,{className:C().input,size:"middle",label:"Название организации",options:n.orgName,value:t.orgName||null,onChange:u,multiple:!0,search:!0,isMobile:c})]}),(0,a.jsxs)("div",{className:C().buttons,children:[!(c&&t.ratingType===h.BH.people)&&(0,a.jsx)(s.zx,{iconLeft:(0,a.jsx)(g.IconFdsParametersHorizontalO,{size:22}),className:C().allParametersButton,variant:"secondary",label:"Все параметры",onClick:m}),(0,a.jsx)(s.zx,{className:C().showButton,label:"Показать",onClick:r})]})]})};var N=n(40224),T=n(61994),R=n(91672),k=n(58514),A=n(8081),S=n(31538),P=n(75599);let I=(e,t)=>{let n=y.O0[t].url,a=e.url;return"/".concat(n,"/").concat(a,"/otzyvy")},L=(e,t,n)=>{let a=I(e,t);(0,b.D)({eventCategory:n||"",eventActionType:b.i.link,eventActionText:String(e.reviews_num),eventLabel:a}),window.open(a,"_blank")};var B=n(78226),O=n.n(B);let E=()=>(0,a.jsxs)("div",{className:O().header,children:[(0,a.jsx)("div",{className:O().title,children:"Пользовательский рейтинг"}),(0,a.jsx)("div",{className:O().subtitle,children:"Пользовательский рейтинг основан на отзывах клиентов банков и финансовых организаций представленых на Финуслугах"})]});var M=n(18926),D=n.n(M);let F=e=>{let{type:t,data:n,filter:l,sortOrder:o,setSort:c,loading:u}=e,m=(0,d.S)(),[v,p]=(0,i.useState)(11),_=(0,i.useCallback)(()=>{(0,b.D)({eventCategory:y.Rd,eventActionType:b.i.button,eventActionText:(0,x.b)("Показать еще")}),p(e=>e+11)},[p]),f=[{name:"Место",width:"72px",sortName:""},{name:"Название ".concat(y.O0[t].name_r),width:"1032px"},{name:"Рейтинг",width:"110px",sortName:h.vA.ratings},{name:"Все отзывы",width:"144px",sortName:h.vA.reviewsNum}],w=(e,t)=>{t&&((0,b.D)({eventCategory:y.Rd,eventActionType:b.i.button,eventActionText:(0,x.b)(e)}),c(t))},C=e=>"".concat(m.NEXT_PUBLIC_BASE_URL,"/").concat(y.O0[t].url,"/").concat(e.url).concat(k.RV.ratings),j=!!n&&(v<n.length||u&&n.length>=v),N=e=>{let t=C(e);(0,b.D)({eventCategory:y.Rd,eventActionType:b.i.offer,eventActionText:(0,x.b)(e.name),eventLabel:t})};return(0,a.jsxs)(r.W2,{className:D().desktopOnly,children:[(0,a.jsx)("div",{style:{width:"100%"},children:(0,a.jsxs)("div",{className:D().wrapper,children:[(0,a.jsx)(E,{}),(0,a.jsxs)("div",{className:D().tableWrapper,children:[(0,a.jsxs)("table",{children:[(0,a.jsx)("colgroup",{children:f.map((e,t)=>{let{width:n}=e;return(0,a.jsx)("col",{style:{width:n,minWidth:1!==t?n:void 0}},t)})}),(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:f.map((e,t)=>{let{name:n,sortName:i}=e;return(0,a.jsx)("th",{children:(0,a.jsxs)("div",{className:(0,T.Z)(D().headCell,{[D().sortIcon]:!!i,[D().active]:l===i,[D().asc]:o===h.ib.Asc}),onClick:()=>w(n,i),children:[(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:n}}),i&&(0,a.jsx)(g.IconFdsSortDescendingO,{size:24,className:D().filterIcon})]})},t)})})}),(0,a.jsx)("tbody",{children:n&&n.slice(0,v).map(e=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:D().place,children:e.place}),(0,a.jsx)("td",{children:(0,a.jsxs)("a",{className:D().bank,href:C(e),target:"_blank",onClick:()=>N(e),rel:"noreferrer",children:[(0,a.jsx)(R.D,{url:e.bic||e.url,type:t,width:32,height:32,companyName:e.name}),(0,a.jsx)("label",{children:e.name})]})}),(0,a.jsx)("td",{children:(0,a.jsx)("div",{className:D().ratingCell,children:e.reviews_num>4?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.IconFdsStarF,{className:D().star,size:22}),(0,a.jsx)("label",{children:(0,P.Z)(Number(e.reviews_rating_new))})]}):(0,a.jsxs)("div",{className:D().tooltipWrapper,children:[(0,a.jsx)("label",{children:"—"}),(0,a.jsx)(s.u,{boundingOffset:12,position:"top",text:"Недостаточно отзывов для расчета рейтинга",zIndex:1,children:(0,a.jsx)(g.IconFdsQuestionCircleO,{className:(0,T.Z)(D().hint),size:20})})]})})}),(0,a.jsx)("td",{onClick:()=>L(e,t,"rating"),children:(0,a.jsx)("a",{href:I(e,t),className:D().rewardLink,onClick:e=>e.preventDefault(),children:e.reviews_num})})]},e.url))})]}),j&&(0,a.jsx)("div",{className:D().buttonWrapper,children:(0,a.jsx)(s.zx,{size:"s",variant:"secondary",label:"Показать еще",onClick:_,pending:u})})]})]})}),(0,a.jsxs)("div",{className:D().bannerWrapper,children:[(0,a.jsx)(S.l,{eventCategory:"rating"}),(0,a.jsx)(A.u,{})]})]})};var U=n(44197),W=n(39635),z=n(64778),H=n.n(z);let V=e=>{let{item:t,type:n,className:l,baseUrl:o}=e,[r,c]=(0,i.useState)(!1),d="".concat(o,"/").concat(y.O0[n].url,"/").concat(t.url).concat(k.RV.ratings);return(0,a.jsxs)("div",{className:(0,T.Z)(H().mobileCard,l),children:[(0,a.jsxs)("a",{className:H().bank,href:d,target:"_blank",onClick:()=>{(0,b.D)({eventCategory:y.Rd,eventActionType:b.i.offer,eventActionText:(0,x.b)(t.name),eventLabel:d})},rel:"noreferrer",children:[(0,a.jsx)(R.D,{url:t.bic||t.url||"",type:n,width:32,height:32,companyName:t.name}),(0,a.jsx)("label",{children:t.name})]}),(0,a.jsxs)("div",{className:H().cardInfo,children:[(0,a.jsxs)("div",{className:H().cardInfoItem,children:[(0,a.jsx)("div",{className:H().cardValueWrapper,children:t.reviews_num>4?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.IconFdsStarF,{className:H().star,size:18}),(0,a.jsx)("p",{className:H().cardValue,children:(0,W.A)(t.reviews_rating_new)})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("label",{className:H().dash,children:"—"}),(0,a.jsx)(g.IconFdsQuestionCircleO,{onClick:()=>{c(!0)},className:H().hint,size:20})]})}),(0,a.jsx)("p",{children:"Рейтинг"})]}),(0,a.jsxs)("div",{className:H().cardInfoItem,children:[(0,a.jsx)("p",{className:H().cardValue,children:t.reviews_num}),(0,a.jsx)("p",{children:"Все отзывы"})]}),(0,a.jsxs)("div",{className:H().cardInfoItem,children:[(0,a.jsx)("p",{className:H().cardValue,children:t.place}),(0,a.jsx)("p",{children:"Место"})]})]}),(0,a.jsx)(U.j,{className:H().fullInfoLink,mainPageUrl:y.Rd,href:"".concat(o,"/").concat(y.O0[n].url,"/").concat(t.url).concat(k.RV.reviews),target:"_blank",text:"Смотреть отзывы"}),(0,a.jsx)(s.u_,{onClose:()=>{c(!1)},header:{title:void 0},open:r,children:(0,a.jsx)("div",{className:H().tooltipModalContainer,children:"Недостаточно отзывов для расчета рейтинга"})})]})};var q=n(15413),Y=n.n(q);let X=e=>{let{type:t,data:n,loading:l}=e,o=(0,d.S)(),[c,u]=(0,i.useState)(4),m=(0,i.useCallback)(()=>{(0,b.D)({eventCategory:y.Rd,eventActionType:b.i.button,eventActionText:(0,x.b)("Показать еще")}),u(e=>e+4)},[u]),v=!!n&&(c<n.length||l&&n.length>=c);return(0,a.jsxs)("div",{className:Y().mobileOnly,children:[(0,a.jsxs)("div",{className:Y().wrapper,children:[(0,a.jsx)(E,{}),n&&(0,a.jsxs)("div",{className:Y().mobileBody,children:[n.slice(0,c).map(e=>(0,a.jsx)(V,{item:e,type:t,baseUrl:o.NEXT_PUBLIC_BASE_URL},e.url)),v&&(0,a.jsx)(s.zx,{className:Y().button,size:"s",variant:"secondary",label:"Показать еще",onClick:m,pending:l})]})]}),(0,a.jsxs)(r.W2,{className:Y().bannerWrapper,children:[(0,a.jsx)(S.l,{eventCategory:"rating"}),(0,a.jsx)(A.u,{})]})]})},$=e=>{let{filter:t,sortOrder:n,organizations:i,selectedOrgs:l,region:o,setOrderDesc:r,setSortState:s,loading:c,type:d}=e,u={type:d,filter:t,selectedOrgs:l,region:o,sortOrder:n,setSort:e=>{e===t?r(n===h.ib.Desc?h.ib.Asc:h.ib.Desc):s(e)},loading:c};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(F,{...u,data:i}),(0,a.jsx)(X,{...u,data:i}),(0,a.jsx)(v.d,{data:(0,N.d)(i,d)})]})};var Q=n(24269);let G=(e,t,n)=>n?t-e:e-t,Z=e=>{let{type:t,baseUrl:n,filter:a,sortOrder:i,organizations:l,selectedOrgs:o,region:r}=e,s=l.filter(e=>0===o.length||o.includes(e.id));r&&(s=s.filter(e=>{let{region_ids:t}=e;return t.includes(r.id)}));let c=t===Q.$.mfo,d=t===Q.$.insurance,u="banki";c?u="mfo":d&&(u="kompanija");let m=i===h.ib.Desc;return[...s].sort((e,t)=>{let n=G(Number(e[a])||0,Number(t[a])||0,m);return a!==h.vA.ratings||0!==n?n:G(e.reviews_num||0,t.reviews_num||0,m)}).map((e,t)=>{var a;let i=m?t+1:s.length-t;return{bic:e.bic,reviews_rating_new:e.reviews_rating_new,reviews_num:(null==e?void 0:e.reviews_num)||0,name:(null==e?void 0:e.name)||"",logo:null!==(a=null==e?void 0:e.logo_mob)&&void 0!==a?a:"",url:(null==e?void 0:e.url)||"",description:null==e?void 0:e.short_description,detailPageUrl:"".concat(n,"/").concat(u,"/").concat((null==e?void 0:e.url)||""),phone:null==e?void 0:e.phone,site:null==e?void 0:e.site,place:i}})};var J=n(13466),K=n(53120),ee=n(49689),et=n(98323),en=n.n(et);let ea=e=>{let{filter:t,formData:n,isOpen:l,onClose:o,onSubmit:r,onReset:c,onChange:d}=e,u=(0,s.aF)("m"),m=(0,i.useCallback)(e=>{(0,b.D)({eventCategory:y.Rd,eventActionType:b.i.radio,eventActionText:(0,x.b)(e.label||"")}),d("sortBy",e.id)},[d]),v=(0,i.useCallback)(e=>{(0,b.D)({eventCategory:y.Rd,eventActionType:b.i.select,eventActionText:(0,x.b)("Тип организации"),eventLabel:(0,x.b)(e.label||"")}),d("orgType",e)},[d]),p=(0,i.useCallback)(e=>{(0,b.D)({eventCategory:y.Rd,eventActionType:b.i.radio,eventActionText:(0,x.b)(e.label)}),d("filterBy",e.id)},[d]),_=(0,i.useCallback)(e=>{(0,b.D)({eventCategory:y.Rd,eventActionType:b.i.select,eventActionText:(0,x.b)("Название организации"),eventLabel:(0,x.b)((null==e?void 0:e.map(e=>{let{label:t}=e;return t}).join(","))||"")}),d("orgName",e)},[d]),g=(0,i.useCallback)(()=>{(0,b.D)({eventCategory:y.Rd,eventActionType:b.i.button,eventActionText:(0,x.b)("Сбросить параметры")}),c()},[c]),w=t.orgType.value,C=t.ratingType===h.BH.people,j=t.ratingType===h.BH.people?y.RU:n.filterBy[w],N=(0,a.jsxs)("div",{className:en().body,children:[(0,a.jsxs)("div",{className:en().row,children:[(0,a.jsx)(s.Ph,{className:en().input,size:"m",label:"Тип организации",options:n.orgType,value:t.orgType,onChange:v}),(0,a.jsx)(f.H,{className:en().input,size:"middle",label:"Название организации",options:n.orgName,value:t.orgName||null,onChange:e=>_(e),multiple:!0,search:!0,isMobile:u})]}),C&&(0,a.jsxs)("div",{className:en().sortingPanel,children:[(0,a.jsx)("h3",{className:en().sectionTitle,children:"Фильтр по"}),(0,a.jsx)("div",{className:en().radiosWrapper,children:j.map((e,n)=>(0,a.jsx)(s.Y8,{checked:t.filterBy===e.id||!t.filterBy&&0===n,value:t.filterBy===e.id||!t.filterBy&&0===n,name:"".concat(e.id,"_radio"),label:e.label,onChange:()=>p(e)},e.id))})]}),C&&(0,a.jsx)("div",{className:en().divider}),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:en().sortingPanel,children:[(0,a.jsx)("h3",{className:en().sectionTitle,children:"Сортировать по"}),(0,a.jsx)("div",{className:en().radiosWrapper,children:n.sortBy.map(e=>(0,a.jsx)(s.Y8,{checked:t.sortBy===e.id,value:t.sortBy===e.id,name:"".concat(e.id,"_radio"),label:e.label,onChange:()=>m(e)},e.id))})]})})]}),T=(0,a.jsxs)("div",{className:en().buttonActions,children:[(0,a.jsx)(s.zx,{size:"m",className:en().button,onClick:r,children:"Показать"}),(0,a.jsx)(s.zx,{variant:"secondary",size:"m",className:en().button,onClick:g,children:"Сбросить параметры"})]});return(0,a.jsx)(J.h,{children:u?(0,a.jsx)(ee.j,{isOpen:l,onClose:o,footer:T,title:"Все параметры",children:N}):(0,a.jsx)(K.d,{isOpen:l,onClose:o,title:"Все параметры",contentClassName:en().content,titleAlign:"left",rowTitle:!0,footer:T,width:"600px",children:N})})};var ei=n(90375),el=n(7970),eo=n.n(el);let er=e=>{var t;let n=e.filter.orgType.value,i=(e.filter.ratingType===h.BH.people?[{id:h.vA.ratings,label:"По рейтингу"},{id:h.vA.reviewsNum,label:"По отзывам"}]:e.formData.filterBy[n]).map(e=>{let{id:t,label:n}=e;return{value:t,label:"По ".concat(n.toLowerCase()),shortLabel:"Сортировка"}});return(0,a.jsx)("div",{className:(0,T.Z)(eo().wrapper,{[eo().visible]:e.isVisible}),children:(0,a.jsx)(ei.p,{className:eo().customFilter,onClickParams:e.onShowMore,onClickChip:e.onShowMore,chips:[{id:"orgType",label:"Тип организации: ".concat(null===(t=e.filter.orgType)||void 0===t?void 0:t.label)}],sortTypeItems:i,sortTypeValue:e.filter.filterBy||"",onChangeSortType:t=>{e.onChange("filterBy",t)},isIncreaseSort:"desc"===e.filter.sortBy,onChangeIncreaseSort:t=>{e.onChange("sortBy",t?h.ib.Desc:h.ib.Asc)}})})},es=e=>{var t,n;let[a,l]=(0,i.useState)(e),o=(null===(t=a.orgType)||void 0===t?void 0:t.value)===Q.$.insurance,r=(null===(n=a.orgType)||void 0===n?void 0:n.value)===Q.$.mfo,s=o?"/strahovanie_otzyvy":r?"/polzovatelskij_rejting_mfo":"/polzovatelskij_rejting_bankov";(0,i.useEffect)(()=>{window.location.pathname!==s&&window.history.replaceState(null,"",s)},[s]);let c=(e,t)=>{switch(e){case"ratingType":l(e=>({...e,ratingType:t}));break;case"sortBy":l(e=>({...e,sortBy:t}));break;case"orgType":l(e=>({...e,orgType:t,orgName:null,ratingType:h.BH.people}));break;case"orgName":l(e=>({...e,orgName:t}));break;case"filterBy":l(e=>({...e,filterBy:t}))}};return{filter:a,change:c,reset:()=>{c("orgName",null)}}};var ec=n(59339),ed=n(33346),eu=n(75552),em=n(84886),ev=n(89487),ep=n(89304);let e_=(e,t)=>{let n=e;return Object.entries(t).forEach(e=>{let[t,a]=e;n=n.replaceAll(t,null!=a?a:"")}),n.replace(/\s+/g," ").replace(/\s([,.;:!?])/g,"$1").trim()},eg=async(e,t,n)=>{let a=(0,d.S)(),i=new Date().getFullYear(),l={"#REG-RP#":" ".concat((null==n?void 0:n.name_r)||(null==t?void 0:t.name_r)||"России")},[o]=e||[],r=await (0,ep._)(o),s=e?"/".concat(e.join("/")):"",c="".concat(a.NEXT_PUBLIC_BASE_URL).concat(s);return{title:e_("Рейтинг банков #REG-RP# ".concat(i," по надежности - Лучшие банки по отзывам пользователей"),l),description:e_(r||"",l),alternates:{canonical:c}}},ef=(e,t)=>{let[n,a]=(0,i.useState)(null),l=(0,o.usePathname)();return(0,i.useEffect)(()=>{(async()=>{let n=l.split(/[?#]/)[0].split("/").filter(Boolean);a(await eg(n,e,t))})()},[l,e,t]),n};var eh=n(3845),ey=n.n(eh),eb={src:"/directory/_next/static/media/banner-main.1b963c85.webp",height:432,width:976,blurDataURL:"data:image/webp;base64,UklGRpoAAABXRUJQVlA4WAoAAAAQAAAABwAAAwAAQUxQSCEAAAAAAAAABENLU14ABAcx4P1kWQ0UIRXB/zISAgEAALf/VgAAVlA4IFIAAADQAQCdASoIAAQAAkA4JbACdAEXfo+2sADhUf1KvG2Bn49/Q+yHqUlxpmj8vwO26VANDj5/8Goqov+pv/Qff4mv79UFf1N4y5/THzEdodafvAAA",blurWidth:8,blurHeight:4},ex=e=>{var t;let{initRatingForm:n,serverSelectOptions:g,initOrganizations:f,bestOffersData:w,supportBlockData:C}=e,N=(0,d.S)(),[T,R]=(0,i.useState)(!0),[k,A]=(0,i.useState)(),[S,P]=(0,i.useState)(f),I=(0,i.useRef)(null),L=(0,o.usePathname)(),{region:B,town:O,handleOpenCityModal:E}=(0,_.S)({initialRegion:null,initialTown:null}),M=ef(B,O);(0,p.j)(M);let[D,F]=(0,i.useState)(!1),[U,W]=(0,i.useState)(!1),{filter:z,change:H,reset:V}=es(n),q=(0,i.useMemo)(()=>{if(!k)return g;let e=(0,eu.l)({data:k,type:z.orgType.value});return(0,ec.u)(e).sort((e,t)=>e.label.localeCompare(t.label))},[z.orgType]),Y=y.kX[z.orgType.value],X=(0,i.useMemo)(()=>({orgType:y.un,orgName:q,ratingType:Y,sortBy:z.filterBy===h.vA.reviewsNum?y.Fo:y.pm,filterBy:y.pA}),[q,z.orgType.value,z.filterBy]),G=()=>F(e=>!e),J=(null==O?void 0:O.name_p)||(null==B?void 0:B.name_p)||"",K=z.orgType.value===Q.$.mfo,ee=y.O0[z.orgType.value].name_p,et=K?ee.toUpperCase():ee,en="Рейтинг ".concat(et),ei=[{href:"/",label:"Главная"},{label:"".concat(en," ").concat(J)}],el=(0,i.useCallback)(()=>{if((0,b.D)({eventCategory:y.Rd,eventActionType:b.i.button,eventActionText:(0,x.b)("Показать")}),F(!1),I.current){let e=I.current.getBoundingClientRect().bottom+window.scrollY;window.scrollTo({top:e,behavior:"smooth"})}},[F]);return(0,i.useEffect)(()=>{var e;(null===(e=z.orgName)||void 0===e?void 0:e.find(e=>{let{value:t}=e;return!g.find(e=>e.value===t)}))&&V()},[g]),(0,i.useEffect)(()=>{R(!0),(async()=>{let e=await (0,m.s)();e&&(A(e),R(!1))})()},[]),(0,i.useEffect)(()=>{var e;if(!k)return;let t=z.orgType.value,n=(0,eu.l)({data:k,type:t}).filter(e=>!e.archive);P(Z({type:t,baseUrl:N.NEXT_PUBLIC_BASE_URL,filter:z.filterBy,sortOrder:z.sortBy,selectedOrgs:(null===(e=z.orgName)||void 0===e?void 0:e.map(e=>e.value))||[],organizations:n,region:B}))},[k,B,z]),(0,i.useEffect)(()=>{let e=()=>{if(I.current){let e=I.current.offsetTop+I.current.offsetHeight+150;W(window.scrollY>e)}},t=(0,em.P)(e,100);return e(),window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]),(0,a.jsxs)("div",{className:ey().page,children:[(0,a.jsx)("div",{ref:I,children:(0,a.jsxs)(r.W2,{children:[(0,a.jsxs)("div",{className:ey().topBannerSection,children:[(0,a.jsxs)("div",{className:ey().left,children:[(0,a.jsx)(s.Oo,{style:{paddingTop:"16px"},items:ei}),(0,a.jsx)(v.d,{data:(0,ed.M)(ei,N.NEXT_PUBLIC_BASE_URL,L)}),(0,a.jsxs)("div",{className:ey().text,children:[(0,a.jsxs)("h1",{className:ey().title,children:[en,J?" в ":" по ",(0,a.jsx)("p",{onClick:()=>{(0,b.D)({eventCategory:y.Rd,eventActionType:b.i.link,eventActionText:(0,x.b)(J||"всей России")}),E()},children:J||"всей России"})]}),(0,a.jsxs)("div",{className:ey().subtitle,children:["Собрали актуальную информацию, чтобы вы знали, ",(0,a.jsx)("br",{className:"desktopOnly"}),"кому доверить финансы"]})]})]}),(0,a.jsx)("div",{className:ey().image,children:(0,a.jsx)(l.default,{src:eb,width:486,height:243,alt:"banner image"})})]}),(0,a.jsx)(j,{filter:z,formData:X,onSubmit:el,onShowMore:G,onChange:H}),(0,a.jsx)(ea,{isOpen:D,filter:z,formData:X,onChange:H,onClose:G,onSubmit:el,onReset:V})]})}),(0,a.jsx)(er,{isVisible:U,onShowMore:G,filter:z,formData:X,onChange:H}),(0,a.jsx)($,{sortOrder:z.sortBy,filter:z.filterBy,region:B,organizations:S,selectedOrgs:(null===(t=z.orgName)||void 0===t?void 0:t.map(e=>e.value))||[],setSortState:e=>H("filterBy",e),setOrderDesc:e=>H("sortBy",e),loading:T,type:z.orgType.value}),w&&(0,a.jsx)(c.MJ,{tabs:w,baseUrl:N.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(N.NEXT_PUBLIC_S3_ASSETS,"/mp-assets"),dataLayerPush:ev.l}),C&&(0,a.jsx)(u.B,{...C,s3Assets:N.NEXT_PUBLIC_S3_ASSETS})]})}},90476:function(e,t,n){"use strict";n.d(t,{default:function(){return Y}});var a=n(57437),i=n(35563),l=n(75461),o=n(20777),r=n(46295),s=n(17730),c=n(60816),d=n(31538),u=n(70754),m=n(24269);let v=(e,t)=>{if(!e)return 0;if("number"==typeof e.people_rating)return e.people_rating;let n=0,a=0,i=[];return t===m.$.insurance?i=[{r:e.purchase_raiting,f:.1},{r:e.precedent_raiting,f:.5},{r:e.consideration_raiting,f:.7},{r:e.payout_raiting,f:2}]:1===e.filter_id?i=[{r:e.rating.informing,f:.2},{r:e.rating.receipt,f:.4},{r:e.rating.payments,f:.8},{r:e.rating.withdrawal,f:1},{r:e.rating.repayment,f:1},{r:e.rating.closing,f:.2}]:2===e.filter_id?i=[{r:e.rating.informing,f:.2},{r:e.rating.receipt,f:.8},{r:e.rating.repayment,f:1.2},{r:e.rating.closing,f:.3}]:3===e.filter_id?i=[{r:e.rating.informing,f:.5},{r:e.rating.receipt,f:.6},{r:e.rating.repayment,f:1},{r:e.rating.closing,f:.6}]:4===e.filter_id?i=[{r:e.rating.informing,f:.2},{r:e.rating.receipt,f:.8},{r:e.rating.repayment,f:1.2},{r:e.rating.closing,f:.3}]:5===e.filter_id?i=[{r:e.rating.informing,f:.3},{r:e.rating.opening,f:.6},{r:e.rating.withdrawal,f:1},{r:e.rating.refill,f:1},{r:e.rating.closing,f:.3}]:6===e.filter_id?i=[{r:e.rating.informing,f:.1},{r:e.rating.opening,f:.6},{r:e.rating.payments,f:1},{r:e.rating.withdrawal,f:1},{r:e.rating.refill,f:.5},{r:e.rating.closing,f:.1}]:7===e.filter_id?i=[{r:e.rating.informing,f:.2},{r:e.rating.service,f:.8}]:8===e.filter_id?i=[{r:e.rating.informing,f:.2},{r:e.rating.receipt,f:.6},{r:e.rating.payments,f:1},{r:e.rating.buyout,f:.8},{r:e.rating.closing,f:.2}]:9===e.filter_id?i=[{r:e.rating.informing,f:.2},{r:e.rating.service,f:.8}]:10===e.filter_id&&(i=[{r:e.rating.informing,f:.8},{r:e.rating.receipt,f:.5},{r:e.rating.payments,f:1},{r:e.rating.service,f:.7}]),i.forEach(function(e){e.r&&(n+=e.r*e.f,a+=e.f)}),n=a?n/a:0},p=e=>{let t,{item:n,baseUrl:a,orgType:i,org:l}=e,o="".concat(a,"/banki/").concat(null==l?void 0:l.url,"/otzyvy/").concat(n.url),r=v(n,i);if(l){let{legal_entities:e}=l;if(Array.isArray(e)&&e.length>0){let n=e[0];"legal_address"in n&&n.legal_address?t=n.legal_address:"address"in n&&(t=n.address)}}return{"@context":"https://schema.org","@type":"Review","@id":"".concat(o,"#review"),mainEntityOfPage:{"@type":"WebPage","@id":o},inLanguage:"ru-RU",itemReviewed:{"@type":i===m.$.insurance?"InsuranceAgency":"BankOrCreditUnion",...l&&{name:l.name},brand:{"@type":"Organization",...l&&{name:l.name}},...t&&{address:{"@type":"PostalAddress",addressLocality:t}}},name:n.title,reviewBody:n.review,datePublished:n.published,reviewRating:{"@type":"Rating",ratingValue:Math.round(r),bestRating:5,worstRating:1},author:{"@type":"Person",name:n.first_name},publisher:{"@type":"Organization",name:"Финуслуги",url:a}}};var _=n(80684),g=n(61994),f=n(44197),h=n(91672),y=n(56227),b=n(75599),x=n(68671),w=n.n(x);let C=e=>{let t=(0,r.S)();if(!e.org)return null;let{name_p:n,url:i}=y.yi[e.orgType];return(0,a.jsx)("div",{className:(0,g.Z)(w().wrapper,e.className),children:(0,a.jsxs)("div",{className:w().card,children:[(0,a.jsxs)("div",{className:w().logo,children:[(0,a.jsx)(h.D,{url:e.org.bic||e.org.url||"",type:e.orgType,width:42,height:42,companyName:e.org.name}),(0,a.jsxs)("div",{className:w().ratingBadge,children:[(0,a.jsx)(_.IconFdsStarF,{className:w().star}),(0,b.Z)(e.generalRating||0)]})]}),(0,a.jsx)("div",{className:w().title,children:e.org.name}),(0,a.jsx)("ul",{className:w().list,children:!!e.org.reviews_num&&(0,a.jsxs)("li",{children:[e.org.reviews_num," отзывов"]})}),(0,a.jsx)(f.j,{className:w().fullInfoLink,mainPageUrl:t.NEXT_PUBLIC_BASE_URL,href:"/".concat(i,"/").concat(e.org.url),target:"_self",text:"Подробнее о ".concat(n)})]})})};var j=n(71938),N=n(16205),T=n.n(N);let R=e=>{let{data:t,organization:n,organizationType:i}=e;if(t.length)return(0,a.jsxs)("div",{className:T().answers,children:[(0,a.jsx)("p",{className:T().title,children:"Ответ организации"}),(0,a.jsx)("div",{className:T().list,children:t.map(e=>{let{id:t,answer:l,published:o,user:{company_name:r}}=e;return(0,a.jsxs)("div",{className:T().answer,children:[(0,a.jsx)("div",{className:T().logo,children:(0,a.jsx)(h.D,{url:(null==n?void 0:n.bic)||(null==n?void 0:n.url)||"",type:i,width:48,height:48,companyName:null==n?void 0:n.name})}),(0,a.jsxs)("div",{className:T().content,children:[(0,a.jsxs)("div",{className:T().info,children:[(0,a.jsx)("p",{className:T().name,children:r}),(0,a.jsx)("p",{className:T().date,children:(0,j.p6)(o,{format:"dd.MM.yyyy HH:mm"}).toString()})]}),(0,a.jsx)("div",{className:T().text,dangerouslySetInnerHTML:{__html:l}})]})]},t)})})]})};var k=n(94073),A=n(68583),S=n.n(A);let P=e=>{var t,n,i,o,r,s;let c=v(e.review,e.orgType);return(0,a.jsxs)("div",{className:S().wrapper,children:[(0,a.jsxs)("div",{className:S().header,children:[(0,a.jsxs)("div",{className:S().user,children:[(0,a.jsx)(k.y,{user:e.review.first_name,bic:null===(t=e.org)||void 0===t?void 0:t.bic,fkUrl:null===(n=e.org)||void 0===n?void 0:n.url,fkLogo:null===(i=e.org)||void 0===i?void 0:i.logo_mob,fkType:e.orgType,type:"ReviewDetail",fkName:null===(o=e.org)||void 0===o?void 0:o.name}),(0,a.jsxs)("div",{className:S().info,children:[(0,a.jsx)("div",{className:S().name,children:e.review.first_name}),(0,a.jsxs)("div",{className:S().rating,children:[(0,b.Z)(c),(0,a.jsx)("div",{className:S().ratingStars,children:[1,2,3,4,5].map(e=>(0,a.jsx)(_.IconFdsStarF,{size:18,className:(0,g.Z)(S().star,{[S().gray]:e>Number(c)})},e))})]})]})]}),(0,a.jsx)("div",{className:S().date,children:(0,j.p6)(e.review.published).toString()})]}),(0,a.jsxs)("div",{className:S().tags,children:[!!(null===(r=e.org)||void 0===r?void 0:r.name)&&(0,a.jsx)(l.Vp,{label:null===(s=e.org)||void 0===s?void 0:s.name,variant:"secondary"}),!!e.review.serviceName&&(0,a.jsx)(l.Vp,{label:e.review.serviceName,variant:"secondary"}),e.review.answers.length>0&&(0,a.jsx)(l.Vp,{label:"Есть ответ банка",variant:"purple"})]}),(0,a.jsxs)("div",{className:S().text,children:[(0,a.jsx)("div",{className:S().title,children:e.review.title}),(0,a.jsx)("div",{className:S().review,children:e.review.review})]}),(0,a.jsx)(R,{data:e.review.answers,organization:e.org,organizationType:e.orgType})]})},I=(e,t,n)=>{switch(t){case m.$.insurance:return"/otzyv/".concat((null==n?void 0:n.url)||"","/").concat(e.url);case m.$.mfo:return"/mfo/".concat((null==n?void 0:n.url)||"","/otzyvy/").concat(e.url);default:return"/banki/".concat((null==n?void 0:n.url)||"","/otzyvy/").concat(e.url)}};var L=n(51479),B=n(54550),O=n(83756),E=n.n(O);let M=e=>{var t,n,i,o,r,s;let c=I(e.review,e.orgType,e.org);return(0,a.jsxs)("a",{className:E().wrapper,href:c,target:"_self",onClick:()=>{(0,L.D)({eventCategory:u.lD,eventActionType:L.i.offer,eventActionText:(0,B.b)(e.review.title||""),eventLabel:(0,B.b)(c||"")})},children:[(0,a.jsxs)("div",{className:E().header,children:[(0,a.jsxs)("div",{className:E().user,children:[(0,a.jsx)(k.y,{user:e.review.first_name,bic:null===(t=e.org)||void 0===t?void 0:t.bic,fkUrl:null===(n=e.org)||void 0===n?void 0:n.url,fkLogo:null===(i=e.org)||void 0===i?void 0:i.logo_mob,fkType:e.orgType,forceMobile:!0,fkName:null===(o=e.org)||void 0===o?void 0:o.name}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:E().name,children:e.review.first_name}),(0,a.jsxs)("div",{className:E().rating,children:[(0,b.Z)(v(e.review,e.orgType)),(0,a.jsx)(_.IconFdsStarF,{size:16,className:E().ratingIcon})]})]})]}),(0,a.jsx)("div",{className:E().date,children:(0,j.p6)(e.review.published).toString()})]}),(0,a.jsxs)("div",{className:E().tags,children:[!!(null===(r=e.org)||void 0===r?void 0:r.name)&&(0,a.jsx)(l.Vp,{size:"s",label:null===(s=e.org)||void 0===s?void 0:s.name,variant:"secondary"}),!!e.review.serviceName&&(0,a.jsx)(l.Vp,{size:"s",label:e.review.serviceName,variant:"secondary"}),e.review.answers.length>0&&(0,a.jsx)(l.Vp,{size:"s",label:"Есть ответ банка",variant:"purple"})]}),(0,a.jsxs)("div",{className:E().text,children:[(0,a.jsx)("div",{className:E().title,children:e.review.title}),(0,a.jsx)("div",{className:E().review,children:e.review.review}),(0,a.jsxs)("div",{className:E().footer,children:[(0,a.jsx)("button",{className:E().readMore,children:"Читать полностью"}),e.review.answers.length>0&&(0,a.jsxs)("button",{className:E().commentsIcon,children:[(0,a.jsx)(_.IconFdsChatDotsCircleO,{size:20}),(0,a.jsx)("p",{className:E().commentsLabel,children:e.review.answers.length})]})]})]})]})};var D=n(90852),F=n(1413),U=n.n(F);let W=e=>{var t,n,i,l,o;let s=(0,r.S)().NEXT_PUBLIC_BASE_URL,c=(0,D.r)((null===(t=e.org)||void 0===t?void 0:t.name_p)||"")?"об":"о",{name_p:d,url:u}=y.yi[e.orgType],v=e.orgType===m.$.insurance?"/otzyvy/".concat(null===(n=e.org)||void 0===n?void 0:n.url):"/".concat(u,"/").concat(null===(i=e.org)||void 0===i?void 0:i.url,"/otzyvy");return(0,a.jsxs)("div",{className:(0,g.Z)(U().wrapper,e.className),children:[(0,a.jsx)("h2",{className:U().title,dangerouslySetInnerHTML:{__html:"Другие отзывы".concat((null===(l=e.org)||void 0===l?void 0:l.name_p)?" ".concat(c,"&nbsp;").concat(null===(o=e.org)||void 0===o?void 0:o.name_p):"")}}),(0,a.jsx)("div",{className:U().list,children:e.companyReviews.map(t=>(0,a.jsx)(M,{review:t,...e},t.id))}),!!e.org&&(0,a.jsx)(f.j,{className:U().fullInfoLink,iconColor:"white",mainPageUrl:s,href:v,target:"_self",text:"Смотреть все отзывы о ".concat(d)})]})},z={[m.$.bank]:{name:"Банк",name_p:"банках",name_r:"банков",any:"Любой",url:"/polzovatelskij_rejting_bankov"},[m.$.mfo]:{name:"МФО",name_p:"мфо",name_r:"мфо",any:"Любая",url:"/polzovatelskij_rejting_mfo"},[m.$.insurance]:{name:"Страховая",name_p:"страховых компаниях",name_r:"страховых",any:"Любая",url:"/strahovanie_otzyvy"}};var H=n(89487),V=n(77919),q=n.n(V),Y=e=>{let{orgType:t,review:n,companyReviews:v,org:_,generalRating:g,orgPlace:f,mostPopularServiceName:h,bestOffersData:y,supportBlockData:b}=e,x=(0,r.S)(),w=z[t],j=(0,D.r)((null==_?void 0:_.name)||"")?"об":"о",N=(null==_?void 0:_.name_p)?" ".concat(j," ").concat(null==_?void 0:_.name_p):"",T=n.first_name_r?" от ".concat(n.first_name_r):"",R={[m.$.mfo]:"mfo",[m.$.insurance]:"sk"}[t]||null;return(0,a.jsxs)("div",{className:q().page,children:[(0,a.jsxs)(i.W2,{children:[(0,a.jsx)(l.Oo,{style:{padding:"16px 0"},items:[{href:"/",label:"Главная"},{label:"Отзывы о ".concat(w.name_p),href:"/otzyvy".concat(R?"?type=".concat(R):"")},{label:"Отзыв".concat(N).concat(T)}]}),(0,a.jsx)("h1",{className:"collapsed",children:n.title}),(0,a.jsxs)("div",{className:q().wrapper,children:[(0,a.jsxs)("div",{className:q().main,children:[(0,a.jsx)(P,{review:n,org:_,orgType:t}),(0,a.jsx)(W,{org:_,companyReviews:v,orgType:t,className:"desktopOnly"})]}),(0,a.jsxs)("div",{className:q().sidebar,children:[(0,a.jsx)(d.l,{eventCategory:u.lD}),(0,a.jsx)(C,{org:_,orgType:t,generalRating:g,orgPlace:f,mostPopularServiceName:h})]})]}),(0,a.jsx)(W,{org:_,companyReviews:v,orgType:t,className:"mobileOnly"}),(0,a.jsx)(c.d,{data:p({item:n,baseUrl:x.NEXT_PUBLIC_BASE_URL,orgType:t,org:_})}),(0,a.jsx)("div",{style:{height:"32px"}})]}),y&&(0,a.jsx)(o.MJ,{tabs:y,baseUrl:x.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(x.NEXT_PUBLIC_S3_ASSETS,"/mp-assets"),dataLayerPush:H.l}),b&&(0,a.jsx)(s.B,{...b,s3Assets:x.NEXT_PUBLIC_S3_ASSETS})]})}},29248:function(e,t,n){"use strict";var a,i,l,o,r,s,c,d,u,m;n.d(t,{BH:function(){return o},ib:function(){return s},vA:function(){return r}}),(c=a||(a={})).HTML="html",c.Header="header",(i||(i={})).Negative="NEGATIVE",(d=l||(l={})).Minus="MINUS",d.Plus="PLUS",(o||(o={})).people="PEOPLE",(u=r||(r={})).pureAssets="pureAssets",u.pureProfit="pureProfit",u.deposits="deposits",u.credits="credits",u.debts="debts",u.totalPortfolio="totalPortfolio",u.untilPayday="untilPayday",u.consumerLoans="consumerLoans",u.businessLoans="businessLoans",u.payoutLevel="payoutLevel",u.capital="capital",u.netProfit="netProfit",u.bonusesPool="bonusesPool",u.paymentVoulume="paymentVoulume",u.disputesRate="disputesRate",u.claimsCount="claimsCount",u.lawsuitsCount="lawsuitsCount",u.ratings="reviews_rating_new",u.reviewsNum="reviews_num",(m=s||(s={})).Desc="desc",m.Asc="asc"},8285:function(e,t,n){"use strict";n.d(t,{Fo:function(){return c},O0:function(){return m},RU:function(){return u},Rd:function(){return v},kX:function(){return r},pA:function(){return d},pm:function(){return s},un:function(){return l}});var a=n(24269),i=n(29248);let l=[{label:"Банки",value:a.$.bank},{label:"МФО",value:a.$.mfo},{label:"Страховые компании",value:a.$.insurance}],o=[{label:"Пользовательский рейтинг",id:i.BH.people}],r={[a.$.bank]:o,[a.$.mfo]:o,[a.$.insurance]:o},s=[{label:"С высокой оценкой",id:i.ib.Desc},{label:"С низкой оценкой",id:i.ib.Asc}],c=[{label:"Много отзывов",id:i.ib.Desc},{label:"Мало отзывов",id:i.ib.Asc}],d={[a.$.bank]:[{label:"Чистым активам",id:i.vA.pureAssets},{label:"Чистой прибыли",id:i.vA.pureProfit},{label:"Вкладам",id:i.vA.deposits},{label:"Кредитам",id:i.vA.credits},{label:"Задолженности",id:i.vA.debts}],[a.$.mfo]:[{label:"Общий размер портфеля",id:i.vA.totalPortfolio},{label:"Объем микрозаймов ФЛ \xabдо зарплаты\xbb",id:i.vA.untilPayday},{label:"Объем потребит. микрозаймов ФЛ",id:i.vA.consumerLoans},{label:"Объем микрозаймов ЮЛ и ИП",id:i.vA.businessLoans}],[a.$.insurance]:[{label:"Уровню выплат",id:i.vA.payoutLevel},{label:"Объему премий",id:i.vA.bonusesPool},{label:"Объему выплат",id:i.vA.paymentVoulume},{label:"Уставному капиталу",id:i.vA.capital},{label:"Чистой прибыли",id:i.vA.netProfit}]},u=[{label:"Рейтингу",id:i.vA.ratings},{label:"Кол-ву отзывов",id:i.vA.reviewsNum}],m={bank:{name_r:"банка",url:"banki",r_url:"polzovatelskij_rejting_bankov",name_p:"банков"},mfo:{name_r:"мфо",url:"mfo",r_url:"polzovatelskij_rejting_mfo",name_p:"мфо"},insurance:{name_r:"компании",url:"kompanija",r_url:"strahovanie_otzyvy",name_p:"страховых компаний"}};l[0],i.BH.people,i.ib.Desc,i.vA.ratings,l[1],i.BH.people,i.ib.Desc,i.vA.ratings,l[2],i.BH.people,i.ib.Desc,i.vA.ratings;let v="rating"},48156:function(e,t,n){"use strict";function a(e,t){return(null==e?void 0:e.status)==="fulfilled"?e.value:t}n.d(t,{_:function(){return a}})},40224:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var a=n(56227),i=n(39635);let l=a.yi,o=(e,t)=>({"@context":"https://schema.org","@type":"ItemList",name:"Рейтинг ".concat(l[t].name_rs_full),description:"Собрали актуальную информацию, чтобы вы знали кому доверить финансы",itemListElement:e.map((e,n)=>({"@type":"ListItem",position:n+1,item:{"@type":l[t].schemaType,name:e.name,description:e.description,url:e.detailPageUrl,...e.logo&&{image:e.logo},...e.phone&&{telephone:e.phone},...e.site&&{sameAs:[e.site]},...e.reviews_rating_new&&{aggregateRating:{"@type":"AggregateRating",ratingValue:(0,i.A)(e.reviews_rating_new),reviewCount:e.reviews_num}},...e.legal_address&&{address:{"@type":"PostalAddress",addressLocality:e.legal_address}}}}))})},90852:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});let a=e=>["а","е","ё","и","о","у","ы","э","ю","я"].indexOf(e.charAt(0).toLowerCase())>=0},69286:function(e){e.exports={container:"FaqLinkList_container__IbV_r",choice:"FaqLinkList_choice__sIjKt",choiceOption:"FaqLinkList_choiceOption__m4t8n"}},26819:function(e){e.exports={page:"CompanyDetail_page__kep46",breadcrumbs:"CompanyDetail_breadcrumbs__oPhG_",whiteBlock:"CompanyDetail_whiteBlock__Q1H5o",bannerWrapper:"CompanyDetail_bannerWrapper___yLFB",infoBlock:"CompanyDetail_infoBlock__wr3c5",title:"CompanyDetail_title__cCsD7",location:"CompanyDetail_location__pIaSI",tabsWrapper:"CompanyDetail_tabsWrapper__XEjJj",swiper:"CompanyDetail_swiper__4FZvI",tab:"CompanyDetail_tab__vURjC",activeTab:"CompanyDetail_activeTab__XwUgC",hide:"CompanyDetail_hide___0iP3",partnersLink:"CompanyDetail_partnersLink__UMBFD",allReviewsButton:"CompanyDetail_allReviewsButton__4SyI4",allReviewsButtonIcon:"CompanyDetail_allReviewsButtonIcon___e3A4",ratingsContainer:"CompanyDetail_ratingsContainer__J7H_e",hiddenSection:"CompanyDetail_hiddenSection__d3uhv",adresaSkeleton:"CompanyDetail_adresaSkeleton__W11UH",quote:"CompanyDetail_quote__D_hRw",mobileBanner:"CompanyDetail_mobileBanner__mizYh"}},1649:function(e){e.exports={wrapper:"AboutCompany_wrapper__rj6IF",bankInfoTabs:"AboutCompany_bankInfoTabs__lHQch",bankInfoTabButton:"AboutCompany_bankInfoTabButton__xAQv9",topRow:"AboutCompany_topRow__KZF42",history:"AboutCompany_history__cMb_u",title:"AboutCompany_title__wV5gI",historyTitle:"AboutCompany_historyTitle__UjkcP",historyRows:"AboutCompany_historyRows__uOkzU",historyModal:"AboutCompany_historyModal__Lfqnx",historyPopup:"AboutCompany_historyPopup__xxvMi",row:"AboutCompany_row__56bY_",year:"AboutCompany_year__oVOar",text:"AboutCompany_text__c7bFw",showAllButton:"AboutCompany_showAllButton__rS_At",showMoreButton:"AboutCompany_showMoreButton__Vx1Ov",bottomRow:"AboutCompany_bottomRow__tvoMX",withoutWrap:"AboutCompany_withoutWrap__2ScQS",requisitesColumn:"AboutCompany_requisitesColumn__FUxMp",infoItemTitle:"AboutCompany_infoItemTitle__CQzFs",infoItemValue:"AboutCompany_infoItemValue__lGtAO",partnersButton:"AboutCompany_partnersButton__jcva_",drawer:"AboutCompany_drawer__bJ_Kw",showMoreLicensesButton:"AboutCompany_showMoreLicensesButton__DTjyU",showMoreLegalEntitiesButton:"AboutCompany_showMoreLegalEntitiesButton__gYSTU",insuranceTypes:"AboutCompany_insuranceTypes__ocTvY",typesList:"AboutCompany_typesList__iHV1x",insuranceTypeTag:"AboutCompany_insuranceTypeTag__qWxSV",insuranceTypeTagFull:"AboutCompany_insuranceTypeTagFull__f_lBv",expanded:"AboutCompany_expanded__j2W4l",gradient:"AboutCompany_gradient___B3kF"}},75950:function(e){e.exports={card:"BankDetailOffer_card___qule",offerButton:"BankDetailOffer_offerButton__f557Z",iconButton:"BankDetailOffer_iconButton__xZ2B7",paddingForButton:"BankDetailOffer_paddingForButton__LD8l7",chips:"BankDetailOffer_chips__Vpi_b",top:"BankDetailOffer_top___m8mF",topContent:"BankDetailOffer_topContent__IAVK0",controls:"BankDetailOffer_controls__mk21X",mortgageInfo:"BankDetailOffer_mortgageInfo__XFWiW",bankInfo:"BankDetailOffer_bankInfo__GM0We",groups:"BankDetailOffer_groups__3AlEf",whiteCard:"BankDetailOffer_whiteCard__OKOMd",buttons:"BankDetailOffer_buttons__On_Kr",iconDetail:"BankDetailOffer_iconDetail__JAZX3",bottom:"BankDetailOffer_bottom__pwfBV",chip:"BankDetailOffer_chip__rkNCj",icon:"BankDetailOffer_icon__Cn7Cm",tooltip:"BankDetailOffer_tooltip__KLX7N",lastOfferCornerGradient:"BankDetailOffer_lastOfferCornerGradient__6D5t6"}},37953:function(e){e.exports={group:"BankDetailOfferInfoGroup_group__62HVe",titleGroup:"BankDetailOfferInfoGroup_titleGroup__So6h2",groupSub:"BankDetailOfferInfoGroup_groupSub__VMjtj",groupContent:"BankDetailOfferInfoGroup_groupContent__wppAC",nowrap:"BankDetailOfferInfoGroup_nowrap__zh5jk",preposition:"BankDetailOfferInfoGroup_preposition__iTuPw"}},57234:function(e){e.exports={featureInfo:"BankFeatureInfo_featureInfo__LmfMJ",iconWrapper:"BankFeatureInfo_iconWrapper__w1rzO",content:"BankFeatureInfo_content__lVR97",title:"BankFeatureInfo_title__FstHu"}},34914:function(e){e.exports={wrapper:"BankOffersList_wrapper__9KEFv",productsListContainer:"BankOffersList_productsListContainer__R7J4A",containerTopPadding:"BankOffersList_containerTopPadding__gz6wc",title:"BankOffersList_title__4c75O",chips:"BankOffersList_chips__BIggh",location:"BankOffersList_location__CBqLf",offersList:"BankOffersList_offersList__1DdH_",showMore:"BankOffersList_showMore__oXbJn",showMoreButton:"BankOffersList_showMoreButton___oq_s",showMoreIcon:"BankOffersList_showMoreIcon__adNTC",skeleton:"BankOffersList_skeleton__zM1Kr",mfoSkeleton:"BankOffersList_mfoSkeleton__oZjyj"}},65993:function(e){e.exports={section:"BankServices_section__bRF_x"}},82869:function(e){e.exports={wrapper:"CompanyDetailPeopleRatingTab_wrapper__NiGY7",container:"CompanyDetailPeopleRatingTab_container__0YUmK",body:"CompanyDetailPeopleRatingTab_body__CyRvJ",info:"CompanyDetailPeopleRatingTab_info__jtpRH",title:"CompanyDetailPeopleRatingTab_title__pjatM",description:"CompanyDetailPeopleRatingTab_description__hVNgg",peopleRatingWrapper:"CompanyDetailPeopleRatingTab_peopleRatingWrapper___i7Uj",peopleRatingTopInfo:"CompanyDetailPeopleRatingTab_peopleRatingTopInfo__Alp1I",peopleRatingTopFullInfoLink:"CompanyDetailPeopleRatingTab_peopleRatingTopFullInfoLink__C_sSI",lowReviewsRatingInfo:"CompanyDetailPeopleRatingTab_lowReviewsRatingInfo__WgoLN",lowReviewsRatingTop:"CompanyDetailPeopleRatingTab_lowReviewsRatingTop__Bzxmd",lowReviewsRatingTitle:"CompanyDetailPeopleRatingTab_lowReviewsRatingTitle__2ENeI",lowReviewsRatingIcon:"CompanyDetailPeopleRatingTab_lowReviewsRatingIcon__L6n7u",lowReviewsRatingLink:"CompanyDetailPeopleRatingTab_lowReviewsRatingLink__C4dBd",lowReviewsRatingDescription:"CompanyDetailPeopleRatingTab_lowReviewsRatingDescription__IrhaM",rowItem:"CompanyDetailPeopleRatingTab_rowItem__BgPhS",rowItemIcon:"CompanyDetailPeopleRatingTab_rowItemIcon__sSnwj",rowTitleWrapper:"CompanyDetailPeopleRatingTab_rowTitleWrapper__2t419",rowTitle:"CompanyDetailPeopleRatingTab_rowTitle__8iU3R",rowLink:"CompanyDetailPeopleRatingTab_rowLink__P8voN",starWrapper:"CompanyDetailPeopleRatingTab_starWrapper__sYIqc",starIcon:"CompanyDetailPeopleRatingTab_starIcon__C8hBu",starText:"CompanyDetailPeopleRatingTab_starText__S1VvT",mid:"CompanyDetailPeopleRatingTab_mid__YwwMF",big:"CompanyDetailPeopleRatingTab_big__GTNwm",partial:"CompanyDetailPeopleRatingTab_partial__ePmT2",disclaimer:"CompanyDetailPeopleRatingTab_disclaimer__JdEE2",bannerWrapper:"CompanyDetailPeopleRatingTab_bannerWrapper__y8eB9"}},68927:function(e){e.exports={content:"CompanyMainContent_content__bmtK6",wrapper:"CompanyMainContent_wrapper__ultUh",logo:"CompanyMainContent_logo__ZxenF",info:"CompanyMainContent_info__e__V7",fullInfoLink:"CompanyMainContent_fullInfoLink__gy5yN",company:"CompanyMainContent_company__0RBAK",name:"CompanyMainContent_name__jd_tI",rating:"CompanyMainContent_rating__ngkel",iconStar:"CompanyMainContent_iconStar__oHtnx",description:"CompanyMainContent_description__iIj1F",rightInfo:"CompanyMainContent_rightInfo__zyiQJ"}},58439:function(e){e.exports={section:"CompanyReviews_section__jsSLr",sortWrapper:"CompanyReviews_sortWrapper__nHMN_",activeSortOption:"CompanyReviews_activeSortOption__OYSoq",sortIcon:"CompanyReviews_sortIcon__0fwy3"}},4806:function(e){e.exports={wrapper:"ServiceBlocks_wrapper__E_msK",tiles:"ServiceBlocks_tiles__4O3RS",skeleton:"ServiceBlocks_skeleton__R6K1A"}},3994:function(e){e.exports={tile:"ServiceTile_tile__izJFK",active:"ServiceTile_active__ZO6mD",tileContent:"ServiceTile_tileContent__9g3ol",tileTitle:"ServiceTile_tileTitle__gXtWd",count:"ServiceTile_count__mY1ca"}},3845:function(e){e.exports={topBannerSection:"Rating_topBannerSection__HB80f",title:"Rating_title__Gxh_p",page:"Rating_page__RRuXZ",left:"Rating_left__l_yPV",text:"Rating_text__GoHIb",subtitle:"Rating_subtitle__nrMI6",image:"Rating_image__KuIg4"}},439:function(e){e.exports={filter:"Filter_filter__K8oRK",selectors:"Filter_selectors__cUY8e",chips:"Filter_chips__j7yCc",sortingPanel:"Filter_sortingPanel__rrohd",buttons:"Filter_buttons__1ys0F",showButton:"Filter_showButton__U8dCU",allParametersButton:"Filter_allParametersButton__N55fU",radiosWrapper:"Filter_radiosWrapper__LGTn9",input:"Filter_input__mmsT1",activeSortOption:"Filter_activeSortOption__L_7U5",sortIcon:"Filter_sortIcon__IxjGH"}},18926:function(e){e.exports={rewardLink:"PeopleRatingsDesktop_rewardLink__zGDat",tableWrapper:"PeopleRatingsDesktop_tableWrapper__5SL35",bank:"PeopleRatingsDesktop_bank__K2Cc_",desktopOnly:"PeopleRatingsDesktop_desktopOnly__UmyRA",wrapper:"PeopleRatingsDesktop_wrapper__MPHbg",value:"PeopleRatingsDesktop_value__wTsSl",active:"PeopleRatingsDesktop_active__7jKYc",headCell:"PeopleRatingsDesktop_headCell___9ZoS",sortIcon:"PeopleRatingsDesktop_sortIcon__4zdl6",filterIcon:"PeopleRatingsDesktop_filterIcon__9td57",asc:"PeopleRatingsDesktop_asc__3bFeQ",star:"PeopleRatingsDesktop_star__7JOz2",place:"PeopleRatingsDesktop_place__ftov7",buttonWrapper:"PeopleRatingsDesktop_buttonWrapper__Otp8h",bannerWrapper:"PeopleRatingsDesktop_bannerWrapper__MVqGW",ratingCell:"PeopleRatingsDesktop_ratingCell__L_JL_",hint:"PeopleRatingsDesktop_hint__WevCV",tooltipWrapper:"PeopleRatingsDesktop_tooltipWrapper__TSFk2"}},78226:function(e){e.exports={header:"PeopleRatingsHeader_header__5Zxdg",title:"PeopleRatingsHeader_title__gQj_t",subtitle:"PeopleRatingsHeader_subtitle__0TaaY"}},15413:function(e){e.exports={mobileOnly:"PeopleRatingsMobile_mobileOnly__bX0qO",wrapper:"PeopleRatingsMobile_wrapper__gIYsY",mobileBody:"PeopleRatingsMobile_mobileBody__TMmNa",bannerWrapper:"PeopleRatingsMobile_bannerWrapper__i_fJa"}},64778:function(e){e.exports={mobileCard:"PeopleRatingsMobileCard_mobileCard__4LAi4",open:"PeopleRatingsMobileCard_open__agJnz",button:"PeopleRatingsMobileCard_button__g_X2H",bank:"PeopleRatingsMobileCard_bank__UX6Wn",row:"PeopleRatingsMobileCard_row__MHoqo",withPlace:"PeopleRatingsMobileCard_withPlace__8b4W7",hidden:"PeopleRatingsMobileCard_hidden__YI_Fs",fullInfoLink:"PeopleRatingsMobileCard_fullInfoLink__iM1eQ",cardInfo:"PeopleRatingsMobileCard_cardInfo__xR7eQ",cardInfoItem:"PeopleRatingsMobileCard_cardInfoItem__Rh2Ol",cardValueWrapper:"PeopleRatingsMobileCard_cardValueWrapper__vVByf",cardValue:"PeopleRatingsMobileCard_cardValue__1fTiW",star:"PeopleRatingsMobileCard_star__iBQyD",hint:"PeopleRatingsMobileCard_hint__YCrmj",tooltipModalContainer:"PeopleRatingsMobileCard_tooltipModalContainer__GPUa5",dash:"PeopleRatingsMobileCard_dash__BPPXB"}},98323:function(e){e.exports={content:"RatingFilterModal_content__8xkyj",sectionTitle:"RatingFilterModal_sectionTitle__DjHrd",body:"RatingFilterModal_body__6cc1Q",button:"RatingFilterModal_button__33YNM",buttonActions:"RatingFilterModal_buttonActions__v___u",row:"RatingFilterModal_row__Rtn0k",sortingPanel:"RatingFilterModal_sortingPanel__uT4bJ",divider:"RatingFilterModal_divider__fNTvL",radiosWrapper:"RatingFilterModal_radiosWrapper__9Vu8M",input:"RatingFilterModal_input__0z0BL"}},7970:function(e){e.exports={wrapper:"RatingMobileStickyFilter_wrapper__9TrR6",visible:"RatingMobileStickyFilter_visible__WhFA2",customFilter:"RatingMobileStickyFilter_customFilter__hxAHm"}},77919:function(e){e.exports={page:"ReviewsDetail_page__fFZCz",wrapper:"ReviewsDetail_wrapper__uL0Mc",main:"ReviewsDetail_main__uPib_",sidebar:"ReviewsDetail_sidebar__cedho"}},68671:function(e){e.exports={wrapper:"CompanySidebarCard_wrapper__TRwOg",card:"CompanySidebarCard_card__QyyFq",logo:"CompanySidebarCard_logo__yODga",ratingBadge:"CompanySidebarCard_ratingBadge__1IoYS",title:"CompanySidebarCard_title__LpMMI",list:"CompanySidebarCard_list__YvqcT",star:"CompanySidebarCard_star__GgNmA",fullInfoLink:"CompanySidebarCard_fullInfoLink__R9O1o"}},68583:function(e){e.exports={wrapper:"MainReviewCard_wrapper__RwbJa",header:"MainReviewCard_header__4MKi1",user:"MainReviewCard_user__iJcrO",info:"MainReviewCard_info__wREIG",name:"MainReviewCard_name__3Tj4E",rating:"MainReviewCard_rating__yls4B",ratingStars:"MainReviewCard_ratingStars__4YQX1",star:"MainReviewCard_star__LQ5Ka",gray:"MainReviewCard_gray__QTErQ",date:"MainReviewCard_date__Lf8og",tags:"MainReviewCard_tags__VfEjz",text:"MainReviewCard_text__68QbX",title:"MainReviewCard_title__40q12",review:"MainReviewCard_review__hZtp9"}},16205:function(e){e.exports={answers:"MainReviewCardAnswer_answers__hgQox",title:"MainReviewCardAnswer_title__P56p0",list:"MainReviewCardAnswer_list__WDOeM",answer:"MainReviewCardAnswer_answer__3wEQG",info:"MainReviewCardAnswer_info__r3X1Z",name:"MainReviewCardAnswer_name__hj5Jl",text:"MainReviewCardAnswer_text__housl",date:"MainReviewCardAnswer_date__Depna"}},1413:function(e){e.exports={wrapper:"OtherReviewsSection_wrapper__FExMe",title:"OtherReviewsSection_title__jrzEQ",list:"OtherReviewsSection_list__G_Ate",fullInfoLink:"OtherReviewsSection_fullInfoLink__a7jI5"}},83756:function(e){e.exports={wrapper:"ReviewCard_wrapper__Yg30L",header:"ReviewCard_header__TbkvL",user:"ReviewCard_user__4Y8H8",name:"ReviewCard_name__POHYk",rating:"ReviewCard_rating__CYwd_",ratingIcon:"ReviewCard_ratingIcon__m_WUv",date:"ReviewCard_date__BM5sD",tags:"ReviewCard_tags__Y5iNH",text:"ReviewCard_text___4zEJ",title:"ReviewCard_title__C34ve",review:"ReviewCard_review__dxXeG",footer:"ReviewCard_footer__Gocfz",readMore:"ReviewCard_readMore__GTn2H",commentsIcon:"ReviewCard_commentsIcon__nRR2S",commentsLabel:"ReviewCard_commentsLabel__sQSx2"}}},function(e){e.O(0,[9015,1528,4242,8514,3031,5073,3544,5501,207,9811,8848,7082,3382,3389,4691,2477,2587,5991,7543,1888,3562,3400,2971,2117,1744],function(){return e(e.s=22029)}),_N_E=e.O()}]);