(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4633],{22868:function(){},26349:function(){},99830:function(){},70209:function(){},26313:function(e,t,n){Promise.resolve().then(n.bind(n,42551)),Promise.resolve().then(n.bind(n,91286)),Promise.resolve().then(n.bind(n,90476))},42551:function(e,t,n){"use strict";n.d(t,{default:function(){return ic}});var i,a,l,o,r,s,c,d,u,m,v,p,_,g,h=n(57437),f=n(2265),y=n(99376),x=n(80684),b=n(35563),w=n(75461),C=n(20777),j=n(74157),N=n(59226),T=n(17730),k=n(61994),A=n(44197),R=n(27648),S=n(69286),I=n.n(S);let P=e=>{let{data:t}=e,n=e=>t=>{e.disableLink&&(t.preventDefault(),t.stopPropagation()),e.onClick&&e.onClick()};return(0,h.jsx)("ul",{className:I().choice,children:t.map(e=>(0,h.jsx)("li",{className:I().choiceOption,children:(0,h.jsx)(R.default,{href:e.url,onClick:n(e),prefetch:!1,children:e.name})},e.id))})};var B=n(60816),L=n(97358),O=n(41858),M=n(55089);let E=e=>{(0,f.useEffect)(()=>{if(!e)return;let{title:t,description:n,alternates:{canonical:i}}=e;document.title=t;let a=document.querySelector('meta[name="description"]');if(a)a.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",i||""):((l=document.createElement("link")).rel="canonical",l.href=i||"",document.head.appendChild(l))},[e])};var D=n(31893),F=n(33562),U=n(87940),W=n(24269);let z=(e,t)=>e===W.$.bank&&"finance"in t,V=(e,t)=>e===W.$.insurance&&"legal_entities"in t&&Object.keys(t.legal_entities[0]||{}).some(e=>e.startsWith("insType")),H=e=>"microCredits_num"in e;var q=n(53120),X=n(49689),Y=n(1649),Z=n.n(Y);let Q=e=>e.map(e=>"string"==typeof e?(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:e}},e):(0,h.jsxs)("div",{className:Z().row,children:[(0,h.jsx)("p",{className:Z().year,children:e.data.year}),(0,h.jsx)("div",{className:Z().text,dangerouslySetInnerHTML:{__html:e.data.text}})]},e.data.year)),$=e=>{let{title:t,description:n,historyRowsRef:i,visibleItems:a=3,onShowAll:l,onShowMore:o,isPopup:r=!1}=e,s=(0,w.aF)("m");return n?(0,h.jsxs)("div",{className:Z().history,children:[!r&&(0,h.jsx)("h2",{className:Z().historyTitle,children:t}),(0,h.jsx)("div",{className:(0,k.Z)(Z().historyRows,{[Z().historyModal]:r}),ref:i,children:"string"==typeof n?(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}):Q(n.slice(0,s?a:n.length))}),"string"!=typeof n&&!r&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:Z().gradient}),(0,h.jsx)(A.j,{text:"Показать все",mainPageUrl:U.qL,iconColor:"light",className:Z().showAllButton,onClick:l,widthMaxContent:!0})]}),"string"!=typeof n&&n.length>a&&r&&(0,h.jsx)(A.j,{text:"Показать еще",mainPageUrl:U.qL,icon:x.IconFdsChevronDownSmallO,iconColor:"light",className:Z().showMoreButton,onClick:o,widthMaxContent:!0})]}):null},G=["finuslugi.ru","inguru.dev","moex.com"],J=e=>e.includes("//")&&!G.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,i]=(0,f.useState)(!1),a=()=>i(e=>!e);return t.length?t.map(e=>(0,h.jsxs)("div",{className:Z().requisit,children:[(0,h.jsx)("p",{className:Z().infoItemTitle,children:e.title}),Array.isArray(e.value)?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:Z().infoItemValue,children:e.value.slice(0,n?e.value.length:1).map(e=>(0,h.jsx)("div",{className:Z().infoItemValueItem,children:e},e))}),(0,h.jsx)(A.j,{text:n?"Свернуть":"Все свидетельства",mainPageUrl:U.qL,icon:n?x.IconFdsChevronUpSmallO:x.IconFdsChevronDownSmallO,iconColor:"light",className:Z().showMoreLicensesButton,onClick:a,widthMaxContent:!0})]}):(0,h.jsx)("div",{className:Z().infoItemValue,dangerouslySetInnerHTML:{__html:K(e.value)}})]},e.title)):null},et=e=>{let{title:t,items:n}=e,[i,a]=(0,f.useState)(!1);return n.length&&n[0].length?(0,h.jsxs)("div",{children:[t&&(0,h.jsx)("h2",{className:Z().title,children:t}),n.map((e,t)=>(0,h.jsx)("div",{className:(0,k.Z)(Z().requisitesColumn,{collapsed:t>0&&!i}),children:(0,h.jsx)(ee,{items:e})},t)),n.length>1&&(0,h.jsx)(A.j,{text:i?"Свернуть":"Показать все юрлица",mainPageUrl:U.qL,icon:i?x.IconFdsChevronUpSmallO:x.IconFdsChevronDownSmallO,iconColor:"light",className:Z().showMoreLegalEntitiesButton,onClick:()=>a(e=>!e),widthMaxContent:!0})]}):null},en=e=>{let{insuranceTypes:t,loadingInsuranceTypes:n}=e,i=(0,w.aF)("m"),[a,l]=(0,f.useState)(!1),o=(0,f.useRef)(null),[r,s]=(0,f.useState)(!1);return((0,f.useEffect)(()=>{o.current&&s(o.current.scrollHeight>(i?164:76))},[t,i]),n)?(0,h.jsx)(b.Od,{className:Z().insuranceTypes,width:468,height:152}):(0,h.jsxs)("div",{className:Z().insuranceTypes,children:[(0,h.jsx)("p",{className:Z().infoItemTitle,children:"Виды страхования"}),(0,h.jsx)("div",{ref:o,className:(0,k.Z)(Z().typesList,{[Z().expanded]:a}),children:null==t?void 0:t.map(e=>(0,h.jsx)(w.Vp,{label:e.name,variant:"secondary",className:(0,k.Z)(Z().insuranceTypeTag,{[Z().insuranceTypeTagFull]:a})},e.id))}),r&&(0,h.jsx)(A.j,{text:a?"Свернуть":"Показать еще",mainPageUrl:U.qL,icon:a?x.IconFdsChevronUpSmallO:x.IconFdsChevronDownSmallO,iconColor:"light",className:Z().showMoreLicensesButton,onClick:()=>{l(e=>(e&&o.current&&o.current.scrollIntoView({behavior:"smooth",block:"center"}),!e))},widthMaxContent:!0})]})},ei=e=>{let t=(0,f.useRef)();(0,f.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 i=document.querySelectorAll("[data-portal]").length>1;e||i||(document.body.classList.remove("hide-scrollbar"),document.documentElement.style.removeProperty("overflow-y"),document.body.style.removeProperty("top")),e||i||void 0===t.current||(window.scrollTo(0,t.current),t.current=void 0)},[e])},ea=(e,t)=>{(0,f.useEffect)(()=>{let n;let i=()=>{let n=e.current;if(!n)return;let i=n.getBoundingClientRect().top,a=n.getBoundingClientRect().bottom,l=0;for(let e of Array.from(n.children)){let t=e.getBoundingClientRect();if(t.bottom>i&&t.top<a)l++;else break}t(l)},a=new ResizeObserver(()=>{n=requestAnimationFrame(i)});return e.current&&a.observe(e.current),n=requestAnimationFrame(i),()=>{a.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,i,a;let l=[],o=z(e,t),r=V(e,t),s=H(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===(a=e[0])||void 0===a?void 0:null===(i=a.licenses)||void 0===i?void 0:i.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:i}],legal_name:a}=t,o=a||n;e&&l.push({title:"Юридический адрес",value:e}),o&&l.push({title:"Полное наименование",value:o}),(null==i?void 0:i.length)&&l.push({title:"Свидетельство",value:i.map(e=>"№ ".concat(e.number," от ").concat(e.date))})}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:i}=e,a=[];return n&&a.push({title:"Юридическое лицо",value:n}),t&&a.push({title:"Юридический адрес",value:t}),i&&a.push({title:"Регистрационный номер",value:i}),a}):[l]},es=e=>{let{site:t,site_url:n}=e,i=[];n&&i.push({title:"Официальный сайт",value:'<a href="'.concat(eo(n),'" target="_blank">').concat(t||n,"</a>")});let a=e.phone||e.maintel;return a&&i.push({title:"Телефоны",value:"string"==typeof a?'<a href="tel:'.concat(a,'">').concat(a,"</a>"):'<a href="tel:'.concat(a.phone,'">').concat(a.phone,"</a> <span>").concat(a.description,"</span>")}),i},ec="Реквизиты",ed="Контакты",eu=e=>{let{orgType:t,company:n,insuranceTypes:i,loadingInsuranceTypes:a}=e,l=(0,w.aF)("m"),o=V(t,n),r=t===W.$.bank,s="История ".concat(r?"банка":"компании"),c=(0,f.useRef)(null),[d,u]=(0,f.useState)(s),[m,v]=(0,f.useState)(!1),[p,_]=(0,f.useState)(!1),[g,y]=(0,f.useState)(3),[C,j]=(0,f.useState)(3);ea(c,l?y:j),ei(m);let N=t===W.$.insurance,{description:T}=n,R=er(t,n),S=es(n),I=o?null==i?void 0:i.filter(e=>{var t,i,a;return null==n?void 0:null===(a=n.legal_entities)||void 0===a?void 0:null===(i=a[0])||void 0===i?void 0:null===(t=i.ins_types)||void 0===t?void 0:t.includes(Number(e.id))}):[],P=[s];R.length>0&&P.push(ec),S.length>0&&P.push(ed);let B=d===s,M=e=>{u(e),_(!0)},E=T&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)($,{title:s,description:T,historyRowsRef:c,onShowAll:()=>v(!0),onShowMore:()=>{Array.isArray(T)&&y(T.length)},visibleItems:l?g:C,isPopup:l}),!l&&(0,h.jsx)(O.X,{organizationType:t,bannerUrl:o?L.Te[n.url]:void 0,compact:!0})]}),D=R.length>0&&(0,h.jsx)(et,{title:l?void 0:ec,items:R}),F=S.length>0&&(0,h.jsx)("div",{className:Z().contacts,children:(0,h.jsx)(et,{title:l?void 0:ed,items:[S]})}),z=(!!(null==I?void 0:I.length)||a)&&(0,h.jsx)(en,{insuranceTypes:I||[],loadingInsuranceTypes:a});return(0,h.jsx)(b.W2,{children:(0,h.jsx)("div",{className:Z().wrapper,children:l?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:Z().bankInfoTabs,children:P.map(e=>(0,h.jsx)(A.j,{text:e,mainPageUrl:U.qL,icon:x.IconFdsChevronRightO,iconColor:"white",className:Z().bankInfoTabButton,onClick:()=>M(e),widthMaxContent:!0},e))}),(0,h.jsx)(X.j,{title:d,isOpen:p,onClose:()=>{_(!1),y(3)},full:B,className:Z().historyPopup,children:B?E:d===ec?(0,h.jsxs)(h.Fragment,{children:[D,z]}):d===ed?F:null})]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:Z().topRow,children:[E,(0,h.jsx)(q.d,{className:Z().drawer,contentClassName:Z().container,isOpen:m,onClose:()=>v(!1),title:(0,h.jsx)("p",{className:Z().historyTitle,children:s}),titleAlign:"left",width:"695px",rowTitle:!0,children:(0,h.jsx)("div",{className:(0,k.Z)(Z().historyRows,Z().historyModal),children:T&&Q(T)})})]}),(0,h.jsxs)("div",{className:(0,k.Z)(Z().bottomRow,N&&Z().withoutWrap),children:[D,F]}),o&&z]})})})};var em=n(66285),ev=n(75599),ep=n(51479),e_=n(54550),eg=n(82869),eh=n.n(eg);let ef=e=>(0,h.jsxs)("div",{className:(0,k.Z)(eh().starWrapper,{[eh().mid]:e.mid,[eh().big]:e.big,[eh().partial]:!e.total}),children:[(0,h.jsx)(x.IconFdsStarF,{size:e.big?20:16,className:eh().starIcon}),(0,ev.Z)(e.ratingValue),e.total?"/".concat(e.total):"",e.text?"/":"",(0,h.jsx)("span",{className:eh().starText,children:e.text})]}),ey=e=>{var t,n;let i=(0,w.aF)("m"),a=U.yi[e.orgType],l=e.companyPeopleRatings,o=[String(e.company.id)],r=Object.entries((null==l?void 0:l.service_count)||{}).map(e=>{let[t,n]=e;return{serviceId:t,count:n.count,rating:n.rating}}),s=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,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("p",{className:eh().description,children:["Составляется на основе отзывов клиентов ",a.name_rs]}),(0,h.jsxs)("div",{className:eh().peopleRatingWrapper,children:[!e.loading&&(0,h.jsxs)("div",{className:eh().peopleRatingTopInfo,children:[(0,h.jsx)(ef,{ratingValue:(null==l?void 0:l.total_rating)||0,text:"5",big:!0}),(0,h.jsx)(A.j,{className:eh().peopleRatingTopFullInfoLink,text:"".concat((null==l?void 0:l.total_count)||0," ").concat((0,b._6)((null==l?void 0:l.total_count)||0,"отзыв","отзыва","отзывов")," на Финуслугах"),mainPageUrl:U.qL,href:(0,em.G)({type:e.orgType,com:o}),target:"_self"})]}),e.loading&&(0,h.jsx)(b.Od,{className:eh().peopleRatingTopInfo,width:346,height:44}),!e.loading&&r.map(t=>{var n;let{serviceId:a,count:l,rating:r}=t,c=null==s?void 0:null===(n=s[a])||void 0===n?void 0:n.name;if(!c)return null;let d=l?"".concat(l," ").concat((0,b._6)(l,"отзыв","отзыва","отзывов")):"",u=(0,em.G)({type:e.orgType,com:o,service:a});return(0,h.jsx)("a",{href:u,className:eh().rowItem,onClick:()=>{(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.block,eventActionText:(0,e_.b)(c),eventLabel:u})},children:(0,h.jsxs)("div",{className:eh().rowTitleWrapper,children:[!i&&(0,h.jsx)(ef,{ratingValue:r,total:5,mid:!0}),(0,h.jsx)("div",{className:eh().rowTitle,children:c}),(0,h.jsxs)("div",{className:eh().rowLink,children:[i&&(0,h.jsx)(ef,{ratingValue:r,mid:!0}),d&&(i?"/".concat(d):"(".concat(d,")"))]}),(0,h.jsx)(x.IconFdsArrowUpRightSmallO,{size:26,className:eh().rowItemIcon})]})},a)}),e.loading&&[1,2,3,4,5].map(e=>(0,h.jsx)(b.Od,{className:eh().rowItem,height:i?92:64},e))]}),!i&&(0,h.jsxs)("p",{className:eh().disclaimer,children:["Рейтинги ",e.company.name_r||e.company.name," составлены на основании наиболее актуальных данных за"," ",new Date().getFullYear()," год"]})]})};var ex=n(8081),eb=n(31538);let ew=e=>{let{company:t,companyPeopleRatings:n,orgType:i,serviceTypes:a,loading:l}=e;return(0,h.jsx)("div",{className:eh().wrapper,children:(0,h.jsxs)("div",{className:eh().container,children:[(0,h.jsx)("div",{className:eh().body,children:(0,h.jsxs)("div",{className:eh().info,children:[(0,h.jsx)("h2",{className:eh().title,children:"Пользовательский рейтинг"}),(0,h.jsx)(ey,{company:t,companyPeopleRatings:n,orgType:i,serviceTypes:a,loading:l})]})}),(0,h.jsxs)("div",{className:eh().bannerWrapper,children:[(0,h.jsx)(eb.l,{company:t.url,orgType:i,eventCategory:"companyDetail"}),(0,h.jsx)(ex.u,{})]})]})})};var eC=n(91672),ej=n(57234),eN=n.n(ej);let eT=e=>(0,h.jsxs)("div",{className:eN().featureInfo,children:[(0,h.jsx)("div",{className:eN().iconWrapper,style:{background:e.color},children:e.icon}),(0,h.jsxs)("div",{className:eN().content,children:[(0,h.jsx)("div",{className:eN().infoTitle,children:e.title}),(0,h.jsx)(R.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 ek=n(68927),eA=n.n(ek);let eR=e=>{let{uslugiTabUrl:t,generalRating:n,name_rs:i,catalogUrl:a,company:l,organizationType:o,productsNum:r,onBankFeatureClick:s,getTabPath:c}=e,{env:d}=(0,M.k)(),u=d.NEXT_PUBLIC_BASE_URL,m=(0,w.aF)("xs"),{reviews_num:v}=l,p=o===W.$.bank,_=o===W.$.insurance,g=v>0?"".concat(v," ").concat((0,b._6)(v,"отзыв","отзыва","отзывов")):"";return(0,h.jsxs)("div",{className:eA().content,children:[(0,h.jsx)(O.X,{organizationType:o,bannerUrl:_?L.Te[l.url]:void 0}),(0,h.jsxs)("div",{className:eA().wrapper,children:[(0,h.jsx)("div",{className:eA().logo,children:(0,h.jsx)(eC.D,{url:p&&l.bic||l.url||"",type:o,width:78,height:78,companyName:l.name})}),(0,h.jsxs)("div",{className:eA().info,children:[(0,h.jsxs)("div",{className:eA().company,children:[(0,h.jsx)("div",{className:eA().name,children:l.name}),!!n&&(0,h.jsxs)("div",{className:eA().rating,children:[(0,h.jsx)(x.IconFdsStarF,{size:m?20:24,className:eA().iconStar}),(0,ev.Z)(n)]})]}),(0,h.jsx)("p",{className:eA().description,children:l.short_description}),(0,h.jsx)(A.j,{className:eA().fullInfoLink,text:"Каталог всех ".concat(i),mainPageUrl:u,href:"".concat(u,"/").concat(a),target:"_self"})]}),(0,h.jsxs)("div",{className:eA().rightInfo,children:[r>0&&(0,h.jsx)(eT,{title:"Продукты",link:"".concat(r," ").concat((0,b._6)(r,"продукт","продукта","продуктов")," на сайте"),color:"#E7F9F6",icon:(0,h.jsx)(x.IconFdsOctostarCheckO,{size:24}),onClick:()=>s("uslugi"),href:c({tab:{id:"uslugi",path:"/".concat(t)}})}),(0,h.jsx)(eT,{title:"Пользовательский рейтинг",link:"Составляется на основе отзывов",color:"#FEF1FE",icon:(0,h.jsx)(x.IconFdsChartTrendSquareO,{size:24}),onClick:()=>s("ratings"),href:c({tab:{id:"ratings",path:"/rejtingi"}})}),(0,h.jsx)(eT,{title:l.reviews_num?"Клиенты рекомендуют":"Отзывов нет",link:g,color:"#FFF4E0",icon:(0,h.jsx)(x.IconFdsChatDotsSquareO,{size:24}),onClick:()=>s("reviews"),href:c({tab:{id:"reviews",path:"/otzyvy"}})}),(0,h.jsx)(A.j,{className:eA().fullInfoLink,text:"Каталог всех ".concat(i),mainPageUrl:U.qL,href:"".concat(u,"/").concat(a),target:"_self"})]})]})]})};var eS=n(41356);let eI=[{value:"newest",label:"Сначала новые"},{value:"oldest",label:"Сначала старые"},{value:"high-rating",label:"С высокой оценкой"},{value:"low-rating",label:"С низкой оценкой"}];var eP=n(31408),eB=n(36773);let eL=(e,t,n,i)=>e.map(e=>{let a;let l="SK"===e.target?W.$.insurance:"MFO"===e.target?W.$.mfo:W.$.bank;a=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),i&&(a=i);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==a?void 0:a.logo_mob,fkName:null==a?void 0:a.name,fkUrl:null==a?void 0:a.url,bic:(0,eB.A)(a)||void 0,serviceName:(null==r?void 0:r.name_sing)||(null==r?void 0:r.name)}});var eO=n(22870),eM=n(58439),eE=n.n(eM);let eD=e=>{var t;let{company:n,orgType:i,companyReviews:a,maxPage:l,serviceTypes:o,initialPage:r}=e,[s,c]=(0,f.useState)(a),[d,u]=(0,f.useState)(o),[m,v]=(0,f.useState)("newest"),[p,_]=(0,f.useState)(!1),[g,y]=(0,f.useState)(l>1),C=(0,f.useRef)(r),[j,N]=(0,f.useState)(!a.length),[T,k]=(0,f.useState)(!1),A=(0,f.useRef)(!0),R=eL(s,d,null,n),S=(null===(t=eI.find(e=>e.value===m))||void 0===t?void 0:t.label)||eI[0].label,I="oldest"===m||"low-rating"===m,P=(0,eS.K1)({type:i,companyIds:[n.id],sort:"high-rating"===m||"low-rating"===m?"rating":void 0,orderDesc:!I}),B=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;C.current=e,1===e?N(!0):k(!0),(0,eS.Jh)(P.reviews,e).then(t=>{var n,i;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===(i=t.result)||void 0===i?void 0:i.pages)||0)),d||u((0,eO.c)(t))}).finally(()=>{N(!1),k(!1)})};(0,f.useEffect)(()=>{if(A.current&&a.length>0){A.current=!1;return}B()},[i,n.id,m]);let L=(0,f.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,h.jsxs)("section",{className:eE().section,children:[(0,h.jsx)(b.W2,{children:(0,h.jsx)("div",{className:eE().sortWrapper,children:(0,h.jsxs)(w.Lt,{opened:p,placement:"bottom-end",onToggle:_,children:[(0,h.jsxs)(w.WA,{onClick:()=>_(!0),className:eE().activeSortOption,children:[I?(0,h.jsx)(x.IconFdsSortAscendingO,{className:eE().sortIcon}):(0,h.jsx)(x.IconFdsSortDescendingO,{className:eE().sortIcon}),S]}),(0,h.jsx)(w.Nv,{children:eI.map(e=>(0,h.jsx)(w.Qr,{label:e.label,onClick:()=>L(e)},e.value))})]})})}),(0,h.jsx)(eP.j,{reviews:R,onShowMore:g?()=>{B(C.current+1)}:void 0,loading:j,loadingMore:T,eventCategory:"companyDetail",initialMaxPage:l,initialPage:r,company:n})]})};var eF=n(87334),eU=n(95777),eW=n(37953),ez=n.n(eW);let eV=e=>{let{label:t,preposition:n,value:i,isTitle:a}=e,l=n?"".concat(n," ").concat(i):i,o=a&&"string"==typeof i?l:"";return(0,h.jsxs)("div",{className:(0,k.Z)(ez().group,a&&ez().titleGroup),children:[(0,h.jsx)("p",{className:ez().groupSub,title:a&&"string"==typeof t?t:"",children:t}),(0,h.jsxs)("p",{className:(0,k.Z)(ez().groupContent,n&&ez().nowrap),title:o,children:[n&&(0,h.jsx)("span",{className:ez().preposition,children:n})," ",i]})]})},eH={isCredit:e=>"credit_group_id"in e,isCard:e=>"card_group_id"in e,isDeposit:e=>"deposit_group_id"in e,isMortgage:e=>"mortgage_group_id"in e,isAutoCredit:e=>"autoCredit_group_id"in e,isDebitCard:e=>"debitCard_group_id"in e,isMicroCredit:e=>"microCredit_group_id"in e},eq=e=>{let t={dative:"предложению",genitive:"предложения",prepositional:"о предложении"};if(!e)return t;switch(!0){case eH.isAutoCredit(e):return{dative:"автокредиту",genitive:"автокредита",prepositional:"об автокредите"};case eH.isDebitCard(e):return{dative:"дебетовой карте",genitive:"дебетовой карты",prepositional:"о дебетовой карте"};case eH.isCard(e):return{dative:"карте",genitive:"карты",prepositional:"о карте"};case eH.isCredit(e):return{dative:"кредиту",genitive:"кредита",prepositional:"о кредите"};case eH.isDeposit(e):return{dative:"вкладу",genitive:"вклада",prepositional:"о вкладе"};case eH.isMortgage(e):return{dative:"ипотеке",genitive:"ипотеки",prepositional:"об ипотеке"};case eH.isMicroCredit(e):return{dative:"займу",genitive:"займа",prepositional:"о займе"};default:return t}};var eX=n(90138);let eY=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 i=Math.abs(e),a=1,l="";i>=1e12?(a=1e12,l="трлн "):i>=1e9?(a=1e9,l="млрд "):i>=1e6&&(a=1e6,l="млн ");let o=i;if(t&&(o=Math.floor(10*i/a)/10),Math.floor(o)>=1e4&&(o=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")),o=(0,eX.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},eZ=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}}},eQ={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"},e$={background:"var(--color-blue-200)"},eG={background:"var(--color-purple-200)"},eJ={background:"var(--color-pink-100)"},eK=e=>(0,h.jsx)("span",{dangerouslySetInnerHTML:{__html:e}}),e0=e=>{var t;return(null===(t=e.online_application)||void 0===t?void 0:t.type)===3},e1=e=>{var t;return(null===(t=e.online_application)||void 0===t?void 0:t.commercial)===1},e3=e=>{var t,n,i;let a=[],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&&a.push({name:eQ.FULL_PRICE,label:"Полная стоимость кредита",value:(0,eX.m)("".concat(o,"-").concat(r,"%"))});let s=e.payment;s&&a.push({name:eQ.MONTHLY_PAYMENT,label:"Ежемесячный платеж",preposition:"от",value:eK(eY(s))});let c=null===(i=e.amount)||void 0===i?void 0:i.to;return c&&a.push({name:eQ.AMOUNT,label:"Сумма",preposition:"до",value:eK(eY(Number(c)))}),l.push({text:"Кредит",style:e$}),e0(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:a,chips:l}},e2=e=>{let t=[],n=[],i=e.first_year_cost;if(i){let e="Бесплатно"===i?i:eY(+i.replace(/[^\d]/g,""));t.push({name:eQ.YEAR_COST,label:"Обслуживание в год",value:eK(e)})}let a=e.credit_limit_to;a&&t.push({name:eQ.LIMIT,label:"Кредитный лимит",preposition:"до",value:eK(eY(Number(a)))});let l=e.grace_period;return l&&t.push({name:eQ.GRACE_PERIOD,label:"Льготный период",preposition:"до",value:"".concat(l," ").concat((0,b._6)(l,"дня","дней","дней"))}),n.push({text:"Кредитные карты",color:"orange"}),1===e.online_application.unplatform_banks?n.push({text:"Подача заявки на Финуслугах",style:eG}):e1(e)&&3!==e.online_application.type?n.push({text:"Подача заявки на сайте банка",style:eG}):3!==e.online_application.type&&n.push({text:"Открытие в банке",style:eG}),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}},e6=e=>{var t,n,i,a,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:eQ.RATE,label:"Ставка",value:"".concat(u,"%")});let m=null===(a=e.interest_rate)||void 0===a?void 0:null===(i=a.rates[0])||void 0===i?void 0:i.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,b._6)(m,"год","года","лет")):"".concat(Math.round(m/30)," мес."),c.push({name:eQ.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=eZ(e.currency_id).unit;c.push({name:eQ.AMOUNT,label:"Сумма вклада",preposition:"от",value:eK("".concat(eY(v,!0,t)))})}let p=!!e.type.saving_account;return d.push(p?{text:"Накопительный счет",style:e$}:{text:"Вклад",color:"orange"}),e0(e)?d.push({text:"Открытие онлайн на Финуслугах",color:"purple"}):e1(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}},e4=e=>{var t,n,i,a;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:eQ.FULL_PRICE,label:"Полная стоимость кредита",value:(0,eX.m)("".concat(r,"-").concat(s,"%"))});let c=null===(i=e.amount)||void 0===i?void 0:i.to;c&&l.push({name:eQ.AMOUNT,label:"Сумма кредита",preposition:"до",value:eK(eY(Number(c)))});let d=null===(a=e.first_payment)||void 0===a?void 0:a.from;return d&&l.push({name:eQ.FIRST_PAYMENT,label:"Первый взнос",preposition:"от",value:"".concat(d,"%")}),o.push({text:"Ипотека",color:"green"}),e0(e)?o.push({text:"Открытие онлайн на Финуслугах",color:"purple"}):e1(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}},e5=e=>{var t,n,i,a;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:eQ.FULL_PRICE,label:"Полная стоимость кредита",value:(0,eX.m)("".concat(r,"-").concat(s,"%"))});let c=null===(i=e.amount)||void 0===i?void 0:i.from;c&&l.push({name:eQ.AMOUNT,label:"Сумма",preposition:"от",value:eK(eY(Number(c)))});let d=null===(a=e.first_payment)||void 0===a?void 0:a.from;return d&&l.push({name:eQ.FIRST_PAYMENT,label:"Первый взнос",preposition:"от",value:"".concat(d,"%")}),o.push({text:"Автокредит",style:eJ}),e1(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}},e7=e=>{var t,n,i,a,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===(i=e.service_cost)||void 0===i?void 0:i.first_year_cost);if(s){let t=eZ(e.currency_id).unit,n="Бесплатно"===s?s:eY(+s.replace(/[^\d]/g,""),!0,t);n&&o.push({name:eQ.SERVICE_COST,label:"Обслуживание в год",value:eK(n)})}let c=e.balance_interest_number?"".concat(e.balance_interest_number,"%"):"Нет";o.push({name:eQ.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===(a=l.text)||void 0===a?void 0:a.toLowerCase());return u.includes("путешествия")&&(d="Мили"),u.includes("торговые сети")&&(d="Баллы"),d&&o.push({name:eQ.BONUS,label:"Бонусы",value:d}),r.push({text:"Дебетовая карта",color:"orange"}),e1(e)&&3!==e.online_application.type?r.push({text:"Подача заявки на сайте банка",style:eG}):3!==e.online_application.type&&r.push({text:"Открытие в банке",style:eG}),e.online_application.commercial_desc&&r.push({text:e.online_application.commercial_desc,color:"primary"}),{fields:o,chips:r}},e8=e=>{let t=[],n=+e.term_without_percents;n&&t.push({name:eQ.TERM_WITHOUT_PERCENTS,label:"Срок без %",value:"".concat(n," ").concat((0,b._6)(Number(n),"день","дня","дней"))}),e.amount.to&&t.push({name:eQ.AMOUNT,label:"Сумма",value:eK(eY(Number(e.amount.to),!0,!1)),preposition:"до"});let i=e.period.to;return i&&t.push({name:eQ.TERM,label:"Срок",value:"".concat(i," ").concat((0,b._6)(Number(i),"дня","дней","дней")),preposition:"до"}),{fields:t,chips:[]}},e9=e=>{let t=[],n=[];if(eH.isCredit(e)){let{fields:i,chips:a}=e3(e);t=i,n=a}if(eH.isCard(e)){let{fields:i,chips:a}=e2(e);t=i,n=a}if(eH.isDeposit(e)){let{fields:i,chips:a}=e6(e);t=i,n=a}if(eH.isMortgage(e)){let{fields:i,chips:a}=e4(e);t=i,n=a}if(eH.isAutoCredit(e)){let{fields:i,chips:a}=e5(e);t=i,n=a}if(eH.isDebitCard(e)){let{fields:i,chips:a}=e7(e);t=i,n=a}if(eH.isMicroCredit(e)){let{fields:i,chips:a}=e8(e);t=i,n=a}return{fields:t,chips:n}};var te=n(75950),tt=n.n(te);let tn=e=>{let{offer:t,company:n,isLastOfferOnPage:i,order:a,handleOpenDetailInfo:l,isWhiteCard:o=!1}=e,{env:r}=(0,M.k)(),s=(0,y.usePathname)(),c=H(n),d=(0,f.useMemo)(()=>({offerId:String(t.id),order:a,category:"mfo"}),[t.id,a]),u=function(e,t){let[n,i]=(0,f.useState)(""),a=(0,eF.u)(),l=(0,eU.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,f.useEffect)(()=>{if(!e)return;let t=null;try{t=new URL(e)}catch(e){return}(function(e,t){let{pathname:n,utmSource:i,utmMedium:a,utmCampaign:l,utmTerm:o,utmContent:r,clickId:s}=t;void 0!==n&&e.set("page_path",n),void 0!==i&&e.set("utm_source",i),void 0!==a&&e.set("utm_medium",a),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,a),function(e,t){let{browserId:n,sessionId:i,customerId:a,yandexId:l}=t;void 0!==l&&e.set("t6",l),void 0!==i&&e.set("t7",i),void 0!==n&&e.set("t8",n),void 0!==a&&e.set("t9",a)}(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),i(t.toString())},[e,a,l,o,d,c]),n}(t.online_application.url,d),m=r.NEXT_PUBLIC_BASE_URL,{fields:v,chips:p}=e9(t),_=(0,f.useMemo)(()=>1===t.online_application.commercial,[t.online_application]),g=(0,f.useMemo)(()=>{let e=window.location.pathname.split("/").filter(Boolean)[2];return"".concat(m,"/").concat(c?"mikrozajmy":e,"/").concat(t.url)},[m,s,c,t.url]),b=e=>()=>{(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.offer,eventActionText:(0,e_.b)(t.title),eventLabel:e})};return(0,h.jsxs)("div",{className:(0,k.Z)(tt().card,{[tt().paddingForButton]:i,[tt().whiteCard]:o}),children:[(0,h.jsxs)("div",{className:tt().top,children:[(0,h.jsxs)("div",{className:tt().topContent,children:[(0,h.jsxs)("div",{className:tt().bankInfo,children:[(0,h.jsx)("div",{className:tt().icon,children:(0,h.jsx)(eC.D,{url:(0,eB.A)(n)||n.url,type:(0,eB.A)(n)?"bank":"mfo",width:40,height:40,companyName:n.name})}),(0,h.jsx)(eV,{label:t.title,value:n.name,isTitle:!0})]}),(0,h.jsx)("div",{className:tt().groups,children:v.map(e=>e.value&&(0,h.jsx)(eV,{label:e.label,preposition:e.preposition,value:e.value},e.name))})]}),(0,h.jsx)("div",{className:tt().controls,children:(0,h.jsx)("div",{className:tt().iconButton,onClick:e=>l(e,t,u),children:(0,h.jsx)(x.IconFdsInfoCircleO,{className:tt().iconDetail,size:20})})})]}),(0,h.jsxs)("div",{className:tt().bottom,children:[p.length>0&&(0,h.jsx)("div",{className:tt().chips,children:p.map(e=>(0,h.jsx)("div",{className:tt().chipWrapper,children:(0,h.jsx)(w.Vp,{label:e.text,variant:e.color,className:tt().chip,style:e.style,rounded:!0})},e.text))}),(0,h.jsxs)("div",{className:tt().buttons,children:[(0,h.jsx)(w.zx,{className:tt().offerButton,variant:"secondary",size:"xs",label:"Подробнее",as:"a",target:"_blank",href:g,onClick:b(g)}),_&&(0,h.jsx)(w.zx,{rel:"nofollow",size:"xs",label:"Оформить",as:"a",target:"_blank",href:u,onClick:b(t.online_application.url)})]})]}),i&&(0,h.jsx)("div",{className:tt().lastOfferCornerGradient})]},t.id)};var ti=n(13466),ta=n(73564),tl=n(27573),to=n.n(tl);let tr=e=>{let{maxHeight:t=300,className:n,style:i,children:a,...l}=e,[o,r]=(0,f.useState)(t),[s,c]=(0,f.useState)(!1),d=(0,f.useRef)(null);return(0,f.useEffect)(()=>{let e=()=>{d.current&&d.current.scrollHeight>t&&c(!0)};return e(),window&&window.addEventListener("resize",e),window.removeEventListener("resize",e)},[t]),(0,h.jsxs)("div",{...l,ref:d,className:(0,k.Z)(to().container,{[to().containerOverflow]:s,[to().containerOpen]:s&&o===t},n),style:{height:s?o:"auto",...i},children:[a,s&&(0,h.jsx)("button",{className:to().button,onClick:()=>{r(e=>e===t?"auto":t)},children:o===t?"Показать ещё":"Скрыть"})]})};var ts=n(43435),tc=n.n(ts);let td=e=>e?e.replace(/\b(\d{1,2})\.(\d{1,2})\.(\d{2,4})\b|\b(\d+)\.(\d+)\b/g,(e,t,n,i,a,l)=>t&&n&&i?e:"".concat(a,",").concat(l)):"",tu=e=>{let{text:t}=e;return(0,h.jsx)(tr,{className:tc().rowValue,children:(0,h.jsx)("div",{className:tc().rowValue,dangerouslySetInnerHTML:{__html:td(t)}})})},tm=e=>{let{title:t,text:n}=e;return(0,h.jsxs)("li",{className:tc().row,children:[(0,h.jsx)("div",{className:tc().rowLabel,children:t}),Array.isArray(n)?(0,h.jsx)("div",{className:tc().rowValue,children:n.map(e=>(0,h.jsx)(tu,{text:e},e))}):(0,h.jsx)(tu,{text:n})]},t)},tv=e=>{let{params:t,terms:n,aboutBank:i,actualInfo:a}=e;return(0,h.jsxs)("div",{className:tc().content,children:[!!t.rows.length&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h3",{className:tc().listTitle,children:t.title}),(0,h.jsx)("ul",{className:tc().list,children:t.rows.map(tm)})]}),!!n.rows.length&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h3",{className:tc().listTitle,children:n.title}),(0,h.jsx)("ul",{className:tc().list,children:n.rows.map(tm)})]}),!!i.rows.length&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h3",{className:tc().listTitle,children:i.title}),(0,h.jsx)("ul",{className:tc().list,children:i.rows.map(tm)})]}),(0,h.jsx)("span",{className:(0,k.Z)(tc().actualDateOffer,tc().actualDate),children:a})]})},tp=e=>{if(e<12)return"".concat(e," ").concat((0,b._6)(e,"месяц","месяца","месяцев"));let t=Math.floor(e/12),n=e%12;return"".concat(t," ").concat((0,b._6)(t,"год","года","лет"))+(n?" ".concat(n," ").concat((0,b._6)(n,"месяц","месяца","месяцев")):"")},t_=e=>{let t=Math.floor(e/12),n=e%12,i=[];return t>0&&i.push(t.toString(),(0,b._6)(t,"года","лет","лет")),n>0&&i.push(n.toString(),(0,b._6)(n,"месяца","месяцев","месяцев")),i.join(" ")},tg=(e,t)=>["от",t_(e),"до",t_(t)].join(" "),th="Нет",tf=e=>null!=e&&""!==e,ty=(e,t)=>{let n=e.split("/").map(e=>e.trim());return t&&n.push(t.trim()),"<ul>".concat(n.map(e=>"<li>".concat(e,"</li>")).join(""),"</ul>")},tx=e=>{let{discounts:t,discounts_comment:n,custom_discounts:i}=e;return[{text:t,comment:n},...i].map(e=>{let{text:t,comment:n}=e;return t||n?"<h6>".concat(t,"</h6><p>").concat(null!=n?n:"","</p>"):""})},tb=e=>{let{first_year_cost:t,second_year_cost:n,first_year_cost_comment:i}=e;return t&&n?t!==n?"<p>1-й год</p><p>".concat(t,"</p><h6>Со 2-го года</h6><p>").concat(n,"</p>"):"<h6>".concat(t,"</h6><p>").concat(null!=i?i:"","</p>"):""},tw=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"h6",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"p";return"<".concat(n,">").concat(e,"</").concat(n,">").concat(t?"<".concat(i,">").concat(t,"</").concat(i,">"):"")},tC=e=>{var t,n,i,a,l,o,r,s,c,d,u,m,v,p,_,g,h,f;let y=[],x=null===(t=e.full_price)||void 0===t?void 0:t.from,b=null===(n=e.full_price)||void 0===n?void 0:n.to;tf(x)&&tf(b)&&y.push({title:"Полная стоимость кредита",text:(0,eX.m)("".concat(x,"-").concat(b,"%"))});let w=null===(i=e.interest_rate)||void 0===i?void 0:i.from,C=null===(a=e.interest_rate)||void 0===a?void 0:a.to;tf(w)&&tf(C)&&y.push({title:"Процентная ставка",text:w===C?"".concat(w,"%"):"".concat(w," - ").concat(C,"%")});let j=null===(l=e.amount)||void 0===l?void 0:l.from,N=null===(o=e.amount)||void 0===o?void 0:o.to;if(tf(N)){let e=j===N,t=eY(Number(j),!1,!1),n=eY(Number(N),!1),i=tf(j)?"".concat(t," - ").concat(n):"до ".concat(n);y.push({title:"Возможная сумма кредита",text:e?"до ".concat(n):i})}let T=null===(r=e.period)||void 0===r?void 0:r.from,k=null===(s=e.period)||void 0===s?void 0:s.to;tf(T)&&tf(k)&&y.push({title:"Срок погашения кредита",text:T===k?tp(Number(T)):tg(Number(T),Number(k))});let A=null===(c=e.purpose)||void 0===c?void 0:c.text;A&&y.push({title:"Цель кредита",text:A});let R=[],S=null===(d=e.form)||void 0===d?void 0:d.text;S&&R.push({title:"Форма выдачи",text:ty(S)});let I=null===(u=e.application_term)||void 0===u?void 0:u.text;I&&R.push({title:"Срок рассмотрения заявки",text:I});let P=null===(m=e.registration_procedure)||void 0===m?void 0:m.text;P&&R.push({title:"Порядок оформления кредита",text:P});let B=null===(v=e.income_proof)||void 0===v?void 0:v.text;B&&R.push({title:"Подтверждение дохода",text:B});let L=null===(p=e.loan)||void 0===p?void 0:p.text;L&&R.push({title:"Обеспечение",text:L});let O=null===(_=e.age)||void 0===_?void 0:_.text;O&&R.push({title:"Возраст заемщика",text:O});let M=null===(g=e.registration_address)||void 0===g?void 0:g.text;if(M){let t=null===(f=e.registration_address)||void 0===f?void 0:f.comment;R.push({title:"Регистрация",text:ty(M,t)})}let E=null===(h=e.experience)||void 0===h?void 0:h.text;return E&&R.push({title:"Стаж работы",text:E}),{params:y,terms:R}},tj=e=>{var t,n;let i=[],a=null===(t=e.full_price)||void 0===t?void 0:t.from,l=null===(n=e.full_price)||void 0===n?void 0:n.to;tf(a)&&tf(l)&&i.push({title:"Полная стоимость кредита",text:(0,eX.m)("".concat(a,"-").concat(l,"%"))});let o=e.interest_rate_from,r=e.interest_rate_to;if(tf(o)&&tf(r)){let e=o===r?"".concat(o,"%"):"".concat(o," - ").concat(r,"%");i.push({title:"Процентная ставка",text:tw(e)})}let s=e.credit_limit_to;if(s){let t=e.credit_limit_comment;i.push({title:"Кредитный лимит",text:tw("до ".concat(eY(s,!1)),t)})}let c=e.grace_period;if(c){let t=e.grace_period_comment;i.push({title:"Льготный период",text:tw("до ".concat(c," ").concat((0,b._6)(c,"дня","дня","дней")),t)})}let d=e.min_monthly_payment;if(d){let t=e.min_monthly_payment_comment;i.push({title:"Минимальный ежемесячный платеж",text:tw(d,t)})}i.push({title:"Льготный период на снятие наличных",text:tw(e.grace_period_cash_withdraw?"Распространяется":"Не распространяется")});let u=e.cash_withdraw_limit;if(u){let t=e.cash_withdraw_limit_comment;i.push({title:"Лимит на снятие наличных",text:tw(u,t)})}let m=e.cashback;if(m){let t=e.cashback_comment;i.push({title:"Cashback",text:tw(m,t)})}i.push({title:"Проценты на остаток",text:tw(e.has_interest_on_balance?e.interest_on_balance:th)});let{has_discounts:v,discounts:p,discounts_comment:_,custom_discounts:g}=e,h=v?tx({discounts:p,discounts_comment:_,custom_discounts:g}):th;i.push({title:"Скидки и бонусы",text:h});let{first_year_cost:f,second_year_cost:y,first_year_cost_comment:x}=e,w=tb({first_year_cost:f,second_year_cost:y,first_year_cost_comment:x});i.push({title:"Стоимость обслуживания",text:"".concat(tw("Плата за выпуск",e.release_cost)).concat(w)});let C=e.sms;if(C){let t=e.sms_comment;i.push({title:"SMS-оповещение",text:tw(C,t)})}let j=e.mobile_bank;if(j){let t=e.mobile_bank_comment;i.push({title:"Мобильное приложение",text:tw(j,t)})}let N=e.cash_withdraw_atm;if(N){let t=e.cash_withdraw_atm_comment;i.push({title:"Снятие наличных в банкоматах банка",text:tw(N,t)})}let T=e.age;if(T){let t=e.age_comment;i.push({title:"Возраст заемщика",text:tw(T,t)})}let k=e.work_experience;if(k){let t=e.work_experience_comment;i.push({title:"Стаж работы",text:tw(k,t)})}let A=e.proof_income;if(A){let t=e.proof_income_comment;i.push({title:"Подтверждение дохода",text:tw(A,t)})}let R=e.registration;if(R){let t=e.registration_comment;i.push({title:"Регистрация",text:tw(R,t)})}let S=e.card_type_custom;return S&&i.push({title:"Тип карты",text:tw(S)}),i.push({title:"Бесконтактная оплата",text:tw(e.contactless_payment_type_custom||th)}),i.push({title:"3D Secure",text:tw(e["3d_secure"]?"Есть":th)}),{params:i,terms:[]}},tN=e=>{var t,n,i,a,l,o,r,s,c,d,u,m,v,p;let _=[],g=null===(t=e.amount)||void 0===t?void 0:t.from;if(tf(g)){let t=null===(m=e.amount)||void 0===m?void 0:m.comment;_.push({title:"Сумма вклада",text:tw("от ".concat(eY(Number(g),!1,eZ(e.currency_id).unit)),t)})}let h=null===(i=e.interest_rate)||void 0===i?void 0:null===(n=i.rates[0])||void 0===n?void 0:n.rate,f=null===(l=e.interest_rate)||void 0===l?void 0:null===(a=l.rates[-1])||void 0===a?void 0:a.rate;if(tf(h)&&tf(f)){let t=h===f?"".concat(h,"%"):"".concat(h," - ").concat(f,"%"),n=null===(v=e.interest_rate)||void 0===v?void 0:v.comment;_.push({title:"Процентная ставка",text:tw(t,n,"p")})}let y=null===(o=e.interest_rate)||void 0===o?void 0:o.rates,x=null===(r=y[0])||void 0===r?void 0:r.term_from,b=null===(s=y[-1])||void 0===s?void 0:s.term_to;tf(x)&&tf(b)&&_.push({title:"Срок вклада",text:tw("".concat(x," - ").concat(b," дн."))});let w=eZ(e.currency_id).code;w&&_.push({title:"Валюта вклада",text:tw(w)});let C=e.partial_withdrawal.text;if(C){let t=e.partial_withdrawal.comment;_.push({title:"Частичное снятие",text:tw(C,t)})}let j=e.interest_payment.text;j&&_.push({title:"Выплата процентов",text:tw(j)});let N=null===(c=e.refill)||void 0===c?void 0:c.text;N&&_.push({title:"Пополнение вклада",text:tw(N)});let T=null===(d=e.interest_capitalization)||void 0===d?void 0:d.text;T&&_.push({title:"Капитализация процентов",text:tw(T)});let k=null===(u=e.preferential_termination)||void 0===u?void 0:u.text;if(k){let t=null===(p=e.preferential_termination)||void 0===p?void 0:p.comment;_.push({title:"Льготное расторжение",text:tw(k,t)})}return{params:_,terms:[]}},tT=e=>{var t,n,i,a,l,o,r,s,c,d,u,m,v,p,_;let g=[],h=null===(t=e.full_price)||void 0===t?void 0:t.from,f=null===(n=e.full_price)||void 0===n?void 0:n.to;tf(h)&&tf(f)&&g.push({title:"Полная стоимость кредита",text:(0,eX.m)("".concat(h,"-").concat(f,"%"))});let y=null===(i=e.interest_rate)||void 0===i?void 0:i.from,x=null===(a=e.interest_rate)||void 0===a?void 0:a.to;if(tf(y)&&tf(x)){let t=y===x?y:"".concat(y," - ").concat(x),n=e.interest_rate.comment;g.push({title:"Процентная ставка",text:tw("".concat(t,"%"),n,"p")})}let b=null===(l=e.amount)||void 0===l?void 0:l.from,w=null===(o=e.amount)||void 0===o?void 0:o.to;if(tf(w)){let e=b===w,t=eY(Number(b),!1,!1),n=eY(Number(w),!1,!0),i=tf(b)?"".concat(t," - ").concat(n):"до ".concat(n);g.push({title:"Сумма кредита",text:e?"до ".concat(n):i})}let C=null===(r=e.period)||void 0===r?void 0:r.from,j=null===(s=e.period)||void 0===s?void 0:s.to;tf(C)&&tf(j)&&g.push({title:"Срок погашения кредита",text:C===j?tp(Number(C)):tg(Number(C),Number(j))});let N=null===(c=e.first_payment)||void 0===c?void 0:c.from;tf(N)&&g.push({title:"Минимальный первый взнос",text:"от ".concat(N,"%")});let T=null===(d=e.loan)||void 0===d?void 0:d.text;T&&g.push({title:"Обеспечение",text:T});let k=null===(u=e.property_type)||void 0===u?void 0:u.text;k&&g.push({title:"Вид недвижимости",text:k});let A=null===(m=e.real_estate_market)||void 0===m?void 0:m.text;if(A){let t=null===(p=e.real_estate_market)||void 0===p?void 0:p.comment;g.push({title:"Рынок недвижимости",text:tw(A,t,"p")})}let R=null===(v=e.insurance)||void 0===v?void 0:v.text;if(R){let t=null===(_=e.insurance)||void 0===_?void 0:_.comment;g.push({title:"Страхование",text:tw(R,t,"p")})}return{params:g,terms:[]}},tk=e=>{var t,n,i,a,l,o,r,s,c,d,u,m,v,p,_,g,h,f,y,x,b;let w=[],C=null===(t=e.full_price)||void 0===t?void 0:t.from,j=null===(n=e.full_price)||void 0===n?void 0:n.to;tf(C)&&tf(j)&&w.push({title:"Полная стоимость кредита",text:(0,eX.m)("".concat(C,"-").concat(j,"%"))});let N=null===(i=e.interest_rate)||void 0===i?void 0:i.from,T=null===(a=e.interest_rate)||void 0===a?void 0:a.to;if(tf(N)&&tf(T)){let e=N===T;w.push({title:"Процентная ставка",text:e?"".concat(N,"%"):"".concat(N," - ").concat(T,"%")})}let k=null===(l=e.amount)||void 0===l?void 0:l.from,A=null===(o=e.amount)||void 0===o?void 0:o.to;if(tf(k)&&tf(A)){let e=k===A,t=eY(Number(k),!1,!1),n=eY(Number(A),!1);w.push({title:"Возможная сумма кредита",text:e?"до ".concat(n):"".concat(t," - ").concat(n)})}let R=null===(r=e.period)||void 0===r?void 0:r.from,S=null===(s=e.period)||void 0===s?void 0:s.to;tf(R)&&tf(S)&&w.push({title:"Срок погашения кредита",text:R===S?tp(Number(R)):tg(Number(R),Number(S))});let I=null===(c=e.first_payment)||void 0===c?void 0:c.from,P=null===(d=e.first_payment)||void 0===d?void 0:d.to;tf(I)&&w.push({title:"Первый взнос",text:P?"".concat(I," - ").concat(P,"%"):"от ".concat(I,"%")});let B=null===(u=e.vehicle_type)||void 0===u?void 0:u.text;B&&w.push({title:"Тип транпортного средства",text:B});let L=null===(m=e.vehicle_state)||void 0===m?void 0:m.text;L&&w.push({title:"Состояние ТС",text:L});let O=[],M=null===(v=e.form)||void 0===v?void 0:v.text;M&&O.push({title:"Форма выдачи",text:ty(M)});let E=null===(p=e.application_term)||void 0===p?void 0:p.text;E&&O.push({title:"Срок рассмотрения заявки",text:E});let D=null===(_=e.registration_place)||void 0===_?void 0:_.text;D&&O.push({title:"Порядок оформления кредита",text:D});let F=null===(g=e.income_proof)||void 0===g?void 0:g.text;F&&O.push({title:"Подтверждение дохода",text:ty(F)});let U=null===(h=e.loan)||void 0===h?void 0:h.text;U&&O.push({title:"Обеспечение",text:U});let W=null===(f=e.age)||void 0===f?void 0:f.text;W&&O.push({title:"Возраст заемщика",text:W});let z=null===(y=e.registration_address)||void 0===y?void 0:y.text;if(z){let t=null===(b=e.registration_address)||void 0===b?void 0:b.comment;O.push({title:"Регистрация",text:tw(z,t)})}let V=null===(x=e.experience)||void 0===x?void 0:x.text;return V&&O.push({title:"Стаж работы",text:V}),{params:w,terms:O}},tA=e=>{var t,n,i,a,l,o,r,s,c;let d=[],u=null===(t=e.card_type)||void 0===t?void 0:t.custom;u&&d.push({title:"Тип карты",text:u});let m=eZ(e.currency_id).code;m&&d.push({title:"Валюта карты",text:m});let v=tb(e.service_cost),p=null===(n=e.service_cost)||void 0===n?void 0:n.release_cost;p&&d.push({title:"Стоимость обслуживания",text:"".concat(tw("Плата за выпуск",p,"p")).concat(v)});let _=null===(i=e.manufacturing_term)||void 0===i?void 0:i.text;_&&d.push({title:"Срок изготовления",text:_});let g=null===(a=e.balance_interest)||void 0===a?void 0:a.text;if(g){let t=null===(c=e.balance_interest)||void 0===c?void 0:c.comment;d.push({title:"Проценты на остаток",text:tw(g,t)})}d.push({title:"Скидки и бонусы",text:e.discounts.comment||th},{title:"Кешбэк",text:(null===(l=e.cash_back)||void 0===l?void 0:l.has)?null===(o=e.cash_back)||void 0===o?void 0:o.comment:th},{title:"Бесконтактная оплата",text:(null===(r=e.contactless_payment)||void 0===r?void 0:r.custom)||th});let h=null===(s=e.individual_design)||void 0===s?void 0:s.text;return h&&d.push({title:"Индивидуальный дизайн карты",text:h}),{params:d,terms:[]}},tR=e=>{var t,n,i,a,l,o,r,s,c,d,u,m,v,p,_,g,h,f;let y=[],x=null===(t=e.period)||void 0===t?void 0:t.from,w=null===(n=e.period)||void 0===n?void 0:n.to;tf(x)&&tf(w)&&y.push({title:"Срок займа",text:"".concat(x," - ").concat(w," ").concat((0,b._6)(Number(w),"день","дня","дней"))});let C=null===(i=e.interest_rate)||void 0===i?void 0:i.from,j=null===(a=e.interest_rate)||void 0===a?void 0:a.to;if(tf(C)||tf(j)){let t=null===(f=e.interest_rate)||void 0===f?void 0:f.comment;y.push({title:"Процентная ставка",text:tw(C===j?"".concat(C,"%"):"до ".concat(j,"%"),t,"p")})}let N=null===(l=e.amount)||void 0===l?void 0:l.from,T=null===(o=e.amount)||void 0===o?void 0:o.to;tf(T)&&y.push({title:"Сумма займа",text:tf(N)?"".concat(N," - ").concat(T," руб."):"до ".concat(T," руб.")});let k=null===(r=e.full_price)||void 0===r?void 0:r.from,A=null===(s=e.full_price)||void 0===s?void 0:s.to;tf(k)&&tf(A)&&y.push({title:"Полная стоимость",text:"".concat(k," - ").concat(A,"%")});let R=[],S=null===(c=e.loan)||void 0===c?void 0:c.text;S&&R.push({title:"Обеспечение",text:S});let I=null===(d=e.purpose)||void 0===d?void 0:d.text;I&&y.push({title:"Цель кредита",text:I});let P=null===(u=e.application_term)||void 0===u?void 0:u.text;P&&R.push({title:"Срок выдачи",text:P});let B=null===(m=e.form)||void 0===m?void 0:m.text;B&&R.push({title:"Форма выдачи",text:B});let L=e.fine.text;L&&R.push({title:"Штраф за неоплату платежа",text:L});let O=null===(v=e.age)||void 0===v?void 0:v.text;O&&R.push({title:"Возраст заемщика",text:O});let M=null===(p=e.borrower)||void 0===p?void 0:p.text;M&&R.push({title:"Категория заемщика",text:M});let E=null===(_=e.experience)||void 0===_?void 0:_.text;E&&R.push({title:"Стаж работы",text:E});let D=null===(g=e.income_proof)||void 0===g?void 0:g.text;D&&R.push({title:"Подтверждение дохода",text:D});let F=null===(h=e.docs)||void 0===h?void 0:h.comment;return F&&R.push({title:"Требуемые документы",text:F}),{params:y,terms:R}},tS=e=>{let t=[],n=[];if(!e)return{params:t,terms:n};if(eH.isCredit(e)){let{params:i,terms:a}=tC(e);t=i,n=a}if(eH.isCard(e)){let{params:n}=tj(e);t=n}if(eH.isDeposit(e)){let{params:i,terms:a}=tN(e);t=i,n=a}if(eH.isMortgage(e)){let{params:i,terms:a}=tT(e);t=i,n=a}if(eH.isAutoCredit(e)){let{params:i,terms:a}=tk(e);t=i,n=a}if(eH.isDebitCard(e)){let{params:i,terms:a}=tA(e);t=i,n=a}if(eH.isMicroCredit(e)){let{params:i,terms:a}=tR(e);t=i,n=a}return{params:t,terms:n}};var tI=n(36534),tP=n.n(tI);let tB=e=>{var t;return"site_title"in e?e.site_title:"string"==typeof e.site?e.site:(null===(t=e.site)||void 0===t?void 0:t.title)||""},tL=e=>{let{offer:t,bank:n,handleDetails:i,onClose:a}=e,l=(0,w.aF)("l"),{mounted:o}=(0,ta.b)({opened:!!t});if(!o)return null;let r=eq(t),s=(0,h.jsxs)("div",{className:tP().buttons,children:[(0,h.jsx)(w.zx,{onClick:()=>i(t,!0),variant:"secondary",className:tP().button,children:"Все условия по ".concat(r.dative)}),(0,h.jsx)(w.zx,{onClick:()=>i(t),variant:"primary",className:tP().button,children:"Подать заявку"})]}),{params:c,terms:d}=tS(t),u=[{title:"Сайт",text:tB(n)}],m=(0,el.p6)((null==t?void 0:t.m_updated_at)||new Date().toDateString()),v={offer:t,params:{title:"Параметры ".concat(r.genitive),rows:c},terms:{title:"Условия по ".concat(r.dative),rows:d},aboutBank:{title:"О банке",rows:u},actualInfo:"Информация ".concat(r.prepositional," актуальна на ").concat(m)};return(0,h.jsx)(ti.h,{children:l?(0,h.jsx)(X.j,{className:tP().mobilePopup,contentClassName:tP().container,isOpen:null!==t,onClose:a,footer:s,children:(0,h.jsx)(tv,{...v})}):(0,h.jsx)(q.d,{title:(0,h.jsxs)("div",{className:tP().title,children:[(0,h.jsx)("div",{className:tP().logoContainer,children:(0,h.jsx)(eC.D,{url:(0,eB.A)(n)||n.url,type:(0,eB.A)(n)?"bank":"mfo",width:40,height:40,companyName:null==t?void 0:t.bank_name})})," ",null==t?void 0:t.bank_name]}),rowTitle:!0,titleAlign:"left",className:tP().drawer,contentClassName:tP().container,isOpen:null!==t,onClose:a,footer:s,children:(0,h.jsx)(tv,{...v})})})};var tO=n(34914),tM=n.n(tO);let tE=["предложение","предложения","предложений"],tD=e=>{var t;let{offers:n,bank:i,loading:a}=e,{env:l}=(0,M.k)(),o=l.NEXT_PUBLIC_BASE_URL,r=H(i),[s,c]=(0,f.useState)(null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0),[d,u]=(0,f.useState)(r?s:6),m=a&&!n,v=s-d,[p,_]=(0,f.useState)(null),g=(0,f.useCallback)((e,t)=>{if(!e)return;let n=window.location.pathname.split("/").filter(Boolean)[2],i="".concat(o,"/").concat(r?"mikrozajmy":n,"/").concat(e.url),a=1!==e.online_application.commercial||t?i:e.binomUrl;(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.button,eventActionText:(0,e_.b)(t?"Все условия ".concat(eq(e).dative):"Подать заявку"),eventLabel:a}),window.open(a,"_blank")},[o,r]),y=(0,f.useCallback)((e,t,n)=>{e.preventDefault(),e.stopPropagation(),(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.button,eventActionText:"IconFdsInfoCircleO",eventLabel:(0,e_.b)(t.title)}),_({...t,binomUrl:n})},[_]),C="Ещё ".concat(v," ").concat((0,b._6)(v,...tE));return(0,f.useEffect)(()=>{c((null==n?void 0:n.length)||0),u((null==n?void 0:n.length)||0)},[n]),(0,h.jsxs)("div",{className:r?void 0:tM().wrapper,children:[(0,h.jsxs)(b.W2,{className:(0,k.Z)(tM().productsListContainer,{[tM().containerTopPadding]:!r}),children:[!r&&!m&&(0,h.jsx)("h2",{className:tM().title,children:"Найдено ".concat(s," ").concat((0,b._6)(null!=s?s:0,...tE))}),!r&&m&&(0,h.jsx)(b.Od,{className:tM().title}),(0,h.jsxs)("div",{id:"offers-list",className:(0,k.Z)(tM().offersList),children:[null==n?void 0:n.slice(0,d).map((e,t)=>{let n=d===t+1&&v>0;return(0,h.jsx)(tn,{company:i,offer:e,order:t,handleOpenDetailInfo:y,isLastOfferOnPage:r?void 0:n,isWhiteCard:r},e.id)}),m&&[1,2,3].map(e=>(0,h.jsx)(b.Od,{className:(0,k.Z)(tM().skeleton,{[tM().mfoSkeleton]:r})},e))]}),!r&&v>0&&(0,h.jsx)("div",{className:tM().showMore,children:(0,h.jsx)(w.zx,{variant:"purple",appearance:"ghost",label:C,onClick:()=>u(d+6),className:tM().showMoreButton,disabled:d>=s,iconRight:(0,h.jsx)(x.IconFdsChevronDownSmallO,{className:tM().showMoreIcon})})})]}),(0,h.jsx)(tL,{offer:p?{...p,bank_name:i.name}:null,bank:i,handleDetails:g,onClose:()=>{_(null)}})]})};var tF=n(90498),tU=n.n(tF);let tW=(e,t,n)=>{var i,a;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 i=l(t(n)),a=l(e?t(e):null);return(null!=i?i:1/0)<(null!=a?a:1/0)?n:e},null),r=e.reduce((e,t)=>{let i=l(n(t)),a=l(e?n(e):null);return(null!=i?i:-1/0)>(null!=a?a:-1/0)?t:e},null),s=null!==(i=l(o?t(o):null))&&void 0!==i?i:0,c=null!==(a=l(r?n(r):null))&&void 0!==a?a:s;return{low:s,high:c}},tz=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)||""},tV=(e,t)=>{var n;return(null===(n=e.short_description)||void 0===n?void 0:n.trim())||"Открыть вклад ".concat(e.title," от ").concat(t," — актуальные процентные ставки по депозитам, условия и онлайн расчет дохода")},tH=e=>{var t,n,i,a,l,o,r,s,c;return String(null!==(c=null!==(s=null!==(r=null!==(o=null===(i=e.interest_rate)||void 0===i?void 0:null===(n=i.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===(a=e.interest_rate)||void 0===a?void 0:a.from)&&void 0!==s?s:null===(l=e.interest_rate)||void 0===l?void 0:l.to)&&void 0!==c?c:0)},tq=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:i,assetsUrl:a,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(i,"/banki/").concat(s.url,"/").concat(d),h="".concat(a,"/mp-assets/images/bank/logo-brandmark-bank-").concat(_,".svg"),f={"@context":"https://schema.org","@type":"Product",name:o,description:r,url:g},{low:y,high:x}=tW(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:b,high:w}=tW(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}=tW(p,e=>e.credit_limit_from,e=>e.credit_limit_to),N={"@type":"BankOrCreditUnion",name:s.name,url:tz(s),image:h,...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(i,"/banki/").concat(s.url);return{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":e,name:s.name,url:e,logo:h},{"@type":"Product","@id":g,name:o,brand:{"@id":e},description:r,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:b,highPrice:w,offerCount:p.length,url:g,availability:"https://schema.org/InStock"},isRelatedTo:{"@type":"ItemList",name:"Предложения дебетовых карт",itemListElement:p.map((t,n)=>{var a,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===(a=l[0])||void 0===a?void 0:a.amount_from)&&void 0!==r?r:0,priceCurrency:eZ(t.currency_id).code,url:"".concat(i,"/debetovye_karty/").concat(t.url),availability:"https://schema.org/InStock"}}}})}}]}}if("cards"===c)return{...f,image:h,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:C,highPrice:j,offerCount:p.length,url:g,offers:p.map(e=>({"@type":"CreditCard",url:"".concat(i,"/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{...f,image:h,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:y,highPrice:x,offerCount:p.length,url:g,offers:p.map(e=>{let{amount:t,period:n,interest_rate:a}=e,l="".concat(i,"/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"}},...a&&a.to&&a.from&&{annualPercentageRate:{"@type":"QuantitativeValue",name:"".concat(a.from,"–").concat(a.to,"%"),minValue:a.from,maxValue:a.to}},broker:N,potentialAction:{"@type":"Action",name:"Подробнее",url:l}}})},...u&&{aggregateRating:T}};if("mortgages"===c)return{...f,image:h,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:y,highPrice:x,offerCount:p.length,url:g,offers:p.map(e=>{let{amount:t,period:n,interest_rate:a}=e,l="".concat(i,"/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"}},...a&&a.to&&a.from&&{annualPercentageRate:{"@type":"QuantitativeValue",name:a.from===a.to?"".concat(a.to,"%"):"".concat(a.from,"–").concat(a.to,"%"),minValue:a.from,maxValue:a.to}},broker:N,potentialAction:{"@type":"Action",name:"Подробнее",url:l}}})},...u&&{aggregateRating:T}};let k=s.name_r||s.name,A=p.map(e=>({"@type":"InvestmentOrDeposit",name:e.title,url:"".concat(i,"/vklady/").concat(e.url),amount:{"@type":"MonetaryAmount",currency:"RUB",value:e.amount&&e.amount.from?e.amount.from:"1"},description:tV(e,k),annualPercentageRate:tH(e)})),R="deposits"===c?tq(v):[],S={...f,brand:{"@type":"Brand",name:s.name},...T&&{aggregateRating:T},...R.length&&{review:R},isRelatedTo:A};if("deposits"===c){let e={"@type":"AggregateOffer",lowPrice:b,highPrice:w,priceCurrency:"RUB",offerCount:p.length};S.offers=e,(null==m?void 0:m.published)&&A.push({"@type":"Quotation",text:(n=m.content,tU()(n,{allowedTags:[],allowedAttributes:{}})),author:{"@type":"Person",name:m.expert.name,jobTitle:m.expert.position,sameAs:"".concat(i,"/navigator/").concat(m.expert.url)}})}return S};var tY=n(56227);let tZ=(e,t)=>{let n=[];return t?tY.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 tQ=n(65993),t$=n.n(tQ);let tG=e=>{var t;let{servicesBlocks:n,offersBlocks:i,bank:a,activeService:l,setActiveService:o,h1:r,description:s,loading:c,region:d,town:u,generalRating:m,quote:v,reviews:p}=e,{env:_}=(0,M.k)(),g=(0,y.usePathname)(),x=(0,f.useRef)(null),w=l?null==i?void 0:null===(t=i[l.serviceName])||void 0===t?void 0:t.data:null,C=(0,f.useCallback)((e,t)=>{o(e),!t&&x.current&&setTimeout(()=>{var e;null===(e=x.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})},100)},[o]);(0,f.useEffect)(()=>{!l&&(null==n?void 0:n[0])&&C(n[0],!0)},[g]);let j=e=>t=>{t.preventDefault(),(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.tab,eventActionText:(0,e_.b)(e.title)}),C(e)};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(b.W2,{className:t$().section,children:[(0,h.jsxs)("div",{className:(0,k.Z)(t$().tiles,{[t$().oneColumn]:1===n.length}),children:[n.map(e=>(0,h.jsxs)("a",{href:"/banki/".concat(a.url,"/").concat(e.link).concat(tZ(d,u)),className:(0,k.Z)(t$().tile,{[t$().short]:n.length<3}),onClick:j(e),children:[(0,h.jsx)("div",{className:(0,k.Z)(t$().background,{[t$().active]:e.title===(null==l?void 0:l.title)})}),(0,h.jsx)("div",{className:t$().imageWrapper,children:e.image&&(0,h.jsx)("img",{src:e.image,alt:e.title,className:t$().image})}),(0,h.jsx)("span",{children:e.title})," ",(0,h.jsx)("span",{className:t$().count,children:e.count})]},e.title)),c&&!n.length&&[1,2,3,4,5].map(e=>(0,h.jsx)(b.Od,{className:t$().tile},e))]}),(0,h.jsx)("div",{ref:x})]}),(0,h.jsx)(tD,{offers:w||null,tags:[],bank:a,loading:c}),Array.isArray(w)&&(null==w?void 0:w.length)>0&&(0,h.jsx)(B.d,{data:tX({baseUrl:_.NEXT_PUBLIC_BASE_URL,assetsUrl:_.NEXT_PUBLIC_S3_ASSETS,items:w,h1:r,description:s,company:a,service:(null==l?void 0:l.serviceName)||"",serviceLink:(null==l?void 0:l.link)||"",generalRating:m,quote:v,reviews:p})})]})},tJ=e=>{let{services:t,loading:n}=e,{env:i}=(0,M.k)(),a=i.NEXT_PUBLIC_BASE_URL,l=n&&!t,o=e=>()=>{(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.tab,eventActionText:(0,e_.b)(e.title),eventLabel:e.link})};return(0,h.jsx)(b.W2,{className:t$().section,children:(0,h.jsxs)("div",{className:(0,k.Z)(t$().tiles,t$().insurance,{[t$().leftAlignment]:3>((null==t?void 0:t.length)||0)&&!l}),children:[null==t?void 0:t.map(e=>(0,h.jsxs)("a",{className:t$().tile,href:"".concat(a,"/").concat(e.link),onClick:o(e),children:[(0,h.jsx)("div",{className:(0,k.Z)(t$().background)}),(0,h.jsx)("div",{className:t$().imageWrapper,children:e.image&&(0,h.jsx)("img",{src:e.image,alt:e.title,className:t$().image})}),(0,h.jsx)("span",{children:e.title})]},e.title)),l&&[1,2,3,4].map(e=>(0,h.jsx)(b.Od,{className:t$().tile},e))]})})},tK=e=>{let{organizationType:t,servicesBlocks:n,servicesLoading:i,bankServices:a,company:l,pageTitle:o,description:r,activeService:s,handleServiceChange:c,region:d,town:u,loading:m,mfoOffers:v,generalRating:p,quote:_,reviews:g}=e,f=t===W.$.bank,y=t===W.$.insurance,x=t===W.$.mfo;return f&&((null==n?void 0:n.length)>0||i)?(0,h.jsx)(tG,{servicesBlocks:n,offersBlocks:a,bank:l,h1:o,description:r||"",activeService:s,setActiveService:c,loading:i,region:d,town:u,generalRating:p,quote:_,reviews:g}):y?(0,h.jsx)(tJ,{services:n,loading:m}):x?(0,h.jsx)(tD,{tags:[],offers:v||null,bank:l,loading:!v&&i}):null},t0=(e,t)=>{let n=(0,f.useRef)(!0),i=(0,f.useRef)(null),a=(0,y.usePathname)();(0,f.useEffect)(()=>{if(n.current){n.current=!1,i.current=a;return}a!==i.current&&(e(),i.current=a)},[...t,e,a])};var t1=n(59306);let t3=async()=>(await (0,t1.t)({url:"/money_data/BankTowns.json"})).data,t2={osago:"osago",kasko:"kasko",mortgage:"mortgage",property:"property"},t6={credit:"credits",card:"cards",deposit:"deposits",autoCredit:"autoCredits",debitCard:"debitCards",microCredit:"microCredit",mortgage:"mortgages"},t4={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"},t5=e=>{let{companyName:t,service:n,region:i,town:a,isMfo:l,onlyTexts:o}=e,r=new URLSearchParams({archive:"0",url:t});return n&&r.set("service",n),i&&r.set("region",i),a&&r.set("town",a),l&&(r.set("mfo","1"),r.set("service","microCredit")),o&&r.set("text","1"),r},t7=async e=>{let t=t5(e),n="/money_data/ServiceDetail.json?".concat(t.toString());return{data:(await (0,t1.t)({url:n})).data||null,service:e.service}},t8=async e=>{let t=t5(e),n="/money_data/ServiceDetail.json?".concat(t.toString());return{data:(await (0,t1.t)({url:n})).data||null,service:e.service}},t9=async e=>{let{id:t,service:n,region:i,town:a,tag:l}=e;if(!n)return;let o=new URLSearchParams({archive:"0",bank:String(t)});if(i&&o.set("region",i),a&&o.set("town",a),l){let e=l.slice(4);o.set("tag",e)}let r="".concat(t4[n],"?").concat(o.toString());return{data:(await (0,t1.t)({url:r})).data||null,service:n}},ne=async()=>{var e;return{data:(null===(e=(await (0,t1.t)({url:"/money_data/ServiceTags.json"})).data)||void 0===e?void 0:e.tags)||null}},nt=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.$.bank;return(await (0,t1.t)({url:"/money_data/Company.json?url=".concat(e,"&type=").concat(t)})).data||null},nn=async e=>(await (0,t1.t)({url:"/api/v1/banks?size=1&bic=".concat(e),options:{isGeo:!0}})).data||null,ni=()=>(0,t1.t)({url:"/money_data/InsuranceTypes.json"}),na=async(e,t,n,i)=>{var a;let l=new URLSearchParams({type:(e===W.$.insurance?"sk":e).toUpperCase(),url:t});n&&l.set("region",n),i&&l.set("town",i);let o="/money_data/ServicesInfo.json?".concat(l.toString());return(null===(a=(await (0,t1.t)({url:o})).data)||void 0===a?void 0:a.services)||[]},nl=async(e,t,n,i)=>{let a=await na(e,t,n,i),l=e===W.$.insurance,o=l?t2:t6;return Object.keys(o).reduce((e,t)=>{var n;let i=o[t],r=a.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[i]={data:null,tags:[],length:s,serviceText:[]},e},{})},no=async e=>{var t,n,i,a;let l;let{type:o,company:r,regionUrl:s,townUrl:c,activeServiceName:d,currentBankServices:u,tag:m}=e;l=u?{...u}:await nl(o,r.url,s,c);let[v]=Object.entries(t6).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 t7(p):await t9(p),g=await t8({...p,onlyTexts:!0}),h=null==_?void 0:null===(t=_.data)||void 0===t?void 0:t[d||""];"credits"===d&&(h=[...h,...null==_?void 0:null===(a=_.data)||void 0===a?void 0:a.credits_online]);let f=null==g?void 0:null===(n=g.data)||void 0===n?void 0:n["".concat(v,"Text")],y=c?f.town_content:f.all_russia_content,x=null==_?void 0:null===(i=_.data)||void 0===i?void 0:i["".concat(v,"Tags")];return l[d]={data:h||null,tags:x||[],length:v in t2?1:(null==h?void 0:h.length)||0,serviceText:y||[]},l},nr=(e,t,n)=>t7({companyName:e,region:t,town:n,isMfo:!0});var ns=n(10611);let nc=async e=>{var t;return(null===(t=(await (0,t1.t)({url:"/money_data/Description.json?url=".concat(e)})).data)||void 0===t?void 0:t.description)||null};var nd=n(58560);let nu=(e,t,n)=>{var i,a,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===(i=e.custom_towns)||void 0===i?void 0:i.length)||0)>0&&e.custom_towns.includes(t.id)||!e.limited_regions&&(null==n?void 0:null===(a=n.bank_towns)||void 0===a?void 0:a[e.bank_id])&&(null==n?void 0:null===(l=n.bank_towns)||void 0===l?void 0:l[e.bank_id].includes(t.id))))},nm=(e,t,n,i)=>Object.entries(e).reduce((e,a)=>{var l;let[o,r]=a,s=(null==r?void 0:null===(l=r.data)||void 0===l?void 0:l.filter(e=>nu(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&&i?i.platformProducts.length+i.nonPlatformProducts.length:c,serviceText:r.serviceText},e},{}),nv=async e=>{var t,n,i;let a=(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 t7({companyName:e.company.url,service:"deposit"}),s=((null==r?void 0:null===(i=r.data)||void 0===i?void 0:i.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(a).concat(l," для физических лиц на сегодня со ставкой до ").concat(Math.max(...s),"%")},np=(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),n_=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,i]=t;return!!i&&e.includes(i)})||[];return t||"about"},ng=async(e,t,n,i,a,l,o,r)=>{let s=z(a,e),c=H(e),d=V(a,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=>i.includes(e.link)),g=(0,U.i7)(e,a,s,!1),h=g.find(e=>np(e,i))||g[0],f=(null==e?void 0:e.name_r)||(null==e?void 0:e.name)||"",x=_?"".concat(_.title," ").concat(f," — Финуслуги"):h.metaTitle||h.title,b=(null==o?void 0:o.name_p)||(null==l?void 0:l.name_p),w=b?" в ".concat(b):"";return a===W.$.insurance&&"ratings"===h.id?"Рейтинг страховой компании ".concat(e.name):(null==_?void 0:_.serviceName)==="deposits"?await nv({company:e,locationText:w,activeTag:r}):(null==_?void 0:_.serviceName)==="debitCards"?"".concat(r?r.name:"Дебетовые карты"," ").concat(f).concat(w," - оформить онлайн заявку на карту на Финуслугах"):(null==_?void 0:_.serviceName)==="kasko"?"".concat(_.title," в ").concat(f).concat(w,": выбрать страховку через Финуслуги"):(null==_?void 0:_.serviceName)==="osago"?"".concat(_.title," в ").concat(f).concat(w,": выбрать страховку на авто через Финуслуги"):c&&"mikrozajmy"===n&&r?"".concat(r.name," от ").concat(f).concat(w,": оформить микрозайм ").concat(w?"":"от ".concat(f)," на Финуслугах"):c&&"mikrozajmy"===n?"Услуги ".concat(f).concat(w,": посмотреть все предложения от МФО ").concat(e.name):c?"Информация о ".concat(e.name_p,": финансовый рейтинг, отзывы клиентов, адреса офисов МФО ").concat(e.name):(null==_?void 0:_.serviceName)==="credits"?"".concat(r?"".concat(r.name," от"):"Кредиты"," ").concat(f).concat(w," — оформить ").concat(r?"":"кредит"," через Финуслуги"):(null==_?void 0:_.serviceName)==="cards"&&r?"".concat(r.name," ").concat(f).concat(w,": оформить кредитку через Финуслуги"):(null==_?void 0:_.serviceName)==="cards"?"Кредитные карты ".concat(f).concat(w,": оформить на официальном сайте Финуслуги"):(null==_?void 0:_.serviceName)==="mortgages"?"".concat(r?"".concat(r.name," от"):"Ипотека"," ").concat(f).concat(w,": подать заявку через Финуслуги"):(null==_?void 0:_.serviceName)==="autoCredits"&&r?"".concat(r.name," от ").concat(f).concat(w,": оформить на официальном сайте Финуслуги"):(null==_?void 0:_.serviceName)==="autoCredits"?"Автокредиты ".concat(f).concat(w,": выбрать и оформить через Финуслуги"):"".concat(x)};var nh=n(48156),nf=n(84004);async function ny(e){var t,n,i,a,l;let o=(await (0,nf.S)()).NEXT_PUBLIC_BASE_URL,[r,s,c]=e||[],d=(null==e?void 0:e.join("/"))||"",u=e.findIndex(e=>e.startsWith("reg_")),m=u>-1?e[u].replace("reg_",""):void 0,v=m?e[u+1]:void 0,p=n_(d),_=null==e?void 0:e.find(e=>e.startsWith("teg_")),g=U._V.includes(r)?W.$.insurance:U.N3.includes(r)?W.$.mfo:W.$.bank,h=g===W.$.bank,f=g===W.$.insurance,x=await nt(s,g);if(!x||!h&&"uslugi"===c||c&&!U.pj.includes("/".concat(c))&&m||c&&!c.includes("reg_")&&!U.jl.includes("/".concat(c)))return(0,y.notFound)();let[b]=Object.entries(U.ys).find(e=>{let[t,n]=e;return n===c})||[],w=await (0,nd.s)(),C=null==w?void 0:null===(n=w.companies)||void 0===n?void 0:null===(t=n.find(e=>{let{url:t}=e;return t===s}))||void 0===t?void 0:t.bic,[j,N,T,k,A,R]=await Promise.allSettled([(0,nd.s)({regions:!0}),nc(d),no({type:g,company:x,regionUrl:m,townUrl:v,activeServiceName:b,tag:_}),t3(),h&&"uslugi"===p?(0,ns.q)(C):null,"uslugi"!==p||f?null:ne()]),S=null,I=null;"fulfilled"===j.status&&j.value&&(I=(null==(S=j.value.regions.find(e=>{let{url:t}=e;return t===m})||null)?void 0:S.towns.find(e=>{let{url:t}=e;return t===v}))||null,S&&!I&&(I=S.towns.find(e=>{let{main:t}=e;return t})||null));let P=(0,nh._)(k,null),B=(0,nh._)(A,null),L=null;if("fulfilled"===T.status&&T.value&&(L=nm(T.value,I,P),(null==B?void 0:B.length)&&(null==L?void 0:L.deposits))){let e=(null==L?void 0:L.deposits.length)+(null==B?void 0:B.length);L.deposits.length=e}let O="",M="fulfilled"===N.status?N.value:"",E=(0,nh._)(R,null),D=null!==(a=(0,U.xB)(L,"").find(e=>d.includes(e.link)))&&void 0!==a?a:null,F=(null==D?void 0:D.serviceTagName)&&null!==(l=null==E?void 0:null===(i=E.data)||void 0===i?void 0:i[null==D?void 0:D.serviceTagName])&&void 0!==l?l:[],z=null==F?void 0:F.find(e=>"teg_".concat(e.url)===_);x&&(O=await ng(x,L,c,d,g,S,I,z));let V=e?"/".concat(d):"";return{title:O,description:M,alternates:{canonical:"".concat(o).concat(V)}}}let nx=()=>{let[e,t]=(0,f.useState)(null),n=(0,y.usePathname)();return t0(()=>{(async()=>{let e=n.split(/[?#]/)[0].split("/").filter(Boolean);t(await ny(e))})()},[n]),e},nb=async(e,t)=>e&&t?(await (0,t1.t)({url:"/api/v1/stats/banks/".concat(e,"/tags?tagId=").concat(t),options:{isHeadlessCMS:!0}})).data:null,nw=()=>(0,t1.t)({url:"/api/v2/product-tags",options:{isHeadlessCMS:!0}}),nC=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(await (0,t1.t)({url:"/api/v1/quotes?quoteUrl=".concat(e,"&published=").concat(t),options:{isHeadlessCMS:!0}})).data||null};var nj=n(65377);let nN={getLayoutData:async e=>(await (0,t1.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,t1.t)({url:"/api/v1/data/page-data?".concat(n),options:{isHeadlessCMS:!0}})).data||null},getPage:async e=>(await (0,t1.t)({url:"/api/v1/sc-page/".concat(e),options:{isHeadlessCMS:!0}})).data||null},nT={async getPageContent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"v2";return(await (0,t1.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,t1.t)({url:"/api/".concat(t,"/widgets/").concat(e),options:{isPageContent:!0}})).data}};var nk=n(30318),nA=n(84620),nR=n(79920),nS=n(21013);async function nI(e){var t,n,i,a,l,o,r,s,c,d,u,m,v,p,_,g,h,f,x;let b,{slug:w,isSection:C,radioType:j,initialPage:N=1,fallbackToAnyNonEmptyRadio:T=!1}=e,{regionUrl:k,townUrl:A,companyUrl:R,pointUrl:S}=(0,nR.jO)(w||[]),I=(0,nR.lw)(w);if(I&&!S)return(0,y.notFound)();let P=null,B="true"===C,L=j||nA.Q.Atm,O=null,M=null,[E,D,F,U,z]=await Promise.allSettled([B||I?null:nT.getWidgetContent("bestOffers","v1"),B||I?null:nN.getPageData("FAQ","adresa"),B||I?null:(0,eS.Jh)((0,eS.K1)({includeCompany:!0}).reviews,1,10),I?(0,nj.O9)(S||""):null,I?nN.getPageData("HomeSupport","homepage-new"):null]);async function V(e){let t=[nk.H9[e]],n=(0,nj.bv)({regionUrl:k,townUrl:A,orgUrl:R,marker:t}),i=await (0,nj.ZK)(n,N);return{dataUrl:n,addressesData:i}}I||(b=await V(L));let H=[nA.Q.Atm,nA.Q.branch,nA.Q.Legal].filter(e=>e!==L);if(T&&B){if(!(null==b?void 0:null===(r=b.addressesData)||void 0===r?void 0:null===(o=r.data)||void 0===o?void 0:o.totalItems)&&H.length){let e=H.shift();e&&(L=e,b=await V(L))}if(!(null==b?void 0:null===(c=b.addressesData)||void 0===c?void 0:null===(s=c.data)||void 0===s?void 0:s.totalItems)&&H.length){let e=H.shift();e&&(L=e,b=await V(L))}}let{dataUrl:q,addressesData:X}=b||{},Y=null,Z=(0,nh._)(F,null)||null;if(Z){let e=(0,eO.c)(Z);Y={scLayoutName:"ReviewsAboutFinuslugi",title:"Отзывы о финансовых организациях",subTitle:"Публикуем честные отзывы, чтобы помочь вам сделать выбор",isActive:!0,custom:{background:""},value:{type:"all",reviews:null==Z?void 0:Z.result.reviews.map(t=>(0,nS.W)([t],e,W.$.bank,t.company)[0]),registerButton:{link:"/otzyvy",text:"Смотреть все отзывы"}}}}let Q=[],$=0;(null==X?void 0:X.data)&&(Q=(null===(d=X.data)||void 0===d?void 0:d.addresses)||[],$=(null===(u=X.data)||void 0===u?void 0:u.maxPage)||0);let G=null;if(R&&(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"),G={label:null===(_=Q[0])||void 0===_?void 0:null===(p=_.company)||void 0===p?void 0:p.name,value:"".concat(e,"_").concat(R)}}(k||A)&&(null===(a=Q[0])||void 0===a?void 0:null===(i=a.town)||void 0===i?void 0:i.name)&&(O={id:Q[0].region_id,url:null===(h=Q[0])||void 0===h?void 0:null===(g=h.town)||void 0===g?void 0:g.region_url},M={id:Q[0].town_id,...null===(f=Q[0])||void 0===f?void 0:f.town});let J=null;if("fulfilled"===U.status&&U.value&&(J=(P=U.value||null).company),I&&P&&(k||A)){O={url:k},M={url:A||""};let e={url:A||"",region_url:k||"",name:"",name_p:""};P.town=e,P.distance_self=null===(x=P.distance_self)||void 0===x?void 0:x.map(t=>({...t,town:e}))}return!I||J&&P||(0,y.notFound)(),{addresses:Q,region:O,town:M,selectedFk:G?[G]:[],maxPage:$,reviews:Y,company:J,address:P,dataUrl:q,faqBlockData:(0,nh._)(D,null),supportBlockData:(null===(l=(0,nh._)(z,null))||void 0===l?void 0:l.value)||null,pageIsSection:B,isDetailPage:I,initRadioType:L,bestOffersData:(0,nh._)(E,null)}}let nP=(e,t,n)=>({slug:(0,nR.ly)({[t?"fk":"sk"]:[e]}).replace("/adresa/","").split("/"),isSection:"true",radioType:n,fallbackToAnyNonEmptyRadio:t});function nB(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 nL=e=>{let{ssr:t,orgType:n,company:i,isInsurance:a,isBank:l,activeTabId:o,setDepositTagsBanksStatsData:r,bankTowns:s,setBankTowns:c,setIsUslugiTab:d,quote:u,setQuote:m,pathname:v}=e,[p,_]=(0,f.useState)(!1),[g,h]=(0,f.useState)(t.insuranceTypes),[y,x]=(0,f.useState)(t.adresaProps),[b,w]=(0,f.useState)(t.reviews),[C,j]=(0,f.useState)(t.reviewsMaxPage),[N,T]=(0,f.useState)(t.serviceTypes),[k,A]=(0,f.useState)(t.companyPeopleRatings),[R,S]=(0,f.useState)(t.tags),I=(0,eS.K1)({type:n,companyIds:[i.id],orderDesc:!0}),P=async()=>{var e,d,p,f,R,P,B,L,O,M,E,D,F,U,z,V,H,q;_(!0);let X=a&&"about"===o&&!g?ni():null,Y=!y&&"about"===o,Z=n===W.$.bank?nA.Q.Atm:nA.Q.branch,Q=Y?nI(nP(i.url,l,Z)):null,$=("ratings"!==o||N)&&("uslugi"!==o||b)?null:(0,eS.Jh)(I.reviews,1,4),G="ratings"!==o||k?null:(0,eS.e9)(I.ratings),J=l&&"uslugi"===o&&!s?t3():null,K="uslugi"===o?nC(v):null,ee="uslugi"===o&&l?ne():null,et=l&&t.bankProviderId&&t.depositTagId?nb(t.bankProviderId,t.depositTagId):null,[en,ei,ea,el,eo,er,es,ec]=await Promise.allSettled([X,Q,$,G,J,K,ee,et]);g||h((null===(O=(0,nh._)(en,null))||void 0===O?void 0:null===(L=O.data)||void 0===L?void 0:L.ins_types)||null),y||x((0,nh._)(ei,null));let ed=(0,nh._)(ea,null);b||w((null==ed?void 0:ed.result.reviews)||null),C||j((null==ed?void 0:ed.result.pages)||0),!N&&ed&&T((0,eO.c)(ed)),k||A((0,nh._)(el,null)),s||c((0,nh._)(eo,null)),u||m((null===(E=(0,nh._)(er,null))||void 0===E?void 0:null===(M=E.content)||void 0===M?void 0:M[0])||null);let eu=(0,nh._)(ec,null),em=(0,nh._)(es,null)||null;S({data:{autoCredit:null!==(D=null==em?void 0:null===(e=em.data)||void 0===e?void 0:e.autoCredit)&&void 0!==D?D:[],card:null!==(F=null==em?void 0:null===(d=em.data)||void 0===d?void 0:d.card)&&void 0!==F?F:[],credit:null!==(U=null==em?void 0:null===(p=em.data)||void 0===p?void 0:p.credit)&&void 0!==U?U:[],debitCard:null!==(z=null==em?void 0:null===(f=em.data)||void 0===f?void 0:f.debitCard)&&void 0!==z?z:[],microCredit:null!==(V=null==em?void 0:null===(R=em.data)||void 0===R?void 0:R.microCredit)&&void 0!==V?V:[],mortgage:null!==(H=null==em?void 0:null===(P=em.data)||void 0===P?void 0:P.mortgage)&&void 0!==H?H:[],deposit:null!==(q=null==eu?void 0:null===(B=eu.tagList)||void 0===B?void 0:B.map(nB))&&void 0!==q?q:[]}}),r(eu),_(!1)};return(0,f.useEffect)(()=>{d("uslugi"===o),P()},[o]),{loading:p,insuranceTypes:g,adresaProps:y,reviews:b,reviewsMaxPage:C,serviceTypes:N,companyPeopleRatings:k,tags:R}};(i=d||(d={})).Fixed="FIXED",i.MaxBalance="MAX_BALANCE",i.Min="MIN",i.MinSum="MIN_SUM",i.NoRestrictions="NO_RESTRICTIONS",i.Started="STARTED",(a=u||(u={})).CustomerChoice="CUSTOMER_CHOICE",a.Fixed="FIXED",a.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 nO={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},nM=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)},nE=(e,t,n)=>{var i;let a;let l=n||nO,o=t.find(t=>Number((0,eB.A)(t))===+e.bic),r=[],s=e.options[0];try{a=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:nM(t.minimumPeriod),term_to:nM(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,nM(t.minimumPeriod)),m=Math.max(m,nM(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(a)&&a[0]?null===(i=a[0])||void 0===i?void 0:i.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?"Предусмотрена":"Не предусмотрена"}}},nD=(e,t,n)=>{var i,a,l,o;let r=String(null!==(l=null==e?void 0:null===(i=e.contentAttributes)||void 0===i?void 0:i.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===(a=e.contentAttributes)||void 0===a?void 0:a.bic)?s:void 0},nF=e=>{var t,n,i,a,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===(a=e.contentAttributes)||void 0===a?void 0:null===(i=a.integration)||void 0===i?void 0:i.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}},nU=(e,t,n)=>{var i,a,l,o;return{...null==e?void 0:e.interest_rate,rates:t.length?t:null!==(l=null===(i=e.interest_rate)||void 0===i?void 0:i.rates)&&void 0!==l?l:[],comment:null!==(o=null===(a=n.contentAttributes)||void 0===a?void 0:a.ratesComment)&&void 0!==o?o:""}},nW=(e,t)=>{var n,i,a,l;let o=null==t?void 0:null===(l=t.interestPayments)||void 0===l?void 0:null===(a=l[0])||void 0===a?void 0:null===(i=a.periods)||void 0===i?void 0:null===(n=i[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}},nz=(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}),nV=e=>{try{var t,n;if(!e)return"";let i=e.legal_entities;if("string"==typeof i){let e=JSON.parse(i);return Array.isArray(e)&&(null===(n=e[0])||void 0===n?void 0:n.name)?e[0].name:""}if(Array.isArray(i))return(null===(t=i[0])||void 0===t?void 0:t.name)||"";return""}catch(e){return""}},nH=(e,t)=>Math.min(e,t.minimumPeriod?nM(t.minimumPeriod):0),nq=(e,t)=>Math.max(e,t.maximumPeriod?nM(t.maximumPeriod):0),nX=(e,t,n)=>{var i,a,l,o,r,s;t.push({from:null,to:null,term:null,amount:null,term_from:n.minimumPeriod?nM(n.minimumPeriod):0,term_to:n.maximumPeriod?nM(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===(i=n.tags)||void 0===i?void 0:i.title)||"",description:(null==n?void 0:null===(a=n.tags)||void 0===a?void 0:a.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})},nY=e=>{let t=[],n=1/0,i=0,a=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=>{nX(e,t,o),n=Math.min(n,o.minimumAmount),i=Math.max(i,o.maximumAmount),a=nH(a,o),l=nq(l,o)})})}),{rates:t,amountFrom:n,amountTo:i,termFrom:a,termTo:l}},nZ=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},nQ=e=>nZ(e)?"Да":"Нет",n$=e=>(null==e?void 0:e.earlyTermination)===_.PreferentialRateForWholeTerm||(null==e?void 0:e.earlyTermination)===_.WithoutRecalculationOfInterest?1:0,nG=e=>n$(e)?"Да":"Нет",nJ=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},nK=e=>nJ(e)?"Возможно":"Невозможно",n0=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},n1=e=>n0(e)?"Возможно":"Невозможно",n3=(e,t,n,i)=>{var a,l,o,r,s,c,d,u,m,v,p,_,g,h,f,y,x,b,w,C,j,N;let T=null!=i?i:nO,k=null===(l=e.attributes)||void 0===l?void 0:null===(a=l.options)||void 0===a?void 0:a[0],A=nV(t),{rates:R,amountFrom:S,amountTo:I,termFrom:P,termTo:B}=nY(null!==(y=null===(o=e.attributes)||void 0===o?void 0:o.options)&&void 0!==y?y:[]),L=nD(e,n,t);return{...T,...e,id:e.id,url:null!==(x=null==e?void 0:null===(r=e.contentAttributes)||void 0===r?void 0:r.url)&&void 0!==x?x:"",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!==(b=null===(d=e.contentAttributes)||void 0===d?void 0:null===(c=d.updatedAt)||void 0===c?void 0:c.slice(0,10))&&void 0!==b?b:"",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:L,logo_mob:L,legal_name:A,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:nF(e),interest_rate:nU(T,R,e),amount:{...T.amount,from:S,to:I},term:{...T.term,from:P,to:B},partial_withdrawal:{...T.partial_withdrawal,has:n0(k),text:n1(k)},interest_payment:nW(T,k),refill:{comment:"",...T.refill,has:nJ(k),text:nK(k)},interest_capitalization:{comment:"",...T.interest_capitalization,has:nZ(k),text:nQ(k)},preferential_termination:{...T.preferential_termination,has:n$(k),text:nG(k)},type:nz(e,k),prolongation:{text:(null==k?void 0:k.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==k?void 0:k.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===(f=e.contentAttributes)||void 0===f?void 0:null===(h=f.integration)||void 0===h?void 0:h.integrationType}}},n2=e=>{var t,n,i,a,l,o,r,s;let{env:c}=(0,M.k)(),[d,u]=(0,f.useState)(e.initialServices),[m,v]=(0,f.useState)(e.initialMfoOffers),[p,_]=(0,f.useState)(e.initialQuote&&e.activeService?{[null===(t=e.activeService)||void 0===t?void 0:t.serviceName]:e.initialQuote}:{}),[g,h]=(0,f.useState)(!1),y="".concat((null===(n=e.region)||void 0===n?void 0:n.url)||"").concat((null===(i=e.town)||void 0===i?void 0:i.url)||""),x=(0,f.useRef)(y);(0,f.useEffect)(()=>{if(e.orgType!==W.$.mfo||!e.isUslugiTab||m&&y===x.current)return;x.current=y;let t=async()=>{var t,n,i,a,l,o,r;let[s,c]=await Promise.allSettled([no({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}),nr(e.company.url,null===(i=e.region)||void 0===i?void 0:i.url,null===(a=e.town)||void 0===a?void 0:a.url)]),d=(0,nh._)(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=>nu(t,e.town)));let m=(0,nh._)(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)};h(!0),t().finally(()=>h(!1))},[e.company,null===(a=e.region)||void 0===a?void 0:a.url,null===(l=e.town)||void 0===l?void 0:l.url,e.isUslugiTab]),(0,f.useEffect)(()=>{var t,n;if(e.orgType!==W.$.bank||!e.isUslugiTab)return;let i=null===(t=e.activeService)||void 0===t?void 0:t.serviceName,a=!!(null==d?void 0:null===(n=d[i])||void 0===n?void 0:n.data),l=!!i&&p[i],o=y!==x.current;if(a&&l&&!o){e.setQuote(l);return}x.current=y,h(!0);let r=e.company.bic;(async()=>{var t,n,a,l,s,c,m,v,p,g;let h=null===(t=e.tag)||void 0===t?void 0:t.slice(4),f=null!==(g=null===(n=(await nw()).data)||void 0===n?void 0:n.content)&&void 0!==g?g:null,y=null==f?void 0:null===(a=f.find(e=>e.url===(null!=h?h:"all_offers")))||void 0===a?void 0:a.id,x=await nn(r),b=null==x?void 0:null===(s=x.content)||void 0===s?void 0:null===(l=s[0])||void 0===l?void 0:l.bankId,[w,C,j]=await Promise.allSettled([no({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:i,currentBankServices:o?null:d,tag:e.tag}),b&&y?nb(b,y):null,nC(e.pathname)]);u((0,nh._)(w,null)),e.setDepositTagsBanksStatsData((0,nh._)(C,null));let N=(null===(p=(0,nh._)(j,null))||void 0===p?void 0:null===(v=p.content)||void 0===v?void 0:v[0])||null;i&&N&&_(e=>({...e,[i]:N})),e.setQuote(N)})().finally(()=>h(!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]);let b=(0,f.useMemo)(()=>d?nm(d,e.town,e.bankTowns):d,[d,e.town,e.bankTowns]);return{organizationServices:(0,f.useMemo)(()=>{var t,n,i,a,l,o;if(!(null==b?void 0:null===(t=b.deposits)||void 0===t?void 0:t.data))return b;let r=[...(null!==(l=null===(n=e.depositTagsBanksStatsData)||void 0===n?void 0:n.platformProducts)&&void 0!==l?l:[]).map(t=>nE(t,[e.company])),...(null!==(o=null===(i=e.depositTagsBanksStatsData)||void 0===i?void 0:i.nonPlatformProducts)&&void 0!==o?o:[]).map(t=>n3(t,e.company,c.NEXT_PUBLIC_S3_ASSETS))];return{...b,deposits:{data:r,tags:null==b?void 0:null===(a=b.deposits)||void 0===a?void 0:a.tags,length:r.length,serviceText:b.deposits.serviceText}}},[b,e.company,e.depositTagsBanksStatsData,c.NEXT_PUBLIC_S3_ASSETS]),mfoOffers:m,servicesLoading:g}},n6=e=>{let t,{baseUrl:n,company:i,orgType:a,generalRating:l}=e,o="banki";a===W.$.mfo&&(o="mfo"),a===W.$.insurance&&(o="kompanija");let r=i.logo||i.logo_mob,s=r&&r.indexOf("http")>=0?{"@type":"ImageObject",url:r}:void 0,c=i.phone||i.maintel,{legal_entities:d}=i;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":a===W.$.insurance?"InsuranceAgency":"BankOrCreditUnion",name:i.name,description:i.short_description,url:"".concat(n,"/").concat(o,"/").concat(i.url),image:s,...c&&{telephone:c},...i.site&&{sameAs:[i.site]},...l&&{aggregateRating:{"@type":"AggregateRating",ratingValue:l,reviewCount:i.reviews_num,ratingCount:i.reviews_num}},...c&&{contactPoint:{"@type":"ContactPoint",telephone:c}},...a!==W.$.insurance&&t&&{address:{"@type":"PostalAddress",addressLocality:t}}}},n4=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},n5=e=>{var t;return null===(t=Object.values(e||{}))||void 0===t?void 0:t.reduce((e,t)=>e+t.length,0)};var n7=n(90852);let n8=e=>{let t=new Date,n=t.getDate(),i=t.getMonth(),a=t.getFullYear(),l=["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][i],o="".concat(n," ").concat(l," ").concat(a,"г.");return e.replace(/{date}/gim,o)},n9=e=>{let t=new Date().getFullYear();return e.replace(/{year}/gim,t.toString())},ie=e=>{if(!e||!e.length)return"";let t=e[0].toLowerCase();return"в"!==t&&"ф"!==t||(0,n7.r)(e[1])?"в":"во"},it=(e,t,n,i,a,l,o,r)=>{let s=e;if(a&&(s=(s=(s=(s=s.replace(/{(bank|mfo)}/gim,a.name)).replace(/{(bank|mfo)_r}/gim,a.name_r||a.name)).replace(/{(bank|mfo)_p}/gim,a.name_p)).replace(/{(bank|mfo)_link}/gim,a.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,"России")),n9(s=n8(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,h=t.name_r,f=t.name_p,y=!1,x=n?"reg_".concat(t.url).concat(t.towns&&t.towns.length>1?"/".concat(n.url):""):"reg_".concat(t.url);n&&(y=i.includes(n.id));let b=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=b,u=w,m=C,v=b,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(ie(d)," ").concat(d)],[/в {place_r}/gim,"".concat(ie(u)," ").concat(u)],[/в {place_p}/gim,"".concat(ie(m)," ").concat(m)],[/в {town}/gim,"".concat(ie(v)," ").concat(v)],[/в {town_r}/gim,"".concat(ie(p)," ").concat(p)],[/в {town_p}/gim,"".concat(ie(_)," ").concat(_)],[/в {region}/gim,"".concat(ie(g)," ").concat(g)],[/в {region_r}/gim,"".concat(ie(h)," ").concat(h)],[/в {region_p}/gim,"".concat(ie(f)," ").concat(f)],[/в {town_dub}/gim,"".concat(ie(b)," ").concat(b)],[/в {town_dub_r}/gim,"".concat(ie(w)," ").concat(w)],[/в {town_dub_p}/gim,"".concat(ie(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,h],[/{region_p}/gim,f],[/{town_dub}/gim,b],[/{town_dub_r}/gim,w],[/{town_dub_p}/gim,C],[/{year}/gim,c.toString()],[/{place_link}/gim,x],[/{max_deposits_rate}/gim,(null==r?void 0:r.toString())||""]].forEach(e=>{let[t,n]=e;s=s.replace(t,n)}),s=n8(s)},ii=(e,t,n,i,a)=>((null==e?void 0:e.title)&&(e.title=it(e.title,t,n,i,a)),(null==e?void 0:e.content)&&e.content.forEach(e=>{e.data&&(e.data.html&&(e.data.html=it(e.data.html,t,n,i,a)),e.data.text&&(e.data.text=it(e.data.text,t,n,i,a)))}),e);var ia=n(33346),il=n(89487),io=n(47270),ir=n(26819),is=n.n(ir),ic=e=>{var t,n,i,a,l;let{env:o}=(0,M.k)(),r=o.NEXT_PUBLIC_BASE_URL,s=o.NEXT_PUBLIC_S3_ASSETS;E(nx());let{orgType:c,generalRating:d,company:u,description:m,ssr:v,bestOffersData:p,supportBlockData:_}=e,g=(0,y.usePathname)(),{region:R,town:S,handleOpenCityModal:I}=(0,D.S)({initialRegion:v.region,initialTown:v.town}),W=g.split("/").find(e=>e.startsWith("teg_")),q=U.yi[c],[X,Y]=(0,f.useState)(v.productsNum),[Z,Q]=(0,f.useState)(v.quote),[$,G]=(0,f.useState)(v.activeTag),J=(0,f.useRef)(!0),K=(0,f.useRef)(null),[ee,et]=(0,f.useState)(v.depositTagsBanksStats),[en,ei]=(0,f.useState)(v.bankTowns),[ea,el]=(0,f.useState)(X>0&&"uslugi"===n_(g)),eo=z(c,u),er=V(c,u),es=H(u),[ec,ed]=(0,f.useState)(v.activeService),{organizationServices:em,mfoOffers:ev,servicesLoading:eg}=n2({isMounted:!J.current,initialServices:v.organizationServices,initialMfoOffers:v.mfoOffers,region:R,town:S,orgType:c,company:u,bankTowns:en,isUslugiTab:ea,activeService:ec,depositTagsBanksStatsData:ee,setDepositTagsBanksStatsData:et,initialQuote:v.quote,setQuote:Q,pathname:g,tag:W}),eh=(0,f.useMemo)(()=>(0,U.xB)(em,s),[em]),ef=es?"mikrozajmy":null===(t=eh[0])||void 0===t?void 0:t.link,ey=(0,U.i7)(u,c,eo,X>0,ef),ex=(0,f.useMemo)(()=>ey.find(e=>np(e,g)),[g,u]),[eb,eC]=(0,f.useState)(ex||ey[0]),ej=(()=>{let e=[{href:"/",label:"Главная"},{label:eo?"Банки":"Каталог ".concat(q.name_rs_full),href:"/".concat(q.catalogUrl)},{label:u.name,href:eo?"/".concat(q.catalogUrl,"/").concat(u.url):""}];if(!eo)return e[e.length-1].href=void 0,e;ec&&e.push({label:ec.title,href:"/".concat(q.catalogUrl,"/").concat(u.url,"/").concat(ec.link)}),$&&ec&&e.push({label:$.tag_name,href:"/".concat(q.catalogUrl,"/").concat(u.url,"/").concat(ec.link,"/teg_").concat($.url)});let t=(null==S?void 0:S.name_p)||(null==R?void 0:R.name_p),n="kompanija"!==q.url&&(ec||"uslugi"===eb.id);return t&&n&&e.push({label:"В ".concat(t)}),e[e.length-1].href=void 0,e})(),{loading:eN,insuranceTypes:eT,adresaProps:ek,reviews:eA,reviewsMaxPage:eS,serviceTypes:eI,companyPeopleRatings:eP,tags:eB}=nL({ssr:v,orgType:c,company:u,isInsurance:er,activeTabId:eb.id,isBank:eo,setDepositTagsBanksStatsData:et,bankTowns:en,setBankTowns:ei,setIsUslugiTab:el,quote:Z,setQuote:Q,pathname:g}),eL=e=>{let{tab:t,service:n}=e,i=(null==n?void 0:n.link)?"/".concat(n.link):t.path,a="kompanija"!==q.url&&(n||"uslugi"===t.id)?tZ(R,S):"";return"/".concat(q.url,"/").concat(u.url).concat(i).concat(a)},eO=e=>{let t=ey.find(t=>t.id===e);if(!t)return;let{search:n,hash:i}=window.location,a=eL({tab:t}),l="".concat(a).concat(n).concat(i);window.history.replaceState(null,"",l),"uslugi"!==t.id&&ed(null),eC(t)},{pageTitle:eM,location:eE}=(0,f.useMemo)(()=>{let e=(null==S?void 0:S.name_p)||(null==R?void 0:R.name_p);return{pageTitle:$&&((null==ec?void 0:ec.serviceName)==="cards"||(null==ec?void 0:ec.serviceName)==="debitCards")?"".concat($.name," ").concat(u.name_r||u.name):$?"".concat($.name," от ").concat(u.name_r||u.name):(null==ec?void 0:ec.serviceName)==="kasko"||(null==ec?void 0:ec.serviceName)==="osago"?"".concat(ec.title," в ").concat(u.name_r||u.name):(null==ec?void 0:ec.serviceName)==="microCredit"?"Предложения ".concat(u.name_r||u.name):ec?"".concat(ec.title," ").concat(u.name_r||u.name):eb.title,location:e}},[null==R?void 0:R.id,null==S?void 0:S.id,ec,u.name_r,u.name,eb.id,$]);(0,f.useEffect)(()=>{let e=n5(em);Y(e),e||eO(ey[0].id)},[em]),(0,f.useEffect)(()=>{if(J.current){J.current=!1;return}if(er||"uslugi"!==eb.id)return;let e="";"uslugi"===eb.id&&es?e="/mikrozajmy":(null==ec?void 0:ec.link)&&(e="/".concat(ec.link));let t=W?"/".concat(W):"",n="uslugi"===eb.id?"":eb.path,i=tZ(R,S),a="/".concat(q.url,"/").concat(u.url).concat(n).concat(e).concat(t).concat(i).concat(window.location.hash);window.history.replaceState(null,"",a)},[ec,null==R?void 0:R.id,null==S?void 0:S.id]),(0,f.useEffect)(()=>{var e,t;let n=null==ec?void 0:ec.serviceTagName,i=n&&null!==(t=null==eB?void 0:null===(e=eB.data)||void 0===e?void 0:e[n])&&void 0!==t?t:[];G(null==i?void 0:i.find(e=>"teg_".concat(e.url)===W))},[ec,eB,W]);let eF=(0,h.jsx)(A.j,{className:is().partnersLink,text:"Вы представитель ".concat(U.yi[c].name_r,"?"),mainPageUrl:U.qL,href:"/partners",target:"_self",iconColor:"white"}),eU={title:"Отзывы о ".concat(u.name_p||u.name),subTitle:"",value:{reviews:(0,nS.W)(eA,eI,c,u),registerButton:{text:"Показать все отзывы",link:"/".concat(q.url,"/").concat(u.url,"/otzyvy"),customClass:is().allReviewsButton,iconRight:(0,h.jsx)(x.IconFdsArrowRightO,{className:is().allReviewsButtonIcon})}}},eW=(0,f.useMemo)(()=>{var e;if((null==ec?void 0:ec.serviceName)!=="deposits")return eA;if(null===(e=v.depositReviews)||void 0===e?void 0:e.length)return v.depositReviews;let t=n4(eI);return t?(eA||[]).filter(e=>e.service_id===t):[]},[null==ec?void 0:ec.serviceName,eI,eA,v.depositReviews]),ez=e=>{(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.tab,eventActionText:(0,e_.b)(e.label)}),eO(e.id)},eV=(()=>{var e,t,n;let i=null==ec?void 0:ec.serviceName,a=null==ec?void 0:ec.serviceTagName;if(!i&&!es)return[];let l=es?"microCredit":i,o=(null==em?void 0:null===(e=em[l])||void 0===e?void 0:e.serviceText)||[],r=(null==eB?void 0:null===(t=eB.data)||void 0===t?void 0:t[a||""])||[],s=tZ(R,S),c=r.filter(e=>!!e.bank_region_page&&("deposits"!==i||e.displayInLinksBlock)&&(!!e.region_page||!R&&!S)).map(e=>{var t;return{id:e.id,name:"DEFAULT"===e.tag_name||"vse_vklady"===e.tag_name?"Все ".concat(null==ec?void 0:null===(t=ec.title_plural)||void 0===t?void 0:t.toLowerCase()):e.tag_name,url:"/".concat(q.url,"/").concat(u.url,"/").concat(null==ec?void 0:ec.link,"/teg_").concat(e.url).concat(s)}}).sort((e,t)=>{let n=e.name.startsWith("Все "),i=t.name.startsWith("Все ");return n&&!i?-1:!n&&i?1:0}),d="Виды ".concat(null==ec?void 0:null===(n=ec.title_r)||void 0===n?void 0:n.toLowerCase()),m=(0,h.jsx)(P,{data:c});return[...o.map(e=>{let t=ii(e,R,S,[],u);return{question:t.title,answer:t.content.map(e=>e.data.html).join("")}}),...c.length>0?[{question:d,answer:m}]:[]]})();return(0,h.jsxs)("div",{className:is().page,children:[(0,h.jsxs)(b.W2,{children:[(0,h.jsx)(w.Oo,{style:{padding:"16px 0"},items:ej,className:is().breadcrumbs}),(0,h.jsx)(B.d,{data:(0,ia.M)(ej,o.NEXT_PUBLIC_BASE_URL,g,eo)}),(0,h.jsx)(B.d,{data:n6({baseUrl:r,company:u,orgType:c,generalRating:d})}),(0,h.jsx)(eR,{uslugiTabUrl:ef,generalRating:d,name_rs:q.name_rs,catalogUrl:q.catalogUrl,company:u,organizationType:c,productsNum:X,onBankFeatureClick:e=>{var t;null===(t=K.current)||void 0===t||t.scrollIntoView({behavior:"smooth",block:"center"}),eO(e)},getTabPath:eL}),(0,h.jsxs)("div",{ref:K,className:is().infoBlock,children:[(0,h.jsxs)("h1",{className:is().title,children:[eM,eE&&ea&&(0,h.jsxs)(h.Fragment,{children:[" в ",(0,h.jsx)("span",{onClick:I,className:is().location,children:eE})]})]}),(0,h.jsx)(w.iR,{className:is().tabsWrapper,options:{spaceBetween:0,slidesPerView:"auto"},children:ey.map(e=>(0,h.jsx)(w.wI,{className:(0,k.Z)(is().tab,{[is().activeTab]:eb.id===e.id}),onClick:()=>ez(e),children:(0,h.jsx)("a",{href:eL({tab:e}),onClick:e=>e.preventDefault(),children:e.label})},e.id))})]})]}),"about"===eb.id&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(eu,{orgType:c,company:u,insuranceTypes:eT,loadingInsuranceTypes:!eT&&eN}),eF,(0,h.jsx)("div",{className:is().mobileBanner,children:(0,h.jsx)(b.W2,{children:(0,h.jsx)(O.X,{organizationType:c,bannerUrl:er?L.Te[u.url]:void 0,compact:es})})}),!!(null==ek?void 0:null===(n=ek.selectedFk)||void 0===n?void 0:n.length)&&(0,h.jsx)(F.default,{...ek,region:R,town:S,needsGeoLocationSync:(null==R?void 0:R.url)!==(null===(i=v.region)||void 0===i?void 0:i.url)||(null==S?void 0:S.url)!==(null===(a=v.town)||void 0===a?void 0:a.url)}),eN&&!(null==ek?void 0:null===(l=ek.selectedFk)||void 0===l?void 0:l.length)&&(0,h.jsx)(b.W2,{children:(0,h.jsx)(b.Od,{className:is().adresaSkeleton})})]}),"reviews"===eb.id&&(0,h.jsx)(eD,{company:u,orgType:c,companyReviews:eA||[],maxPage:eS,serviceTypes:eI,initialPage:e.initialPage}),"ratings"===eb.id&&(0,h.jsxs)(b.W2,{className:is().ratingsContainer,children:[(0,h.jsx)(ew,{company:u,companyPeopleRatings:eP,orgType:c,serviceTypes:eI,loading:!eP&&eN}),eF]}),"uslugi"===eb.id&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(tK,{organizationType:c,servicesBlocks:eh,servicesLoading:eg,bankServices:em,company:u,pageTitle:eM,description:m||"",activeService:ec,handleServiceChange:e=>{if(!e)return;let{search:t,hash:n}=window.location,i=eL({tab:eb,service:e}),a="".concat(i).concat(t).concat(n);window.history.replaceState(null,"",a),ed(e)},region:R,town:S,mfoOffers:ev,generalRating:d,quote:Z,reviews:eW}),Z&&(0,h.jsx)(j.c,{className:is().quote,quote:Z})]}),(0,h.jsx)("div",{className:(0,k.Z)({[is().hiddenSection]:!(eo||"news"===eb.id)}),children:p&&(0,h.jsx)(C.MJ,{tabs:p,baseUrl:o.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(o.NEXT_PUBLIC_S3_ASSETS,"/mp-assets"),dataLayerPush:il.l})}),"uslugi"===eb.id&&(0,h.jsx)(io.X,{...eU,showAllStars:!0,variant:eo?"secondary":"primary",loading:!eA&&eN}),!er&&"uslugi"===eb.id&&!!eV.length&&(0,h.jsx)(N.C,{questions:eV,dataLayerPush:il.l,eventCategory:U.qL}),_&&(0,h.jsx)(T.B,{..._,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 i=n(57437),a=n(2265),l=n(99376);let o=(0,a.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(),h=null===(s=m.get("utm_medium"))||void 0===s?void 0:s.toString(),f=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(),x=(0,a.useMemo)(()=>({pathname:v,utmSource:p,utmMedium:h,utmCampaign:_,utmTerm:f,utmContent:g,clickId:y}),[v,p,h,_,f,g,y]);return(0,i.jsx)(o.Provider,{value:x,children:u})}function s(){let e=(0,a.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 i=n(57437),a=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,a.createContext)(void 0),s="browserId",c="browserSessionId";function d(e){let{children:t}=e,[n,d]=(0,a.useState)({});return(0,a.useEffect)(()=>{var e,t;let{[s]:n,[c]:i,"auth.gtm_customer_id":a,_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!=i?i:o(c))&&void 0!==e?e:o(s),customerId:a,yandexId:r})},[]),(0,i.jsx)(r.Provider,{value:n,children:t})}function u(){let e=(0,a.useContext)(r);if(void 0===e)throw Error("The context of the user params is used outside of the provider");return e}},91286:function(e,t,n){"use strict";n.d(t,{default:function(){return es}});var i=n(57437),a=n(2265),l=n(33145),o=n(99376),r=n(35563),s=n(75461),c=n(20777),d=n(17730),u=n(58560),m=n(60816),v=n(55089),p=n(31893),_=n(80684),g=n(24620),h=n(29248),f=n(8285),y=n(51479),x=n(54550),b=n(439),w=n.n(b);let C=e=>{let{filter:t,formData:n,onChange:l,onShowMore:o,onSubmit:r}=e,c=(0,s.aF)("l"),d=(0,a.useCallback)(e=>{(0,y.D)({eventCategory:f.Rd,eventActionType:y.i.select,eventActionText:(0,x.b)("Тип организации"),eventLabel:(0,x.b)(e.label||"")}),l("orgType",e)},[l]),u=(0,a.useCallback)(e=>{(0,y.D)({eventCategory:f.Rd,eventActionType:y.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,a.useCallback)(()=>{(0,y.D)({eventCategory:f.Rd,eventActionType:y.i.button,eventActionText:(0,x.b)("Все параметры")}),o()},[o]);return(0,i.jsxs)("div",{className:w().filter,children:[(0,i.jsxs)("div",{className:w().selectors,children:[(0,i.jsx)(s.Ph,{className:w().input,size:"m",label:"Тип организации",options:n.orgType,value:t.orgType,onChange:d}),(0,i.jsx)(g.H,{className:w().input,size:"middle",label:"Название организации",options:n.orgName,value:t.orgName||null,onChange:u,multiple:!0,search:!0,isMobile:c})]}),(0,i.jsxs)("div",{className:w().buttons,children:[!(c&&t.ratingType===h.BH.people)&&(0,i.jsx)(s.zx,{iconLeft:(0,i.jsx)(_.IconFdsParametersHorizontalO,{size:22}),className:w().allParametersButton,variant:"secondary",label:"Все параметры",onClick:m}),(0,i.jsx)(s.zx,{className:w().showButton,label:"Показать",onClick:r})]})]})};var j=n(61994),N=n(44197),T=n(91672),k=n(87940),A=n(8081),R=n(31538),S=n(40224),I=n(75599);let P=(e,t)=>{let n=f.O0[t].url,i=e.url;return"/".concat(n,"/").concat(i,"/otzyvy")},B=(e,t,n)=>{let i=P(e,t);(0,y.D)({eventCategory:n||"",eventActionType:y.i.link,eventActionText:String(e.reviews_num),eventLabel:i}),window.open(i,"_blank")};var L=n(62525),O=n.n(L);let M=()=>(0,i.jsxs)("div",{className:O().header,children:[(0,i.jsx)("div",{className:O().title,children:"Пользовательский рейтинг"}),(0,i.jsx)("div",{className:O().subtitle,children:"Пользовательский рейтинг основан на отзывах клиентов банков и финансовых организаций представленых на Финуслугах"})]}),E=e=>{let{item:t,type:n,className:a,baseUrl:l}=e,o="".concat(l,"/").concat(f.O0[n].url,"/").concat(t.url).concat(k.RV.ratings);return(0,i.jsxs)("div",{className:(0,j.Z)(O().mobileCard,a),children:[(0,i.jsxs)("a",{className:O().bank,href:o,target:"_blank",onClick:()=>{(0,y.D)({eventCategory:f.Rd,eventActionType:y.i.offer,eventActionText:(0,x.b)(t.name),eventLabel:o})},rel:"noreferrer",children:[(0,i.jsx)(T.D,{url:t.bic||t.url||"",type:n,width:32,height:32,companyName:t.name}),(0,i.jsx)("label",{children:t.name})]}),(0,i.jsxs)("div",{className:O().cardInfo,children:[(0,i.jsxs)("div",{className:O().cardInfoItem,children:[(0,i.jsxs)("div",{className:O().cardValueWrapper,children:[(0,i.jsx)(_.IconFdsStarF,{className:O().star,size:18}),(0,i.jsx)("p",{className:O().cardValue,children:t.reviews_rating})]}),(0,i.jsx)("p",{children:"Рейтинг"})]}),(0,i.jsxs)("div",{className:O().cardInfoItem,children:[(0,i.jsx)("p",{className:O().cardValue,children:t.reviews_num}),(0,i.jsx)("p",{children:"Все отзывы"})]}),(0,i.jsxs)("div",{className:O().cardInfoItem,children:[(0,i.jsx)("p",{className:O().cardValue,children:t.place}),(0,i.jsx)("p",{children:"Место"})]})]}),(0,i.jsx)(N.j,{className:O().fullInfoLink,mainPageUrl:f.Rd,href:"".concat(l,"/").concat(f.O0[n].url,"/").concat(t.url).concat(k.RV.reviews),target:"_blank",text:"Смотреть отзывы"})]})},D=e=>{let{type:t,data:n,loading:l}=e,{env:o}=(0,v.k)(),[c,d]=(0,a.useState)(4),u=(0,a.useCallback)(()=>{(0,y.D)({eventCategory:f.Rd,eventActionType:y.i.button,eventActionText:(0,x.b)("Показать еще")}),d(c+4)},[c,d]);return(0,i.jsxs)("div",{className:O().mobileOnly,children:[(0,i.jsxs)("div",{className:O().wrapper,children:[(0,i.jsx)(M,{}),n&&(0,i.jsxs)("div",{className:O().mobileBody,children:[n.map((e,n)=>(0,i.jsx)(E,{item:e,type:t,baseUrl:o.NEXT_PUBLIC_BASE_URL,className:(0,j.Z)({collapsed:n>=c})},e.url)),n&&c<n.length&&(0,i.jsx)(s.zx,{className:O().button,size:"s",variant:"secondary",label:"Показать еще",onClick:u,pending:l})]})]}),(0,i.jsxs)(r.W2,{className:O().bannerWrapper,children:[(0,i.jsx)(R.l,{eventCategory:"rating"}),(0,i.jsx)(A.u,{})]})]})},F=e=>{let{type:t,data:n,filter:l,sortOrder:o,setSort:c,loading:d}=e,{env:u}=(0,v.k)(),[m,p]=(0,a.useState)(10),g=(0,a.useCallback)(()=>{(0,y.D)({eventCategory:f.Rd,eventActionType:y.i.button,eventActionText:(0,x.b)("Показать еще")}),p(m+10)},[m,p]),b=[{name:"Место",width:"72px",sortName:""},{name:"Название ".concat(f.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,y.D)({eventCategory:f.Rd,eventActionType:y.i.button,eventActionText:(0,x.b)(e)}),c(t))},C=e=>"".concat(u.NEXT_PUBLIC_BASE_URL,"/").concat(f.O0[t].url,"/").concat(e.url).concat(k.RV.ratings),N=e=>{let t=C(e);(0,y.D)({eventCategory:f.Rd,eventActionType:y.i.offer,eventActionText:(0,x.b)(e.name),eventLabel:t})};return(0,i.jsxs)(r.W2,{className:O().desktopOnly,children:[(0,i.jsx)("div",{style:{width:"100%"},children:(0,i.jsxs)("div",{className:O().wrapper,children:[(0,i.jsx)(M,{}),(0,i.jsxs)("div",{className:O().tableWrapper,children:[(0,i.jsxs)("table",{children:[(0,i.jsx)("colgroup",{children:b.map((e,t)=>{let{width:n}=e;return(0,i.jsx)("col",{style:{width:n,minWidth:1!==t?n:void 0}},t)})}),(0,i.jsx)("thead",{children:(0,i.jsx)("tr",{children:b.map((e,t)=>{let{name:n,sortName:a}=e;return(0,i.jsx)("th",{children:(0,i.jsxs)("div",{className:(0,j.Z)(O().headCell,{[O().sortIcon]:!!a,[O().active]:l===a,[O().asc]:o===h.ib.Asc}),onClick:()=>w(n,a),children:[(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:n}}),a&&(0,i.jsx)(_.IconFdsSortDescendingO,{size:24,className:O().filterIcon})]})},t)})})}),(0,i.jsx)("tbody",{children:n&&n.map((e,n)=>(0,i.jsxs)("tr",{className:(0,j.Z)({collapsed:n>=m}),children:[(0,i.jsx)("td",{className:O().place,children:e.place}),(0,i.jsx)("td",{children:(0,i.jsxs)("a",{className:O().bank,href:C(e),target:"_blank",onClick:()=>N(e),rel:"noreferrer",children:[(0,i.jsx)(T.D,{url:e.bic||e.url,type:t,width:32,height:32,companyName:e.name}),(0,i.jsx)("label",{children:e.name})]})}),(0,i.jsxs)("td",{children:[(0,i.jsx)(_.IconFdsStarF,{className:O().star,size:22}),(0,i.jsx)("label",{children:(0,I.Z)(Number(e.reviews_rating))})]}),(0,i.jsx)("td",{onClick:()=>B(e,t,"rating"),children:(0,i.jsx)("a",{href:P(e,t),className:O().rewardLink,onClick:e=>e.preventDefault(),children:e.reviews_num})})]},e.url))})]}),n&&m<n.length&&(0,i.jsx)("div",{className:O().buttonWrapper,children:(0,i.jsx)(s.zx,{size:"s",variant:"secondary",label:"Показать еще",onClick:g,pending:d})})]})]})}),(0,i.jsxs)("div",{className:O().bannerWrapper,children:[(0,i.jsx)(R.l,{eventCategory:"rating"}),(0,i.jsx)(A.u,{})]})]})},U=e=>{let{filter:t,sortOrder:n,organizations:a,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,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(F,{...u,data:a}),(0,i.jsx)(D,{...u,data:a}),(0,i.jsx)(m.d,{data:(0,S.d)(a,d)})]})};var W=n(24269);let z=e=>{let{type:t,baseUrl:n,filter:i,sortOrder:a,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===W.$.mfo,d=t===W.$.insurance,u="banki";c?u="mfo":d&&(u="kompanija");let m=a===h.ib.Desc;return[...s].sort((e,t)=>{let n=e[i],a=t[i];return m?a-n:n-a}).map((e,t)=>{var i;let a=m?t+1:s.length-t;return{bic:e.bic,reviews_rating:e.reviews_rating,reviews_num:(null==e?void 0:e.reviews_num)||0,name:(null==e?void 0:e.name)||"",logo:null!==(i=null==e?void 0:e.logo_mob)&&void 0!==i?i:"",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:a}})};var V=n(13466),H=n(53120),q=n(49689),X=n(98323),Y=n.n(X);let Z=e=>{let{filter:t,formData:n,isOpen:l,onClose:o,onSubmit:r,onReset:c,onChange:d}=e,u=(0,s.aF)("m"),m=(0,a.useCallback)(e=>{(0,y.D)({eventCategory:f.Rd,eventActionType:y.i.radio,eventActionText:(0,x.b)(e.label||"")}),d("sortBy",e.id)},[d]),v=(0,a.useCallback)(e=>{(0,y.D)({eventCategory:f.Rd,eventActionType:y.i.select,eventActionText:(0,x.b)("Тип организации"),eventLabel:(0,x.b)(e.label||"")}),d("orgType",e)},[d]),p=(0,a.useCallback)(e=>{(0,y.D)({eventCategory:f.Rd,eventActionType:y.i.radio,eventActionText:(0,x.b)(e.label)}),d("filterBy",e.id)},[d]),_=(0,a.useCallback)(e=>{(0,y.D)({eventCategory:f.Rd,eventActionType:y.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]),b=(0,a.useCallback)(()=>{(0,y.D)({eventCategory:f.Rd,eventActionType:y.i.button,eventActionText:(0,x.b)("Сбросить параметры")}),c()},[c]),w=t.orgType.value,C=t.ratingType===h.BH.people,j=t.ratingType===h.BH.people?f.RU:n.filterBy[w],N=(0,i.jsxs)("div",{className:Y().body,children:[(0,i.jsxs)("div",{className:Y().row,children:[(0,i.jsx)(s.Ph,{className:Y().input,size:"m",label:"Тип организации",options:n.orgType,value:t.orgType,onChange:v}),(0,i.jsx)(g.H,{className:Y().input,size:"middle",label:"Название организации",options:n.orgName,value:t.orgName||null,onChange:e=>_(e),multiple:!0,search:!0,isMobile:u})]}),C&&(0,i.jsxs)("div",{className:Y().sortingPanel,children:[(0,i.jsx)("h3",{className:Y().sectionTitle,children:"Фильтр по"}),(0,i.jsx)("div",{className:Y().radiosWrapper,children:j.map((e,n)=>(0,i.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,i.jsx)("div",{className:Y().divider}),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:Y().sortingPanel,children:[(0,i.jsx)("h3",{className:Y().sectionTitle,children:"Сортировать по"}),(0,i.jsx)("div",{className:Y().radiosWrapper,children:n.sortBy.map(e=>(0,i.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,i.jsxs)("div",{className:Y().buttonActions,children:[(0,i.jsx)(s.zx,{size:"m",className:Y().button,onClick:r,children:"Показать"}),(0,i.jsx)(s.zx,{variant:"secondary",size:"m",className:Y().button,onClick:b,children:"Сбросить параметры"})]});return(0,i.jsx)(V.h,{children:u?(0,i.jsx)(q.j,{isOpen:l,onClose:o,footer:T,title:"Все параметры",children:N}):(0,i.jsx)(H.d,{isOpen:l,onClose:o,title:"Все параметры",contentClassName:Y().content,titleAlign:"left",rowTitle:!0,footer:T,width:"600px",children:N})})};var Q=n(90375),$=n(7970),G=n.n($);let J=e=>{var t;let n=e.filter.orgType.value,a=(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,i.jsx)("div",{className:(0,j.Z)(G().wrapper,{[G().visible]:e.isVisible}),children:(0,i.jsx)(Q.p,{className:G().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:a,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)}})})},K=e=>{var t,n;let[i,l]=(0,a.useState)(e),o=(null===(t=i.orgType)||void 0===t?void 0:t.value)===W.$.insurance,r=(null===(n=i.orgType)||void 0===n?void 0:n.value)===W.$.mfo,s=o?"/strahovanie_otzyvy":r?"/polzovatelskij_rejting_mfo":"/polzovatelskij_rejting_bankov";(0,a.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:i,change:c,reset:()=>{c("orgName",null)}}};var ee=n(59339),et=n(33346),en=n(75552),ei=n(84886),ea=n(89487),el=n(3845),eo=n.n(el),er={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},es=e=>{var t;let{initRatingForm:n,serverSelectOptions:_,initOrganizations:g,bestOffersData:b,supportBlockData:w}=e,{env:j}=(0,v.k)(),[N,T]=(0,a.useState)(!0),[k,A]=(0,a.useState)(),[R,S]=(0,a.useState)(g),I=(0,a.useRef)(null),P=(0,o.usePathname)(),{region:B,town:L,handleOpenCityModal:O}=(0,p.S)({initialRegion:null,initialTown:null}),[M,E]=(0,a.useState)(!1),[D,F]=(0,a.useState)(!1),{filter:V,change:H,reset:q}=K(n),X=(0,a.useMemo)(()=>{if(!k)return _;let e=(0,en.l)({data:k,type:V.orgType.value});return(0,ee.u)(e).sort((e,t)=>e.label.localeCompare(t.label))},[V.orgType]),Y=f.kX[V.orgType.value],Q=(0,a.useMemo)(()=>({orgType:f.un,orgName:X,ratingType:Y,sortBy:V.filterBy===h.vA.reviewsNum?f.Fo:f.pm,filterBy:f.pA}),[X,V.orgType.value,V.filterBy]),$=()=>E(e=>!e),G=(null==L?void 0:L.name_p)||(null==B?void 0:B.name_p)||"",el=V.orgType.value===W.$.mfo,es=f.O0[V.orgType.value].name_p,ec=el?es.toUpperCase():es,ed="Пользовательский рейтинг ".concat(ec),eu=[{href:"/",label:"Главная"},{label:"".concat(ed," ").concat(G)}],em=(0,a.useCallback)(()=>{if((0,y.D)({eventCategory:f.Rd,eventActionType:y.i.button,eventActionText:(0,x.b)("Показать")}),E(!1),I.current){let e=I.current.getBoundingClientRect().bottom+window.scrollY;window.scrollTo({top:e,behavior:"smooth"})}},[E]);return(0,a.useEffect)(()=>{var e;(null===(e=V.orgName)||void 0===e?void 0:e.find(e=>{let{value:t}=e;return!_.find(e=>e.value===t)}))&&q()},[_]),(0,a.useEffect)(()=>{T(!0),(async()=>{let e=await (0,u.s)();e&&(A(e),T(!1))})()},[]),(0,a.useEffect)(()=>{var e;if(!k)return;let t=V.orgType.value,n=(0,en.l)({data:k,type:t}).filter(e=>!e.archive);S(z({type:t,baseUrl:j.NEXT_PUBLIC_BASE_URL,filter:V.filterBy,sortOrder:V.sortBy,selectedOrgs:(null===(e=V.orgName)||void 0===e?void 0:e.map(e=>e.value))||[],organizations:n,region:B}))},[k,B,V]),(0,a.useEffect)(()=>{let e=()=>{if(I.current){let e=I.current.offsetTop+I.current.offsetHeight+150;F(window.scrollY>e)}},t=(0,ei.P)(e,100);return e(),window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]),(0,i.jsxs)("div",{className:eo().page,children:[(0,i.jsx)("div",{ref:I,children:(0,i.jsxs)(r.W2,{children:[(0,i.jsxs)("div",{className:eo().topBannerSection,children:[(0,i.jsxs)("div",{className:eo().left,children:[(0,i.jsx)(s.Oo,{style:{paddingTop:"16px"},items:eu}),(0,i.jsx)(m.d,{data:(0,et.M)(eu,j.NEXT_PUBLIC_BASE_URL,P)}),(0,i.jsxs)("div",{className:eo().text,children:[(0,i.jsxs)("h1",{className:eo().title,children:[ed,G?" в ":" по ",(0,i.jsx)("p",{onClick:()=>{(0,y.D)({eventCategory:f.Rd,eventActionType:y.i.link,eventActionText:(0,x.b)(G||"всей России")}),O()},children:G||"всей России"})]}),(0,i.jsxs)("div",{className:eo().subtitle,children:["Собрали актуальную информацию, чтобы вы знали",(0,i.jsx)("br",{className:"desktopOnly"}),"кому доверить финансы"]})]})]}),(0,i.jsx)("div",{className:eo().image,children:(0,i.jsx)(l.default,{src:er,width:486,height:243,alt:"banner image"})})]}),(0,i.jsx)(C,{filter:V,formData:Q,onSubmit:em,onShowMore:$,onChange:H}),(0,i.jsx)(Z,{isOpen:M,filter:V,formData:Q,onChange:H,onClose:$,onSubmit:em,onReset:q})]})}),(0,i.jsx)(J,{isVisible:D,onShowMore:$,filter:V,formData:Q,onChange:H}),(0,i.jsx)(U,{sortOrder:V.sortBy,filter:V.filterBy,region:B,organizations:R,selectedOrgs:(null===(t=V.orgName)||void 0===t?void 0:t.map(e=>e.value))||[],setSortState:e=>H("filterBy",e),setOrderDesc:e=>H("sortBy",e),loading:N,type:V.orgType.value}),b&&(0,i.jsx)(c.MJ,{tabs:b,baseUrl:j.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(j.NEXT_PUBLIC_S3_ASSETS,"/mp-assets"),dataLayerPush:ea.l}),w&&(0,i.jsx)(d.B,{...w,s3Assets:j.NEXT_PUBLIC_S3_ASSETS})]})}},90476:function(e,t,n){"use strict";n.d(t,{default:function(){return X}});var i=n(57437),a=n(35563),l=n(75461),o=n(20777),r=n(17730),s=n(60816),c=n(55089),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,i=0,a=[];return t===m.$.insurance?a=[{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?a=[{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?a=[{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?a=[{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?a=[{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?a=[{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?a=[{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?a=[{r:e.rating.informing,f:.2},{r:e.rating.service,f:.8}]:8===e.filter_id?a=[{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?a=[{r:e.rating.informing,f:.2},{r:e.rating.service,f:.8}]:10===e.filter_id&&(a=[{r:e.rating.informing,f:.8},{r:e.rating.receipt,f:.5},{r:e.rating.payments,f:1},{r:e.rating.service,f:.7}]),a.forEach(function(e){e.r&&(n+=e.r*e.f,i+=e.f)}),n=i?n/i:0},p=e=>{let t,{item:n,baseUrl:i,orgType:a,org:l}=e,o="".concat(i,"/banki/").concat(null==l?void 0:l.url,"/otzyvy/").concat(n.url),r=v(n,a);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":a===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:i}}};var _=n(80684),g=n(61994),h=n(44197),f=n(91672),y=n(56227),x=n(75599),b=n(68671),w=n.n(b);let C=e=>{let{env:t}=(0,c.k)();if(!e.org)return null;let{name_p:n,url:a}=y.yi[e.orgType];return(0,i.jsx)("div",{className:(0,g.Z)(w().wrapper,e.className),children:(0,i.jsxs)("div",{className:w().card,children:[(0,i.jsxs)("div",{className:w().logo,children:[(0,i.jsx)(f.D,{url:e.org.bic||e.org.url||"",type:e.orgType,width:42,height:42,companyName:e.org.name}),(0,i.jsxs)("div",{className:w().ratingBadge,children:[(0,i.jsx)(_.IconFdsStarF,{className:w().star}),(0,x.Z)(e.generalRating||0)]})]}),(0,i.jsx)("div",{className:w().title,children:e.org.name}),(0,i.jsx)("ul",{className:w().list,children:!!e.org.reviews_num&&(0,i.jsxs)("li",{children:[e.org.reviews_num," отзывов"]})}),(0,i.jsx)(h.j,{className:w().fullInfoLink,mainPageUrl:t.NEXT_PUBLIC_BASE_URL,href:"/".concat(a,"/").concat(e.org.url),target:"_self",text:"Подробнее о ".concat(n)})]})})};var j=n(71938),N=n(16205),T=n.n(N);let k=e=>{let{data:t,organization:n,organizationType:a}=e;if(t.length)return(0,i.jsxs)("div",{className:T().answers,children:[(0,i.jsx)("p",{className:T().title,children:"Ответ организации"}),(0,i.jsx)("div",{className:T().list,children:t.map(e=>{let{id:t,answer:l,published:o,user:{company_name:r}}=e;return(0,i.jsxs)("div",{className:T().answer,children:[(0,i.jsx)("div",{className:T().logo,children:(0,i.jsx)(f.D,{url:(null==n?void 0:n.bic)||(null==n?void 0:n.url)||"",type:a,width:48,height:48,companyName:null==n?void 0:n.name})}),(0,i.jsxs)("div",{className:T().content,children:[(0,i.jsxs)("div",{className:T().info,children:[(0,i.jsx)("p",{className:T().name,children:r}),(0,i.jsx)("p",{className:T().date,children:(0,j.p6)(o,{format:"dd.MM.yyyy HH:mm"}).toString()})]}),(0,i.jsx)("div",{className:T().text,dangerouslySetInnerHTML:{__html:l}})]})]},t)})})]})};var A=n(94073),R=n(68583),S=n.n(R);let I=e=>{var t,n,a,o,r,s;let c=v(e.review,e.orgType);return(0,i.jsxs)("div",{className:S().wrapper,children:[(0,i.jsxs)("div",{className:S().header,children:[(0,i.jsxs)("div",{className:S().user,children:[(0,i.jsx)(A.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===(a=e.org)||void 0===a?void 0:a.logo_mob,fkType:e.orgType,type:"ReviewDetail",fkName:null===(o=e.org)||void 0===o?void 0:o.name}),(0,i.jsxs)("div",{className:S().info,children:[(0,i.jsx)("div",{className:S().name,children:e.review.first_name}),(0,i.jsxs)("div",{className:S().rating,children:[(0,x.Z)(c),(0,i.jsx)("div",{className:S().ratingStars,children:[1,2,3,4,5].map(e=>(0,i.jsx)(_.IconFdsStarF,{size:18,className:(0,g.Z)(S().star,{[S().gray]:e>Number(c)})},e))})]})]})]}),(0,i.jsx)("div",{className:S().date,children:(0,j.p6)(e.review.published).toString()})]}),(0,i.jsxs)("div",{className:S().tags,children:[!!(null===(r=e.org)||void 0===r?void 0:r.name)&&(0,i.jsx)(l.Vp,{label:null===(s=e.org)||void 0===s?void 0:s.name,variant:"secondary"}),!!e.review.serviceName&&(0,i.jsx)(l.Vp,{label:e.review.serviceName,variant:"secondary"}),e.review.answers.length>0&&(0,i.jsx)(l.Vp,{label:"Есть ответ банка",variant:"purple"})]}),(0,i.jsxs)("div",{className:S().text,children:[(0,i.jsx)("div",{className:S().title,children:e.review.title}),(0,i.jsx)("div",{className:S().review,children:e.review.review})]}),(0,i.jsx)(k,{data:e.review.answers,organization:e.org,organizationType:e.orgType})]})},P=(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 B=n(51479),L=n(54550),O=n(83756),M=n.n(O);let E=e=>{var t,n,a,o,r,s;let c=P(e.review,e.orgType,e.org);return(0,i.jsxs)("a",{className:M().wrapper,href:c,target:"_self",onClick:()=>{(0,B.D)({eventCategory:u.lD,eventActionType:B.i.offer,eventActionText:(0,L.b)(e.review.title||""),eventLabel:(0,L.b)(c||"")})},children:[(0,i.jsxs)("div",{className:M().header,children:[(0,i.jsxs)("div",{className:M().user,children:[(0,i.jsx)(A.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===(a=e.org)||void 0===a?void 0:a.logo_mob,fkType:e.orgType,forceMobile:!0,fkName:null===(o=e.org)||void 0===o?void 0:o.name}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:M().name,children:e.review.first_name}),(0,i.jsxs)("div",{className:M().rating,children:[(0,x.Z)(v(e.review,e.orgType)),(0,i.jsx)(_.IconFdsStarF,{size:16,className:M().ratingIcon})]})]})]}),(0,i.jsx)("div",{className:M().date,children:(0,j.p6)(e.review.published).toString()})]}),(0,i.jsxs)("div",{className:M().tags,children:[!!(null===(r=e.org)||void 0===r?void 0:r.name)&&(0,i.jsx)(l.Vp,{size:"s",label:null===(s=e.org)||void 0===s?void 0:s.name,variant:"secondary"}),!!e.review.serviceName&&(0,i.jsx)(l.Vp,{size:"s",label:e.review.serviceName,variant:"secondary"}),e.review.answers.length>0&&(0,i.jsx)(l.Vp,{size:"s",label:"Есть ответ банка",variant:"purple"})]}),(0,i.jsxs)("div",{className:M().text,children:[(0,i.jsx)("div",{className:M().title,children:e.review.title}),(0,i.jsx)("div",{className:M().review,children:e.review.review}),(0,i.jsxs)("div",{className:M().footer,children:[(0,i.jsx)("button",{className:M().readMore,children:"Читать полностью"}),e.review.answers.length>0&&(0,i.jsxs)("button",{className:M().commentsIcon,children:[(0,i.jsx)(_.IconFdsChatDotsCircleO,{size:20}),(0,i.jsx)("p",{className:M().commentsLabel,children:e.review.answers.length})]})]})]})]})};var D=n(90852),F=n(1413),U=n.n(F);let W=e=>{var t,n,a,l,o;let{env:r}=(0,c.k)(),s=r.NEXT_PUBLIC_BASE_URL,d=(0,D.r)((null===(t=e.org)||void 0===t?void 0:t.name_p)||"")?"об":"о",{name_p:u,url:v}=y.yi[e.orgType],p=e.orgType===m.$.insurance?"/otzyvy/".concat(null===(n=e.org)||void 0===n?void 0:n.url):"/".concat(v,"/").concat(null===(a=e.org)||void 0===a?void 0:a.url,"/otzyvy");return(0,i.jsxs)("div",{className:(0,g.Z)(U().wrapper,e.className),children:[(0,i.jsx)("h2",{className:U().title,dangerouslySetInnerHTML:{__html:"Другие отзывы".concat((null===(l=e.org)||void 0===l?void 0:l.name_p)?" ".concat(d,"&nbsp;").concat(null===(o=e.org)||void 0===o?void 0:o.name_p):"")}}),(0,i.jsx)("div",{className:U().list,children:e.companyReviews.map(t=>(0,i.jsx)(E,{review:t,...e},t.id))}),!!e.org&&(0,i.jsx)(h.j,{className:U().fullInfoLink,iconColor:"white",mainPageUrl:s,href:p,target:"_self",text:"Смотреть все отзывы о ".concat(u)})]})},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 V=n(89487),H=n(77919),q=n.n(H),X=e=>{let{orgType:t,review:n,companyReviews:v,org:_,generalRating:g,orgPlace:h,mostPopularServiceName:f,bestOffersData:y,supportBlockData:x}=e,{env:b}=(0,c.k)(),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):"",k={[m.$.mfo]:"mfo",[m.$.insurance]:"sk"}[t]||null;return(0,i.jsxs)("div",{className:q().page,children:[(0,i.jsxs)(a.W2,{children:[(0,i.jsx)(l.Oo,{style:{padding:"16px 0"},items:[{href:"/",label:"Главная"},{label:"Отзывы о ".concat(w.name_p),href:"/otzyvy".concat(k?"?type=".concat(k):"")},{label:"Отзыв".concat(N).concat(T)}]}),(0,i.jsx)("h1",{className:"collapsed",children:n.title}),(0,i.jsxs)("div",{className:q().wrapper,children:[(0,i.jsxs)("div",{className:q().main,children:[(0,i.jsx)(I,{review:n,org:_,orgType:t}),(0,i.jsx)(W,{org:_,companyReviews:v,orgType:t,className:"desktopOnly"})]}),(0,i.jsxs)("div",{className:q().sidebar,children:[(0,i.jsx)(d.l,{eventCategory:u.lD}),(0,i.jsx)(C,{org:_,orgType:t,generalRating:g,orgPlace:h,mostPopularServiceName:f})]})]}),(0,i.jsx)(W,{org:_,companyReviews:v,orgType:t,className:"mobileOnly"}),(0,i.jsx)(s.d,{data:p({item:n,baseUrl:b.NEXT_PUBLIC_BASE_URL,orgType:t,org:_})}),(0,i.jsx)("div",{style:{height:"32px"}})]}),y&&(0,i.jsx)(o.MJ,{tabs:y,baseUrl:b.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(b.NEXT_PUBLIC_S3_ASSETS,"/mp-assets"),dataLayerPush:V.l}),x&&(0,i.jsx)(r.B,{...x,s3Assets:b.NEXT_PUBLIC_S3_ASSETS})]})}},48156:function(e,t,n){"use strict";function i(e,t){return(null==e?void 0:e.status)==="fulfilled"?e.value:t}n.d(t,{_:function(){return i}})},90852:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});let i=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"}},36534:function(e){e.exports={container:"BankOffersListModal_container__PfSK7",drawer:"BankOffersListModal_drawer__Z7PZE",mobilePopup:"BankOffersListModal_mobilePopup__WHzfF",title:"BankOffersListModal_title__b_ARD",logoContainer:"BankOffersListModal_logoContainer__3fDet",logo:"BankOffersListModal_logo__rZ_xy",buttons:"BankOffersListModal_buttons__M3SpQ",button:"BankOffersListModal_button__zMG8M"}},43435:function(e){e.exports={content:"BankOffersListModalContent_content__2Oxer",listTitle:"BankOffersListModalContent_listTitle__Cak4D",list:"BankOffersListModalContent_list__ISXUi",row:"BankOffersListModalContent_row__x9L5h",rowValue:"BankOffersListModalContent_rowValue__PIZau",rowLabel:"BankOffersListModalContent_rowLabel__1_JdH",actualDateOffer:"BankOffersListModalContent_actualDateOffer__p0lek"}},65993:function(e){e.exports={section:"BankServices_section__bRF_x",tiles:"BankServices_tiles__43klK",background:"BankServices_background__A7c4v",imageWrapper:"BankServices_imageWrapper__D4DZ3",tile:"BankServices_tile__y3Au5",short:"BankServices_short__Ef_PG",count:"BankServices_count__0o7nL",active:"BankServices_active__uOsfR",image:"BankServices_image__4h9Jf",insurance:"BankServices_insurance__EGlFo",leftAlignment:"BankServices_leftAlignment__FOWbc",reviewsContainer:"BankServices_reviewsContainer__lebSM"}},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",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"}},27573:function(e){e.exports={container:"TextOverflow_container__rvWn1",containerOverflow:"TextOverflow_containerOverflow___p0L6",containerOpen:"TextOverflow_containerOpen__oiBpc",button:"TextOverflow_button__ZjFyE"}},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"}},62525:function(e){e.exports={wrapper:"PeopleRatings_wrapper__b_6Gq",mobileBody:"PeopleRatings_mobileBody__3RzRG",header:"PeopleRatings_header__5oJvs",title:"PeopleRatings_title__ONKMs",subtitle:"PeopleRatings_subtitle__ZcFjR",tableWrapper:"PeopleRatings_tableWrapper__B0hbw",bank:"PeopleRatings_bank__J0YKc",rewardLink:"PeopleRatings_rewardLink__sh4_6",value:"PeopleRatings_value__Jp80W",active:"PeopleRatings_active__daWo4",headCell:"PeopleRatings_headCell__1btWY",sortIcon:"PeopleRatings_sortIcon__X27nV",filterIcon:"PeopleRatings_filterIcon__oecFp",asc:"PeopleRatings_asc__bM37i",star:"PeopleRatings_star__ZTx0H",place:"PeopleRatings_place__1NJsV",buttonWrapper:"PeopleRatings_buttonWrapper__dg13V",mobileCard:"PeopleRatings_mobileCard__QykHw",open:"PeopleRatings_open__v4DXe",button:"PeopleRatings_button__nvWVU",row:"PeopleRatings_row__wS_p9",withPlace:"PeopleRatings_withPlace___Q3vL",hidden:"PeopleRatings_hidden__T7vxr",fullInfoLink:"PeopleRatings_fullInfoLink__5uW6i",cardInfo:"PeopleRatings_cardInfo__ec_Er",cardInfoItem:"PeopleRatings_cardInfoItem__Bmoxm",cardValueWrapper:"PeopleRatings_cardValueWrapper__zXMCg",cardValue:"PeopleRatings_cardValue__mb7iP",desktopOnly:"PeopleRatings_desktopOnly__r5GzF",bannerWrapper:"PeopleRatings_bannerWrapper__ys4N2",mobileOnly:"PeopleRatings_mobileOnly__mt8gY"}},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,2489,8514,3031,5073,3544,5501,207,7654,5979,1727,2874,3389,8547,2477,2587,1746,2926,1888,3562,3400,2971,2117,1744],function(){return e(e.s=26313)}),_N_E=e.O()}]);