import{jsxs as l,Fragment as d,jsx as e}from"react/jsx-runtime";import{b1 as u,b2 as f,b3 as h,c as v,B as c}from"./ui-components-B24mpb8o.js";import{Q as x}from"./quote-ok39FnMZ.js";import b from"embla-carousel-autoplay";import{ChevronLeft as N,ChevronRight as g}from"lucide-react";import{useState as m,useEffect as y}from"react";import"next-themes";import"sonner";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";const er=({data:o})=>{const[r,a]=m(),[n,p]=m(0);return y(()=>{if(!r)return;const t=()=>{p(r.selectedScrollSnap())};return r.on("select",t),()=>{r.off("select",t)}},[r]),l(d,{children:[l(u,{setApi:a,className:"relative z-10 space-y-7",opts:{loop:!0,align:"start",slidesToScroll:"auto"},plugins:[b({delay:5e3})],children:[e("div",{className:"flex items-center justify-center",children:e(x,{})}),e("div",{className:"mx-auto w-full max-w-[460px]",children:e(f,{children:o&&o.ids.map((t,i)=>e(h,{className:"text-center",children:e("p",{className:"text-lg",children:t.description})},`testimonials-${i}`))})}),e("div",{className:"flex h-[100px] flex-wrap items-center justify-center gap-7",children:r&&o&&o.ids.map(({id:t,image:i},s)=>e("div",{className:v("cursor-pointer overflow-hidden rounded-full transition-all duration-200",n===s?"h-[100px] w-[100px] opacity-100":"h-[60px] w-[60px] opacity-40"),onClick:()=>r.scrollTo(s),children:e("img",{src:i,alt:"",className:"h-full w-full object-cover"})},t))})]}),l("div",{className:"absolute top-1/2 right-0 z-10 flex w-full -translate-y-1/2 justify-between",children:[e(c,{size:"icon",variant:"outline",disabled:!(r!=null&&r.canScrollPrev()),onClick:()=>r==null?void 0:r.scrollPrev(),className:"hover:border-primary hover:bg-background",children:e(N,{})}),e(c,{size:"icon",variant:"outline",disabled:!(r!=null&&r.canScrollNext()),onClick:()=>r==null?void 0:r.scrollNext(),className:"hover:border-primary hover:bg-background",children:e(g,{})})]})]})};export{er as default};
