import{u,r as a,j as e,c5 as x,a4 as f}from"./vendor-rThclpOQ.js";import{R as h}from"./review-card-1-BdWAMaPm.js";import{B as i}from"./button-ZcsoqUQn.js";import{C as v,A as g,a as j,b}from"./embla-carousel-autoplay.esm-C7ZpmY0q.js";import{g as N,S as y,a as c}from"./section-BOqnWLvv.js";import{c as C}from"./utils-8KAaAB9H.js";import"./card-HXna_7vU.js";import"./index-DquVdLUg.js";import"./dialog-CDEDwQhm.js";import"./use-lang-BK6P2WMc.js";import"./chunked-uploader-input-rUbaF7V3.js";import"./input-BeqyurrI.js";import"./index-CWNIUFqh.js";import"./input-error-Br4ngfdE.js";import"./loading-button-DKhpmf6V.js";import"./label-CtY1vfZY.js";import"./textarea-DM_GyfeP.js";import"./inertia-SZXqLvQm.js";import"./icon-picker-dialog-Bko_3r6q.js";import"./icon-picker-B7sCh2g1.js";import"./debounce-CWHP_ANh.js";import"./tooltip-WOIaUmuC.js";import"./scroll-area-BCwyUKIK.js";import"./table-header-Cuecslh2.js";import"./table-DoQbaWlF.js";import"./table-page-size-FBmivxVb.js";import"./dropdown-menu-Cm0H42C1.js";import"./route-B4ZMN77y.js";import"./avatar-BsP_s7dr.js";const Z=()=>{const{props:l}=u(),{customize:n}=l,[r,m]=a.useState(),[d,p]=a.useState(0),t=N(l.page,"testimonials");return a.useEffect(()=>{if(!r)return;const s=()=>{p(r.selectedScrollSnap())};return r.on("select",s),()=>{r.off("select",s)}},[r]),e.jsx("div",{className:"overflow-y-hidden",children:e.jsxs(y,{customize:n,pageSection:t,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:t==null?void 0:t.title}),e.jsx("h2",{className:"mb-2 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("div",{className:"relative",children:e.jsx(v,{setApi:m,className:"relative z-10 py-10",opts:{loop:!0,align:"start",slidesToScroll:"auto"},plugins:[g({delay:5e3})],children:e.jsx(j,{children:c(t).map((s,o)=>e.jsx(b,{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:s})})},`testimonials-${o}`))})})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"flex items-center justify-center gap-2.5",children:r&&c(t).map(({id:s},o)=>e.jsx("div",{className:C("cursor-pointer rounded-full transition-all duration-200",d===o?"bg-primary h-2 w-4":"h-2 w-2 bg-gray-300"),onClick:()=>r.scrollTo(o)},s))}),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(x,{})}),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{Z as default};
