import{jsxs as i,jsx as e}from"react/jsx-runtime";import{R as u}from"./review-card-1-gmrHyRh7.js";import{b1 as h,b2 as b,b3 as g,c as v,B as s}from"./ui-components-B24mpb8o.js";import{g as x,S as N,a as m}from"./section-DjkqMKZX.js";import{usePage as y}from"@inertiajs/react";import C from"embla-carousel-autoplay";import{ChevronLeft as S,ChevronRight as w}from"lucide-react";import{useState as p,useEffect as k}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 Cr=()=>{const{props:l}=y(),{customize:n}=l,[r,c]=p(),[d,f]=p(0),t=x(l.page,"testimonials");return k(()=>{if(!r)return;const o=()=>{f(r.selectedScrollSnap())};return r.on("select",o),()=>{r.off("select",o)}},[r]),i(N,{customize:n,pageSection:t,containerClass:"py-20",children:[i("div",{className:"relative z-10 mx-auto max-w-lg text-center",children:[e("p",{className:"text-secondary-foreground mb-1 font-medium",children:t==null?void 0:t.title}),e("h2",{className:"mb-4 text-2xl font-bold sm:text-3xl",children:t==null?void 0:t.sub_title}),e("p",{className:"text-muted-foreground",children:t==null?void 0:t.description})]}),i("div",{className:"relative",children:[e(h,{setApi:c,className:"relative z-10 py-10",opts:{loop:!0,align:"start",slidesToScroll:"auto"},plugins:[C({delay:5e3})],children:e(b,{children:m(t).map((o,a)=>e(g,{className:"md:basis-1/2 lg:basis-1/3",children:e("div",{className:"h-full px-1.5 py-0.5",children:e(u,{review:o})})},`testimonials-${a}`))})}),e("div",{className:"after:pointer-events-none after:absolute after:top-0 after:left-0 after:h-[200px] after:w-[200px] after:rounded-full after:bg-[rgba(97,95,255,1))] after:blur-[290px] after:content-['']"}),e("div",{className:"after:pointer-events-none after:absolute after:right-0 after:bottom-0 after:h-[260px] after:w-[260px] after:rounded-full after:bg-[rgba(0,167,111,1)] after:blur-[290px] after:content-['']"})]}),i("div",{className:"flex items-center justify-between",children:[e("div",{className:"flex items-center justify-center gap-2.5",children:r&&m(t).map(({id:o},a)=>e("div",{className:v("cursor-pointer rounded-full transition-all duration-200",d===a?"bg-primary h-2 w-4":"h-2 w-2 bg-gray-300"),onClick:()=>r.scrollTo(a)},o))}),i("div",{className:"space-x-4",children:[e(s,{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(S,{})}),e(s,{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(w,{})})]})]})]})};export{Cr as default};
