import{aT as x,r as o,j as e,aE as u,t as f}from"./react-vendor-xYZnmIII.js";import{R as h}from"./review-card-1-DzfaGisT.js";import{b2 as v,b3 as b,b4 as g,c as j,B as i}from"./ui-components-CQM92IK3.js";import{g as N,S as y,a as n}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 K=()=>{const{props:l}=x(),{customize:c}=l,[r,m]=o.useState(),[d,p]=o.useState(0),s=N(l.page,"testimonials");return o.useEffect(()=>{if(!r)return;const t=()=>{p(r.selectedScrollSnap())};return r.on("select",t),()=>{r.off("select",t)}},[r]),e.jsx("div",{className:"overflow-y-hidden",children:e.jsxs(y,{customize:c,pageSection:s,containerClass:"py-20 relative",children:[e.jsxs("div",{className:"relative z-10 mx-auto max-w-lg text-center",children:[e.jsx("p",{className:"text-secondary-foreground mb-1 font-medium",children:s==null?void 0:s.title}),e.jsx("h2",{className:"mb-2 text-3xl font-bold sm:text-4xl",children:s==null?void 0:s.sub_title}),e.jsx("p",{className:"text-muted-foreground",children:s==null?void 0:s.description})]}),e.jsx("div",{className:"relative",children:e.jsx(v,{setApi:m,className:"relative z-10 py-10",opts:{loop:!0,align:"start",slidesToScroll:"auto"},plugins:[C({delay:5e3})],children:e.jsx(b,{children:n(s).map((t,a)=>e.jsx(g,{className:"md:basis-1/2 lg:basis-1/3",children:e.jsx("div",{className:"h-full px-1.5 py-0.5",children:e.jsx(h,{review:t})})},`testimonials-${a}`))})})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"flex items-center justify-center gap-2.5",children:r&&n(s).map(({id:t},a)=>e.jsx("div",{className:j("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)},t))}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(i,{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(u,{})}),e.jsx(i,{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(f,{})})]})]}),e.jsx("div",{className:"rounded-full after:pointer-events-none after:absolute after:right-0 after:bottom-10 after:h-[300px] after:w-[300px] after:bg-[rgba(43,127,255,0.32)] after:blur-[240px] after:content-['']"})]})})};export{K as default};
