(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3348],{197:()=>{},4264: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"}},5244: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"}},19977:()=>{},21052: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"}},21866:()=>{},25298: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"}},38016:e=>{e.exports={page:"ReviewsDetail_page__fFZCz",wrapper:"ReviewsDetail_wrapper__uL0Mc",main:"ReviewsDetail_main__uPib_",sidebar:"ReviewsDetail_sidebar__cedho"}},42010:e=>{e.exports={section:"BankServices_section__bRF_x"}},42572: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"}},43307: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"}},48054:e=>{e.exports={wrapper:"OtherReviewsSection_wrapper__FExMe",title:"OtherReviewsSection_title__jrzEQ",list:"OtherReviewsSection_list__G_Ate",fullInfoLink:"OtherReviewsSection_fullInfoLink__a7jI5"}},49746:()=>{},56607:e=>{e.exports={tile:"ServiceTile_tile__izJFK",active:"ServiceTile_active__ZO6mD",tileContent:"ServiceTile_tileContent__9g3ol",tileTitle:"ServiceTile_tileTitle__gXtWd",count:"ServiceTile_count__mY1ca"}},61674: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"}},69576:e=>{e.exports={wrapper:"ServiceBlocks_wrapper__E_msK",tiles:"ServiceBlocks_tiles__4O3RS",skeleton:"ServiceBlocks_skeleton__R6K1A"}},69856:(e,t,a)=>{"use strict";a.d(t,{default:()=>X});var i=a(95155),r=a(48830),n=a(66216),l=a(99639),s=a(4997),o=a(26111),m=a(24104),c=a(98558),u=a(43171),d=a(6814);let p=(e,t)=>{if(!e)return 0;if("number"==typeof e.people_rating)return e.people_rating;let a=0,i=0,r=[];return t===d.C.insurance?r=[{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?r=[{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?r=[{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?r=[{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?r=[{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?r=[{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?r=[{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?r=[{r:e.rating.informing,f:.2},{r:e.rating.service,f:.8}]:8===e.filter_id?r=[{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?r=[{r:e.rating.informing,f:.2},{r:e.rating.service,f:.8}]:10===e.filter_id&&(r=[{r:e.rating.informing,f:.8},{r:e.rating.receipt,f:.5},{r:e.rating.payments,f:1},{r:e.rating.service,f:.7}]),r.forEach(function(e){e.r&&(a+=e.r*e.f,i+=e.f)}),a=i?a/i:0};var _=a(84685),g=a(29722),f=a(94589),h=a(50364),v=a(82491),y=a(16378),w=a(25298),x=a.n(w);let b=e=>{let t=(0,s.p)();if(!e.org)return null;let{name_p:a,url:r}=v.wY[e.orgType];return(0,i.jsx)("div",{className:(0,g.A)(x().wrapper,e.className),children:(0,i.jsxs)("div",{className:x().card,children:[(0,i.jsxs)("div",{className:x().logo,children:[(0,i.jsx)(h.v,{bic:e.org.bic||e.org.url||"",url:e.org.url,type:e.orgType,width:42,height:42,companyName:e.org.name,archive:e.org.archive}),(0,i.jsxs)("div",{className:x().ratingBadge,children:[(0,i.jsx)(_.Zv1,{className:x().star}),(0,y.Y)(e.generalRating||0)]})]}),(0,i.jsx)("div",{className:x().title,children:e.org.name}),(0,i.jsx)("ul",{className:x().list,children:!!e.org.reviews_num&&(0,i.jsxs)("li",{children:[e.org.reviews_num," отзывов"]})}),(0,i.jsx)(f.e,{className:x().fullInfoLink,mainPageUrl:t.NEXT_PUBLIC_BASE_URL,href:`/${r}/${e.org.url}`,target:"_self",text:`Подробнее о ${a}`})]})})};var C=a(24964),T=a(2191),N=a(50932),j=a(43307),R=a.n(j);let k=({data:e,organization:t,organizationType:a})=>{if(e.length)return(0,i.jsxs)("div",{className:R().answers,children:[(0,i.jsx)("p",{className:R().title,children:"Ответ организации"}),(0,i.jsx)("div",{className:R().list,children:e.map(({id:e,answer:r,published:n,user:l})=>(0,i.jsxs)("div",{className:R().answer,children:[(0,i.jsx)("div",{className:R().logo,children:(0,i.jsx)(h.v,{bic:t?.bic||t?.url||"",type:a,url:t?.url,width:48,height:48,companyName:t?.name})}),(0,i.jsxs)("div",{className:R().content,children:[(0,i.jsxs)("div",{className:R().info,children:[(0,i.jsx)("p",{className:R().name,children:l?.company_name||t?.name}),(0,i.jsx)("p",{className:R().date,children:(0,N.Yq)(n,{format:"dd.MM.yyyy HH:mm"}).toString()})]}),(0,i.jsx)("div",{className:R().text,dangerouslySetInnerHTML:{__html:r}})]})]},e))})]})};var A=a(36183),$=a(61674),I=a.n($);let S=e=>{let t=p(e.review,e.orgType);return(0,i.jsxs)("div",{className:I().wrapper,children:[(0,i.jsxs)("div",{className:I().header,children:[(0,i.jsxs)("div",{className:I().user,children:[(0,i.jsx)(A.P,{user:e.review.first_name,bic:e.org?.bic,fkUrl:e.org?.url,fkLogo:e.org?.logo_mob,fkType:e.orgType,type:"ReviewDetail",fkName:e.org?.name,archiveCompany:e.org?.archive}),(0,i.jsxs)("div",{className:I().info,children:[(0,i.jsx)("div",{className:I().name,children:e.review.first_name}),(0,i.jsxs)("div",{className:I().rating,children:[(0,y.Y)(t),(0,i.jsx)("div",{className:I().ratingStars,children:[1,2,3,4,5].map(e=>(0,i.jsx)(_.Zv1,{size:18,className:(0,g.A)(I().star,{[I().gray]:e>Number(t)})},e))})]})]})]}),(0,i.jsx)("div",{className:I().date,children:(0,N.Yq)(e.review.published).toString()})]}),(0,i.jsxs)("div",{className:I().tags,children:[!!e.org?.name&&(0,i.jsx)(C.v,{label:e.org?.name,variant:"secondary"}),!!e.review.serviceName&&(0,i.jsx)(C.v,{label:T.OK.find(t=>t.key===e.review.serviceName)?.title||"",variant:"secondary"}),e.review.answers.length>0&&(0,i.jsx)(C.v,{label:"Есть ответ банка",variant:"purple"})]}),(0,i.jsxs)("div",{className:I().text,children:[(0,i.jsx)("div",{className:I().title,children:e.review.title}),(0,i.jsx)("div",{className:I().review,children:e.review.review})]}),(0,i.jsx)(k,{data:e.review.answers,organization:e.org,organizationType:e.orgType})]})};var P=a(4779),L=a(26180),B=a(42572),E=a.n(B);let M=e=>{let t=((e,t,a)=>{switch(t){case d.C.insurance:return`/otzyv/${a?.url||""}/${e.url}`;case d.C.mfo:return`/mfo/${a?.url||""}/otzyvy/${e.url}`;default:return`/banki/${a?.url||""}/otzyvy/${e.url}`}})(e.review,e.orgType,e.org);return(0,i.jsxs)("a",{className:E().wrapper,href:t,target:"_self",onClick:()=>{(0,P._)({eventCategory:u.Bo,eventActionType:P.y.offer,eventActionText:(0,L.y)(e.review.title||""),eventLabel:(0,L.y)(t||"")})},children:[(0,i.jsxs)("div",{className:E().header,children:[(0,i.jsxs)("div",{className:E().user,children:[(0,i.jsx)(A.P,{user:e.review.first_name,bic:e.org?.bic,fkUrl:e.org?.url,fkLogo:e.org?.logo_mob,fkType:e.orgType,forceMobile:!0,fkName:e.org?.name,archiveCompany:e.org?.archive}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:E().name,children:e.review.first_name}),(0,i.jsxs)("div",{className:E().rating,children:[(0,y.Y)(p(e.review,e.orgType)),(0,i.jsx)(_.Zv1,{size:16,className:E().ratingIcon})]})]})]}),(0,i.jsx)("div",{className:E().date,children:(0,N.Yq)(e.review.published).toString()})]}),(0,i.jsxs)("div",{className:E().tags,children:[!!e.org?.name&&(0,i.jsx)(C.v,{size:"s",label:e.org?.name,variant:"secondary"}),!!e.review.serviceName&&(0,i.jsx)(C.v,{size:"s",label:e.review.serviceName,variant:"secondary"}),e.review.answers.length>0&&(0,i.jsx)(C.v,{size:"s",label:"Есть ответ банка",variant:"purple"})]}),(0,i.jsxs)("div",{className:E().text,children:[(0,i.jsx)("div",{className:E().title,children:e.review.title}),(0,i.jsx)("div",{className:E().review,children:e.review.review}),(0,i.jsxs)("div",{className:E().footer,children:[(0,i.jsx)("button",{className:E().readMore,children:"Читать полностью"}),e.review.answers.length>0&&(0,i.jsxs)("button",{className:E().commentsIcon,children:[(0,i.jsx)(_.kqG,{size:20}),(0,i.jsx)("p",{className:E().commentsLabel,children:e.review.answers.length})]})]})]})]})};var D=a(85044),O=a(48054),U=a.n(O);let F=e=>{let t=(0,s.p)().NEXT_PUBLIC_BASE_URL,a=(0,D.s)(e.org?.name_p||"")?"об":"о",{name_p:r,url:n}=v.wY[e.orgType],l=e.orgType===d.C.insurance?`/otzyvy/${e.org?.url}`:`/${n}/${e.org?.url}/otzyvy`;return(0,i.jsxs)("div",{className:(0,g.A)(U().wrapper,e.className),children:[(0,i.jsx)("h2",{className:U().title,dangerouslySetInnerHTML:{__html:`Другие отзывы${e.org?.name_p?` ${a}&nbsp;${e.org?.name_p}`:""}`}}),(0,i.jsx)("div",{className:U().list,children:e.companyReviews.map(t=>(0,i.jsx)(M,{review:t,...e},t.id))}),!!e.org&&(0,i.jsx)(f.e,{className:U().fullInfoLink,iconColor:"white",mainPageUrl:t,href:l,target:"_self",text:`Смотреть все отзывы о ${r}`})]})};var z=a(3831),Y=a(49684),W=a(38016),q=a.n(W);let X=({orgType:e,review:t,companyReviews:a,org:_,generalRating:g,orgPlace:f,mostPopularServiceName:h,bestOffersData:v,supportBlockData:y})=>{let w=(0,s.p)(),x=z.a[e],C=(0,D.s)(_?.name||"")?"об":"о",T=_?.name_p?` ${C} ${_?.name_p}`:"",N=t.first_name_r?` от ${t.first_name_r}`:"",j={[d.C.mfo]:"mfo",[d.C.insurance]:"sk"}[e]||null,R=j?`?type=${j}`:"";return(0,i.jsxs)("div",{className:q().page,children:[(0,i.jsxs)(n.m,{children:[(0,i.jsx)(r.B,{style:{padding:"16px 0"},items:[{href:"/",label:"Главная"},{label:`Отзывы о ${x.name_p}`,href:`/otzyvy${R}`},{label:`Отзыв${T}${N}`}]}),(0,i.jsx)("h1",{className:"collapsed",children:t.title}),(0,i.jsxs)("div",{className:q().wrapper,children:[(0,i.jsxs)("div",{className:q().main,children:[(0,i.jsx)(S,{review:t,org:_,orgType:e}),(0,i.jsx)(F,{org:_,companyReviews:a,orgType:e,className:"desktopOnly"})]}),(0,i.jsxs)("div",{className:q().sidebar,children:[(0,i.jsx)(m.c,{eventCategory:u.Bo}),(0,i.jsx)(b,{org:_,orgType:e,generalRating:g,orgPlace:f,mostPopularServiceName:h})]})]}),(0,i.jsx)(F,{org:_,companyReviews:a,orgType:e,className:"mobileOnly"}),(0,i.jsx)(c.B,{data:(({item:e,baseUrl:t,orgType:a,org:i})=>{let r,n=`${t}/banki/${i?.url}/otzyvy/${e.url}`,l=p(e,a);if(i){let{legal_entities:e}=i;if(Array.isArray(e)&&e.length>0){let t=e[0];"legal_address"in t&&t.legal_address?r=t.legal_address:"address"in t&&(r=t.address)}}return{"@context":"https://schema.org","@type":"Review","@id":`${n}#review`,mainEntityOfPage:{"@type":"WebPage","@id":n},inLanguage:"ru-RU",itemReviewed:{"@type":a===d.C.insurance?"InsuranceAgency":"BankOrCreditUnion",...i&&{name:i.name},brand:{"@type":"Organization",...i&&{name:i.name}},...r&&{address:{"@type":"PostalAddress",addressLocality:r}}},name:e.title,reviewBody:e.review,datePublished:e.published,reviewRating:{"@type":"Rating",ratingValue:Math.round(l),bestRating:5,worstRating:1},author:{"@type":"Person",name:e.first_name},publisher:{"@type":"Organization",name:"Финуслуги",url:t}}})({item:t,baseUrl:w.NEXT_PUBLIC_BASE_URL,orgType:e,org:_})}),(0,i.jsx)("div",{style:{height:"32px"}})]}),v&&(0,i.jsx)(l.BestOffers,{tabs:v,baseUrl:w.NEXT_PUBLIC_BASE_URL,s3Assets:`${w.NEXT_PUBLIC_S3_ASSETS}/mp-assets`,dataLayerPush:Y.o}),y&&(0,i.jsx)(o.Support,{...y,s3Assets:w.NEXT_PUBLIC_S3_ASSETS})]})}},74498:e=>{e.exports={section:"CompanyReviews_section__jsSLr",sortWrapper:"CompanyReviews_sortWrapper__nHMN_",activeSortOption:"CompanyReviews_activeSortOption__OYSoq",sortIcon:"CompanyReviews_sortIcon__0fwy3"}},75241:(e,t,a)=>{"use strict";a.d(t,{UserParamsProvider:()=>c,f:()=>u});var i=a(95155),r=a(12115),n=a(98668);function l(e){return sessionStorage.getItem(e)??void 0}let s=(0,r.createContext)(void 0),o="browserId",m="browserSessionId";function c({children:e}){let[t,a]=(0,r.useState)({});return(0,r.useEffect)(()=>{let{[o]:e,[m]:t,"auth.gtm_customer_id":i,_ym_uid:r}=Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=")));a({browserId:e??n.A.getItem(o)??void 0,sessionId:t??l(m)??l(o),customerId:i,yandexId:r})},[]),(0,i.jsx)(s.Provider,{value:t,children:e})}function u(){let e=(0,r.useContext)(s);if(void 0===e)throw Error("The context of the user params is used outside of the provider");return e}},79433:(e,t,a)=>{"use strict";a.d(t,{BinomParamsProvider:()=>s,v:()=>o});var i=a(95155),r=a(12115),n=a(73321);let l=(0,r.createContext)(void 0);function s({children:e}){let t=(0,n.useSearchParams)(),a=(0,n.usePathname)(),o=t.get("utm_source")?.toString(),m=t.get("utm_campaign")?.toString(),c=t.get("utm_content")?.toString(),u=t.get("utm_medium")?.toString(),d=t.get("utm_term")?.toString(),p=t.get("click_id")?.toString(),_=(0,r.useMemo)(()=>({pathname:a,utmSource:o,utmMedium:u,utmCampaign:m,utmTerm:d,utmContent:c,clickId:p}),[a,o,u,m,d,c,p]);return(0,i.jsx)(l.Provider,{value:_,children:e})}function o(){let e=(0,r.useContext)(l);if(void 0===e)throw Error("The context of the binom params is used outside of the provider");return e}},83307:e=>{e.exports={group:"BankDetailOfferInfoGroup_group__62HVe",titleGroup:"BankDetailOfferInfoGroup_titleGroup__So6h2",groupSub:"BankDetailOfferInfoGroup_groupSub__VMjtj",labelText:"BankDetailOfferInfoGroup_labelText__CqgY9",hintIcon:"BankDetailOfferInfoGroup_hintIcon__HPoJ8",hint:"BankDetailOfferInfoGroup_hint__3q3O1",groupContent:"BankDetailOfferInfoGroup_groupContent__wppAC",nowrap:"BankDetailOfferInfoGroup_nowrap__zh5jk",preposition:"BankDetailOfferInfoGroup_preposition__iTuPw"}},86038: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"}},92996:e=>{e.exports={wrapper:"CompanyDetailPeopleRatingTab_wrapper__NiGY7",container:"CompanyDetailPeopleRatingTab_container__0YUmK",body:"CompanyDetailPeopleRatingTab_body__CyRvJ",info:"CompanyDetailPeopleRatingTab_info__jtpRH",title:"CompanyDetailPeopleRatingTab_title__pjatM",description:"CompanyDetailPeopleRatingTab_description__hVNgg",peopleRatingWrapper:"CompanyDetailPeopleRatingTab_peopleRatingWrapper___i7Uj",peopleRatingTopInfo:"CompanyDetailPeopleRatingTab_peopleRatingTopInfo__Alp1I",peopleRatingTopFullInfoLink:"CompanyDetailPeopleRatingTab_peopleRatingTopFullInfoLink__C_sSI",lowReviewsRatingInfo:"CompanyDetailPeopleRatingTab_lowReviewsRatingInfo__WgoLN",lowReviewsRatingTop:"CompanyDetailPeopleRatingTab_lowReviewsRatingTop__Bzxmd",lowReviewsRatingTitle:"CompanyDetailPeopleRatingTab_lowReviewsRatingTitle__2ENeI",lowReviewsRatingIcon:"CompanyDetailPeopleRatingTab_lowReviewsRatingIcon__L6n7u",lowReviewsRatingLink:"CompanyDetailPeopleRatingTab_lowReviewsRatingLink__C4dBd",lowReviewsRatingDescription:"CompanyDetailPeopleRatingTab_lowReviewsRatingDescription__IrhaM",rowItem:"CompanyDetailPeopleRatingTab_rowItem__BgPhS",rowItemIcon:"CompanyDetailPeopleRatingTab_rowItemIcon__sSnwj",rowTitleWrapper:"CompanyDetailPeopleRatingTab_rowTitleWrapper__2t419",rowTitle:"CompanyDetailPeopleRatingTab_rowTitle__8iU3R",rowLink:"CompanyDetailPeopleRatingTab_rowLink__P8voN",starWrapper:"CompanyDetailPeopleRatingTab_starWrapper__sYIqc",starIcon:"CompanyDetailPeopleRatingTab_starIcon__C8hBu",starText:"CompanyDetailPeopleRatingTab_starText__S1VvT",mid:"CompanyDetailPeopleRatingTab_mid__YwwMF",big:"CompanyDetailPeopleRatingTab_big__GTNwm",partial:"CompanyDetailPeopleRatingTab_partial__ePmT2",disclaimer:"CompanyDetailPeopleRatingTab_disclaimer__JdEE2",bannerWrapper:"CompanyDetailPeopleRatingTab_bannerWrapper__y8eB9"}},94289:(e,t,a)=>{Promise.resolve().then(a.bind(a,93619)),Promise.resolve().then(a.bind(a,26159)),Promise.resolve().then(a.bind(a,94968)),Promise.resolve().then(a.bind(a,41669)),Promise.resolve().then(a.bind(a,74634)),Promise.resolve().then(a.bind(a,69856)),Promise.resolve().then(a.bind(a,13256))},94484: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"}},94968:(e,t,a)=>{"use strict";a.d(t,{default:()=>a_});var i,r,n,l,s,o,m,c=a(95155),u=a(12115),d=a(73321),p=a(84685),_=a(48830),g=a(66216),f=a(24278),h=a(8260),v=a(99639),y=a(41705),w=a(88344),x=a(4997),b=a(26111),C=a(29722),T=a(94589),N=a(48037),j=a(37375),R=a(98558),k=a(43255),A=a(18290),$=a(20669),I=a(12760),S=a(56818),P=a(7034),L=a(82491),B=a(6814);let E=(e,t)=>e===B.C.bank&&!!t&&"finance"in t,M=(e,t)=>e===B.C.insurance&&!!t&&"legal_entities"in t&&Object.keys(t.legal_entities[0]||{}).some(e=>e.startsWith("insType"));var D=a(14347),O=a(77828),U=a(72435),F=a(86038),z=a.n(F);let Y=e=>e.map(e=>"string"==typeof e?(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:e}},e):(0,c.jsxs)("div",{className:z().row,children:[(0,c.jsx)("p",{className:z().year,children:e.data.year}),(0,c.jsx)("div",{className:z().text,dangerouslySetInnerHTML:{__html:e.data.text}})]},e.data.year)),W=({title:e,description:t,historyRowsRef:a,visibleItems:i=3,onShowAll:r,onShowMore:n,isPopup:l=!1})=>{let s=(0,D.nu)("m");return t?(0,c.jsxs)("div",{className:z().history,children:[!l&&(0,c.jsx)("h2",{className:z().historyTitle,children:e}),(0,c.jsx)("div",{className:(0,C.A)(z().historyRows,{[z().historyModal]:l}),ref:a,children:"string"==typeof t?(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:t}}):Y(t.slice(0,s?i:t.length))}),"string"!=typeof t&&!l&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:z().gradient}),(0,c.jsx)(T.e,{text:"Показать все",mainPageUrl:L.mu,iconColor:"light",className:z().showAllButton,onClick:r,widthMaxContent:!0})]}),"string"!=typeof t&&t.length>i&&l&&(0,c.jsx)(T.e,{text:"Показать еще",mainPageUrl:L.mu,icon:p.c0w,iconColor:"light",className:z().showMoreButton,onClick:n,widthMaxContent:!0})]}):null};var q=a(11178);let X=({items:e})=>{let[t,a]=(0,u.useState)(!1),i=()=>a(e=>!e);return e.length?e.map(e=>(0,c.jsxs)("div",{className:z().requisit,children:[(0,c.jsx)("p",{className:z().infoItemTitle,children:e.title}),Array.isArray(e.value)?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:z().infoItemValue,children:e.value.slice(0,t?e.value.length:1).map(e=>(0,c.jsx)("div",{className:z().infoItemValueItem,children:e},e))}),(0,c.jsx)(T.e,{text:t?"Свернуть":"Все свидетельства",mainPageUrl:L.mu,icon:t?p.FzM:p.c0w,iconColor:"light",className:z().showMoreLicensesButton,onClick:i,widthMaxContent:!0})]}):(0,c.jsx)("div",{className:z().infoItemValue,dangerouslySetInnerHTML:{__html:(0,q.w)(e.value)}})]},e.title)):null},H=({title:e,items:t})=>{let[a,i]=(0,u.useState)(!1);return t.length&&t[0].length?(0,c.jsxs)("div",{children:[e&&(0,c.jsx)("h2",{className:z().title,children:e}),t.map((e,t)=>(0,c.jsx)("div",{className:(0,C.A)(z().requisitesColumn,{collapsed:t>0&&!a}),children:(0,c.jsx)(X,{items:e})},t)),t.length>1&&(0,c.jsx)(T.e,{text:a?"Свернуть":"Показать все юрлица",mainPageUrl:L.mu,icon:a?p.FzM:p.c0w,iconColor:"light",className:z().showMoreLegalEntitiesButton,onClick:()=>i(e=>!e),widthMaxContent:!0})]}):null};var V=a(24964);let G=({insuranceTypes:e,loadingInsuranceTypes:t})=>{let a=(0,D.nu)("m"),[i,r]=(0,u.useState)(!1),n=(0,u.useRef)(null),[l,s]=(0,u.useState)(!1);return((0,u.useEffect)(()=>{n.current&&s(n.current.scrollHeight>(a?164:76))},[e,a]),t)?(0,c.jsx)(f.E,{className:z().insuranceTypes,width:468,height:152}):(0,c.jsxs)("div",{className:z().insuranceTypes,children:[(0,c.jsx)("p",{className:z().infoItemTitle,children:"Виды страхования"}),(0,c.jsx)("div",{ref:n,className:(0,C.A)(z().typesList,{[z().expanded]:i}),children:e?.map(e=>(0,c.jsx)(V.v,{label:e.name,variant:"secondary",className:(0,C.A)(z().insuranceTypeTag,{[z().insuranceTypeTagFull]:i})},e.id))}),l&&(0,c.jsx)(T.e,{text:i?"Свернуть":"Показать еще",mainPageUrl:L.mu,icon:i?p.FzM:p.c0w,iconColor:"light",className:z().showMoreLicensesButton,onClick:()=>{r(e=>(e&&n.current&&n.current.scrollIntoView({behavior:"smooth",block:"center"}),!e))},widthMaxContent:!0})]})};var Q=a(50932),Z=a(96005);let K="Реквизиты",J="Контакты",ee=({orgType:e,company:t,insuranceTypes:a,loadingInsuranceTypes:i})=>{var r;let n,l=(0,D.nu)("m"),s=M(e,t),o=e===B.C.bank,m=`История ${o?"банка":"компании"}`,d=(0,u.useRef)(null),[_,f]=(0,u.useState)(m),[h,v]=(0,u.useState)(!1),[y,w]=(0,u.useState)(!1),[x,b]=(0,u.useState)(3),[N,j]=(0,u.useState)(3);r=l?b:j,(0,u.useEffect)(()=>{let e,t=()=>{let e=d.current;if(!e)return;let t=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,i=0;for(let r of Array.from(e.children)){let e=r.getBoundingClientRect();if(e.bottom>t&&e.top<a)i++;else break}r(i)},a=new ResizeObserver(()=>{e=requestAnimationFrame(t)});return d.current&&a.observe(d.current),e=requestAnimationFrame(t),()=>{a.disconnect(),cancelAnimationFrame(e)}},[d,r]),n=(0,u.useRef)(void 0),(0,u.useEffect)(()=>{if("u"<typeof document)return;let e=window.innerWidth-document.documentElement.clientWidth;h&&e&&!document.body.style.top&&(n.current=window.scrollY||window.pageYOffset),h&&void 0!==n.current&&e&&(document.body.classList.add("hide-scrollbar"),document.documentElement.style.setProperty("overflow-y","scroll"),document.body.style.setProperty("width",`calc(100vw - ${e}px)`),document.body.style.setProperty("top",`-${n.current}px`)),h&&!e&&(document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("height","100vw"));let t=document.querySelectorAll("[data-portal]").length>1;h||t||(document.body.classList.remove("hide-scrollbar"),document.documentElement.style.removeProperty("overflow-y"),document.body.style.removeProperty("top")),h||t||void 0===n.current||(window.scrollTo(0,n.current),n.current=void 0)},[h]);let R=e===B.C.insurance,{description:$}=t,I=((e,t)=>{let a=[],i=E(e,t),r=M(e,t),n="microCredits_num"in t;if(i){let{legal_entities:e,email:i,ogrn:r,cpp:n,bic:l,inn:s,okpo:o}=t;if(Array.isArray(e)&&e[0]?.licenses?.length){let{number:t,date:i}=e[0].licenses[0];a.push({title:"Лицензия",value:`№ ${t} от ${(0,Q.Yq)(i).toString()} г.${r?`, <a href="https://www.cbr.ru/finorg/foinfo/?ogrn=${r}" target="_blank">информация на сайте ЦБ РФ</a>`:""}`})}if(Array.isArray(e)&&e.length){let{name:t,legal_address:i}=e[0]||{};t&&a.push({title:"Сокращенное наименование",value:t}),i&&a.push({title:"Юридический адрес",value:i})}i&&a.push({title:"Email",value:`<a href="mailto:${i}">${i}</a>`}),r&&a.push({title:"ОГРН",value:r}),n&&a.push({title:"КПП",value:n}),l&&a.push({title:"БИК",value:l.padStart(9,"0")}),s&&a.push({title:"ИНН",value:s}),o&&a.push({title:"ОКПО",value:o})}if(r){let{legal_entities:[{legal_address:e,name:i,licenses:r}],legal_name:n}=t,l=n||i;e&&a.push({title:"Юридический адрес",value:e}),l&&a.push({title:"Полное наименование",value:l}),r?.length&&a.push({title:"Свидетельство",value:r.map(e=>`№ ${e.number} от ${(0,Q.Yq)(e.date).toString()}`)})}return n&&t.legal_entities?.[0]?t.legal_entities.map(({address:e,name:t,registration_number:a})=>{let i=[];return t&&i.push({title:"Юридическое лицо",value:t}),e&&i.push({title:"Юридический адрес",value:e}),a&&i.push({title:"Регистрационный номер",value:a}),i}):[a]})(e,t),S=(e=>{let{site:t,site_url:a}=e,i=[];a&&i.push({title:"Официальный сайт",value:`<a href="${(0,Z.r)(a)}" target="_blank">${t||a}</a>`});let r=e.phone||e.maintel;return r&&i.push({title:"Телефоны",value:"string"==typeof r?`<a href="tel:${r}">${r}</a>`:`<a href="tel:${r.phone}">${r.phone}</a> <span>${r.description}</span>`}),i})(t),P=s?a?.filter(e=>t?.legal_entities?.[0]?.ins_types?.includes(Number(e.id))):[],F=[m];I.length>0&&F.push(K),S.length>0&&F.push(J);let q=_===m,X=$&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(W,{title:m,description:$,historyRowsRef:d,onShowAll:()=>v(!0),onShowMore:()=>{Array.isArray($)&&b($.length)},visibleItems:l?x:N,isPopup:l}),!l&&(0,c.jsx)(A.o,{organizationType:e,bannerUrl:s?k.nW[t.url]:void 0,compact:!0})]}),V=I.length>0&&(0,c.jsx)(H,{title:l?void 0:K,items:I}),ee=S.length>0&&(0,c.jsx)("div",{className:z().contacts,children:(0,c.jsx)(H,{title:l?void 0:J,items:[S]})}),et=(!!P?.length||i)&&(0,c.jsx)(G,{insuranceTypes:P||[],loadingInsuranceTypes:i});return(0,c.jsx)(g.m,{children:(0,c.jsx)("div",{className:z().wrapper,children:l?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:z().bankInfoTabs,children:F.map(e=>(0,c.jsx)(T.e,{text:e,mainPageUrl:L.mu,icon:p.vn,iconColor:"white",className:z().bankInfoTabButton,onClick:()=>{f(e),w(!0)},widthMaxContent:!0},e))}),(0,c.jsx)(U.L,{title:_,isOpen:y,onClose:()=>{w(!1),b(3)},full:q,className:z().historyPopup,children:q?X:_===K?(0,c.jsxs)(c.Fragment,{children:[V,et]}):_===J?ee:null})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:z().topRow,children:[X,(0,c.jsx)(O._,{className:z().drawer,contentClassName:z().container,isOpen:h,onClose:()=>v(!1),title:(0,c.jsx)("p",{className:z().historyTitle,children:m}),titleAlign:"left",width:"695px",rowTitle:!0,children:(0,c.jsx)("div",{className:(0,C.A)(z().historyRows,z().historyModal),children:$&&Y($)})})]}),(0,c.jsxs)("div",{className:(0,C.A)(z().bottomRow,R&&z().withoutWrap),children:[V,ee]}),s&&et]})})})};var et=a(24104),ea=a(23712),ei=a(17436),er=a(28453),en=a(16378),el=a(4779),es=a(26180),eo=a(92996),em=a.n(eo);let ec=e=>`${e} ${(0,ei.td)(e,"отзыв","отзыва","отзывов")} на Финуслугах`,eu=e=>(0,c.jsxs)("div",{className:(0,C.A)(em().starWrapper,{[em().mid]:e.mid,[em().big]:e.big,[em().partial]:!e.total}),children:[(0,c.jsx)(p.Zv1,{size:e.big?20:16,className:em().starIcon}),(0,en.Y)(e.ratingValue),e.total?`/${e.total}`:"",e.text?"/":"",(0,c.jsx)("span",{className:em().starText,children:e.text})]}),ed=e=>{let t=ec(e.reviewsCount);return(0,c.jsxs)("div",{className:em().lowReviewsRatingInfo,children:[(0,c.jsxs)("div",{className:em().lowReviewsRatingTop,children:[(0,c.jsxs)("div",{className:em().lowReviewsRatingTitle,children:[(0,c.jsx)(p.Zv1,{size:24,className:em().lowReviewsRatingIcon}),(0,c.jsx)("span",{children:"Рейтинг отсутствует"})]}),(0,c.jsx)(T.e,{className:em().lowReviewsRatingLink,text:t,mainPageUrl:L.mu,href:e.reviewsHref,target:"_self",offPadding:!0})]}),(0,c.jsxs)("div",{className:em().lowReviewsRatingDescription,children:["Для расчета рейтинга нужно не менее ",5," отзывов"]})]})},ep=e=>{let t,a=(0,D.nu)("m"),i=L.wY[e.orgType],r=e.companyPeopleRatings,n=r?.total_count||0,l=e.orgType!==B.C.mfo,s=["cmsId"in(t=e.company)?String(t.cmsId??t.id):String(t.id)],o=(0,er.D9)({type:e.orgType,com:s}),m=Object.entries(r?.service_count||{}).map(([e,t])=>({serviceId:e,count:t.count,rating:t.rating})),u=Object.fromEntries(e.serviceTypes?.[e.orgType]?.map(({id:e,...t})=>[e,t])||[]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("p",{className:em().description,children:["Составляется на основе отзывов клиентов ",i.name_rs]}),(0,c.jsxs)("div",{className:em().peopleRatingWrapper,children:[!e.loading&&(0,c.jsx)("div",{className:em().peopleRatingTopInfo,children:n<5?(0,c.jsx)(ed,{reviewsCount:n,reviewsHref:o}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(eu,{ratingValue:r?.total_rating_new||0,text:"5",big:!0}),(0,c.jsx)(T.e,{className:em().peopleRatingTopFullInfoLink,text:ec(n),mainPageUrl:L.mu,href:o,target:"_self"})]})}),e.loading&&(0,c.jsx)(f.E,{className:em().peopleRatingTopInfo,width:346,height:44}),l&&!e.loading&&m.map(({serviceId:t,count:i,rating:r})=>{let n=u?.[t]?.name;if(!n)return null;let l=i?`${i} ${(0,ei.td)(i,"отзыв","отзыва","отзывов")}`:"",o=(0,er.D9)({type:e.orgType,com:s,service:t});return(0,c.jsx)("a",{href:o,className:em().rowItem,onClick:()=>{(0,el._)({eventCategory:L.mu,eventActionType:el.y.block,eventActionText:(0,es.y)(n),eventLabel:o})},children:(0,c.jsxs)("div",{className:em().rowTitleWrapper,children:[!a&&(0,c.jsx)(eu,{ratingValue:r,total:5,mid:!0}),(0,c.jsx)("div",{className:em().rowTitle,children:n}),(0,c.jsxs)("div",{className:em().rowLink,children:[a&&(0,c.jsx)(eu,{ratingValue:r,mid:!0}),l&&(a?`/${l}`:`(${l})`)]}),(0,c.jsx)(p.JuQ,{size:26,className:em().rowItemIcon})]})},t)}),l&&e.loading&&[1,2,3,4,5].map(e=>(0,c.jsx)(f.E,{className:em().rowItem,height:a?92:64},e))]}),!a&&(0,c.jsxs)("p",{className:em().disclaimer,children:["Рейтинги ",e.company.name_r||e.company.name," составлены на основании наиболее актуальных данных за"," ",new Date().getFullYear()," год"]})]})},e_=e=>{let{company:t,companyPeopleRatings:a,orgType:i,serviceTypes:r,loading:n}=e;return(0,c.jsx)("div",{className:em().wrapper,children:(0,c.jsxs)("div",{className:em().container,children:[(0,c.jsx)("div",{className:em().body,children:(0,c.jsxs)("div",{className:em().info,children:[(0,c.jsx)("h2",{className:em().title,children:"Пользовательский рейтинг"}),(0,c.jsx)(ep,{company:t,companyPeopleRatings:a,orgType:i,serviceTypes:r,loading:n})]})}),(0,c.jsxs)("div",{className:em().bannerWrapper,children:[(0,c.jsx)(et.c,{company:t.url,orgType:i,eventCategory:"companyDetail"}),(0,c.jsx)(ea.N,{})]})]})})};var eg=a(50364),ef=a(268),eh=a(94484),ev=a.n(eh);let ey=({uslugiTabUrl:e,generalRating:t,name_rs:a,catalogUrl:i,company:r,organizationType:n,productsNum:l,onBankFeatureClick:s,getTabPath:o,reviewsCount:m})=>{let u=(0,x.p)().NEXT_PUBLIC_BASE_URL,d=(0,D.nu)("xs"),_=n===B.C.bank,g=n===B.C.insurance,f=void 0!==m?m:r.reviews_num,h=f&&f>0?`${f} ${(0,ei.td)(f,"отзыв","отзыва","отзывов")}`:"";return(0,c.jsxs)("div",{className:ev().content,children:[(0,c.jsx)(A.o,{organizationType:n,bannerUrl:g?k.nW[r.url]:void 0,priority:!0}),(0,c.jsxs)("div",{className:ev().wrapper,children:[(0,c.jsx)("div",{className:ev().logo,children:(0,c.jsx)(eg.v,{bic:_&&r.bic||r.url||"",type:n,url:r.url,width:78,height:78,companyName:r.name,archive:r.archive,priority:!0})}),(0,c.jsxs)("div",{className:ev().info,children:[(0,c.jsxs)("div",{className:ev().company,children:[(0,c.jsx)("div",{className:ev().name,children:r.name}),!!t&&(0,c.jsxs)("div",{className:ev().rating,children:[(0,c.jsx)(p.Zv1,{size:d?20:24,className:ev().iconStar}),(0,en.Y)(t)]})]}),(0,c.jsx)("p",{className:ev().description,dangerouslySetInnerHTML:{__html:r.short_description}}),(0,c.jsx)(T.e,{className:ev().fullInfoLink,text:`Каталог всех ${a}`,mainPageUrl:u,href:`${u}/${i}`,target:"_self"})]}),(0,c.jsxs)("div",{className:ev().rightInfo,children:[l>0&&(0,c.jsx)(ef.F,{title:"Продукты",link:`${l} ${(0,ei.td)(l,"продукт","продукта","продуктов")} на сайте`,color:"#E7F9F6",icon:(0,c.jsx)(p.bJK,{size:24}),onClick:()=>s("uslugi"),href:o({tab:{id:"uslugi",path:`/${e}`}})}),(0,c.jsx)(ef.F,{title:"Пользовательский рейтинг",link:"Составляется на основе отзывов",color:"#FEF1FE",icon:(0,c.jsx)(p.kfF,{size:24}),onClick:()=>s("ratings"),href:o({tab:{id:"ratings",path:"/rejtingi"}})}),(0,c.jsx)(ef.F,{title:f?"Клиенты рекомендуют":"Отзывов нет",link:h,color:"#FFF4E0",icon:(0,c.jsx)(p.vWD,{size:24}),onClick:()=>s("reviews"),href:o({tab:{id:"reviews",path:"/otzyvy"}})}),(0,c.jsx)(T.e,{className:ev().fullInfoLink,text:`Каталог всех ${a}`,mainPageUrl:L.mu,href:`${u}/${i}`,target:"_self"})]})]})]})};var ew=a(37940),ex=a(44668);let eb=[{value:"newest",label:"Сначала новые"},{value:"oldest",label:"Сначала старые"},{value:"high-rating",label:"С высокой оценкой"},{value:"low-rating",label:"С низкой оценкой"}];var eC=a(7408),eT=a(54721),eN=a(27193),ej=a(74498),eR=a.n(ej);let ek=({company:e,orgType:t,companyReviews:a,maxPage:i,serviceTypes:r,initialPage:n})=>{let[l,s]=(0,u.useState)(a),[o,m]=(0,u.useState)(r),[d,_]=(0,u.useState)("newest"),[f,h]=(0,u.useState)(!1),[v,y]=(0,u.useState)(i>1),w=(0,u.useRef)(n),[x,b]=(0,u.useState)(!a.length),[C,T]=(0,u.useState)(!1),N=(0,u.useRef)(!0),j=l.map(t=>{let a,i="SK"===t.target?B.C.insurance:"MFO"===t.target?B.C.mfo:B.C.bank;i===B.C.insurance||B.C.mfo,a=void 0,e&&(a=e);let r=o?.[i],n=r?.find(e=>e.id===t.service_id);return{...t,fkType:i,fkLogo:a?.logo_mob,fkName:a?.name,fkUrl:a?.url,bic:(0,eT.f)(a)||void 0,serviceName:n?.name_sing||n?.name}}),R=eb.find(e=>e.value===d)?.label||eb[0].label,k="oldest"===d||"low-rating"===d,A=t===B.C.mfo&&e.cmsId?e.cmsId:null,$=(0,u.useMemo)(()=>(0,ex.B2)({type:t,companyIds:A?[A]:[e.id],sort:"high-rating"===d||"low-rating"===d?"rating":void 0,orderDesc:!k}),[t,e.id,A,d,k]),I=(0,u.useCallback)((e=1)=>{w.current=e,1===e?b(!0):T(!0),(0,ex.Gs)($.reviews,e,4,void 0,A||void 0).then(t=>{s(a=>1===e?t?.result?.reviews||[]:[...a,...t?.result?.reviews||[]]),y(e+1<=(t?.result?.pages||0)),m(e=>e||(0,eN.j)(t))}).finally(()=>{b(!1),T(!1)})},[$.reviews,A]);(0,u.useEffect)(()=>{if(N.current&&a.length>0){N.current=!1;return}I()},[I]);let S=(0,u.useCallback)(e=>{(0,el._)({eventCategory:L.mu,eventActionType:el.y.select,eventActionText:(0,es.y)(e.label)}),_(e.value),h(!1)},[_,h]);return(0,c.jsxs)("section",{className:eR().section,children:[(0,c.jsx)(g.m,{children:(0,c.jsx)("div",{className:eR().sortWrapper,children:(0,c.jsxs)(ew.ms,{opened:f,placement:"bottom-end",onToggle:h,children:[(0,c.jsxs)(ew.uu,{onClick:()=>h(!0),className:eR().activeSortOption,children:[k?(0,c.jsx)(p.EBK,{className:eR().sortIcon}):(0,c.jsx)(p.yZ$,{className:eR().sortIcon}),R]}),(0,c.jsx)(ew.pm,{children:eb.map(e=>(0,c.jsx)(ew.n5,{label:e.label,onClick:()=>S(e)},e.value))})]})})}),(0,c.jsx)(eC.S,{reviews:j,onShowMore:v?()=>{I((w.current||1)+1)}:void 0,loading:x,loadingMore:C,eventCategory:"companyDetail",initialMaxPage:i,initialPage:n,company:e})]})};var eA=a(24691),e$=a(79433),eI=a(75241),eS=a(62804),eP=a(83307),eL=a.n(eP);let eB=({label:e,preposition:t,value:a,isTitle:i,hint:r})=>{let n=t?`${t} ${a}`:a,l=i&&"string"==typeof a?n:"";return(0,c.jsxs)("div",{className:(0,C.A)(eL().group,i&&eL().titleGroup),children:[(0,c.jsxs)("p",{className:eL().groupSub,children:[(0,c.jsx)("span",{className:eL().labelText,title:i&&"string"==typeof e?e:"",children:e}),r&&(0,c.jsx)(eS.C,{className:eL().hint,text:r,dataQa:"rate-hint",children:(0,c.jsx)(p.KYF,{className:eL().hintIcon,size:16})})]}),(0,c.jsxs)("p",{className:(0,C.A)(eL().groupContent,t&&eL().nowrap),title:l,children:[t&&(0,c.jsx)("span",{className:eL().preposition,children:t})," ",a]})]})};var eE=a(17806),eM=a(9409),eD=a(67211),eO=a(23970),eU=a(52863),eF=a(55477),ez=a(10739),eY=a(26664),eW=a(40700),eq=a(11856),eX=((i={}).EveryDay="everyDay",i.Weekly="weekly",i.OnceAMonth="onceAMonth",i.Quarterly="quarterly",i.Semiannually="semiannually",i.Annually="annually",i.InTheEnd="inTheEnd",i.SpecifiedPeriodInDays="specifiedPeriodInDays",i);let eH=({nPerYear:e,amount:t,rate:a,termInDays:i})=>{let r=t*Math.pow(1+a/e,i/365*e)-t;return{profit:r,effectiveRate:r/t/i*36500}},eV=(e,t)=>{let a,i=e.amount_from??0,r=(a=e.amount_to)||1/0;return t>=i&&t<=r},eG=(e,t)=>{let a=!!t&&e.some(e=>void 0!==e.optionId);return e.filter(e=>!a||e.optionId===t)},eQ=(e,t)=>((e,t)=>{let a=e[0];if(!a||1===a.startDay||a.startDay!==a.endDay)return e;let i=e[1],r=i?.startDay===a.endDay+1,n=1===e.length&&a.endDay===t;return r||n?[{...a,startDay:1},...e.slice(1)]:e})(e.map(e=>({startDay:Math.max(e.term_from||1,1),endDay:e.term_to||t,rate:e.rate})).sort((e,t)=>e.startDay-t.startDay),t).map(e=>({...e,endDay:Math.min(e.endDay,t)})).filter(({startDay:e,endDay:t})=>t>=e),eZ=(e,t)=>{let{isComplete:a,nextDay:i,weightedRate:r}=e.reduce((e,t)=>{if(!e.isComplete||t.startDay!==e.nextDay)return{...e,isComplete:!1};let a=t.endDay-t.startDay+1;return{isComplete:!0,nextDay:t.endDay+1,weightedRate:e.weightedRate+t.rate*a}},{isComplete:!0,nextDay:1,weightedRate:0});if(a&&i===t+1)return r/t},eK=e=>e.days?e.weightedRate/e.days:0;var eJ=a(81853);let e0=e=>{let t=e.interest_rate?.rates[0],a=e.catalogPreview,i=!!e.type.saving_account||!!e.asSavingAccount,r=!!(e.isLadderDeposit&&!i),n=e.interest_rate?.rates??[],l=a?.hasCapitalization??!!e.interest_capitalization?.has,s=a?.rate??t?.rate;if(r&&s){let a=t?.optionId,i=e.amount?.from??Math.min(...n.filter(e=>Number.isFinite(e.amount_from)).map(e=>e.amount_from??0)),r=e.term?.to??n.reduce((e,t)=>Math.max(e,t.term_to??0),0),o=(({amount:e,rates:t,efficientRate:a,optionId:i})=>{let r;if(!a)return;let n=(r=a.maximumAmount)||1/0;if(e<a.minimumAmount||e>n||!eG(t,i).some(t=>eV(t,e)))return;if(a.minimumRate===a.maximumRate)return a.maximumRate;let l=t.reduce((e,t)=>{let a,i=t.amount_from??0,r=(a=t.amount_to)||1/0,n=Math.max(t.term_to-Math.max(t.term_from,1)+1,0),l=e.find(e=>e.minimumAmount===i&&e.maximumAmount===r);return l?(l.weightedRate+=t.rate*n,l.days+=n,e):[...e,{minimumAmount:i,maximumAmount:r,weightedRate:t.rate*n,days:n}]},[]),s=l.filter(t=>e>=t.minimumAmount&&e<=t.maximumAmount);if(1===s.length)return((e,t,a)=>{if(1===e.length)return a.maximumRate;let i=[...e].sort((e,t)=>eK(e)-eK(t)),r=eK(t),n=eK(i[0]),l=eK(i[i.length-1]);if(n!==l){if(r===n)return a.minimumRate;if(r===l)return a.maximumRate}})(l,s[0],a)})({amount:i,rates:n,efficientRate:e.efficientRate,optionId:a}),m=(({amount:e,term:t,rates:a,fallbackRate:i,optionId:r})=>{if(t<=0)return void 0===i?null:{rate:i,isEffectiveRate:!0};let n=eG(a,r),l=n.filter(t=>eV(t,e)),s=eZ(eQ(l,t),t);if(void 0!==s)return{rate:s,isEffectiveRate:!1};if(void 0!==i)return{rate:i,isEffectiveRate:!0};let o=((e,t,a)=>{if(1!==t.length||1!==new Set(e.map(e=>e.optionId)).size)return;let i=eQ(t,a);if(1===i.length&&void 0!==eZ(eQ(e,a),a))return i[0].rate})(n,l,t);return void 0===o?null:{rate:o,isEffectiveRate:!1}})({amount:i,term:r,rates:n,fallbackRate:o,optionId:a});if(m)if(m.isEffectiveRate)s=(0,eJ.N)(m.rate);else{let t=(({depositSum:e,term:t,rate:a,isCapitalization:i=!1,paymentFrequency:r})=>{let n,l,s=new Date,o=(0,eU.A)(s,{days:t}),{effectiveRate:m}=(e=>{let{capitalization:t,paymentFrequency:a,termByYears:i,amount:r,averageRate:n,termInDays:l}=e;if(t){let e=n/100;if("everyDay"===a){let t=i.reduce((t,a)=>t*Math.pow(1+e/a.daysInYear,a.daysInInterval),r)-r,a=t/r/l*36500;return{profit:t,effectiveRate:a}}if("weekly"===a)return eH({nPerYear:52,termInDays:l,amount:r,rate:e});if("onceAMonth"===a||"inTheEnd"===a)return eH({nPerYear:12,termInDays:l,amount:r,rate:e});if("quarterly"===a)return eH({nPerYear:4,termInDays:l,amount:r,rate:e});if("semiannually"===a)return eH({nPerYear:2,termInDays:l,amount:r,rate:e});if("annually"===a)return eH({nPerYear:1,termInDays:l,amount:r,rate:e})}return{profit:i.reduce((e,t)=>e+n/100*r/t.daysInYear*t.daysInInterval,0),effectiveRate:n}})({amount:e,paymentFrequency:r,capitalization:i,termInDays:(0,eW.A)(o,s),termByYears:(n=(0,eU.A)(s,{days:t}),(l=(0,eF.A)({start:s,end:n})).reduce((e,a,i)=>{let r=0===i?s:a,o=i===l.length-1?n:(0,ez.A)((0,eU.A)(r,{days:t}),{start:r,end:(0,eU.A)((0,eY.A)(a),{days:1})}),m=(0,eW.A)(o,r);return 0===m?e:[...e,{daysInInterval:m,daysInYear:(0,eq.A)(a)}]},[])),averageRate:a});return m})({depositSum:i,term:r,rate:m.rate,isCapitalization:l,paymentFrequency:e.interest_payment?.daily?eX.EveryDay:e.interest_payment?.monthly?eX.OnceAMonth:e.interest_payment?.quarterly?eX.Quarterly:e.interest_payment?.half_year?eX.Semiannually:e.interest_payment?.annually?eX.Annually:eX.InTheEnd});s=(0,eJ.N)(t)}}return s??0},e1="full price",e4="amount",e2="first payment",e6="term",e3={background:"var(--color-blue-200)"},e5={background:"var(--color-orange-100)"},e8={background:"var(--color-purple-200)"},e9={background:"var(--color-pink-100)"},e7=e=>(0,c.jsx)("span",{dangerouslySetInnerHTML:{__html:e}}),te=e=>e.online_application?.type===3,tt=e=>e.online_application?.commercial===1;var ta=a(6896),ti=a(5244),tr=a.n(ti);let tn=({offer:e,company:t,isLastOfferOnPage:a,order:i,isWhiteCard:r=!1})=>{let n=(0,x.p)(),l=(0,d.usePathname)(),s="microCredits_num"in t,o=(0,u.useMemo)(()=>({offerId:String(e.id),order:i,category:"mfo"}),[e.id,i]),m=function(e,t){let[a,i]=(0,u.useState)(""),r=(0,e$.v)(),n=(0,eI.f)(),{offerId:l,order:s,placement:o="",category:m}=t??{},c=void 0!==s?`${o}${s+1}`:void 0;return(0,u.useEffect)(()=>{if(!e)return;let t=null;try{t=new URL(e)}catch{return}(function(e,t){let{pathname:a,utmSource:i,utmMedium:r,utmCampaign:n,utmTerm:l,utmContent:s,clickId:o}=t;void 0!==a&&e.set("page_path",a),void 0!==i&&e.set("utm_source",i),void 0!==r&&e.set("utm_medium",r),void 0!==n&&e.set("utm_campaign",n),void 0!==l&&e.set("utm_term",l),void 0!==s&&e.set("utm_content",s),void 0!==o&&e.set("ext_id",o)})(t.searchParams,r),function(e,t){let{browserId:a,sessionId:i,customerId:r,yandexId:n}=t;void 0!==n&&e.set("t6",n),void 0!==i&&e.set("t7",i),void 0!==a&&e.set("t8",a),void 0!==r&&e.set("t9",r)}(t.searchParams,n),void 0!==l&&t.searchParams.set("cms_offer_id",l),void 0!==c&&t.searchParams.set("order",c),void 0!==m&&t.searchParams.set("category",m),i(t.toString())},[e,r,n,l,c,m]),a}(e.online_application.url,o),p=n.NEXT_PUBLIC_BASE_URL,{fields:_,chips:g}=(e=>{let t,a=[],i=[];if("credit_group_id"in e){let t,r,n,l,s,o,{fields:m,chips:c}=(t=[],r=[],n=e.full_price?.from,l=e.full_price?.to,void 0!==n&&void 0!==l&&t.push({name:e1,label:"Полная стоимость кредита",value:(0,eD.Z)(`${n}-${l}%`)}),(s=e.payment)&&t.push({name:"monthly payment",label:"Ежемесячный платеж",preposition:"от",value:e7((0,eM.Z)(s))}),(o=e.amount?.to)&&t.push({name:e4,label:"Сумма",preposition:"до",value:e7((0,eM.Z)(Number(o)))}),r.push({text:"Кредит",style:e3}),te(e)?r.push({text:"Подача заявки на Финуслугах",color:"purple"}):r.push({text:"Открытие в банке",color:"primary"}),e.loan.not_required&&r.push({text:"Без залога",color:"primary"}),r.push({text:e.income_proof.not_required?"Без справок":"Требуется подтверждение дохода",color:"primary"}),{fields:t,chips:r});a=m,i=c}if("card_group_id"in e){let{fields:t,chips:r}=(e=>{let t=[],a=[],i=e.first_year_cost;if(i){let e="Бесплатно"===i?i:(0,eM.Z)(+i.replace(/[^\d]/g,""));t.push({name:"year cost",label:"Обслуживание в год",value:e7(e)})}let r=e.credit_limit_to;r&&t.push({name:"limit",label:"Кредитный лимит",preposition:"до",value:e7((0,eM.Z)(Number(r)))});let n=e.grace_period;return n&&t.push({name:"grace period",label:"Льготный период",preposition:"до",value:`${n} ${(0,ei.td)(n,"дня","дней","дней")}`}),a.push({text:"Кредитные карты",style:e5}),1===e.online_application.unplatform_banks?a.push({text:"Подача заявки на Финуслугах",style:e8}):tt(e)&&3!==e.online_application.type?a.push({text:"Подача заявки на сайте банка",style:e8}):3!==e.online_application.type&&a.push({text:"Открытие в банке",style:e8}),e.online_application.commercial_desc&&a.push({text:e.online_application.commercial_desc,color:"primary"}),a.push({text:e.proof_income_need_not?"Без справок":"Требуется подтверждение дохода",color:"primary"}),{fields:t,chips:a}})(e);a=t,i=r}if("deposit_group_id"in e){let{fields:t,chips:r}=(e=>{let t=[],a=[],i=e.interest_rate?.rates[0],r=e.catalogPreview,n=!!e.type.saving_account||!!e.asSavingAccount,l=!!(e.isLadderDeposit&&!n),s=e.interest_rate?.rates??[],o=r?.hasCapitalization??!!e.interest_capitalization?.has,m=e0(e);m&&t.push({name:"rate",label:"Ставка",value:`${m}%`,hint:o&&!n||l?"Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка.\nДополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее.":void 0});let c=l?e.term?.to??s.reduce((e,t)=>Math.max(e,t.term_to??0),0):r?.termFrom??i?.term_from;if(n)t.push({name:e6,label:"Срок",preposition:"",value:"Бессрочно"});else if(c){let e=l?c:r?.termTo??i?.term_to??c,a="";!l&&c<e&&(a="от");let n="",s=a?["года","лет","лет"]:["год","года","лет"];if(l||c<30)n=`${c} дн.`;else if(c>365){let e=Math.round(c/30.416),t=Math.floor(e/12),a=e%12;n=[t>0?`${t} ${(0,ei.td)(t,...s)}`:"",a>0?`${a} мес.`:""].filter(Boolean).join(" ")}else n=`${Math.round(c/30)} мес.`;t.push({name:e6,label:"Срок",preposition:a,value:n})}let u=r?r.amountFrom:i?.amount_from;if(u){let a=(0,eO.O)(e.currency_id).unit;t.push({name:e4,label:"Сумма",preposition:"от",value:e7(`${(0,eM.Z)(u,!0,a)}`)})}a.push(n?{text:"Накопительный счет",style:e3}:{text:"Вклад",style:e5}),te(e)?a.push({text:"Открытие онлайн на Финуслугах",color:"purple"}):tt(e)?a.push({text:"Заявка через сайт банка",color:"primary"}):a.push({text:"Открытие в банке",color:"primary"});let d=r?.hasRefill??!!e.refill?.has;return!n&&o&&a.push({text:"С капитализацией",color:"primary"}),!n&&d&&a.push({text:"С пополнением",color:"primary"}),{fields:t,chips:a}})(e);a=t,i=r}if("mortgage_group_id"in e){let t,r,n,l,s,o,{fields:m,chips:c}=(t=[],r=[],n=e.full_price?.from,l=e.full_price?.to,n&&l&&t.push({name:e1,label:"Полная стоимость кредита",value:(0,eD.Z)(`${n}-${l}%`)}),(s=e.amount?.to)&&t.push({name:e4,label:"Сумма кредита",preposition:"до",value:e7((0,eM.Z)(Number(s)))}),(o=e.first_payment?.from)&&t.push({name:e2,label:"Первый взнос",preposition:"от",value:`${o}%`}),r.push({text:"Ипотека",color:"green"}),te(e)?r.push({text:"Открытие онлайн на Финуслугах",color:"purple"}):tt(e)?r.push({text:"Подача заявки на сайте банка",color:"primary"}):r.push({text:"Открытие в банке",color:"primary"}),r.push({text:e.income_proof.not_required?"Без справок":"Требуется подтверждение дохода",color:"primary"}),{fields:t,chips:r});a=m,i=c}if("autoCredit_group_id"in e){let t,r,n,l,s,o,{fields:m,chips:c}=(t=[],r=[],n=e.full_price?.from,l=e.full_price?.to,n&&l&&t.push({name:e1,label:"Полная стоимость кредита",value:(0,eD.Z)(`${n}-${l}%`)}),(s=e.amount?.from)&&t.push({name:e4,label:"Сумма",preposition:"от",value:e7((0,eM.Z)(Number(s)))}),(o=e.first_payment?.from)&&t.push({name:e2,label:"Первый взнос",preposition:"от",value:`${o}%`}),r.push({text:"Автокредит",style:e9}),tt(e)&&r.push({text:"Заявка через сайт банка",color:"primary"}),e.registration_address.permanent&&r.push({text:"Постоянная регистрация",color:"primary"}),e.insurance_need.need&&r.push({text:"Потребуется Каско",color:"primary"}),{fields:t,chips:r});a=m,i=c}if("debitCard_group_id"in e){let{fields:t,chips:r}=(e=>{let t=[],a=[],i=e.service_cost?.custom_text?.content||e.service_cost?.first_year_cost;if(i){let a=(0,eO.O)(e.currency_id).unit,r="Бесплатно"===i?i:(0,eM.Z)(+i.replace(/[^\d]/g,""),!0,a);r&&t.push({name:"service cost",label:"Обслуживание в год",value:e7(r)})}let r=e.balance_interest_number?`${e.balance_interest_number}%`:"Нет";t.push({name:"balance interest",label:"Проценты на остаток",value:r});let n=null;"Нет"!==e.discounts.text&&(n=e.discounts.text),e.cash_back.has&&(n="Кэшбэк");let l=String(e?.discounts?.text?.toLowerCase());return l.includes("путешествия")&&(n="Мили"),l.includes("торговые сети")&&(n="Баллы"),n&&t.push({name:"bonus",label:"Бонусы",value:n}),a.push({text:"Дебетовая карта",style:e5}),tt(e)&&3!==e.online_application.type?a.push({text:"Подача заявки на сайте банка",style:e8}):3!==e.online_application.type&&a.push({text:"Открытие в банке",style:e8}),e.online_application.commercial_desc&&a.push({text:e.online_application.commercial_desc,color:"primary"}),{fields:t,chips:a}})(e);a=t,i=r}if("microCredit_group_id"in(t=e)||"mfo_name"in t||"mfo_url"in t){let t,r,n,{fields:l,chips:s}=(t=[],(r=+(e.term_without_percents??""))>0&&t.push({name:"term without percents",label:"Срок без %",value:`${r} ${(0,ei.td)(Number(r),"день","дня","дней")}`}),e.amount.to&&t.push({name:e4,label:"Сумма",value:e7((0,eM.Z)(Number(e.amount.to),!0,!1)),preposition:"до"}),(n=e.period.to)&&t.push({name:e6,label:"Срок",value:`${n} ${(0,ei.td)(Number(n),"дня","дней","дней")}`,preposition:"до"}),{fields:t,chips:[]});a=l,i=s}return{fields:a,chips:i}})(e),f=(0,u.useMemo)(()=>1===e.online_application.commercial,[e.online_application]),h=(0,u.useMemo)(()=>(({baseUrl:e,serviceName:t,isMfo:a,offer:i})=>{let r=a?"mikrozajmy":t;if(!("deposit_group_id"in i))return(0,eE.oq)(e,`/${r}/${i.url}`);let n=i.interest_rate?.rates[0],l=i.interest_rate?.rates??[],s=!!(i.isLadderDeposit&&!i.asSavingAccount),o=i.amount?.from??i.catalogPreview?.amountFrom??n?.amount_from,m=s?i.term?.to??l.reduce((e,t)=>Math.max(e,t.term_to??0),0):i.catalogPreview?.termFrom??n?.term_from,c={};null!=o&&(c.amount=o),null!=m&&(c.d_period=m);let u=`/${r}/${i.url}`;return 0===Object.keys(c).length?(0,eE.oq)(e,u):(0,eE.oq)(e,(0,eE.p2)(u,(0,eE._b)(c)))})({baseUrl:p,serviceName:window.location.pathname.split("/").filter(Boolean)[2],isMfo:s,offer:e}),[p,l,s,e]),v=t=>()=>{(0,el._)({eventCategory:L.mu,eventActionType:el.y.offer,eventActionText:(0,es.y)(e.title),eventLabel:t})};return(0,c.jsxs)("div",{className:(0,C.A)(tr().card,{[tr().paddingForButton]:a,[tr().whiteCard]:r}),children:[(0,c.jsx)("div",{className:tr().top,children:(0,c.jsxs)("div",{className:tr().topContent,children:[(0,c.jsxs)("div",{className:tr().bankInfo,children:[(0,c.jsx)("div",{className:tr().icon,children:(0,c.jsx)(eg.v,{bic:(0,eT.f)(t)||t?.url,type:(0,eT.f)(t)?ta.Ls.bank:ta.Ls.mfo,url:t?.url,width:40,height:40,companyName:t?.name})}),(0,c.jsx)(eB,{label:e.title,value:t?.name,isTitle:!0})]}),(0,c.jsx)("div",{className:tr().groups,children:_.map(e=>e.value&&(0,c.jsx)(eB,{label:e.label,preposition:e.preposition,value:e.value,hint:e.hint},e.name))})]})}),(0,c.jsxs)("div",{className:tr().bottom,children:[g.length>0&&(0,c.jsx)("div",{className:tr().chips,children:g.map(e=>(0,c.jsx)("div",{className:tr().chipWrapper,children:(0,c.jsx)(V.v,{label:e.text,variant:e.color,className:tr().chip,style:e.style,rounded:!0})},e.text))}),(0,c.jsxs)("div",{className:tr().buttons,children:[(0,c.jsx)(eA.$,{className:tr().offerButton,variant:"secondary",size:"xs",label:"Подробнее",as:"a",target:"_blank",href:h,onClick:v(h)}),f&&(0,c.jsx)(eA.$,{rel:"nofollow",size:"xs",label:"Оформить",as:"a",target:"_blank",href:m,onClick:v(e.online_application.url)})]})]}),a&&(0,c.jsx)("div",{className:tr().lastOfferCornerGradient})]},e.id)};var tl=a(21052),ts=a.n(tl);let to=["предложение","предложения","предложений"],tm=({offers:e,bank:t,loading:a})=>{let i="microCredits_num"in t,r=e?.length??0,[n,l]=(0,u.useState)(1),s=i?r:Math.min(r,6*n),o=a||!e,m=r-s,d=`Ещё ${m} ${(0,ei.td)(m,...to)}`;return(0,c.jsx)("div",{className:i?void 0:ts().wrapper,children:(0,c.jsxs)(g.m,{className:(0,C.A)(ts().productsListContainer,{[ts().containerTopPadding]:!i}),children:[!i&&!o&&(0,c.jsx)("h2",{className:ts().title,children:`Найдено ${r} ${(0,ei.td)(r??0,...to)}`}),(0,c.jsx)("div",{id:"offers-list",className:(0,C.A)(ts().offersList),children:e?.slice(0,s).map((e,a)=>{let r=s===a+1&&m>0;return(0,c.jsx)(tn,{company:t,offer:e,order:a,isLastOfferOnPage:i?void 0:r,isWhiteCard:i},e.id)})}),!i&&m>0&&(0,c.jsx)("div",{className:ts().showMore,children:(0,c.jsx)(eA.$,{variant:"violet",appearance:"ghost",label:d,onClick:()=>l(e=>e+1),className:ts().showMoreButton,disabled:s>=r,iconRight:(0,c.jsx)(p.c0w,{className:ts().showMoreIcon})})})]})})};var tc=a(12659),tu=a.n(tc);let td=(e,t,a)=>{let i=e=>{if(null==e)return null;let t="string"==typeof e?Number(e):e;return Number.isNaN(t)?null:t},r=e.map(e=>i(t(e))).filter(e=>null!==e),n=e.map(e=>{let t;return null!==(t=i(a(e)))&&t>0?t:null}).filter(e=>null!==e),l=r.length>0?Math.min(...r):0,s=n.length>0?Math.max(...n):null,o=r.length>0?Math.max(...r):null;return{low:l,high:Math.max(s??o??l,l)}};var tp=a(56607),t_=a.n(tp);let tg=e=>{let{service:t,href:a,active:i,onClick:r,hideCount:n}=e;return(0,c.jsxs)("a",{href:a,className:(0,C.A)(t_().tile,{[t_().active]:i}),onClick:r,children:[(0,c.jsxs)("span",{className:t_().tileContent,children:[t.icon,(0,c.jsx)("span",{className:t_().tileTitle,children:t.title})]}),!n&&(0,c.jsx)("span",{className:t_().count,children:t.count})]})};var tf=a(69576),th=a.n(tf);let tv=e=>{let{data:t,loading:a,activeService:i,hideCount:r}=e;return(0,c.jsx)("div",{className:th().wrapper,children:(0,c.jsxs)("div",{className:th().tiles,children:[t.map(t=>(0,c.jsx)(tg,{service:t,href:e.getHref(t.link),active:t.title===i?.title,onClick:e.onClick(t),hideCount:r},t.title)),a&&!t.length&&[1,2,3,4,5].map(e=>(0,c.jsx)(f.E,{className:th().skeleton},e))]})})};var ty=a(42390),tw=a(42010),tx=a.n(tw);let tb=({servicesBlocks:e,offersBlocks:t,bank:a,activeService:i,setActiveService:r,h1:n,description:l,loading:s,region:o,town:m,generalRating:p,quote:_,reviews:f})=>{let h=(0,x.p)(),v=(0,d.usePathname)(),y=(0,u.useRef)(null),w=i?t?.[i.serviceName]?.data:null,b=(0,u.useCallback)((e,t)=>{r(e),!t&&y.current&&setTimeout(()=>{y.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[r]);return(0,u.useEffect)(()=>{!i&&e?.[0]&&b(e[0],!0)},[v]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(g.m,{className:tx().section,children:[(0,c.jsx)(tv,{data:e,getHref:e=>`/banki/${a.url}/${e}${(0,ty.I)(o,m)}`,onClick:e=>t=>{t.preventDefault(),(0,el._)({eventCategory:L.mu,eventActionType:el.y.tab,eventActionText:(0,es.y)(e.title)}),b(e)},loading:s,activeService:i}),(0,c.jsx)("div",{ref:y})]}),(0,c.jsx)(tm,{offers:w||null,tags:[],bank:a,loading:s},v),Array.isArray(w)&&w?.length>0&&(0,c.jsx)(R.B,{data:(({baseUrl:e,assetsUrl:t,items:a,h1:i,description:r,company:n,service:l,serviceLink:s,generalRating:o,quote:m,reviews:c})=>{var u;let d=a.filter(e=>0===e.archive).slice(0,10),p=String(n.bic).padStart(9,"0"),_=`${e}/banki/${n.url}/${s}`,g=`${t}/mp-assets/images/bank/logo-brandmark-bank-${p}.svg`,f={"@context":"https://schema.org","@type":"Product",name:i,description:r,url:_},{low:h,high:v}=td(d,e=>e.amount?.from,e=>e.amount?.to),{low:y,high:w}=td(d,e=>e.interest_rate?.from,e=>e.interest_rate?.to),{low:x,high:b}=td(d,e=>e.credit_limit_from,e=>e.credit_limit_to),C={"@type":"BankOrCreditUnion",name:n.name,url:n.site_title?n.site_title:"string"==typeof n.site?n.site:n.site?.title||"",image:g,...Array.isArray(n.legal_entities)&&n.legal_entities[0]?.legal_address&&{address:{"@type":"PostalAddress",addressLocality:n.legal_entities[0].legal_address}}},T={"@type":"AggregateRating",ratingValue:o??0,reviewCount:n.reviews_num,ratingCount:n.reviews_num,bestRating:5,worstRating:0};if("debitCards"===l){let t=`${e}/banki/${n.url}`;return{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":t,name:n.name,url:t,logo:g},{"@type":"Product","@id":_,name:i,brand:{"@id":t},description:r,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:y,highPrice:w,offerCount:a.length,url:_,availability:"https://schema.org/InStock"},isRelatedTo:{"@type":"ItemList",name:"Предложения дебетовых карт",itemListElement:d.map((a,i)=>({"@type":"ListItem",position:i+1,item:{"@type":"PaymentCard",name:a.title,brand:{"@id":t},...a.cash_back&&a.cash_back.action&&{cashBack:a.cash_back.action},contactlessPayment:!0,offers:{"@type":"Offer",price:a?.interest_rate?.rates?.[0]?.amount_from??0,priceCurrency:(0,eO.O)(a.currency_id).code,url:`${e}/debetovye_karty/${a.url}`,availability:"https://schema.org/InStock"}}}))}}]}}if("cards"===l)return{...f,image:g,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:x,highPrice:b,offerCount:a.length,url:_,offers:d.map(t=>({"@type":"CreditCard",url:`${e}/kreditnye_karty/${t.url}`,name:t.title,...t.credit_limit_to&&{floorLimit:t.credit_limit_to},...t.interest_rate_from&&{annualPercentageRate:{"@type":"QuantitativeValue",name:"Процентные ставки",minValue:`${t.interest_rate_from}%`}},provider:C}))},...o&&{aggregateRating:T}};if("credits"===l)return{...f,image:g,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:h,highPrice:v,offerCount:a.length,url:_,offers:d.map(t=>{let{amount:a,period:i,interest_rate:r}=t,n=`${e}/potrebitelskie_kredity/${t.url}`;return{"@type":"LoanOrCredit",url:n,name:t.title,...t.credit_limit_to&&{floorLimit:t.credit_limit_to},category:"Потребительские кредиты",...a&&a.from&&a.to&&{amount:{"@type":"MonetaryAmount",name:t.title,value:`${a.from} – ${a.to} ₽`,currency:"RUB"}},...i&&i.to&&{loanTerm:{"@type":"QuantitativeValue",value:i.to,unitCode:"DAY"}},...r&&r.to&&r.from&&{annualPercentageRate:{"@type":"QuantitativeValue",name:`${r.from}–${r.to}%`,minValue:r.from,maxValue:r.to}},broker:C,potentialAction:{"@type":"Action",name:"Подробнее",url:n}}})},...o&&{aggregateRating:T}};if("mortgages"===l)return{...f,image:g,offers:{"@type":"AggregateOffer",priceCurrency:"RUB",lowPrice:h,highPrice:v,offerCount:a.length,url:_,offers:d.map(t=>{let{amount:a,period:i,interest_rate:r}=t,n=`${e}/ipoteka/${t.url}`;return{"@type":"LoanOrCredit",url:n,name:t.title,category:"Ипотека",...a&&a.from&&a.to&&{amount:{"@type":"MonetaryAmount",name:t.title,value:`${a.from} – ${a.to} ₽`,currency:"RUB"}},...i&&i.to&&{loanTerm:{"@type":"QuantitativeValue",value:i.to,unitCode:"DAY"}},...r&&r.to&&r.from&&{annualPercentageRate:{"@type":"QuantitativeValue",name:r.from===r.to?`${r.to}%`:`${r.from}–${r.to}%`,minValue:r.from,maxValue:r.to}},broker:C,potentialAction:{"@type":"Action",name:"Подробнее",url:n}}})},...o&&{aggregateRating:T}};let N=n.name_r||n.name,j=d.map(t=>({"@type":"InvestmentOrDeposit",name:t.title,url:`${e}/vklady/${t.url}`,amount:{"@type":"MonetaryAmount",currency:"RUB",value:t.amount&&t.amount.from?t.amount.from:"1"},description:String(t.short_description??"").trim()||`Открыть вклад ${t.title} от ${N} — актуальные процентные ставки по депозитам, условия и онлайн расчет дохода`,annualPercentageRate:String(t.interest_rate?.rates?.[0]?.rate??t.interest_rate_from??t.interest_rate?.from??t.interest_rate?.to??0)})),R="deposits"===l?(c||[]).map(e=>({"@type":"Review",author:{"@type":"Person",name:e.name},datePublished:e.date?(0,Q.Yq)(e.date,{format:"yyyy-MM-dd"}):"",name:e.title||e.situation||"Отзыв",reviewBody:e.review,reviewRating:{"@type":"Rating",ratingValue:e.rating,bestRating:5,worstRating:1}})):[],k={...f,brand:{"@type":"Brand",name:n.name},...n.reviews_num&&{aggregateRating:T},...R.length&&{review:R},isRelatedTo:j};return"deposits"===l&&(k.offers={"@type":"AggregateOffer",lowPrice:h,highPrice:v,priceCurrency:"RUB",offerCount:a.length},m?.published&&j.push({"@type":"Quotation",text:(u=m.content,tu()(u,{allowedTags:[],allowedAttributes:{}})),author:{"@type":"Person",name:m.expert.name,jobTitle:m.expert.position,sameAs:`${e}/navigator/${m.expert.url}`}})),k})({baseUrl:h.NEXT_PUBLIC_BASE_URL,assetsUrl:h.NEXT_PUBLIC_S3_ASSETS,items:w,h1:n,description:l,company:a,service:i?.serviceName||"",serviceLink:i?.link||"",generalRating:p,quote:_,reviews:f})})]})},tC=({services:e,loading:t})=>{let a=(0,x.p)().NEXT_PUBLIC_BASE_URL;return(0,c.jsx)(g.m,{className:tx().section,children:(0,c.jsx)(tv,{data:e||[],getHref:e=>`${a}/${e}`,onClick:e=>()=>{(0,el._)({eventCategory:L.mu,eventActionType:el.y.tab,eventActionText:(0,es.y)(e.title),eventLabel:e.link})},loading:t&&!e,activeService:null,hideCount:!0})})},tT=({organizationType:e,servicesBlocks:t,servicesLoading:a,bankServices:i,company:r,pageTitle:n,description:l,activeService:s,handleServiceChange:o,region:m,town:u,loading:d,mfoOffers:p,generalRating:_,quote:g,reviews:f})=>{let h=e===B.C.bank,v=e===B.C.insurance,y=e===B.C.mfo;return h&&(t?.length>0||a)?(0,c.jsx)(tb,{servicesBlocks:t,offersBlocks:i,bank:r,h1:n,description:l||"",activeService:s,setActiveService:o,loading:a,region:m,town:u,generalRating:_,quote:g,reviews:f}):v?(0,c.jsx)(tC,{services:t,loading:d}):y?(0,c.jsx)(tm,{tags:[],offers:p||null,bank:r,loading:!p&&a}):null};var tN=a(20925);let tj=async()=>(await (0,tN.p)({url:"/money_data/BankTowns.json"})).data;var tR=a(52790);let tk=async(e,t)=>e&&t?(await (0,tN.p)({url:`/api/v1/stats/banks/${e}/tags?tagId=${t}`,options:{isMpScApi:!0}})).data:null,tA=()=>(0,tN.p)({url:"/api/v2/product-tags",options:{isMpScApi:!0}});var t$=a(55651),tI=a(88153),tS=a(68364),tP=a(32155);let tL=(e,t,a)=>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||(e.custom_towns||[]).some(e=>Number(e)===t.id)||!e.limited_regions&&a?.bank_towns?.[e.bank_id]&&a?.bank_towns?.[e.bank_id].includes(t.id))),tB=(e,t,a,i)=>Object.entries(e).reduce((e,[r,n])=>{let l=n?.data?.filter(e=>tL(e,t,a))||null,s=Array.isArray(l)?l.length:n.length;return e[r]={data:"deposits"===r?[]:l,tags:n?.tags||[],length:"deposits"===r&&i?i.platformProducts.length+i.nonPlatformProducts.length:s,serviceText:n.serviceText},e},{}),tE=(e,t)=>!e.isExternal&&(L.ej.find(e=>t.includes(e))?"uslugi"===e.id:L.Ak.find(e=>t.includes(e))?"ratings"===e.id:!!e.path&&t.includes(e.path)),tM=e=>{if(L.ej.find(t=>e.includes(t)))return"uslugi";if(L.Ak.find(t=>e.includes(t)))return"ratings";let[t]=Object.entries(L.B9).find(([t,a])=>!!a&&e.includes(a))||[];return t||"about"},tD=async(e,t,a,i,r,n,l,s)=>{let o=E(r,e),m="microCredits_num"in e,c=M(r,e),u=(0,L.iy)(t,""),p=a&&Object.values(L.B9).some(e=>e===`/${a}`),_=o&&!u.some(e=>e.link===a),g=m&&"mikrozajmy"!==a,f=c&&!L.DB[a];if(a&&!a.includes("reg_")&&(_||g||f)&&!p)return(0,d.notFound)();let h=u.find(e=>i.includes(e.link)),v=(0,L.Ub)(e,r,o,!1),y=v.find(e=>tE(e,i))||v[0],w=e?.name_r||e?.name||"",x=h?`${h.title} ${w} — Финуслуги`:y.metaTitle||y.title,b=l?.name_p||n?.name_p,C=b?` в ${b}`:"",T=h?t?.[h.serviceName]?.data:null;if(r===B.C.insurance&&"ratings"===y.id)return`Рейтинг страховой компании ${e.name}`;if(h?.serviceName==="deposits"){var N;let t,a,i,r,n,l;return N={company:e,locationText:C,activeTag:s,offers:T},t=N?.company?.name_r||N?.company?.name||"",a=N?.locationText,i=N?.activeTag,l=(n=(r=(N.offers??[]).map(e=>e0(e))).length?Math.max(...r):0)?` со ставкой до ${n}%`:"",`${i?i.name:"Вклады"} ${t}${a} для физических лиц на сегодня${l}`}return h?.serviceName==="debitCards"?`${s?s.name:"Дебетовые карты"} ${w}${C} - оформить онлайн заявку на карту на Финуслугах`:h?.serviceName==="kasko"?`${h.title} в ${w}${C}: выбрать страховку через Финуслуги`:h?.serviceName==="osago"?`${h.title} в ${w}${C}: выбрать страховку на авто через Финуслуги`:m&&"mikrozajmy"===a&&s?`${s.name} от ${w}${C}: оформить микрозайм ${C?"":`от ${w}`} на Финуслугах`:m&&"mikrozajmy"===a?`Услуги ${w}${C}: посмотреть все предложения от МФО ${e.name}`:m&&"rejtingi"===a?`Рейтинг МФО ${w}: отзывы клиентов, адреса офисов и вся информация о МФО ${w}`:m&&"otzyvy"===a?`Отзывы о МФО ${e.name}: честные отзывы клиентов, рейтинги и вся информация о МФО ${e.name}`:m?`Информация о ${e.name_p}: финансовый рейтинг, отзывы клиентов, адреса офисов МФО ${e.name}`:h?.serviceName==="credits"?`${s?`${s.name} от`:"Кредиты"} ${w}${C} — оформить ${s?"":"кредит"} через Финуслуги`:h?.serviceName==="cards"&&s?`${s.name} ${w}${C}: оформить кредитку через Финуслуги`:h?.serviceName==="cards"?`Кредитные карты ${w}${C}: оформить на официальном сайте Финуслуги`:h?.serviceName==="mortgages"?`${s?`${s.name} от`:"Ипотека"} ${w}${C}: подать заявку через Финуслуги`:h?.serviceName==="autoCredits"&&s?`${s.name} от ${w}${C}: оформить на официальном сайте Финуслуги`:h?.serviceName==="autoCredits"?`Автокредиты ${w}${C}: выбрать и оформить через Финуслуги`:`${x}`};var tO=((r=tO||{}).Fixed="FIXED",r.MaxBalance="MAX_BALANCE",r.Min="MIN",r.MinSum="MIN_SUM",r.NoRestrictions="NO_RESTRICTIONS",r.Started="STARTED",r),tU=((n=tU||{}).CustomerChoice="CUSTOMER_CHOICE",n.Fixed="FIXED",n.No="NO",n),tF=((l=tF||{}).OnDemand="ON_DEMAND",l.PreferentialRateForWholeTerm="PREFERENTIAL_RATE_FOR_WHOLE_TERM",l.WithoutRecalculationOfInterest="WITHOUT_RECALCULATION_OF_INTEREST",l),tz=((s=tz||{}).Capitalisation="CAPITALISATION",s.ToCurrentBankCustomerAccount="TO_CURRENT_BANK_CUSTOMER_ACCOUNT",s.ToNominalAccount="TO_NOMINAL_ACCOUNT",s),tY=((o=tY||{}).Daily="DAILY",o.InTheEnd="IN_THE_END",o.Monthly="MONTHLY",o.NoRestrictions="NO_RESTRICTIONS",o.OnDemand="ON_DEMAND",o),tW=((m={}).PreferentialRateForWholeTerm="PREFERENTIAL_RATE_FOR_WHOLE_TERM",m.WithoutRecalculationOfInterest="WITHOUT_RECALCULATION_OF_INTEREST",m);let tq={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};var tX=a(16277);let tH=({rates:e,options:t,isSavingAccount:a,isLadderDeposit:i=!1,calculationDate:r=new Date})=>{if(i)return;let n=t.filter(e=>e.active);if(e.length&&n.length)return e.flatMap(e=>((e,t)=>{if(!e.optionId)return[];let a=t.find(t=>t.id===e.optionId);return a?[a]:[]})(e,n).flatMap(t=>{let i=((e,t,a,i)=>{if(!Number.isFinite(e.rate)||!Number.isFinite(e.term_from)||e.term_from<0||!a&&0===e.term_from)return;let r=t.interestPayments?.filter(e=>"CAPITALISATION"===e.method)??[],n=r.find(e=>!e.accountFromCustomer)??r[0],l=!!n,s=n?.periods?.[0]?.type??"IN_THE_END",o=l&&!a?((e,t,a,i)=>{var r;if("DAILY"===a){let a,r,n;return a=e/100,((r=(0,tX.A)(i,t),(n=(0,eF.A)({start:i,end:r})).reduce((e,t,a)=>{let l=0===a?i:t,s=a===n.length-1?r:(0,tX.A)((0,eY.A)(t),1),o=(0,eW.A)(s,l);return o?[...e,{daysInInterval:o,daysInYear:(0,eq.A)(t)}]:e},[])).reduce((e,t)=>e*Math.pow(1+a/t.daysInYear,t.daysInInterval),1)-1)/t*36500}let n=12;return"WEEKLY"===a&&(n=52),"QUARTERLY"===a&&(n=4),"SEMIANNUALLY"===a&&(n=2),"ANNUALLY"===a&&(n=1),(Math.pow(1+e/100/(r=n),t/365*r)-1)/t*36500})(e.rate,e.term_from,s,i):e.rate;return{optionId:t.id,rate:Number(o.toFixed(2)),termFrom:e.term_from,termTo:e.term_to,amountFrom:e.amount_from,hasCapitalization:l,hasRefill:!!t.replenishment?.length}})(e,t,a,r);return i?[i]:[]})).reduce((e,t)=>!e||t.rate>e.rate?t:e,void 0)},tV=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)},tG=(e,t,a)=>{let i,r=a||tq,n=t.find(t=>Number((0,eT.f)(t))===+e.bic),l=[],s=[],o=e.options.find(e=>e.active);try{i=n&&n.legal_entities?"string"==typeof n.legal_entities?JSON.parse(n.legal_entities):n.legal_entities:void 0}catch(e){console.error(e)}let m=1e6,c=0,u=1e6,d=0;e.options.filter(e=>e.active).forEach(e=>{e.currencies.forEach(t=>{t.rates.forEach(t=>{let a={from:null,to:null,term:null,amount:null,term_from:tV(t.minimumPeriod),term_to:tV(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};l.push(a),s.push({...a,rate:t.minimumRate}),m=Math.min(m,t.minimumAmount),c=Math.max(c,t.maximumAmount||0),u=Math.min(u,tV(t.minimumPeriod)),d=Math.max(d,tV(t.maximumPeriod))})})});let p=o?.interestPayments[0],_=p?.periods[0]?.type,g=tH({rates:s,options:e.options,isSavingAccount:e.asSavingAccount,isLadderDeposit:e.isLadderDeposit});return{...r,...e,id:parseInt(e.id,10),url:e.internalUrl,title:e.name,fin_exclusive:+e.exclusive,active_to:e.activeTo,bank_id:n?.id?Number(n.id):0,bank_name:n?n.name:"",bank_url:n?n.url:"",logo:n?.logo?n.logo:"",logo_mob:n?.logo_mob?n.logo_mob:"",legal_name:Array.isArray(i)&&i[0]?i[0]?.name:"",interest_rate:{...a?a.interest_rate:{},rates:l.length?l:r.interest_rate.rates},catalogPreview:g,isLadderDeposit:e.isLadderDeposit,amount:l.length?{...r.amount,from:m,to:c}:r.amount,archive:+!!e.archive,m_updated_at:e.updatedAt?e.updatedAt.slice(0,10):null,online_application:{...r.online_application,url:g?.optionId??o?.id?`https://lk.finuslugi.ru/add-product?aggregatorId=moex-mp-new-sc&productId=${e.id}&optionId=${g?.optionId??o?.id}`:r.online_application.url},term:l.length?{...r.term,from:u,to:d}:r.term,partial_withdrawal:o?{...r.partial_withdrawal,text:o.partialWithdrawal?.length?"Возможно":"Невозможно",has:+!!o.partialWithdrawal?.length}:r.partial_withdrawal,interest_payment:o?{...r.interest_payment,text:"IN_THE_END"===_?"В конце срока":"Ежемесячно",monthly:+("MONTHLY"===_),end:+("IN_THE_END"===_)}:r.interest_payment,refill:o?{comment:"",...r.refill,text:o.replenishment?.length?"Возможно":"Нет",has:+!!o.replenishment?.length}:r.refill,interest_capitalization:o?{comment:"",...r.interest_capitalization,has:+!!o.interestPayments.some(e=>"CAPITALISATION"===e.method),text:o.interestPayments.some(e=>"CAPITALISATION"===e.method)?"Да":"Нет"}:r.interest_capitalization,preferential_termination:o?{...r.preferential_termination,text:"PREFERENTIAL_RATE_FOR_WHOLE_TERM"===o.earlyTermination?"Да":"Нет",has:+("PREFERENTIAL_RATE_FOR_WHOLE_TERM"===o.earlyTermination)}:r.preferential_termination,prolongation:o?{text:o.prolongations?.length?"Предусмотрена":"Не предусмотрена"}:r.prolongation}},tQ=(e,t,a)=>{t.push({from:null,to:null,term:null,amount:null,term_from:a.minimumPeriod?tV(a.minimumPeriod):0,term_to:a.maximumPeriod?tV(a.maximumPeriod):0,rate:a.maximumRate,amount_from:a.minimumAmount??null,amount_to:a.maximumAmount??null,diff:a.topRateDelta||0,tag:{title:a?.tags?.title||"",description:a?.tags?.description||"",deeplink:a?.tags?.deepLink||"",url:a?.tags?.url||""},optionId:e.id})},tZ=e=>+(e?.earlyTermination===tW.PreferentialRateForWholeTerm||e?.earlyTermination===tW.WithoutRecalculationOfInterest),tK=e=>+!!e?.replenishment?.length,tJ=e=>+!!e?.partialWithdrawal?.length,t0=(e,t,a,i)=>{var r,n;let l,s,o,m,c,u,d,p,_,g,f,h=i??tq,v=e.attributes.options.find(e=>e.active),y=(e=>{try{if(!e)return"";let t=e.legal_entities;if("string"==typeof t){let e=JSON.parse(t);return Array.isArray(e)&&e[0]?.name?e[0].name:""}if(Array.isArray(t))return t[0]?.name||"";return""}catch{return""}})(t),w=v?.currencies?.[0]?.currency,{rates:x,catalogRates:b,amountFrom:C,amountTo:T,termFrom:N,termTo:j}=(r=e.attributes?.options??[],l=[],s=[],o=1/0,m=0,c=1/0,u=0,r.filter(e=>e?.active).forEach(e=>{(e.currencies??[]).forEach(t=>{(t.rates??[]).forEach(a=>{tQ(e,l,a),t.currency===w&&tQ(e,s,a),o=Math.min(o,a.minimumAmount),m=Math.max(m,a.maximumAmount),c=Math.min(c,a.minimumPeriod?tV(a.minimumPeriod):0),u=Math.max(u,a.maximumPeriod?tV(a.maximumPeriod):0)})})}),{rates:l,catalogRates:s,amountFrom:o,amountTo:m,termFrom:c,termTo:u}),R=(d=String(e?.contentAttributes?.bic??"").padStart(9,"0"),p=`${a}/mp-assets/images/bank/logo-brandmark-bank-${d}.svg`,t?.logo_mob??(e?.contentAttributes?.bic?p:void 0)),k=e.attributes.asSavingAccount??"saving_account"===e.productType,A=tH({rates:b,options:e.attributes.options,isSavingAccount:k,isLadderDeposit:e.attributes.isLadderDeposit});return{...h,...e,id:e.id,url:e?.contentAttributes?.url??"",title:e.name,active_to:e.visibleTo,active_from:e.visibleFrom,archive:+!!e.contentAttributes?.archive,m_updated_at:e.contentAttributes?.updatedAt?.slice(0,10)??"",bank_id:Number(t?.id),bank_name:t?.name??"",bank_url:t?.url??"",logo:R,logo_mob:R,legal_name:y,currency_id:void 0===w?h.currency_id:Number(w),online_application:{type:+!!(_=e.contentAttributes?.integration?.integrationType==="REFERAL"||e.contentAttributes?.integration?.integrationType==="INTERNAL_REFERAL"),url:e.contentAttributes?.integration?.url??"",commercial:+!!_,order:e.contentAttributes?.order},interest_rate:{...h?.interest_rate,rates:x.length?x:h.interest_rate?.rates??[],comment:e.contentAttributes?.ratesComment??""},catalogPreview:A,isLadderDeposit:e.attributes.isLadderDeposit,efficientRate:e.attributes.efficientRate?{minimumRate:e.attributes.efficientRate.minimumRate,maximumRate:e.attributes.efficientRate.maximumRate,minimumAmount:e.attributes.efficientRate.minimumAmount,maximumAmount:e.attributes.efficientRate.maximumAmount}:null,amount:x.length?{...h.amount,from:C,to:T}:h.amount,term:x.length?{...h.term,from:N,to:j}:h.term,partial_withdrawal:v?{...h.partial_withdrawal,has:tJ(v),text:tJ(v)?"Возможно":"Невозможно"}:h.partial_withdrawal,interest_payment:v?(g=v?.interestPayments?.[0]?.periods?.[0]?.type,{...h.interest_payment,text:"",daily:+("DAILY"===g),monthly:+("MONTHLY"===g),quarterly:+("QUARTERLY"===g),end:+("INTEREST_AHEAD"===g)}):h.interest_payment,refill:v?{comment:"",...h.refill,has:tK(v),text:tK(v)?"Возможно":"Невозможно"}:h.refill,interest_capitalization:v?{comment:"",...h.interest_capitalization,has:+!!v?.interestPayments?.some(e=>"CAPITALISATION"===e.method),text:(e=>{let{hasCapitalization:t,hasCurrentAccount:a}=(e?.interestPayments??[]).reduce((e,t)=>({hasCapitalization:e.hasCapitalization||"CAPITALISATION"===t.method,hasCurrentAccount:e.hasCurrentAccount||"TO_CURRENT_BANK_CUSTOMER_ACCOUNT"===t.method}),{hasCapitalization:!1,hasCurrentAccount:!1});return t&&a?"На выбор клиента":t?"Да":"Нет"})(v)}:h.interest_capitalization,preferential_termination:v?{...h.preferential_termination,has:tZ(v),text:tZ(v)?"Да":"Нет"}:h.preferential_termination,type:(f=e.attributes.asSavingAccount??"saving_account"===e.productType,{charitable:+("charitable"===e.productType),child:+("child"===e.productType),insurance:+("insurance"===e.productType),investment:+("investment"===e.productType),martgage:+("mortgage"===e.productType),multicurrency:+((v?.currencies.length??0)>1),pension:+("pension"===e.productType),salary:+("salary"===e.productType),saving_account:+!!f,seasonal:+("seasonal"===e.productType)}),prolongation:v?{text:v.prolongations?"Предусмотрена":"Не предусмотрена"}:h.prolongation,all_russia:+!!e.contentAttributes?.availableAllRussia,custom_regions:e.attributes?.regions??[],multicurrency:(n=h.multicurrency,v?+(v.currencies.length>1):n),finuslugiBonusPromotion:{},fin_exclusive:+!!e.attributes.exclusive,asSavingAccount:k,promo:!1,floatingRateInformations:e.floatingRateInformations,external:{integrationType:e.contentAttributes?.integration?.integrationType}}};var t1=a(15611),t4=a(79882);async function t2(e){let t=(0,x.p)(),a=t.NEXT_PUBLIC_BASE_URL,[i,r,n]=e||[],l=e?.join("/")||"",s=e.findIndex(e=>e.startsWith("reg_")),o=s>-1?e[s].replace("reg_",""):void 0,m=o?e[s+1]:void 0,c=tM(l),u=e?.find(e=>e.startsWith("teg_")),p=L.oy.includes(i)?B.C.insurance:L.C3.includes(i)?B.C.mfo:B.C.bank,_=p===B.C.bank,g=p===B.C.insurance,f=p===B.C.mfo?await (0,tR.U9)(r):await (0,tR.gg)(r,p);if(!f||!_&&"uslugi"===n||n&&!L.ej.includes(`/${n}`)&&o||n&&!n.includes("reg_")&&!L.ZL.includes(`/${n}`))return(0,d.notFound)();let[h]=Object.entries(L.Xc).find(([e,t])=>t===n)||[],v=null,y=null,w=null,b=await (0,tP.z)(),C=b?.companies?.find(({url:e})=>e===r)?.bic;if(C){let e=await (0,tR.zO)(C);e?.content?.[0]?.bankId&&(v=e?.content?.[0]?.bankId)}let T=u?.slice(4);_&&(w=(await tA()).data?.content??null);let N=w?.find(e=>e.url===(T??"all_offers"))?.id,[j,R,k,A,$,I,S]=await Promise.allSettled([(0,tS._)(),(0,t$.x)(l),(0,tR.KU)({type:p,company:f,regionUrl:o,townUrl:m,activeServiceName:h,tag:u}),tj(),"uslugi"===c&&!g?(0,tR.To)():null,_&&v&&N?tk(v,N):null,_&&"deposits"===h?(0,tI.w)({url:(0,t4.K)(e),regionUrl:o,townUrl:m}):null]),P=null,E=null;"fulfilled"===j.status&&j.value&&(P=j.value.find(({url:e})=>e===o)||null,E=P?.towns.find(({url:e})=>e===m)||null,P&&!E&&(E=P.towns.find(({main:e})=>e)||null));let M=(0,t1.l)(A,null);y=(0,t1.l)(I,null);let D=null;if("fulfilled"===k.status&&k.value&&(D=tB(k.value,E,M,{platformProducts:y?.platformProducts??[],nonPlatformProducts:y?.nonPlatformProducts??[]}),D?.deposits)){let e=[...(y?.platformProducts??[]).map(e=>tG(e,[f])),...(y?.nonPlatformProducts??[]).map(e=>t0(e,f,t.NEXT_PUBLIC_S3_ASSETS))].sort((e,t)=>{let a=t6(e)-t6(t);return 0!==a?a:e0(t)-e0(e)});D.deposits.data=e,D.deposits.length=e.length}let O="",U="fulfilled"===R.status?R.value:"",F=(0,t1.l)($,null),z=(0,t1.l)(S,null),Y=(0,L.iy)(D,"").find(e=>l.includes(e.link))??null,W=Y?.serviceTagName?F?.data?.[Y?.serviceTagName]??[]:[],q=W?.find(e=>`teg_${e.url}`===u);if(f&&(O=await tD(f,D,n,l,p,P,E,q)),"deposits"===h){let e=z?.texts.find(e=>"INDIVIDUAL_TITLE"===e.type)?.texts?.[0]?.text,t=z?.texts.find(e=>"INDIVIDUAL_DESCRIPTION"===e.type)?.texts?.[0]?.text;e&&(O=e),t&&(U=t)}let X=e?`/${l}`:"";return{title:O,description:U,alternates:{canonical:`${a}${X}`}}}let t6=e=>e.online_application?.type===3?0:e.online_application?.commercial===1?1:2,t3=async(e,t=!0)=>(await (0,tN.p)({url:`/api/v1/quotes?quoteUrl=${e}&published=${t}`,options:{isMpScApi:!0}})).data||null;var t5=a(59231),t8=a(40497),t9=a(28211);let t7={[L.Xc.credits]:"consumer_credits",[L.Xc.cards]:"credit_cards",[L.Xc.deposits]:"deposit",[L.Xc.mortgages]:"mortgage",[L.Xc.autoCredits]:"car-credit",[L.Xc.debitCards]:"debit",[L.Xc.microCredits]:"microcredits",[L.Xc.osago]:"osago",[L.Xc.kasko]:"kasko",[L.Xc.mortgage]:"ipotechnoe_strahovanie",[L.Xc.property]:"strahovanie_kvartir_i_domov"};var ae=a(67760),at=a(16515),aa=a(85044);let ai=e=>{let t=new Date,a=t.getDate(),i=t.getMonth(),r=t.getFullYear(),n=["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][i],l=`${a} ${n} ${r}г.`;return e.replace(/{date}/gim,l)},ar=e=>{if(!e||!e.length)return"";let t=e[0].toLowerCase();return"в"!==t&&"ф"!==t||(0,aa.s)(e[1])?"в":"во"},an=(e,t,a,i,r,n,l,s)=>{let o=e;if(r&&(o=(o=(o=(o=o.replace(/{(bank|mfo)}/gim,r.name)).replace(/{(bank|mfo)_r}/gim,r.name_r||r.name)).replace(/{(bank|mfo)_p}/gim,r.name_p)).replace(/{(bank|mfo)_link}/gim,r.url)),n&&(o=o.replace(/{tag_name}/gim,n.tag_name.toLowerCase())),!t){var m;let e;return n&&(o=(o=o.replace(/в {place_p}/gim,"во всей России")).replace(/{place}/gim,"России")),m=o=ai(o),e=new Date().getFullYear(),m.replace(/{year}/gim,e.toString())}let c=new Date().getFullYear(),u=a?a.name:t.name,d=a?a.name_r:t.name_r,p=a?a.name_p:t.name_p,_=a?a.name:t.name,g=a?a.name_r:t.name_r,f=a?a.name_p:t.name_p,h=t.name,v=t.name_r,y=t.name_p,w=!1,x=a?`reg_${t.url}${t.towns&&t.towns.length>1?`/${a.url}`:""}`:`reg_${t.url}`;a&&(w=i.includes(a.id));let b=a&&w?`${a.name} (${t.name})`:a?.name||t?.name,C=a&&w?`${a.name_r} (${t.name})`:a?.name_r||t?.name_r,T=a&&w?`${a.name_p} (${t.name})`:a?.name_p||t?.name_p;return l&&a&&(u=b,d=C,p=T,_=b,g=C,f=T),/{place_p} {region_r}/.test(o)&&(77===t.id||76===t.id||85===t.id)&&(o=o.replace(/{region_r}/gim,"")),[[/в {place}/gim,`${ar(u)} ${u}`],[/в {place_r}/gim,`${ar(d)} ${d}`],[/в {place_p}/gim,`${ar(p)} ${p}`],[/в {town}/gim,`${ar(_)} ${_}`],[/в {town_r}/gim,`${ar(g)} ${g}`],[/в {town_p}/gim,`${ar(f)} ${f}`],[/в {region}/gim,`${ar(h)} ${h}`],[/в {region_r}/gim,`${ar(v)} ${v}`],[/в {region_p}/gim,`${ar(y)} ${y}`],[/в {town_dub}/gim,`${ar(b)} ${b}`],[/в {town_dub_r}/gim,`${ar(C)} ${C}`],[/в {town_dub_p}/gim,`${ar(T)} ${T}`],[/{place}/gim,u],[/{place_r}/gim,d],[/{place_p}/gim,p],[/{town}/gim,_],[/{town_r}/gim,g],[/{town_p}/gim,f],[/{region}/gim,h],[/{region_r}/gim,v],[/{region_p}/gim,y],[/{town_dub}/gim,b],[/{town_dub_r}/gim,C],[/{town_dub_p}/gim,T],[/{year}/gim,c.toString()],[/{place_link}/gim,x],[/{max_deposits_rate}/gim,s?.toString()||""]].forEach(([e,t])=>{o=o.replace(e,t)}),o=ai(o)};var al=a(89242),as=a(69572),ao=a(24113),am=a(2280),ac=a(49684),au=a(3360),ad=a(4264),ap=a.n(ad);let a_=e=>{let t=(0,x.p)(),a=t.NEXT_PUBLIC_BASE_URL,i=t.NEXT_PUBLIC_S3_ASSETS,r="true"===t.FEATURE_TOGGLE_SEO_TEXTS,n=(()=>{var e,t;let a,i,r,[n,l]=(0,u.useState)(null),s=(0,d.usePathname)();return e=()=>{(async()=>{let e=s.split(/[?#]/)[0].split("/").filter(Boolean);l(await t2(e))})()},t=[s],a=(0,u.useRef)(!0),i=(0,u.useRef)(null),r=(0,d.usePathname)(),(0,u.useEffect)(()=>{if(a.current){a.current=!1,i.current=r;return}r!==i.current&&(e(),i.current=r)},[...t,e,r]),n})();(0,I.Z)(n);let{orgType:l,generalRating:s,company:o,description:m,ssr:D,bestOffersData:O,supportBlockData:U}=e,F=(0,d.usePathname)(),{region:z,town:Y,handleOpenCityModal:W}=(0,S.T)({initialRegion:D.region,initialTown:D.town}),q=F.split("/").find(e=>e.startsWith("teg_")),X=L.wY[l],[H,V]=(0,u.useState)(D.productsNum),[G,Q]=(0,u.useState)(D.quote),[Z,K]=(0,u.useState)(D.activeTag),J=(0,u.useRef)(!0),et=(0,u.useRef)(null),[ea,ei]=(0,u.useState)(D.depositTagsBanksStats),[er,en]=(0,u.useState)(D.bankTowns),[eo,em]=(0,u.useState)(H>0&&"uslugi"===tM(F)),ec=E(l,o),eu=M(l,o),ed=l===B.C.mfo,[ep,eg]=(0,u.useState)(D.activeService),{organizationServices:ef,mfoOffers:eh,servicesLoading:ev,seoTexts:ew}=(e=>{let t=(0,x.p)(),[a,i]=(0,u.useState)(e.initialServices),[r,n]=(0,u.useState)(e.initialMfoOffers),[l,s]=(0,u.useState)(e.initialSeoTexts),[o,m]=(0,u.useState)(e.initialQuote&&e.activeService?{[e.activeService?.serviceName]:e.initialQuote}:{}),[c,d]=(0,u.useState)(!1),p=`${e.region?.url||""}${e.town?.url||""}`,_=(0,u.useRef)(p);(0,u.useEffect)(()=>{if(e.orgType!==B.C.mfo||!e.isUslugiTab)return;let t=!1,a=async()=>{let[a,r]=await Promise.allSettled([(0,tR.KU)({type:e.orgType,company:e.company,regionUrl:e.region?.url,townUrl:e.town?.url,tag:e.tag}),(0,tR.Qw)({companyName:e.company.url,companyId:e.company.id,region:e.region?.url,town:e.town?.url})]);if(t)return;let l=(0,t1.l)(a,null),s=(0,t1.l)(r,null);n(s?s.data?.microCredits?.filter(t=>tL(t,e.town))||[]:e.initialMfoOffers?.filter(t=>tL(t,e.town))||[]);let o=l?.microCredit;if(o&&s){let t=s.data?.microCreditText;o.serviceText=(e.town?.url?t?.town_content:t?.all_russia_content)||[]}i(l)};return d(!0),a().finally(()=>{t||d(!1)}),()=>{t=!0,d(!1)}},[e.company,e.region?.url,e.town?.url,e.isUslugiTab,e.initialMfoOffers]),(0,u.useEffect)(()=>{if(e.orgType!==B.C.bank||!e.isUslugiTab)return;let t=e.activeService?.serviceName;if(!t)return;let r=!!a?.[t]?.data,n=!!t&&o[t],l=p!==_.current;if(r&&n&&!l)return void e.setQuote(n);let s=!1;_.current=p,d(!0);let c=e.company.bic;return(async()=>{let r=e.tag?.slice(4),n=(await tA()).data?.content??null,o=n?.find(e=>e.url===(r??"all_offers"))?.id,u=await (0,tR.zO)(c),d=u?.content?.[0]?.bankId,[g,f,h]=await Promise.allSettled([(0,tR.KU)({type:e.orgType,company:e.company,regionUrl:e.region?.url,townUrl:e.town?.url,activeServiceName:t,currentBankServices:l?null:a,tag:e.tag}),d&&o?tk(d,o):null,t3(e.pathname?.replace(/\/reg_.*$/,""))]);if(s)return;_.current=p,i((0,t1.l)(g,null)),e.setDepositTagsBanksStatsData((0,t1.l)(f,null));let v=(0,t1.l)(h,null)?.content?.[0]||null;t&&v&&m(e=>({...e,[t]:v})),e.setQuote(v)})().finally(()=>{s||d(!1)}),()=>{s=!0,d(!1)}},[e.company,e.region?.url,e.town?.url,e.isUslugiTab,e.activeService?.serviceName]),(0,u.useEffect)(()=>{if(!e.isUslugiTab||!e.isSeoTextsEnabled)return;let t=!1;return(async()=>{let a=await (0,ae.g)(e.pathname);!t&&a&&Array.isArray(a)&&s((0,at.b)(a))})().catch(()=>void 0),()=>{t=!0}},[e.isSeoTextsEnabled,e.pathname,e.isUslugiTab]);let g=(0,u.useMemo)(()=>a?tB(a,e.town,e.bankTowns):a,[a,e.town,e.bankTowns]);return{organizationServices:(0,u.useMemo)(()=>{if(!g?.deposits?.data)return g;let a=[...(e.depositTagsBanksStatsData?.platformProducts??[]).map(t=>tG(t,[e.company])),...(e.depositTagsBanksStatsData?.nonPlatformProducts??[]).map(a=>t0(a,e.company,t.NEXT_PUBLIC_S3_ASSETS))],i=e=>e.online_application?.type===3?0:e.online_application?.commercial===1?1:2,r=[...a].sort((e,t)=>{let a=i(e)-i(t);return 0!==a?a:e0(t)-e0(e)});return{...g,deposits:{data:r,tags:g?.deposits?.tags,length:r.length,serviceText:g.deposits.serviceText}}},[g,e.company,e.depositTagsBanksStatsData,t.NEXT_PUBLIC_S3_ASSETS]),mfoOffers:r,servicesLoading:c,seoTexts:l}})({initialServices:D.organizationServices,initialMfoOffers:D.mfoOffers,initialSeoTexts:D.seoTexts,region:z,town:Y,orgType:l,company:o,bankTowns:er,isUslugiTab:eo,activeService:ep,depositTagsBanksStatsData:ea,setDepositTagsBanksStatsData:ei,initialQuote:D.quote,setQuote:Q,pathname:F,tag:q,isSeoTextsEnabled:r}),eb=(0,u.useMemo)(()=>(0,L.iy)(ef,i),[ef]),eC=(({initialOrganizationTag:e,pathname:t,region:a,town:i,enabled:r})=>{let[n,l]=(0,u.useState)(e),s=a?.url??null,o=i?.url??null;return(0,u.useEffect)(()=>{if(!r)return;let e=!1,a=(0,t4.K)(t.split("/").filter(Boolean));return(async()=>{let t=await (0,tI.w)({url:a,regionUrl:s,townUrl:o});e||l(t)})().catch(()=>void 0),()=>{e=!0}},[r,t,s,o]),n})({initialOrganizationTag:D.organizationTag,pathname:F,region:z,town:Y,enabled:ec&&eo}),eT=(0,u.useMemo)(()=>(0,am.o)(eC),[eC]),ej=ep?.serviceName==="deposits",eR=ed?"mikrozajmy":eb[0]?.link,eA=(0,L.Ub)(o,l,ec,H>0,eR),e$=(0,u.useMemo)(()=>eA.find(e=>tE(e,F)),[F,o]),[eI,eS]=(0,u.useState)(e$||eA[0]),eP=(0,$.J)({bankUrl:o.url,tagUrl:Z?.url??ao.J,regionUrl:z?.url??null,townUrl:Y?.url??null,enabled:ec&&"uslugi"===eI.id&&ej}),eL=(0,u.useMemo)(()=>(0,ao.R)(eP),[eP]),eB=(()=>{let e=[{href:"/",label:"Главная"},{label:ec?"Банки":`Каталог ${X.name_rs_full}`,href:`/${X.catalogUrl}`},{label:o.name,href:ec?`/${X.catalogUrl}/${o.url}`:""}];if(!ec)return e[e.length-1].href=void 0,e;let t=ep?.serviceName==="deposits",a=Y?.name_p||z?.name_p;ep&&(!t||a||Z&&t)&&e.push({label:ep.title,href:`/${X.catalogUrl}/${o.url}/${ep.link}`}),Z&&ep&&(!t||a)&&e.push({label:Z.tag_name,href:`/${X.catalogUrl}/${o.url}/${ep.link}/teg_${Z.url}`});let i="kompanija"!==X.url&&(ep||"uslugi"===eI.id);return a&&i&&!t&&e.push({label:`В ${a}`}),t||(e[e.length-1].href=void 0),e})(),{loading:eE,insuranceTypes:eM,adresaProps:eD,reviews:eO,reviewsMaxPage:eU,serviceTypes:eF,companyPeopleRatings:ez,tags:eY}=(e=>{let{ssr:t,orgType:a,company:i,isInsurance:r,isBank:n,activeTabId:l,activeServiceLink:s,setDepositTagsBanksStatsData:o,bankTowns:m,setBankTowns:c,setIsUslugiTab:d,quote:p,setQuote:_,pathname:g}=e,[f,h]=(0,u.useState)(!1),[v,y]=(0,u.useState)(t.insuranceTypes),[w,x]=(0,u.useState)(t.adresaProps),[b,C]=(0,u.useState)(t.reviews),[T,N]=(0,u.useState)(t.reviewsMaxPage),[j,R]=(0,u.useState)(t.serviceTypes),[k,A]=(0,u.useState)(t.companyPeopleRatings),[$,I]=(0,u.useState)(t.tags),S=a===B.C.mfo&&i.cmsId?i.cmsId:null,P=(0,ex.B2)({type:a,companyIds:S?[S]:[i.id],orderDesc:!0}),L=async()=>{h(!0);let e=r&&"about"===l&&!v?(0,tR.uH)():null,s=!w&&"about"===l,u=a===B.C.bank?t8.n.Atm:t8.n.branch,d=s?(0,t5.g)((0,t9.a)(i.url,n,u)):null,f="ratings"===l&&!j||n&&"uslugi"===l&&!b,$="ratings"===l&&!k,L=null,E=null;if(f||$){let e=f?(0,ex.Gs)(P.reviews,1,4,void 0,S??void 0):null,t=$?(0,ex.A8)(P.ratings):null;[L,E]=await Promise.allSettled([e,t]);let a=(0,t1.l)(L,null);b||C(a?.result.reviews||null),T||N(a?.result.pages||0),!j&&a&&R((0,eN.j)(a))}let M=n&&"uslugi"===l&&!m?tj():null,D="uslugi"===l?t3(g):null,O="uslugi"!==l||r?null:(0,tR.To)(),U=n&&t.bankProviderId&&t.depositTagId?tk(t.bankProviderId,t.depositTagId):null,[F,z,Y,W,q,X]=await Promise.allSettled([e,d,M,D,O,U]);v||y((0,t1.l)(F,null)?.data?.ins_types||null),w||x((0,t1.l)(z,null)),!k&&E&&A((0,t1.l)(E,null)),m||c((0,t1.l)(Y,null)),p||_((0,t1.l)(W,null)?.content?.[0]||null);let H=(0,t1.l)(X,null);if("uslugi"===l&&!r){let e=(0,t1.l)(q,null)||null;I({data:{autoCredit:e?.data?.autoCredit??[],card:e?.data?.card??[],credit:e?.data?.credit??[],debitCard:e?.data?.debitCard??[],microCredit:e?.data?.microCredit??[],mortgage:e?.data?.mortgage??[],deposit:H?.tagList?.map(t=>{var a;return{id:(a={...t,name:e?.data?.deposit.find(e=>e.url===t.url)?.name??""}).id,name:a.name??a.tagName,tag_name:a.tagName,url:a.url,bank_region_page:1,region_page:1,url_redirect:!1,displayInLinksBlock:a.displayInLinksBlock}})??[]}})}o(H),h(!1)},E=async()=>{let e=s?t7[s]:void 0,t=j?.[a]?.find(({url:t})=>t===e),r=(0,ex.B2)({type:a,companyIds:S?[S]:[i.id],orderDesc:!0,serviceId:String(t?.id)}),n=await (0,ex.Gs)(r.reviews,1,4);C(n?.result.reviews||null),n&&R(e=>e??(0,eN.j)(n))};return(0,u.useEffect)(()=>{d("uslugi"===l),L()},[l]),(0,u.useEffect)(()=>{n&&"uslugi"===l&&E()},[s,l,n,j,a,i]),{loading:f,insuranceTypes:v,adresaProps:w,reviews:b,reviewsMaxPage:T,serviceTypes:j,companyPeopleRatings:k,tags:$}})({ssr:D,orgType:l,company:o,isInsurance:eu,activeTabId:eI.id,activeServiceLink:ep?.link,isBank:ec,setDepositTagsBanksStatsData:ei,bankTowns:er,setBankTowns:en,setIsUslugiTab:em,quote:G,setQuote:Q,pathname:F}),eW=({tab:e,service:t})=>{let a=t?.link?`/${t.link}`:e.path,i="kompanija"!==X.url&&(t||"uslugi"===e.id)?(0,ty.I)(z,Y):"";return`/${X.url}/${o.url}${a}${i}`},eq=e=>{let t=eA.find(t=>t.id===e);if(!t)return;let a="uslugi"===t.id,i=a?ep:void 0;if(a&&ed){let e=eb.find(e=>"mikrozajmy"===e.link);i=e??{link:"mikrozajmy"},e&&eg(e)}let{search:r,hash:n}=window.location,l=eW({tab:t,service:i||void 0}),s=`${l}${r}${n}`;window.history.replaceState(null,"",s),"uslugi"!==t.id&&eg(null),eS(t)},{pageTitle:eX,location:eH}=(0,u.useMemo)(()=>{let e=Y?.name_p||z?.name_p;return{pageTitle:Z&&(ep?.serviceName==="cards"||ep?.serviceName==="debitCards")?`${Z.name} ${o.name_r||o.name}`:Z?`${Z.name} от ${o.name_r||o.name}`:ep?.serviceName==="kasko"||ep?.serviceName==="osago"?`${ep.title} в ${o.name_r||o.name}`:ep?.serviceName==="microCredit"?`Предложения ${o.name_r||o.name}`:ep?`${ep.title} ${o.name_r||o.name}`:eI.title,location:e}},[z?.id,Y?.id,ep,o.name_r,o.name,eI.id,Z]),eV=ej?eC:null,eG=eV?.topTitle||eX,eQ=(0,u.useMemo)(()=>{if(ep?.serviceName!=="deposits")return[];let e=ef?.deposits?.data;return e?[...e].flatMap(e=>{if(!("deposit_group_id"in e))return[];let t=e0(e);return t>0?[t]:[]}):[]},[ep?.serviceName,ef?.deposits?.data]),eZ=ep?.serviceName==="deposits"?ef?.deposits?.length??0:0,eK=Z?.url.startsWith("nakopitelnye")??!1;(0,u.useEffect)(()=>{let e=Object.values(ef||{})?.reduce((e,t)=>e+t.length,0);V(e),e||"uslugi"!==eI.id||eq(eA[0].id)},[ef]),(0,u.useEffect)(()=>{if(J.current){J.current=!1;return}if(eu||"uslugi"!==eI.id)return;let e="";"uslugi"===eI.id&&ed?e="/mikrozajmy":ep?.link&&(e=`/${ep.link}`);let t=q?`/${q}`:"",a="uslugi"===eI.id?"":eI.path,i=(0,ty.I)(z,Y),r=ed?window.location.search:"",n=`/${X.url}/${o.url}${a}${e}${t}${i}${r}${window.location.hash}`;window.history.replaceState(null,"",n)},[ep,z?.id,Y?.id]),(0,u.useEffect)(()=>{let e=ep?.serviceTagName,t=e?eY?.data?.[e]??[]:[];K(t?.find(e=>`teg_${e.url}`===q))},[ep,eY,q]);let eJ=(0,c.jsx)(T.e,{className:ap().partnersLink,text:`Вы представитель ${L.wY[l].name_r}?`,mainPageUrl:L.mu,href:"/partners",target:"_self",iconColor:"white"}),e1={title:`Отзывы о ${o.name_p||o.name}`,subTitle:"",value:{reviews:(0,as.M)(eO,eF,l,o),registerButton:{text:"Показать все отзывы",link:`/${X.url}/${o.url}/otzyvy`,customClass:ap().allReviewsButton,iconRight:(0,c.jsx)(p.Zhw,{className:ap().allReviewsButtonIcon})}}},e4=(0,u.useMemo)(()=>{let e;if(ep?.serviceName!=="deposits")return eO;if(D.depositReviews?.length)return D.depositReviews;let t=(e=(eF?.[B.C.bank]||[]).find(({name:e})=>e.toLowerCase().includes("вклады")),e?.id&&Number(e.id)||null);return t?(eO||[]).filter(e=>e.service_id===t):[]},[ep?.serviceName,eF,eO,D.depositReviews]),e2=(()=>{let e=ep?.serviceName,t=ep?.serviceTagName;if(!e&&!ed)return[];let a=ed?"microCredit":e,i=ef?.[a]?.serviceText||[],n=eY?.data?.[t||""]||[],l=(0,ty.I)(z,Y),s=n.filter(t=>!!t.bank_region_page&&("deposits"!==e||t.displayInLinksBlock)&&(!!t.region_page||!z&&!Y)).map(e=>{let t="DEFAULT"===e.tag_name||"vse_vkladi"===e.tag_name?`Все ${ep?.title_plural?.toLowerCase()}`:e.tag_name,a="DEFAULT"===e.tag_name||"vse_vkladi"===e.tag_name?"":`/teg_${e.url}`,i=`/${X.url}/${o.url}/${ep?.link}${a}${l}`;return{id:e.id,name:t,url:i}}).sort((e,t)=>{let a=e.name.startsWith("Все "),i=t.name.startsWith("Все ");return a&&!i?-1:!a&&i?1:0}),m=`Виды ${ep?.title_r?.toLowerCase()}`,u=(0,c.jsx)(j.H,{data:s});return[...r?ew??[]:[...i.map(e=>{var t;let a=(t=[],e?.title&&(e.title=an(e.title,z,Y,t,o)),e?.content&&e.content.forEach(e=>{e.data&&(e.data.html&&(e.data.html=an(e.data.html,z,Y,t,o)),e.data.text&&(e.data.text=an(e.data.text,z,Y,t,o)))}),e);return{question:a.title,answer:a.content.map(e=>e.data.html).join("")}})],...s.length>0?[{question:m,answer:u}]:[]]})(),e6=[...ep?.serviceName==="deposits"&&eT.length?eT:e2,...eL],e3=!!e2.length||!!eT.length||!!eL.length;return(0,c.jsxs)("div",{className:ap().page,children:[(0,c.jsxs)(g.m,{children:[(0,c.jsx)(_.B,{style:{padding:"16px 0"},items:eB,className:ap().breadcrumbs,isMobile:!1,isFullView:!0}),(0,c.jsx)(R.B,{data:(0,al.O)(eB,t.NEXT_PUBLIC_BASE_URL,F,ec,ep?.serviceName==="deposits")}),(0,c.jsx)(R.B,{data:(({baseUrl:e,company:t,orgType:a,generalRating:i,reviews:r})=>{let n,l="banki";a===B.C.mfo&&(l="mfo"),a===B.C.insurance&&(l="kompanija");let s=t.logo||t.logo_mob,o=s&&s.indexOf("http")>=0?{"@type":"ImageObject",url:s}:void 0,m=t.phone||t.maintel,{legal_entities:c}=t;if(Array.isArray(c)&&c.length>0){let e=c[0];"legal_address"in e&&e.legal_address?n=e.legal_address:"address"in e&&(n=e.address)}let u=r&&r.length>0?r.slice(0,4).map(e=>({"@type":"Review",author:{"@type":"Person",name:e.name},datePublished:(e=>{if(e.includes("T"))return e.split("T")[0];if(/^\d{2}\.\d{2}\.\d{4}$/.test(e)){let[t,a,i]=e.split(".");return`${i}-${a}-${t}`}return e})(e.publ_date),name:e.title||"",reviewAspect:e.product_type?.join(", ")||"",reviewBody:e.text||"",reviewRating:{"@type":"Rating",ratingValue:Math.round(e.rating),bestRating:5,worstRating:1}})):void 0;return{"@context":"https://schema.org","@type":a===B.C.insurance?"InsuranceAgency":"BankOrCreditUnion",name:t.name,description:t.short_description,url:`${e}/${l}/${t.url}`,image:o,...m&&{telephone:m},...t.site&&{sameAs:[t.site]},...i&&{aggregateRating:{"@type":"AggregateRating",ratingValue:i,reviewCount:t.reviews_num,ratingCount:t.reviews_num,bestRating:5,worstRating:1}},...u&&{review:u},...m&&{contactPoint:{"@type":"ContactPoint",telephone:m}},...a!==B.C.insurance&&n&&{address:{"@type":"PostalAddress",addressLocality:n}}}})({baseUrl:a,company:o,orgType:l,generalRating:s,reviews:eO&&eO.length>0?(0,as.M)(eO,eF,l,o).slice(0,4):void 0})}),(0,c.jsx)(ey,{uslugiTabUrl:eR,generalRating:s,name_rs:X.name_rs,catalogUrl:X.catalogUrl,company:o,organizationType:l,productsNum:H,onBankFeatureClick:e=>{et.current?.scrollIntoView({behavior:"smooth",block:"center"}),eq(e)},getTabPath:eW,reviewsCount:ed&&o.cmsId?D.reviewsCount||o.reviews_num:void 0}),(0,c.jsxs)("div",{ref:et,className:ap().infoBlock,children:[(0,c.jsxs)("h1",{className:ap().title,children:[eG,eH&&eo&&(0,c.jsxs)(c.Fragment,{children:[" в ",(0,c.jsx)("span",{onClick:W,className:ap().location,children:eH})]})]}),(0,c.jsx)(N.m,{bankName:o.name_r||o.name,isSavingsAccount:eK,location:eH,offersCount:eZ,rates:eQ,subtitle:eV?.subtitle}),(0,c.jsx)(h.A,{className:ap().tabsWrapper,options:{spaceBetween:0,slidesPerView:"auto"},children:eA.map(e=>(0,c.jsx)(h.D,{className:(0,C.A)(ap().tab,{[ap().activeTab]:!e.isExternal&&eI.id===e.id}),onClick:e.isExternal?void 0:()=>{(0,el._)({eventCategory:L.mu,eventActionType:el.y.tab,eventActionText:(0,es.y)(e.label)}),eq(e.id)},children:(0,c.jsx)("a",{href:e.isExternal?e.path:eW({tab:e}),onClick:e.isExternal?void 0:e=>e.preventDefault(),children:e.label})},e.id))})]})]}),"about"===eI.id&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(ee,{orgType:l,company:o,insuranceTypes:eM,loadingInsuranceTypes:!eM&&eE}),eJ,(0,c.jsx)("div",{className:ap().mobileBanner,children:(0,c.jsx)(g.m,{children:(0,c.jsx)(A.o,{organizationType:l,bannerUrl:eu?k.nW[o.url]:void 0,compact:ed})})}),!!eD?.selectedFk?.length&&(0,c.jsx)(P.A,{...eD,region:z,town:Y,needsGeoLocationSync:z?.url!==D.region?.url||Y?.url!==D.town?.url}),eE&&!eD?.selectedFk?.length&&(0,c.jsx)(g.m,{children:(0,c.jsx)(f.E,{className:ap().adresaSkeleton})})]}),"reviews"===eI.id&&(0,c.jsx)(ek,{company:o,orgType:l,companyReviews:eO||[],maxPage:eU,serviceTypes:eF,initialPage:e.initialPage}),"ratings"===eI.id&&(0,c.jsxs)(g.m,{className:ap().ratingsContainer,children:[(0,c.jsx)(e_,{company:o,companyPeopleRatings:ez,orgType:l,serviceTypes:eF,loading:!ez&&eE}),eJ]}),"uslugi"===eI.id&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(tT,{organizationType:l,servicesBlocks:eb,servicesLoading:ev,bankServices:ef,company:o,pageTitle:eX,description:m||"",activeService:ep,handleServiceChange:e=>{if(!e)return;let{search:t,hash:a}=window.location,i=eW({tab:eI,service:e}),r=`${i}${t}${a}`;window.history.replaceState(null,"",r),eg(e)},region:z,town:Y,mfoOffers:eh,generalRating:s,quote:G,reviews:e4}),G&&!Y&&!z&&(0,c.jsx)(y.V,{className:ap().quote,quote:G})]}),(0,c.jsx)("div",{className:(0,C.A)({[ap().hiddenSection]:!(ec||"news"===eI.id)}),children:O&&(0,c.jsx)(v.BestOffers,{tabs:O,baseUrl:t.NEXT_PUBLIC_BASE_URL,s3Assets:`${t.NEXT_PUBLIC_S3_ASSETS}/mp-assets`,dataLayerPush:ac.o})}),ec&&"uslugi"===eI.id&&(0,c.jsx)(au.m,{...e1,showAllStars:!0,variant:"secondary",loading:!eO&&eE}),!eu&&"uslugi"===eI.id&&e3&&(0,c.jsx)(w.Y,{questions:e6,dataLayerPush:ac.o,eventCategory:L.mu,tagTitle:"h3"}),U&&(0,c.jsx)(b.Support,{...U,s3Assets:t.NEXT_PUBLIC_S3_ASSETS})]})}}},e=>{e.O(0,[4653,2545,3177,8465,4718,2527,9168,8241,963,2683,7255,8969,5036,4803,9034,4028,2078,8290,4864,4421,5271,2690,4095,5508,8441,3794,7358],()=>e(e.s=94289)),_N_E=e.O()}]);