1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5168],{65168:function(e,t,s){s.r(t);var l=s(57437),a=s(2265),i=s(92373);let r=()=>(0,l.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M12.8047 0L15.4989 8.2918H24.2174L17.1639 13.4164L19.8581 21.7082L12.8047 16.5836L5.75126 21.7082L8.44543 13.4164L1.39201 8.2918H10.1105L12.8047 0Z",fill:"#FCBD00"})}),n=e=>{let{rating:t}=e;return(0,l.jsx)("div",{className:"flex gap-1",children:Array.from({length:5},(e,t)=>(0,l.jsx)(r,{},t))})},d=e=>{var t;let{testimonial:s}=e,r=(0,a.useRef)(null),[d,c]=(0,a.useState)("text-lg");return(0,a.useEffect)(()=>{let e=()=>{if(r.current){let e=r.current;e.scrollHeight>e.clientHeight&&(c("text-base"),setTimeout(()=>{e.scrollHeight>e.clientHeight&&c("text-sm")},100))}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,l.jsxs)("div",{className:"flex flex-col justify-center items-center gap-6 px-6 py-8 rounded-2xl bg-white shadow-[0px_16px_40px_0px_rgba(0,14,81,0.05)] h-[352px] w-full max-w-[420px] flex-shrink-0",children:[(0,l.jsx)("div",{ref:r,className:"text-center font-gilroy ".concat(d," leading-[150%] text-textDark flex-1 flex items-center justify-center px-2 overflow-hidden"),style:{fontWeight:300},children:(0,l.jsxs)("div",{className:"testimonial-content",children:['"',(0,l.jsx)(i.YI,{value:Array.isArray(t=s.testimonialText)?t:"string"==typeof t&&t.trim().length>0?[{_type:"block",style:"normal",markDefs:[],children:[{_type:"span",text:t}]}]:[],components:{marks:{strong:e=>{let{children:t}=e;return(0,l.jsx)("strong",{className:"font-medium",children:t})},em:e=>{let{children:t}=e;return(0,l.jsx)("em",{className:"italic",children:t})}},block:{normal:e=>{let{children:t}=e;return(0,l.jsx)("span",{children:t})}}}}),'"']})}),(0,l.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,l.jsx)(n,{rating:s.rating}),(0,l.jsxs)("div",{className:"flex items-center gap-3",style:{whiteSpace:"nowrap",minWidth:"max-content"},children:[(0,l.jsx)("span",{className:"font-gilroy text-base text-textDark font-medium",children:s.reviewerName}),(0,l.jsx)("span",{className:"font-gilroy text-base text-textDark opacity-80 flex-shrink-0",children:"|"}),(0,l.jsx)("span",{className:"font-gilroy text-base text-[#8B8E91]",children:s.reviewerType})]})]})]})};t.default=e=>{let{sectionData:t,testimonials:s}=e;if(!t||!s)return(0,l.jsx)("div",{style:{background:"linear-gradient(103deg, #FFF6F3 0%, #F2F4FA 68.07%, #F6F5FE 100%)"},className:"py-20",children:(0,l.jsx)("div",{className:"max-w-[1440px] mx-auto px-24 text-center",children:(0,l.jsxs)("div",{className:"animate-pulse",children:[(0,l.jsx)("div",{className:"h-8 bg-gray-200 rounded w-64 mx-auto mb-4"}),(0,l.jsx)("div",{className:"h-4 bg-gray-200 rounded w-96 mx-auto"})]})})});let a=s;if(t.selectedTestimonials&&t.selectedTestimonials.length>0){let e=t.selectedTestimonials.map(e=>"string"==typeof e?e:e._ref);a=s.filter(t=>e.includes(t._id))}return 0===(a=(a=a.sort((e,t)=>e.order-t.order)).slice(0,3)).length&&s.length>0&&(a=s.slice(0,3)),0===a.length&&(a=[{_id:"1",reviewerName:"Fayaz Khan",reviewerType:"A-Level Student",testimonialText:[{_type:"block",children:[{_type:"span",text:"Fantastic support for A-Level Maths, Physics, and Biology! Worked with three different tutors who were each equally great and achieved the grades I needed for uni because of them, thanks so much!"}]}],rating:5,order:1},{_id:"2",reviewerName:"Olivia",reviewerType:"A-Level Economics Student",testimonialText:[{_type:"block",children:[{_type:"span",text:"My tutor was knowledgeable, patient, and helped me understand challenging concepts in a way that made sense. He also provided helpful study materials and resources. I would highly recommend TutorChase to anyone looking for help with their A-Levels."}]}],rating:5,order:2},{_id:"3",reviewerName:"Ben",reviewerType:"A-Level History Student",testimonialText:[{_type:"block",children:[{_type:"span",text:"As someone who struggled with understanding the A-Level History content, I'm so grateful to have found TutorChase to help me prepare for my exams. My tutor was able to break down complex topics into manageable chunks and provided me with useful study tips and techniques."}]}],rating:5,order:3}]),(0,l.jsxs)("section",{className:"relative py-16",children:[(0,l.jsx)("div",{className:"absolute inset-0 w-full",style:{background:"linear-gradient(103deg, #FFF6F3 0%, #F2F4FA 68.07%, #F6F5FE 100%)"}}),(0,l.jsxs)("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,l.jsxs)("div",{className:"flex flex-col items-center gap-6 mb-16",children:[(0,l.jsx)("div",{className:"flex justify-center mb-2",children:(0,l.jsx)(n,{rating:5})}),(0,l.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsxs)("div",{className:"flex flex-col lg:hidden",children:[(0,l.jsxs)("div",{className:"font-gilroy font-medium text-3xl lg:text-4xl leading-[140%] text-textDark",children:["Rated ",t.rating,"/5"]}),(0,l.jsxs)("div",{className:"font-gilroy font-medium text-3xl lg:text-4xl leading-[140%] text-primary",children:["based on ",t.totalReviews," reviews"]})]}),(0,l.jsx)("div",{className:"hidden lg:block",children:(0,l.jsxs)("div",{className:"font-gilroy font-medium text-4xl leading-[140%] text-center",children:[(0,l.jsxs)("span",{className:"text-textDark",children:["Rated ",t.rating,"/5"]}),(0,l.jsxs)("span",{className:"text-primary",children:[" based on ",t.totalReviews," reviews"]})]})})]}),(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)("span",{className:"font-gilroy text-lg leading-[150%] text-[#F57C40] uppercase",style:{fontWeight:300},children:"Trusted globally by students and parents"})})]})]}),(0,l.jsx)("div",{className:"grid gap-8 sm:gap-6 lg:gap-8 px-4 sm:px-0 place-items-center ".concat(1===a.length?"grid-cols-1 justify-items-center justify-center":2===a.length?"grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 justify-center lg:max-w-[920px] mx-auto":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"),children:a.slice(0,3).map(e=>(0,l.jsx)(d,{testimonial:e},e._id))})]})]})}}}]);
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.