1"use strict";(self.webpackChunkclient_rater_react=self.webpackChunkclient_rater_react||[]).push([[1446],{71446:(e,n,t)=>{t.r(n),t.d(n,{default:()=>H});var s,a,r=t(57528),i=t(86781),l=t(68459),o=t(9950),d=t(19335),c=t(56262),x=t(24889),m=t(84335),h=t(27081),g=t(70030),p=t(44414);const A=(0,d.Ay)(l.A)(s||(s=(0,r.A)(["\n text-align: ",";\n white-space: pre-wrap;\n color: ",";\n font-weight: ",";\n ","\n &>span {\n font-size: 25px;\n }\n span:last-child {\n font-size: 23px;\n font-weight: 340;\n\n @media (min-width: 768px) {\n font-weight: 440;\n font-size: 25px;\n }\n }\n"])),(e=>e.align),(e=>e.lightgreen?e.theme.green2:e.dark?e.theme.white:e.theme.dark_green),(e=>e.bold?"bold":e.semibold?"440":"normal"),(e=>{e.semibold&&(0,d.AH)(a||(a=(0,r.A)(["\n font-size: 20px;\n "])))})),j=e=>{const{t:n}=(0,g.B)();return(0,p.jsxs)(A,{lightgreen:e.lightgreen,semibold:e.semibold,bold:e.bold,dark:e.dark,"data-testid":"NameHeading",children:[(0,p.jsx)("span",{children:n("agentReviews.meetYourAgent")}),(0,p.jsx)("span",{className:"d-none d-md-inline",children:", "}),(0,p.jsx)("span",{className:"d-block d-md-inline",children:"".concat(e.agent.firstname," ").concat(e.agent.lastname,".")})]})};var b,f,w,u,v=t(59051),N=t.n(v);const k=(0,d.Ay)(l.A)(b||(b=(0,r.A)(["\n ","\n"])),(e=>e.showBorder&&(0,d.AH)(f||(f=(0,r.A)(["\n border-bottom: 1px solid rgba(112, 112, 112, 0.3);\n "]))))),R=(0,d.Ay)(l.A)(w||(w=(0,r.A)(["\n font-size: 13px;\n padding: 0;\n"]))),y=d.Ay.p(u||(u=(0,r.A)(["\n font-size: 13px;\n padding: 0;\n margin-top: 2%;\n word-break: break-word;\n"]))),C=e=>{const n=e.topReview;return(0,p.jsx)(o.Fragment,{children:n.map(((e,t)=>(0,p.jsxs)(k,{xs:12,className:"px-0",showBorder:t!==n.length-1,children:[(0,p.jsx)(i.A,{className:"mt-2",children:(0,p.jsx)(l.A,{children:(0,p.jsx)(x.A,{rating:e.rating>0?e.rating:1,starRatedColor:"#FFB100",starEmptyColor:"rgb(141, 139, 129)",starDimension:"1rem",starSpacing:"1px"})})}),(0,p.jsxs)(i.A,{xs:2,children:[(0,p.jsx)(l.A,{className:"font-weight-bold",children:(0,p.jsx)(R,{children:e.name})}),(0,p.jsx)(l.A,{children:(0,p.jsx)(R,{className:"text-right",children:N()(e.date).format("MM/DD/YYYY")})})]}),(0,p.jsx)(i.A,{children:(0,p.jsx)(l.A,{children:(0,p.jsx)(y,{children:e.comments})})})]},t)))})};var z,F,S,B;const D=d.Ay.button(z||(z=(0,r.A)(["\n background: none;\n border: none;\n padding-right: 10px;\n"]))),Y=d.Ay.p(F||(F=(0,r.A)(["\n font-size: 15px;\n font-weight: bold;\n margin-top: 3%;\n margin-bottom: 1.5%;\n"]))),_=d.Ay.span(S||(S=(0,r.A)(["\n font-size: 13px;\n padding: 4px 0 0;\n"]))),E=d.Ay.p(B||(B=(0,r.A)(["\n font-size: 18px;\n border-bottom: 1px solid rgba(112, 112, 112, 0.3);\n margin-top: 7%;\n padding-bottom: 1%;\n"]))),H=e=>{let{hideAgentReviewComponent:n,agentReviews:t}=e;const s=(0,h.d4)((e=>e.agent)),[a,r]=(0,o.useState)(!0),{numberOfReviewsPerStar:d,averageRating:g,reviews:A}=t||{},[b,f]=(0,o.useState)(5),[w,u]=(0,o.useState)(A.slice(0,5));return!t||Object.keys(t).length<1?null:(0,p.jsxs)(o.Fragment,{children:[(0,p.jsx)(i.A,{className:"justify-content-end mt-1","data-testid":"AgentReviews",children:(0,p.jsx)(D,{"aria-label":"Close Reviews",onClick:()=>n(),"data-testid":"cancelButtn",children:(0,p.jsx)("img",{src:m.A,alt:"Close Reviews"})})}),(0,p.jsx)(i.A,{children:(0,p.jsx)(l.A,{xs:12,children:(0,p.jsx)(i.A,{children:(0,p.jsx)(j,{agent:s,semibold:!0,lightgreen:!0})})})}),(0,p.jsxs)(i.A,{className:"mt-1",children:[(0,p.jsxs)(l.A,{className:"text-left align-content-center",children:[(0,p.jsx)(i.A,{className:"d-md-none",children:(0,p.jsx)(l.A,{children:"Client Reviews"})}),(0,p.jsx)(x.A,{rating:g,starRatedColor:"#FFB100",starEmptyColor:"rgb(141, 139, 129)",starDimension:"2rem",starSpacing:"4px"}),(0,p.jsx)(Y,{children:"".concat(g," out of 5")})]}),(0,p.jsx)(l.A,{xs:12,className:"d-none text-md-left",children:(0,p.jsx)(Y,{children:"".concat(g," out of 5")})})]}),["star5","star4","star3","star2","star1"].map(((e,n)=>{const t=parseInt(e.replace(/[^0-9]/g,""),10),s=d[e];return(0,p.jsx)(i.A,{children:(0,p.jsxs)(l.A,{className:"text-left",children:[(0,p.jsxs)(_,{children:[t," Star"]}),(0,p.jsx)("span",{className:"pl-2 pr-5",children:(0,p.jsx)(x.A,{rating:t,starRatedColor:"#FFB100",starEmptyColor:"transparent",starDimension:"1rem",starSpacing:"1px"})}),(0,p.jsx)(_,{children:"".concat(s," reviews")})]})},n)})),(0,p.jsx)(i.A,{children:(0,p.jsx)(l.A,{className:"text-left",children:(0,p.jsx)(E,{children:"".concat(s.firstname,"'s Top Reviews")})})}),(0,p.jsx)(C,{topReview:w}),a&&(0,p.jsx)(i.A,{className:"mt-4 justify-content-center",children:(0,p.jsx)(c.default,{text:"Load more reviews",handleClick:()=>{b>=A.length-5&&r(!1);const e=b+5;f(e),u(A.slice(0,e))}})})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.