import{aT as x,r as a,j as e,aE as f,t as u}from"./react-vendor-xYZnmIII.js";import{R as b}from"./review-card-1-DzfaGisT.js";import{b2 as h,b3 as g,b4 as j,c as v,B as n}from"./ui-components-CQM92IK3.js";import{g as N,S as y,a as i}from"./section-BOHF3o7C.js";import{A as C}from"./embla-carousel-autoplay.esm-DjPwQPS4.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";import"./use-lang-Dg6I_Fym.js";import"./chunked-uploader-input-dQEAsxxf.js";import"./input-error-_LAmvivg.js";import"./loading-button-D7aXR3K4.js";import"./inertia-FIn3q7f1.js";import"./icon-picker-dialog-jzY0-ZNJ.js";import"./icon-picker-e9MMAA5U.js";import"./debounce-CWHP_ANh.js";import"./icon-picker-tooltip-CR2ZyXZ1.js";import"./table-header-CjMHr8CW.js";import"./table-page-size-CzF8rJAG.js";import"./route-D0xh7FtZ.js";const M=()=>{const{props:o}=x(),{customize:c}=o,[r,m]=a.useState(),[d,p]=a.useState(0),t=N(o.page,"testimonials");return a.useEffect(()=>{if(!r)return;const s=()=>{p(r.selectedScrollSnap())};return r.on("select",s),()=>{r.off("select",s)}},[r]),e.jsxs(y,{customize:c,pageSection:t,containerClass:"py-20",contentClass:"relative z-10",children:[e.jsxs("div",{className:"mx-auto text-center md:max-w-[480px]",children:[e.jsx("p",{className:"text-secondary-foreground mb-1 font-medium",children:t==null?void 0:t.title}),e.jsx("h2",{className:"mb-4 text-3xl font-bold sm:text-4xl",children:t==null?void 0:t.sub_title}),e.jsx("p",{className:"text-muted-foreground",children:t==null?void 0:t.description})]}),e.jsx(h,{setApi:m,className:"z-10 py-14",opts:{loop:!0,align:"start",slidesToScroll:"auto"},plugins:[C({delay:5e3})],children:e.jsx(g,{children:i(t).map(s=>e.jsx(j,{className:"md:basis-1/2 lg:basis-1/3 xl:basis-1/4",children:e.jsx("div",{className:"h-full px-1.5 py-0.5",children:e.jsx(b,{review:s})})},s.id))})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"flex items-center justify-center gap-2.5",children:r&&i(t).map(({id:s},l)=>e.jsx("div",{className:v("cursor-pointer rounded-full transition-all duration-200",d===l?"bg-primary h-2 w-4":"h-2 w-2 bg-gray-300"),onClick:()=>r.scrollTo(l)},s))}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(n,{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.jsx(f,{})}),e.jsx(n,{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.jsx(u,{})})]})]}),e.jsx("div",{className:"after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:h-[240px] after:w-[240px] after:rounded-full after:bg-[rgba(0,167,111,1)] after:blur-[290px] after:content-['']"}),e.jsx("div",{className:"after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-[240px] after:w-[240px] after:rounded-full after:bg-[rgba(97,95,255,1))] after:blur-[290px] after:content-['']"})]})};export{M as default};
