(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4633],{26313:function(e,t,n){Promise.resolve().then(n.bind(n,9409)),Promise.resolve().then(n.bind(n,91286)),Promise.resolve().then(n.bind(n,90476))},9409:function(e,t,n){"use strict";n.d(t,{default:function(){return ax}});var a,i,l,o,r,s,c,d,u,m,v,p,_,g,h,f,y=n(57437),x=n(80684),b=n(74157),w=n(35563),C=n(75461),j=n(61994),N=n(99376),k=n(2265),T=n(44197),A=n(47270),S=n(53120),R=n(49689),I=n(24269);let B=(e,t)=>e===I.$.bank&&"finance"in t,L=(e,t)=>e===I.$.insurance&&"legal_entities"in t&&Object.keys(t.legal_entities[0]||{}).some(e=>e.startsWith("insType")),P=e=>"microCredits_num"in e,O=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 a=document.querySelectorAll("[data-portal]").length>1;e||a||(document.body.classList.remove("hide-scrollbar"),document.documentElement.style.removeProperty("overflow-y"),document.body.style.removeProperty("top")),e||a||void 0===t.current||(window.scrollTo(0,t.current),t.current=void 0)},[e])},M=(e,t)=>{(0,k.useEffect)(()=>{let n;let a=()=>{let n=e.current;if(!n)return;let a=n.getBoundingClientRect().top,i=n.getBoundingClientRect().bottom,l=0;for(let e of Array.from(n.children)){let t=e.getBoundingClientRect();if(t.bottom>a&&t.top<i)l++;else break}t(l)},i=new ResizeObserver(()=>{n=requestAnimationFrame(a)});return e.current&&i.observe(e.current),n=requestAnimationFrame(a),()=>{i.disconnect(),cancelAnimationFrame(n)}},[e,t])};var E=n(71938);let D=e=>/^https?:\/\//i.test(e)?e:"https://".concat(e),F=(e,t)=>{var n,a,i;let l=[],o=B(e,t),r=L(e,t),s=P(t);if(o){let{legal_entities:e,email:n,ogrn:o,cpp:r,bic:s,inn:c,okpo:d}=t;if(Array.isArray(e)&&(null===(i=e[0])||void 0===i?void 0:null===(a=i.licenses)||void 0===a?void 0:a.length)){let{number:t,date:n}=e[0].licenses[0];l.push({title:"Лицензия",value:"№ ".concat(t," от ").concat((0,E.p6)(n).toString()," г.").concat(o?', <a href="https://www.cbr.ru/finorg/foinfo/?ogrn='.concat(o,'" target="_blank">информация на сайте ЦБ РФ</a>'):"")})}if(Array.isArray(e)&&e.length){let{name:t,legal_address:n}=e[0]||{};t&&l.push({title:"Сокращенное наименование",value:t}),n&&l.push({title:"Юридический адрес",value:n})}n&&l.push({title:"Email",value:'<a href="mailto:'.concat(n,'">').concat(n,"</a>")}),o&&l.push({title:"ОГРН",value:o}),r&&l.push({title:"КПП",value:r}),s&&l.push({title:"БИК",value:s.padStart(9,"0")}),c&&l.push({title:"ИНН",value:c}),d&&l.push({title:"ОКПО",value:d})}if(r){let{legal_entities:[{legal_address:e,name:n,licenses:a}],legal_name:i}=t,o=i||n;e&&l.push({title:"Юридический адрес",value:e}),o&&l.push({title:"Полное наименование",value:o}),(null==a?void 0:a.length)&&l.push({title:"Свидетельство",value:a.map(e=>"№ ".concat(e.number," от ").concat(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:a}=e,i=[];return n&&i.push({title:"Юридическое лицо",value:n}),t&&i.push({title:"Юридический адрес",value:t}),a&&i.push({title:"Регистрационный номер",value:a}),i}):[l]},U=e=>{let{site:t,site_url:n}=e,a=[];n&&a.push({title:"Официальный сайт",value:'<a href="'.concat(D(n),'" target="_blank">').concat(t||n,"</a>")});let i=e.phone||e.maintel;return i&&a.push({title:"Телефоны",value:"string"==typeof i?'<a href="tel:'.concat(i,'">').concat(i,"</a>"):'<a href="tel:'.concat(i.phone,'">').concat(i.phone,"</a> <span>").concat(i.description,"</span>")}),a};var W=n(87940),z=n(1649),V=n.n(z);let H=e=>e.map(e=>"string"==typeof e?(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:e}},e):(0,y.jsxs)("div",{className:V().row,children:[(0,y.jsx)("p",{className:V().year,children:e.data.year}),(0,y.jsx)("div",{className:V().text,dangerouslySetInnerHTML:{__html:e.data.text}})]},e.data.year)),q=e=>{let{title:t,description:n,historyRowsRef:a,visibleItems:i=3,onShowAll:l,onShowMore:o,isPopup:r=!1}=e,s=(0,C.aF)("m");return n?(0,y.jsxs)("div",{className:V().history,children:[!r&&(0,y.jsx)("h2",{className:V().historyTitle,children:t}),(0,y.jsx)("div",{className:(0,j.Z)(V().historyRows,{[V().historyModal]:r}),ref:a,children:"string"==typeof n?(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}):H(n.slice(0,s?i:n.length))}),"string"!=typeof n&&!r&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:V().gradient}),(0,y.jsx)(T.j,{text:"Показать все",mainPageUrl:W.qL,iconColor:"light",className:V().showAllButton,onClick:l,widthMaxContent:!0})]}),"string"!=typeof n&&n.length>i&&r&&(0,y.jsx)(T.j,{text:"Показать еще",mainPageUrl:W.qL,icon:x.IconFdsChevronDownSmallO,iconColor:"light",className:V().showMoreButton,onClick:o,widthMaxContent:!0})]}):null},X=["finuslugi.ru","inguru.dev","moex.com"],Y=e=>e.includes("//")&&!X.find(t=>e&&e.indexOf(t)>=0),Z=e=>e?e=e.replace(/href="(.*?)"/gi,(e,t)=>"".concat(e).concat(Y(t)?' rel="nofollow"':"")):"",Q=e=>{let{items:t}=e,[n,a]=(0,k.useState)(!1),i=()=>a(e=>!e);return t.length?t.map(e=>(0,y.jsxs)("div",{className:V().requisit,children:[(0,y.jsx)("p",{className:V().infoItemTitle,children:e.title}),Array.isArray(e.value)?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:V().infoItemValue,children:e.value.slice(0,n?e.value.length:1).map(e=>(0,y.jsx)("div",{className:V().infoItemValueItem,children:e},e))}),(0,y.jsx)(T.j,{text:n?"Свернуть":"Все свидетельства",mainPageUrl:W.qL,icon:n?x.IconFdsChevronUpSmallO:x.IconFdsChevronDownSmallO,iconColor:"light",className:V().showMoreLicensesButton,onClick:i,widthMaxContent:!0})]}):(0,y.jsx)("div",{className:V().infoItemValue,dangerouslySetInnerHTML:{__html:Z(e.value)}})]},e.title)):null},$=e=>{let{title:t,items:n}=e,[a,i]=(0,k.useState)(!1);return n.length&&n[0].length?(0,y.jsxs)("div",{children:[t&&(0,y.jsx)("h2",{className:V().title,children:t}),n.map((e,t)=>(0,y.jsx)("div",{className:(0,j.Z)(V().requisitesColumn,{collapsed:t>0&&!a}),children:(0,y.jsx)(Q,{items:e})},t)),n.length>1&&(0,y.jsx)(T.j,{text:a?"Свернуть":"Показать все юрлица",mainPageUrl:W.qL,icon:a?x.IconFdsChevronUpSmallO:x.IconFdsChevronDownSmallO,iconColor:"light",className:V().showMoreLegalEntitiesButton,onClick:()=>i(e=>!e),widthMaxContent:!0})]}):null},G=e=>{let{insuranceTypes:t,loadingInsuranceTypes:n}=e,a=(0,C.aF)("m"),[i,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>(a?164:76))},[t,a]),n)?(0,y.jsx)(w.Od,{className:V().insuranceTypes,width:468,height:152}):(0,y.jsxs)("div",{className:V().insuranceTypes,children:[(0,y.jsx)("p",{className:V().infoItemTitle,children:"Виды страхования"}),(0,y.jsx)("div",{ref:o,className:(0,j.Z)(V().typesList,{[V().expanded]:i}),children:null==t?void 0:t.map(e=>(0,y.jsx)(C.Vp,{label:e.name,variant:"secondary",className:(0,j.Z)(V().insuranceTypeTag,{[V().insuranceTypeTagFull]:i})},e.id))}),r&&(0,y.jsx)(T.j,{text:i?"Свернуть":"Показать еще",mainPageUrl:W.qL,icon:i?x.IconFdsChevronUpSmallO:x.IconFdsChevronDownSmallO,iconColor:"light",className:V().showMoreLicensesButton,onClick:()=>{l(e=>(e&&o.current&&o.current.scrollIntoView({behavior:"smooth",block:"center"}),!e))},widthMaxContent:!0})]})};var J=n(41858),K=n(97358);let ee="Реквизиты",et="Контакты",en=e=>{let{orgType:t,company:n,insuranceTypes:a,loadingInsuranceTypes:i}=e,l=(0,C.aF)("m"),o=L(t,n),r=t===I.$.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,h]=(0,k.useState)(3),[f,b]=(0,k.useState)(3);M(c,l?h:b),O(m);let N=t===I.$.insurance,{description:A}=n,B=F(t,n),P=U(n),E=o?null==a?void 0:a.filter(e=>{var t,a,i;return null==n?void 0:null===(i=n.legal_entities)||void 0===i?void 0:null===(a=i[0])||void 0===a?void 0:null===(t=a.ins_types)||void 0===t?void 0:t.includes(Number(e.id))}):[],D=[s];B.length>0&&D.push(ee),P.length>0&&D.push(et);let z=d===s,X=e=>{u(e),_(!0)},Y=A&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(q,{title:s,description:A,historyRowsRef:c,onShowAll:()=>v(!0),onShowMore:()=>{Array.isArray(A)&&h(A.length)},visibleItems:l?g:f,isPopup:l}),!l&&(0,y.jsx)(J.X,{organizationType:t,bannerUrl:o?K.Te[n.url]:void 0,compact:!0})]}),Z=B.length>0&&(0,y.jsx)($,{title:l?void 0:ee,items:B}),Q=P.length>0&&(0,y.jsx)("div",{className:V().contacts,children:(0,y.jsx)($,{title:l?void 0:et,items:[P]})}),en=(!!(null==E?void 0:E.length)||i)&&(0,y.jsx)(G,{insuranceTypes:E||[],loadingInsuranceTypes:i});return(0,y.jsx)(w.W2,{children:(0,y.jsx)("div",{className:V().wrapper,children:l?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:V().bankInfoTabs,children:D.map(e=>(0,y.jsx)(T.j,{text:e,mainPageUrl:W.qL,icon:x.IconFdsChevronRightO,iconColor:"white",className:V().bankInfoTabButton,onClick:()=>X(e),widthMaxContent:!0},e))}),(0,y.jsx)(R.j,{title:d,isOpen:p,onClose:()=>{_(!1),h(3)},full:z,className:V().historyPopup,children:z?Y:d===ee?(0,y.jsxs)(y.Fragment,{children:[Z,en]}):d===et?Q:null})]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:V().topRow,children:[Y,(0,y.jsx)(S.d,{className:V().drawer,contentClassName:V().container,isOpen:m,onClose:()=>v(!1),title:(0,y.jsx)("p",{className:V().historyTitle,children:s}),titleAlign:"left",width:"695px",rowTitle:!0,children:(0,y.jsx)("div",{className:(0,j.Z)(V().historyRows,V().historyModal),children:A&&H(A)})})]}),(0,y.jsxs)("div",{className:(0,j.Z)(V().bottomRow,N&&V().withoutWrap),children:[Z,Q]}),o&&en]})})})};var ea=n(31538),ei=n(82869),el=n.n(ei),eo=n(66285),er=n(75599),es=n(51479),ec=n(54550);let ed=e=>(0,y.jsxs)("div",{className:(0,j.Z)(el().starWrapper,{[el().mid]:e.mid,[el().big]:e.big,[el().partial]:!e.total}),children:[(0,y.jsx)(x.IconFdsStarF,{size:e.big?20:16,className:el().starIcon}),(0,er.Z)(e.ratingValue),e.total?"/".concat(e.total):"",e.text?"/":"",(0,y.jsx)("span",{className:el().starText,children:e.text})]}),eu=e=>{var t,n;let a=(0,C.aF)("m"),i=W.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,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("p",{className:el().description,children:["Составляется на основе отзывов клиентов ",i.name_rs]}),(0,y.jsxs)("div",{className:el().peopleRatingWrapper,children:[!e.loading&&(0,y.jsxs)("div",{className:el().peopleRatingTopInfo,children:[(0,y.jsx)(ed,{ratingValue:(null==l?void 0:l.total_rating)||0,text:"5",big:!0}),(0,y.jsx)(T.j,{className:el().peopleRatingTopFullInfoLink,text:"".concat((null==l?void 0:l.total_count)||0," ").concat((0,w._6)((null==l?void 0:l.total_count)||0,"отзыв","отзыва","отзывов")," на Финуслугах"),mainPageUrl:W.qL,href:(0,eo.G)({type:e.orgType,com:o}),target:"_self"})]}),e.loading&&(0,y.jsx)(w.Od,{className:el().peopleRatingTopInfo,width:346,height:44}),!e.loading&&r.map(t=>{var n;let{serviceId:i,count:l,rating:r}=t,c=null==s?void 0:null===(n=s[i])||void 0===n?void 0:n.name;if(!c)return null;let d=l?"".concat(l," ").concat((0,w._6)(l,"отзыв","отзыва","отзывов")):"",u=(0,eo.G)({type:e.orgType,com:o,service:i});return(0,y.jsx)("a",{href:u,className:el().rowItem,onClick:()=>{(0,es.D)({eventCategory:W.qL,eventActionType:es.i.block,eventActionText:(0,ec.b)(c),eventLabel:u})},children:(0,y.jsxs)("div",{className:el().rowTitleWrapper,children:[!a&&(0,y.jsx)(ed,{ratingValue:r,total:5,mid:!0}),(0,y.jsx)("div",{className:el().rowTitle,children:c}),(0,y.jsxs)("div",{className:el().rowLink,children:[a&&(0,y.jsx)(ed,{ratingValue:r,mid:!0}),d&&(a?"/".concat(d):"(".concat(d,")"))]}),(0,y.jsx)(x.IconFdsArrowUpRightSmallO,{size:26,className:el().rowItemIcon})]})},i)}),e.loading&&[1,2,3,4,5].map(e=>(0,y.jsx)(w.Od,{className:el().rowItem,height:a?92:64},e))]}),!a&&(0,y.jsxs)("p",{className:el().disclaimer,children:["Рейтинги ",e.company.name_r||e.company.name," составлены на основании наиболее актуальных данных за ",new Date().getFullYear()," год"]})]})};var em=n(8081);let ev=e=>{let{company:t,companyPeopleRatings:n,orgType:a,serviceTypes:i,loading:l}=e;return(0,y.jsx)("div",{className:el().wrapper,children:(0,y.jsxs)("div",{className:el().container,children:[(0,y.jsx)("div",{className:el().body,children:(0,y.jsxs)("div",{className:el().info,children:[(0,y.jsx)("h2",{className:el().title,children:"Пользовательский рейтинг"}),(0,y.jsx)(eu,{company:t,companyPeopleRatings:n,orgType:a,serviceTypes:i,loading:l})]})}),(0,y.jsxs)("div",{className:el().bannerWrapper,children:[(0,y.jsx)(ea.l,{company:t.url,orgType:a,eventCategory:"companyDetail"}),(0,y.jsx)(em.u,{})]})]})})};var ep=n(41356),e_=n(31408),eg=n(22870),eh=n(36773);let ef=(e,t,n,a)=>e.map(e=>{let i;let l="SK"===e.target?I.$.insurance:"MFO"===e.target?I.$.mfo:I.$.bank;i=l===I.$.insurance?null==n?void 0:n.insurance_companies.find(t=>t.id===e.company_id):l===I.$.mfo?null==n?void 0:n.mfos.find(t=>t.id===e.company_id):null==n?void 0:n.companies.find(t=>t.id===e.company_id),a&&(i=a);let o=null==t?void 0:t[l],r=null==o?void 0:o.find(t=>t.id===e.service_id);return{...e,fkType:l,fkLogo:null==i?void 0:i.logo_mob,fkName:null==i?void 0:i.name,fkUrl:null==i?void 0:i.url,bic:(0,eh.A)(i)||void 0,serviceName:(null==r?void 0:r.name_sing)||(null==r?void 0:r.name)}}),ey=[{value:"newest",label:"Сначала новые"},{value:"oldest",label:"Сначала старые"},{value:"high-rating",label:"С высокой оценкой"},{value:"low-rating",label:"С низкой оценкой"}];var ex=n(58439),eb=n.n(ex);let ew=e=>{var t;let{company:n,orgType:a,companyReviews:i,maxPage:l,serviceTypes:o,initialPage:r}=e,[s,c]=(0,k.useState)(i),[d,u]=(0,k.useState)(o),[m,v]=(0,k.useState)("newest"),[p,_]=(0,k.useState)(!1),[g,h]=(0,k.useState)(l>1),f=(0,k.useRef)(r),[b,j]=(0,k.useState)(!i.length),[N,T]=(0,k.useState)(!1),A=(0,k.useRef)(!0),S=ef(s,d,null,n),R=(null===(t=ey.find(e=>e.value===m))||void 0===t?void 0:t.label)||ey[0].label,I="oldest"===m||"low-rating"===m,B=(0,ep.K1)({type:a,companyIds:[n.id],sort:"high-rating"===m||"low-rating"===m?"rating":void 0,orderDesc:!I}),L=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;f.current=e,1===e?j(!0):T(!0),(0,ep.Jh)(B.reviews,e).then(t=>{var n,a;c([...e>1?s:[],...(null==t?void 0:null===(n=t.result)||void 0===n?void 0:n.reviews)||[]]),h(e+1<=((null==t?void 0:null===(a=t.result)||void 0===a?void 0:a.pages)||0)),d||u((0,eg.c)(t))}).finally(()=>{j(!1),T(!1)})};(0,k.useEffect)(()=>{if(A.current&&i.length>0){A.current=!1;return}L()},[a,n.id,m]);let P=(0,k.useCallback)(e=>{(0,es.D)({eventCategory:W.qL,eventActionType:es.i.select,eventActionText:(0,ec.b)(e.label)}),v(e.value),_(!1)},[v,_]);return(0,y.jsxs)("section",{className:eb().section,children:[(0,y.jsx)(w.W2,{children:(0,y.jsx)("div",{className:eb().sortWrapper,children:(0,y.jsxs)(C.Lt,{opened:p,placement:"bottom-end",onToggle:_,children:[(0,y.jsxs)(C.WA,{onClick:()=>_(!0),className:eb().activeSortOption,children:[I?(0,y.jsx)(x.IconFdsSortAscendingO,{className:eb().sortIcon}):(0,y.jsx)(x.IconFdsSortDescendingO,{className:eb().sortIcon}),R]}),(0,y.jsx)(C.Nv,{children:ey.map(e=>(0,y.jsx)(C.Qr,{label:e.label,onClick:()=>P(e)},e.value))})]})})}),(0,y.jsx)(e_.j,{reviews:S,onShowMore:g?()=>{L(f.current+1)}:void 0,loading:b,loadingMore:N,eventCategory:"companyDetail",initialMaxPage:l,initialPage:r,company:n})]})};var eC=n(21013),ej=n(33562);let eN=(e,t)=>W.pj.find(e=>t.includes(e))?"uslugi"===e.id:W.Cp.find(e=>t.includes(e))?"ratings"===e.id:!!e.path&&t.includes(e.path),ek=e=>{if(W.pj.find(t=>e.includes(t)))return"uslugi";if(W.Cp.find(t=>e.includes(t)))return"ratings";let[t]=Object.entries(W.RV).find(t=>{let[n,a]=t;return!!a&&e.includes(a)})||[];return t||"about"};var eT=n(31893),eA=n(59306);let eS={osago:"osago",kasko:"kasko",mortgage:"mortgage",property:"property"},eR={credit:"credits",card:"cards",deposit:"deposits",autoCredit:"autoCredits",debitCard:"debitCards",microCredit:"microCredit",mortgage:"mortgages"},eI={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"},eB=e=>{let{companyName:t,service:n,region:a,town:i,isMfo:l,onlyTexts:o}=e,r=new URLSearchParams({archive:"0",url:t});return n&&r.set("service",n),a&&r.set("region",a),i&&r.set("town",i),l&&(r.set("mfo","1"),r.set("service","microCredit")),o&&r.set("text","1"),r},eL=async e=>{let t=eB(e),n="/money_data/ServiceDetail.json?".concat(t.toString());return{data:(await (0,eA.t)({url:n})).data||null,service:e.service}},eP=async e=>{let t=eB(e),n="/money_data/ServiceDetail.json?".concat(t.toString());return{data:(await (0,eA.t)({url:n})).data||null,service:e.service}},eO=async e=>{let{id:t,service:n,region:a,town:i,tag:l}=e;if(!n)return;let o=new URLSearchParams({archive:"0",bank:String(t)});if(a&&o.set("region",a),i&&o.set("town",i),l){let e=l.slice(4);o.set("tag",e)}let r="".concat(eI[n],"?").concat(o.toString());return{data:(await (0,eA.t)({url:r})).data||null,service:n}},eM=async()=>{var e;return{data:(null===(e=(await (0,eA.t)({url:"/money_data/ServiceTags.json"})).data)||void 0===e?void 0:e.tags)||null}},eE=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.$.bank;return(await (0,eA.t)({url:"/money_data/Company.json?url=".concat(e,"&type=").concat(t)})).data||null},eD=async e=>(await (0,eA.t)({url:"/api/v1/banks?size=1&bic=".concat(e),options:{isGeo:!0}})).data||null,eF=()=>(0,eA.t)({url:"/money_data/InsuranceTypes.json"}),eU=async(e,t,n,a)=>{var i;let l=new URLSearchParams({type:(e===I.$.insurance?"sk":e).toUpperCase(),url:t});n&&l.set("region",n),a&&l.set("town",a);let o="/money_data/ServicesInfo.json?".concat(l.toString());return(null===(i=(await (0,eA.t)({url:o})).data)||void 0===i?void 0:i.services)||[]},eW=async(e,t,n,a)=>{let i=await eU(e,t,n,a),l=e===I.$.insurance,o=l?eS:eR;return Object.keys(o).reduce((e,t)=>{var n;let a=o[t],r=i.find(e=>e.service===t);if(!r)return e;let s=null!==(n=null==r?void 0:r.count)&&void 0!==n?n:l?1:0;return e[a]={data:null,tags:[],length:s,serviceText:[]},e},{})},ez=async e=>{var t,n,a,i;let l;let{type:o,company:r,regionUrl:s,townUrl:c,activeServiceName:d,currentBankServices:u,tag:m}=e;l=u?{...u}:await eW(o,r.url,s,c);let[v]=Object.entries(eR).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 eL(p):await eO(p),g=await eP({...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===(i=_.data)||void 0===i?void 0:i.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===(a=_.data)||void 0===a?void 0:a["".concat(v,"Tags")];return l[d]={data:h||null,tags:x||[],length:v in eS?1:(null==h?void 0:h.length)||0,serviceText:y||[]},l},eV=(e,t,n)=>eL({companyName:e,region:t,town:n,isMfo:!0}),eH=(e,t,n)=>{var a,i,l;return 1!==e.archive&&("mfo_url"in e||!("active_to"in e&&e.active_to&&new Date(e.active_to)<new Date)&&!!(!t||1===e.all_russia||((null===(a=e.custom_towns)||void 0===a?void 0:a.length)||0)>0&&e.custom_towns.includes(t.id)||!e.limited_regions&&(null==n?void 0:null===(i=n.bank_towns)||void 0===i?void 0:i[e.bank_id])&&(null==n?void 0:null===(l=n.bank_towns)||void 0===l?void 0:l[e.bank_id].includes(t.id))))};(a=u||(u={})).Fixed="FIXED",a.MaxBalance="MAX_BALANCE",a.Min="MIN",a.MinSum="MIN_SUM",a.NoRestrictions="NO_RESTRICTIONS",a.Started="STARTED",(i=m||(m={})).CustomerChoice="CUSTOMER_CHOICE",i.Fixed="FIXED",i.No="NO",(l=v||(v={})).OnDemand="ON_DEMAND",l.PreferentialRateForWholeTerm="PREFERENTIAL_RATE_FOR_WHOLE_TERM",l.WithoutRecalculationOfInterest="WITHOUT_RECALCULATION_OF_INTEREST",(o=p||(p={})).Capitalisation="CAPITALISATION",o.ToCurrentBankCustomerAccount="TO_CURRENT_BANK_CUSTOMER_ACCOUNT",o.ToNominalAccount="TO_NOMINAL_ACCOUNT",(r=_||(_={})).Daily="DAILY",r.InTheEnd="IN_THE_END",r.Monthly="MONTHLY",r.NoRestrictions="NO_RESTRICTIONS",r.OnDemand="ON_DEMAND",(s=g||(g={})).PreferentialRateForWholeTerm="PREFERENTIAL_RATE_FOR_WHOLE_TERM",s.WithoutRecalculationOfInterest="WITHOUT_RECALCULATION_OF_INTEREST",(c=h||(h={})).SALARY_OR_PENSION="SALARY_OR_PENSION",c.SPENDING="SPENDING";let eq={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},eX=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)},eY=(e,t,n)=>{var a;let i;let l=n||eq,o=t.find(t=>Number((0,eh.A)(t))===+e.bic),r=[],s=e.options[0];try{i=o&&o.legal_entities?"string"==typeof o.legal_entities?JSON.parse(o.legal_entities):o.legal_entities:void 0}catch(e){console.error(e)}let c=1e6,d=0,u=1e6,m=0;return e.options.forEach(e=>{e.currencies.forEach(t=>{t.rates.forEach(t=>{r.push({from:null,to:null,term:null,amount:null,term_from:eX(t.minimumPeriod),term_to:eX(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,eX(t.minimumPeriod)),m=Math.max(m,eX(t.maximumPeriod))})})}),{...l,...e,id:parseInt(e.id,10),url:e.internalUrl,title:e.name,fin_exclusive:+e.exclusive,active_to:e.activeTo,bank_id:(null==o?void 0:o.id)?Number(o.id):0,bank_name:o?o.name:"",bank_url:o?o.url:"",logo:(null==o?void 0:o.logo)?o.logo:"",logo_mob:(null==o?void 0:o.logo_mob)?o.logo_mob:"",legal_name:Array.isArray(i)&&i[0]?null===(a=i[0])||void 0===a?void 0:a.name:"",interest_rate:{...n?n.interest_rate:{},rates:r.length?r:l.interest_rate.rates},amount:{...l.amount,from:c,to:d},archive:e.archive?1:0,m_updated_at:e.updatedAt?e.updatedAt.slice(0,10):null,online_application:{...l.online_application,url:"https://lk.finuslugi.ru/add-product?aggregatorId=moex-mp-new-sc&productId=".concat(e.id,"&optionId=").concat(s.id)},term:{...l.term,from:u,to:m},partial_withdrawal:{...l.partial_withdrawal,text:s.partialWithdrawal?"Возможно":"Невозможно",has:s.partialWithdrawal?1:0},interest_payment:{...l.interest_payment,text:"IN_THE_END"===s.interestPayments[0].periods[0].type?"В конце срока":"Ежемесячно",monthly:"MONTHLY"===s.interestPayments[0].periods[0].type?1:0,end:"IN_THE_END"===s.interestPayments[0].periods[0].type?1:0},refill:{comment:"",...l.refill,text:s.replenishment?"Возможно":"Нет",has:s.replenishment?1:0},interest_capitalization:{comment:"",...l.interest_capitalization,has:"CAPITALISATION"===s.interestPayments[0].method?1:0,text:"CAPITALISATION"===s.interestPayments[0].method?"Да":"Нет"},preferential_termination:{...l.preferential_termination,text:"PREFERENTIAL_RATE_FOR_WHOLE_TERM"===s.earlyTermination?"Да":"Нет",has:"PREFERENTIAL_RATE_FOR_WHOLE_TERM"===s.earlyTermination?1:0},prolongation:{text:s.prolongations?"Предусмотрена":"Не предусмотрена"}}},eZ=(e,t,n)=>{var a,i,l,o;let r=String(null!==(l=null==e?void 0:null===(a=e.contentAttributes)||void 0===a?void 0:a.bic)&&void 0!==l?l:"").padStart(9,"0"),s="".concat(t,"/mp-assets/images/bank/logo-brandmark-bank-").concat(r,".svg");return null!==(o=null==n?void 0:n.logo_mob)&&void 0!==o?o:(null==e?void 0:null===(i=e.contentAttributes)||void 0===i?void 0:i.bic)?s:void 0},eQ=e=>{var t,n,a,i,l,o,r,s;let c=(null===(n=e.contentAttributes)||void 0===n?void 0:null===(t=n.integration)||void 0===t?void 0:t.integrationType)==="REFERAL"||(null===(i=e.contentAttributes)||void 0===i?void 0:null===(a=i.integration)||void 0===a?void 0:a.integrationType)==="INTERNAL_REFERAL";return{type:c?1:0,url:null!==(s=null===(o=e.contentAttributes)||void 0===o?void 0:null===(l=o.integration)||void 0===l?void 0:l.url)&&void 0!==s?s:"",commercial:c?1:0,order:null===(r=e.contentAttributes)||void 0===r?void 0:r.order}},e$=(e,t,n)=>{var a,i,l,o;return{...null==e?void 0:e.interest_rate,rates:t.length?t:null!==(l=null===(a=e.interest_rate)||void 0===a?void 0:a.rates)&&void 0!==l?l:[],comment:null!==(o=null===(i=n.contentAttributes)||void 0===i?void 0:i.ratesComment)&&void 0!==o?o:""}},eG=(e,t)=>{var n,a,i,l;let o=null==t?void 0:null===(l=t.interestPayments)||void 0===l?void 0:null===(i=l[0])||void 0===i?void 0:null===(a=i.periods)||void 0===a?void 0:null===(n=a[0])||void 0===n?void 0:n.type;return{...e.interest_payment,text:"",daily:"DAILY"===o?1:0,monthly:"MONTHLY"===o?1:0,quarterly:"QUARTERLY"===o?1:0,end:"INTEREST_AHEAD"===o?1:0}},eJ=(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}),eK=e=>{try{var t,n;if(!e)return"";let a=e.legal_entities;if("string"==typeof a){let e=JSON.parse(a);return Array.isArray(e)&&(null===(n=e[0])||void 0===n?void 0:n.name)?e[0].name:""}if(Array.isArray(a))return(null===(t=a[0])||void 0===t?void 0:t.name)||"";return""}catch(e){return""}},e0=(e,t)=>Math.min(e,t.minimumPeriod?eX(t.minimumPeriod):0),e1=(e,t)=>Math.max(e,t.maximumPeriod?eX(t.maximumPeriod):0),e3=(e,t,n)=>{var a,i,l,o,r,s;t.push({from:null,to:null,term:null,amount:null,term_from:n.minimumPeriod?eX(n.minimumPeriod):0,term_to:n.maximumPeriod?eX(n.maximumPeriod):0,rate:n.maximumRate,amount_from:null!==(r=n.minimumAmount)&&void 0!==r?r:null,amount_to:null!==(s=n.maximumAmount)&&void 0!==s?s:null,diff:n.topRateDelta||0,tag:{title:(null==n?void 0:null===(a=n.tags)||void 0===a?void 0:a.title)||"",description:(null==n?void 0:null===(i=n.tags)||void 0===i?void 0:i.description)||"",deeplink:(null==n?void 0:null===(l=n.tags)||void 0===l?void 0:l.deepLink)||"",url:(null==n?void 0:null===(o=n.tags)||void 0===o?void 0:o.url)||""},optionId:e.id})},e6=e=>{let t=[],n=1/0,a=0,i=1/0,l=0;return e.filter(e=>null==e?void 0:e.active).forEach(e=>{var o;(null!==(o=e.currencies)&&void 0!==o?o:[]).forEach(o=>{var r;(null!==(r=o.rates)&&void 0!==r?r:[]).forEach(o=>{e3(e,t,o),n=Math.min(n,o.minimumAmount),a=Math.max(a,o.maximumAmount),i=e0(i,o),l=e1(l,o)})})}),{rates:t,amountFrom:n,amountTo:a,termFrom:i,termTo:l}},e2=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},e4=e=>e2(e)?"Да":"Нет",e5=e=>(null==e?void 0:e.earlyTermination)===g.PreferentialRateForWholeTerm||(null==e?void 0:e.earlyTermination)===g.WithoutRecalculationOfInterest?1:0,e7=e=>e5(e)?"Да":"Нет",e8=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},e9=e=>e8(e)?"Возможно":"Невозможно",te=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},tt=e=>te(e)?"Возможно":"Невозможно",tn=(e,t,n,a)=>{var i,l,o,r,s,c,d,u,m,v,p,_,g,h,f,y,x,b,w,C,j,N;let k=null!=a?a:eq,T=null===(l=e.attributes)||void 0===l?void 0:null===(i=l.options)||void 0===i?void 0:i[0],A=eK(t),{rates:S,amountFrom:R,amountTo:I,termFrom:B,termTo:L}=e6(null!==(y=null===(o=e.attributes)||void 0===o?void 0:o.options)&&void 0!==y?y:[]),P=eZ(e,n,t);return{...k,...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:P,logo_mob:P,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:eQ(e),interest_rate:e$(k,S,e),amount:{...k.amount,from:R,to:I},term:{...k.term,from:B,to:L},partial_withdrawal:{...k.partial_withdrawal,has:te(T),text:tt(T)},interest_payment:eG(k,T),refill:{comment:"",...k.refill,has:e8(T),text:e9(T)},interest_capitalization:{comment:"",...k.interest_capitalization,has:e2(T),text:e4(T)},preferential_termination:{...k.preferential_termination,has:e5(T),text:e7(T)},type:eJ(e,T),prolongation:{text:(null==T?void 0:T.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==T?void 0:T.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}}},ta=(e,t,n)=>Object.entries(e).reduce((e,a)=>{var i;let[l,o]=a,r=(null==o?void 0:null===(i=o.data)||void 0===i?void 0:i.filter(e=>eH(e,t,n)))||null,s=Array.isArray(r)?r.length:o.length;return e[l]={data:"deposits"===l?[]:r,tags:(null==o?void 0:o.tags)||[],length:s,serviceText:o.serviceText},e},{});var ti=n(48156);let tl=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(await (0,eA.t)({url:"/api/v1/quotes?quoteUrl=".concat(e,"&published=").concat(t),options:{isHeadlessCMS:!0}})).data||null},to=async(e,t)=>e&&t?(await (0,eA.t)({url:"/api/v1/stats/banks/".concat(e,"/tags?tagId=").concat(t),options:{isHeadlessCMS:!0}})).data:null,tr=()=>(0,eA.t)({url:"/api/v2/product-tags",options:{isHeadlessCMS:!0}});var ts=n(55089);let tc=e=>{var t,n,a,i,l,o,r,s;let{env:c}=(0,ts.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===(a=e.town)||void 0===a?void 0:a.url)||""),y=(0,k.useRef)(f);(0,k.useEffect)(()=>{if(e.orgType!==I.$.mfo||!e.isUslugiTab||m&&f===y.current)return;y.current=f;let t=async()=>{var t,n,a,i,l,o,r;let[s,c]=await Promise.allSettled([ez({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}),eV(e.company.url,null===(a=e.region)||void 0===a?void 0:a.url,null===(i=e.town)||void 0===i?void 0:i.url)]),d=(0,ti._)(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=>eH(t,e.town)));let m=(0,ti._)(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===(i=e.region)||void 0===i?void 0:i.url,null===(l=e.town)||void 0===l?void 0:l.url,e.isUslugiTab]),(0,k.useEffect)(()=>{var t,n;if(e.orgType!==I.$.bank||!e.isUslugiTab)return;let a=null===(t=e.activeService)||void 0===t?void 0:t.serviceName,i=!!(null==d?void 0:null===(n=d[a])||void 0===n?void 0:n.data),l=!!a&&p[a],o=f!==y.current;if(i&&l&&!o){e.setQuote(l);return}y.current=f,h(!0);let r=e.company.bic;(async()=>{var t,n,i,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 tr()).data)||void 0===n?void 0:n.content)&&void 0!==g?g:null,y=null==f?void 0:null===(i=f.find(e=>e.url===(null!=h?h:"vse_vkladi")))||void 0===i?void 0:i.id,x=await eD(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([ez({type:e.orgType,company:e.company,regionUrl:null===(c=e.region)||void 0===c?void 0:c.url,townUrl:null===(m=e.town)||void 0===m?void 0:m.url,activeServiceName:a,currentBankServices:o?null:d,tag:e.tag}),b&&y?to(b,y):null,tl(e.pathname)]);u((0,ti._)(w,null)),e.setDepositTagsBanksStatsData((0,ti._)(C,null));let N=(null===(p=(0,ti._)(j,null))||void 0===p?void 0:null===(v=p.content)||void 0===v?void 0:v[0])||null;a&&N&&_(e=>({...e,[a]: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?ta(d,e.town,e.bankTowns):d,[d,e.town,e.bankTowns]);return{organizationServices:(0,k.useMemo)(()=>{var t,n,a,i,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=>eY(t,[e.company])),...(null!==(o=null===(a=e.depositTagsBanksStatsData)||void 0===a?void 0:a.nonPlatformProducts)&&void 0!==o?o:[]).map(t=>tn(t,e.company,c.NEXT_PUBLIC_S3_ASSETS))];return{...x,deposits:{data:r,tags:null==x?void 0:null===(i=x.deposits)||void 0===i?void 0:i.tags,length:r.length,serviceText:x.deposits.serviceText}}},[x,e.company,e.depositTagsBanksStatsData,c.NEXT_PUBLIC_S3_ASSETS]),mfoOffers:m,servicesLoading:g}};var td=n(56227);let tu=(e,t)=>{let n=[];return t?td.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 tm=n(60816),tv=n(33346),tp=n(26819),t_=n.n(tp);let tg=e=>{let t,{baseUrl:n,company:a,orgType:i,generalRating:l}=e,o="banki";i===I.$.mfo&&(o="mfo"),i===I.$.insurance&&(o="kompanija");let r=a.logo||a.logo_mob,s=r&&r.indexOf("http")>=0?{"@type":"ImageObject",url:r}:void 0,c=a.phone||a.maintel,{legal_entities:d}=a;if(Array.isArray(d)&&d.length>0){let e=d[0];"legal_address"in e&&e.legal_address?t=e.legal_address:"address"in e&&(t=e.address)}return{"@context":"https://schema.org","@type":i===I.$.insurance?"InsuranceAgency":"BankOrCreditUnion",name:a.name,description:a.short_description,url:"".concat(n,"/").concat(o,"/").concat(a.url),image:s,...c&&{telephone:c},...a.site&&{sameAs:[a.site]},...l&&{aggregateRating:{"@type":"AggregateRating",ratingValue:l,reviewCount:a.reviews_num,ratingCount:a.reviews_num}},...c&&{contactPoint:{"@type":"ContactPoint",telephone:c}},...i!==I.$.insurance&&t&&{address:{"@type":"PostalAddress",addressLocality:t}}}};var th=n(65377),tf=n(79920);let ty={getLayoutData:async e=>(await (0,eA.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,eA.t)({url:"/api/v1/data/page-data?".concat(n),options:{isHeadlessCMS:!0}})).data||null},getPage:async e=>(await (0,eA.t)({url:"/api/v1/sc-page/".concat(e),options:{isHeadlessCMS:!0}})).data||null};var tx=n(84620),tb=n(84004);(d=f||(f={})).deposits="deposits",d.credits="credits",d.microCredits="microCredits",d.microloans="microloans",d.autoCredits="autoCredits",d.mortgages="mortgages",d.mortgage="mortgage",d.cards="cards",d.creditCards="creditCards",d.mortgageInsurance="mortgageInsurance",d.osago="osago",d["casсo"]="casсo",d.savingsAccounts="savingsAccounts",d.debitCards="debitCards",d.bonds="bonds",d.funds="funds";let tw={[f.bonds]:{checkAll:"obligatsiya-click-link-pokazat-vse-predlozheniya",banner:"obligatsiya-click-banner-narodnyye-obligatsii",offerButtons:["obligatsiya-click-button-podrobnee-odin","obligatsiya-click-button-podrobnee-dva","obligatsiya-click-button-podrobnee-tri"]}},tC=e=>{if(!e)return;let{title:t,buttonUrl:n,description:a,image:i,background:l,textColor:o}=e;return{title:t,url:n,description:a,image:i,backgroundColor:"string"==typeof l?{base:l,hover:""}:l,textColor:null!=o?o:"var(--color-black-500)"}};var tj=n(90138);let tN=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"₽";if("number"!=typeof e||0===e)return"-";let a=Math.abs(e),i=1,l="";a>=1e12?(i=1e12,l="трлн "):a>=1e9?(i=1e9,l="млрд "):a>=1e6&&(i=1e6,l="млн ");let o=a;return t&&(o=Math.floor(10*a/i)/10),Math.floor(o)>=1e4&&(o=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")),o=(0,tj.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},tk=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"bank",a=n===I.$.insurance?"sk":n,i=String(t).padStart(9,"0");return"".concat(e,"/mp-assets/images/").concat(a,"/logo-brandmark-").concat(a,"-").concat(i,".svg")},tT=(e,t,n)=>n&&0!==n.length?(n.length>3?n.slice(0,3):n).map(n=>{let{productId:a,name:i,providerName:l,providerBic:o,minimumAmount:r,rate:s,minimumTerm:c}=n,d=[];return s&&d.push({title:"Ставка",value:"".concat(s,"%")}),c&&d.push({title:"Срок",value:(0,E.oX)(c.type,c.value)}),r&&d.push({title:"Взнос",value:"от ".concat(tN(r,!0,!1)," ₽")}),{id:a,name:i,companyName:l,url:"".concat(e,"/vklady/").concat(a),logo:tk(t,o),units:d}}):[],tA=(e,t)=>t&&0!==t.length?(t.length>3?t.slice(0,3):t).map(t=>{let{id:n,title:a,bank_name:i,online_application:l,bic:o,full_price:r,payment:s,amount:c}=t,d=[];return(null==r?void 0:r.from)&&r.to&&d.push({title:"Полная стоимость кредита",value:(0,tj.m)("".concat(null==r?void 0:r.from,"-").concat(null==r?void 0:r.to,"%"))}),s&&d.push({title:"Платёж в мес.",value:"от ".concat(s," ₽")}),(null==c?void 0:c.to)&&d.push({title:"Сумма",value:"до ".concat(tN(Number(null==c?void 0:c.to),!0,!1)," ₽")}),{id:n,name:a,companyName:i,url:l.url,logo:tk(e,String(o)),units:d}}):[],tS=e=>e&&0!==e.length?(e.length>3?e.slice(0,3):e).map(e=>{let{id:t,title:n,mfo_name:a,online_application:i,logo_mob:l,period:o,amount:r}=e,s=[];return(null==o?void 0:o.from)&&s.push({title:"Срок",value:"от ".concat(null==o?void 0:o.from," дн.")}),(null==r?void 0:r.from)&&s.push({title:"Сумма",value:"от ".concat(tN(Number(null==r?void 0:r.from),!0,!1)," ₽")}),s.push({title:"Рейтинг",value:"5"}),{id:t,name:n,companyName:a,url:i.url,logo:l,units:s,unitsAsColumn:!0,additionalButton:{text:null==i?void 0:i.commercial_desc}}}):[],tR=e=>e&&0!==e.length?(e.length>3?e.slice(0,3):e).map(e=>{let{id:t,title:n,bank_name:a,online_application:i,logo_mob:l,grace_period:o,credit_limit_to:r,first_year_cost:s}=e,c=[];return o&&c.push({title:"Льготный период",value:"до ".concat(o," ").concat((0,w._6)(o,"день","дня","дней"))}),r&&c.push({title:"Кредитный лимит",value:"".concat(tN(r,!0,!1)," ₽")}),s&&c.push({title:"Обслуживание в год",value:"Бесплатно"===s?"0 ₽":s}),{id:t,name:n,companyName:a,url:i.url,logo:l,units:c}}):[],tI=e=>e&&0!==e.length?(e.length>3?e.slice(0,3):e).map(e=>{let{id:t,title:n,bank_name:a,online_application:i,logo_mob:l,service_cost:o,balance_interest:r}=e,s=[];return(null==o?void 0:o.first_year_cost)&&s.push({title:"Обслуживание в мес.",value:null==o?void 0:o.first_year_cost}),(null==r?void 0:r.text)&&s.push({title:"Проценты на остаток",value:null==r?void 0:r.text},{title:"Бонусы",value:null==r?void 0:r.text}),{id:t,name:n,companyName:a,url:i.url,logo:l,units:s}}):[],tB=e=>e&&0!==e.length?(e.length>3?e.slice(0,3):e).map(e=>{let{id:t,title:n,bank_name:a,online_application:i,bank_logo_mob:l,full_price:o,amount:r,first_payment:s}=e,c=[];return(null==o?void 0:o.from)&&o.to&&c.push({title:"Полная стоимость кредита",value:(0,tj.m)("".concat(null==o?void 0:o.from,"-").concat(null==o?void 0:o.to,"%"))}),(null==r?void 0:r.to)&&c.push({title:"Сумма кредита",value:"до ".concat(tN(Number(null==r?void 0:r.to),!0,!1)," ₽")}),(null==s?void 0:s.from)&&c.push({title:"Первый взнос",value:"от ".concat(null==s?void 0:s.from,"%")}),{id:t,name:n,companyName:a,url:i.url,logo:l,units:c}}):[],tL=e=>e&&0!==e.length?(e.length>3?e.slice(0,3):e).map(e=>{let{id:t,title:n,bank_name:a,online_application:i,logo_mob:l,full_price:o,amount:r,first_payment:s}=e,c=[];return(null==o?void 0:o.from)&&o.to&&c.push({title:"Полная стоимость кредита",value:(0,tj.m)("".concat(null==o?void 0:o.from,"-").concat(null==o?void 0:o.to,"%"))}),(null==r?void 0:r.from)&&c.push({title:"Сумма кредита",value:"от ".concat(tN(Number(null==r?void 0:r.from),!0,!1)," ₽")}),(null==s?void 0:s.from)&&c.push({title:"Первый взнос",value:"от ".concat(null==s?void 0:s.from,"%")}),{id:t,name:n,companyName:a,url:i.url,logo:l,units:c}}):[],tP=(e,t)=>t&&0!==t.length?(t.length>3?t.slice(0,3):t).map(t=>{let{isin:n,displayName:a,issuerName:i,logo:l,price:o,paymentSizePercent:r,redemptionDate:s}=t,c=[];return o&&c.push({title:"Цена за шт",value:"".concat(o,"₽")}),r&&c.push({title:"Размер ставки",value:"".concat(r,"%")}),s&&c.push({title:"Погашение",value:(0,E.p6)(s)}),{id:n,name:a,companyName:i,url:"".concat(e,"/invest/bonds/").concat(n),logo:l,units:c}}):[],tO=(e,t,n)=>n&&0!==n.length?(n.length>3?n.slice(0,3):n).map(n=>{let{id:a,logoKey:i,managementCompanyName:l,displayName:o,yield:r,netAssetValue:s,minimalPurchaseAmount:c}=n,d=[];r&&d.push({title:r.displayName,value:r.value?(0,tj.m)("+".concat(r.value,"%")):"—",textColor:"var(--color-green-600)"}),s&&d.push({title:"Активы фонда, ₽ (СЧА)",value:(0,tj.m)(tN(s,!0,!1))}),c&&d.push({title:"Минимальная инвестиция",value:"от ".concat(tN(c,!0,!1)," ₽")});let u=n.tags.filter(e=>{var t,n;return null===(n=e.params.web)||void 0===n?void 0:null===(t=n.badge)||void 0===t?void 0:t.visible}).sort((e,t)=>{var n,a,i,l;let o=null===(a=e.params.web)||void 0===a?void 0:null===(n=a.badge)||void 0===n?void 0:n.priority,r=null===(l=t.params.web)||void 0===l?void 0:null===(i=l.badge)||void 0===i?void 0:i.priority,s=null!=o,c=null!=r;return s||c?s?c?o-r:-1:1:0}).map((e,t)=>{var n,a;return{label:e.displayName,variant:null===(a=e.params.web)||void 0===a?void 0:null===(n=a.badge)||void 0===n?void 0:n.variant,order:t}});return{id:a,name:o,companyName:l,url:"".concat(e,"/invest/funds/").concat(a),logo:"".concat(t,"/mp-assets/images/logo-brandmark-bank-").concat(i,".svg"),units:d,tags:u}}):[],tM=(e,t,n,a)=>{switch(n){case f.deposits:return tT(e,t,a);case f.credits:return tA(t,a);case f.microCredits:return tS(a);case f.cards:return tR(a);case f.debitCards:return tI(a);case f.mortgages:return tB(a);case f.autoCredits:return tL(a);case f.bonds:return tP(e,a);case f.funds:return tO(e,t,a);default:return[]}},tE={deposits:"/api/v1/deposits/top/multi",credits:"/money_data/Credits.json?limit=3&order=asc&type=finuslugi&sort=rate",microCredits:"/money_data/MicroCredits.json?limit=3&order=asc&sort=rate&archive=0",cards:"/money_data/Cards.json?limit=3&order=asc&type=finuslugi&currency=1&sort=rate&archive=0",debitCards:"/money_data/DebitCards.json?limit=3&currency=1&order=asc&sort=rate&archive=0",mortgages:"/money_data/Mortgages.json?limit=3&currency=1&archive=0",autoCredits:"/money_data/AutoCredits.json?limit=3&order=asc&sort=rate&archive=0",bonds:"/api/v1/bonds/best-offer?offset=0&limit=3",funds:"/api/v1/funds/top?sortBy=YIELD_YEAR&sortOrder=DESC&limit=3"},tD=[{maximumInDays:74,minimumInDays:0},{maximumInDays:164,minimumInDays:75},{maximumInDays:284,minimumInDays:165}],tF=async e=>{let t=tE[e];if(!t)return[];if(e===f.deposits)return(await Promise.all(tD.map(e=>(0,eA.t)({url:t,options:{isHeadlessCMS:!0},config:{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({termConditions:[e]})}})))).flatMap(e=>{var t,n;if(e.error)return console.error(e.error),[];let a=null===(n=e.data)||void 0===n?void 0:null===(t=n.topList[0])||void 0===t?void 0:t.topDeposit;return a?[a]:[]}).sort((e,t)=>(0,E.Nx)(e.minimumTerm)-(0,E.Nx)(t.minimumTerm));let n=e===f.bonds,a=e===f.funds,i=await (0,eA.t)({url:t,options:{isHeadlessCMS:n||a}});if(i.error&&console.error(i.error),a){var l;return null!==(l=i.data)&&void 0!==l?l:[]}return null!==i.data?i.data[n?"data":e]:[]},tU=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"homepage",t=await (0,tb.S)(),n=await ty.getPageData("BestOffers",e);if(!(null==n?void 0:n.value))return null;let a=n.value.chips.filter(e=>e.isActive);a.push({name:"Фонды",label:"",banner:{image:{url:"".concat(t.NEXT_PUBLIC_S3_ASSETS,"/mp-assets/investment/advantages/lion_with_background_ladder.png"),width:336,height:"auto"},title:"Авторские фонды",isActive:!0,buttonUrl:"/invest/funds",textColor:"var(--color-white)",background:{base:"var(--color-black-700)",hover:"var(--color-black-700)"},buttonText:"",description:"Новая форма коллективных инвестиций"},offers:[],urlText:"Показать все предложения",isActive:!0,checkAllUrl:"/invest/funds",productType:"funds"});let i=await Promise.allSettled(a.map(async e=>{let t=e.offers;return t&&0!==t.length||(t=await tF(e.productType)),{...e,offers:t}})).then(e=>e.filter(e=>"fulfilled"===e.status).map(e=>e.value));return({...n.value,chips:i}).chips.map(e=>{let{productType:n,name:a,checkAllUrl:i,offers:l,banner:o}=e,r=tw[n],s=tC(o);s&&(null==r?void 0:r.banner)&&(s.className=r.banner);let c=tM(t.NEXT_PUBLIC_BASE_URL,t.NEXT_PUBLIC_S3_ASSETS,n,l).map((e,t)=>({...e,buttonClassName:(null==r?void 0:r.offerButtons[t])||null}));return{productType:n,name:a,checkAllUrl:i,offers:c,banner:s,checkAllLinkClassName:(null==r?void 0:r.checkAll)||""}})};var tW=n(30318);async function tz(e){var t,n,a,i,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:k=!1}=e,{regionUrl:T,townUrl:A,companyUrl:S,pointUrl:R}=(0,tf.jO)(b||[]),B=(0,tf.lw)(b);if(B&&!R)return(0,N.notFound)();let L=null,P="true"===w,O=C||tx.Q.Atm,M=null,E=null,[D,F,U,W,z]=await Promise.allSettled([P||B?[]:tU(),P||B?null:ty.getPageData("FAQ","adresa"),P||B?null:(0,ep.Jh)((0,ep.K1)({includeCompany:!0}).reviews,1,10),B?(0,th.O9)(R||""):null,B?ty.getPageData("HomeSupport","homepage-new"):null]);async function V(e){let t=[tW.H9[e]],n=(0,th.bv)({regionUrl:T,townUrl:A,orgUrl:S,marker:t}),a=await (0,th.ZK)(n,j);return{dataUrl:n,addressesData:a}}B||(x=await V(O));let H=[tx.Q.Atm,tx.Q.branch,tx.Q.Legal].filter(e=>e!==O);if(k&&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&&(O=e,x=await V(O))}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&&(O=e,x=await V(O))}}let{dataUrl:q,addressesData:X}=x||{},Y=null,Z=(0,ti._)(U,null)||null;if(Z){let e=(0,eg.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,eC.W)([t],e,I.$.bank,t.company)[0]),registerButton:{link:"/otzyvy",text:"Смотреть все отзывы"}}}}let Q=[],$=0;(null==X?void 0:X.data)&&(Q=(null===(d=X.data)||void 0===d?void 0:d.addresses)||[],$=(null===(u=X.data)||void 0===u?void 0:u.maxPage)||0);let G=null;if(S&&(null===(n=Q[0])||void 0===n?void 0:null===(t=n.company)||void 0===t?void 0:t.name)){let e="com";(null===(m=Q[0])||void 0===m?void 0:m.mfo_id)&&(e="mfo"),(null===(v=Q[0])||void 0===v?void 0:v.sk_id)&&(e="sk"),G={label:null===(_=Q[0])||void 0===_?void 0:null===(p=_.company)||void 0===p?void 0:p.name,value:"".concat(e,"_").concat(S)}}(T||A)&&(null===(i=Q[0])||void 0===i?void 0:null===(a=i.town)||void 0===a?void 0:a.name)&&(M={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},E={id:Q[0].town_id,...null===(f=Q[0])||void 0===f?void 0:f.town});let J=null;if("fulfilled"===W.status&&W.value&&(J=(L=W.value||null).company),B&&L&&(T||A)){M={url:T},E={url:A||""};let e={url:A||"",region_url:T||"",name:"",name_p:""};L.town=e,L.distance_self=null===(y=L.distance_self)||void 0===y?void 0:y.map(t=>({...t,town:e}))}return!B||J&&L||(0,N.notFound)(),{addresses:Q,region:M,town:E,selectedFk:G?[G]:[],maxPage:$,reviews:Y,company:J,address:L,dataUrl:q,faqBlockData:(0,ti._)(F,null),supportBlockData:(null===(l=(0,ti._)(z,null))||void 0===l?void 0:l.value)||null,pageIsSection:P,isDetailPage:B,initRadioType:O,bestOffersData:(0,ti._)(D,[])}}let tV=async()=>(await (0,eA.t)({url:"/money_data/BankTowns.json"})).data,tH=(e,t,n)=>({slug:(0,tf.ly)({[t?"fk":"sk"]:[e]}).replace("/adresa/","").split("/"),isSection:"true",radioType:n,fallbackToAnyNonEmptyRadio:t});function tq(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 tX=e=>{let{ssr:t,orgType:n,company:a,isInsurance:i,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),[S,R]=(0,k.useState)(t.tags),B=(0,ep.K1)({type:n,companyIds:[a.id],orderDesc:!0}),L=async()=>{var e,d,p,k,S,L,P,O,M,E,D,F,U,W,z,V,H,q;_(!0);let X=i&&"about"===o&&!g?eF():null,Y=!f&&"about"===o,Z=n===I.$.bank?tx.Q.Atm:tx.Q.branch,Q=Y?tz(tH(a.url,l,Z)):null,$=("ratings"!==o||j)&&("uslugi"!==o||x)?null:(0,ep.Jh)(B.reviews,1,4),G="ratings"!==o||T?null:(0,ep.e9)(B.ratings),J=l&&"uslugi"===o&&!s?tV():null,K="uslugi"===o?tl(v):null,ee="uslugi"===o&&l?eM():null,et=l&&"uslugi"===o&&t.bankProviderId&&t.depositTagId?to(t.bankProviderId,t.depositTagId):null,[en,ea,ei,el,eo,er,es,ec]=await Promise.allSettled([X,Q,$,G,J,K,ee,et]);g||h((null===(M=(0,ti._)(en,null))||void 0===M?void 0:null===(O=M.data)||void 0===O?void 0:O.ins_types)||null),f||y((0,ti._)(ea,null));let ed=(0,ti._)(ei,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,eg.c)(ed)),T||A((0,ti._)(el,null)),s||c((0,ti._)(eo,null)),u||m((null===(D=(0,ti._)(er,null))||void 0===D?void 0:null===(E=D.content)||void 0===E?void 0:E[0])||null);let eu=(0,ti._)(ec,null),em=(0,ti._)(es,null)||null;R({data:{autoCredit:null!==(F=null==em?void 0:null===(e=em.data)||void 0===e?void 0:e.autoCredit)&&void 0!==F?F:[],card:null!==(U=null==em?void 0:null===(d=em.data)||void 0===d?void 0:d.card)&&void 0!==U?U:[],credit:null!==(W=null==em?void 0:null===(p=em.data)||void 0===p?void 0:p.credit)&&void 0!==W?W:[],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===(S=em.data)||void 0===S?void 0:S.microCredit)&&void 0!==V?V:[],mortgage:null!==(H=null==em?void 0:null===(L=em.data)||void 0===L?void 0:L.mortgage)&&void 0!==H?H:[],deposit:null!==(q=null==eu?void 0:null===(P=eu.tagList)||void 0===P?void 0:P.map(tq))&&void 0!==q?q:[]}}),r(eu),_(!1)};return(0,k.useEffect)(()=>{d("uslugi"===o),L()},[o]),{loading:p,insuranceTypes:g,adresaProps:f,reviews:x,reviewsMaxPage:w,serviceTypes:j,companyPeopleRatings:T,tags:S}},tY=e=>{var t;return null===(t=Object.values(e||{}))||void 0===t?void 0:t.reduce((e,t)=>e+t.length,0)};var tZ=n(59226),tQ=n(89487);let t$=e=>{(0,k.useEffect)(()=>{if(!e)return;let{title:t,description:n,alternates:{canonical:a}}=e;document.title=t;let i=document.querySelector('meta[name="description"]');if(i)i.setAttribute("content",n||"");else{let e=document.createElement("meta");e.name="description",e.content=n||"",document.head.appendChild(e)}let l=document.querySelector('link[rel="canonical"]');l?l.setAttribute("href",a||""):((l=document.createElement("link")).rel="canonical",l.href=a||"",document.head.appendChild(l))},[e])},tG=(e,t)=>{let n=(0,k.useRef)(!0),a=(0,k.useRef)(null),i=(0,N.usePathname)();(0,k.useEffect)(()=>{if(n.current){n.current=!1,a.current=i;return}i!==a.current&&(e(),a.current=i)},[...t,e,i])},tJ=async e=>{var t;return(null===(t=(await (0,eA.t)({url:"/money_data/Description.json?url=".concat(e)})).data)||void 0===t?void 0:t.description)||null},tK=async e=>{var t,n,a;let i=(null==e?void 0:null===(t=e.company)||void 0===t?void 0:t.name_r)||(null==e?void 0:null===(n=e.company)||void 0===n?void 0:n.name)||"",l=null==e?void 0:e.locationText,o=null==e?void 0:e.activeTag,r=await eL({companyName:e.company.url,service:"deposit"}),s=((null==r?void 0:null===(a=r.data)||void 0===a?void 0:a.deposits)||[]).map(e=>{var t,n;return(null==e?void 0:null===(n=e.interest_rate)||void 0===n?void 0:null===(t=n.rates)||void 0===t?void 0:t[0].rate)||0});return"".concat(o?o.name:"Вклады"," ").concat(i).concat(l," для физических лиц на сегодня со ставкой до ").concat(Math.max(...s),"%")},t0=async(e,t,n,a,i,l,o,r)=>{let s=B(i,e),c=P(e),d=L(i,e),u=(0,W.xB)(t,""),m=n&&Object.values(W.RV).some(e=>e==="/".concat(n)),v=s&&!u.some(e=>e.link===n),p=d&&!W.hu[n];if(n&&!n.includes("reg_")&&(v||c&&"mikrozajmy"!==n||p)&&!m)return(0,N.notFound)();let _=u.find(e=>a.includes(e.link)),g=(0,W.i7)(e,i,s,!1),h=g.find(e=>eN(e,a))||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 i===I.$.insurance&&"ratings"===h.id?"Рейтинг страховой компании ".concat(e.name):(null==_?void 0:_.serviceName)==="deposits"?await tK({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 t1=n(58560);let t3=async e=>{if(!e)return null;let t=String(e).trim(),n=t.startsWith("0")?t:"0".concat(t),a="/deposits/api/proxy/new/api/v1/deposits/by-banks/".concat(encodeURIComponent(n));return(await (0,eA.t)({url:a})).data};async function t6(e){var t,n,a,i,l;let o=(await (0,tb.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=ek(d),_=null==e?void 0:e.find(e=>e.startsWith("teg_")),g=W._V.includes(r)?I.$.insurance:W.N3.includes(r)?I.$.mfo:I.$.bank,h=g===I.$.bank,f=g===I.$.insurance,y=await eE(s,g);if(!y||!h&&"uslugi"===c||c&&!W.pj.includes("/".concat(c))&&m||c&&!c.includes("reg_")&&!W.jl.includes("/".concat(c)))return(0,N.notFound)();let[x]=Object.entries(W.ys).find(e=>{let[t,n]=e;return n===c})||[],b=await (0,t1.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,k,T,A,S]=await Promise.allSettled([(0,t1.s)({regions:!0}),tJ(d),ez({type:g,company:y,regionUrl:m,townUrl:v,activeServiceName:x,tag:_}),tV(),h&&"uslugi"===p?t3(w):null,"uslugi"!==p||f?null:eM()]),R=null,B=null;"fulfilled"===C.status&&C.value&&(B=(null==(R=C.value.regions.find(e=>{let{url:t}=e;return t===m})||null)?void 0:R.towns.find(e=>{let{url:t}=e;return t===v}))||null,R&&!B&&(B=R.towns.find(e=>{let{main:t}=e;return t})||null));let L=(0,ti._)(T,null),P=(0,ti._)(A,null),O=null;if("fulfilled"===k.status&&k.value&&(O=ta(k.value,B,L),(null==P?void 0:P.length)&&(null==O?void 0:O.deposits))){let e=(null==O?void 0:O.deposits.length)+(null==P?void 0:P.length);O.deposits.length=e}let M="",E="fulfilled"===j.status?j.value:"",D=(0,ti._)(S,null),F=null!==(i=(0,W.xB)(O,"").find(e=>d.includes(e.link)))&&void 0!==i?i:null,U=(null==F?void 0:F.serviceTagName)&&null!==(l=null==D?void 0:null===(a=D.data)||void 0===a?void 0:a[null==F?void 0:F.serviceTagName])&&void 0!==l?l:[],z=null==U?void 0:U.find(e=>"teg_".concat(e.url)===_);y&&(M=await t0(y,O,c,d,g,R,B,z));let V=e?"/".concat(d):"";return{title:M,description:E,alternates:{canonical:"".concat(o).concat(V)}}}let t2=()=>{let[e,t]=(0,k.useState)(null),n=(0,N.usePathname)();return tG(()=>{(async()=>{let e=n.split(/[?#]/)[0].split("/").filter(Boolean);t(await t6(e))})()},[n]),e};var t4=n(91672);let t5={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},t7=e=>{let t={dative:"предложению",genitive:"предложения",prepositional:"о предложении"};if(!e)return t;switch(!0){case t5.isAutoCredit(e):return{dative:"автокредиту",genitive:"автокредита",prepositional:"об автокредите"};case t5.isDebitCard(e):return{dative:"дебетовой карте",genitive:"дебетовой карты",prepositional:"о дебетовой карте"};case t5.isCard(e):return{dative:"карте",genitive:"карты",prepositional:"о карте"};case t5.isCredit(e):return{dative:"кредиту",genitive:"кредита",prepositional:"о кредите"};case t5.isDeposit(e):return{dative:"вкладу",genitive:"вклада",prepositional:"о вкладе"};case t5.isMortgage(e):return{dative:"ипотеке",genitive:"ипотеки",prepositional:"об ипотеке"};case t5.isMicroCredit(e):return{dative:"займу",genitive:"займа",prepositional:"о займе"};default:return t}},t8=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}}},t9={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"},ne={background:"var(--color-blue-200)"},nt={background:"var(--color-purple-200)"},nn={background:"var(--color-pink-100)"},na=e=>(0,y.jsx)("span",{dangerouslySetInnerHTML:{__html:e}}),ni=e=>{var t;return(null===(t=e.online_application)||void 0===t?void 0:t.type)===3},nl=e=>{var t;return(null===(t=e.online_application)||void 0===t?void 0:t.commercial)===1},no=e=>{var t,n,a;let i=[],l=[],o=null===(t=e.full_price)||void 0===t?void 0:t.from,r=null===(n=e.full_price)||void 0===n?void 0:n.to;void 0!==o&&void 0!==r&&i.push({name:t9.FULL_PRICE,label:"Полная стоимость кредита",value:(0,tj.m)("".concat(o,"-").concat(r,"%"))});let s=e.payment;s&&i.push({name:t9.MONTHLY_PAYMENT,label:"Ежемесячный платеж",preposition:"от",value:na(tN(s))});let c=null===(a=e.amount)||void 0===a?void 0:a.to;return c&&i.push({name:t9.AMOUNT,label:"Сумма",preposition:"до",value:na(tN(Number(c)))}),l.push({text:"Кредит",style:ne}),ni(e)?l.push({text:"Подача заявки на Финуслугах",color:"purple"}):l.push({text:"Открытие в банке",color:"primary"}),e.loan.not_required&&l.push({text:"Без залога",color:"primary"}),l.push({text:e.income_proof.not_required?"Без справок":"Требуется подтверждение дохода",color:"primary"}),{fields:i,chips:l}},nr=e=>{let t=[],n=[],a=e.first_year_cost;if(a){let e="Бесплатно"===a?a:tN(+a.replace(/[^\d]/g,""));t.push({name:t9.YEAR_COST,label:"Обслуживание в год",value:na(e)})}let i=e.credit_limit_to;i&&t.push({name:t9.LIMIT,label:"Кредитный лимит",preposition:"до",value:na(tN(Number(i)))});let l=e.grace_period;return l&&t.push({name:t9.GRACE_PERIOD,label:"Льготный период",preposition:"до",value:"".concat(l," ").concat((0,w._6)(l,"дня","дней","дней"))}),n.push({text:"Кредитные карты",color:"orange"}),1===e.online_application.unplatform_banks?n.push({text:"Подача заявки на Финуслугах",style:nt}):nl(e)&&3!==e.online_application.type?n.push({text:"Подача заявки на сайте банка",style:nt}):3!==e.online_application.type&&n.push({text:"Открытие в банке",style:nt}),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}},ns=e=>{var t,n,a,i,l,o,r,s;let c=[],d=[],u=null===(n=e.interest_rate)||void 0===n?void 0:null===(t=n.rates[0])||void 0===t?void 0:t.rate;u&&c.push({name:t9.RATE,label:"Ставка",value:"".concat(u,"%")});let m=null===(i=e.interest_rate)||void 0===i?void 0:null===(a=i.rates[0])||void 0===a?void 0:a.term_from;if(m){let t=m<e.interest_rate.rates[0].term_to?"от":"",n="";n=m<30?"".concat(m," дн."):m>365?"".concat(Math.round(m/365)," ").concat((0,w._6)(m,"год","года","лет")):"".concat(Math.round(m/30)," мес."),c.push({name:t9.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=t8(e.currency_id).unit;c.push({name:t9.AMOUNT,label:"Сумма вклада",preposition:"от",value:na("".concat(tN(v,!0,t)))})}let p=!!e.type.saving_account;return d.push(p?{text:"Накопительный счет",style:ne}:{text:"Вклад",color:"orange"}),ni(e)?d.push({text:"Открытие онлайн на Финуслугах",color:"purple"}):nl(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}},nc=e=>{var t,n,a,i;let l=[],o=[],r=null===(t=e.full_price)||void 0===t?void 0:t.from,s=null===(n=e.full_price)||void 0===n?void 0:n.to;r&&s&&l.push({name:t9.FULL_PRICE,label:"Полная стоимость кредита",value:(0,tj.m)("".concat(r,"-").concat(s,"%"))});let c=null===(a=e.amount)||void 0===a?void 0:a.to;c&&l.push({name:t9.AMOUNT,label:"Сумма кредита",preposition:"до",value:na(tN(Number(c)))});let d=null===(i=e.first_payment)||void 0===i?void 0:i.from;return d&&l.push({name:t9.FIRST_PAYMENT,label:"Первый взнос",preposition:"от",value:"".concat(d,"%")}),o.push({text:"Ипотека",color:"green"}),ni(e)?o.push({text:"Открытие онлайн на Финуслугах",color:"purple"}):nl(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}},nd=e=>{var t,n,a,i;let l=[],o=[],r=null===(t=e.full_price)||void 0===t?void 0:t.from,s=null===(n=e.full_price)||void 0===n?void 0:n.to;r&&s&&l.push({name:t9.FULL_PRICE,label:"Полная стоимость кредита",value:(0,tj.m)("".concat(r,"-").concat(s,"%"))});let c=null===(a=e.amount)||void 0===a?void 0:a.from;c&&l.push({name:t9.AMOUNT,label:"Сумма",preposition:"от",value:na(tN(Number(c)))});let d=null===(i=e.first_payment)||void 0===i?void 0:i.from;return d&&l.push({name:t9.FIRST_PAYMENT,label:"Первый взнос",preposition:"от",value:"".concat(d,"%")}),o.push({text:"Автокредит",style:nn}),nl(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}},nu=e=>{var t,n,a,i,l;let o=[],r=[],s=(null===(n=e.service_cost)||void 0===n?void 0:null===(t=n.custom_text)||void 0===t?void 0:t.content)||(null===(a=e.service_cost)||void 0===a?void 0:a.first_year_cost);if(s){let e="Бесплатно"===s?s:tN(+s.replace(/[^\d]/g,""));e&&o.push({name:t9.SERVICE_COST,label:"Обслуживание в год",value:na(e)})}let c=e.balance_interest_number?"".concat(e.balance_interest_number,"%"):"Нет";o.push({name:t9.BALANCE_INTEREST,label:"Проценты на остаток",value:c});let d=null;"Нет"!==e.discounts.text&&(d=e.discounts.text),e.cash_back.has&&(d="Кэшбэк");let u=String(null==e?void 0:null===(l=e.discounts)||void 0===l?void 0:null===(i=l.text)||void 0===i?void 0:i.toLowerCase());return u.includes("путешествия")&&(d="Мили"),u.includes("торговые сети")&&(d="Баллы"),d&&o.push({name:t9.BONUS,label:"Бонусы",value:d}),r.push({text:"Дебетовая карта",color:"orange"}),nl(e)&&3!==e.online_application.type?r.push({text:"Подача заявки на сайте банка",style:nt}):3!==e.online_application.type&&r.push({text:"Открытие в банке",style:nt}),e.online_application.commercial_desc&&r.push({text:e.online_application.commercial_desc,color:"primary"}),{fields:o,chips:r}},nm=e=>{let t=[],n=+e.term_without_percents;n&&t.push({name:t9.TERM_WITHOUT_PERCENTS,label:"Срок без %",value:"".concat(n," ").concat((0,w._6)(Number(n),"день","дня","дней"))}),e.amount.to&&t.push({name:t9.AMOUNT,label:"Сумма",value:na(tN(Number(e.amount.to),!0,!1)),preposition:"до"});let a=e.period.to;return a&&t.push({name:t9.TERM,label:"Срок",value:"".concat(a," ").concat((0,w._6)(Number(a),"дня","дней","дней")),preposition:"до"}),{fields:t,chips:[]}},nv=e=>{let t=[],n=[];if(t5.isCredit(e)){let{fields:a,chips:i}=no(e);t=a,n=i}if(t5.isCard(e)){let{fields:a,chips:i}=nr(e);t=a,n=i}if(t5.isDeposit(e)){let{fields:a,chips:i}=ns(e);t=a,n=i}if(t5.isMortgage(e)){let{fields:a,chips:i}=nc(e);t=a,n=i}if(t5.isAutoCredit(e)){let{fields:a,chips:i}=nd(e);t=a,n=i}if(t5.isDebitCard(e)){let{fields:a,chips:i}=nu(e);t=a,n=i}if(t5.isMicroCredit(e)){let{fields:a,chips:i}=nm(e);t=a,n=i}return{fields:t,chips:n}};var np=n(75950),n_=n.n(np),ng=n(37953),nh=n.n(ng);let nf=e=>{let{label:t,preposition:n,value:a,isTitle:i}=e,l=n?"".concat(n," ").concat(a):a,o=i&&"string"==typeof a?l:"";return(0,y.jsxs)("div",{className:(0,j.Z)(nh().group,i&&nh().titleGroup),children:[(0,y.jsx)("p",{className:nh().groupSub,title:i&&"string"==typeof t?t:"",children:t}),(0,y.jsxs)("p",{className:(0,j.Z)(nh().groupContent,n&&nh().nowrap),title:o,children:[n&&(0,y.jsx)("span",{className:nh().preposition,children:n})," ",a]})]})};var ny=n(87334),nx=n(95777);let nb=e=>{let{offer:t,company:n,isLastOfferOnPage:a,order:i,handleOpenDetailInfo:l,isWhiteCard:o=!1}=e,{env:r}=(0,ts.k)(),s=(0,N.usePathname)(),c=P(n),d=(0,k.useMemo)(()=>({offerId:String(t.id),order:i,category:"mfo"}),[t.id,i]),u=function(e,t){let[n,a]=(0,k.useState)(""),i=(0,ny.u)(),l=(0,nx.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:a,utmMedium:i,utmCampaign:l,utmTerm:o,utmContent:r,clickId:s}=t;void 0!==n&&e.set("page_path",n),void 0!==a&&e.set("utm_source",a),void 0!==i&&e.set("utm_medium",i),void 0!==l&&e.set("utm_campaign",l),void 0!==o&&e.set("utm_term",o),void 0!==r&&e.set("utm_content",r),void 0!==s&&e.set("ext_id",s)})(t.searchParams,i),function(e,t){let{browserId:n,sessionId:a,customerId:i,yandexId:l}=t;void 0!==l&&e.set("t6",l),void 0!==a&&e.set("t7",a),void 0!==n&&e.set("t8",n),void 0!==i&&e.set("t9",i)}(t.searchParams,l),void 0!==o&&t.searchParams.set("cms_offer_id",o),void 0!==d&&t.searchParams.set("order",d),void 0!==c&&t.searchParams.set("category",c),a(t.toString())},[e,i,l,o,d,c]),n}(t.online_application.url,d),m=r.NEXT_PUBLIC_BASE_URL,{fields:v,chips:p}=nv(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]),h=e=>()=>{(0,es.D)({eventCategory:W.qL,eventActionType:es.i.offer,eventActionText:(0,ec.b)(t.title),eventLabel:e})};return(0,y.jsxs)("div",{className:(0,j.Z)(n_().card,{[n_().paddingForButton]:a,[n_().whiteCard]:o}),children:[(0,y.jsxs)("div",{className:n_().top,children:[(0,y.jsxs)("div",{className:n_().topContent,children:[(0,y.jsxs)("div",{className:n_().bankInfo,children:[(0,y.jsx)("div",{className:n_().icon,children:(0,y.jsx)(t4.D,{url:(0,eh.A)(n)||n.url,type:(0,eh.A)(n)?"bank":"mfo",width:40,height:40,companyName:n.name})}),(0,y.jsx)(nf,{label:t.title,value:n.name,isTitle:!0})]}),(0,y.jsx)("div",{className:n_().groups,children:v.map(e=>e.value&&(0,y.jsx)(nf,{label:e.label,preposition:e.preposition,value:e.value},e.name))})]}),(0,y.jsx)("div",{className:n_().controls,children:(0,y.jsx)("div",{className:n_().iconButton,onClick:e=>l(e,t,u),children:(0,y.jsx)(x.IconFdsInfoCircleO,{className:n_().iconDetail,size:20})})})]}),(0,y.jsxs)("div",{className:n_().bottom,children:[p.length>0&&(0,y.jsx)("div",{className:n_().chips,children:p.map(e=>(0,y.jsx)("div",{className:n_().chipWrapper,children:(0,y.jsx)(C.Vp,{label:e.text,variant:e.color,className:n_().chip,style:e.style,rounded:!0})},e.text))}),(0,y.jsxs)("div",{className:n_().buttons,children:[(0,y.jsx)(C.zx,{className:n_().offerButton,variant:"secondary",size:"xs",label:"Подробнее",as:"a",target:"_blank",href:g,onClick:h(g)}),_&&(0,y.jsx)(C.zx,{rel:"nofollow",size:"xs",label:"Оформить",as:"a",target:"_blank",href:u,onClick:h(t.online_application.url)})]})]}),a&&(0,y.jsx)("div",{className:n_().lastOfferCornerGradient})]},t.id)};var nw=n(13466),nC=n(27573),nj=n.n(nC);let nN=e=>{let{maxHeight:t=300,className:n,style:a,children:i,...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,y.jsxs)("div",{...l,ref:d,className:(0,j.Z)(nj().container,{[nj().containerOverflow]:s,[nj().containerOpen]:s&&o===t},n),style:{height:s?o:"auto",...a},children:[i,s&&(0,y.jsx)("button",{className:nj().button,onClick:()=>{r(e=>e===t?"auto":t)},children:o===t?"Показать ещё":"Скрыть"})]})};var nk=n(43435),nT=n.n(nk);let nA=e=>e?e.replace(/\b(\d{1,2})\.(\d{1,2})\.(\d{2,4})\b|\b(\d+)\.(\d+)\b/g,(e,t,n,a,i,l)=>t&&n&&a?e:"".concat(i,",").concat(l)):"",nS=e=>{let{text:t}=e;return(0,y.jsx)(nN,{className:nT().rowValue,children:(0,y.jsx)("div",{className:nT().rowValue,dangerouslySetInnerHTML:{__html:nA(t)}})})},nR=e=>{let{title:t,text:n}=e;return(0,y.jsxs)("li",{className:nT().row,children:[(0,y.jsx)("div",{className:nT().rowLabel,children:t}),Array.isArray(n)?(0,y.jsx)("div",{className:nT().rowValue,children:n.map(e=>(0,y.jsx)(nS,{text:e},e))}):(0,y.jsx)(nS,{text:n})]},t)},nI=e=>{let{params:t,terms:n,aboutBank:a,actualInfo:i}=e;return(0,y.jsxs)("div",{className:nT().content,children:[!!t.rows.length&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("h3",{className:nT().listTitle,children:t.title}),(0,y.jsx)("ul",{className:nT().list,children:t.rows.map(nR)})]}),!!n.rows.length&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("h3",{className:nT().listTitle,children:n.title}),(0,y.jsx)("ul",{className:nT().list,children:n.rows.map(nR)})]}),!!a.rows.length&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("h3",{className:nT().listTitle,children:a.title}),(0,y.jsx)("ul",{className:nT().list,children:a.rows.map(nR)})]}),(0,y.jsx)("span",{className:(0,j.Z)(nT().actualDateOffer,nT().actualDate),children:i})]})},nB=e=>{if(e<12)return"".concat(e," ").concat((0,w._6)(e,"месяц","месяца","месяцев"));let t=Math.floor(e/12),n=e%12;return"".concat(t," ").concat((0,w._6)(t,"год","года","лет"))+(n?" ".concat(n," ").concat((0,w._6)(n,"месяц","месяца","месяцев")):"")},nL=e=>{let t=Math.floor(e/12),n=e%12,a=[];return t>0&&a.push(t.toString(),(0,w._6)(t,"года","лет","лет")),n>0&&a.push(n.toString(),(0,w._6)(n,"месяца","месяцев","месяцев")),a.join(" ")},nP=(e,t)=>["от",nL(e),"до",nL(t)].join(" "),nO="Нет",nM=e=>null!=e&&""!==e,nE=(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>")},nD=e=>{let{discounts:t,discounts_comment:n,custom_discounts:a}=e;return[{text:t,comment:n},...a].map(e=>{let{text:t,comment:n}=e;return t||n?"<h6>".concat(t,"</h6><p>").concat(null!=n?n:"","</p>"):""})},nF=e=>{let{first_year_cost:t,second_year_cost:n,first_year_cost_comment:a}=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!=a?a:"","</p>"):""},nU=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"h6",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"p";return"<".concat(n,">").concat(e,"</").concat(n,">").concat(t?"<".concat(a,">").concat(t,"</").concat(a,">"):"")},nW=e=>{var t,n,a,i,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;nM(x)&&nM(b)&&y.push({title:"Полная стоимость кредита",text:(0,tj.m)("".concat(x,"-").concat(b,"%"))});let w=null===(a=e.interest_rate)||void 0===a?void 0:a.from,C=null===(i=e.interest_rate)||void 0===i?void 0:i.to;nM(w)&&nM(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(nM(N)){let e=j===N,t=tN(Number(j),!1,!1),n=tN(Number(N),!1),a=nM(j)?"".concat(t," - ").concat(n):"до ".concat(n);y.push({title:"Возможная сумма кредита",text:e?"до ".concat(n):a})}let k=null===(r=e.period)||void 0===r?void 0:r.from,T=null===(s=e.period)||void 0===s?void 0:s.to;nM(k)&&nM(T)&&y.push({title:"Срок погашения кредита",text:k===T?nB(Number(k)):nP(Number(k),Number(T))});let A=null===(c=e.purpose)||void 0===c?void 0:c.text;A&&y.push({title:"Цель кредита",text:A});let S=[],R=null===(d=e.form)||void 0===d?void 0:d.text;R&&S.push({title:"Форма выдачи",text:nE(R)});let I=null===(u=e.application_term)||void 0===u?void 0:u.text;I&&S.push({title:"Срок рассмотрения заявки",text:I});let B=null===(m=e.registration_procedure)||void 0===m?void 0:m.text;B&&S.push({title:"Порядок оформления кредита",text:B});let L=null===(v=e.income_proof)||void 0===v?void 0:v.text;L&&S.push({title:"Подтверждение дохода",text:L});let P=null===(p=e.loan)||void 0===p?void 0:p.text;P&&S.push({title:"Обеспечение",text:P});let O=null===(_=e.age)||void 0===_?void 0:_.text;O&&S.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;S.push({title:"Регистрация",text:nE(M,t)})}let E=null===(h=e.experience)||void 0===h?void 0:h.text;return E&&S.push({title:"Стаж работы",text:E}),{params:y,terms:S}},nz=e=>{var t,n;let a=[],i=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;nM(i)&&nM(l)&&a.push({title:"Полная стоимость кредита",text:(0,tj.m)("".concat(i,"-").concat(l,"%"))});let o=e.interest_rate_from,r=e.interest_rate_to;if(nM(o)&&nM(r)){let e=o===r?"".concat(o,"%"):"".concat(o," - ").concat(r,"%");a.push({title:"Процентная ставка",text:nU(e)})}let s=e.credit_limit_to;if(s){let t=e.credit_limit_comment;a.push({title:"Кредитный лимит",text:nU("до ".concat(tN(s,!1)),t)})}let c=e.grace_period;if(c){let t=e.grace_period_comment;a.push({title:"Льготный период",text:nU("до ".concat(c," ").concat((0,w._6)(c,"дня","дня","дней")),t)})}let d=e.min_monthly_payment;if(d){let t=e.min_monthly_payment_comment;a.push({title:"Минимальный ежемесячный платеж",text:nU(d,t)})}a.push({title:"Льготный период на снятие наличных",text:nU(e.grace_period_cash_withdraw?"Распространяется":"Не распространяется")});let u=e.cash_withdraw_limit;if(u){let t=e.cash_withdraw_limit_comment;a.push({title:"Лимит на снятие наличных",text:nU(u,t)})}let m=e.cashback;if(m){let t=e.cashback_comment;a.push({title:"Cashback",text:nU(m,t)})}a.push({title:"Проценты на остаток",text:nU(e.has_interest_on_balance?e.interest_on_balance:nO)});let{has_discounts:v,discounts:p,discounts_comment:_,custom_discounts:g}=e,h=v?nD({discounts:p,discounts_comment:_,custom_discounts:g}):nO;a.push({title:"Скидки и бонусы",text:h});let{first_year_cost:f,second_year_cost:y,first_year_cost_comment:x}=e,b=nF({first_year_cost:f,second_year_cost:y,first_year_cost_comment:x});a.push({title:"Стоимость обслуживания",text:"".concat(nU("Плата за выпуск",e.release_cost)).concat(b)});let C=e.sms;if(C){let t=e.sms_comment;a.push({title:"SMS-оповещение",text:nU(C,t)})}let j=e.mobile_bank;if(j){let t=e.mobile_bank_comment;a.push({title:"Мобильное приложение",text:nU(j,t)})}let N=e.cash_withdraw_atm;if(N){let t=e.cash_withdraw_atm_comment;a.push({title:"Снятие наличных в банкоматах банка",text:nU(N,t)})}let k=e.age;if(k){let t=e.age_comment;a.push({title:"Возраст заемщика",text:nU(k,t)})}let T=e.work_experience;if(T){let t=e.work_experience_comment;a.push({title:"Стаж работы",text:nU(T,t)})}let A=e.proof_income;if(A){let t=e.proof_income_comment;a.push({title:"Подтверждение дохода",text:nU(A,t)})}let S=e.registration;if(S){let t=e.registration_comment;a.push({title:"Регистрация",text:nU(S,t)})}let R=e.card_type_custom;return R&&a.push({title:"Тип карты",text:nU(R)}),a.push({title:"Бесконтактная оплата",text:nU(e.contactless_payment_type_custom||nO)}),a.push({title:"3D Secure",text:nU(e["3d_secure"]?"Есть":nO)}),{params:a,terms:[]}},nV=e=>{var t,n,a,i,l,o,r,s,c,d,u,m,v,p;let _=[],g=null===(t=e.amount)||void 0===t?void 0:t.from;if(nM(g)){let t=null===(m=e.amount)||void 0===m?void 0:m.comment;_.push({title:"Сумма вклада",text:nU("от ".concat(tN(Number(g),!1,t8(e.currency_id).unit)),t)})}let h=null===(a=e.interest_rate)||void 0===a?void 0:null===(n=a.rates[0])||void 0===n?void 0:n.rate,f=null===(l=e.interest_rate)||void 0===l?void 0:null===(i=l.rates[-1])||void 0===i?void 0:i.rate;if(nM(h)&&nM(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:nU(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;nM(x)&&nM(b)&&_.push({title:"Срок вклада",text:nU("".concat(x," - ").concat(b," дн."))});let w=t8(e.currency_id).code;w&&_.push({title:"Валюта вклада",text:nU(w)});let C=e.partial_withdrawal.text;if(C){let t=e.partial_withdrawal.comment;_.push({title:"Частичное снятие",text:nU(C,t)})}let j=e.interest_payment.text;j&&_.push({title:"Выплата процентов",text:nU(j)});let N=null===(c=e.refill)||void 0===c?void 0:c.text;N&&_.push({title:"Пополнение вклада",text:nU(N)});let k=null===(d=e.interest_capitalization)||void 0===d?void 0:d.text;k&&_.push({title:"Капитализация процентов",text:nU(k)});let T=null===(u=e.preferential_termination)||void 0===u?void 0:u.text;if(T){let t=null===(p=e.preferential_termination)||void 0===p?void 0:p.comment;_.push({title:"Льготное расторжение",text:nU(T,t)})}return{params:_,terms:[]}},nH=e=>{var t,n,a,i,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;nM(h)&&nM(f)&&g.push({title:"Полная стоимость кредита",text:(0,tj.m)("".concat(h,"-").concat(f,"%"))});let y=null===(a=e.interest_rate)||void 0===a?void 0:a.from,x=null===(i=e.interest_rate)||void 0===i?void 0:i.to;if(nM(y)&&nM(x)){let t=y===x?y:"".concat(y," - ").concat(x),n=e.interest_rate.comment;g.push({title:"Процентная ставка",text:nU("".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(nM(w)){let e=b===w,t=tN(Number(b),!1,!1),n=tN(Number(w),!1,!0),a=nM(b)?"".concat(t," - ").concat(n):"до ".concat(n);g.push({title:"Сумма кредита",text:e?"до ".concat(n):a})}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;nM(C)&&nM(j)&&g.push({title:"Срок погашения кредита",text:C===j?nB(Number(C)):nP(Number(C),Number(j))});let N=null===(c=e.first_payment)||void 0===c?void 0:c.from;nM(N)&&g.push({title:"Минимальный первый взнос",text:"от ".concat(N,"%")});let k=null===(d=e.loan)||void 0===d?void 0:d.text;k&&g.push({title:"Обеспечение",text:k});let T=null===(u=e.property_type)||void 0===u?void 0:u.text;T&&g.push({title:"Вид недвижимости",text:T});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:nU(A,t,"p")})}let S=null===(v=e.insurance)||void 0===v?void 0:v.text;if(S){let t=null===(_=e.insurance)||void 0===_?void 0:_.comment;g.push({title:"Страхование",text:nU(S,t,"p")})}return{params:g,terms:[]}},nq=e=>{var t,n,a,i,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;nM(C)&&nM(j)&&w.push({title:"Полная стоимость кредита",text:(0,tj.m)("".concat(C,"-").concat(j,"%"))});let N=null===(a=e.interest_rate)||void 0===a?void 0:a.from,k=null===(i=e.interest_rate)||void 0===i?void 0:i.to;if(nM(N)&&nM(k)){let e=N===k;w.push({title:"Процентная ставка",text:e?"".concat(N,"%"):"".concat(N," - ").concat(k,"%")})}let T=null===(l=e.amount)||void 0===l?void 0:l.from,A=null===(o=e.amount)||void 0===o?void 0:o.to;if(nM(T)&&nM(A)){let e=T===A,t=tN(Number(T),!1,!1),n=tN(Number(A),!1);w.push({title:"Возможная сумма кредита",text:e?"до ".concat(n):"".concat(t," - ").concat(n)})}let S=null===(r=e.period)||void 0===r?void 0:r.from,R=null===(s=e.period)||void 0===s?void 0:s.to;nM(S)&&nM(R)&&w.push({title:"Срок погашения кредита",text:S===R?nB(Number(S)):nP(Number(S),Number(R))});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;nM(I)&&w.push({title:"Первый взнос",text:B?"".concat(I," - ").concat(B,"%"):"от ".concat(I,"%")});let L=null===(u=e.vehicle_type)||void 0===u?void 0:u.text;L&&w.push({title:"Тип транпортного средства",text:L});let P=null===(m=e.vehicle_state)||void 0===m?void 0:m.text;P&&w.push({title:"Состояние ТС",text:P});let O=[],M=null===(v=e.form)||void 0===v?void 0:v.text;M&&O.push({title:"Форма выдачи",text:nE(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:nE(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:nU(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}},nX=e=>{var t,n,a,i,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=t8(e.currency_id).code;m&&d.push({title:"Валюта карты",text:m});let v=nF(e.service_cost),p=null===(n=e.service_cost)||void 0===n?void 0:n.release_cost;p&&d.push({title:"Стоимость обслуживания",text:"".concat(nU("Плата за выпуск",p,"p")).concat(v)});let _=null===(a=e.manufacturing_term)||void 0===a?void 0:a.text;_&&d.push({title:"Срок изготовления",text:_});let g=null===(i=e.balance_interest)||void 0===i?void 0:i.text;if(g){let t=null===(c=e.balance_interest)||void 0===c?void 0:c.comment;d.push({title:"Проценты на остаток",text:nU(g,t)})}d.push({title:"Скидки и бонусы",text:e.discounts.comment||nO},{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:nO},{title:"Бесконтактная оплата",text:(null===(r=e.contactless_payment)||void 0===r?void 0:r.custom)||nO});let h=null===(s=e.individual_design)||void 0===s?void 0:s.text;return h&&d.push({title:"Индивидуальный дизайн карты",text:h}),{params:d,terms:[]}},nY=e=>{var t,n,a,i,l,o,r,s,c,d,u,m,v,p,_,g,h,f;let y=[],x=null===(t=e.period)||void 0===t?void 0:t.from,b=null===(n=e.period)||void 0===n?void 0:n.to;nM(x)&&nM(b)&&y.push({title:"Срок займа",text:"".concat(x," - ").concat(b," ").concat((0,w._6)(Number(b),"день","дня","дней"))});let C=null===(a=e.interest_rate)||void 0===a?void 0:a.from,j=null===(i=e.interest_rate)||void 0===i?void 0:i.to;if(nM(C)||nM(j)){let t=null===(f=e.interest_rate)||void 0===f?void 0:f.comment;y.push({title:"Процентная ставка",text:nU(C===j?"".concat(C,"%"):"до ".concat(j,"%"),t,"p")})}let N=null===(l=e.amount)||void 0===l?void 0:l.from,k=null===(o=e.amount)||void 0===o?void 0:o.to;nM(k)&&y.push({title:"Сумма займа",text:nM(N)?"".concat(N," - ").concat(k," руб."):"до ".concat(k," руб.")});let T=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;nM(T)&&nM(A)&&y.push({title:"Полная стоимость",text:"".concat(T," - ").concat(A,"%")});let S=[],R=null===(c=e.loan)||void 0===c?void 0:c.text;R&&S.push({title:"Обеспечение",text:R});let I=null===(d=e.purpose)||void 0===d?void 0:d.text;I&&y.push({title:"Цель кредита",text:I});let B=null===(u=e.application_term)||void 0===u?void 0:u.text;B&&S.push({title:"Срок выдачи",text:B});let L=null===(m=e.form)||void 0===m?void 0:m.text;L&&S.push({title:"Форма выдачи",text:L});let P=e.fine.text;P&&S.push({title:"Штраф за неоплату платежа",text:P});let O=null===(v=e.age)||void 0===v?void 0:v.text;O&&S.push({title:"Возраст заемщика",text:O});let M=null===(p=e.borrower)||void 0===p?void 0:p.text;M&&S.push({title:"Категория заемщика",text:M});let E=null===(_=e.experience)||void 0===_?void 0:_.text;E&&S.push({title:"Стаж работы",text:E});let D=null===(g=e.income_proof)||void 0===g?void 0:g.text;D&&S.push({title:"Подтверждение дохода",text:D});let F=null===(h=e.docs)||void 0===h?void 0:h.comment;return F&&S.push({title:"Требуемые документы",text:F}),{params:y,terms:S}},nZ=e=>{let t=[],n=[];if(!e)return{params:t,terms:n};if(t5.isCredit(e)){let{params:a,terms:i}=nW(e);t=a,n=i}if(t5.isCard(e)){let{params:n}=nz(e);t=n}if(t5.isDeposit(e)){let{params:a,terms:i}=nV(e);t=a,n=i}if(t5.isMortgage(e)){let{params:a,terms:i}=nH(e);t=a,n=i}if(t5.isAutoCredit(e)){let{params:a,terms:i}=nq(e);t=a,n=i}if(t5.isDebitCard(e)){let{params:a,terms:i}=nX(e);t=a,n=i}if(t5.isMicroCredit(e)){let{params:a,terms:i}=nY(e);t=a,n=i}return{params:t,terms:n}};var nQ=n(73564),n$=n(36534),nG=n.n(n$);let nJ=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)||""},nK=e=>{let{offer:t,bank:n,handleDetails:a,onClose:i}=e,l=(0,C.aF)("l"),{mounted:o}=(0,nQ.b)({opened:!!t});if(!o)return null;let r=t7(t),s=(0,y.jsxs)("div",{className:nG().buttons,children:[(0,y.jsx)(C.zx,{onClick:()=>a(t,!0),variant:"secondary",className:nG().button,children:"Все условия по ".concat(r.dative)}),(0,y.jsx)(C.zx,{onClick:()=>a(t),variant:"primary",className:nG().button,children:"Подать заявку"})]}),{params:c,terms:d}=nZ(t),u=[{title:"Сайт",text:nJ(n)}],m=(0,E.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,y.jsx)(nw.h,{children:l?(0,y.jsx)(R.j,{className:nG().mobilePopup,contentClassName:nG().container,isOpen:null!==t,onClose:i,footer:s,children:(0,y.jsx)(nI,{...v})}):(0,y.jsx)(S.d,{title:(0,y.jsxs)("div",{className:nG().title,children:[(0,y.jsx)("div",{className:nG().logoContainer,children:(0,y.jsx)(t4.D,{url:(0,eh.A)(n)||n.url,type:(0,eh.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:nG().drawer,contentClassName:nG().container,isOpen:null!==t,onClose:i,footer:s,children:(0,y.jsx)(nI,{...v})})})};var n0=n(34914),n1=n.n(n0);let n3=["предложение","предложения","предложений"],n6=e=>{var t;let{offers:n,bank:a,loading:i}=e,{env:l}=(0,ts.k)(),o=l.NEXT_PUBLIC_BASE_URL,r=P(a),[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=i&&!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],a="".concat(o,"/").concat(r?"mikrozajmy":n,"/").concat(e.url),i=1!==e.online_application.commercial||t?a:e.binomUrl;(0,es.D)({eventCategory:W.qL,eventActionType:es.i.button,eventActionText:(0,ec.b)(t?"Все условия ".concat(t7(e).dative):"Подать заявку"),eventLabel:i}),window.open(i,"_blank")},[o,r]),h=(0,k.useCallback)((e,t,n)=>{e.preventDefault(),e.stopPropagation(),(0,es.D)({eventCategory:W.qL,eventActionType:es.i.button,eventActionText:"IconFdsInfoCircleO",eventLabel:(0,ec.b)(t.title)}),_({...t,binomUrl:n})},[_]),f="Ещё ".concat(v," ").concat((0,w._6)(v,...n3));return(0,k.useEffect)(()=>{c((null==n?void 0:n.length)||0),u((null==n?void 0:n.length)||0)},[n]),(0,y.jsxs)("div",{className:r?void 0:n1().wrapper,children:[(0,y.jsxs)(w.W2,{className:(0,j.Z)(n1().productsListContainer,{[n1().containerTopPadding]:!r}),children:[!r&&!m&&(0,y.jsx)("h2",{className:n1().title,children:"Найдено ".concat(s," ").concat((0,w._6)(null!=s?s:0,...n3))}),!r&&m&&(0,y.jsx)(w.Od,{className:n1().title}),(0,y.jsxs)("div",{id:"offers-list",className:(0,j.Z)(n1().offersList),children:[null==n?void 0:n.slice(0,d).map((e,t)=>{let n=d===t+1&&v>0;return(0,y.jsx)(nb,{company:a,offer:e,order:t,handleOpenDetailInfo:h,isLastOfferOnPage:r?void 0:n,isWhiteCard:r},e.id)}),m&&[1,2,3].map(e=>(0,y.jsx)(w.Od,{className:(0,j.Z)(n1().skeleton,{[n1().mfoSkeleton]:r})},e))]}),!r&&v>0&&(0,y.jsx)("div",{className:n1().showMore,children:(0,y.jsx)(C.zx,{variant:"purple",appearance:"ghost",label:f,onClick:()=>u(d+6),className:n1().showMoreButton,disabled:d>=s,iconRight:(0,y.jsx)(x.IconFdsChevronDownSmallO,{className:n1().showMoreIcon})})})]}),(0,y.jsx)(nK,{offer:p?{...p,bank_name:a.name}:null,bank:a,handleDetails:g,onClose:()=>{_(null)}})]})},n2=(e,t,n)=>{var a,i;let l=e=>{if(null==e)return null;let t="string"==typeof e?Number(e):e;return Number.isNaN(t)?null:t},o=e.reduce((e,n)=>{let a=l(t(n)),i=l(e?t(e):null);return(null!=a?a:1/0)<(null!=i?i:1/0)?n:e},null),r=e.reduce((e,t)=>{let a=l(n(t)),i=l(e?n(e):null);return(null!=a?a:-1/0)>(null!=i?i:-1/0)?t:e},null),s=null!==(a=l(o?t(o):null))&&void 0!==a?a:0,c=null!==(i=l(r?n(r):null))&&void 0!==i?i:s;return{low:s,high:c}},n4=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)||""},n5=e=>{var t;let{baseUrl:n,assetsUrl:a,items:i,h1:l,description:o,company:r,service:s,serviceLink:c,generalRating:d}=e,u=i.filter(e=>0===e.archive),m=String(r.bic).padStart(9,"0"),v="".concat(n,"/banki/").concat(r.url,"/").concat(c),p="".concat(a,"/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}=n2(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}=n2(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}=n2(u,e=>e.credit_limit_from,e=>e.credit_limit_to),w={"@type":"BankOrCreditUnion",name:r.name,url:n4(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,a)=>{var i,l,o,r;return{"@type":"ListItem",position:a+1,item:{"@type":"PaymentCard",name:t.title,brand:{"@id":e},...t.cash_back&&t.cash_back.action&&{cashBack:t.cash_back.action},contactlessPayment:!0,offers:{"@type":"Offer",price:null!==(r=null==t?void 0:null===(o=t.interest_rate)||void 0===o?void 0:null===(l=o.rates)||void 0===l?void 0:null===(i=l[0])||void 0===i?void 0:i.amount_from)&&void 0!==r?r:0,priceCurrency:t8(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:a,interest_rate:i}=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"}},...a&&a.to&&{loanTerm:{"@type":"QuantitativeValue",value:a.to,unitCode:"DAY"}},...i&&i.to&&i.from&&{annualPercentageRate:{"@type":"QuantitativeValue",name:"".concat(i.from,"–").concat(i.to,"%"),minValue:i.from,maxValue:i.to}},broker: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:a,interest_rate:i}=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"}},...a&&a.to&&{loanTerm:{"@type":"QuantitativeValue",value:a.to,unitCode:"DAY"}},...i&&i.to&&i.from&&{annualPercentageRate:{"@type":"QuantitativeValue",name:i.from===i.to?"".concat(i.to,"%"):"".concat(i.from,"–").concat(i.to,"%"),minValue:i.from,maxValue:i.to}},broker:w,potentialAction:{"@type":"Action",name:"Подробнее",url:l}}})},...d&&{aggregateRating:C}};let j=u.map(e=>{var t,a,i;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===(i=e.interest_rate)||void 0===i?void 0:null===(a=i.rates)||void 0===a?void 0:null===(t=a[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 n7=n(65993),n8=n.n(n7);let n9=e=>{var t;let{servicesBlocks:n,offersBlocks:a,bank:i,activeService:l,setActiveService:o,h1:r,description:s,loading:c,region:d,town:u,generalRating:m}=e,{env:v}=(0,ts.k)(),p=(0,N.usePathname)(),_=(0,k.useRef)(null),g=l?null==a?void 0:null===(t=a[l.serviceName])||void 0===t?void 0:t.data:null,h=(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])&&h(n[0],!0)},[p]);let f=e=>t=>{t.preventDefault(),(0,es.D)({eventCategory:W.qL,eventActionType:es.i.tab,eventActionText:(0,ec.b)(e.title)}),h(e)};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(w.W2,{className:n8().section,children:[(0,y.jsxs)("div",{className:(0,j.Z)(n8().tiles,{[n8().oneColumn]:1===n.length}),children:[n.map(e=>(0,y.jsxs)("a",{href:"/banki/".concat(i.url,"/").concat(e.link).concat(tu(d,u)),className:(0,j.Z)(n8().tile,{[n8().short]:n.length<3}),onClick:f(e),children:[(0,y.jsx)("div",{className:(0,j.Z)(n8().background,{[n8().active]:e.title===(null==l?void 0:l.title)})}),(0,y.jsx)("div",{className:n8().imageWrapper,children:e.image&&(0,y.jsx)("img",{src:e.image,alt:e.title,className:n8().image})}),(0,y.jsx)("span",{children:e.title})," ",(0,y.jsx)("span",{className:n8().count,children:e.count})]},e.title)),c&&!n.length&&[1,2,3,4,5].map(e=>(0,y.jsx)(w.Od,{className:n8().tile},e))]}),(0,y.jsx)("div",{ref:_})]}),(0,y.jsx)(n6,{offers:g||null,tags:[],bank:i,loading:c}),Array.isArray(g)&&(null==g?void 0:g.length)>0&&(0,y.jsx)(tm.d,{data:n5({baseUrl:v.NEXT_PUBLIC_BASE_URL,assetsUrl:v.NEXT_PUBLIC_S3_ASSETS,items:g,h1:r,description:s,company:i,service:(null==l?void 0:l.serviceName)||"",serviceLink:(null==l?void 0:l.link)||"",generalRating:m})})]})},ae=e=>{let{services:t,loading:n}=e,{env:a}=(0,ts.k)(),i=a.NEXT_PUBLIC_BASE_URL,l=n&&!t,o=e=>()=>{(0,es.D)({eventCategory:W.qL,eventActionType:es.i.tab,eventActionText:(0,ec.b)(e.title),eventLabel:e.link})};return(0,y.jsx)(w.W2,{className:n8().section,children:(0,y.jsxs)("div",{className:(0,j.Z)(n8().tiles,n8().insurance,{[n8().leftAlignment]:3>((null==t?void 0:t.length)||0)&&!l}),children:[null==t?void 0:t.map(e=>(0,y.jsxs)("a",{className:n8().tile,href:"".concat(i,"/").concat(e.link),onClick:o(e),children:[(0,y.jsx)("div",{className:(0,j.Z)(n8().background)}),(0,y.jsx)("div",{className:n8().imageWrapper,children:e.image&&(0,y.jsx)("img",{src:e.image,alt:e.title,className:n8().image})}),(0,y.jsx)("span",{children:e.title})]},e.title)),l&&[1,2,3,4].map(e=>(0,y.jsx)(w.Od,{className:n8().tile},e))]})})},at=e=>{let{organizationType:t,servicesBlocks:n,servicesLoading:a,bankServices:i,company:l,pageTitle:o,description:r,activeService:s,handleServiceChange:c,region:d,town:u,loading:m,mfoOffers:v,generalRating:p}=e,_=t===I.$.bank,g=t===I.$.insurance,h=t===I.$.mfo;return _&&((null==n?void 0:n.length)>0||a)?(0,y.jsx)(n9,{servicesBlocks:n,offersBlocks:i,bank:l,h1:o,description:r||"",activeService:s,setActiveService:c,loading:a,region:d,town:u,generalRating:p}):g?(0,y.jsx)(ae,{services:n,loading:m}):h?(0,y.jsx)(n6,{tags:[],offers:v||null,bank:l,loading:!v&&a}):null};var an=n(27648),aa=n(57234),ai=n.n(aa);let al=e=>(0,y.jsxs)("div",{className:ai().featureInfo,children:[(0,y.jsx)("div",{className:ai().iconWrapper,style:{background:e.color},children:e.icon}),(0,y.jsxs)("div",{className:ai().content,children:[(0,y.jsx)("div",{className:ai().infoTitle,children:e.title}),(0,y.jsx)(an.default,{href:e.href||"",onClick:t=>{(0,es.D)({eventCategory:W.qL,eventActionType:es.i.link,eventActionText:(0,ec.b)(e.link),eventLabel:(0,ec.b)(e.title)}),e.onClick&&(t.preventDefault(),e.onClick())},children:e.link})]})]});var ao=n(68927),ar=n.n(ao);let as=e=>{let{uslugiTabUrl:t,generalRating:n,name_rs:a,catalogUrl:i,company:l,organizationType:o,productsNum:r,onBankFeatureClick:s,getTabPath:c}=e,{env:d}=(0,ts.k)(),u=d.NEXT_PUBLIC_BASE_URL,m=(0,C.aF)("xs"),{reviews_num:v}=l,p=o===I.$.bank,_=o===I.$.insurance,g=v>0?"".concat(v," ").concat((0,w._6)(v,"отзыв","отзыва","отзывов")):"";return(0,y.jsxs)("div",{className:ar().content,children:[(0,y.jsx)(J.X,{organizationType:o,bannerUrl:_?K.Te[l.url]:void 0}),(0,y.jsxs)("div",{className:ar().wrapper,children:[(0,y.jsx)("div",{className:ar().logo,children:(0,y.jsx)(t4.D,{url:p&&l.bic||l.url||"",type:o,width:78,height:78,companyName:l.name})}),(0,y.jsxs)("div",{className:ar().info,children:[(0,y.jsxs)("div",{className:ar().company,children:[(0,y.jsx)("div",{className:ar().name,children:l.name}),!!n&&(0,y.jsxs)("div",{className:ar().rating,children:[(0,y.jsx)(x.IconFdsStarF,{size:m?20:24,className:ar().iconStar}),(0,er.Z)(n)]})]}),(0,y.jsx)("p",{className:ar().description,children:l.short_description}),(0,y.jsx)(T.j,{className:ar().fullInfoLink,text:"Каталог всех ".concat(a),mainPageUrl:u,href:"".concat(u,"/").concat(i),target:"_self"})]}),(0,y.jsxs)("div",{className:ar().rightInfo,children:[r>0&&(0,y.jsx)(al,{title:"Продукты",link:"".concat(r," ").concat((0,w._6)(r,"продукт","продукта","продуктов")," на сайте"),color:"#E7F9F6",icon:(0,y.jsx)(x.IconFdsOctostarCheckO,{size:24}),onClick:()=>s("uslugi"),href:c({tab:{id:"uslugi",path:"/".concat(t)}})}),(0,y.jsx)(al,{title:"Пользовательский рейтинг",link:"Составляется на основе отзывов",color:"#FEF1FE",icon:(0,y.jsx)(x.IconFdsChartTrendSquareO,{size:24}),onClick:()=>s("ratings"),href:c({tab:{id:"ratings",path:"/rejtingi"}})}),(0,y.jsx)(al,{title:l.reviews_num?"Клиенты рекомендуют":"Отзывов нет",link:g,color:"#FFF4E0",icon:(0,y.jsx)(x.IconFdsChatDotsSquareO,{size:24}),onClick:()=>s("reviews"),href:c({tab:{id:"reviews",path:"/otzyvy"}})}),(0,y.jsx)(T.j,{className:ar().fullInfoLink,text:"Каталог всех ".concat(a),mainPageUrl:W.qL,href:"".concat(u,"/").concat(i),target:"_self"})]})]})]})};var ac=n(90852);let ad=e=>{let t=new Date,n=t.getDate(),a=t.getMonth(),i=t.getFullYear(),l=["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][a],o="".concat(n," ").concat(l," ").concat(i,"г.");return e.replace(/{date}/gim,o)},au=e=>{let t=new Date().getFullYear();return e.replace(/{year}/gim,t.toString())},am=e=>{if(!e||!e.length)return"";let t=e[0].toLowerCase();return"в"!==t&&"ф"!==t||(0,ac.r)(e[1])?"в":"во"},av=(e,t,n,a,i,l,o,r)=>{let s=e;if(i&&(s=(s=(s=(s=s.replace(/{(bank|mfo)}/gim,i.name)).replace(/{(bank|mfo)_r}/gim,i.name_r||i.name)).replace(/{(bank|mfo)_p}/gim,i.name_p)).replace(/{(bank|mfo)_link}/gim,i.url)),l&&(s=s.replace(/{tag_name}/gim,l.tag_name.toLowerCase())),!t)return l&&(s=(s=s.replace(/в {place_p}/gim,"во всей России")).replace(/{place}/gim,"России")),au(s=ad(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=a.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(am(d)," ").concat(d)],[/в {place_r}/gim,"".concat(am(u)," ").concat(u)],[/в {place_p}/gim,"".concat(am(m)," ").concat(m)],[/в {town}/gim,"".concat(am(v)," ").concat(v)],[/в {town_r}/gim,"".concat(am(p)," ").concat(p)],[/в {town_p}/gim,"".concat(am(_)," ").concat(_)],[/в {region}/gim,"".concat(am(g)," ").concat(g)],[/в {region_r}/gim,"".concat(am(h)," ").concat(h)],[/в {region_p}/gim,"".concat(am(f)," ").concat(f)],[/в {town_dub}/gim,"".concat(am(b)," ").concat(b)],[/в {town_dub_r}/gim,"".concat(am(w)," ").concat(w)],[/в {town_dub_p}/gim,"".concat(am(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=ad(s)},ap=(e,t,n,a,i)=>((null==e?void 0:e.title)&&(e.title=av(e.title,t,n,a,i)),(null==e?void 0:e.content)&&e.content.forEach(e=>{e.data&&(e.data.html&&(e.data.html=av(e.data.html,t,n,a,i)),e.data.text&&(e.data.text=av(e.data.text,t,n,a,i)))}),e);var a_=n(20777),ag=n(69286),ah=n.n(ag);let af=e=>{let{data:t}=e,n=e=>t=>{e.disableLink&&(t.preventDefault(),t.stopPropagation()),e.onClick&&e.onClick()};return(0,y.jsx)("ul",{className:ah().choice,children:t.map(e=>(0,y.jsx)("li",{className:ah().choiceOption,children:(0,y.jsx)(an.default,{href:e.url,onClick:n(e),prefetch:!1,children:e.name})},e.id))})};var ay=n(17730),ax=e=>{var t,n,a,i,l;let{env:o}=(0,ts.k)(),r=o.NEXT_PUBLIC_BASE_URL,s=o.NEXT_PUBLIC_S3_ASSETS;t$(t2());let{orgType:c,generalRating:d,company:u,description:m,ssr:v,bestOffersData:p,supportBlockData:_}=e,g=(0,N.usePathname)(),{region:h,town:f,handleOpenCityModal:S}=(0,eT.S)({initialRegion:v.region,initialTown:v.town}),R=g.split("/").find(e=>e.startsWith("teg_")),I=W.yi[c],[O,M]=(0,k.useState)(v.productsNum),[E,D]=(0,k.useState)(v.quote),[F,U]=(0,k.useState)(v.activeTag),z=(0,k.useRef)(!0),V=(0,k.useRef)(null),[H,q]=(0,k.useState)(v.depositTagsBanksStats),[X,Y]=(0,k.useState)(v.bankTowns),[Z,Q]=(0,k.useState)(O>0&&"uslugi"===ek(g)),$=B(c,u),G=L(c,u),ee=P(u),[et,ea]=(0,k.useState)(v.activeService),{organizationServices:ei,mfoOffers:el,servicesLoading:eo}=tc({isMounted:!z.current,initialServices:v.organizationServices,initialMfoOffers:v.mfoOffers,region:h,town:f,orgType:c,company:u,bankTowns:X,isUslugiTab:Z,activeService:et,depositTagsBanksStatsData:H,setDepositTagsBanksStatsData:q,initialQuote:v.quote,setQuote:D,pathname:g,tag:R}),er=(0,k.useMemo)(()=>(0,W.xB)(ei,s),[ei]),ed=ee?"mikrozajmy":null===(t=er[0])||void 0===t?void 0:t.link,eu=(0,W.i7)(u,c,$,O>0,ed),em=(0,k.useMemo)(()=>eu.find(e=>eN(e,g)),[g,u]),[ep,e_]=(0,k.useState)(em||eu[0]),eg=(()=>{let e=[{href:"/",label:"Главная"},{label:$?"Банки":"Каталог ".concat(I.name_rs_full),href:"/".concat(I.catalogUrl)},{label:u.name,href:$?"/".concat(I.catalogUrl,"/").concat(u.url):""}];if(!$)return e[e.length-1].href=void 0,e;et&&e.push({label:et.title,href:"/".concat(I.catalogUrl,"/").concat(u.url,"/").concat(et.link)}),F&&et&&e.push({label:F.tag_name,href:"/".concat(I.catalogUrl,"/").concat(u.url,"/").concat(et.link,"/teg_").concat(F.url)});let t=(null==f?void 0:f.name_p)||(null==h?void 0:h.name_p),n="kompanija"!==I.url&&(et||"uslugi"===ep.id);return t&&n&&e.push({label:"В ".concat(t)}),e[e.length-1].href=void 0,e})(),{loading:eh,insuranceTypes:ef,adresaProps:ey,reviews:ex,reviewsMaxPage:eb,serviceTypes:eA,companyPeopleRatings:eS,tags:eR}=tX({ssr:v,orgType:c,company:u,isInsurance:G,activeTabId:ep.id,isBank:$,setDepositTagsBanksStatsData:q,bankTowns:X,setBankTowns:Y,setIsUslugiTab:Q,quote:E,setQuote:D,pathname:g}),eI=e=>{let{tab:t,service:n}=e,a=(null==n?void 0:n.link)?"/".concat(n.link):t.path,i="kompanija"!==I.url&&(n||"uslugi"===t.id)?tu(h,f):"";return"/".concat(I.url,"/").concat(u.url).concat(a).concat(i)},eB=e=>{let t=eu.find(t=>t.id===e);if(!t)return;let{search:n,hash:a}=window.location,i=eI({tab:t}),l="".concat(i).concat(n).concat(a);window.history.replaceState(null,"",l),"uslugi"!==t.id&&ea(null),e_(t)},{pageTitle:eL,location:eP}=(0,k.useMemo)(()=>{let e=(null==f?void 0:f.name_p)||(null==h?void 0:h.name_p);return{pageTitle:F&&((null==et?void 0:et.serviceName)==="cards"||(null==et?void 0:et.serviceName)==="debitCards")?"".concat(F.name," ").concat(u.name_r||u.name):F?"".concat(F.name," от ").concat(u.name_r||u.name):(null==et?void 0:et.serviceName)==="kasko"||(null==et?void 0:et.serviceName)==="osago"?"".concat(et.title," в ").concat(u.name_r||u.name):(null==et?void 0:et.serviceName)==="microCredit"?"Предложения ".concat(u.name_r||u.name):et?"".concat(et.title," ").concat(u.name_r||u.name):ep.title,location:e}},[null==h?void 0:h.id,null==f?void 0:f.id,et,u.name_r,u.name,ep.id,F]);(0,k.useEffect)(()=>{let e=tY(ei);M(e),e||eB(eu[0].id)},[ei]),(0,k.useEffect)(()=>{if(z.current){z.current=!1;return}if(G||"uslugi"!==ep.id)return;let e="";"uslugi"===ep.id&&ee?e="/mikrozajmy":(null==et?void 0:et.link)&&(e="/".concat(et.link));let t=R?"/".concat(R):"",n="uslugi"===ep.id?"":ep.path,a=tu(h,f),i="/".concat(I.url,"/").concat(u.url).concat(n).concat(e).concat(t).concat(a).concat(window.location.hash);window.history.replaceState(null,"",i)},[et,null==h?void 0:h.id,null==f?void 0:f.id]),(0,k.useEffect)(()=>{var e,t;let n=null==et?void 0:et.serviceTagName,a=n&&null!==(t=null==eR?void 0:null===(e=eR.data)||void 0===e?void 0:e[n])&&void 0!==t?t:[];U(null==a?void 0:a.find(e=>"teg_".concat(e.url)===R))},[et,eR,R]);let eO=(0,y.jsx)(T.j,{className:t_().partnersLink,text:"Вы представитель ".concat(W.yi[c].name_r,"?"),mainPageUrl:W.qL,href:"/partners",target:"_self",iconColor:"white"}),eM={title:"Отзывы о ".concat(u.name_p||u.name),subTitle:"",value:{reviews:(0,eC.W)(ex,eA,c,u),registerButton:{text:"Показать все отзывы",link:"/".concat(I.url,"/").concat(u.url,"/otzyvy"),customClass:t_().allReviewsButton,iconRight:(0,y.jsx)(x.IconFdsArrowRightO,{className:t_().allReviewsButtonIcon})}}},eE=e=>{(0,es.D)({eventCategory:W.qL,eventActionType:es.i.tab,eventActionText:(0,ec.b)(e.label)}),eB(e.id)},eD=(()=>{var e,t,n;let a=null==et?void 0:et.serviceName,i=null==et?void 0:et.serviceTagName;if(!a&&!ee)return[];let l=ee?"microCredit":a,o=(null==ei?void 0:null===(e=ei[l])||void 0===e?void 0:e.serviceText)||[],r=(null==eR?void 0:null===(t=eR.data)||void 0===t?void 0:t[i||""])||[],s=tu(h,f),c=r.filter(e=>!!e.bank_region_page&&("deposits"!==a||e.displayInLinksBlock)&&(!!e.region_page||!h&&!f)).map(e=>{var t;return{id:e.id,name:"DEFAULT"===e.tag_name||"vse_vklady"===e.tag_name?"Все ".concat(null==et?void 0:null===(t=et.title_plural)||void 0===t?void 0:t.toLowerCase()):e.tag_name,url:"/".concat(I.url,"/").concat(u.url,"/").concat(null==et?void 0:et.link,"/teg_").concat(e.url).concat(s)}}).sort((e,t)=>{let n=e.name.startsWith("Все "),a=t.name.startsWith("Все ");return n&&!a?-1:!n&&a?1:0}),d="Виды ".concat(null==et?void 0:null===(n=et.title_r)||void 0===n?void 0:n.toLowerCase()),m=(0,y.jsx)(af,{data:c});return[...o.map(e=>{let t=ap(e,h,f,[],u);return{question:t.title,answer:t.content.map(e=>e.data.html).join("")}}),...c.length>0?[{question:d,answer:m}]:[]]})();return(0,y.jsxs)("div",{className:t_().page,children:[(0,y.jsxs)(w.W2,{children:[(0,y.jsx)(C.Oo,{style:{padding:"16px 0"},items:eg,className:t_().breadcrumbs}),(0,y.jsx)(tm.d,{data:(0,tv.M)(eg,o.NEXT_PUBLIC_BASE_URL,g,$)}),(0,y.jsx)(tm.d,{data:tg({baseUrl:r,company:u,orgType:c,generalRating:d})}),(0,y.jsx)(as,{uslugiTabUrl:ed,generalRating:d,name_rs:I.name_rs,catalogUrl:I.catalogUrl,company:u,organizationType:c,productsNum:O,onBankFeatureClick:e=>{var t;null===(t=V.current)||void 0===t||t.scrollIntoView({behavior:"smooth",block:"center"}),eB(e)},getTabPath:eI}),(0,y.jsxs)("div",{ref:V,className:t_().infoBlock,children:[(0,y.jsxs)("h1",{className:t_().title,children:[eL,eP&&Z&&(0,y.jsxs)(y.Fragment,{children:[" в ",(0,y.jsx)("span",{onClick:S,className:t_().location,children:eP})]})]}),(0,y.jsx)(C.iR,{className:t_().tabsWrapper,options:{spaceBetween:0,slidesPerView:"auto"},children:eu.map(e=>(0,y.jsx)(C.wI,{className:(0,j.Z)(t_().tab,{[t_().activeTab]:ep.id===e.id}),onClick:()=>eE(e),children:(0,y.jsx)("a",{href:eI({tab:e}),onClick:e=>e.preventDefault(),children:e.label})},e.id))})]})]}),"about"===ep.id&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(en,{orgType:c,company:u,insuranceTypes:ef,loadingInsuranceTypes:!ef&&eh}),eO,(0,y.jsx)("div",{className:t_().mobileBanner,children:(0,y.jsx)(w.W2,{children:(0,y.jsx)(J.X,{organizationType:c,bannerUrl:G?K.Te[u.url]:void 0,compact:ee})})}),!!(null==ey?void 0:null===(n=ey.selectedFk)||void 0===n?void 0:n.length)&&(0,y.jsx)(ej.default,{...ey,region:h,town:f,needsGeoLocationSync:(null==h?void 0:h.url)!==(null===(a=v.region)||void 0===a?void 0:a.url)||(null==f?void 0:f.url)!==(null===(i=v.town)||void 0===i?void 0:i.url)}),eh&&!(null==ey?void 0:null===(l=ey.selectedFk)||void 0===l?void 0:l.length)&&(0,y.jsx)(w.W2,{children:(0,y.jsx)(w.Od,{className:t_().adresaSkeleton})})]}),"reviews"===ep.id&&(0,y.jsx)(ew,{company:u,orgType:c,companyReviews:ex||[],maxPage:eb,serviceTypes:eA,initialPage:e.initialPage}),"ratings"===ep.id&&(0,y.jsxs)(w.W2,{className:t_().ratingsContainer,children:[(0,y.jsx)(ev,{company:u,companyPeopleRatings:eS,orgType:c,serviceTypes:eA,loading:!eS&&eh}),eO]}),"uslugi"===ep.id&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(at,{organizationType:c,servicesBlocks:er,servicesLoading:eo,bankServices:ei,company:u,pageTitle:eL,description:m||"",activeService:et,handleServiceChange:e=>{if(!e)return;let{search:t,hash:n}=window.location,a=eI({tab:ep,service:e}),i="".concat(a).concat(t).concat(n);window.history.replaceState(null,"",i),ea(e)},region:h,town:f,mfoOffers:el,generalRating:d}),E&&(0,y.jsx)(b.c,{className:t_().quote,quote:E})]}),(0,y.jsx)("div",{className:(0,j.Z)({[t_().hiddenSection]:!($||"news"===ep.id)}),children:!!(null==p?void 0:p.length)&&(0,y.jsx)(a_.MJ,{tabs:p,baseUrl:o.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(o.NEXT_PUBLIC_S3_ASSETS,"/mp-assets"),dataLayerPush:tQ.l})}),"uslugi"===ep.id&&(0,y.jsx)(A.X,{...eM,showAllStars:!0,variant:$?"secondary":"primary",loading:!ex&&eh}),!G&&"uslugi"===ep.id&&!!eD.length&&(0,y.jsx)(tZ.C,{questions:eD,dataLayerPush:tQ.l,eventCategory:W.qL}),_&&(0,y.jsx)(ay.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 a=n(57437),i=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,i.useSearchParams)(),v=(0,i.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,a.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 a=n(57437),i=n(38856),l=n(2265);function o(e){var t;return null!==(t=sessionStorage.getItem(e))&&void 0!==t?t:void 0}let r=(0,l.createContext)(void 0),s="browserId",c="browserSessionId";function d(e){let{children:t}=e,[n,d]=(0,l.useState)({});return(0,l.useEffect)(()=>{var e,t;let{[s]:n,[c]:a,"auth.gtm_customer_id":l,_ym_uid:r}=Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")));d({browserId:null!=n?n:null!==(t=i.A.getItem(s))&&void 0!==t?t:void 0,sessionId:null!==(e=null!=a?a:o(c))&&void 0!==e?e:o(s),customerId:l,yandexId:r})},[]),(0,a.jsx)(r.Provider,{value:n,children:t})}function u(){let e=(0,l.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 a=n(57437),i=n(35563),l=n(75461),o=n(2265),r={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},s=n(31893),c=n(24269),d=n(84886),u=n(29248),m=n(8285),v=n(44197),p=n(91672),_=n(51479);let g=(e,t)=>{let n=m.O0[t].url,a=e.url;return"/".concat(n,"/").concat(a,"/otzyvy")},h=(e,t,n)=>{let a=g(e,t);(0,_.D)({eventCategory:n||"",eventActionType:_.i.link,eventActionText:String(e.reviews_num),eventLabel:a}),window.open(a,"_blank")};var f=n(80684),y=n(31538),x=n(8081),b=n(61994),w=n(87940),C=n(54550),j=n(60816),N=n(40224),k=n(55089),T=n(62525),A=n.n(T),S=n(75599);let R=()=>(0,a.jsxs)("div",{className:A().header,children:[(0,a.jsx)("div",{className:A().title,children:"Пользовательский рейтинг"}),(0,a.jsx)("div",{className:A().subtitle,children:"Пользовательский рейтинг основан на отзывах клиентов банков и финансовых организаций представленых на Финуслугах"})]}),I=e=>{let{item:t,type:n,className:i,baseUrl:l}=e,o="".concat(l,"/").concat(m.O0[n].url,"/").concat(t.url).concat(w.RV.ratings);return(0,a.jsxs)("div",{className:(0,b.Z)(A().mobileCard,i),children:[(0,a.jsxs)("a",{className:A().bank,href:o,target:"_blank",onClick:()=>{(0,_.D)({eventCategory:m.Rd,eventActionType:_.i.offer,eventActionText:(0,C.b)(t.name),eventLabel:o})},children:[(0,a.jsx)(p.D,{url:t.bic||t.url||"",type:n,width:32,height:32,companyName:t.name}),(0,a.jsx)("label",{children:t.name})]}),(0,a.jsxs)("div",{className:A().cardInfo,children:[(0,a.jsxs)("div",{className:A().cardInfoItem,children:[(0,a.jsxs)("div",{className:A().cardValueWrapper,children:[(0,a.jsx)(f.IconFdsStarF,{className:A().star,size:18}),(0,a.jsx)("p",{className:A().cardValue,children:t.reviews_rating})]}),(0,a.jsx)("p",{children:"Рейтинг"})]}),(0,a.jsxs)("div",{className:A().cardInfoItem,children:[(0,a.jsx)("p",{className:A().cardValue,children:t.reviews_num}),(0,a.jsx)("p",{children:"Все отзывы"})]}),(0,a.jsxs)("div",{className:A().cardInfoItem,children:[(0,a.jsx)("p",{className:A().cardValue,children:t.place}),(0,a.jsx)("p",{children:"Место"})]})]}),(0,a.jsx)(v.j,{className:A().fullInfoLink,mainPageUrl:m.Rd,href:"".concat(l,"/").concat(m.O0[n].url,"/").concat(t.url).concat(w.RV.reviews),target:"_blank",text:"Смотреть отзывы"})]})},B=e=>{let{type:t,data:n,loading:r}=e,{env:s}=(0,k.k)(),[c,d]=(0,o.useState)(4),u=(0,o.useCallback)(()=>{(0,_.D)({eventCategory:m.Rd,eventActionType:_.i.button,eventActionText:(0,C.b)("Показать еще")}),d(c+4)},[c,d]);return(0,a.jsxs)("div",{className:A().mobileOnly,children:[(0,a.jsxs)("div",{className:A().wrapper,children:[(0,a.jsx)(R,{}),n&&(0,a.jsxs)("div",{className:A().mobileBody,children:[n.map((e,n)=>(0,a.jsx)(I,{item:e,type:t,baseUrl:s.NEXT_PUBLIC_BASE_URL,className:(0,b.Z)({collapsed:n>=c})},e.url)),n&&c<n.length&&(0,a.jsx)(l.zx,{className:A().button,size:"s",variant:"secondary",label:"Показать еще",onClick:u,pending:r})]})]}),(0,a.jsxs)(i.W2,{className:A().bannerWrapper,children:[(0,a.jsx)(y.l,{eventCategory:"rating"}),(0,a.jsx)(x.u,{})]})]})},L=e=>{let{type:t,data:n,filter:r,sortOrder:s,setSort:c,loading:d}=e,{env:v}=(0,k.k)(),[j,N]=(0,o.useState)(10),T=(0,o.useCallback)(()=>{(0,_.D)({eventCategory:m.Rd,eventActionType:_.i.button,eventActionText:(0,C.b)("Показать еще")}),N(j+10)},[j,N]),I=[{name:"Место",width:"72px",sortName:""},{name:"Название ".concat(m.O0[t].name_r),width:"1032px"},{name:"Рейтинг",width:"110px",sortName:u.vA.ratings},{name:"Все отзывы",width:"144px",sortName:u.vA.reviewsNum}],B=(e,t)=>{t&&((0,_.D)({eventCategory:m.Rd,eventActionType:_.i.button,eventActionText:(0,C.b)(e)}),c(t))},L=e=>"".concat(v.NEXT_PUBLIC_BASE_URL,"/").concat(m.O0[t].url,"/").concat(e.url).concat(w.RV.ratings),P=e=>{let t=L(e);(0,_.D)({eventCategory:m.Rd,eventActionType:_.i.offer,eventActionText:(0,C.b)(e.name),eventLabel:t})};return(0,a.jsxs)(i.W2,{className:A().desktopOnly,children:[(0,a.jsx)("div",{style:{width:"100%"},children:(0,a.jsxs)("div",{className:A().wrapper,children:[(0,a.jsx)(R,{}),(0,a.jsxs)("div",{className:A().tableWrapper,children:[(0,a.jsxs)("table",{children:[(0,a.jsx)("colgroup",{children:I.map((e,t)=>{let{width:n}=e;return(0,a.jsx)("col",{style:{width:n,minWidth:1!==t?n:void 0}},t)})}),(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:I.map((e,t)=>{let{name:n,sortName:i}=e;return(0,a.jsx)("th",{children:(0,a.jsxs)("div",{className:(0,b.Z)(A().headCell,{[A().sortIcon]:!!i,[A().active]:r===i,[A().asc]:s===u.ib.Asc}),onClick:()=>B(n,i),children:[(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:n}}),i&&(0,a.jsx)(f.IconFdsSortDescendingO,{size:24,className:A().filterIcon})]})},t)})})}),(0,a.jsx)("tbody",{children:n&&n.map((e,n)=>(0,a.jsxs)("tr",{className:(0,b.Z)({collapsed:n>=j}),children:[(0,a.jsx)("td",{className:A().place,children:e.place}),(0,a.jsx)("td",{children:(0,a.jsxs)("a",{className:A().bank,href:L(e),target:"_blank",onClick:()=>P(e),children:[(0,a.jsx)(p.D,{url:e.bic||e.url,type:t,width:32,height:32,companyName:e.name}),(0,a.jsx)("label",{children:e.name})]})}),(0,a.jsxs)("td",{children:[(0,a.jsx)(f.IconFdsStarF,{className:A().star,size:22}),(0,a.jsx)("label",{children:(0,S.Z)(Number(e.reviews_rating))})]}),(0,a.jsx)("td",{onClick:()=>h(e,t,"rating"),children:(0,a.jsx)("a",{href:g(e,t),className:A().rewardLink,onClick:e=>e.preventDefault(),children:e.reviews_num})})]},e.url))})]}),n&&j<n.length&&(0,a.jsx)("div",{className:A().buttonWrapper,children:(0,a.jsx)(l.zx,{size:"s",variant:"secondary",label:"Показать еще",onClick:T,pending:d})})]})]})}),(0,a.jsxs)("div",{className:A().bannerWrapper,children:[(0,a.jsx)(y.l,{eventCategory:"rating"}),(0,a.jsx)(x.u,{})]})]})},P=e=>{let{filter:t,sortOrder:n,organizations:i,selectedOrgs:l,region:o,setOrderDesc:r,setSortState:s,loading:c,type:d}=e,m={type:d,filter:t,selectedOrgs:l,region:o,sortOrder:n,setSort:e=>{e===t?r(n===u.ib.Desc?u.ib.Asc:u.ib.Desc):s(e)},loading:c};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(L,{...m,data:i}),(0,a.jsx)(B,{...m,data:i}),(0,a.jsx)(j.d,{data:(0,N.d)(i,d)})]})};var O=n(99376),M=n(58560),E=n(33145),D=n(33346),F=n(3845),U=n.n(F),W=n(30618),z=n(439),V=n.n(z);let H=e=>{let{filter:t,formData:n,onChange:i,onShowMore:r,onSubmit:s}=e,c=(0,l.aF)("l"),d=(0,o.useCallback)(e=>{(0,_.D)({eventCategory:m.Rd,eventActionType:_.i.select,eventActionText:(0,C.b)("Тип организации"),eventLabel:(0,C.b)(e.label||"")}),i("orgType",e)},[i]),v=(0,o.useCallback)(e=>{(0,_.D)({eventCategory:m.Rd,eventActionType:_.i.select,eventActionText:(0,C.b)("Название организации"),eventLabel:(0,C.b)((null==e?void 0:e.map(e=>{let{label:t}=e;return t}).join(","))||"")}),i("orgName",e)},[i]),p=(0,o.useCallback)(()=>{(0,_.D)({eventCategory:m.Rd,eventActionType:_.i.button,eventActionText:(0,C.b)("Все параметры")}),r()},[r]);return(0,a.jsxs)("div",{className:V().filter,children:[(0,a.jsxs)("div",{className:V().selectors,children:[(0,a.jsx)(l.Ph,{className:V().input,size:"m",label:"Тип организации",options:n.orgType,value:t.orgType,onChange:d}),(0,a.jsx)(W.H,{className:V().input,size:"middle",label:"Название организации",options:n.orgName,value:t.orgName||null,onChange:v,multiple:!0,search:!0,isMobile:c})]}),(0,a.jsxs)("div",{className:V().buttons,children:[!(c&&t.ratingType===u.BH.people)&&(0,a.jsx)(l.zx,{iconLeft:(0,a.jsx)(f.IconFdsParametersHorizontalO,{size:22}),className:V().allParametersButton,variant:"secondary",label:"Все параметры",onClick:p}),(0,a.jsx)(l.zx,{className:V().showButton,label:"Показать",onClick:s})]})]})};var q=n(13466),X=n(53120),Y=n(49689),Z=n(98323),Q=n.n(Z);let $=e=>{let{filter:t,formData:n,isOpen:i,onClose:r,onSubmit:s,onReset:c,onChange:d}=e,v=(0,l.aF)("m"),p=(0,o.useCallback)(e=>{(0,_.D)({eventCategory:m.Rd,eventActionType:_.i.radio,eventActionText:(0,C.b)(e.label||"")}),d("sortBy",e.id)},[d]),g=(0,o.useCallback)(e=>{(0,_.D)({eventCategory:m.Rd,eventActionType:_.i.select,eventActionText:(0,C.b)("Тип организации"),eventLabel:(0,C.b)(e.label||"")}),d("orgType",e)},[d]),h=(0,o.useCallback)(e=>{(0,_.D)({eventCategory:m.Rd,eventActionType:_.i.radio,eventActionText:(0,C.b)(e.label)}),d("filterBy",e.id)},[d]),f=(0,o.useCallback)(e=>{(0,_.D)({eventCategory:m.Rd,eventActionType:_.i.select,eventActionText:(0,C.b)("Название организации"),eventLabel:(0,C.b)((null==e?void 0:e.map(e=>{let{label:t}=e;return t}).join(","))||"")}),d("orgName",e)},[d]),y=(0,o.useCallback)(()=>{(0,_.D)({eventCategory:m.Rd,eventActionType:_.i.button,eventActionText:(0,C.b)("Сбросить параметры")}),c()},[c]),x=t.orgType.value,b=t.ratingType===u.BH.people,w=t.ratingType===u.BH.people?m.RU:n.filterBy[x],j=(0,a.jsxs)("div",{className:Q().body,children:[(0,a.jsxs)("div",{className:Q().row,children:[(0,a.jsx)(l.Ph,{className:Q().input,size:"m",label:"Тип организации",options:n.orgType,value:t.orgType,onChange:g}),(0,a.jsx)(W.H,{className:Q().input,size:"middle",label:"Название организации",options:n.orgName,value:t.orgName||null,onChange:e=>f(e),multiple:!0,search:!0,isMobile:v})]}),b&&(0,a.jsxs)("div",{className:Q().sortingPanel,children:[(0,a.jsx)("h3",{className:Q().sectionTitle,children:"Фильтр по"}),(0,a.jsx)("div",{className:Q().radiosWrapper,children:w.map((e,n)=>(0,a.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:()=>h(e)},e.id))})]}),b&&(0,a.jsx)("div",{className:Q().divider}),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:Q().sortingPanel,children:[(0,a.jsx)("h3",{className:Q().sectionTitle,children:"Сортировать по"}),(0,a.jsx)("div",{className:Q().radiosWrapper,children:n.sortBy.map(e=>(0,a.jsx)(l.Y8,{checked:t.sortBy===e.id,value:t.sortBy===e.id,name:"".concat(e.id,"_radio"),label:e.label,onChange:()=>p(e)},e.id))})]})})]}),N=(0,a.jsxs)("div",{className:Q().buttonActions,children:[(0,a.jsx)(l.zx,{size:"m",className:Q().button,onClick:s,children:"Показать"}),(0,a.jsx)(l.zx,{variant:"secondary",size:"m",className:Q().button,onClick:y,children:"Сбросить параметры"})]});return(0,a.jsx)(q.h,{children:v?(0,a.jsx)(Y.j,{isOpen:i,onClose:r,footer:N,title:"Все параметры",children:j}):(0,a.jsx)(X.d,{isOpen:i,onClose:r,title:"Все параметры",contentClassName:Q().content,titleAlign:"left",rowTitle:!0,footer:N,width:"600px",children:j})})};var G=n(90375),J=n(7970),K=n.n(J);let ee=e=>{var t;let n=e.filter.orgType.value,i=(e.filter.ratingType===u.BH.people?[{id:u.vA.ratings,label:"По рейтингу"},{id:u.vA.reviewsNum,label:"По отзывам"}]:e.formData.filterBy[n]).map(e=>{let{id:t,label:n}=e;return{value:t,label:"По ".concat(n.toLowerCase()),shortLabel:"Сортировка"}});return(0,a.jsx)("div",{className:(0,b.Z)(K().wrapper,{[K().visible]:e.isVisible}),children:(0,a.jsx)(G.p,{className:K().customFilter,onClickParams:e.onShowMore,onClickChip:e.onShowMore,chips:[{id:"orgType",label:"Тип организации: ".concat(null===(t=e.filter.orgType)||void 0===t?void 0:t.label)}],sortTypeItems:i,sortTypeValue:e.filter.filterBy||"",onChangeSortType:t=>{e.onChange("filterBy",t)},isIncreaseSort:"desc"===e.filter.sortBy,onChangeIncreaseSort:t=>{e.onChange("sortBy",t?u.ib.Desc:u.ib.Asc)}})})},et=e=>{var t,n;let[a,i]=(0,o.useState)(e),l=(null===(t=a.orgType)||void 0===t?void 0:t.value)===c.$.insurance,r=(null===(n=a.orgType)||void 0===n?void 0:n.value)===c.$.mfo,s=l?"/strahovanie_otzyvy":r?"/polzovatelskij_rejting_mfo":"/polzovatelskij_rejting_bankov";(0,o.useEffect)(()=>{window.location.pathname!==s&&window.history.replaceState(null,"",s)},[s]);let d=(e,t)=>{switch(e){case"ratingType":i(e=>({...e,ratingType:t}));break;case"sortBy":i(e=>({...e,sortBy:t}));break;case"orgType":i(e=>({...e,orgType:t,orgName:null,ratingType:u.BH.people}));break;case"orgName":i(e=>({...e,orgName:t}));break;case"filterBy":i(e=>({...e,filterBy:t}))}};return{filter:a,change:d,reset:()=>{d("orgName",null)}}};var en=n(75552),ea=n(20777),ei=n(89487),el=n(59339);let eo=e=>{let{type:t,baseUrl:n,filter:a,sortOrder:i,organizations:l,selectedOrgs:o,region:r}=e,s=l.filter(e=>0===o.length||o.includes(e.id));r&&(s=s.filter(e=>{let{region_ids:t}=e;return t.includes(r.id)}));let d=t===c.$.mfo,m=t===c.$.insurance,v="banki";d?v="mfo":m&&(v="kompanija");let p=i===u.ib.Desc;return[...s].sort((e,t)=>{let n=e[a],i=t[a];return p?i-n:n-i}).map((e,t)=>{var a;let i=p?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!==(a=null==e?void 0:e.logo_mob)&&void 0!==a?a:"",url:(null==e?void 0:e.url)||"",description:null==e?void 0:e.short_description,detailPageUrl:"".concat(n,"/").concat(v,"/").concat((null==e?void 0:e.url)||""),phone:null==e?void 0:e.phone,site:null==e?void 0:e.site,place:i}})};var er=n(17730),es=e=>{var t;let{initRatingForm:n,serverSelectOptions:v,initOrganizations:p,bestOffersData:g,supportBlockData:h}=e,{env:f}=(0,k.k)(),[y,x]=(0,o.useState)(!0),[b,w]=(0,o.useState)(),[N,T]=(0,o.useState)(p),A=(0,o.useRef)(null),S=(0,O.usePathname)(),{region:R,town:I,handleOpenCityModal:B}=(0,s.S)({initialRegion:null,initialTown:null}),[L,F]=(0,o.useState)(!1),[W,z]=(0,o.useState)(!1),{filter:V,change:q,reset:X}=et(n),Y=(0,o.useMemo)(()=>{if(!b)return v;let e=(0,en.l)({data:b,type:V.orgType.value});return(0,el.u)(e).sort((e,t)=>e.label.localeCompare(t.label))},[V.orgType]),Z=m.kX[V.orgType.value],Q=(0,o.useMemo)(()=>({orgType:m.un,orgName:Y,ratingType:Z,sortBy:V.filterBy===u.vA.reviewsNum?m.Fo:m.pm,filterBy:m.pA}),[Y,V.orgType.value,V.filterBy]),G=()=>F(e=>!e),J=(null==I?void 0:I.name_p)||(null==R?void 0:R.name_p)||"",K=V.orgType.value===c.$.mfo,es=m.O0[V.orgType.value].name_p,ec=K?es.toUpperCase():es,ed="Пользовательский рейтинг ".concat(ec),eu=[{href:"/",label:"Главная"},{label:"".concat(ed," ").concat(J)}],em=(0,o.useCallback)(()=>{if((0,_.D)({eventCategory:m.Rd,eventActionType:_.i.button,eventActionText:(0,C.b)("Показать")}),F(!1),A.current){let e=A.current.getBoundingClientRect().bottom+window.scrollY;window.scrollTo({top:e,behavior:"smooth"})}},[F]);return(0,o.useEffect)(()=>{var e;(null===(e=V.orgName)||void 0===e?void 0:e.find(e=>{let{value:t}=e;return!v.find(e=>e.value===t)}))&&X()},[v]),(0,o.useEffect)(()=>{x(!0),(async()=>{let e=await (0,M.s)();e&&(w(e),x(!1))})()},[]),(0,o.useEffect)(()=>{var e;if(!b)return;let t=V.orgType.value,n=(0,en.l)({data:b,type:t}).filter(e=>!e.archive);T(eo({type:t,baseUrl:f.NEXT_PUBLIC_BASE_URL,filter:V.filterBy,sortOrder:V.sortBy,selectedOrgs:(null===(e=V.orgName)||void 0===e?void 0:e.map(e=>e.value))||[],organizations:n,region:R}))},[b,R,V]),(0,o.useEffect)(()=>{let e=()=>{if(A.current){let e=A.current.offsetTop+A.current.offsetHeight+150;z(window.scrollY>e)}},t=(0,d.P)(e,100);return e(),window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]),(0,a.jsxs)("div",{className:U().page,children:[(0,a.jsx)("div",{ref:A,children:(0,a.jsxs)(i.W2,{children:[(0,a.jsxs)("div",{className:U().topBannerSection,children:[(0,a.jsxs)("div",{className:U().left,children:[(0,a.jsx)(l.Oo,{style:{paddingTop:"16px"},items:eu}),(0,a.jsx)(j.d,{data:(0,D.M)(eu,f.NEXT_PUBLIC_BASE_URL,S)}),(0,a.jsxs)("div",{className:U().text,children:[(0,a.jsxs)("h1",{className:U().title,children:[ed,J?" в ":" по ",(0,a.jsx)("p",{onClick:()=>{(0,_.D)({eventCategory:m.Rd,eventActionType:_.i.link,eventActionText:(0,C.b)(J||"всей России")}),B()},children:J||"всей России"})]}),(0,a.jsxs)("div",{className:U().subtitle,children:["Собрали актуальную информацию, чтобы вы знали",(0,a.jsx)("br",{className:"desktopOnly"}),"кому доверить финансы"]})]})]}),(0,a.jsx)("div",{className:U().image,children:(0,a.jsx)(E.default,{src:r,width:486,height:243,alt:"banner image"})})]}),(0,a.jsx)(H,{filter:V,formData:Q,onSubmit:em,onShowMore:G,onChange:q}),(0,a.jsx)($,{isOpen:L,filter:V,formData:Q,onChange:q,onClose:G,onSubmit:em,onReset:X})]})}),(0,a.jsx)(ee,{isVisible:W,onShowMore:G,filter:V,formData:Q,onChange:q}),(0,a.jsx)(P,{sortOrder:V.sortBy,filter:V.filterBy,region:R,organizations:N,selectedOrgs:(null===(t=V.orgName)||void 0===t?void 0:t.map(e=>e.value))||[],setSortState:e=>q("filterBy",e),setOrderDesc:e=>q("sortBy",e),loading:y,type:V.orgType.value}),!!(null==g?void 0:g.length)&&(0,a.jsx)(ea.MJ,{tabs:g,baseUrl:f.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(f.NEXT_PUBLIC_S3_ASSETS,"/mp-assets"),dataLayerPush:ei.l}),h&&(0,a.jsx)(er.B,{...h,s3Assets:f.NEXT_PUBLIC_S3_ASSETS})]})}},90476:function(e,t,n){"use strict";n.d(t,{default:function(){return X}});var a=n(57437),i=n(35563),l=n(75461),o=n(90852),r=n(61994),s=n(44197),c=n(91672),d=n(56227),u=n(80684),m=n(55089),v=n(68671),p=n.n(v),_=n(75599);let g=e=>{let{env:t}=(0,m.k)();if(!e.org)return null;let{name_p:n,url:i}=d.yi[e.orgType];return(0,a.jsx)("div",{className:(0,r.Z)(p().wrapper,e.className),children:(0,a.jsxs)("div",{className:p().card,children:[(0,a.jsxs)("div",{className:p().logo,children:[(0,a.jsx)(c.D,{url:e.org.bic||e.org.url||"",type:e.orgType,width:42,height:42,companyName:e.org.name}),(0,a.jsxs)("div",{className:p().ratingBadge,children:[(0,a.jsx)(u.IconFdsStarF,{className:p().star}),(0,_.Z)(e.generalRating||0)]})]}),(0,a.jsx)("div",{className:p().title,children:e.org.name}),(0,a.jsx)("ul",{className:p().list,children:!!e.org.reviews_num&&(0,a.jsxs)("li",{children:[e.org.reviews_num," отзывов"]})}),(0,a.jsx)(s.j,{className:p().fullInfoLink,mainPageUrl:t.NEXT_PUBLIC_BASE_URL,href:"/".concat(i,"/").concat(e.org.url),target:"_self",text:"Подробнее о ".concat(n)})]})})};var h=n(71938),f=n(24269);let y=(e,t)=>{if(!e)return 0;if("number"==typeof e.people_rating)return e.people_rating;let n=0,a=0,i=[];return t===f.$.insurance?i=[{r:e.purchase_raiting,f:.1},{r:e.precedent_raiting,f:.5},{r:e.consideration_raiting,f:.7},{r:e.payout_raiting,f:2}]:1===e.filter_id?i=[{r:e.rating.informing,f:.2},{r:e.rating.receipt,f:.4},{r:e.rating.payments,f:.8},{r:e.rating.withdrawal,f:1},{r:e.rating.repayment,f:1},{r:e.rating.closing,f:.2}]:2===e.filter_id?i=[{r:e.rating.informing,f:.2},{r:e.rating.receipt,f:.8},{r:e.rating.repayment,f:1.2},{r:e.rating.closing,f:.3}]:3===e.filter_id?i=[{r:e.rating.informing,f:.5},{r:e.rating.receipt,f:.6},{r:e.rating.repayment,f:1},{r:e.rating.closing,f:.6}]:4===e.filter_id?i=[{r:e.rating.informing,f:.2},{r:e.rating.receipt,f:.8},{r:e.rating.repayment,f:1.2},{r:e.rating.closing,f:.3}]:5===e.filter_id?i=[{r:e.rating.informing,f:.3},{r:e.rating.opening,f:.6},{r:e.rating.withdrawal,f:1},{r:e.rating.refill,f:1},{r:e.rating.closing,f:.3}]:6===e.filter_id?i=[{r:e.rating.informing,f:.1},{r:e.rating.opening,f:.6},{r:e.rating.payments,f:1},{r:e.rating.withdrawal,f:1},{r:e.rating.refill,f:.5},{r:e.rating.closing,f:.1}]:7===e.filter_id?i=[{r:e.rating.informing,f:.2},{r:e.rating.service,f:.8}]:8===e.filter_id?i=[{r:e.rating.informing,f:.2},{r:e.rating.receipt,f:.6},{r:e.rating.payments,f:1},{r:e.rating.buyout,f:.8},{r:e.rating.closing,f:.2}]:9===e.filter_id?i=[{r:e.rating.informing,f:.2},{r:e.rating.service,f:.8}]:10===e.filter_id&&(i=[{r:e.rating.informing,f:.8},{r:e.rating.receipt,f:.5},{r:e.rating.payments,f:1},{r:e.rating.service,f:.7}]),i.forEach(function(e){e.r&&(n+=e.r*e.f,a+=e.f)}),n=a?n/a:0};var x=n(94073),b=n(68583),w=n.n(b),C=n(16205),j=n.n(C);let N=e=>{let{data:t,organization:n,organizationType:i}=e;if(t.length)return(0,a.jsxs)("div",{className:j().answers,children:[(0,a.jsx)("p",{className:j().title,children:"Ответ организации"}),(0,a.jsx)("div",{className:j().list,children:t.map(e=>{let{id:t,answer:l,published:o,user:{company_name:r}}=e;return(0,a.jsxs)("div",{className:j().answer,children:[(0,a.jsx)("div",{className:j().logo,children:(0,a.jsx)(c.D,{url:(null==n?void 0:n.bic)||(null==n?void 0:n.url)||"",type:i,width:48,height:48,companyName:null==n?void 0:n.name})}),(0,a.jsxs)("div",{className:j().content,children:[(0,a.jsxs)("div",{className:j().info,children:[(0,a.jsx)("p",{className:j().name,children:r}),(0,a.jsx)("p",{className:j().date,children:(0,h.p6)(o,{format:"dd.MM.yyyy HH:mm"}).toString()})]}),(0,a.jsx)("div",{className:j().text,dangerouslySetInnerHTML:{__html:l}})]})]},t)})})]})},k=e=>{var t,n,i,o,s,c;let d=y(e.review,e.orgType);return(0,a.jsxs)("div",{className:w().wrapper,children:[(0,a.jsxs)("div",{className:w().header,children:[(0,a.jsxs)("div",{className:w().user,children:[(0,a.jsx)(x.y,{user:e.review.first_name,bic:null===(t=e.org)||void 0===t?void 0:t.bic,fkUrl:null===(n=e.org)||void 0===n?void 0:n.url,fkLogo:null===(i=e.org)||void 0===i?void 0:i.logo_mob,fkType:e.orgType,type:"ReviewDetail",fkName:null===(o=e.org)||void 0===o?void 0:o.name}),(0,a.jsxs)("div",{className:w().info,children:[(0,a.jsx)("div",{className:w().name,children:e.review.first_name}),(0,a.jsxs)("div",{className:w().rating,children:[(0,_.Z)(d),(0,a.jsx)("div",{className:w().ratingStars,children:[1,2,3,4,5].map(e=>(0,a.jsx)(u.IconFdsStarF,{size:18,className:(0,r.Z)(w().star,{[w().gray]:e>Number(d)})},e))})]})]})]}),(0,a.jsx)("div",{className:w().date,children:(0,h.p6)(e.review.published).toString()})]}),(0,a.jsxs)("div",{className:w().tags,children:[!!(null===(s=e.org)||void 0===s?void 0:s.name)&&(0,a.jsx)(l.Vp,{label:null===(c=e.org)||void 0===c?void 0:c.name,variant:"secondary"}),!!e.review.serviceName&&(0,a.jsx)(l.Vp,{label:e.review.serviceName,variant:"secondary"}),e.review.answers.length>0&&(0,a.jsx)(l.Vp,{label:"Есть ответ банка",variant:"purple"})]}),(0,a.jsxs)("div",{className:w().text,children:[(0,a.jsx)("div",{className:w().title,children:e.review.title}),(0,a.jsx)("div",{className:w().review,children:e.review.review})]}),(0,a.jsx)(N,{data:e.review.answers,organization:e.org,organizationType:e.orgType})]})},T=(e,t,n)=>{switch(t){case f.$.insurance:return"/otzyv/".concat((null==n?void 0:n.url)||"","/").concat(e.url);case f.$.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 A=n(70754),S=n(51479),R=n(54550),I=n(83756),B=n.n(I);let L=e=>{var t,n,i,o,r,s;let c=T(e.review,e.orgType,e.org);return(0,a.jsxs)("a",{className:B().wrapper,href:c,target:"_self",onClick:()=>{(0,S.D)({eventCategory:A.lD,eventActionType:S.i.offer,eventActionText:(0,R.b)(e.review.title||""),eventLabel:(0,R.b)(c||"")})},children:[(0,a.jsxs)("div",{className:B().header,children:[(0,a.jsxs)("div",{className:B().user,children:[(0,a.jsx)(x.y,{user:e.review.first_name,bic:null===(t=e.org)||void 0===t?void 0:t.bic,fkUrl:null===(n=e.org)||void 0===n?void 0:n.url,fkLogo:null===(i=e.org)||void 0===i?void 0:i.logo_mob,fkType:e.orgType,forceMobile:!0,fkName:null===(o=e.org)||void 0===o?void 0:o.name}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:B().name,children:e.review.first_name}),(0,a.jsxs)("div",{className:B().rating,children:[(0,_.Z)(y(e.review,e.orgType)),(0,a.jsx)(u.IconFdsStarF,{size:16,className:B().ratingIcon})]})]})]}),(0,a.jsx)("div",{className:B().date,children:(0,h.p6)(e.review.published).toString()})]}),(0,a.jsxs)("div",{className:B().tags,children:[!!(null===(r=e.org)||void 0===r?void 0:r.name)&&(0,a.jsx)(l.Vp,{size:"s",label:null===(s=e.org)||void 0===s?void 0:s.name,variant:"secondary"}),!!e.review.serviceName&&(0,a.jsx)(l.Vp,{size:"s",label:e.review.serviceName,variant:"secondary"}),e.review.answers.length>0&&(0,a.jsx)(l.Vp,{size:"s",label:"Есть ответ банка",variant:"purple"})]}),(0,a.jsxs)("div",{className:B().text,children:[(0,a.jsx)("div",{className:B().title,children:e.review.title}),(0,a.jsx)("div",{className:B().review,children:e.review.review}),(0,a.jsxs)("div",{className:B().footer,children:[(0,a.jsx)("button",{className:B().readMore,children:"Читать полностью"}),e.review.answers.length>0&&(0,a.jsxs)("button",{className:B().commentsIcon,children:[(0,a.jsx)(u.IconFdsChatDotsCircleO,{size:20}),(0,a.jsx)("p",{className:B().commentsLabel,children:e.review.answers.length})]})]})]})]})};var P=n(1413),O=n.n(P);let M=e=>{var t,n,i,l,c;let{env:u}=(0,m.k)(),v=u.NEXT_PUBLIC_BASE_URL,p=(0,o.r)((null===(t=e.org)||void 0===t?void 0:t.name_p)||"")?"об":"о",{name_p:_,url:g}=d.yi[e.orgType],h=e.orgType===f.$.insurance?"/otzyvy/".concat(null===(n=e.org)||void 0===n?void 0:n.url):"/".concat(g,"/").concat(null===(i=e.org)||void 0===i?void 0:i.url,"/otzyvy");return(0,a.jsxs)("div",{className:(0,r.Z)(O().wrapper,e.className),children:[(0,a.jsx)("h2",{className:O().title,dangerouslySetInnerHTML:{__html:"Другие отзывы".concat((null===(l=e.org)||void 0===l?void 0:l.name_p)?" ".concat(p,"&nbsp;").concat(null===(c=e.org)||void 0===c?void 0:c.name_p):"")}}),(0,a.jsx)("div",{className:O().list,children:e.companyReviews.map(t=>(0,a.jsx)(L,{review:t,...e},t.id))}),!!e.org&&(0,a.jsx)(s.j,{className:O().fullInfoLink,iconColor:"white",mainPageUrl:v,href:h,target:"_self",text:"Смотреть все отзывы о ".concat(_)})]})},E={[f.$.bank]:{name:"Банк",name_p:"банках",name_r:"банков",any:"Любой",url:"/polzovatelskij_rejting_bankov"},[f.$.mfo]:{name:"МФО",name_p:"мфо",name_r:"мфо",any:"Любая",url:"/polzovatelskij_rejting_mfo"},[f.$.insurance]:{name:"Страховая",name_p:"страховых компаниях",name_r:"страховых",any:"Любая",url:"/strahovanie_otzyvy"}};var D=n(31538),F=n(60816),U=n(77919),W=n.n(U);let z=e=>{let t,{item:n,baseUrl:a,orgType:i,org:l}=e,o="".concat(a,"/banki/").concat(null==l?void 0:l.url,"/otzyvy/").concat(n.url),r=y(n,i);if(l){let{legal_entities:e}=l;if(Array.isArray(e)&&e.length>0){let n=e[0];"legal_address"in n&&n.legal_address?t=n.legal_address:"address"in n&&(t=n.address)}}return{"@context":"https://schema.org","@type":"Review","@id":"".concat(o,"#review"),mainEntityOfPage:{"@type":"WebPage","@id":o},inLanguage:"ru-RU",itemReviewed:{"@type":i===f.$.insurance?"InsuranceAgency":"BankOrCreditUnion",...l&&{name:l.name},brand:{"@type":"Organization",...l&&{name:l.name}},...t&&{address:{"@type":"PostalAddress",addressLocality:t}}},name:n.title,reviewBody:n.review,datePublished:n.published,reviewRating:{"@type":"Rating",ratingValue:Math.round(r),bestRating:5,worstRating:1},author:{"@type":"Person",name:n.first_name},publisher:{"@type":"Organization",name:"Финуслуги",url:a}}};var V=n(20777),H=n(89487),q=n(17730),X=e=>{let{orgType:t,review:n,companyReviews:r,org:s,generalRating:c,orgPlace:d,mostPopularServiceName:u,bestOffersData:v,supportBlockData:p}=e,{env:_}=(0,m.k)(),h=E[t],y=(0,o.r)((null==s?void 0:s.name)||"")?"об":"о",x=(null==s?void 0:s.name_p)?" ".concat(y," ").concat(null==s?void 0:s.name_p):"",b=n.first_name_r?" от ".concat(n.first_name_r):"",w={[f.$.mfo]:"mfo",[f.$.insurance]:"sk"}[t]||null;return(0,a.jsxs)("div",{className:W().page,children:[(0,a.jsxs)(i.W2,{children:[(0,a.jsx)(l.Oo,{style:{padding:"16px 0"},items:[{href:"/",label:"Главная"},{label:"Отзывы о ".concat(h.name_p),href:"/otzyvy".concat(w?"?type=".concat(w):"")},{label:"Отзыв".concat(x).concat(b)}]}),(0,a.jsx)("h1",{className:"collapsed",children:n.title}),(0,a.jsxs)("div",{className:W().wrapper,children:[(0,a.jsxs)("div",{className:W().main,children:[(0,a.jsx)(k,{review:n,org:s,orgType:t}),(0,a.jsx)(M,{org:s,companyReviews:r,orgType:t,className:"desktopOnly"})]}),(0,a.jsxs)("div",{className:W().sidebar,children:[(0,a.jsx)(D.l,{eventCategory:A.lD}),(0,a.jsx)(g,{org:s,orgType:t,generalRating:c,orgPlace:d,mostPopularServiceName:u})]})]}),(0,a.jsx)(M,{org:s,companyReviews:r,orgType:t,className:"mobileOnly"}),(0,a.jsx)(F.d,{data:z({item:n,baseUrl:_.NEXT_PUBLIC_BASE_URL,orgType:t,org:s})}),(0,a.jsx)("div",{style:{height:"32px"}})]}),!!(null==v?void 0:v.length)&&(0,a.jsx)(V.MJ,{tabs:v,baseUrl:_.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(_.NEXT_PUBLIC_S3_ASSETS,"/mp-assets"),dataLayerPush:H.l}),p&&(0,a.jsx)(q.B,{...p,s3Assets:_.NEXT_PUBLIC_S3_ASSETS})]})}},48156:function(e,t,n){"use strict";function a(e,t){return(null==e?void 0:e.status)==="fulfilled"?e.value:t}n.d(t,{_:function(){return a}})},90852:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});let a=e=>["а","е","ё","и","о","у","ы","э","ю","я"].indexOf(e.charAt(0).toLowerCase())>=0},69286:function(e){e.exports={container:"FaqLinkList_container__IbV_r",choice:"FaqLinkList_choice__sIjKt",choiceOption:"FaqLinkList_choiceOption__m4t8n"}},26819:function(e){e.exports={page:"CompanyDetail_page__kep46",breadcrumbs:"CompanyDetail_breadcrumbs__oPhG_",whiteBlock:"CompanyDetail_whiteBlock__Q1H5o",bannerWrapper:"CompanyDetail_bannerWrapper___yLFB",infoBlock:"CompanyDetail_infoBlock__wr3c5",title:"CompanyDetail_title__cCsD7",location:"CompanyDetail_location__pIaSI",tabsWrapper:"CompanyDetail_tabsWrapper__XEjJj",swiper:"CompanyDetail_swiper__4FZvI",tab:"CompanyDetail_tab__vURjC",activeTab:"CompanyDetail_activeTab__XwUgC",hide:"CompanyDetail_hide___0iP3",partnersLink:"CompanyDetail_partnersLink__UMBFD",allReviewsButton:"CompanyDetail_allReviewsButton__4SyI4",allReviewsButtonIcon:"CompanyDetail_allReviewsButtonIcon___e3A4",ratingsContainer:"CompanyDetail_ratingsContainer__J7H_e",hiddenSection:"CompanyDetail_hiddenSection__d3uhv",adresaSkeleton:"CompanyDetail_adresaSkeleton__W11UH",quote:"CompanyDetail_quote__D_hRw",mobileBanner:"CompanyDetail_mobileBanner__mizYh"}},1649:function(e){e.exports={wrapper:"AboutCompany_wrapper__rj6IF",bankInfoTabs:"AboutCompany_bankInfoTabs__lHQch",bankInfoTabButton:"AboutCompany_bankInfoTabButton__xAQv9",topRow:"AboutCompany_topRow__KZF42",history:"AboutCompany_history__cMb_u",title:"AboutCompany_title__wV5gI",historyTitle:"AboutCompany_historyTitle__UjkcP",historyRows:"AboutCompany_historyRows__uOkzU",historyModal:"AboutCompany_historyModal__Lfqnx",historyPopup:"AboutCompany_historyPopup__xxvMi",row:"AboutCompany_row__56bY_",year:"AboutCompany_year__oVOar",text:"AboutCompany_text__c7bFw",showAllButton:"AboutCompany_showAllButton__rS_At",showMoreButton:"AboutCompany_showMoreButton__Vx1Ov",bottomRow:"AboutCompany_bottomRow__tvoMX",withoutWrap:"AboutCompany_withoutWrap__2ScQS",requisitesColumn:"AboutCompany_requisitesColumn__FUxMp",infoItemTitle:"AboutCompany_infoItemTitle__CQzFs",infoItemValue:"AboutCompany_infoItemValue__lGtAO",partnersButton:"AboutCompany_partnersButton__jcva_",drawer:"AboutCompany_drawer__bJ_Kw",showMoreLicensesButton:"AboutCompany_showMoreLicensesButton__DTjyU",showMoreLegalEntitiesButton:"AboutCompany_showMoreLegalEntitiesButton__gYSTU",insuranceTypes:"AboutCompany_insuranceTypes__ocTvY",typesList:"AboutCompany_typesList__iHV1x",insuranceTypeTag:"AboutCompany_insuranceTypeTag__qWxSV",insuranceTypeTagFull:"AboutCompany_insuranceTypeTagFull__f_lBv",expanded:"AboutCompany_expanded__j2W4l",gradient:"AboutCompany_gradient___B3kF"}},75950:function(e){e.exports={card:"BankDetailOffer_card___qule",offerButton:"BankDetailOffer_offerButton__f557Z",iconButton:"BankDetailOffer_iconButton__xZ2B7",paddingForButton:"BankDetailOffer_paddingForButton__LD8l7",chips:"BankDetailOffer_chips__Vpi_b",top:"BankDetailOffer_top___m8mF",topContent:"BankDetailOffer_topContent__IAVK0",controls:"BankDetailOffer_controls__mk21X",mortgageInfo:"BankDetailOffer_mortgageInfo__XFWiW",bankInfo:"BankDetailOffer_bankInfo__GM0We",groups:"BankDetailOffer_groups__3AlEf",whiteCard:"BankDetailOffer_whiteCard__OKOMd",buttons:"BankDetailOffer_buttons__On_Kr",iconDetail:"BankDetailOffer_iconDetail__JAZX3",bottom:"BankDetailOffer_bottom__pwfBV",chip:"BankDetailOffer_chip__rkNCj",icon:"BankDetailOffer_icon__Cn7Cm",tooltip:"BankDetailOffer_tooltip__KLX7N",lastOfferCornerGradient:"BankDetailOffer_lastOfferCornerGradient__6D5t6"}},37953:function(e){e.exports={group:"BankDetailOfferInfoGroup_group__62HVe",titleGroup:"BankDetailOfferInfoGroup_titleGroup__So6h2",groupSub:"BankDetailOfferInfoGroup_groupSub__VMjtj",groupContent:"BankDetailOfferInfoGroup_groupContent__wppAC",nowrap:"BankDetailOfferInfoGroup_nowrap__zh5jk",preposition:"BankDetailOfferInfoGroup_preposition__iTuPw"}},57234:function(e){e.exports={featureInfo:"BankFeatureInfo_featureInfo__LmfMJ",iconWrapper:"BankFeatureInfo_iconWrapper__w1rzO",content:"BankFeatureInfo_content__lVR97",title:"BankFeatureInfo_title__FstHu"}},34914:function(e){e.exports={wrapper:"BankOffersList_wrapper__9KEFv",productsListContainer:"BankOffersList_productsListContainer__R7J4A",containerTopPadding:"BankOffersList_containerTopPadding__gz6wc",title:"BankOffersList_title__4c75O",chips:"BankOffersList_chips__BIggh",location:"BankOffersList_location__CBqLf",offersList:"BankOffersList_offersList__1DdH_",showMore:"BankOffersList_showMore__oXbJn",showMoreButton:"BankOffersList_showMoreButton___oq_s",showMoreIcon:"BankOffersList_showMoreIcon__adNTC",skeleton:"BankOffersList_skeleton__zM1Kr",mfoSkeleton:"BankOffersList_mfoSkeleton__oZjyj"}},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,[1928,4963,6389,9755,3658,4369,3544,5501,207,7654,3145,5979,4789,7042,3389,692,4220,8508,1746,668,8377,3562,4508,2971,2117,1744],function(){return e(e.s=26313)}),_N_E=e.O()}]);