(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6845],{28009:(e,a,t)=>{"use strict";t.d(a,{q:()=>i});var n=t(14347);let i=e=>{let a=(0,n.nu)(e);return(0,n.qK)()&&a}},28453:(e,a,t)=>{"use strict";t.d(a,{D:()=>o,Q:()=>r});var n=t(6814),i=t(5805);let r=e=>{let a=new URLSearchParams(e);return{type:a.get("type")||void 0,com:a.get("com")||void 0,service:a.get("service")||void 0,page:a.get("page")||void 0}},o=e=>{let{type:a,com:t,service:r}=e,o=a===n.Ls.insurance?"sk":a===n.Ls.mfo?"mfo":"",s="",l="";s=window.location.search,l=window.location.hash;let p=new URLSearchParams(s);o?p.set("type",o):p.delete("type"),t?.length?p.set("com",t.join("~")):p.delete("com"),r?p.set("service",r):p.delete("service");let c=p.toString();return(0,i.S)(`/otzyvy${c?`?${c}`:""}${l}`)}},46845:(e,a,t)=>{"use strict";t.r(a),t.d(a,{CompanyDetailRating:()=>b});var n=t(95155),i=t(66216),r=t(94589),o=t(24104),s=t(23712),l=t(56755),p=t(84685),c=t(17436),_=t(28009),m=t(28453),g=t(6814),d=t(4779),v=t(26180);let x=e=>`${e} ${(0,c.td)(e,"отзыв","отзыва","отзывов")} на Финуслугах`;var f=t(57846),w=t.n(f);let I=e=>{let a=x(e.reviewsCount);return(0,n.jsxs)("div",{className:w().ratingInfo,children:[(0,n.jsxs)("div",{className:w().ratingTop,children:[(0,n.jsxs)("div",{className:w().ratingTitle,children:[(0,n.jsx)(p.Zv1,{size:24,className:w().ratingIcon}),(0,n.jsx)("span",{children:"Рейтинг отсутствует"})]}),(0,n.jsx)(r.e,{className:w().ratingLink,text:a,mainPageUrl:l.mu,href:e.reviewsHref,target:"_self",offPadding:!0})]}),(0,n.jsxs)("div",{className:w().ratingDescription,children:["Для расчета рейтинга нужно не менее ",5," отзывов"]})]})};var y=t(29722),R=t(16378),h=t(77656),j=t.n(h);let C=e=>(0,n.jsxs)("div",{className:(0,y.A)(j().starWrapper,{[j().mid]:e.mid,[j().big]:e.big,[j().partial]:!e.total}),children:[(0,n.jsx)(p.Zv1,{size:e.big?20:16,className:j().starIcon}),(0,R.Y)(e.ratingValue),e.total?`/${e.total}`:"",e.text?"/":"",(0,n.jsx)("span",{className:j().starText,children:e.text})]});var u=t(94073),N=t.n(u);let D=({organization:e,organizationType:a})=>{let t=(0,_.q)("m"),i=l.wY[a],o=e.reviewsInfo,s=a!==g.Ls.mfo,f=[e.url],w=(0,m.D)({type:a,com:f}),y=Object.entries(o?.serviceMap??{}).map(([e,a])=>({name:a.serviceName,count:a.count||0,rating:a.rating||0,serviceId:a.serviceCategoryId})).filter(({count:e})=>e>0);return(0,n.jsxs)("div",{className:N().component,children:[(0,n.jsxs)("p",{className:N().description,children:["Составляется на основе отзывов клиентов ",i.name_rs]}),(0,n.jsxs)("div",{className:N().peopleRatingWrapper,children:[(0,n.jsx)("div",{className:N().peopleRatingTopInfo,children:5>(o?.totalCount||0)?(0,n.jsx)(I,{reviewsCount:o?.totalCount||0,reviewsHref:w}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C,{ratingValue:o?.totalRating||0,text:"5",big:!0}),(0,n.jsx)(r.e,{className:N().peopleRatingTopFullInfoLink,text:x(o?.totalCount||0),mainPageUrl:l.mu,href:w,target:"_self"})]})}),s&&y.map(({serviceId:e,name:i,count:r,rating:o})=>{let s=r?`${r} ${(0,c.td)(r,"отзыв","отзыва","отзывов")}`:"",_=(0,m.D)({type:a,com:f,service:String(e)});return(0,n.jsx)("a",{href:_,className:N().rowItem,onClick:()=>{(0,d._)({eventCategory:l.mu,eventActionType:d.y.block,eventActionText:(0,v.y)(i),eventLabel:_})},children:(0,n.jsxs)("div",{className:N().rowTitleWrapper,children:[!t&&(0,n.jsx)(C,{ratingValue:o,total:5,mid:!0}),(0,n.jsx)("div",{className:N().rowTitle,children:i}),(0,n.jsxs)("div",{className:N().rowLink,children:[t&&(0,n.jsx)(C,{ratingValue:o,mid:!0}),s&&(t?`/${s}`:`(${s})`)]}),(0,n.jsx)(p.JuQ,{size:26,className:N().rowItemIcon})]})},e)})]}),!t&&(0,n.jsxs)("p",{className:N().disclaimer,children:["Рейтинги ",e.info.naming.nameR||e.name," составлены на основании наиболее актуальных данных за ",new Date().getFullYear()," год"]})]})};var T=t(85876),L=t.n(T);let b=({organization:e,organizationType:a})=>(0,n.jsx)(i.m,{children:(0,n.jsxs)("div",{className:L().wrapper,children:[(0,n.jsxs)("div",{className:L().container,children:[(0,n.jsx)("div",{className:L().body,children:(0,n.jsxs)("div",{className:L().info,children:[(0,n.jsx)("h2",{className:L().title,children:"Пользовательский рейтинг"}),(0,n.jsx)(D,{organization:e,organizationType:a})]})}),(0,n.jsxs)("div",{className:L().bannerWrapper,children:[(0,n.jsx)(o.c,{company:e.url,orgType:a,eventCategory:"companyDetail"}),(0,n.jsx)(s.N,{})]})]}),(0,n.jsx)(r.e,{className:L().partnersLink,text:`Вы представитель ${l.wY[a].name_r}?`,mainPageUrl:l.mu,href:"/partners",target:"_self",iconColor:"white"})]})})},57846:e=>{e.exports={ratingInfo:"CompanyDetailRatingInfoLowReview_ratingInfo__HBzQm",ratingTop:"CompanyDetailRatingInfoLowReview_ratingTop__bguWl",ratingTitle:"CompanyDetailRatingInfoLowReview_ratingTitle__TSZxM",ratingIcon:"CompanyDetailRatingInfoLowReview_ratingIcon__sI90j",ratingLink:"CompanyDetailRatingInfoLowReview_ratingLink__l7gM9",ratingDescription:"CompanyDetailRatingInfoLowReview_ratingDescription__Mf_i8"}},77656:e=>{e.exports={starWrapper:"Star_starWrapper__La74p",starIcon:"Star_starIcon__fq2fQ",starText:"Star_starText__5iEQ7",mid:"Star_mid__R1hIQ",big:"Star_big__F_rNt",partial:"Star_partial__0MEeA"}},85876:e=>{e.exports={wrapper:"CompanyDetailRating_wrapper__ybuhz",container:"CompanyDetailRating_container__EdOb2",body:"CompanyDetailRating_body__jVIXS",info:"CompanyDetailRating_info__S58ri",title:"CompanyDetailRating_title__LKN0g",bannerWrapper:"CompanyDetailRating_bannerWrapper__PCAis"}},94073:e=>{e.exports={component:"CompanyDetailRatingInfo_component__13_ne",description:"CompanyDetailRatingInfo_description__0Coio",peopleRatingWrapper:"CompanyDetailRatingInfo_peopleRatingWrapper__c4vkU",peopleRatingTopInfo:"CompanyDetailRatingInfo_peopleRatingTopInfo__ZHFE_",peopleRatingTopFullInfoLink:"CompanyDetailRatingInfo_peopleRatingTopFullInfoLink__CtCgu",rowItem:"CompanyDetailRatingInfo_rowItem__E_bL_",rowItemIcon:"CompanyDetailRatingInfo_rowItemIcon___7M74",rowTitleWrapper:"CompanyDetailRatingInfo_rowTitleWrapper__w60kS",rowTitle:"CompanyDetailRatingInfo_rowTitle___QHdN",rowLink:"CompanyDetailRatingInfo_rowLink__shtnV",disclaimer:"CompanyDetailRatingInfo_disclaimer__nCiBQ"}}}]);