1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="27dd5ef3-1685-4633-891a-480734cc8cf2",e._sentryDebugIdIdentifier="sentry-dbid-27dd5ef3-1685-4633-891a-480734cc8cf2")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9462],{19462:function(e,t,s){s.r(t);var r=s(57437),a=s(2265),l=s(99376),i=s(33145),n=s(94950),d=s(39408),o=s(15030);let c="https://www.trustpilot.com/review/www.yeslawyer.com",m=(e,t)=>{let s=Number(e);return Number.isFinite(s)?s:t},x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=m(e.overall_rating,n.qC);return{reviewCount:m(e.total_reviews,n.ah),reviewAverage:t,starLabel:t>=4.5?"Excellent":"Great"}},h=e=>{let{filled:t=!0,className:s="h-5 w-5"}=e;return(0,r.jsx)("svg",{className:s,viewBox:"0 0 24 24",fill:t?"#00b67a":"#dcdce6",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})})},g=e=>{let{rating:t=5,className:s="h-5 w-5"}=e,a=Math.max(0,Math.min(5,Math.round(m(t,5))));return(0,r.jsx)("div",{className:"flex gap-1","aria-label":"".concat(a," out of 5 stars"),children:[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,r.jsx)(h,{filled:t<a,className:s},t))})},f=e=>{let t=m(e,n.qC);return Number.isInteger(t)?t.toFixed(0):t.toFixed(1)},u=e=>{let{review:t={}}=e,s=t.name||"YesLawyer customer";return(0,r.jsxs)("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"block h-full rounded-lg border border-gray-200 bg-white p-5 shadow-sm transition-shadow hover:shadow-md",children:[(0,r.jsx)(g,{rating:t.rating,className:"h-4 w-4"}),(0,r.jsx)("p",{className:"mt-4 text-sm leading-6 text-gray-700 line-clamp-5",children:t.text||""}),(0,r.jsxs)("div",{className:"mt-5 border-t border-gray-100 pt-4",children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-gray-900 line-clamp-1",children:s}),(0,r.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:[t.country||"US",t.date].filter(Boolean).join(" | ")})]})]})};t.default=()=>{let e=(0,l.useSearchParams)(),t=!!(e.get("pid")||e.get("category")||e.get("dki")),[s,h]=(0,a.useState)({reviewCount:n.ah,reviewAverage:n.qC,starLabel:n.GM});if((0,a.useEffect)(()=>{t&&(0,o.uR)().then(e=>{m(null==e?void 0:e.total_reviews,0)>0&&h(x(e))})},[t]),!t)return null;let w=Array.isArray(n.A9)?n.A9.slice(0,3):[],p=m(s.reviewCount,n.ah);return(0,r.jsx)("section",{className:"bg-[#FFF9F2] px-4 py-12 sm:px-6 sm:py-16 lg:px-8",children:(0,r.jsxs)("div",{className:"mx-auto max-w-6xl",children:[(0,r.jsxs)("div",{className:"grid gap-6 lg:grid-cols-[280px_1fr] lg:items-start",children:[(0,r.jsxs)("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"rounded-lg border border-gray-200 bg-white p-6 shadow-sm transition-shadow hover:shadow-md",children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-gray-500",children:"Trustpilot rating"}),(0,r.jsxs)("div",{className:"mt-3 flex items-center gap-3",children:[(0,r.jsx)("span",{className:"text-4xl font-bold text-gray-900",children:f(s.reviewAverage)}),(0,r.jsx)("span",{className:"text-sm font-medium text-gray-500",children:"out of 5"})]}),(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(g,{rating:s.reviewAverage,className:"h-6 w-6"})}),(0,r.jsxs)("p",{className:"mt-4 text-sm text-gray-600",children:[s.starLabel," based on ",p.toLocaleString()," reviews"]}),(0,r.jsx)(i.default,{src:"/trustpilot-logo-green.svg",alt:"Trustpilot",width:116,height:28,className:"mt-5 object-contain"})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mb-5 flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"font-serif text-2xl font-bold leading-tight text-gray-900 sm:text-3xl",children:"Rated Excellent by Customers"}),(0,r.jsx)("p",{className:"mt-2 max-w-2xl text-sm leading-6 text-gray-600",children:"Real reviews from people who reached out to YesLawyer for help."})]}),(0,r.jsx)("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"text-sm font-semibold text-[#F04E23] hover:text-[#d83f19]",children:"Read all reviews"})]}),(0,r.jsx)("div",{className:"grid gap-4 md:grid-cols-3",children:w.map(e=>(0,r.jsx)(u,{review:e},e.id))})]})]}),(0,r.jsx)("div",{className:"mt-10 flex justify-center",children:(0,r.jsx)(d.Z,{})})]})})}}}]);
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.