1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[56095],{74340:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/carer-reviews",function(){return r(39097)}])},85626:function(e,t,r){"use strict";r.d(t,{Z:function(){return StandardHeight}});var n=r(31549);function StandardHeight(e){let{className:t=""}=e;return(0,n.jsx)("div",{className:"h-10 md:h-20 "+t})}r(44194)},28813:function(e,t,r){"use strict";r.d(t,{Z:function(){return SimpleReviewCard}});var n=r(31549);r(44194);var a=r(38908),s=r.n(a),l=r(98975),i=r.n(l);function SimpleReviewCard(e){let{img:t,review:r,name:a,link:l,rating:o,location:c}=e,h=Math.max(0,Math.min(5,Math.round(o||5)));return(0,n.jsxs)("div",{className:"group flex flex-col bg-white rounded-2xl ring-1 ring-forestgreen/10 shadow-soft p-6 snap-center min-w-[290px] w-full sm:w-[360px] transition-all duration-300 ease-out hover:shadow-lift hover:-translate-y-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("div",{className:"relative rounded-full w-12 h-12 overflow-hidden ring-2 ring-mintgreen shrink-0",children:(0,n.jsx)(s(),{src:t,layout:"fill",objectFit:"cover",alt:"Photo of carer ".concat(a)})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h4",{className:"text-base font-semibold text-normalbig leading-tight",children:a}),c&&(0,n.jsx)("p",{className:"text-sm text-darkkhaki leading-tight mt-0.5",children:c}),(0,n.jsx)("div",{className:"mt-1 flex gap-0.5 text-amber",role:"img","aria-label":"Rated ".concat(h," out of 5 stars"),children:Array.from({length:h}).map((e,t)=>(0,n.jsx)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M9.05 2.93c.3-.92 1.6-.92 1.9 0l1.3 4.02a1 1 0 0 0 .95.7h4.22c.97 0 1.37 1.24.59 1.8l-3.42 2.49a1 1 0 0 0-.36 1.12l1.3 4.01c.3.92-.75 1.69-1.54 1.12l-3.41-2.48a1 1 0 0 0-1.18 0l-3.41 2.48c-.79.57-1.84-.2-1.54-1.12l1.3-4.01a1 1 0 0 0-.36-1.12L2 9.45c-.78-.56-.38-1.8.59-1.8h4.22a1 1 0 0 0 .95-.69l1.3-4.02Z"})},t))})]})]}),(0,n.jsx)("p",{className:"text-normalbig leading-relaxed mt-4 grow",children:'"'.concat(r,'"')}),(0,n.jsxs)(i(),{href:l,className:"mt-4 inline-flex items-center gap-1.5 text-forestgreen font-semibold text-sm transition-colors hover:text-green",children:["Read the full review",(0,n.jsx)("svg",{className:"w-3.5 h-3.5 transition-transform duration-200 ease-out group-hover:translate-x-1",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6"})})]})]})}},39097:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return c},default:function(){return CarerReviews}});var n=r(31549),a=r(44194),s=r(11552),l=r.n(s),i=r(28813),o=r(85626);function themeLabel(e){let t=e.replace(/_/g," ").trim(),r=t.charAt(0).toUpperCase()+t.slice(1);return r.replace(/^Live in care$/,"Live-in care")}var c=!0;function CarerReviews(e){let{reviews:t}=e,[r,s]=(0,a.useState)(""),[c,h]=(0,a.useState)(""),[m,d]=(0,a.useState)(60),x=(0,a.useMemo)(()=>t.map(e=>({review:e,haystack:function(e){let t=e.themes||[];return[e.name,e.town,e.content,...t,...t.map(themeLabel)].join(" ").toLowerCase()}(e)})),[t]),u=(0,a.useMemo)(()=>(function(e){let t=new Map;for(let r of e)for(let e of r.themes||[])t.set(e,(t.get(e)||0)+1);return[...t.entries()].sort((e,t)=>t[1]-e[1]||e[0].localeCompare(t[0])).slice(0,10).map(e=>{let[t,r]=e;return{theme:t,count:r}})})(t),[t]),g=(0,a.useMemo)(()=>{let e=r.trim().toLowerCase().split(/\s+/).filter(Boolean);return x.filter(e=>{let{review:t}=e;return!c||(t.themes||[]).includes(c)}).filter(t=>{let{haystack:r}=t;return e.every(e=>r.includes(e))}).map(e=>{let{review:t}=e;return t})},[x,r,c]),f=g.slice(0,m),p=!!(r.trim()||c),setQueryAndReset=e=>{s(e),d(60)},setThemeAndReset=e=>{h(e),d(60)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l(),{children:[(0,n.jsx)("title",{children:"".concat(t.length," carer reviews from our clients | PrimeCarers")}),(0,n.jsx)("meta",{name:"description",content:"Read all ".concat(t.length," reviews our clients have written about their carers. Search by carer name, town or what the family said.")}),(0,n.jsx)("meta",{property:"og:title",content:"".concat(t.length," carer reviews from our clients")},"og:title"),(0,n.jsx)("meta",{property:"og:description",content:"Read all ".concat(t.length," reviews our clients have written about their carers.")},"og:description")]}),(0,n.jsxs)("main",{className:"pt-[100px]",children:[(0,n.jsx)(o.Z,{}),(0,n.jsxs)("div",{className:"container mx-auto px-5 lg:px-12 text-center",children:[(0,n.jsx)("h1",{className:"text-3xl font-bold py-5",children:"What our clients say"}),(0,n.jsx)("p",{className:"text-base lg:text-xl text-darkkhaki max-w-3xl mx-auto",children:"Every review below was written by a family about a carer they booked through PrimeCarers. Search for a name or a town, or look for the kind of care you need."})]}),(0,n.jsxs)("div",{className:"container mx-auto px-5 lg:px-12 mt-8",children:[(0,n.jsxs)("div",{className:"max-w-2xl mx-auto",children:[(0,n.jsx)("label",{htmlFor:"review-search",className:"block text-sm font-semibold text-normalbig",children:"Search reviews"}),(0,n.jsx)("input",{id:"review-search",type:"search",value:r,onChange:e=>setQueryAndReset(e.target.value),placeholder:"Try a carer name, a town, or a word like dementia",className:"mt-2 w-full rounded-xl border border-forestgreen/20 px-4 py-3 text-base text-normalbig focus:border-forestgreen focus:outline-none focus:ring-2 focus:ring-forestgreen/30"})]}),u.length>0&&(0,n.jsx)("div",{className:"mt-5 flex flex-wrap justify-center gap-2",children:u.map(e=>{let{theme:t,count:r}=e,a=c===t;return(0,n.jsxs)("button",{type:"button","aria-pressed":a,onClick:()=>setThemeAndReset(a?"":t),className:"rounded-full px-4 py-1.5 text-sm font-semibold transition-colors ".concat(a?"bg-forestgreen text-white":"bg-mintgreen/30 text-forestgreen hover:bg-mintgreen/60"),children:[themeLabel(t)," ",(0,n.jsx)("span",{className:"font-normal opacity-70",children:r})]},t)})}),(0,n.jsx)("p",{className:"mt-5 text-center text-sm text-darkkhaki","aria-live":"polite",children:g.length===t.length?"Showing all ".concat(t.length," reviews"):"Showing ".concat(g.length," of ").concat(t.length," reviews")})]}),0===g.length?(0,n.jsxs)("div",{className:"container mx-auto px-5 lg:px-12 mt-10 text-center",children:[(0,n.jsx)("p",{className:"text-base text-normalbig",children:"No reviews match that search."}),(0,n.jsx)("button",{type:"button",onClick:()=>{s(""),h(""),d(60)},className:"mt-4 rounded-full bg-forestgreen px-5 py-2 text-sm font-semibold text-white transition-colors hover:bg-green",children:"Clear the search"})]}):(0,n.jsx)("div",{className:"container mx-auto mt-10 px-5 lg:px-12 flex justify-center",children:(0,n.jsx)("div",{className:"masonry lg:masonry-lg xl:masonry-xl",children:f.map(e=>(0,n.jsx)("div",{className:"py-4 break-inside",children:(0,n.jsx)(i.Z,{img:e.image,review:e.content,name:e.name,location:e.town,link:e.link,rating:e.rating})},e.id))})}),f.length<g.length&&(0,n.jsx)("div",{className:"container mx-auto px-5 lg:px-12 mt-8 flex justify-center",children:(0,n.jsx)("button",{type:"button",onClick:()=>d(e=>e+60),className:"rounded-full bg-forestgreen px-6 py-3 text-base font-semibold text-white transition-colors hover:bg-green",children:p?"Show more matching reviews (".concat(g.length-f.length," left)"):"Show more reviews (".concat(g.length-f.length," left)")})}),(0,n.jsx)(o.Z,{})]})]})}}},function(e){e.O(0,[49774,92888,40179],function(){return e(e.s=74340)}),_N_E=e.O()}]);
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.