import{E as e,c as t,k as n,p as r}from"./SEO-DkjCUBru.js";import{i,t as a}from"./GoogleRatingBadge-D2RxuxEW.js";var o=n(e(),1),s=r();function c({count:e=8,showBadge:n=!0,title:r=!0}){let[c,l]=(0,o.useState)(!1),u=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e=new IntersectionObserver(([t])=>{t.isIntersecting&&(l(!0),e.disconnect())},{rootMargin:`200px`});return u.current&&e.observe(u.current),()=>e.disconnect()},[]);let d=t.filter(e=>e.rating>=4).slice(0,e);return(0,s.jsx)(`div`,{ref:u,"data-id":`f5zvk2uh0`,"data-path":`src/components/GoogleReviewStrip.jsx`,children:c?(0,s.jsxs)(s.Fragment,{children:[r&&(0,s.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-4 mb-6`,"data-id":`1gfuxx3ki`,"data-path":`src/components/GoogleReviewStrip.jsx`,children:[(0,s.jsxs)(`div`,{"data-id":`y6d78t0g5`,"data-path":`src/components/GoogleReviewStrip.jsx`,children:[(0,s.jsx)(`span`,{className:`inline-block font-accent text-sm font-bold uppercase tracking-widest text-brand-red mb-1`,"data-id":`kar4n8cbw`,"data-path":`src/components/GoogleReviewStrip.jsx`,children:`What Customers Say`}),(0,s.jsx)(`h2`,{className:`text-2xl md:text-3xl font-accent uppercase text-brand-navy`,"data-id":`l6fbunixa`,"data-path":`src/components/GoogleReviewStrip.jsx`,children:`Google Reviews`})]}),n&&(0,s.jsx)(a,{variant:`full`,"data-id":`rngunlyzq`,"data-path":`src/components/GoogleReviewStrip.jsx`})]}),(0,s.jsx)(`div`,{className:`flex gap-4 overflow-x-auto scroll-smooth pb-4 snap-x snap-mandatory scrollbar-hide md:hidden`,style:{scrollbarWidth:`none`,msOverflowStyle:`none`},"data-id":`9w3hxlklp`,"data-path":`src/components/GoogleReviewStrip.jsx`,children:d.map((e,t)=>(0,s.jsx)(`div`,{className:`flex-shrink-0 w-[300px] snap-start`,"data-id":`5ca2lacta`,"data-path":`src/components/GoogleReviewStrip.jsx`,children:(0,s.jsx)(i,{testimonial:e,"data-id":`jviu3558d`,"data-path":`src/components/GoogleReviewStrip.jsx`})},t))}),(0,s.jsx)(`div`,{className:`hidden md:grid md:grid-cols-2 lg:grid-cols-4 gap-4`,"data-id":`gzjav1vy7`,"data-path":`src/components/GoogleReviewStrip.jsx`,children:d.map((e,t)=>(0,s.jsx)(`div`,{"data-id":`wj8mg5kzo`,"data-path":`src/components/GoogleReviewStrip.jsx`,children:(0,s.jsx)(i,{testimonial:e,"data-id":`n90fbvi3j`,"data-path":`src/components/GoogleReviewStrip.jsx`})},t))})]}):(0,s.jsx)(`div`,{style:{minHeight:`320px`},className:`animate-pulse bg-gray-100 rounded-xl`,"data-id":`2c447i8ia`,"data-path":`src/components/GoogleReviewStrip.jsx`})})}export{c as t};