(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4633],{26313:function(e,t,n){Promise.resolve().then(n.bind(n,80920)),Promise.resolve().then(n.bind(n,91286)),Promise.resolve().then(n.bind(n,90476))},80920:function(e,t,n){"use strict";n.d(t,{default:function(){return ii}});var i,a,l,o,r,s,c,d,u,m,v,p,_,g,h=n(57437),f=n(80684),y=n(35563),x=n(75461),b=n(20777),w=n(74157),C=n(59226),j=n(17730),N=n(61994),T=n(99376),k=n(2265),A=n(44197),R=n(27648),S=n(69286),I=n.n(S);let B=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 P=n(60816),L=n(97358),O=n(41858),M=n(55089);let E=e=>{(0,k.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)),G=e=>{let{title:t,description:n,historyRowsRef:i,visibleItems:a=3,onShowAll:l,onShowMore:o,isPopup:r=!1}=e,s=(0,x.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,N.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:f.IconFdsChevronDownSmallO,iconColor:"light",className:Z().showMoreButton,onClick:o,widthMaxContent:!0})]}):null},$=["finuslugi.ru","inguru.dev","moex.com"],J=e=>e.includes("//")&&!$.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,k.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?f.IconFdsChevronUpSmallO:f.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,k.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,N.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?f.IconFdsChevronUpSmallO:f.IconFdsChevronDownSmallO,iconColor:"light",className:Z().showMoreLegalEntitiesButton,onClick:()=>a(e=>!e),widthMaxContent:!0})]}):null},en=e=>{let{insuranceTypes:t,loadingInsuranceTypes:n}=e,i=(0,x.aF)("m"),[a,l]=(0,k.useState)(!1),o=(0,k.useRef)(null),[r,s]=(0,k.useState)(!1);return((0,k.useEffect)(()=>{o.current&&s(o.current.scrollHeight>(i?164:76))},[t,i]),n)?(0,h.jsx)(y.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,N.Z)(Z().typesList,{[Z().expanded]:a}),children:null==t?void 0:t.map(e=>(0,h.jsx)(x.Vp,{label:e.name,variant:"secondary",className:(0,N.Z)(Z().insuranceTypeTag,{[Z().insuranceTypeTagFull]:a})},e.id))}),r&&(0,h.jsx)(A.j,{text:a?"Свернуть":"Показать еще",mainPageUrl:U.qL,icon:a?f.IconFdsChevronUpSmallO:f.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,k.useRef)();(0,k.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,k.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,x.aF)("m"),o=V(t,n),r=t===W.$.bank,s="История ".concat(r?"банка":"компании"),c=(0,k.useRef)(null),[d,u]=(0,k.useState)(s),[m,v]=(0,k.useState)(!1),[p,_]=(0,k.useState)(!1),[g,b]=(0,k.useState)(3),[w,C]=(0,k.useState)(3);ea(c,l?b:C),ei(m);let j=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))}):[],B=[s];R.length>0&&B.push(ec),S.length>0&&B.push(ed);let P=d===s,M=e=>{u(e),_(!0)},E=T&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(G,{title:s,description:T,historyRowsRef:c,onShowAll:()=>v(!0),onShowMore:()=>{Array.isArray(T)&&b(T.length)},visibleItems:l?g:w,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)(y.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:B.map(e=>(0,h.jsx)(A.j,{text:e,mainPageUrl:U.qL,icon:f.IconFdsChevronRightO,iconColor:"white",className:Z().bankInfoTabButton,onClick:()=>M(e),widthMaxContent:!0},e))}),(0,h.jsx)(X.j,{title:d,isOpen:p,onClose:()=>{_(!1),b(3)},full:P,className:Z().historyPopup,children:P?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,N.Z)(Z().historyRows,Z().historyModal),children:T&&Q(T)})})]}),(0,h.jsxs)("div",{className:(0,N.Z)(Z().bottomRow,j&&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,N.Z)(eh().starWrapper,{[eh().mid]:e.mid,[eh().big]:e.big,[eh().partial]:!e.total}),children:[(0,h.jsx)(f.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,x.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,y._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)(y.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,y._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)(f.IconFdsArrowUpRightSmallO,{size:26,className:eh().rowItemIcon})]})},a)}),e.loading&&[1,2,3,4,5].map(e=>(0,h.jsx)(y.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,x.aF)("xs"),{reviews_num:v}=l,p=o===W.$.bank,_=o===W.$.insurance,g=v>0?"".concat(v," ").concat((0,y._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)(f.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,y._6)(r,"продукт","продукта","продуктов")," на сайте"),color:"#E7F9F6",icon:(0,h.jsx)(f.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)(f.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)(f.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 eB=n(31408),eP=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,eP.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,k.useState)(a),[d,u]=(0,k.useState)(o),[m,v]=(0,k.useState)("newest"),[p,_]=(0,k.useState)(!1),[g,b]=(0,k.useState)(l>1),w=(0,k.useRef)(r),[C,j]=(0,k.useState)(!a.length),[N,T]=(0,k.useState)(!1),A=(0,k.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,B=(0,eS.K1)({type:i,companyIds:[n.id],sort:"high-rating"===m||"low-rating"===m?"rating":void 0,orderDesc:!I}),P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;w.current=e,1===e?j(!0):T(!0),(0,eS.Jh)(B.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)||[]]),b(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(()=>{j(!1),T(!1)})};(0,k.useEffect)(()=>{if(A.current&&a.length>0){A.current=!1;return}P()},[i,n.id,m]);let L=(0,k.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)(y.W2,{children:(0,h.jsx)("div",{className:eE().sortWrapper,children:(0,h.jsxs)(x.Lt,{opened:p,placement:"bottom-end",onToggle:_,children:[(0,h.jsxs)(x.WA,{onClick:()=>_(!0),className:eE().activeSortOption,children:[I?(0,h.jsx)(f.IconFdsSortAscendingO,{className:eE().sortIcon}):(0,h.jsx)(f.IconFdsSortDescendingO,{className:eE().sortIcon}),S]}),(0,h.jsx)(x.Nv,{children:eI.map(e=>(0,h.jsx)(x.Qr,{label:e.label,onClick:()=>L(e)},e.value))})]})})}),(0,h.jsx)(eB.j,{reviews:R,onShowMore:g?()=>{P(w.current+1)}:void 0,loading:C,loadingMore:N,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,N.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,N.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;return 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&&(o+=" <span style='font-family: var(--font-family-primary)'>".concat("string"==typeof n?n:"₽","</span>")),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:"<span style='font-family: var(--font-family-primary)'>₽</span>",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"},eG={background:"var(--color-blue-200)"},e$={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:eG}),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,y._6)(l,"дня","дней","дней"))}),n.push({text:"Кредитные карты",color:"orange"}),1===e.online_application.unplatform_banks?n.push({text:"Подача заявки на Финуслугах",style:e$}):e1(e)&&3!==e.online_application.type?n.push({text:"Подача заявки на сайте банка",style:e$}):3!==e.online_application.type&&n.push({text:"Открытие в банке",style:e$}),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,y._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:eG}:{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 e="Бесплатно"===s?s:eY(+s.replace(/[^\d]/g,""));e&&o.push({name:eQ.SERVICE_COST,label:"Обслуживание в год",value:eK(e)})}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:e$}):3!==e.online_application.type&&r.push({text:"Открытие в банке",style:e$}),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,y._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,y._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,T.usePathname)(),c=H(n),d=(0,k.useMemo)(()=>({offerId:String(t.id),order:a,category:"mfo"}),[t.id,a]),u=function(e,t){let[n,i]=(0,k.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,k.useEffect)(()=>{if(!e)return;let t=new URL(e);(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,k.useMemo)(()=>1===t.online_application.commercial,[t.online_application]),g=(0,k.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]),y=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,N.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,eP.A)(n)||n.url,type:(0,eP.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)(f.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)(x.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)(x.zx,{className:tt().offerButton,variant:"secondary",size:"xs",label:"Подробнее",as:"a",target:"_blank",href:g,onClick:y(g)}),_&&(0,h.jsx)(x.zx,{rel:"nofollow",size:"xs",label:"Оформить",as:"a",target:"_blank",href:u,onClick:y(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,k.useState)(t),[s,c]=(0,k.useState)(!1),d=(0,k.useRef)(null);return(0,k.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,N.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,N.Z)(tc().actualDateOffer,tc().actualDate),children:a})]})},tp=e=>{if(e<12)return"".concat(e," ").concat((0,y._6)(e,"месяц","месяца","месяцев"));let t=Math.floor(e/12),n=e%12;return"".concat(t," ").concat((0,y._6)(t,"год","года","лет"))+(n?" ".concat(n," ").concat((0,y._6)(n,"месяц","месяца","месяцев")):"")},t_=e=>{let t=Math.floor(e/12),n=e%12,i=[];return t>0&&i.push(t.toString(),(0,y._6)(t,"года","лет","лет")),n>0&&i.push(n.toString(),(0,y._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 B=null===(m=e.registration_procedure)||void 0===m?void 0:m.text;B&&R.push({title:"Порядок оформления кредита",text:B});let P=null===(v=e.income_proof)||void 0===v?void 0:v.text;P&&R.push({title:"Подтверждение дохода",text:P});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,y._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:x,first_year_cost_comment:b}=e,w=tb({first_year_cost:f,second_year_cost:x,first_year_cost_comment:b});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,B=null===(d=e.first_payment)||void 0===d?void 0:d.to;tf(I)&&w.push({title:"Первый взнос",text:B?"".concat(I," - ").concat(B,"%"):"от ".concat(I,"%")});let P=null===(u=e.vehicle_type)||void 0===u?void 0:u.text;P&&w.push({title:"Тип транпортного средства",text:P});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 x=[],b=null===(t=e.period)||void 0===t?void 0:t.from,w=null===(n=e.period)||void 0===n?void 0:n.to;tf(b)&&tf(w)&&x.push({title:"Срок займа",text:"".concat(b," - ").concat(w," ").concat((0,y._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;x.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)&&x.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)&&x.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&&x.push({title:"Цель кредита",text:I});let B=null===(u=e.application_term)||void 0===u?void 0:u.text;B&&R.push({title:"Срок выдачи",text:B});let P=null===(m=e.form)||void 0===m?void 0:m.text;P&&R.push({title:"Форма выдачи",text:P});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:x,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),tB=n.n(tI);let tP=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,x.aF)("l"),{mounted:o}=(0,ta.b)({opened:!!t});if(!o)return null;let r=eq(t),s=(0,h.jsxs)("div",{className:tB().buttons,children:[(0,h.jsx)(x.zx,{onClick:()=>i(t,!0),variant:"secondary",className:tB().button,children:"Все условия по ".concat(r.dative)}),(0,h.jsx)(x.zx,{onClick:()=>i(t),variant:"primary",className:tB().button,children:"Подать заявку"})]}),{params:c,terms:d}=tS(t),u=[{title:"Сайт",text:tP(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:tB().mobilePopup,contentClassName:tB().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:tB().title,children:[(0,h.jsx)("div",{className:tB().logoContainer,children:(0,h.jsx)(eC.D,{url:(0,eP.A)(n)||n.url,type:(0,eP.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:tB().drawer,contentClassName:tB().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,k.useState)(null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0),[d,u]=(0,k.useState)(r?s:6),m=a&&!n,v=s-d,[p,_]=(0,k.useState)(null),g=(0,k.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]),b=(0,k.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})},[_]),w="Ещё ".concat(v," ").concat((0,y._6)(v,...tE));return(0,k.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)(y.W2,{className:(0,N.Z)(tM().productsListContainer,{[tM().containerTopPadding]:!r}),children:[!r&&!m&&(0,h.jsx)("h2",{className:tM().title,children:"Найдено ".concat(s," ").concat((0,y._6)(null!=s?s:0,...tE))}),!r&&m&&(0,h.jsx)(y.Od,{className:tM().title}),(0,h.jsxs)("div",{id:"offers-list",className:(0,N.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:b,isLastOfferOnPage:r?void 0:n,isWhiteCard:r},e.id)}),m&&[1,2,3].map(e=>(0,h.jsx)(y.Od,{className:(0,N.Z)(tM().skeleton,{[tM().mfoSkeleton]:r})},e))]}),!r&&v>0&&(0,h.jsx)("div",{className:tM().showMore,children:(0,h.jsx)(x.zx,{variant:"purple",appearance:"ghost",label:w,onClick:()=>u(d+6),className:tM().showMoreButton,disabled:d>=s,iconRight:(0,h.jsx)(f.IconFdsChevronDownSmallO,{className:tM().showMoreIcon})})})]}),(0,h.jsx)(tL,{offer:p?{...p,bank_name:i.name}:null,bank:i,handleDetails:g,onClose:()=>{_(null)}})]})},tF=(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}},tU=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)||""},tW=e=>{var t;let{baseUrl:n,assetsUrl:i,items:a,h1:l,description:o,company:r,service:s,serviceLink:c,generalRating:d}=e,u=a.filter(e=>0===e.archive),m=String(r.bic).padStart(9,"0"),v="".concat(n,"/banki/").concat(r.url,"/").concat(c),p="".concat(i,"/mp-assets/images/bank/logo-brandmark-bank-").concat(m,".svg"),_={"@context":"https://schema.org","@type":"Product",name:l,description:o,url:v},{low:g,high:h}=tF(u,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:f,high:y}=tF(u,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:x,high:b}=tF(u,e=>e.credit_limit_from,e=>e.credit_limit_to),w={"@type":"BankOrCreditUnion",name:r.name,url:tU(r),image:p,...Array.isArray(r.legal_entities)&&(null===(t=r.legal_entities[0])||void 0===t?void 0:t.legal_address)&&{address:{"@type":"PostalAddress",addressLocality:r.legal_entities[0].legal_address}}},C=d&&r.reviews_num?{"@type":"AggregateRating",ratingValue:d,ratingCount:r.reviews_num,bestRating:5,worstRating:1}:void 0;if("debitCards"===s){let e="".concat(n,"/banki/").concat(r.url);return{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":e,name:r.name,url:e,logo:p},{"@type":"Product","@id":v,name:l,brand:{"@id":e},description:o,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:f,highPrice:y,offerCount:u.length,url:v,availability:"https://schema.org/InStock"},isRelatedTo:{"@type":"ItemList",name:"Предложения дебетовых карт",itemListElement:u.map((t,i)=>{var a,l,o,r;return{"@type":"ListItem",position:i+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(n,"/debetovye_karty/").concat(t.url),availability:"https://schema.org/InStock"}}}})}}]}}if("cards"===s)return{..._,image:p,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:x,highPrice:b,offerCount:u.length,url:v,offers:u.map(e=>({"@type":"CreditCard",url:"".concat(n,"/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:w}))},...d&&{aggregateRating:C}};if("credits"===s)return{..._,image:p,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:g,highPrice:h,offerCount:u.length,url:v,offers:u.map(e=>{let{amount:t,period:i,interest_rate:a}=e,l="".concat(n,"/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"}},...i&&i.to&&{loanTerm:{"@type":"QuantitativeValue",value:i.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:w,potentialAction:{"@type":"Action",name:"Подробнее",url:l}}})},...d&&{aggregateRating:C}};if("mortgages"===s)return{..._,image:p,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:g,highPrice:h,offerCount:u.length,url:v,offers:u.map(e=>{let{amount:t,period:i,interest_rate:a}=e,l="".concat(n,"/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"}},...i&&i.to&&{loanTerm:{"@type":"QuantitativeValue",value:i.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:w,potentialAction:{"@type":"Action",name:"Подробнее",url:l}}})},...d&&{aggregateRating:C}};let j=u.map(e=>{var t,i,a;return{"@type":"InvestmentOrDeposit",name:e.title,url:"".concat(n,"/vklady/").concat(e.url),amount:{"@type":"MonetaryAmount",currency:"RUB",value:e.amount&&e.amount.from?e.amount.from:"1"},description:e.short_description||"",annualPercentageRate:"".concat(((null===(a=e.interest_rate)||void 0===a?void 0:null===(i=a.rates)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.rate)||0).toString(),"%")}}),N={..._,brand:{"@type":"Brand",name:r.name},isRelatedTo:j};if("deposits"===s){let e={"@type":"AggregateOffer",lowPrice:f,highPrice:y,priceCurrency:"RUB",offerCount:u.length};N.offers=e}return N};var tz=n(56227);let tV=(e,t)=>{let n=[];return t?tz.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 tH=n(65993),tq=n.n(tH);let tX=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}=e,{env:v}=(0,M.k)(),p=(0,T.usePathname)(),_=(0,k.useRef)(null),g=l?null==i?void 0:null===(t=i[l.serviceName])||void 0===t?void 0:t.data:null,f=(0,k.useCallback)((e,t)=>{o(e),!t&&_.current&&setTimeout(()=>{var e;null===(e=_.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})},100)},[o]);(0,k.useEffect)(()=>{!l&&(null==n?void 0:n[0])&&f(n[0],!0)},[p]);let x=e=>t=>{t.preventDefault(),(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.tab,eventActionText:(0,e_.b)(e.title)}),f(e)};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(y.W2,{className:tq().section,children:[(0,h.jsxs)("div",{className:(0,N.Z)(tq().tiles,{[tq().oneColumn]:1===n.length}),children:[n.map(e=>(0,h.jsxs)("a",{href:"/banki/".concat(a.url,"/").concat(e.link).concat(tV(d,u)),className:(0,N.Z)(tq().tile,{[tq().short]:n.length<3}),onClick:x(e),children:[(0,h.jsx)("div",{className:(0,N.Z)(tq().background,{[tq().active]:e.title===(null==l?void 0:l.title)})}),(0,h.jsx)("div",{className:tq().imageWrapper,children:e.image&&(0,h.jsx)("img",{src:e.image,alt:e.title,className:tq().image})}),(0,h.jsx)("span",{children:e.title})," ",(0,h.jsx)("span",{className:tq().count,children:e.count})]},e.title)),c&&!n.length&&[1,2,3,4,5].map(e=>(0,h.jsx)(y.Od,{className:tq().tile},e))]}),(0,h.jsx)("div",{ref:_})]}),(0,h.jsx)(tD,{offers:g||null,tags:[],bank:a,loading:c}),Array.isArray(g)&&(null==g?void 0:g.length)>0&&(0,h.jsx)(P.d,{data:tW({baseUrl:v.NEXT_PUBLIC_BASE_URL,assetsUrl:v.NEXT_PUBLIC_S3_ASSETS,items:g,h1:r,description:s,company:a,service:(null==l?void 0:l.serviceName)||"",serviceLink:(null==l?void 0:l.link)||"",generalRating:m})})]})},tY=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)(y.W2,{className:tq().section,children:(0,h.jsxs)("div",{className:(0,N.Z)(tq().tiles,tq().insurance,{[tq().leftAlignment]:3>((null==t?void 0:t.length)||0)&&!l}),children:[null==t?void 0:t.map(e=>(0,h.jsxs)("a",{className:tq().tile,href:"".concat(a,"/").concat(e.link),onClick:o(e),children:[(0,h.jsx)("div",{className:(0,N.Z)(tq().background)}),(0,h.jsx)("div",{className:tq().imageWrapper,children:e.image&&(0,h.jsx)("img",{src:e.image,alt:e.title,className:tq().image})}),(0,h.jsx)("span",{children:e.title})]},e.title)),l&&[1,2,3,4].map(e=>(0,h.jsx)(y.Od,{className:tq().tile},e))]})})},tZ=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}=e,_=t===W.$.bank,g=t===W.$.insurance,f=t===W.$.mfo;return _&&((null==n?void 0:n.length)>0||i)?(0,h.jsx)(tX,{servicesBlocks:n,offersBlocks:a,bank:l,h1:o,description:r||"",activeService:s,setActiveService:c,loading:i,region:d,town:u,generalRating:p}):g?(0,h.jsx)(tY,{services:n,loading:m}):f?(0,h.jsx)(tD,{tags:[],offers:v||null,bank:l,loading:!v&&i}):null},tQ=(e,t)=>{let n=(0,k.useRef)(!0),i=(0,k.useRef)(null),a=(0,T.usePathname)();(0,k.useEffect)(()=>{if(n.current){n.current=!1,i.current=a;return}a!==i.current&&(e(),i.current=a)},[...t,e,a])};var tG=n(59306);let t$=async()=>(await (0,tG.t)({url:"/money_data/BankTowns.json"})).data,tJ={osago:"osago",kasko:"kasko",mortgage:"mortgage",property:"property"},tK={credit:"credits",card:"cards",deposit:"deposits",autoCredit:"autoCredits",debitCard:"debitCards",microCredit:"microCredit",mortgage:"mortgages"},t0={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"},t1=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},t3=async e=>{let t=t1(e),n="/money_data/ServiceDetail.json?".concat(t.toString());return{data:(await (0,tG.t)({url:n})).data||null,service:e.service}},t2=async e=>{let t=t1(e),n="/money_data/ServiceDetail.json?".concat(t.toString());return{data:(await (0,tG.t)({url:n})).data||null,service:e.service}},t6=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(t0[n],"?").concat(o.toString());return{data:(await (0,tG.t)({url:r})).data||null,service:n}},t4=async()=>{var e;return{data:(null===(e=(await (0,tG.t)({url:"/money_data/ServiceTags.json"})).data)||void 0===e?void 0:e.tags)||null}},t5=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.$.bank;return(await (0,tG.t)({url:"/money_data/Company.json?url=".concat(e,"&type=").concat(t)})).data||null},t7=async e=>(await (0,tG.t)({url:"/api/v1/banks?size=1&bic=".concat(e),options:{isGeo:!0}})).data||null,t8=()=>(0,tG.t)({url:"/money_data/InsuranceTypes.json"}),t9=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,tG.t)({url:o})).data)||void 0===a?void 0:a.services)||[]},ne=async(e,t,n,i)=>{let a=await t9(e,t,n,i),l=e===W.$.insurance,o=l?tJ:tK;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},{})},nt=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 ne(o,r.url,s,c);let[v]=Object.entries(tK).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 t3(p):await t6(p),g=await t2({...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 tJ?1:(null==h?void 0:h.length)||0,serviceText:y||[]},l},nn=(e,t,n)=>t3({companyName:e,region:t,town:n,isMfo:!0});var ni=n(10611);let na=async e=>{var t;return(null===(t=(await (0,tG.t)({url:"/money_data/Description.json?url=".concat(e)})).data)||void 0===t?void 0:t.description)||null};var nl=n(58560);let no=(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))))},nr=(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=>no(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},{}),ns=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 t3({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),"%")},nc=(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),nd=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"},nu=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,T.notFound)();let _=u.find(e=>i.includes(e.link)),g=(0,U.i7)(e,a,s,!1),h=g.find(e=>nc(e,i))||g[0],f=(null==e?void 0:e.name_r)||(null==e?void 0:e.name)||"",y=_?"".concat(_.title," ").concat(f," — Финуслуги"):h.metaTitle||h.title,x=(null==o?void 0:o.name_p)||(null==l?void 0:l.name_p),b=x?" в ".concat(x):"";return a===W.$.insurance&&"ratings"===h.id?"Рейтинг страховой компании ".concat(e.name):(null==_?void 0:_.serviceName)==="deposits"?await ns({company:e,locationText:b,activeTag:r}):(null==_?void 0:_.serviceName)==="debitCards"?"".concat(r?r.name:"Дебетовые карты"," ").concat(f).concat(b," - оформить онлайн заявку на карту на Финуслугах"):(null==_?void 0:_.serviceName)==="kasko"?"".concat(_.title," в ").concat(f).concat(b,": выбрать страховку через Финуслуги"):(null==_?void 0:_.serviceName)==="osago"?"".concat(_.title," в ").concat(f).concat(b,": выбрать страховку на авто через Финуслуги"):c&&"mikrozajmy"===n&&r?"".concat(r.name," от ").concat(f).concat(b,": оформить микрозайм ").concat(b?"":"от ".concat(f)," на Финуслугах"):c&&"mikrozajmy"===n?"Услуги ".concat(f).concat(b,": посмотреть все предложения от МФО ").concat(e.name):c?"Информация о ".concat(e.name_p,": финансовый рейтинг, отзывы клиентов, адреса офисов МФО ").concat(e.name):(null==_?void 0:_.serviceName)==="credits"?"".concat(r?"".concat(r.name," от"):"Кредиты"," ").concat(f).concat(b," — оформить ").concat(r?"":"кредит"," через Финуслуги"):(null==_?void 0:_.serviceName)==="cards"&&r?"".concat(r.name," ").concat(f).concat(b,": оформить кредитку через Финуслуги"):(null==_?void 0:_.serviceName)==="cards"?"Кредитные карты ".concat(f).concat(b,": оформить на официальном сайте Финуслуги"):(null==_?void 0:_.serviceName)==="mortgages"?"".concat(r?"".concat(r.name," от"):"Ипотека"," ").concat(f).concat(b,": подать заявку через Финуслуги"):(null==_?void 0:_.serviceName)==="autoCredits"&&r?"".concat(r.name," от ").concat(f).concat(b,": оформить на официальном сайте Финуслуги"):(null==_?void 0:_.serviceName)==="autoCredits"?"Автокредиты ".concat(f).concat(b,": выбрать и оформить через Финуслуги"):"".concat(y)};var nm=n(48156),nv=n(84004);async function np(e){var t,n,i,a,l;let o=(await (0,nv.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=nd(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,y=await t5(s,g);if(!y||!h&&"uslugi"===c||c&&!U.pj.includes("/".concat(c))&&m||c&&!c.includes("reg_")&&!U.jl.includes("/".concat(c)))return(0,T.notFound)();let[x]=Object.entries(U.ys).find(e=>{let[t,n]=e;return n===c})||[],b=await (0,nl.s)(),w=null==b?void 0:null===(n=b.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,[C,j,N,k,A,R]=await Promise.allSettled([(0,nl.s)({regions:!0}),na(d),nt({type:g,company:y,regionUrl:m,townUrl:v,activeServiceName:x,tag:_}),t$(),h&&"uslugi"===p?(0,ni.q)(w):null,"uslugi"!==p||f?null:t4()]),S=null,I=null;"fulfilled"===C.status&&C.value&&(I=(null==(S=C.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 B=(0,nm._)(k,null),P=(0,nm._)(A,null),L=null;if("fulfilled"===N.status&&N.value&&(L=nr(N.value,I,B),(null==P?void 0:P.length)&&(null==L?void 0:L.deposits))){let e=(null==L?void 0:L.deposits.length)+(null==P?void 0:P.length);L.deposits.length=e}let O="",M="fulfilled"===j.status?j.value:"",E=(0,nm._)(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)===_);y&&(O=await nu(y,L,c,d,g,S,I,z));let V=e?"/".concat(d):"";return{title:O,description:M,alternates:{canonical:"".concat(o).concat(V)}}}let n_=()=>{let[e,t]=(0,k.useState)(null),n=(0,T.usePathname)();return tQ(()=>{(async()=>{let e=n.split(/[?#]/)[0].split("/").filter(Boolean);t(await np(e))})()},[n]),e},ng=async(e,t)=>e&&t?(await (0,tG.t)({url:"/api/v1/stats/banks/".concat(e,"/tags?tagId=").concat(t),options:{isHeadlessCMS:!0}})).data:null,nh=()=>(0,tG.t)({url:"/api/v2/product-tags",options:{isHeadlessCMS:!0}}),nf=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(await (0,tG.t)({url:"/api/v1/quotes?quoteUrl=".concat(e,"&published=").concat(t),options:{isHeadlessCMS:!0}})).data||null};var ny=n(65377);let nx={getLayoutData:async e=>(await (0,tG.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,tG.t)({url:"/api/v1/data/page-data?".concat(n),options:{isHeadlessCMS:!0}})).data||null},getPage:async e=>(await (0,tG.t)({url:"/api/v1/sc-page/".concat(e),options:{isHeadlessCMS:!0}})).data||null},nb={async getPageContent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"v2";return(await (0,tG.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,tG.t)({url:"/api/".concat(t,"/widgets/").concat(e),options:{isPageContent:!0}})).data}};var nw=n(30318),nC=n(84620),nj=n(79920),nN=n(21013);async function nT(e){var t,n,i,a,l,o,r,s,c,d,u,m,v,p,_,g,h,f,y;let x,{slug:b,isSection:w,radioType:C,initialPage:j=1,fallbackToAnyNonEmptyRadio:N=!1}=e,{regionUrl:k,townUrl:A,companyUrl:R,pointUrl:S}=(0,nj.jO)(b||[]),I=(0,nj.lw)(b);if(I&&!S)return(0,T.notFound)();let B=null,P="true"===w,L=C||nC.Q.Atm,O=null,M=null,[E,D,F,U,z]=await Promise.allSettled([P||I?null:nb.getWidgetContent("bestOffers","v1"),P||I?null:nx.getPageData("FAQ","adresa"),P||I?null:(0,eS.Jh)((0,eS.K1)({includeCompany:!0}).reviews,1,10),I?(0,ny.O9)(S||""):null,I?nx.getPageData("HomeSupport","homepage-new"):null]);async function V(e){let t=[nw.H9[e]],n=(0,ny.bv)({regionUrl:k,townUrl:A,orgUrl:R,marker:t}),i=await (0,ny.ZK)(n,j);return{dataUrl:n,addressesData:i}}I||(x=await V(L));let H=[nC.Q.Atm,nC.Q.branch,nC.Q.Legal].filter(e=>e!==L);if(N&&P){if(!(null==x?void 0:null===(r=x.addressesData)||void 0===r?void 0:null===(o=r.data)||void 0===o?void 0:o.totalItems)&&H.length){let e=H.shift();e&&(L=e,x=await V(L))}if(!(null==x?void 0:null===(c=x.addressesData)||void 0===c?void 0:null===(s=c.data)||void 0===s?void 0:s.totalItems)&&H.length){let e=H.shift();e&&(L=e,x=await V(L))}}let{dataUrl:q,addressesData:X}=x||{},Y=null,Z=(0,nm._)(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,nN.W)([t],e,W.$.bank,t.company)[0]),registerButton:{link:"/otzyvy",text:"Смотреть все отзывы"}}}}let Q=[],G=0;(null==X?void 0:X.data)&&(Q=(null===(d=X.data)||void 0===d?void 0:d.addresses)||[],G=(null===(u=X.data)||void 0===u?void 0:u.maxPage)||0);let $=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"),$={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=(B=U.value||null).company),I&&B&&(k||A)){O={url:k},M={url:A||""};let e={url:A||"",region_url:k||"",name:"",name_p:""};B.town=e,B.distance_self=null===(y=B.distance_self)||void 0===y?void 0:y.map(t=>({...t,town:e}))}return!I||J&&B||(0,T.notFound)(),{addresses:Q,region:O,town:M,selectedFk:$?[$]:[],maxPage:G,reviews:Y,company:J,address:B,dataUrl:q,faqBlockData:(0,nm._)(D,null),supportBlockData:(null===(l=(0,nm._)(z,null))||void 0===l?void 0:l.value)||null,pageIsSection:P,isDetailPage:I,initRadioType:L,bestOffersData:(0,nm._)(E,null)}}let nk=(e,t,n)=>({slug:(0,nj.ly)({[t?"fk":"sk"]:[e]}).replace("/adresa/","").split("/"),isSection:"true",radioType:n,fallbackToAnyNonEmptyRadio:t});function nA(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 nR=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,k.useState)(!1),[g,h]=(0,k.useState)(t.insuranceTypes),[f,y]=(0,k.useState)(t.adresaProps),[x,b]=(0,k.useState)(t.reviews),[w,C]=(0,k.useState)(t.reviewsMaxPage),[j,N]=(0,k.useState)(t.serviceTypes),[T,A]=(0,k.useState)(t.companyPeopleRatings),[R,S]=(0,k.useState)(t.tags),I=(0,eS.K1)({type:n,companyIds:[i.id],orderDesc:!0}),B=async()=>{var e,d,p,k,R,B,P,L,O,M,E,D,F,U,z,V,H,q;_(!0);let X=a&&"about"===o&&!g?t8():null,Y=!f&&"about"===o,Z=n===W.$.bank?nC.Q.Atm:nC.Q.branch,Q=Y?nT(nk(i.url,l,Z)):null,G=("ratings"!==o||j)&&("uslugi"!==o||x)?null:(0,eS.Jh)(I.reviews,1,4),$="ratings"!==o||T?null:(0,eS.e9)(I.ratings),J=l&&"uslugi"===o&&!s?t$():null,K="uslugi"===o?nf(v):null,ee="uslugi"===o&&l?t4():null,et=l&&t.bankProviderId&&t.depositTagId?ng(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,nm._)(en,null))||void 0===O?void 0:null===(L=O.data)||void 0===L?void 0:L.ins_types)||null),f||y((0,nm._)(ei,null));let ed=(0,nm._)(ea,null);x||b((null==ed?void 0:ed.result.reviews)||null),w||C((null==ed?void 0:ed.result.pages)||0),!j&&ed&&N((0,eO.c)(ed)),T||A((0,nm._)(el,null)),s||c((0,nm._)(eo,null)),u||m((null===(E=(0,nm._)(er,null))||void 0===E?void 0:null===(M=E.content)||void 0===M?void 0:M[0])||null);let eu=(0,nm._)(ec,null),em=(0,nm._)(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===(k=em.data)||void 0===k?void 0:k.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===(B=em.data)||void 0===B?void 0:B.mortgage)&&void 0!==H?H:[],deposit:null!==(q=null==eu?void 0:null===(P=eu.tagList)||void 0===P?void 0:P.map(nA))&&void 0!==q?q:[]}}),r(eu),_(!1)};return(0,k.useEffect)(()=>{d("uslugi"===o),B()},[o]),{loading:p,insuranceTypes:g,adresaProps:f,reviews:x,reviewsMaxPage:w,serviceTypes:j,companyPeopleRatings:T,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 nS={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},nI=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)},nB=(e,t,n)=>{var i;let a;let l=n||nS,o=t.find(t=>Number((0,eP.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:nI(t.minimumPeriod),term_to:nI(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,nI(t.minimumPeriod)),m=Math.max(m,nI(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?"Предусмотрена":"Не предусмотрена"}}},nP=(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},nL=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}},nO=(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:""}},nM=(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}},nE=(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}),nD=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""}},nF=(e,t)=>Math.min(e,t.minimumPeriod?nI(t.minimumPeriod):0),nU=(e,t)=>Math.max(e,t.maximumPeriod?nI(t.maximumPeriod):0),nW=(e,t,n)=>{var i,a,l,o,r,s;t.push({from:null,to:null,term:null,amount:null,term_from:n.minimumPeriod?nI(n.minimumPeriod):0,term_to:n.maximumPeriod?nI(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})},nz=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=>{nW(e,t,o),n=Math.min(n,o.minimumAmount),i=Math.max(i,o.maximumAmount),a=nF(a,o),l=nU(l,o)})})}),{rates:t,amountFrom:n,amountTo:i,termFrom:a,termTo:l}},nV=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},nH=e=>nV(e)?"Да":"Нет",nq=e=>(null==e?void 0:e.earlyTermination)===_.PreferentialRateForWholeTerm||(null==e?void 0:e.earlyTermination)===_.WithoutRecalculationOfInterest?1:0,nX=e=>nq(e)?"Да":"Нет",nY=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},nZ=e=>nY(e)?"Возможно":"Невозможно",nQ=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},nG=e=>nQ(e)?"Возможно":"Невозможно",n$=(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:nS,k=null===(l=e.attributes)||void 0===l?void 0:null===(a=l.options)||void 0===a?void 0:a[0],A=nD(t),{rates:R,amountFrom:S,amountTo:I,termFrom:B,termTo:P}=nz(null!==(y=null===(o=e.attributes)||void 0===o?void 0:o.options)&&void 0!==y?y:[]),L=nP(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:nL(e),interest_rate:nO(T,R,e),amount:{...T.amount,from:S,to:I},term:{...T.term,from:B,to:P},partial_withdrawal:{...T.partial_withdrawal,has:nQ(k),text:nG(k)},interest_payment:nM(T,k),refill:{comment:"",...T.refill,has:nY(k),text:nZ(k)},interest_capitalization:{comment:"",...T.interest_capitalization,has:nV(k),text:nH(k)},preferential_termination:{...T.preferential_termination,has:nq(k),text:nX(k)},type:nE(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}}},nJ=e=>{var t,n,i,a,l,o,r,s;let{env:c}=(0,M.k)(),[d,u]=(0,k.useState)(e.initialServices),[m,v]=(0,k.useState)(e.initialMfoOffers),[p,_]=(0,k.useState)(e.initialQuote&&e.activeService?{[null===(t=e.activeService)||void 0===t?void 0:t.serviceName]:e.initialQuote}:{}),[g,h]=(0,k.useState)(!1),f="".concat((null===(n=e.region)||void 0===n?void 0:n.url)||"").concat((null===(i=e.town)||void 0===i?void 0:i.url)||""),y=(0,k.useRef)(f);(0,k.useEffect)(()=>{if(e.orgType!==W.$.mfo||!e.isUslugiTab||m&&f===y.current)return;y.current=f;let t=async()=>{var t,n,i,a,l,o,r;let[s,c]=await Promise.allSettled([nt({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}),nn(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,nm._)(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=>no(t,e.town)));let m=(0,nm._)(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,k.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=f!==y.current;if(a&&l&&!o){e.setQuote(l);return}y.current=f,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 nh()).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:"vse_vkladi")))||void 0===a?void 0:a.id,x=await t7(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([nt({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?ng(b,y):null,nf(e.pathname)]);u((0,nm._)(w,null)),e.setDepositTagsBanksStatsData((0,nm._)(C,null));let N=(null===(p=(0,nm._)(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 x=(0,k.useMemo)(()=>d?nr(d,e.town,e.bankTowns):d,[d,e.town,e.bankTowns]);return{organizationServices:(0,k.useMemo)(()=>{var t,n,i,a,l,o;if(!(null==x?void 0:null===(t=x.deposits)||void 0===t?void 0:t.data))return x;let r=[...(null!==(l=null===(n=e.depositTagsBanksStatsData)||void 0===n?void 0:n.platformProducts)&&void 0!==l?l:[]).map(t=>nB(t,[e.company])),...(null!==(o=null===(i=e.depositTagsBanksStatsData)||void 0===i?void 0:i.nonPlatformProducts)&&void 0!==o?o:[]).map(t=>n$(t,e.company,c.NEXT_PUBLIC_S3_ASSETS))];return{...x,deposits:{data:r,tags:null==x?void 0:null===(a=x.deposits)||void 0===a?void 0:a.tags,length:r.length,serviceText:x.deposits.serviceText}}},[x,e.company,e.depositTagsBanksStatsData,c.NEXT_PUBLIC_S3_ASSETS]),mfoOffers:m,servicesLoading:g}},nK=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}}}},n0=e=>{var t;return null===(t=Object.values(e||{}))||void 0===t?void 0:t.reduce((e,t)=>e+t.length,0)};var n1=n(90852);let n3=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)},n2=e=>{let t=new Date().getFullYear();return e.replace(/{year}/gim,t.toString())},n6=e=>{if(!e||!e.length)return"";let t=e[0].toLowerCase();return"в"!==t&&"ф"!==t||(0,n1.r)(e[1])?"в":"во"},n4=(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,"России")),n2(s=n3(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(n6(d)," ").concat(d)],[/в {place_r}/gim,"".concat(n6(u)," ").concat(u)],[/в {place_p}/gim,"".concat(n6(m)," ").concat(m)],[/в {town}/gim,"".concat(n6(v)," ").concat(v)],[/в {town_r}/gim,"".concat(n6(p)," ").concat(p)],[/в {town_p}/gim,"".concat(n6(_)," ").concat(_)],[/в {region}/gim,"".concat(n6(g)," ").concat(g)],[/в {region_r}/gim,"".concat(n6(h)," ").concat(h)],[/в {region_p}/gim,"".concat(n6(f)," ").concat(f)],[/в {town_dub}/gim,"".concat(n6(b)," ").concat(b)],[/в {town_dub_r}/gim,"".concat(n6(w)," ").concat(w)],[/в {town_dub_p}/gim,"".concat(n6(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=n3(s)},n5=(e,t,n,i,a)=>((null==e?void 0:e.title)&&(e.title=n4(e.title,t,n,i,a)),(null==e?void 0:e.content)&&e.content.forEach(e=>{e.data&&(e.data.html&&(e.data.html=n4(e.data.html,t,n,i,a)),e.data.text&&(e.data.text=n4(e.data.text,t,n,i,a)))}),e);var n7=n(33346),n8=n(89487),n9=n(47270),ie=n(26819),it=n.n(ie),ii=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(n_());let{orgType:c,generalRating:d,company:u,description:m,ssr:v,bestOffersData:p,supportBlockData:_}=e,g=(0,T.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,k.useState)(v.productsNum),[Z,Q]=(0,k.useState)(v.quote),[G,$]=(0,k.useState)(v.activeTag),J=(0,k.useRef)(!0),K=(0,k.useRef)(null),[ee,et]=(0,k.useState)(v.depositTagsBanksStats),[en,ei]=(0,k.useState)(v.bankTowns),[ea,el]=(0,k.useState)(X>0&&"uslugi"===nd(g)),eo=z(c,u),er=V(c,u),es=H(u),[ec,ed]=(0,k.useState)(v.activeService),{organizationServices:em,mfoOffers:ev,servicesLoading:eg}=nJ({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,k.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,k.useMemo)(()=>ey.find(e=>nc(e,g)),[g,u]),[eb,eC]=(0,k.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)}),G&&ec&&e.push({label:G.tag_name,href:"/".concat(q.catalogUrl,"/").concat(u.url,"/").concat(ec.link,"/teg_").concat(G.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:eB,tags:eP}=nR({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)?tV(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,k.useMemo)(()=>{let e=(null==S?void 0:S.name_p)||(null==R?void 0:R.name_p);return{pageTitle:G&&((null==ec?void 0:ec.serviceName)==="cards"||(null==ec?void 0:ec.serviceName)==="debitCards")?"".concat(G.name," ").concat(u.name_r||u.name):G?"".concat(G.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,G]);(0,k.useEffect)(()=>{let e=n0(em);Y(e),e||eO(ey[0].id)},[em]),(0,k.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=tV(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,k.useEffect)(()=>{var e,t;let n=null==ec?void 0:ec.serviceTagName,i=n&&null!==(t=null==eP?void 0:null===(e=eP.data)||void 0===e?void 0:e[n])&&void 0!==t?t:[];$(null==i?void 0:i.find(e=>"teg_".concat(e.url)===W))},[ec,eP,W]);let eF=(0,h.jsx)(A.j,{className:it().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,nN.W)(eA,eI,c,u),registerButton:{text:"Показать все отзывы",link:"/".concat(q.url,"/").concat(u.url,"/otzyvy"),customClass:it().allReviewsButton,iconRight:(0,h.jsx)(f.IconFdsArrowRightO,{className:it().allReviewsButtonIcon})}}},eW=e=>{(0,ep.D)({eventCategory:U.qL,eventActionType:ep.i.tab,eventActionText:(0,e_.b)(e.label)}),eO(e.id)},ez=(()=>{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==eP?void 0:null===(t=eP.data)||void 0===t?void 0:t[a||""])||[],s=tV(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)(B,{data:c});return[...o.map(e=>{let t=n5(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:it().page,children:[(0,h.jsxs)(y.W2,{children:[(0,h.jsx)(x.Oo,{style:{padding:"16px 0"},items:ej,className:it().breadcrumbs}),(0,h.jsx)(P.d,{data:(0,n7.M)(ej,o.NEXT_PUBLIC_BASE_URL,g,eo)}),(0,h.jsx)(P.d,{data:nK({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:it().infoBlock,children:[(0,h.jsxs)("h1",{className:it().title,children:[eM,eE&&ea&&(0,h.jsxs)(h.Fragment,{children:[" в ",(0,h.jsx)("span",{onClick:I,className:it().location,children:eE})]})]}),(0,h.jsx)(x.iR,{className:it().tabsWrapper,options:{spaceBetween:0,slidesPerView:"auto"},children:ey.map(e=>(0,h.jsx)(x.wI,{className:(0,N.Z)(it().tab,{[it().activeTab]:eb.id===e.id}),onClick:()=>eW(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:it().mobileBanner,children:(0,h.jsx)(y.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)(y.W2,{children:(0,h.jsx)(y.Od,{className:it().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)(y.W2,{className:it().ratingsContainer,children:[(0,h.jsx)(ew,{company:u,companyPeopleRatings:eB,orgType:c,serviceTypes:eI,loading:!eB&&eN}),eF]}),"uslugi"===eb.id&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(tZ,{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}),Z&&(0,h.jsx)(w.c,{className:it().quote,quote:Z})]}),(0,h.jsx)("div",{className:(0,N.Z)({[it().hiddenSection]:!(eo||"news"===eb.id)}),children:p&&(0,h.jsx)(b.MJ,{tabs:p,baseUrl:o.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(o.NEXT_PUBLIC_S3_ASSETS,"/mp-assets"),dataLayerPush:n8.l})}),"uslugi"===eb.id&&(0,h.jsx)(n9.X,{...eU,showAllStars:!0,variant:eo?"secondary":"primary",loading:!eA&&eN}),!er&&"uslugi"===eb.id&&!!ez.length&&(0,h.jsx)(C.C,{questions:ez,dataLayerPush:n8.l,eventCategory:U.qL}),_&&(0,h.jsx)(j.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(99376),l=n(2265);let o=(0,l.createContext)(void 0);function r(e){var t,n,r,s,c,d;let{children:u}=e,m=(0,a.useSearchParams)(),v=(0,a.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,l.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,l.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(35563),l=n(75461),o=n(20777),r=n(17730),s=n(33145),c=n(99376),d=n(2265),u=n(58560),m={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},v=n(60816),p=n(55089),_=n(31893),g=n(80684),h=n(30618),f=n(29248),y=n(8285),x=n(51479),b=n(54550),w=n(439),C=n.n(w);let j=e=>{let{filter:t,formData:n,onChange:a,onShowMore:o,onSubmit:r}=e,s=(0,l.aF)("l"),c=(0,d.useCallback)(e=>{(0,x.D)({eventCategory:y.Rd,eventActionType:x.i.select,eventActionText:(0,b.b)("Тип организации"),eventLabel:(0,b.b)(e.label||"")}),a("orgType",e)},[a]),u=(0,d.useCallback)(e=>{(0,x.D)({eventCategory:y.Rd,eventActionType:x.i.select,eventActionText:(0,b.b)("Название организации"),eventLabel:(0,b.b)((null==e?void 0:e.map(e=>{let{label:t}=e;return t}).join(","))||"")}),a("orgName",e)},[a]),m=(0,d.useCallback)(()=>{(0,x.D)({eventCategory:y.Rd,eventActionType:x.i.button,eventActionText:(0,b.b)("Все параметры")}),o()},[o]);return(0,i.jsxs)("div",{className:C().filter,children:[(0,i.jsxs)("div",{className:C().selectors,children:[(0,i.jsx)(l.Ph,{className:C().input,size:"m",label:"Тип организации",options:n.orgType,value:t.orgType,onChange:c}),(0,i.jsx)(h.H,{className:C().input,size:"middle",label:"Название организации",options:n.orgName,value:t.orgName||null,onChange:u,multiple:!0,search:!0,isMobile:s})]}),(0,i.jsxs)("div",{className:C().buttons,children:[!(s&&t.ratingType===f.BH.people)&&(0,i.jsx)(l.zx,{iconLeft:(0,i.jsx)(g.IconFdsParametersHorizontalO,{size:22}),className:C().allParametersButton,variant:"secondary",label:"Все параметры",onClick:m}),(0,i.jsx)(l.zx,{className:C().showButton,label:"Показать",onClick:r})]})]})};var N=n(61994),T=n(44197),k=n(91672),A=n(87940),R=n(8081),S=n(31538),I=n(40224),B=n(75599);let P=(e,t)=>{let n=y.O0[t].url,i=e.url;return"/".concat(n,"/").concat(i,"/otzyvy")},L=(e,t,n)=>{let i=P(e,t);(0,x.D)({eventCategory:n||"",eventActionType:x.i.link,eventActionText:String(e.reviews_num),eventLabel:i}),window.open(i,"_blank")};var O=n(62525),M=n.n(O);let E=()=>(0,i.jsxs)("div",{className:M().header,children:[(0,i.jsx)("div",{className:M().title,children:"Пользовательский рейтинг"}),(0,i.jsx)("div",{className:M().subtitle,children:"Пользовательский рейтинг основан на отзывах клиентов банков и финансовых организаций представленых на Финуслугах"})]}),D=e=>{let{item:t,type:n,className:a,baseUrl:l}=e,o="".concat(l,"/").concat(y.O0[n].url,"/").concat(t.url).concat(A.RV.ratings);return(0,i.jsxs)("div",{className:(0,N.Z)(M().mobileCard,a),children:[(0,i.jsxs)("a",{className:M().bank,href:o,target:"_blank",onClick:()=>{(0,x.D)({eventCategory:y.Rd,eventActionType:x.i.offer,eventActionText:(0,b.b)(t.name),eventLabel:o})},children:[(0,i.jsx)(k.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:M().cardInfo,children:[(0,i.jsxs)("div",{className:M().cardInfoItem,children:[(0,i.jsxs)("div",{className:M().cardValueWrapper,children:[(0,i.jsx)(g.IconFdsStarF,{className:M().star,size:18}),(0,i.jsx)("p",{className:M().cardValue,children:t.reviews_rating})]}),(0,i.jsx)("p",{children:"Рейтинг"})]}),(0,i.jsxs)("div",{className:M().cardInfoItem,children:[(0,i.jsx)("p",{className:M().cardValue,children:t.reviews_num}),(0,i.jsx)("p",{children:"Все отзывы"})]}),(0,i.jsxs)("div",{className:M().cardInfoItem,children:[(0,i.jsx)("p",{className:M().cardValue,children:t.place}),(0,i.jsx)("p",{children:"Место"})]})]}),(0,i.jsx)(T.j,{className:M().fullInfoLink,mainPageUrl:y.Rd,href:"".concat(l,"/").concat(y.O0[n].url,"/").concat(t.url).concat(A.RV.reviews),target:"_blank",text:"Смотреть отзывы"})]})},F=e=>{let{type:t,data:n,loading:o}=e,{env:r}=(0,p.k)(),[s,c]=(0,d.useState)(4),u=(0,d.useCallback)(()=>{(0,x.D)({eventCategory:y.Rd,eventActionType:x.i.button,eventActionText:(0,b.b)("Показать еще")}),c(s+4)},[s,c]);return(0,i.jsxs)("div",{className:M().mobileOnly,children:[(0,i.jsxs)("div",{className:M().wrapper,children:[(0,i.jsx)(E,{}),n&&(0,i.jsxs)("div",{className:M().mobileBody,children:[n.map((e,n)=>(0,i.jsx)(D,{item:e,type:t,baseUrl:r.NEXT_PUBLIC_BASE_URL,className:(0,N.Z)({collapsed:n>=s})},e.url)),n&&s<n.length&&(0,i.jsx)(l.zx,{className:M().button,size:"s",variant:"secondary",label:"Показать еще",onClick:u,pending:o})]})]}),(0,i.jsxs)(a.W2,{className:M().bannerWrapper,children:[(0,i.jsx)(S.l,{eventCategory:"rating"}),(0,i.jsx)(R.u,{})]})]})},U=e=>{let{type:t,data:n,filter:o,sortOrder:r,setSort:s,loading:c}=e,{env:u}=(0,p.k)(),[m,v]=(0,d.useState)(10),_=(0,d.useCallback)(()=>{(0,x.D)({eventCategory:y.Rd,eventActionType:x.i.button,eventActionText:(0,b.b)("Показать еще")}),v(m+10)},[m,v]),h=[{name:"Место",width:"72px",sortName:""},{name:"Название ".concat(y.O0[t].name_r),width:"1032px"},{name:"Рейтинг",width:"110px",sortName:f.vA.ratings},{name:"Все отзывы",width:"144px",sortName:f.vA.reviewsNum}],w=(e,t)=>{t&&((0,x.D)({eventCategory:y.Rd,eventActionType:x.i.button,eventActionText:(0,b.b)(e)}),s(t))},C=e=>"".concat(u.NEXT_PUBLIC_BASE_URL,"/").concat(y.O0[t].url,"/").concat(e.url).concat(A.RV.ratings),j=e=>{let t=C(e);(0,x.D)({eventCategory:y.Rd,eventActionType:x.i.offer,eventActionText:(0,b.b)(e.name),eventLabel:t})};return(0,i.jsxs)(a.W2,{className:M().desktopOnly,children:[(0,i.jsx)("div",{style:{width:"100%"},children:(0,i.jsxs)("div",{className:M().wrapper,children:[(0,i.jsx)(E,{}),(0,i.jsxs)("div",{className:M().tableWrapper,children:[(0,i.jsxs)("table",{children:[(0,i.jsx)("colgroup",{children:h.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:h.map((e,t)=>{let{name:n,sortName:a}=e;return(0,i.jsx)("th",{children:(0,i.jsxs)("div",{className:(0,N.Z)(M().headCell,{[M().sortIcon]:!!a,[M().active]:o===a,[M().asc]:r===f.ib.Asc}),onClick:()=>w(n,a),children:[(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:n}}),a&&(0,i.jsx)(g.IconFdsSortDescendingO,{size:24,className:M().filterIcon})]})},t)})})}),(0,i.jsx)("tbody",{children:n&&n.map((e,n)=>(0,i.jsxs)("tr",{className:(0,N.Z)({collapsed:n>=m}),children:[(0,i.jsx)("td",{className:M().place,children:e.place}),(0,i.jsx)("td",{children:(0,i.jsxs)("a",{className:M().bank,href:C(e),target:"_blank",onClick:()=>j(e),children:[(0,i.jsx)(k.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)(g.IconFdsStarF,{className:M().star,size:22}),(0,i.jsx)("label",{children:(0,B.Z)(Number(e.reviews_rating))})]}),(0,i.jsx)("td",{onClick:()=>L(e,t,"rating"),children:(0,i.jsx)("a",{href:P(e,t),className:M().rewardLink,onClick:e=>e.preventDefault(),children:e.reviews_num})})]},e.url))})]}),n&&m<n.length&&(0,i.jsx)("div",{className:M().buttonWrapper,children:(0,i.jsx)(l.zx,{size:"s",variant:"secondary",label:"Показать еще",onClick:_,pending:c})})]})]})}),(0,i.jsxs)("div",{className:M().bannerWrapper,children:[(0,i.jsx)(S.l,{eventCategory:"rating"}),(0,i.jsx)(R.u,{})]})]})},W=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===f.ib.Desc?f.ib.Asc:f.ib.Desc):s(e)},loading:c};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(U,{...u,data:a}),(0,i.jsx)(F,{...u,data:a}),(0,i.jsx)(v.d,{data:(0,I.d)(a,d)})]})};var z=n(24269);let V=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===z.$.mfo,d=t===z.$.insurance,u="banki";c?u="mfo":d&&(u="kompanija");let m=a===f.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 H=n(13466),q=n(53120),X=n(49689),Y=n(98323),Z=n.n(Y);let Q=e=>{let{filter:t,formData:n,isOpen:a,onClose:o,onSubmit:r,onReset:s,onChange:c}=e,u=(0,l.aF)("m"),m=(0,d.useCallback)(e=>{(0,x.D)({eventCategory:y.Rd,eventActionType:x.i.radio,eventActionText:(0,b.b)(e.label||"")}),c("sortBy",e.id)},[c]),v=(0,d.useCallback)(e=>{(0,x.D)({eventCategory:y.Rd,eventActionType:x.i.select,eventActionText:(0,b.b)("Тип организации"),eventLabel:(0,b.b)(e.label||"")}),c("orgType",e)},[c]),p=(0,d.useCallback)(e=>{(0,x.D)({eventCategory:y.Rd,eventActionType:x.i.radio,eventActionText:(0,b.b)(e.label)}),c("filterBy",e.id)},[c]),_=(0,d.useCallback)(e=>{(0,x.D)({eventCategory:y.Rd,eventActionType:x.i.select,eventActionText:(0,b.b)("Название организации"),eventLabel:(0,b.b)((null==e?void 0:e.map(e=>{let{label:t}=e;return t}).join(","))||"")}),c("orgName",e)},[c]),g=(0,d.useCallback)(()=>{(0,x.D)({eventCategory:y.Rd,eventActionType:x.i.button,eventActionText:(0,b.b)("Сбросить параметры")}),s()},[s]),w=t.orgType.value,C=t.ratingType===f.BH.people,j=t.ratingType===f.BH.people?y.RU:n.filterBy[w],N=(0,i.jsxs)("div",{className:Z().body,children:[(0,i.jsxs)("div",{className:Z().row,children:[(0,i.jsx)(l.Ph,{className:Z().input,size:"m",label:"Тип организации",options:n.orgType,value:t.orgType,onChange:v}),(0,i.jsx)(h.H,{className:Z().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:Z().sortingPanel,children:[(0,i.jsx)("h3",{className:Z().sectionTitle,children:"Фильтр по"}),(0,i.jsx)("div",{className:Z().radiosWrapper,children:j.map((e,n)=>(0,i.jsx)(l.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:Z().divider}),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:Z().sortingPanel,children:[(0,i.jsx)("h3",{className:Z().sectionTitle,children:"Сортировать по"}),(0,i.jsx)("div",{className:Z().radiosWrapper,children:n.sortBy.map(e=>(0,i.jsx)(l.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:Z().buttonActions,children:[(0,i.jsx)(l.zx,{size:"m",className:Z().button,onClick:r,children:"Показать"}),(0,i.jsx)(l.zx,{variant:"secondary",size:"m",className:Z().button,onClick:g,children:"Сбросить параметры"})]});return(0,i.jsx)(H.h,{children:u?(0,i.jsx)(X.j,{isOpen:a,onClose:o,footer:T,title:"Все параметры",children:N}):(0,i.jsx)(q.d,{isOpen:a,onClose:o,title:"Все параметры",contentClassName:Z().content,titleAlign:"left",rowTitle:!0,footer:T,width:"600px",children:N})})};var G=n(90375),$=n(7970),J=n.n($);let K=e=>{var t;let n=e.filter.orgType.value,a=(e.filter.ratingType===f.BH.people?[{id:f.vA.ratings,label:"По рейтингу"},{id:f.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,N.Z)(J().wrapper,{[J().visible]:e.isVisible}),children:(0,i.jsx)(G.p,{className:J().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?f.ib.Desc:f.ib.Asc)}})})},ee=e=>{var t,n;let[i,a]=(0,d.useState)(e),l=(null===(t=i.orgType)||void 0===t?void 0:t.value)===z.$.insurance,o=(null===(n=i.orgType)||void 0===n?void 0:n.value)===z.$.mfo,r=l?"/strahovanie_otzyvy":o?"/polzovatelskij_rejting_mfo":"/polzovatelskij_rejting_bankov";(0,d.useEffect)(()=>{window.location.pathname!==r&&window.history.replaceState(null,"",r)},[r]);let s=(e,t)=>{switch(e){case"ratingType":a(e=>({...e,ratingType:t}));break;case"sortBy":a(e=>({...e,sortBy:t}));break;case"orgType":a(e=>({...e,orgType:t,orgName:null,ratingType:f.BH.people}));break;case"orgName":a(e=>({...e,orgName:t}));break;case"filterBy":a(e=>({...e,filterBy:t}))}};return{filter:i,change:s,reset:()=>{s("orgName",null)}}};var et=n(59339),en=n(33346),ei=n(75552),ea=n(84886),el=n(89487),eo=n(3845),er=n.n(eo),es=e=>{var t;let{initRatingForm:n,serverSelectOptions:g,initOrganizations:h,bestOffersData:w,supportBlockData:C}=e,{env:N}=(0,p.k)(),[T,k]=(0,d.useState)(!0),[A,R]=(0,d.useState)(),[S,I]=(0,d.useState)(h),B=(0,d.useRef)(null),P=(0,c.usePathname)(),{region:L,town:O,handleOpenCityModal:M}=(0,_.S)({initialRegion:null,initialTown:null}),[E,D]=(0,d.useState)(!1),[F,U]=(0,d.useState)(!1),{filter:H,change:q,reset:X}=ee(n),Y=(0,d.useMemo)(()=>{if(!A)return g;let e=(0,ei.l)({data:A,type:H.orgType.value});return(0,et.u)(e).sort((e,t)=>e.label.localeCompare(t.label))},[H.orgType]),Z=y.kX[H.orgType.value],G=(0,d.useMemo)(()=>({orgType:y.un,orgName:Y,ratingType:Z,sortBy:H.filterBy===f.vA.reviewsNum?y.Fo:y.pm,filterBy:y.pA}),[Y,H.orgType.value,H.filterBy]),$=()=>D(e=>!e),J=(null==O?void 0:O.name_p)||(null==L?void 0:L.name_p)||"",eo=H.orgType.value===z.$.mfo,es=y.O0[H.orgType.value].name_p,ec=eo?es.toUpperCase():es,ed="Пользовательский рейтинг ".concat(ec),eu=[{href:"/",label:"Главная"},{label:"".concat(ed," ").concat(J)}],em=(0,d.useCallback)(()=>{if((0,x.D)({eventCategory:y.Rd,eventActionType:x.i.button,eventActionText:(0,b.b)("Показать")}),D(!1),B.current){let e=B.current.getBoundingClientRect().bottom+window.scrollY;window.scrollTo({top:e,behavior:"smooth"})}},[D]);return(0,d.useEffect)(()=>{var e;(null===(e=H.orgName)||void 0===e?void 0:e.find(e=>{let{value:t}=e;return!g.find(e=>e.value===t)}))&&X()},[g]),(0,d.useEffect)(()=>{k(!0),(async()=>{let e=await (0,u.s)();e&&(R(e),k(!1))})()},[]),(0,d.useEffect)(()=>{var e;if(!A)return;let t=H.orgType.value,n=(0,ei.l)({data:A,type:t}).filter(e=>!e.archive);I(V({type:t,baseUrl:N.NEXT_PUBLIC_BASE_URL,filter:H.filterBy,sortOrder:H.sortBy,selectedOrgs:(null===(e=H.orgName)||void 0===e?void 0:e.map(e=>e.value))||[],organizations:n,region:L}))},[A,L,H]),(0,d.useEffect)(()=>{let e=()=>{if(B.current){let e=B.current.offsetTop+B.current.offsetHeight+150;U(window.scrollY>e)}},t=(0,ea.P)(e,100);return e(),window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]),(0,i.jsxs)("div",{className:er().page,children:[(0,i.jsx)("div",{ref:B,children:(0,i.jsxs)(a.W2,{children:[(0,i.jsxs)("div",{className:er().topBannerSection,children:[(0,i.jsxs)("div",{className:er().left,children:[(0,i.jsx)(l.Oo,{style:{paddingTop:"16px"},items:eu}),(0,i.jsx)(v.d,{data:(0,en.M)(eu,N.NEXT_PUBLIC_BASE_URL,P)}),(0,i.jsxs)("div",{className:er().text,children:[(0,i.jsxs)("h1",{className:er().title,children:[ed,J?" в ":" по ",(0,i.jsx)("p",{onClick:()=>{(0,x.D)({eventCategory:y.Rd,eventActionType:x.i.link,eventActionText:(0,b.b)(J||"всей России")}),M()},children:J||"всей России"})]}),(0,i.jsxs)("div",{className:er().subtitle,children:["Собрали актуальную информацию, чтобы вы знали",(0,i.jsx)("br",{className:"desktopOnly"}),"кому доверить финансы"]})]})]}),(0,i.jsx)("div",{className:er().image,children:(0,i.jsx)(s.default,{src:m,width:486,height:243,alt:"banner image"})})]}),(0,i.jsx)(j,{filter:H,formData:G,onSubmit:em,onShowMore:$,onChange:q}),(0,i.jsx)(Q,{isOpen:E,filter:H,formData:G,onChange:q,onClose:$,onSubmit:em,onReset:X})]})}),(0,i.jsx)(K,{isVisible:F,onShowMore:$,filter:H,formData:G,onChange:q}),(0,i.jsx)(W,{sortOrder:H.sortBy,filter:H.filterBy,region:L,organizations:S,selectedOrgs:(null===(t=H.orgName)||void 0===t?void 0:t.map(e=>e.value))||[],setSortState:e=>q("filterBy",e),setOrderDesc:e=>q("sortBy",e),loading:T,type:H.orgType.value}),w&&(0,i.jsx)(o.MJ,{tabs:w,baseUrl:N.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(N.NEXT_PUBLIC_S3_ASSETS,"/mp-assets"),dataLayerPush:el.l}),C&&(0,i.jsx)(r.B,{...C,s3Assets:N.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})]})},B=(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 P=n(51479),L=n(54550),O=n(83756),M=n.n(O);let E=e=>{var t,n,a,o,r,s;let c=B(e.review,e.orgType,e.org);return(0,i.jsxs)("a",{className:M().wrapper,href:c,target:"_self",onClick:()=>{(0,P.D)({eventCategory:u.lD,eventActionType:P.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,[3647,1528,9339,8514,3031,5073,3544,5501,207,7654,3145,5979,4789,4242,692,4220,8508,1746,2926,8377,3562,4508,2971,2117,1744],function(){return e(e.s=26313)}),_N_E=e.O()}]);