import{jsxs as a,jsx as r}from"react/jsx-runtime";import{b1 as h,b2 as x,b3 as b,c as v,B as m}from"./ui-components-B24mpb8o.js";import{Q as g}from"./quote-ok39FnMZ.js";import{g as N,S as y,a as p}from"./section-DjkqMKZX.js";import{usePage as w}from"@inertiajs/react";import C from"embla-carousel-autoplay";import{ChevronLeft as S,ChevronRight as j}from"lucide-react";import{useState as n,useEffect as z}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";import"./use-lang-Cw_jKJYs.js";import"./chunked-uploader-input-WemAY1Qi.js";import"axios";import"./input-error-BbsDx4-P.js";import"./loading-button-B_LaGOAp.js";import"./inertia-FIn3q7f1.js";import"./icon-picker-dialog-C9VejAFv.js";import"./icon-picker-DlQKexqz.js";import"./debounce-CWHP_ANh.js";import"./icon-picker-tooltip-BfucLgKc.js";import"lucide-react/dynamic";import"./table-header-DXTJ1r7-.js";import"@tanstack/react-table";import"./table-page-size-B94DPeOD.js";import"./route-D0xh7FtZ.js";const Ce=()=>{const{props:l}=w(),{customize:c}=l,[e,d]=n(),[f,u]=n(0),t=N(l.page,"testimonials");return z(()=>{if(!e)return;const o=()=>{u(e.selectedScrollSnap())};return e.on("select",o),()=>{e.off("select",o)}},[e]),a(y,{customize:c,pageSection:t,containerClass:"py-20",children:[a("div",{className:"relative z-10 mx-auto text-center md:max-w-[480px]",children:[r("p",{className:"text-secondary-foreground mb-1 font-medium",children:t==null?void 0:t.title}),r("h2",{className:"mb-4 text-3xl font-bold sm:text-4xl",children:t==null?void 0:t.title}),r("p",{className:"text-muted-foreground",children:t==null?void 0:t.description})]}),a("div",{className:"relative mt-10",children:[a(h,{setApi:d,className:"relative z-10 space-y-7",opts:{loop:!0,align:"start",slidesToScroll:"auto"},plugins:[C({delay:5e3})],children:[r("div",{className:"flex items-center justify-center",children:r(g,{})}),r("div",{className:"mx-auto w-full max-w-[460px]",children:r(x,{children:p(t).map((o,i)=>r(b,{className:"text-center",children:r("p",{className:"text-lg",children:o.description})},`testimonials-${i}`))})}),r("div",{className:"flex h-[100px] flex-wrap items-center justify-center gap-7",children:e&&p(t).map(({id:o,image:i},s)=>r("div",{className:v("cursor-pointer overflow-hidden rounded-full transition-all duration-200",f===s?"h-[100px] w-[100px] opacity-100":"h-[60px] w-[60px] opacity-40"),onClick:()=>e.scrollTo(s),children:r("img",{src:i,alt:"",className:"h-full w-full object-cover"})},o))})]}),a("div",{className:"absolute top-1/2 right-0 z-10 flex w-full -translate-y-1/2 justify-between",children:[r(m,{size:"icon",variant:"outline",disabled:!(e!=null&&e.canScrollPrev()),onClick:()=>e==null?void 0:e.scrollPrev(),className:"hover:border-primary hover:bg-background",children:r(S,{})}),r(m,{size:"icon",variant:"outline",disabled:!(e!=null&&e.canScrollNext()),onClick:()=>e==null?void 0:e.scrollNext(),className:"hover:border-primary hover:bg-background",children:r(j,{})})]}),r("div",{className:"after:pointer-events-none after:absolute after:top-10 after:left-20 after:h-[240px] after:w-[240px] after:rounded-full after:bg-[rgba(97,95,255,1))] after:blur-[290px] after:content-['']"}),r("div",{className:"after:pointer-events-none after:absolute after:right-20 after:bottom-10 after:h-[240px] after:w-[240px] after:rounded-full after:bg-[rgba(0,167,111,1)] after:blur-[290px] after:content-['']"})]})]})};export{Ce as default};
